commit 9bb02f1a495786ebb599452319c37a341e95e1b4 Author: 1186 <13640910284@163.com> Date: Mon May 27 16:26:14 2024 +0800 Initial commit diff --git a/alive-admin/pom.xml b/alive-admin/pom.xml new file mode 100644 index 0000000..2ade3d4 --- /dev/null +++ b/alive-admin/pom.xml @@ -0,0 +1,145 @@ + + + + alive + com.alive + 4.7.2 + + 4.0.0 + jar + alive-admin + + + web服务入口 + + + + + org.springframework.boot + spring-boot-starter-websocket + + + + + org.springframework.boot + spring-boot-starter-thymeleaf + + + + + org.springframework.boot + spring-boot-devtools + true + + + + org.slf4j + slf4j-api + 1.7.28 + + + + org.slf4j + slf4j-simple + 1.7.28 + + + + org.apache.commons + commons-pool2 + + + + org.web3j + core + 5.0.0 + + + com.squareup.okhttp3 + okhttp + 4.9.0 + + + + + io.springfox + springfox-boot-starter + + + + + io.swagger + swagger-models + 1.6.2 + + + + + mysql + mysql-connector-java + + + + + com.alive + alive-framework + + + + + com.alive + alive-quartz + + + + + com.alive + alive-generator + + + + + com.alive + alive-server + + + org.slf4j + jul-to-slf4j + 1.7.36 + + + + + + + + org.springframework.boot + spring-boot-maven-plugin + 2.1.1.RELEASE + + true + + + + + repackage + + + + + + org.apache.maven.plugins + maven-war-plugin + 3.0.0 + + false + ${project.artifactId} + + + + ${project.artifactId} + + + \ No newline at end of file diff --git a/alive-admin/src/main/java/com/ruoyi/AliveAdminApplication.java b/alive-admin/src/main/java/com/ruoyi/AliveAdminApplication.java new file mode 100644 index 0000000..d72ad46 --- /dev/null +++ b/alive-admin/src/main/java/com/ruoyi/AliveAdminApplication.java @@ -0,0 +1,26 @@ +package com.ruoyi; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration; +import org.springframework.cache.annotation.EnableCaching; +import org.springframework.scheduling.annotation.EnableScheduling; + + + +/** + * 启动程序 + * + * @author ruoyi + */ +@EnableCaching // 启用缓存功能 +@EnableScheduling // 开启定时任务功能 +@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class }) +public class AliveAdminApplication +{ + public static void main(String[] args) + { + SpringApplication.run(AliveAdminApplication.class, args); + System.out.println("(♥◠‿◠)ノ゙ NODE ლ(´ڡ`ლ)゙ 启动完成"); + } +} \ No newline at end of file diff --git a/alive-admin/src/main/java/com/ruoyi/FaiServletInitializer.java b/alive-admin/src/main/java/com/ruoyi/FaiServletInitializer.java new file mode 100644 index 0000000..c627404 --- /dev/null +++ b/alive-admin/src/main/java/com/ruoyi/FaiServletInitializer.java @@ -0,0 +1,18 @@ +package com.ruoyi; + +import org.springframework.boot.builder.SpringApplicationBuilder; +import org.springframework.boot.web.servlet.support.SpringBootServletInitializer; + +/** + * web容器中进行部署 + * + * @author ruoyi + */ +public class FaiServletInitializer extends SpringBootServletInitializer +{ + @Override + protected SpringApplicationBuilder configure(SpringApplicationBuilder application) + { + return application.sources(AliveAdminApplication.class); + } +} diff --git a/alive-admin/src/main/java/com/ruoyi/web/controller/ActivityConfigController.java b/alive-admin/src/main/java/com/ruoyi/web/controller/ActivityConfigController.java new file mode 100644 index 0000000..10ad6e5 --- /dev/null +++ b/alive-admin/src/main/java/com/ruoyi/web/controller/ActivityConfigController.java @@ -0,0 +1,183 @@ +package com.ruoyi.web.controller; + +import com.ruoyi.common.utils.StringUtils; +import java.util.List; +import com.ruoyi.common.core.domain.entity.SysUser; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.system.domain.ActivityConfig; +import com.ruoyi.system.service.ActivityConfigService; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.utils.poi.ExcelUtil; + +/** + * 活动配置Controller + * + * @author HayDen + * @date 2024-04-24 + */ +@Controller +@RequestMapping("/project/activityConfig") +public class ActivityConfigController extends BaseController +{ + private String prefix = "project/activityConfig"; + + @Autowired + private ActivityConfigService activityConfigService; + + + /** + * 查询出每个任务完成人数 + * @return + */ + @RequiresPermissions("project:activityConfigCount:view") + @GetMapping("/activityConfigCount") + public String activityConfigCount() + { + return prefix + "/activityConfigCount"; + } + @RequiresPermissions("project:activityConfigCount:list") + @PostMapping("/listCount") + @ResponseBody + public TableDataInfo listCount() + { + startPage(); + List list = activityConfigService.findActivityConfigCount(); + return getDataTable(list); + } + + + @RequiresPermissions("project:activityConfig:view") + @GetMapping() + public String activityConfig() + { + return prefix + "/activityConfigList"; + } + + /** + * 查询活动配置列表 + */ + @RequiresPermissions("project:activityConfig:list") + @PostMapping("/list") + @ResponseBody + public TableDataInfo list(ActivityConfig activityConfig) + { + startPage(); + List list = activityConfigService.selectActivityConfigList(activityConfig); + return getDataTable(list); + } + + /** + * 查询活动配置对象 + */ + @RequiresPermissions("project:activityConfig:activityConfig") + @PostMapping("/activityConfig") + @ResponseBody + public ActivityConfig findActivityConfig(ActivityConfig activityConfig) + { + activityConfig = activityConfigService.findActivityConfig(activityConfig); + return activityConfig; + } + + /** + * 导出活动配置列表 + */ + @RequiresPermissions("project:activityConfig:export") + @Log(title = "活动配置", businessType = BusinessType.EXPORT) + @PostMapping("/export") + @ResponseBody + public AjaxResult export(ActivityConfig activityConfig) + { + List list = activityConfigService.selectActivityConfigList(activityConfig); + ExcelUtil util = new ExcelUtil(ActivityConfig.class); + return util.exportExcel(list, "活动配置"); + } + + /** + * 新增活动配置 + */ + @GetMapping("/add") + public String add() + { + return prefix + "/activityConfigAdd"; + } + /** + * 新增活动配置 + */ + @GetMapping(value = { "/add/{id}", "/add/" }) + public String add(@PathVariable(value = "id", required = false) Integer id, ModelMap mmap) + { + if (StringUtils.isNotNull(id)) + { + mmap.put("activityConfig", activityConfigService.selectActivityConfigById(id)); + } + return prefix + "/activityConfigAdd"; + } + + /** + * 新增保存活动配置 + */ + @RequiresPermissions("project:activityConfig:add") + @Log(title = "活动配置", businessType = BusinessType.INSERT) + @PostMapping("/add") + @ResponseBody + public AjaxResult addSave(ActivityConfig activityConfig) + { + SysUser sysUser = getSysUser(); + activityConfig.setCreateBy(sysUser.getUserName()); + if(!activityConfig.getType().equals(2) && !activityConfig.getType().equals(4) && activityConfig.getActivityNumber().equals(1)){ + return error("该任务不支持每天完成"); + } + return toAjax(activityConfigService.updateOrAddActivityConfig(activityConfig)); + } + + /** + * 修改活动配置 + */ + @GetMapping("/edit/{id}") + public String edit(@PathVariable("id") Integer id, ModelMap mmap) + { + ActivityConfig activityConfig = activityConfigService.selectActivityConfigById(id); + mmap.put("activityConfig", activityConfig); + return prefix + "/activityConfigEdit"; + } + + /** + * 修改保存活动配置 + */ + @RequiresPermissions("project:activityConfig:edit") + @Log(title = "活动配置", businessType = BusinessType.UPDATE) + @PostMapping("/edit") + @ResponseBody + public AjaxResult editSave(ActivityConfig activityConfig) + { + SysUser sysUser = getSysUser(); + activityConfig.setUpdateBy(sysUser.getUserName()); + return toAjax(activityConfigService.updateOrAddActivityConfig(activityConfig)); + } + + + /** + * 删除活动配置 + */ + @RequiresPermissions("project:activityConfig:remove") + @Log(title = "活动配置", businessType = BusinessType.DELETE) + @PostMapping( "/remove") + @ResponseBody + public AjaxResult remove(String ids) + { + return toAjax(activityConfigService.deleteActivityConfigByIds(ids)); + } + +} diff --git a/alive-admin/src/main/java/com/ruoyi/web/controller/ActivityLogController.java b/alive-admin/src/main/java/com/ruoyi/web/controller/ActivityLogController.java new file mode 100644 index 0000000..78ed984 --- /dev/null +++ b/alive-admin/src/main/java/com/ruoyi/web/controller/ActivityLogController.java @@ -0,0 +1,161 @@ +package com.ruoyi.web.controller; + +import com.ruoyi.common.utils.StringUtils; +import java.util.List; +import com.ruoyi.common.core.domain.entity.SysUser; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.system.domain.ActivityLog; +import com.ruoyi.system.service.ActivityLogService; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.utils.poi.ExcelUtil; + +/** + * 活动任务日志Controller + * + * @author HayDen + * @date 2024-04-24 + */ +@Controller +@RequestMapping("/project/activityLog") +public class ActivityLogController extends BaseController +{ + private String prefix = "project/activityLog"; + + @Autowired + private ActivityLogService activityLogService; + + @RequiresPermissions("project:activityLog:view") + @GetMapping() + public String activityLog() + { + return prefix + "/activityLogList"; + } + + /** + * 查询活动任务日志列表 + */ + @RequiresPermissions("project:activityLog:list") + @PostMapping("/list") + @ResponseBody + public TableDataInfo list(ActivityLog activityLog) + { + startPage(); + if(!org.apache.commons.lang3.StringUtils.isBlank(activityLog.getAddress())){ + activityLog.setAddress(activityLog.getAddress().toLowerCase()); + } + List list = activityLogService.selectActivityLogList(activityLog); + return getDataTable(list); + } + + /** + * 查询活动任务日志对象 + */ + @RequiresPermissions("project:activityLog:activityLog") + @PostMapping("/activityLog") + @ResponseBody + public ActivityLog findActivityLog(ActivityLog activityLog) + { + activityLog = activityLogService.findActivityLog(activityLog); + return activityLog; + } + + /** + * 导出活动任务日志列表 + */ + @RequiresPermissions("project:activityLog:export") + @Log(title = "活动任务日志", businessType = BusinessType.EXPORT) + @PostMapping("/export") + @ResponseBody + public AjaxResult export(ActivityLog activityLog) + { + List list = activityLogService.selectActivityLogList(activityLog); + ExcelUtil util = new ExcelUtil(ActivityLog.class); + return util.exportExcel(list, "活动任务日志"); + } + + /** + * 新增活动任务日志 + */ + @GetMapping("/add") + public String add() + { + return prefix + "/activityLogAdd"; + } + /** + * 新增活动任务日志 + */ + @GetMapping(value = { "/add/{id}", "/add/" }) + public String add(@PathVariable(value = "id", required = false) Integer id, ModelMap mmap) + { + if (StringUtils.isNotNull(id)) + { + mmap.put("activityLog", activityLogService.selectActivityLogById(id)); + } + return prefix + "/activityLogAdd"; + } + + /** + * 新增保存活动任务日志 + */ + @RequiresPermissions("project:activityLog:add") + @Log(title = "活动任务日志", businessType = BusinessType.INSERT) + @PostMapping("/add") + @ResponseBody + public AjaxResult addSave(ActivityLog activityLog) + { + SysUser sysUser = getSysUser(); + activityLog.setCreateBy(sysUser.getUserName()); + return toAjax(activityLogService.updateOrAddActivityLog(activityLog)); + } + + /** + * 修改活动任务日志 + */ + @GetMapping("/edit/{id}") + public String edit(@PathVariable("id") Integer id, ModelMap mmap) + { + ActivityLog activityLog = activityLogService.selectActivityLogById(id); + mmap.put("activityLog", activityLog); + return prefix + "/activityLogEdit"; + } + + /** + * 修改保存活动任务日志 + */ + @RequiresPermissions("project:activityLog:edit") + @Log(title = "活动任务日志", businessType = BusinessType.UPDATE) + @PostMapping("/edit") + @ResponseBody + public AjaxResult editSave(ActivityLog activityLog) + { + SysUser sysUser = getSysUser(); + activityLog.setUpdateBy(sysUser.getUserName()); + return toAjax(activityLogService.updateOrAddActivityLog(activityLog)); + } + + + /** + * 删除活动任务日志 + */ + @RequiresPermissions("project:activityLog:remove") + @Log(title = "活动任务日志", businessType = BusinessType.DELETE) + @PostMapping( "/remove") + @ResponseBody + public AjaxResult remove(String ids) + { + return toAjax(activityLogService.deleteActivityLogByIds(ids)); + } + +} diff --git a/alive-admin/src/main/java/com/ruoyi/web/controller/ActivityStatisticsController.java b/alive-admin/src/main/java/com/ruoyi/web/controller/ActivityStatisticsController.java new file mode 100644 index 0000000..d9e0375 --- /dev/null +++ b/alive-admin/src/main/java/com/ruoyi/web/controller/ActivityStatisticsController.java @@ -0,0 +1,161 @@ +package com.ruoyi.web.controller; + +import com.ruoyi.common.utils.StringUtils; +import java.util.List; +import com.ruoyi.common.core.domain.entity.SysUser; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.system.domain.ActivityStatistics; +import com.ruoyi.system.service.ActivityStatisticsService; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.utils.poi.ExcelUtil; + +/** + * 业绩统计Controller + * + * @author HayDen + * @date 2024-04-24 + */ +@Controller +@RequestMapping("/project/activityStatistics") +public class ActivityStatisticsController extends BaseController +{ + private String prefix = "project/activityStatistics"; + + @Autowired + private ActivityStatisticsService activityStatisticsService; + + @RequiresPermissions("project:activityStatistics:view") + @GetMapping() + public String activityStatistics() + { + return prefix + "/activityStatisticsList"; + } + + /** + * 查询业绩统计列表 + */ + @RequiresPermissions("project:activityStatistics:list") + @PostMapping("/list") + @ResponseBody + public TableDataInfo list(ActivityStatistics activityStatistics) + { + startPage(); + if(!org.apache.commons.lang3.StringUtils.isBlank(activityStatistics.getAddress())){ + activityStatistics.setAddress(activityStatistics.getAddress().toLowerCase()); + } + List list = activityStatisticsService.selectActivityStatisticsList(activityStatistics); + return getDataTable(list); + } + + /** + * 查询业绩统计对象 + */ + @RequiresPermissions("project:activityStatistics:activityStatistics") + @PostMapping("/activityStatistics") + @ResponseBody + public ActivityStatistics findActivityStatistics(ActivityStatistics activityStatistics) + { + activityStatistics = activityStatisticsService.findActivityStatistics(activityStatistics); + return activityStatistics; + } + + /** + * 导出业绩统计列表 + */ + @RequiresPermissions("project:activityStatistics:export") + @Log(title = "业绩统计", businessType = BusinessType.EXPORT) + @PostMapping("/export") + @ResponseBody + public AjaxResult export(ActivityStatistics activityStatistics) + { + List list = activityStatisticsService.selectActivityStatisticsList(activityStatistics); + ExcelUtil util = new ExcelUtil(ActivityStatistics.class); + return util.exportExcel(list, "业绩统计"); + } + + /** + * 新增业绩统计 + */ + @GetMapping("/add") + public String add() + { + return prefix + "/activityStatisticsAdd"; + } + /** + * 新增业绩统计 + */ + @GetMapping(value = { "/add/{id}", "/add/" }) + public String add(@PathVariable(value = "id", required = false) Integer id, ModelMap mmap) + { + if (StringUtils.isNotNull(id)) + { + mmap.put("activityStatistics", activityStatisticsService.selectActivityStatisticsById(id)); + } + return prefix + "/activityStatisticsAdd"; + } + + /** + * 新增保存业绩统计 + */ + @RequiresPermissions("project:activityStatistics:add") + @Log(title = "业绩统计", businessType = BusinessType.INSERT) + @PostMapping("/add") + @ResponseBody + public AjaxResult addSave(ActivityStatistics activityStatistics) + { + SysUser sysUser = getSysUser(); + activityStatistics.setCreateBy(sysUser.getUserName()); + return toAjax(activityStatisticsService.updateOrAddActivityStatistics(activityStatistics)); + } + + /** + * 修改业绩统计 + */ + @GetMapping("/edit/{id}") + public String edit(@PathVariable("id") Integer id, ModelMap mmap) + { + ActivityStatistics activityStatistics = activityStatisticsService.selectActivityStatisticsById(id); + mmap.put("activityStatistics", activityStatistics); + return prefix + "/activityStatisticsEdit"; + } + + /** + * 修改保存业绩统计 + */ + @RequiresPermissions("project:activityStatistics:edit") + @Log(title = "业绩统计", businessType = BusinessType.UPDATE) + @PostMapping("/edit") + @ResponseBody + public AjaxResult editSave(ActivityStatistics activityStatistics) + { + SysUser sysUser = getSysUser(); + activityStatistics.setUpdateBy(sysUser.getUserName()); + return toAjax(activityStatisticsService.updateOrAddActivityStatistics(activityStatistics)); + } + + + /** + * 删除业绩统计 + */ + @RequiresPermissions("project:activityStatistics:remove") + @Log(title = "业绩统计", businessType = BusinessType.DELETE) + @PostMapping( "/remove") + @ResponseBody + public AjaxResult remove(String ids) + { + return toAjax(activityStatisticsService.deleteActivityStatisticsByIds(ids)); + } + +} diff --git a/alive-admin/src/main/java/com/ruoyi/web/controller/CoinConfigController.java b/alive-admin/src/main/java/com/ruoyi/web/controller/CoinConfigController.java new file mode 100644 index 0000000..4ce7f89 --- /dev/null +++ b/alive-admin/src/main/java/com/ruoyi/web/controller/CoinConfigController.java @@ -0,0 +1,158 @@ +package com.ruoyi.web.controller; + +import com.ruoyi.common.utils.StringUtils; +import java.util.List; +import com.ruoyi.common.core.domain.entity.SysUser; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.system.domain.CoinConfig; +import com.ruoyi.system.service.CoinConfigService; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.utils.poi.ExcelUtil; + +/** + * 币种配置Controller + * + * @author HayDen + * @date 2024-05-27 + */ +@Controller +@RequestMapping("/project/coinConfig") +public class CoinConfigController extends BaseController +{ + private String prefix = "project/coinConfig"; + + @Autowired + private CoinConfigService coinConfigService; + + @RequiresPermissions("project:coinConfig:view") + @GetMapping() + public String coinConfig() + { + return prefix + "/coinConfigList"; + } + + /** + * 查询币种配置列表 + */ + @RequiresPermissions("project:coinConfig:list") + @PostMapping("/list") + @ResponseBody + public TableDataInfo list(CoinConfig coinConfig) + { + startPage(); + List list = coinConfigService.selectCoinConfigList(coinConfig); + return getDataTable(list); + } + + /** + * 查询币种配置对象 + */ + @RequiresPermissions("project:coinConfig:coinConfig") + @PostMapping("/coinConfig") + @ResponseBody + public CoinConfig findCoinConfig(CoinConfig coinConfig) + { + coinConfig = coinConfigService.findCoinConfig(coinConfig); + return coinConfig; + } + + /** + * 导出币种配置列表 + */ + @RequiresPermissions("project:coinConfig:export") + @Log(title = "币种配置", businessType = BusinessType.EXPORT) + @PostMapping("/export") + @ResponseBody + public AjaxResult export(CoinConfig coinConfig) + { + List list = coinConfigService.selectCoinConfigList(coinConfig); + ExcelUtil util = new ExcelUtil(CoinConfig.class); + return util.exportExcel(list, "币种配置"); + } + + /** + * 新增币种配置 + */ + @GetMapping("/add") + public String add() + { + return prefix + "/coinConfigAdd"; + } + /** + * 新增币种配置 + */ + @GetMapping(value = { "/add/{id}", "/add/" }) + public String add(@PathVariable(value = "id", required = false) Integer id, ModelMap mmap) + { + if (StringUtils.isNotNull(id)) + { + mmap.put("coinConfig", coinConfigService.selectCoinConfigById(id)); + } + return prefix + "/coinConfigAdd"; + } + + /** + * 新增保存币种配置 + */ + @RequiresPermissions("project:coinConfig:add") + @Log(title = "币种配置", businessType = BusinessType.INSERT) + @PostMapping("/add") + @ResponseBody + public AjaxResult addSave(CoinConfig coinConfig) + { + SysUser sysUser = getSysUser(); + coinConfig.setCreateBy(sysUser.getUserName()); + return toAjax(coinConfigService.updateOrAddCoinConfig(coinConfig)); + } + + /** + * 修改币种配置 + */ + @GetMapping("/edit/{id}") + public String edit(@PathVariable("id") Integer id, ModelMap mmap) + { + CoinConfig coinConfig = coinConfigService.selectCoinConfigById(id); + mmap.put("coinConfig", coinConfig); + return prefix + "/coinConfigEdit"; + } + + /** + * 修改保存币种配置 + */ + @RequiresPermissions("project:coinConfig:edit") + @Log(title = "币种配置", businessType = BusinessType.UPDATE) + @PostMapping("/edit") + @ResponseBody + public AjaxResult editSave(CoinConfig coinConfig) + { + SysUser sysUser = getSysUser(); + coinConfig.setUpdateBy(sysUser.getUserName()); + return toAjax(coinConfigService.updateOrAddCoinConfig(coinConfig)); + } + + + /** + * 删除币种配置 + */ + @RequiresPermissions("project:coinConfig:remove") + @Log(title = "币种配置", businessType = BusinessType.DELETE) + @PostMapping( "/remove") + @ResponseBody + public AjaxResult remove(String ids) + { + return toAjax(coinConfigService.deleteCoinConfigByIds(ids)); + } + +} diff --git a/alive-admin/src/main/java/com/ruoyi/web/controller/NodeAwardSettingController.java b/alive-admin/src/main/java/com/ruoyi/web/controller/NodeAwardSettingController.java new file mode 100644 index 0000000..5538aa9 --- /dev/null +++ b/alive-admin/src/main/java/com/ruoyi/web/controller/NodeAwardSettingController.java @@ -0,0 +1,169 @@ +package com.ruoyi.web.controller; + +import com.ruoyi.common.utils.StringUtils; + +import java.math.BigDecimal; +import java.util.List; +import com.ruoyi.common.core.domain.entity.SysUser; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.system.domain.NodeAwardSetting; +import com.ruoyi.system.service.NodeAwardSettingService; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.utils.poi.ExcelUtil; + +/** + * 节点奖励设置Controller + * + * @author HayDen + * @date 2024-02-24 + */ +@Controller +@RequestMapping("/project/nodeAwardSetting") +public class NodeAwardSettingController extends BaseController +{ + private String prefix = "project/nodeAwardSetting"; + + @Autowired + private NodeAwardSettingService nodeAwardSettingService; + + @RequiresPermissions("project:nodeAwardSetting:view") + @GetMapping() + public String nodeAwardSetting() + { + return prefix + "/nodeAwardSettingList"; + } + + /** + * 查询节点奖励设置列表 + */ + @RequiresPermissions("project:nodeAwardSetting:list") + @PostMapping("/list") + @ResponseBody + public TableDataInfo list(NodeAwardSetting nodeAwardSetting) + { + startPage(); + List list = nodeAwardSettingService.selectNodeAwardSettingList(nodeAwardSetting); + return getDataTable(list); + } + + /** + * 查询节点奖励设置对象 + */ + @RequiresPermissions("project:nodeAwardSetting:nodeAwardSetting") + @PostMapping("/nodeAwardSetting") + @ResponseBody + public NodeAwardSetting findNodeAwardSetting(NodeAwardSetting nodeAwardSetting) + { + nodeAwardSetting = nodeAwardSettingService.findNodeAwardSetting(nodeAwardSetting); + return nodeAwardSetting; + } + + /** + * 导出节点奖励设置列表 + */ + @RequiresPermissions("project:nodeAwardSetting:export") + @Log(title = "节点奖励设置", businessType = BusinessType.EXPORT) + @PostMapping("/export") + @ResponseBody + public AjaxResult export(NodeAwardSetting nodeAwardSetting) + { + List list = nodeAwardSettingService.selectNodeAwardSettingList(nodeAwardSetting); + ExcelUtil util = new ExcelUtil(NodeAwardSetting.class); + return util.exportExcel(list, "节点奖励设置"); + } + + /** + * 新增节点奖励设置 + */ + @GetMapping("/add") + public String add() + { + return prefix + "/nodeAwardSettingAdd"; + } + /** + * 新增节点奖励设置 + */ + @GetMapping(value = { "/add/{id}", "/add/" }) + public String add(@PathVariable(value = "id", required = false) Integer id, ModelMap mmap) + { + if (StringUtils.isNotNull(id)) + { + mmap.put("nodeAwardSetting", nodeAwardSettingService.selectNodeAwardSettingById(id)); + } + return prefix + "/nodeAwardSettingAdd"; + } + + /** + * 新增保存节点奖励设置 + */ + @RequiresPermissions("project:nodeAwardSetting:add") + @Log(title = "节点奖励设置", businessType = BusinessType.INSERT) + @PostMapping("/add") + @ResponseBody + public AjaxResult addSave(NodeAwardSetting nodeAwardSetting) + { + SysUser sysUser = getSysUser(); + nodeAwardSetting.setCreateBy(sysUser.getUserName()); + return toAjax(nodeAwardSettingService.updateOrAddNodeAwardSetting(nodeAwardSetting)); + } + + /** + * 修改节点奖励设置 + */ + @GetMapping("/edit/{id}") + public String edit(@PathVariable("id") Integer id, ModelMap mmap) + { + NodeAwardSetting nodeAwardSetting = nodeAwardSettingService.findNodeAwardSetting(new NodeAwardSetting().setNodeSettingId(id)); + if(nodeAwardSetting != null){ + nodeAwardSetting.setRebate(new BigDecimal(nodeAwardSetting.getRebate().stripTrailingZeros().toPlainString())); + nodeAwardSetting.setRbitAmount(new BigDecimal(nodeAwardSetting.getRbitAmount().stripTrailingZeros().toPlainString())); + nodeAwardSetting.setRbitOne(new BigDecimal(nodeAwardSetting.getRbitOne().stripTrailingZeros().toPlainString())); + nodeAwardSetting.setRebateTwo(new BigDecimal(nodeAwardSetting.getRebateTwo().stripTrailingZeros().toPlainString())); + nodeAwardSetting.setNftAmount(new BigDecimal(nodeAwardSetting.getNftAmount().stripTrailingZeros().toPlainString())); + nodeAwardSetting.setNftOne(new BigDecimal(nodeAwardSetting.getNftOne().stripTrailingZeros().toPlainString())); + nodeAwardSetting.setNftTwo(new BigDecimal(nodeAwardSetting.getNftTwo().stripTrailingZeros().toPlainString())); + } + mmap.put("nodeAwardSetting", nodeAwardSetting); + return prefix + "/nodeAwardSettingEdit"; + } + + /** + * 修改保存节点奖励设置 + */ + @RequiresPermissions("project:nodeAwardSetting:edit") + @Log(title = "节点奖励设置", businessType = BusinessType.UPDATE) + @PostMapping("/edit") + @ResponseBody + public AjaxResult editSave(NodeAwardSetting nodeAwardSetting) + { + SysUser sysUser = getSysUser(); + nodeAwardSetting.setUpdateBy(sysUser.getUserName()); + return toAjax(nodeAwardSettingService.updateOrAddNodeAwardSetting(nodeAwardSetting)); + } + + + /** + * 删除节点奖励设置 + */ + @RequiresPermissions("project:nodeAwardSetting:remove") + @Log(title = "节点奖励设置", businessType = BusinessType.DELETE) + @PostMapping( "/remove") + @ResponseBody + public AjaxResult remove(String ids) + { + return toAjax(nodeAwardSettingService.deleteNodeAwardSettingByIds(ids)); + } + +} diff --git a/alive-admin/src/main/java/com/ruoyi/web/controller/NodeBuyLogController.java b/alive-admin/src/main/java/com/ruoyi/web/controller/NodeBuyLogController.java new file mode 100644 index 0000000..7dfcf76 --- /dev/null +++ b/alive-admin/src/main/java/com/ruoyi/web/controller/NodeBuyLogController.java @@ -0,0 +1,220 @@ +package com.ruoyi.web.controller; + +import com.ruoyi.common.utils.StringUtils; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; +import com.ruoyi.common.core.domain.entity.SysUser; +import com.ruoyi.system.domain.NodeSetting; +import com.ruoyi.system.domain.TMember; +import com.ruoyi.system.service.NodeSettingService; +import com.ruoyi.system.service.TMemberService; +import com.ruoyi.system.utils.NumberUtil; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.system.domain.NodeBuyLog; +import com.ruoyi.system.service.NodeBuyLogService; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.utils.poi.ExcelUtil; + +/** + * 节点认购记录Controller + * + * @author HayDen + * @date 2024-01-08 + */ +@Controller +@RequestMapping("/project/nodeSubscribe") +public class NodeBuyLogController extends BaseController +{ + private String prefix = "project/nodeBuyLog"; + + @Autowired + private NodeBuyLogService nodeSubscribeService; + + @Autowired + private NodeSettingService nodeSettingService; + + @Autowired + private TMemberService tMemberService; + + @RequiresPermissions("project:nodeSubscribe:view") + @GetMapping() + public String nodeSubscribe() + { + return prefix + "/nodeSubscribeList"; + } + + /** + * 查询节点认购记录列表 + */ + @RequiresPermissions("project:nodeSubscribe:list") + @PostMapping("/list") + @ResponseBody + public TableDataInfo list(NodeBuyLog nodeSubscribe) + { + if(!StringUtils.isEmpty(nodeSubscribe.getTopAddress())){ + TMember tMember = tMemberService.findTMember(new TMember().setAccount(nodeSubscribe.getTopAddress())); + if(tMember == null || tMember.getTopUser().equals(0)){ + return getDataTable(new ArrayList<>()); + } + nodeSubscribe.setTopUserId(tMember.getId()); + } + startPage(); + List list = nodeSubscribeService.selectNodeSubscribeList(nodeSubscribe); + return getDataTable(list); + } + + /** + * 查询节点认购记录对象 + */ + @RequiresPermissions("project:nodeSubscribe:nodeSubscribe") + @PostMapping("/nodeSubscribe") + @ResponseBody + public NodeBuyLog findNodeSubscribe(NodeBuyLog nodeSubscribe) + { + nodeSubscribe = nodeSubscribeService.findNodeSubscribe(nodeSubscribe); + return nodeSubscribe; + } + + /** + * 导出节点认购记录列表 + */ + @RequiresPermissions("project:nodeSubscribe:export") + @Log(title = "节点认购记录", businessType = BusinessType.EXPORT) + @PostMapping("/export") + @ResponseBody + public AjaxResult export(NodeBuyLog nodeSubscribe) + { + List list = nodeSubscribeService.selectNodeSubscribeList(nodeSubscribe); + ExcelUtil util = new ExcelUtil(NodeBuyLog.class); + return util.exportExcel(list, "节点认购记录"); + } + + /** + * 新增节点认购记录 + */ + @GetMapping("/add") + public String add() + { + return prefix + "/nodeSubscribeAdd"; + } + /** + * 新增节点认购记录 + */ + @GetMapping(value = { "/add/{id}", "/add/" }) + public String add(@PathVariable(value = "id", required = false) Integer id, ModelMap mmap) + { + if (StringUtils.isNotNull(id)) + { + mmap.put("nodeSubscribe", nodeSubscribeService.selectNodeSubscribeById(id)); + } + return prefix + "/nodeSubscribeAdd"; + } + + /** + * 新增保存节点认购记录 + */ + @RequiresPermissions("project:nodeSubscribe:add") + @Log(title = "节点认购记录", businessType = BusinessType.INSERT) + @PostMapping("/add") + @ResponseBody + public AjaxResult addSave(NodeBuyLog nodeSubscribe) + { + SysUser sysUser = getSysUser(); + nodeSubscribe.setCreateBy(sysUser.getUserName()); + nodeSubscribe.setAddress(nodeSubscribe.getWalletAddress().toLowerCase()); + TMember tMember = tMemberService.findTMember(new TMember().setAccount(nodeSubscribe.getAddress())); + if(tMember == null){ + return error("该地址未注册"); + } + nodeSubscribe.setInputAddress("无"); + nodeSubscribe.setOutAddress("无"); + //查询当前生效的节点 + NodeSetting nodeSetting = nodeSettingService.findNodeSetting(new NodeSetting().setStatus(1)); + if(nodeSetting == null){ + return error("当前没有可分配的NFT"); + } + nodeSubscribe.setNodeSettingId(nodeSetting.getId().intValue()); + nodeSubscribe.setOrderNumber("0x000000000000"); + nodeSubscribe.setIllustrate("后台手动分配"); + nodeSubscribe.setStatus(2); + nodeSubscribe.setUserId(tMember.getId().intValue()); + nodeSubscribe.setPayCoin("USDT"); + return toAjax(nodeSubscribeService.updateOrAddNodeSubscribe(nodeSubscribe)); + } + + /** + * 修改节点认购记录 + */ + @GetMapping("/edit/{id}") + public String edit(@PathVariable("id") Integer id, ModelMap mmap) + { + NodeBuyLog nodeSubscribe = nodeSubscribeService.selectNodeSubscribeById(id); + mmap.put("nodeSubscribe", nodeSubscribe); + return prefix + "/nodeSubscribeEdit"; + } + + /** + * 修改保存节点认购记录 + */ + @RequiresPermissions("project:nodeSubscribe:edit") + @Log(title = "节点认购记录", businessType = BusinessType.UPDATE) + @PostMapping("/edit") + @ResponseBody + public AjaxResult editSave(NodeBuyLog nodeSubscribe) + { + SysUser sysUser = getSysUser(); + nodeSubscribe.setUpdateBy(sysUser.getUserName()); + NodeBuyLog log = nodeSubscribeService.findNodeSubscribe(new NodeBuyLog().setHash(nodeSubscribe.getHash())); + if(log != null){ + return error("hash不能重复绑定"); + } + log = nodeSubscribeService.selectNodeSubscribeById(nodeSubscribe.getId().intValue()); + if(log == null || !org.apache.commons.lang3.StringUtils.isBlank(log.getHash())){ + return error("无法重复绑定hash"); + } + nodeSubscribe.setStatus(2); + nodeSubscribe.setCreateTime(new Date()); + return toAjax(nodeSubscribeService.updateOrAddNodeSubscribe(nodeSubscribe)); + } + + @Log(title = "结算数据", businessType = BusinessType.UPDATE) + @PostMapping( "/settlement") + @ResponseBody + public AjaxResult settlement(String ids) + { + System.out.printf(ids); + String[] arr = ids.split(","); + Integer code = nodeSubscribeService.countLogTop(arr); + if(arr.length != code){ + return error("只有未结算的数据才能结算哦!"); + } + return toAjax(nodeSubscribeService.updateBuyLogTop(arr)); + } + + /** + * 删除节点认购记录 + */ + @RequiresPermissions("project:nodeSubscribe:remove") + @Log(title = "节点认购记录", businessType = BusinessType.DELETE) + @PostMapping( "/remove") + @ResponseBody + public AjaxResult remove(String ids) + { + return toAjax(nodeSubscribeService.deleteNodeSubscribeByIds(ids)); + } + +} diff --git a/alive-admin/src/main/java/com/ruoyi/web/controller/NodeController.java b/alive-admin/src/main/java/com/ruoyi/web/controller/NodeController.java new file mode 100644 index 0000000..8d35831 --- /dev/null +++ b/alive-admin/src/main/java/com/ruoyi/web/controller/NodeController.java @@ -0,0 +1,161 @@ +package com.ruoyi.web.controller; + +import com.ruoyi.common.utils.StringUtils; +import java.util.List; +import com.ruoyi.common.core.domain.entity.SysUser; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.system.domain.Node; +import com.ruoyi.system.service.NodeService; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.utils.poi.ExcelUtil; + +/** + * 用户节点Controller + * + * @author HayDen + * @date 2024-01-11 + */ +@Controller +@RequestMapping("/project/node") +public class NodeController extends BaseController +{ + private String prefix = "project/node"; + + @Autowired + private NodeService nodeService; + + @RequiresPermissions("project:node:view") + @GetMapping() + public String node() + { + return prefix + "/nodeList"; + } + + /** + * 查询用户节点列表 + */ + @RequiresPermissions("project:node:list") + @PostMapping("/list") + @ResponseBody + public TableDataInfo list(Node node) + { + if(!StringUtils.isEmpty(node.getAddress())){ + node.setAddress(node.getAddress().toLowerCase()); + } + startPage(); + List list = nodeService.selectNodeList(node); + return getDataTable(list); + } + + /** + * 查询用户节点对象 + */ + @RequiresPermissions("project:node:node") + @PostMapping("/node") + @ResponseBody + public Node findNode(Node node) + { + node = nodeService.findNode(node); + return node; + } + + /** + * 导出用户节点列表 + */ + @RequiresPermissions("project:node:export") + @Log(title = "用户节点", businessType = BusinessType.EXPORT) + @PostMapping("/export") + @ResponseBody + public AjaxResult export(Node node) + { + List list = nodeService.selectNodeList(node); + ExcelUtil util = new ExcelUtil(Node.class); + return util.exportExcel(list, "用户节点"); + } + + /** + * 新增用户节点 + */ + @GetMapping("/add") + public String add() + { + return prefix + "/nodeAdd"; + } + /** + * 新增用户节点 + */ + @GetMapping(value = { "/add/{id}", "/add/" }) + public String add(@PathVariable(value = "id", required = false) Integer id, ModelMap mmap) + { + if (StringUtils.isNotNull(id)) + { + mmap.put("node", nodeService.selectNodeById(id)); + } + return prefix + "/nodeAdd"; + } + + /** + * 新增保存用户节点 + */ + @RequiresPermissions("project:node:add") + @Log(title = "用户节点", businessType = BusinessType.INSERT) + @PostMapping("/add") + @ResponseBody + public AjaxResult addSave(Node node) + { + SysUser sysUser = getSysUser(); + node.setCreateBy(sysUser.getUserName()); + return toAjax(nodeService.updateOrAddNode(node)); + } + + /** + * 修改用户节点 + */ + @GetMapping("/edit/{id}") + public String edit(@PathVariable("id") Integer id, ModelMap mmap) + { + Node node = nodeService.selectNodeById(id); + mmap.put("node", node); + return prefix + "/nodeEdit"; + } + + /** + * 修改保存用户节点 + */ + @RequiresPermissions("project:node:edit") + @Log(title = "用户节点", businessType = BusinessType.UPDATE) + @PostMapping("/edit") + @ResponseBody + public AjaxResult editSave(Node node) + { + SysUser sysUser = getSysUser(); + node.setUpdateBy(sysUser.getUserName()); + return toAjax(nodeService.updateOrAddNode(node)); + } + + + /** + * 删除用户节点 + */ + @RequiresPermissions("project:node:remove") + @Log(title = "用户节点", businessType = BusinessType.DELETE) + @PostMapping( "/remove") + @ResponseBody + public AjaxResult remove(String ids) + { + return toAjax(nodeService.deleteNodeByIds(ids)); + } + +} diff --git a/alive-admin/src/main/java/com/ruoyi/web/controller/NodePriceConfigController.java b/alive-admin/src/main/java/com/ruoyi/web/controller/NodePriceConfigController.java new file mode 100644 index 0000000..14dcef3 --- /dev/null +++ b/alive-admin/src/main/java/com/ruoyi/web/controller/NodePriceConfigController.java @@ -0,0 +1,187 @@ +package com.ruoyi.web.controller; + +import com.ruoyi.common.utils.StringUtils; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import com.ruoyi.common.core.domain.entity.SysUser; +import com.ruoyi.system.service.NodeSettingService; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.system.domain.NodePriceConfig; +import com.ruoyi.system.service.NodePriceConfigService; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.utils.poi.ExcelUtil; + +import javax.annotation.Resource; + +/** + * 节点价格区间配置Controller + * + * @author HayDen + * @date 2024-01-08 + */ +@Controller +@RequestMapping("/project/nodePriceConfig") +public class NodePriceConfigController extends BaseController +{ + private String prefix = "project/nodePriceConfig"; + + @Autowired + private NodePriceConfigService nodePriceConfigService; + + @Resource + private NodeSettingService nodeSettingService; + + public Map map = new HashMap<>(); + + @RequiresPermissions("project:nodePriceConfig:view") + @GetMapping() + public String nodePriceConfig(Long id) + { + SysUser sysUser = getSysUser(); + map.put(sysUser.getUserId(),id); + return prefix + "/nodePriceConfigList"; + } + + /** + * 查询节点价格区间配置列表 + */ + @RequiresPermissions("project:nodePriceConfig:list") + @PostMapping("/list") + @ResponseBody + public TableDataInfo list(NodePriceConfig nodePriceConfig) + { + startPage(); + SysUser sysUser = getSysUser(); + nodePriceConfig.setNodeSettingId(map.get(sysUser.getUserId()).intValue()); + List list = nodePriceConfigService.selectNodePriceConfigList(nodePriceConfig); + return getDataTable(list); + } + + /** + * 查询节点价格区间配置对象 + */ + @RequiresPermissions("project:nodePriceConfig:nodePriceConfig") + @PostMapping("/nodePriceConfig") + @ResponseBody + public NodePriceConfig findNodePriceConfig(NodePriceConfig nodePriceConfig) + { + nodePriceConfig = nodePriceConfigService.findNodePriceConfig(nodePriceConfig); + return nodePriceConfig; + } + + /** + * 导出节点价格区间配置列表 + */ + @RequiresPermissions("project:nodePriceConfig:export") + @Log(title = "节点价格区间配置", businessType = BusinessType.EXPORT) + @PostMapping("/export") + @ResponseBody + public AjaxResult export(NodePriceConfig nodePriceConfig) + { + List list = nodePriceConfigService.selectNodePriceConfigList(nodePriceConfig); + ExcelUtil util = new ExcelUtil(NodePriceConfig.class); + return util.exportExcel(list, "节点价格区间配置"); + } + + /** + * 新增节点价格区间配置 + */ + @GetMapping("/add") + public String add() + { + return prefix + "/nodePriceConfigAdd"; + } + /** + * 新增节点价格区间配置 + */ + @GetMapping(value = { "/add/{id}", "/add/" }) + public String add(@PathVariable(value = "id", required = false) Integer id, ModelMap mmap) + { + if (StringUtils.isNotNull(id)) + { + mmap.put("nodePriceConfig", nodePriceConfigService.selectNodePriceConfigById(id)); + } + return prefix + "/nodePriceConfigAdd"; + } + + /** + * 新增保存节点价格区间配置 + */ + @RequiresPermissions("project:nodePriceConfig:add") + @Log(title = "节点价格区间配置", businessType = BusinessType.INSERT) + @PostMapping("/add") + @ResponseBody + public AjaxResult addSave(NodePriceConfig nodePriceConfig) + { + SysUser sysUser = getSysUser(); + if(nodeSettingService.countPriceConfig(nodePriceConfig.getStartNum(),nodePriceConfig.getEndNum(),null,map.get(sysUser.getUserId()).intValue()) > 0){ + return error("该区间的配置已存在"); + } + if(nodePriceConfig.getStartNum() >= nodePriceConfig.getEndNum()){ + return error("配置区间错误"); + } + nodePriceConfig.setNodeSettingId(map.get(sysUser.getUserId()).intValue()); + nodePriceConfig.setCreateBy(sysUser.getUserName()); + return toAjax(nodePriceConfigService.updateOrAddNodePriceConfig(nodePriceConfig)); + } + + /** + * 修改节点价格区间配置 + */ + @GetMapping("/edit/{id}") + public String edit(@PathVariable("id") Integer id, ModelMap mmap) + { + NodePriceConfig nodePriceConfig = nodePriceConfigService.selectNodePriceConfigById(id); + mmap.put("nodePriceConfig", nodePriceConfig); + return prefix + "/nodePriceConfigEdit"; + } + + /** + * 修改保存节点价格区间配置 + */ + @RequiresPermissions("project:nodePriceConfig:edit") + @Log(title = "节点价格区间配置", businessType = BusinessType.UPDATE) + @PostMapping("/edit") + @ResponseBody + public AjaxResult editSave(NodePriceConfig nodePriceConfig) + { + SysUser sysUser = getSysUser(); + if(nodeSettingService.countPriceConfig(nodePriceConfig.getStartNum(),nodePriceConfig.getEndNum(),nodePriceConfig.getId().intValue(),map.get(sysUser.getUserId()).intValue()) > 0){ + return error("该区间的配置已存在"); + } + if(nodePriceConfig.getStartNum() >= nodePriceConfig.getEndNum()){ + return error("配置区间错误"); + } + nodePriceConfig.setUpdateBy(sysUser.getUserName()); + return toAjax(nodePriceConfigService.updateOrAddNodePriceConfig(nodePriceConfig)); + } + + + /** + * 删除节点价格区间配置 + */ + @RequiresPermissions("project:nodePriceConfig:remove") + @Log(title = "节点价格区间配置", businessType = BusinessType.DELETE) + @PostMapping( "/remove") + @ResponseBody + public AjaxResult remove(String ids) + { + return toAjax(nodePriceConfigService.deleteNodePriceConfigByIds(ids)); + } + +} diff --git a/alive-admin/src/main/java/com/ruoyi/web/controller/NodeSettingController.java b/alive-admin/src/main/java/com/ruoyi/web/controller/NodeSettingController.java new file mode 100644 index 0000000..216a5d0 --- /dev/null +++ b/alive-admin/src/main/java/com/ruoyi/web/controller/NodeSettingController.java @@ -0,0 +1,193 @@ +package com.ruoyi.web.controller; + +import com.ruoyi.common.utils.StringUtils; + +import java.math.BigDecimal; +import java.util.List; +import com.ruoyi.common.core.domain.entity.SysUser; +import com.ruoyi.system.domain.NodeAwardSetting; +import com.ruoyi.system.service.NodeAwardSettingService; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.system.domain.NodeSetting; +import com.ruoyi.system.service.NodeSettingService; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.utils.poi.ExcelUtil; + +/** + * 节点设置Controller + * + * @author HayDen + * @date 2024-01-08 + */ +@Controller +@RequestMapping("/project/nodeSetting") +public class NodeSettingController extends BaseController +{ + private String prefix = "project/nodeSetting"; + + @Autowired + private NodeSettingService nodeSettingService; + + @Autowired + private NodeAwardSettingService nodeAwardSettingService; + + + @RequiresPermissions("project:nodeSetting:view") + @GetMapping() + public String nodeSetting() + { + return prefix + "/nodeSettingList"; + } + + /** + * 查询节点设置列表 + */ + @RequiresPermissions("project:nodeSetting:list") + @PostMapping("/list") + @ResponseBody + public TableDataInfo list(NodeSetting nodeSetting) + { + startPage(); + List list = nodeSettingService.selectNodeSettingList(nodeSetting); + return getDataTable(list); + } + + /** + * 查询节点设置对象 + */ + @RequiresPermissions("project:nodeSetting:nodeSetting") + @PostMapping("/nodeSetting") + @ResponseBody + public NodeSetting findNodeSetting(NodeSetting nodeSetting) + { + nodeSetting = nodeSettingService.findNodeSetting(nodeSetting); + return nodeSetting; + } + + /** + * 导出节点设置列表 + */ + @RequiresPermissions("project:nodeSetting:export") + @Log(title = "节点设置", businessType = BusinessType.EXPORT) + @PostMapping("/export") + @ResponseBody + public AjaxResult export(NodeSetting nodeSetting) + { + List list = nodeSettingService.selectNodeSettingList(nodeSetting); + ExcelUtil util = new ExcelUtil(NodeSetting.class); + return util.exportExcel(list, "节点设置"); + } + + /** + * 新增节点设置 + */ + @GetMapping("/add") + public String add() + { + return prefix + "/nodeSettingAdd"; + } + /** + * 新增节点设置 + */ + @GetMapping(value = { "/add/{id}", "/add/" }) + public String add(@PathVariable(value = "id", required = false) Integer id, ModelMap mmap) + { + if (StringUtils.isNotNull(id)) + { + mmap.put("nodeSetting", nodeSettingService.selectNodeSettingById(id)); + } + return prefix + "/nodeSettingAdd"; + } + + /** + * 新增保存节点设置 + */ + @RequiresPermissions("project:nodeSetting:add") + @Log(title = "节点设置", businessType = BusinessType.INSERT) + @PostMapping("/add") + @ResponseBody + public AjaxResult addSave(NodeSetting nodeSetting) + { + nodeSetting.setNodeName(nodeSetting.getNodeNamePs()); + if(nodeSettingService.findNodeSetting(new NodeSetting().setNodeGrade(nodeSetting.getNodeGrade())) != null){ + return error("该等级的盒子已存在"); + } + if(nodeSetting.getStatus() == 1 && nodeSettingService.findNodeSetting(new NodeSetting().setStatus(1)) != null){ + return error("只能同时存在一个可销售盒子"); + } + SysUser sysUser = getSysUser(); + nodeSetting.setCreateBy(sysUser.getUserName()); + nodeSettingService.updateOrAddNodeSetting(nodeSetting); + //开始创建奖励配置 + NodeAwardSetting nodeAwardSetting = new NodeAwardSetting(); + nodeAwardSetting.setNodeSettingId(nodeSetting.getId().intValue()); + nodeAwardSetting.setRebate(BigDecimal.ZERO); + nodeAwardSetting.setRbitAmount(BigDecimal.ZERO); + nodeAwardSetting.setRbitOne(BigDecimal.ZERO); + nodeAwardSetting.setNftAmount(BigDecimal.ZERO); + nodeAwardSetting.setNftOne(BigDecimal.ZERO); + nodeAwardSetting.setNftTwo(BigDecimal.ZERO); + nodeAwardSettingService.updateOrAddNodeAwardSetting(nodeAwardSetting); + return toAjax(1); + } + + /** + * 修改节点设置 + */ + @GetMapping("/edit/{id}") + public String edit(@PathVariable("id") Integer id, ModelMap mmap) + { + NodeSetting nodeSetting = nodeSettingService.selectNodeSettingById(id); + nodeSetting.setNodeNamePs(nodeSetting.getNodeName()); + mmap.put("nodeSetting", nodeSetting); + return prefix + "/nodeSettingEdit"; + } + + /** + * 修改保存节点设置 + */ + @RequiresPermissions("project:nodeSetting:edit") + @Log(title = "节点设置", businessType = BusinessType.UPDATE) + @PostMapping("/edit") + @ResponseBody + public AjaxResult editSave(NodeSetting nodeSetting) + { + if(nodeSetting.getStatus() == 1){ + NodeSetting nod = nodeSettingService.findNodeSetting(new NodeSetting().setStatus(1)); + if(nod != null && !nod.getId().equals(nodeSetting.getId())){ + return error("只能同时存在一个可销售盒子"); + } + } + nodeSetting.setNodeName(nodeSetting.getNodeNamePs()); + SysUser sysUser = getSysUser(); + nodeSetting.setUpdateBy(sysUser.getUserName()); + return toAjax(nodeSettingService.updateOrAddNodeSetting(nodeSetting)); + } + + + + /** + * 删除节点设置 + */ + @RequiresPermissions("project:nodeSetting:remove") + @Log(title = "节点设置", businessType = BusinessType.DELETE) + @PostMapping( "/remove") + @ResponseBody + public AjaxResult remove(String ids) + { + return toAjax(nodeSettingService.deleteNodeSettingByIds(ids)); + } + +} diff --git a/alive-admin/src/main/java/com/ruoyi/web/controller/NodeTaskController.java b/alive-admin/src/main/java/com/ruoyi/web/controller/NodeTaskController.java new file mode 100644 index 0000000..c5f3185 --- /dev/null +++ b/alive-admin/src/main/java/com/ruoyi/web/controller/NodeTaskController.java @@ -0,0 +1,158 @@ +package com.ruoyi.web.controller; + +import com.ruoyi.common.utils.StringUtils; +import java.util.List; +import com.ruoyi.common.core.domain.entity.SysUser; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.system.domain.NodeTask; +import com.ruoyi.system.service.NodeTaskService; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.utils.poi.ExcelUtil; + +/** + * NEER任务配置Controller + * + * @author HayDen + * @date 2024-02-24 + */ +@Controller +@RequestMapping("/project/nodeTask") +public class NodeTaskController extends BaseController +{ + private String prefix = "project/nodeTask"; + + @Autowired + private NodeTaskService nodeTaskService; + + @RequiresPermissions("project:nodeTask:view") + @GetMapping() + public String nodeTask() + { + return prefix + "/nodeTaskList"; + } + + /** + * 查询NEER任务配置列表 + */ + @RequiresPermissions("project:nodeTask:list") + @PostMapping("/list") + @ResponseBody + public TableDataInfo list(NodeTask nodeTask) + { + startPage(); + List list = nodeTaskService.selectNodeTaskList(nodeTask); + return getDataTable(list); + } + + /** + * 查询NEER任务配置对象 + */ + @RequiresPermissions("project:nodeTask:nodeTask") + @PostMapping("/nodeTask") + @ResponseBody + public NodeTask findNodeTask(NodeTask nodeTask) + { + nodeTask = nodeTaskService.findNodeTask(nodeTask); + return nodeTask; + } + + /** + * 导出NEER任务配置列表 + */ + @RequiresPermissions("project:nodeTask:export") + @Log(title = "NEER任务配置", businessType = BusinessType.EXPORT) + @PostMapping("/export") + @ResponseBody + public AjaxResult export(NodeTask nodeTask) + { + List list = nodeTaskService.selectNodeTaskList(nodeTask); + ExcelUtil util = new ExcelUtil(NodeTask.class); + return util.exportExcel(list, "NEER任务配置"); + } + + /** + * 新增NEER任务配置 + */ + @GetMapping("/add") + public String add() + { + return prefix + "/nodeTaskAdd"; + } + /** + * 新增NEER任务配置 + */ + @GetMapping(value = { "/add/{id}", "/add/" }) + public String add(@PathVariable(value = "id", required = false) Integer id, ModelMap mmap) + { + if (StringUtils.isNotNull(id)) + { + mmap.put("nodeTask", nodeTaskService.selectNodeTaskById(id)); + } + return prefix + "/nodeTaskAdd"; + } + + /** + * 新增保存NEER任务配置 + */ + @RequiresPermissions("project:nodeTask:add") + @Log(title = "NEER任务配置", businessType = BusinessType.INSERT) + @PostMapping("/add") + @ResponseBody + public AjaxResult addSave(NodeTask nodeTask) + { + SysUser sysUser = getSysUser(); + nodeTask.setCreateBy(sysUser.getUserName()); + return toAjax(nodeTaskService.updateOrAddNodeTask(nodeTask)); + } + + /** + * 修改NEER任务配置 + */ + @GetMapping("/edit/{id}") + public String edit(@PathVariable("id") Integer id, ModelMap mmap) + { + NodeTask nodeTask = nodeTaskService.selectNodeTaskById(id); + mmap.put("nodeTask", nodeTask); + return prefix + "/nodeTaskEdit"; + } + + /** + * 修改保存NEER任务配置 + */ + @RequiresPermissions("project:nodeTask:edit") + @Log(title = "NEER任务配置", businessType = BusinessType.UPDATE) + @PostMapping("/edit") + @ResponseBody + public AjaxResult editSave(NodeTask nodeTask) + { + SysUser sysUser = getSysUser(); + nodeTask.setUpdateBy(sysUser.getUserName()); + return toAjax(nodeTaskService.updateOrAddNodeTask(nodeTask)); + } + + + /** + * 删除NEER任务配置 + */ + @RequiresPermissions("project:nodeTask:remove") + @Log(title = "NEER任务配置", businessType = BusinessType.DELETE) + @PostMapping( "/remove") + @ResponseBody + public AjaxResult remove(String ids) + { + return toAjax(nodeTaskService.deleteNodeTaskByIds(ids)); + } + +} diff --git a/alive-admin/src/main/java/com/ruoyi/web/controller/NodeTaskLogController.java b/alive-admin/src/main/java/com/ruoyi/web/controller/NodeTaskLogController.java new file mode 100644 index 0000000..cd5d8b0 --- /dev/null +++ b/alive-admin/src/main/java/com/ruoyi/web/controller/NodeTaskLogController.java @@ -0,0 +1,158 @@ +package com.ruoyi.web.controller; + +import com.ruoyi.common.utils.StringUtils; +import java.util.List; +import com.ruoyi.common.core.domain.entity.SysUser; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.system.domain.NodeTaskLog; +import com.ruoyi.system.service.NodeTaskLogService; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.utils.poi.ExcelUtil; + +/** + * 我的任务奖励Controller + * + * @author HayDen + * @date 2024-02-24 + */ +@Controller +@RequestMapping("/project/nodeTaskLog") +public class NodeTaskLogController extends BaseController +{ + private String prefix = "project/nodeTaskLog"; + + @Autowired + private NodeTaskLogService nodeTaskLogService; + + @RequiresPermissions("project:nodeTaskLog:view") + @GetMapping() + public String nodeTaskLog() + { + return prefix + "/nodeTaskLogList"; + } + + /** + * 查询我的任务奖励列表 + */ + @RequiresPermissions("project:nodeTaskLog:list") + @PostMapping("/list") + @ResponseBody + public TableDataInfo list(NodeTaskLog nodeTaskLog) + { + startPage(); + List list = nodeTaskLogService.selectNodeTaskLogList(nodeTaskLog); + return getDataTable(list); + } + + /** + * 查询我的任务奖励对象 + */ + @RequiresPermissions("project:nodeTaskLog:nodeTaskLog") + @PostMapping("/nodeTaskLog") + @ResponseBody + public NodeTaskLog findNodeTaskLog(NodeTaskLog nodeTaskLog) + { + nodeTaskLog = nodeTaskLogService.findNodeTaskLog(nodeTaskLog); + return nodeTaskLog; + } + + /** + * 导出我的任务奖励列表 + */ + @RequiresPermissions("project:nodeTaskLog:export") + @Log(title = "我的任务奖励", businessType = BusinessType.EXPORT) + @PostMapping("/export") + @ResponseBody + public AjaxResult export(NodeTaskLog nodeTaskLog) + { + List list = nodeTaskLogService.selectNodeTaskLogList(nodeTaskLog); + ExcelUtil util = new ExcelUtil(NodeTaskLog.class); + return util.exportExcel(list, "我的任务奖励"); + } + + /** + * 新增我的任务奖励 + */ + @GetMapping("/add") + public String add() + { + return prefix + "/nodeTaskLogAdd"; + } + /** + * 新增我的任务奖励 + */ + @GetMapping(value = { "/add/{id}", "/add/" }) + public String add(@PathVariable(value = "id", required = false) Integer id, ModelMap mmap) + { + if (StringUtils.isNotNull(id)) + { + mmap.put("nodeTaskLog", nodeTaskLogService.selectNodeTaskLogById(id)); + } + return prefix + "/nodeTaskLogAdd"; + } + + /** + * 新增保存我的任务奖励 + */ + @RequiresPermissions("project:nodeTaskLog:add") + @Log(title = "我的任务奖励", businessType = BusinessType.INSERT) + @PostMapping("/add") + @ResponseBody + public AjaxResult addSave(NodeTaskLog nodeTaskLog) + { + SysUser sysUser = getSysUser(); + nodeTaskLog.setCreateBy(sysUser.getUserName()); + return toAjax(nodeTaskLogService.updateOrAddNodeTaskLog(nodeTaskLog)); + } + + /** + * 修改我的任务奖励 + */ + @GetMapping("/edit/{id}") + public String edit(@PathVariable("id") Integer id, ModelMap mmap) + { + NodeTaskLog nodeTaskLog = nodeTaskLogService.selectNodeTaskLogById(id); + mmap.put("nodeTaskLog", nodeTaskLog); + return prefix + "/nodeTaskLogEdit"; + } + + /** + * 修改保存我的任务奖励 + */ + @RequiresPermissions("project:nodeTaskLog:edit") + @Log(title = "我的任务奖励", businessType = BusinessType.UPDATE) + @PostMapping("/edit") + @ResponseBody + public AjaxResult editSave(NodeTaskLog nodeTaskLog) + { + SysUser sysUser = getSysUser(); + nodeTaskLog.setUpdateBy(sysUser.getUserName()); + return toAjax(nodeTaskLogService.updateOrAddNodeTaskLog(nodeTaskLog)); + } + + + /** + * 删除我的任务奖励 + */ + @RequiresPermissions("project:nodeTaskLog:remove") + @Log(title = "我的任务奖励", businessType = BusinessType.DELETE) + @PostMapping( "/remove") + @ResponseBody + public AjaxResult remove(String ids) + { + return toAjax(nodeTaskLogService.deleteNodeTaskLogByIds(ids)); + } + +} diff --git a/alive-admin/src/main/java/com/ruoyi/web/controller/NoticeController.java b/alive-admin/src/main/java/com/ruoyi/web/controller/NoticeController.java new file mode 100644 index 0000000..b894549 --- /dev/null +++ b/alive-admin/src/main/java/com/ruoyi/web/controller/NoticeController.java @@ -0,0 +1,158 @@ +package com.ruoyi.web.controller; + +import com.ruoyi.common.utils.StringUtils; +import java.util.List; +import com.ruoyi.common.core.domain.entity.SysUser; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.system.domain.Notice; +import com.ruoyi.system.service.NoticeService; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.utils.poi.ExcelUtil; + +/** + * 公告Controller + * + * @author HayDen + * @date 2024-01-08 + */ +@Controller +@RequestMapping("/project/notice") +public class NoticeController extends BaseController +{ + private String prefix = "project/notice"; + + @Autowired + private NoticeService noticeService; + + @RequiresPermissions("project:notice:view") + @GetMapping() + public String notice() + { + return prefix + "/noticeList"; + } + + /** + * 查询公告列表 + */ + @RequiresPermissions("project:notice:list") + @PostMapping("/list") + @ResponseBody + public TableDataInfo list(Notice notice) + { + startPage(); + List list = noticeService.selectNoticeList(notice); + return getDataTable(list); + } + + /** + * 查询公告对象 + */ + @RequiresPermissions("project:notice:notice") + @PostMapping("/notice") + @ResponseBody + public Notice findNotice(Notice notice) + { + notice = noticeService.findNotice(notice); + return notice; + } + + /** + * 导出公告列表 + */ + @RequiresPermissions("project:notice:export") + @Log(title = "公告", businessType = BusinessType.EXPORT) + @PostMapping("/export") + @ResponseBody + public AjaxResult export(Notice notice) + { + List list = noticeService.selectNoticeList(notice); + ExcelUtil util = new ExcelUtil(Notice.class); + return util.exportExcel(list, "公告"); + } + + /** + * 新增公告 + */ + @GetMapping("/add") + public String add() + { + return prefix + "/noticeAdd"; + } + /** + * 新增公告 + */ + @GetMapping(value = { "/add/{id}", "/add/" }) + public String add(@PathVariable(value = "id", required = false) Integer id, ModelMap mmap) + { + if (StringUtils.isNotNull(id)) + { + mmap.put("notice", noticeService.selectNoticeById(id)); + } + return prefix + "/noticeAdd"; + } + + /** + * 新增保存公告 + */ + @RequiresPermissions("project:notice:add") + @Log(title = "公告", businessType = BusinessType.INSERT) + @PostMapping("/add") + @ResponseBody + public AjaxResult addSave(Notice notice) + { + SysUser sysUser = getSysUser(); + notice.setCreateBy(sysUser.getUserName()); + return toAjax(noticeService.updateOrAddNotice(notice)); + } + + /** + * 修改公告 + */ + @GetMapping("/edit/{id}") + public String edit(@PathVariable("id") Integer id, ModelMap mmap) + { + Notice notice = noticeService.selectNoticeById(id); + mmap.put("notice", notice); + return prefix + "/noticeEdit"; + } + + /** + * 修改保存公告 + */ + @RequiresPermissions("project:notice:edit") + @Log(title = "公告", businessType = BusinessType.UPDATE) + @PostMapping("/edit") + @ResponseBody + public AjaxResult editSave(Notice notice) + { + SysUser sysUser = getSysUser(); + notice.setUpdateBy(sysUser.getUserName()); + return toAjax(noticeService.updateOrAddNotice(notice)); + } + + + /** + * 删除公告 + */ + @RequiresPermissions("project:notice:remove") + @Log(title = "公告", businessType = BusinessType.DELETE) + @PostMapping( "/remove") + @ResponseBody + public AjaxResult remove(String ids) + { + return toAjax(noticeService.deleteNoticeByIds(ids)); + } + +} diff --git a/alive-admin/src/main/java/com/ruoyi/web/controller/PayCoinLogController.java b/alive-admin/src/main/java/com/ruoyi/web/controller/PayCoinLogController.java new file mode 100644 index 0000000..5965c27 --- /dev/null +++ b/alive-admin/src/main/java/com/ruoyi/web/controller/PayCoinLogController.java @@ -0,0 +1,158 @@ +package com.ruoyi.web.controller; + +import com.ruoyi.common.utils.StringUtils; +import java.util.List; +import com.ruoyi.common.core.domain.entity.SysUser; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.system.domain.PayCoinLog; +import com.ruoyi.system.service.PayCoinLogService; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.utils.poi.ExcelUtil; + +/** + * 兑换币种日志Controller + * + * @author HayDen + * @date 2024-05-27 + */ +@Controller +@RequestMapping("/project/payCoinLog") +public class PayCoinLogController extends BaseController +{ + private String prefix = "project/payCoinLog"; + + @Autowired + private PayCoinLogService payCoinLogService; + + @RequiresPermissions("project:payCoinLog:view") + @GetMapping() + public String payCoinLog() + { + return prefix + "/payCoinLogList"; + } + + /** + * 查询兑换币种日志列表 + */ + @RequiresPermissions("project:payCoinLog:list") + @PostMapping("/list") + @ResponseBody + public TableDataInfo list(PayCoinLog payCoinLog) + { + startPage(); + List list = payCoinLogService.selectPayCoinLogList(payCoinLog); + return getDataTable(list); + } + + /** + * 查询兑换币种日志对象 + */ + @RequiresPermissions("project:payCoinLog:payCoinLog") + @PostMapping("/payCoinLog") + @ResponseBody + public PayCoinLog findPayCoinLog(PayCoinLog payCoinLog) + { + payCoinLog = payCoinLogService.findPayCoinLog(payCoinLog); + return payCoinLog; + } + + /** + * 导出兑换币种日志列表 + */ + @RequiresPermissions("project:payCoinLog:export") + @Log(title = "兑换币种日志", businessType = BusinessType.EXPORT) + @PostMapping("/export") + @ResponseBody + public AjaxResult export(PayCoinLog payCoinLog) + { + List list = payCoinLogService.selectPayCoinLogList(payCoinLog); + ExcelUtil util = new ExcelUtil(PayCoinLog.class); + return util.exportExcel(list, "兑换币种日志"); + } + + /** + * 新增兑换币种日志 + */ + @GetMapping("/add") + public String add() + { + return prefix + "/payCoinLogAdd"; + } + /** + * 新增兑换币种日志 + */ + @GetMapping(value = { "/add/{id}", "/add/" }) + public String add(@PathVariable(value = "id", required = false) Integer id, ModelMap mmap) + { + if (StringUtils.isNotNull(id)) + { + mmap.put("payCoinLog", payCoinLogService.selectPayCoinLogById(id)); + } + return prefix + "/payCoinLogAdd"; + } + + /** + * 新增保存兑换币种日志 + */ + @RequiresPermissions("project:payCoinLog:add") + @Log(title = "兑换币种日志", businessType = BusinessType.INSERT) + @PostMapping("/add") + @ResponseBody + public AjaxResult addSave(PayCoinLog payCoinLog) + { + SysUser sysUser = getSysUser(); + payCoinLog.setCreateBy(sysUser.getUserName()); + return toAjax(payCoinLogService.updateOrAddPayCoinLog(payCoinLog)); + } + + /** + * 修改兑换币种日志 + */ + @GetMapping("/edit/{id}") + public String edit(@PathVariable("id") Integer id, ModelMap mmap) + { + PayCoinLog payCoinLog = payCoinLogService.selectPayCoinLogById(id); + mmap.put("payCoinLog", payCoinLog); + return prefix + "/payCoinLogEdit"; + } + + /** + * 修改保存兑换币种日志 + */ + @RequiresPermissions("project:payCoinLog:edit") + @Log(title = "兑换币种日志", businessType = BusinessType.UPDATE) + @PostMapping("/edit") + @ResponseBody + public AjaxResult editSave(PayCoinLog payCoinLog) + { + SysUser sysUser = getSysUser(); + payCoinLog.setUpdateBy(sysUser.getUserName()); + return toAjax(payCoinLogService.updateOrAddPayCoinLog(payCoinLog)); + } + + + /** + * 删除兑换币种日志 + */ + @RequiresPermissions("project:payCoinLog:remove") + @Log(title = "兑换币种日志", businessType = BusinessType.DELETE) + @PostMapping( "/remove") + @ResponseBody + public AjaxResult remove(String ids) + { + return toAjax(payCoinLogService.deletePayCoinLogByIds(ids)); + } + +} diff --git a/alive-admin/src/main/java/com/ruoyi/web/controller/RecommendController.java b/alive-admin/src/main/java/com/ruoyi/web/controller/RecommendController.java new file mode 100644 index 0000000..03f93b5 --- /dev/null +++ b/alive-admin/src/main/java/com/ruoyi/web/controller/RecommendController.java @@ -0,0 +1,58 @@ +package com.ruoyi.web.controller; + +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.domain.entity.SysUser; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.common.utils.poi.ExcelUtil; +import com.ruoyi.system.domain.TMember; +import com.ruoyi.system.domain.vo.InviteResp; +import com.ruoyi.system.service.TMemberService; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; +import org.springframework.web.bind.annotation.*; + +import java.util.List; + +/** + * 推荐记录 + * + * @author HayDen + * @date 2024-01-11 + */ +@Controller +@RequestMapping("/project/inviteResp") +public class RecommendController extends BaseController +{ + private String prefix = "project/tMember"; + + @Autowired + private TMemberService tMemberService; + + @RequiresPermissions("project:inviteResp:view") + @GetMapping() + public String tMember() + { + return prefix + "/InviteRespList"; + } + + /** + * 查询用户列表 + */ + @RequiresPermissions("project:inviteResp:list") + @PostMapping("/list") + @ResponseBody + public TableDataInfo list(InviteResp tMember) + { + startPage(); + List list = tMemberService.findInviteRespList(tMember); + return getDataTable(list); + } + + +} diff --git a/alive-admin/src/main/java/com/ruoyi/web/controller/TConfigController.java b/alive-admin/src/main/java/com/ruoyi/web/controller/TConfigController.java new file mode 100644 index 0000000..98f24aa --- /dev/null +++ b/alive-admin/src/main/java/com/ruoyi/web/controller/TConfigController.java @@ -0,0 +1,158 @@ +package com.ruoyi.web.controller; + +import com.ruoyi.common.utils.StringUtils; +import java.util.List; +import com.ruoyi.common.core.domain.entity.SysUser; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.system.domain.TConfig; +import com.ruoyi.system.service.TConfigService; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.utils.poi.ExcelUtil; + +/** + * 配置Controller + * + * @author HayDen + * @date 2024-01-11 + */ +@Controller +@RequestMapping("/project/tConfig") +public class TConfigController extends BaseController +{ + private String prefix = "project/tConfig"; + + @Autowired + private TConfigService tConfigService; + + @RequiresPermissions("project:tConfig:view") + @GetMapping() + public String tConfig() + { + return prefix + "/tConfigList"; + } + + /** + * 查询配置列表 + */ + @RequiresPermissions("project:tConfig:list") + @PostMapping("/list") + @ResponseBody + public TableDataInfo list(TConfig tConfig) + { + startPage(); + List list = tConfigService.selectTConfigList(tConfig); + return getDataTable(list); + } + + /** + * 查询配置对象 + */ + @RequiresPermissions("project:tConfig:tConfig") + @PostMapping("/tConfig") + @ResponseBody + public TConfig findTConfig(TConfig tConfig) + { + tConfig = tConfigService.findTConfig(tConfig); + return tConfig; + } + + /** + * 导出配置列表 + */ + @RequiresPermissions("project:tConfig:export") + @Log(title = "配置", businessType = BusinessType.EXPORT) + @PostMapping("/export") + @ResponseBody + public AjaxResult export(TConfig tConfig) + { + List list = tConfigService.selectTConfigList(tConfig); + ExcelUtil util = new ExcelUtil(TConfig.class); + return util.exportExcel(list, "配置"); + } + + /** + * 新增配置 + */ + @GetMapping("/add") + public String add() + { + return prefix + "/tConfigAdd"; + } + /** + * 新增配置 + */ + @GetMapping(value = { "/add/{id}", "/add/" }) + public String add(@PathVariable(value = "id", required = false) Integer id, ModelMap mmap) + { + if (StringUtils.isNotNull(id)) + { + mmap.put("tConfig", tConfigService.selectTConfigById(id)); + } + return prefix + "/tConfigAdd"; + } + + /** + * 新增保存配置 + */ + @RequiresPermissions("project:tConfig:add") + @Log(title = "配置", businessType = BusinessType.INSERT) + @PostMapping("/add") + @ResponseBody + public AjaxResult addSave(TConfig tConfig) + { + SysUser sysUser = getSysUser(); + tConfig.setCreateBy(sysUser.getUserName()); + return toAjax(tConfigService.updateOrAddTConfig(tConfig)); + } + + /** + * 修改配置 + */ + @GetMapping("/edit/{id}") + public String edit(@PathVariable("id") Integer id, ModelMap mmap) + { + TConfig tConfig = tConfigService.selectTConfigById(id); + mmap.put("tConfig", tConfig); + return prefix + "/tConfigEdit"; + } + + /** + * 修改保存配置 + */ + @RequiresPermissions("project:tConfig:edit") + @Log(title = "配置", businessType = BusinessType.UPDATE) + @PostMapping("/edit") + @ResponseBody + public AjaxResult editSave(TConfig tConfig) + { + SysUser sysUser = getSysUser(); + tConfig.setUpdateBy(sysUser.getUserName()); + return toAjax(tConfigService.updateOrAddTConfig(tConfig)); + } + + + /** + * 删除配置 + */ + @RequiresPermissions("project:tConfig:remove") + @Log(title = "配置", businessType = BusinessType.DELETE) + @PostMapping( "/remove") + @ResponseBody + public AjaxResult remove(String ids) + { + return toAjax(tConfigService.deleteTConfigByIds(ids)); + } + +} diff --git a/alive-admin/src/main/java/com/ruoyi/web/controller/TMemberController.java b/alive-admin/src/main/java/com/ruoyi/web/controller/TMemberController.java new file mode 100644 index 0000000..5388037 --- /dev/null +++ b/alive-admin/src/main/java/com/ruoyi/web/controller/TMemberController.java @@ -0,0 +1,264 @@ +package com.ruoyi.web.controller; + +import com.ruoyi.common.utils.StringUtils; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import com.ruoyi.common.core.domain.entity.SysUser; +import com.ruoyi.system.domain.TMemberWalletLog; +import com.ruoyi.system.service.TMemberWalletLogService; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.system.domain.TMember; +import com.ruoyi.system.service.TMemberService; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.utils.poi.ExcelUtil; + +/** + * 用户Controller + * + * @author HayDen + * @date 2024-01-11 + */ +@Controller +@RequestMapping("/project/tMember") +public class TMemberController extends BaseController +{ + private String prefix = "project/tMember"; + + @Autowired + private TMemberService tMemberService; + + @Autowired + private TMemberWalletLogService walletLogService; + + public static Map sysUserIds = new HashMap<>(); + public static Integer userId = null; + public static Integer types = null; + + @PostMapping("/getTeamNodeNumber") + @ResponseBody + public Map getTeamNodeNumber(String address) + { + Map map = new HashMap<>(); + TMember tMember = tMemberService.findTMember(new TMember().setAccount(address)); + map.put("result",tMemberService.getTeamNodeNumber(tMember.getId())); + return map; + } + + @RequiresPermissions("project:tMember:view") + @GetMapping() + public String tMember() + { + return prefix + "/tMemberList"; + } + + /** + * 下级列表 + * @return + */ + @GetMapping("/subordinateList") + public String subordinateList(Integer referId) + { + SysUser sysUser = getSysUser(); + sysUserIds.put(sysUser.getUserId(),referId); + return prefix + "/subordinateList"; + } + + + /** + * 设置特定用户 + */ + @RequiresPermissions("project:tMember:specific") + @Log(title = "用户", businessType = BusinessType.UPDATE) + @PostMapping( "/specific") + @ResponseBody + public AjaxResult specific(String ids) + { + TMember tMember = new TMember().setTopUser(1); + tMember.setId(Long.parseLong(ids)); + TMember me = tMemberService.selectTMemberById(Integer.parseInt(ids)); + //查询上级是否有存在特定顶级用户的 + String[] arr = me.getAllPid().substring(1,me.getAllPid().length() - 1).split(","); + if(tMemberService.countUserByTopUser(arr,me.getId()) != 0){ + return error("该用户上下级已存在特定的用户账号"); + } + if(me.getReferId() != 0){ + return error("只能设置顶级用户为特定用户"); + } + return toAjax(tMemberService.updateOrAddTMember(tMember)); + } + + /** + * 查询下级用户列表 + */ + @RequiresPermissions("project:subordinateList:list") + @PostMapping("/subordinateList") + @ResponseBody + public TableDataInfo subordinateList(TMember tMember) + { + if(!org.apache.commons.lang3.StringUtils.isBlank(tMember.getAccount())){ + tMember.setAccount(tMember.getAccount().toLowerCase()); + } + startPage(); + SysUser sysUser = getSysUser(); + tMember.setReferId(sysUserIds.get(sysUser.getUserId())); + List list = tMemberService.findTMemberList(tMember); + return getDataTable(list); + } + + /** + * 1=返佣,2=BRIT,3=积分,4=配件 + * @return + */ + @RequiresPermissions("project:getRebateList:view") + @GetMapping("/getRebateList") + public String getRebateList(String id) + { + String[] arr = id.split(","); + userId = Integer.parseInt(arr[0]); + types = Integer.parseInt(arr[1]); + return prefix + "/awardLogList"; + } + + /** + * 查询用户列表资产流水明细 + */ + @PostMapping("/walletLogList") + @ResponseBody + public TableDataInfo walletLogList(TMemberWalletLog tMemberWalletLog) + { + startPage(); + tMemberWalletLog.setMemberId(userId); + tMemberWalletLog.setTypes(types); + List list = walletLogService.selectTMemberWalletLogList(tMemberWalletLog); + return getDataTable(list); + } + + /** + * 查询用户列表 + */ + @RequiresPermissions("project:tMember:list") + @PostMapping("/list") + @ResponseBody + public TableDataInfo list(TMember tMember) + { + startPage(); + List list = tMemberService.selectTMemberList(tMember); + return getDataTable(list); + } + + /** + * 查询用户对象 + */ + @RequiresPermissions("project:tMember:tMember") + @PostMapping("/tMember") + @ResponseBody + public TMember findTMember(TMember tMember) + { + tMember = tMemberService.findTMember(tMember); + return tMember; + } + + /** + * 导出用户列表 + */ + @RequiresPermissions("project:tMember:export") + @Log(title = "用户", businessType = BusinessType.EXPORT) + @PostMapping("/export") + @ResponseBody + public AjaxResult export(TMember tMember) + { + List list = tMemberService.selectTMemberList(tMember); + ExcelUtil util = new ExcelUtil(TMember.class); + return util.exportExcel(list, "用户"); + } + + /** + * 新增用户 + */ + @GetMapping("/add") + public String add() + { + return prefix + "/tMemberAdd"; + } + /** + * 新增用户 + */ + @GetMapping(value = { "/add/{id}", "/add/" }) + public String add(@PathVariable(value = "id", required = false) Integer id, ModelMap mmap) + { + if (StringUtils.isNotNull(id)) + { + mmap.put("tMember", tMemberService.selectTMemberById(id)); + } + return prefix + "/tMemberAdd"; + } + + /** + * 新增保存用户 + */ + @RequiresPermissions("project:tMember:add") + @Log(title = "用户", businessType = BusinessType.INSERT) + @PostMapping("/add") + @ResponseBody + public AjaxResult addSave(TMember tMember) + { + SysUser sysUser = getSysUser(); + tMember.setCreateBy(sysUser.getUserName()); + return toAjax(tMemberService.updateOrAddTMember(tMember)); + } + + /** + * 修改用户 + */ + @GetMapping("/edit/{id}") + public String edit(@PathVariable("id") Integer id, ModelMap mmap) + { + TMember tMember = tMemberService.selectTMemberById(id); + mmap.put("tMember", tMember); + return prefix + "/tMemberEdit"; + } + + /** + * 修改保存用户 + */ + @RequiresPermissions("project:tMember:edit") + @Log(title = "用户", businessType = BusinessType.UPDATE) + @PostMapping("/edit") + @ResponseBody + public AjaxResult editSave(TMember tMember) + { + SysUser sysUser = getSysUser(); + tMember.setUpdateBy(sysUser.getUserName()); + return toAjax(tMemberService.updateOrAddTMember(tMember)); + } + + + /** + * 删除用户 + */ + @RequiresPermissions("project:tMember:remove") + @Log(title = "用户", businessType = BusinessType.DELETE) + @PostMapping( "/remove") + @ResponseBody + public AjaxResult remove(String ids) + { + return toAjax(tMemberService.deleteTMemberByIds(ids)); + } + +} diff --git a/alive-admin/src/main/java/com/ruoyi/web/controller/TMemberWalletController.java b/alive-admin/src/main/java/com/ruoyi/web/controller/TMemberWalletController.java new file mode 100644 index 0000000..4977e2b --- /dev/null +++ b/alive-admin/src/main/java/com/ruoyi/web/controller/TMemberWalletController.java @@ -0,0 +1,158 @@ +package com.ruoyi.web.controller; + +import com.ruoyi.common.utils.StringUtils; +import java.util.List; +import com.ruoyi.common.core.domain.entity.SysUser; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.system.domain.TMemberWallet; +import com.ruoyi.system.service.TMemberWalletService; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.utils.poi.ExcelUtil; + +/** + * 资产Controller + * + * @author HayDen + * @date 2024-01-11 + */ +@Controller +@RequestMapping("/project/tMemberWallet") +public class TMemberWalletController extends BaseController +{ + private String prefix = "project/tMemberWallet"; + + @Autowired + private TMemberWalletService tMemberWalletService; + + @RequiresPermissions("project:tMemberWallet:view") + @GetMapping() + public String tMemberWallet() + { + return prefix + "/tMemberWalletList"; + } + + /** + * 查询资产列表 + */ + @RequiresPermissions("project:tMemberWallet:list") + @PostMapping("/list") + @ResponseBody + public TableDataInfo list(TMemberWallet tMemberWallet) + { + startPage(); + List list = tMemberWalletService.selectTMemberWalletList(tMemberWallet); + return getDataTable(list); + } + + /** + * 查询资产对象 + */ + @RequiresPermissions("project:tMemberWallet:tMemberWallet") + @PostMapping("/tMemberWallet") + @ResponseBody + public TMemberWallet findTMemberWallet(TMemberWallet tMemberWallet) + { + tMemberWallet = tMemberWalletService.findTMemberWallet(tMemberWallet); + return tMemberWallet; + } + + /** + * 导出资产列表 + */ + @RequiresPermissions("project:tMemberWallet:export") + @Log(title = "资产", businessType = BusinessType.EXPORT) + @PostMapping("/export") + @ResponseBody + public AjaxResult export(TMemberWallet tMemberWallet) + { + List list = tMemberWalletService.selectTMemberWalletList(tMemberWallet); + ExcelUtil util = new ExcelUtil(TMemberWallet.class); + return util.exportExcel(list, "资产"); + } + + /** + * 新增资产 + */ + @GetMapping("/add") + public String add() + { + return prefix + "/tMemberWalletAdd"; + } + /** + * 新增资产 + */ + @GetMapping(value = { "/add/{id}", "/add/" }) + public String add(@PathVariable(value = "id", required = false) Integer id, ModelMap mmap) + { + if (StringUtils.isNotNull(id)) + { + mmap.put("tMemberWallet", tMemberWalletService.selectTMemberWalletById(id)); + } + return prefix + "/tMemberWalletAdd"; + } + + /** + * 新增保存资产 + */ + @RequiresPermissions("project:tMemberWallet:add") + @Log(title = "资产", businessType = BusinessType.INSERT) + @PostMapping("/add") + @ResponseBody + public AjaxResult addSave(TMemberWallet tMemberWallet) + { + SysUser sysUser = getSysUser(); + tMemberWallet.setCreateBy(sysUser.getUserName()); + return toAjax(tMemberWalletService.updateOrAddTMemberWallet(tMemberWallet)); + } + + /** + * 修改资产 + */ + @GetMapping("/edit/{id}") + public String edit(@PathVariable("id") Integer id, ModelMap mmap) + { + TMemberWallet tMemberWallet = tMemberWalletService.selectTMemberWalletById(id); + mmap.put("tMemberWallet", tMemberWallet); + return prefix + "/tMemberWalletEdit"; + } + + /** + * 修改保存资产 + */ + @RequiresPermissions("project:tMemberWallet:edit") + @Log(title = "资产", businessType = BusinessType.UPDATE) + @PostMapping("/edit") + @ResponseBody + public AjaxResult editSave(TMemberWallet tMemberWallet) + { + SysUser sysUser = getSysUser(); + tMemberWallet.setUpdateBy(sysUser.getUserName()); + return toAjax(tMemberWalletService.updateOrAddTMemberWallet(tMemberWallet)); + } + + + /** + * 删除资产 + */ + @RequiresPermissions("project:tMemberWallet:remove") + @Log(title = "资产", businessType = BusinessType.DELETE) + @PostMapping( "/remove") + @ResponseBody + public AjaxResult remove(String ids) + { + return toAjax(tMemberWalletService.deleteTMemberWalletByIds(ids)); + } + +} diff --git a/alive-admin/src/main/java/com/ruoyi/web/controller/TMemberWalletLogController.java b/alive-admin/src/main/java/com/ruoyi/web/controller/TMemberWalletLogController.java new file mode 100644 index 0000000..ea99401 --- /dev/null +++ b/alive-admin/src/main/java/com/ruoyi/web/controller/TMemberWalletLogController.java @@ -0,0 +1,158 @@ +package com.ruoyi.web.controller; + +import com.ruoyi.common.utils.StringUtils; +import java.util.List; +import com.ruoyi.common.core.domain.entity.SysUser; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.system.domain.TMemberWalletLog; +import com.ruoyi.system.service.TMemberWalletLogService; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.utils.poi.ExcelUtil; + +/** + * 资产流水Controller + * + * @author HayDen + * @date 2024-01-11 + */ +@Controller +@RequestMapping("/project/tMemberWalletLog") +public class TMemberWalletLogController extends BaseController +{ + private String prefix = "project/tMemberWalletLog"; + + @Autowired + private TMemberWalletLogService tMemberWalletLogService; + + @RequiresPermissions("project:tMemberWalletLog:view") + @GetMapping() + public String tMemberWalletLog() + { + return prefix + "/tMemberWalletLogList"; + } + + /** + * 查询资产流水列表 + */ + @RequiresPermissions("project:tMemberWalletLog:list") + @PostMapping("/list") + @ResponseBody + public TableDataInfo list(TMemberWalletLog tMemberWalletLog) + { + startPage(); + List list = tMemberWalletLogService.findTMemberWalletLogList(tMemberWalletLog); + return getDataTable(list); + } + + /** + * 查询资产流水对象 + */ + @RequiresPermissions("project:tMemberWalletLog:tMemberWalletLog") + @PostMapping("/tMemberWalletLog") + @ResponseBody + public TMemberWalletLog findTMemberWalletLog(TMemberWalletLog tMemberWalletLog) + { + tMemberWalletLog = tMemberWalletLogService.findTMemberWalletLog(tMemberWalletLog); + return tMemberWalletLog; + } + + /** + * 导出资产流水列表 + */ + @RequiresPermissions("project:tMemberWalletLog:export") + @Log(title = "资产流水", businessType = BusinessType.EXPORT) + @PostMapping("/export") + @ResponseBody + public AjaxResult export(TMemberWalletLog tMemberWalletLog) + { + List list = tMemberWalletLogService.selectTMemberWalletLogList(tMemberWalletLog); + ExcelUtil util = new ExcelUtil(TMemberWalletLog.class); + return util.exportExcel(list, "资产流水"); + } + + /** + * 新增资产流水 + */ + @GetMapping("/add") + public String add() + { + return prefix + "/tMemberWalletLogAdd"; + } + /** + * 新增资产流水 + */ + @GetMapping(value = { "/add/{id}", "/add/" }) + public String add(@PathVariable(value = "id", required = false) Integer id, ModelMap mmap) + { + if (StringUtils.isNotNull(id)) + { + mmap.put("tMemberWalletLog", tMemberWalletLogService.selectTMemberWalletLogById(id)); + } + return prefix + "/tMemberWalletLogAdd"; + } + + /** + * 新增保存资产流水 + */ + @RequiresPermissions("project:tMemberWalletLog:add") + @Log(title = "资产流水", businessType = BusinessType.INSERT) + @PostMapping("/add") + @ResponseBody + public AjaxResult addSave(TMemberWalletLog tMemberWalletLog) + { + SysUser sysUser = getSysUser(); + tMemberWalletLog.setCreateBy(sysUser.getUserName()); + return toAjax(tMemberWalletLogService.updateOrAddTMemberWalletLog(tMemberWalletLog)); + } + + /** + * 修改资产流水 + */ + @GetMapping("/edit/{id}") + public String edit(@PathVariable("id") Integer id, ModelMap mmap) + { + TMemberWalletLog tMemberWalletLog = tMemberWalletLogService.selectTMemberWalletLogById(id); + mmap.put("tMemberWalletLog", tMemberWalletLog); + return prefix + "/tMemberWalletLogEdit"; + } + + /** + * 修改保存资产流水 + */ + @RequiresPermissions("project:tMemberWalletLog:edit") + @Log(title = "资产流水", businessType = BusinessType.UPDATE) + @PostMapping("/edit") + @ResponseBody + public AjaxResult editSave(TMemberWalletLog tMemberWalletLog) + { + SysUser sysUser = getSysUser(); + tMemberWalletLog.setUpdateBy(sysUser.getUserName()); + return toAjax(tMemberWalletLogService.updateOrAddTMemberWalletLog(tMemberWalletLog)); + } + + + /** + * 删除资产流水 + */ + @RequiresPermissions("project:tMemberWalletLog:remove") + @Log(title = "资产流水", businessType = BusinessType.DELETE) + @PostMapping( "/remove") + @ResponseBody + public AjaxResult remove(String ids) + { + return toAjax(tMemberWalletLogService.deleteTMemberWalletLogByIds(ids)); + } + +} diff --git a/alive-admin/src/main/java/com/ruoyi/web/controller/common/CommonController.java b/alive-admin/src/main/java/com/ruoyi/web/controller/common/CommonController.java new file mode 100644 index 0000000..ab385dc --- /dev/null +++ b/alive-admin/src/main/java/com/ruoyi/web/controller/common/CommonController.java @@ -0,0 +1,177 @@ +package com.ruoyi.web.controller.common; + +import java.util.ArrayList; +import java.util.List; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; + +import com.alibaba.fastjson.JSON; +import com.ruoyi.system.utils.HttpUtils; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.beans.factory.annotation.Value; +import org.springframework.http.MediaType; +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; +import org.springframework.web.multipart.MultipartFile; +import com.ruoyi.common.config.RuoYiConfig; +import com.ruoyi.common.config.ServerConfig; +import com.ruoyi.common.constant.Constants; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.common.utils.file.FileUploadUtils; +import com.ruoyi.common.utils.file.FileUtils; + +import static com.ruoyi.common.core.domain.AjaxResult.error; + +/** + * 通用请求处理 + * + * @author ruoyi + */ +@Controller +public class CommonController +{ + private static final Logger log = LoggerFactory.getLogger(CommonController.class); + + @Autowired + private ServerConfig serverConfig; + + private static final String FILE_DELIMETER = ","; + + /** + * 通用下载请求 + * + * @param fileName 文件名称 + * @param delete 是否删除 + */ + @GetMapping("common/download") + public void fileDownload(String fileName, Boolean delete, HttpServletResponse response, HttpServletRequest request) + { + try + { + if (!FileUtils.checkAllowDownload(fileName)) + { + throw new Exception(StringUtils.format("文件名称({})非法,不允许下载。 ", fileName)); + } + String realFileName = System.currentTimeMillis() + fileName.substring(fileName.indexOf("_") + 1); + String filePath = RuoYiConfig.getDownloadPath() + fileName; + + response.setContentType(MediaType.APPLICATION_OCTET_STREAM_VALUE); + FileUtils.setAttachmentResponseHeader(response, realFileName); + FileUtils.writeBytes(filePath, response.getOutputStream()); + if (delete) + { + FileUtils.deleteFile(filePath); + } + } + catch (Exception e) + { + log.error("下载文件失败", e); + } + } + + @Value("${ruoyi.addImg}") + private String remoteUpload; + + /** + * 通用上传请求 + */ + @PostMapping("/common/upload") + @ResponseBody + public AjaxResult uploadFile(MultipartFile file) throws Exception + { + try { + String url = HttpUtils.gettesthttpclient(file,remoteUpload); + if(url == null){ + return error("上传失败"); + } + String code = JSON.parseObject(url).getString("code"); + if(!code.equals("0")){ + return error("上传文件失败"); + } + String data = JSON.parseObject(url).getString("data"); + String name = JSON.parseObject(data).getString("fileName"); + String url1 = JSON.parseObject(data).getString("fullUrl"); + AjaxResult ajax = AjaxResult.success(); + ajax.put("fileName", name); + ajax.put("url", url1); + return ajax; + } catch (Exception e) { + return error("失败了"); + } + + } + + + /** + * 通用上传请求(多个) + */ + @PostMapping("/common/uploads") + @ResponseBody + public AjaxResult uploadFiles(List files) throws Exception + { + try + { + // 上传文件路径 + String filePath = RuoYiConfig.getUploadPath(); + List urls = new ArrayList(); + List fileNames = new ArrayList(); + List newFileNames = new ArrayList(); + List originalFilenames = new ArrayList(); + for (MultipartFile file : files) + { + // 上传并返回新文件名称 + String fileName = FileUploadUtils.upload(filePath, file); + String url = serverConfig.getUrl() + fileName; + urls.add(url); + fileNames.add(fileName); + newFileNames.add(FileUtils.getName(fileName)); + originalFilenames.add(file.getOriginalFilename()); + } + AjaxResult ajax = AjaxResult.success(); + ajax.put("urls", StringUtils.join(urls, FILE_DELIMETER)); + ajax.put("fileNames", StringUtils.join(fileNames, FILE_DELIMETER)); + ajax.put("newFileNames", StringUtils.join(newFileNames, FILE_DELIMETER)); + ajax.put("originalFilenames", StringUtils.join(originalFilenames, FILE_DELIMETER)); + return ajax; + } + catch (Exception e) + { + return AjaxResult.error(e.getMessage()); + } + } + + /** + * 本地资源通用下载 + */ + @GetMapping("/common/download/resource") + public void resourceDownload(String resource, HttpServletRequest request, HttpServletResponse response) + throws Exception + { + try + { + if (!FileUtils.checkAllowDownload(resource)) + { + throw new Exception(StringUtils.format("资源文件({})非法,不允许下载。 ", resource)); + } + // 本地资源路径 + String localPath = RuoYiConfig.getProfile(); + // 数据库资源地址 + String downloadPath = localPath + StringUtils.substringAfter(resource, Constants.RESOURCE_PREFIX); + // 下载名称 + String downloadName = StringUtils.substringAfterLast(downloadPath, "/"); + response.setContentType(MediaType.APPLICATION_OCTET_STREAM_VALUE); + FileUtils.setAttachmentResponseHeader(response, downloadName); + FileUtils.writeBytes(downloadPath, response.getOutputStream()); + } + catch (Exception e) + { + log.error("下载文件失败", e); + } + } +} diff --git a/alive-admin/src/main/java/com/ruoyi/web/controller/demo/controller/DemoDialogController.java b/alive-admin/src/main/java/com/ruoyi/web/controller/demo/controller/DemoDialogController.java new file mode 100644 index 0000000..3030057 --- /dev/null +++ b/alive-admin/src/main/java/com/ruoyi/web/controller/demo/controller/DemoDialogController.java @@ -0,0 +1,98 @@ +package com.ruoyi.web.controller.demo.controller; + +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RequestMapping; + +/** + * 模态窗口 + * + * @author ruoyi + */ +@Controller +@RequestMapping("/demo/modal") +public class DemoDialogController +{ + private String prefix = "demo/modal"; + + /** + * 模态窗口 + */ + @GetMapping("/dialog") + public String dialog() + { + return prefix + "/dialog"; + } + + /** + * 弹层组件 + */ + @GetMapping("/layer") + public String layer() + { + return prefix + "/layer"; + } + + /** + * 表单 + */ + @GetMapping("/form") + public String form() + { + return prefix + "/form"; + } + + /** + * 表格 + */ + @GetMapping("/table") + public String table() + { + return prefix + "/table"; + } + + /** + * 表格check + */ + @GetMapping("/check") + public String check() + { + return prefix + "/table/check"; + } + + /** + * 表格radio + */ + @GetMapping("/radio") + public String radio() + { + return prefix + "/table/radio"; + } + + /** + * 表格回传父窗体 + */ + @GetMapping("/parent") + public String parent() + { + return prefix + "/table/parent"; + } + + /** + * 多层窗口frame1 + */ + @GetMapping("/frame1") + public String frame1() + { + return prefix + "/table/frame1"; + } + + /** + * 多层窗口frame2 + */ + @GetMapping("/frame2") + public String frame2() + { + return prefix + "/table/frame2"; + } +} diff --git a/alive-admin/src/main/java/com/ruoyi/web/controller/demo/controller/DemoFormController.java b/alive-admin/src/main/java/com/ruoyi/web/controller/demo/controller/DemoFormController.java new file mode 100644 index 0000000..ec7d4c8 --- /dev/null +++ b/alive-admin/src/main/java/com/ruoyi/web/controller/demo/controller/DemoFormController.java @@ -0,0 +1,390 @@ +package com.ruoyi.web.controller.demo.controller; + +import java.util.ArrayList; +import java.util.List; +import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; +import com.alibaba.fastjson.JSON; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.domain.CxSelect; +import com.ruoyi.common.json.JSONObject; +import com.ruoyi.common.json.JSONObject.JSONArray; +import com.ruoyi.common.utils.StringUtils; + +/** + * 表单相关 + * + * @author ruoyi + */ +@Controller +@RequestMapping("/demo/form") +public class DemoFormController +{ + private String prefix = "demo/form"; + + private final static List users = new ArrayList(); + { + users.add(new UserFormModel(1, "1000001", "测试1", "15888888888")); + users.add(new UserFormModel(2, "1000002", "测试2", "15666666666")); + users.add(new UserFormModel(3, "1000003", "测试3", "15666666666")); + users.add(new UserFormModel(4, "1000004", "测试4", "15666666666")); + users.add(new UserFormModel(5, "1000005", "测试5", "15666666666")); + } + + /** + * 按钮页 + */ + @GetMapping("/button") + public String button() + { + return prefix + "/button"; + } + + /** + * 下拉框 + */ + @GetMapping("/select") + public String select() + { + return prefix + "/select"; + } + + /** + * 时间轴 + */ + @GetMapping("/timeline") + public String timeline() + { + return prefix + "/timeline"; + } + + /** + * 表单校验 + */ + @GetMapping("/validate") + public String validate() + { + return prefix + "/validate"; + } + + /** + * 功能扩展(包含文件上传) + */ + @GetMapping("/jasny") + public String jasny() + { + return prefix + "/jasny"; + } + + /** + * 拖动排序 + */ + @GetMapping("/sortable") + public String sortable() + { + return prefix + "/sortable"; + } + + /** + * 单据打印 + */ + @GetMapping("/invoice") + public String invoice() + { + return prefix + "/invoice"; + } + + /** + * 标签 & 提示 + */ + @GetMapping("/labels_tips") + public String labels_tips() + { + return prefix + "/labels_tips"; + } + + /** + * 选项卡 & 面板 + */ + @GetMapping("/tabs_panels") + public String tabs_panels() + { + return prefix + "/tabs_panels"; + } + + /** + * 栅格 + */ + @GetMapping("/grid") + public String grid() + { + return prefix + "/grid"; + } + + /** + * 表单向导 + */ + @GetMapping("/wizard") + public String wizard() + { + return prefix + "/wizard"; + } + + /** + * 文件上传 + */ + @GetMapping("/upload") + public String upload() + { + return prefix + "/upload"; + } + + /** + * 日期和时间页 + */ + @GetMapping("/datetime") + public String datetime() + { + return prefix + "/datetime"; + } + + /** + * 左右互选组件 + */ + @GetMapping("/duallistbox") + public String duallistbox() + { + return prefix + "/duallistbox"; + } + + /** + * 基本表单 + */ + @GetMapping("/basic") + public String basic() + { + return prefix + "/basic"; + } + + /** + * 卡片列表 + */ + @GetMapping("/cards") + public String cards() + { + return prefix + "/cards"; + } + + /** + * summernote 富文本编辑器 + */ + @GetMapping("/summernote") + public String summernote() + { + return prefix + "/summernote"; + } + + /** + * 搜索自动补全 + */ + @GetMapping("/autocomplete") + public String autocomplete() + { + return prefix + "/autocomplete"; + } + + /** + * 多级联动下拉 + */ + @GetMapping("/cxselect") + public String cxselect(ModelMap mmap) + { + CxSelect cxSelectTB = new CxSelect(); + cxSelectTB.setN("淘宝"); + cxSelectTB.setV("taobao"); + CxSelect cxSelectTm = new CxSelect(); + cxSelectTm.setN("天猫"); + cxSelectTm.setV("tm"); + CxSelect cxSelectJhs = new CxSelect(); + cxSelectJhs.setN("聚划算"); + cxSelectJhs.setV("jhs"); + List tmList = new ArrayList(); + tmList.add(cxSelectTm); + tmList.add(cxSelectJhs); + cxSelectTB.setS(tmList); + + CxSelect cxSelectJD = new CxSelect(); + cxSelectJD.setN("京东"); + cxSelectJD.setV("jd"); + CxSelect cxSelectCs = new CxSelect(); + cxSelectCs.setN("京东超市"); + cxSelectCs.setV("jdcs"); + CxSelect cxSelectSx = new CxSelect(); + cxSelectSx.setN("京东生鲜"); + cxSelectSx.setV("jdsx"); + List jdList = new ArrayList(); + jdList.add(cxSelectCs); + jdList.add(cxSelectSx); + cxSelectJD.setS(jdList); + + List cxList = new ArrayList(); + cxList.add(cxSelectTB); + cxList.add(cxSelectJD); + + mmap.put("data", JSON.toJSON(cxList)); + return prefix + "/cxselect"; + } + + /** + * 局部刷新 + */ + @GetMapping("/localrefresh") + public String localRefresh(ModelMap mmap) + { + JSONArray list = new JSONArray(); + JSONObject item = new JSONObject(); + item.put("name", "这条任务数据是由ModelMap传递到页面的,点击添加按钮后会将这条数据替换为新数据"); + item.put("type", "默认"); + item.put("date", "2020.06.10"); + list.add(item); + mmap.put("tasks", list); + mmap.put("min", 2); + mmap.put("max", 10); + return prefix + "/localrefresh"; + } + + /** + * 局部刷新-添加任务 + * + * @param fragment 页面中的模板名称 + * @param taskName 任务名称 + */ + @PostMapping("/localrefresh/task") + public String localRefreshTask(String fragment, String taskName, ModelMap mmap) + { + JSONArray list = new JSONArray(); + JSONObject item = new JSONObject(); + item.put("name", StringUtils.defaultIfBlank(taskName, "通过电话销售过程中了解各盛市的设备仪器使用、采购情况及相关重要追踪人")); + item.put("type", "新增"); + item.put("date", "2018.06.10"); + list.add(item); + item = new JSONObject(); + item.put("name", "提高自己电话营销技巧,灵活专业地与客户进行电话交流"); + item.put("type", "新增"); + item.put("date", "2018.06.12"); + list.add(item); + mmap.put("tasks", list); + return prefix + "/localrefresh::" + fragment; + } + + /** + * 模拟数据 + */ + @GetMapping("/cityData") + @ResponseBody + public String cityData() + { + String data = "[{\"n\":\"湖南省\",\"s\":[{\"n\":\"长沙市\",\"s\":[{\"n\":\"芙蓉区\"},{\"n\":\"天心区\"},{\"n\":\"岳麓区\"},{\"n\":\"开福区\"},{\"n\":\"雨花区\"},{\"n\":\"望城区\"},{\"n\":\"长沙县\"},{\"n\":\"宁乡县\"},{\"n\":\"浏阳市\"}]},{\"n\":\"株洲市\",\"s\":[{\"n\":\"荷塘区\"},{\"n\":\"芦淞区\"},{\"n\":\"石峰区\"},{\"n\":\"天元区\"},{\"n\":\"株洲县\"},{\"n\":\"攸县\"},{\"n\":\"茶陵县\"},{\"n\":\"炎陵县\"},{\"n\":\"醴陵市\"}]},{\"n\":\"湘潭市\",\"s\":[{\"n\":\"雨湖区\"},{\"n\":\"岳塘区\"},{\"n\":\"湘潭县\"},{\"n\":\"湘乡市\"},{\"n\":\"韶山市\"}]},{\"n\":\"衡阳市\",\"s\":[{\"n\":\"珠晖区\"},{\"n\":\"雁峰区\"},{\"n\":\"石鼓区\"},{\"n\":\"蒸湘区\"},{\"n\":\"南岳区\"},{\"n\":\"衡阳县\"},{\"n\":\"衡南县\"},{\"n\":\"衡山县\"},{\"n\":\"衡东县\"},{\"n\":\"祁东县\"},{\"n\":\"耒阳市\"},{\"n\":\"常宁市\"}]},{\"n\":\"邵阳市\",\"s\":[{\"n\":\"双清区\"},{\"n\":\"大祥区\"},{\"n\":\"北塔区\"},{\"n\":\"邵东县\"},{\"n\":\"新邵县\"},{\"n\":\"邵阳县\"},{\"n\":\"隆回县\"},{\"n\":\"洞口县\"},{\"n\":\"绥宁县\"},{\"n\":\"新宁县\"},{\"n\":\"城步苗族自治县\"},{\"n\":\"武冈市\"}]},{\"n\":\"岳阳市\",\"s\":[{\"n\":\"岳阳楼区\"},{\"n\":\"云溪区\"},{\"n\":\"君山区\"},{\"n\":\"岳阳县\"},{\"n\":\"华容县\"},{\"n\":\"湘阴县\"},{\"n\":\"平江县\"},{\"n\":\"汨罗市\"},{\"n\":\"临湘市\"}]},{\"n\":\"常德市\",\"s\":[{\"n\":\"武陵区\"},{\"n\":\"鼎城区\"},{\"n\":\"安乡县\"},{\"n\":\"汉寿县\"},{\"n\":\"澧县\"},{\"n\":\"临澧县\"},{\"n\":\"桃源县\"},{\"n\":\"石门县\"},{\"n\":\"津市市\"}]},{\"n\":\"张家界市\",\"s\":[{\"n\":\"永定区\"},{\"n\":\"武陵源区\"},{\"n\":\"慈利县\"},{\"n\":\"桑植县\"}]},{\"n\":\"益阳市\",\"s\":[{\"n\":\"资阳区\"},{\"n\":\"赫山区\"},{\"n\":\"南县\"},{\"n\":\"桃江县\"},{\"n\":\"安化县\"},{\"n\":\"沅江市\"}]},{\"n\":\"郴州市\",\"s\":[{\"n\":\"北湖区\"},{\"n\":\"苏仙区\"},{\"n\":\"桂阳县\"},{\"n\":\"宜章县\"},{\"n\":\"永兴县\"},{\"n\":\"嘉禾县\"},{\"n\":\"临武县\"},{\"n\":\"汝城县\"},{\"n\":\"桂东县\"},{\"n\":\"安仁县\"},{\"n\":\"资兴市\"}]},{\"n\":\"永州市\",\"s\":[{\"n\":\"零陵区\"},{\"n\":\"冷水滩区\"},{\"n\":\"祁阳县\"},{\"n\":\"东安县\"},{\"n\":\"双牌县\"},{\"n\":\"道县\"},{\"n\":\"江永县\"},{\"n\":\"宁远县\"},{\"n\":\"蓝山县\"},{\"n\":\"新田县\"},{\"n\":\"江华瑶族自治县\"}]},{\"n\":\"怀化市\",\"s\":[{\"n\":\"鹤城区\"},{\"n\":\"中方县\"},{\"n\":\"沅陵县\"},{\"n\":\"辰溪县\"},{\"n\":\"溆浦县\"},{\"n\":\"会同县\"},{\"n\":\"麻阳苗族自治县\"},{\"n\":\"新晃侗族自治县\"},{\"n\":\"芷江侗族自治县\"},{\"n\":\"靖州苗族侗族自治县\"},{\"n\":\"通道侗族自治县\"},{\"n\":\"洪江市\"}]},{\"n\":\"娄底市\",\"s\":[{\"n\":\"娄星区\"},{\"n\":\"双峰县\"},{\"n\":\"新化县\"},{\"n\":\"冷水江市\"},{\"n\":\"涟源市\"}]},{\"n\":\"湘西土家族苗族自治州\",\"s\":[{\"n\":\"吉首市\"},{\"n\":\"泸溪县\"},{\"n\":\"凤凰县\"},{\"n\":\"花垣县\"},{\"n\":\"保靖县\"},{\"n\":\"古丈县\"},{\"n\":\"永顺县\"},{\"n\":\"龙山县\"}]}]},{\"n\":\"广东省\",\"s\":[{\"n\":\"广州市\",\"s\":[{\"n\":\"荔湾区\"},{\"n\":\"越秀区\"},{\"n\":\"海珠区\"},{\"n\":\"天河区\"},{\"n\":\"白云区\"},{\"n\":\"黄埔区\"},{\"n\":\"番禺区\"},{\"n\":\"花都区\"},{\"n\":\"南沙区\"},{\"n\":\"萝岗区\"},{\"n\":\"增城市\"},{\"n\":\"从化市\"}]},{\"n\":\"韶关市\",\"s\":[{\"n\":\"武江区\"},{\"n\":\"浈江区\"},{\"n\":\"曲江区\"},{\"n\":\"始兴县\"},{\"n\":\"仁化县\"},{\"n\":\"翁源县\"},{\"n\":\"乳源瑶族自治县\"},{\"n\":\"新丰县\"},{\"n\":\"乐昌市\"},{\"n\":\"南雄市\"}]},{\"n\":\"深圳市\",\"s\":[{\"n\":\"罗湖区\"},{\"n\":\"福田区\"},{\"n\":\"南山区\"},{\"n\":\"宝安区\"},{\"n\":\"龙岗区\"},{\"n\":\"盐田区\"}]},{\"n\":\"珠海市\",\"s\":[{\"n\":\"香洲区\"},{\"n\":\"斗门区\"},{\"n\":\"金湾区\"}]},{\"n\":\"汕头市\",\"s\":[{\"n\":\"龙湖区\"},{\"n\":\"金平区\"},{\"n\":\"濠江区\"},{\"n\":\"潮阳区\"},{\"n\":\"潮南区\"},{\"n\":\"澄海区\"},{\"n\":\"南澳县\"}]},{\"n\":\"佛山市\",\"s\":[{\"n\":\"禅城区\"},{\"n\":\"南海区\"},{\"n\":\"顺德区\"},{\"n\":\"三水区\"},{\"n\":\"高明区\"}]},{\"n\":\"江门市\",\"s\":[{\"n\":\"蓬江区\"},{\"n\":\"江海区\"},{\"n\":\"新会区\"},{\"n\":\"台山市\"},{\"n\":\"开平市\"},{\"n\":\"鹤山市\"},{\"n\":\"恩平市\"}]},{\"n\":\"湛江市\",\"s\":[{\"n\":\"赤坎区\"},{\"n\":\"霞山区\"},{\"n\":\"坡头区\"},{\"n\":\"麻章区\"},{\"n\":\"遂溪县\"},{\"n\":\"徐闻县\"},{\"n\":\"廉江市\"},{\"n\":\"雷州市\"},{\"n\":\"吴川市\"}]},{\"n\":\"茂名市\",\"s\":[{\"n\":\"茂南区\"},{\"n\":\"茂港区\"},{\"n\":\"电白县\"},{\"n\":\"高州市\"},{\"n\":\"化州市\"},{\"n\":\"信宜市\"}]},{\"n\":\"肇庆市\",\"s\":[{\"n\":\"端州区\"},{\"n\":\"鼎湖区\"},{\"n\":\"广宁县\"},{\"n\":\"怀集县\"},{\"n\":\"封开县\"},{\"n\":\"德庆县\"},{\"n\":\"高要市\"},{\"n\":\"四会市\"}]},{\"n\":\"惠州市\",\"s\":[{\"n\":\"惠城区\"},{\"n\":\"惠阳区\"},{\"n\":\"博罗县\"},{\"n\":\"惠东县\"},{\"n\":\"龙门县\"}]},{\"n\":\"梅州市\",\"s\":[{\"n\":\"梅江区\"},{\"n\":\"梅县\"},{\"n\":\"大埔县\"},{\"n\":\"丰顺县\"},{\"n\":\"五华县\"},{\"n\":\"平远县\"},{\"n\":\"蕉岭县\"},{\"n\":\"兴宁市\"}]},{\"n\":\"汕尾市\",\"s\":[{\"n\":\"城区\"},{\"n\":\"海丰县\"},{\"n\":\"陆河县\"},{\"n\":\"陆丰市\"}]},{\"n\":\"河源市\",\"s\":[{\"n\":\"源城区\"},{\"n\":\"紫金县\"},{\"n\":\"龙川县\"},{\"n\":\"连平县\"},{\"n\":\"和平县\"},{\"n\":\"东源县\"}]},{\"n\":\"阳江市\",\"s\":[{\"n\":\"江城区\"},{\"n\":\"阳西县\"},{\"n\":\"阳东县\"},{\"n\":\"阳春市\"}]},{\"n\":\"清远市\",\"s\":[{\"n\":\"清城区\"},{\"n\":\"清新区\"},{\"n\":\"佛冈县\"},{\"n\":\"阳山县\"},{\"n\":\"连山壮族瑶族自治县\"},{\"n\":\"连南瑶族自治县\"},{\"n\":\"英德市\"},{\"n\":\"连州市\"}]},{\"n\":\"东莞市\"},{\"n\":\"中山市\"},{\"n\":\"潮州市\",\"s\":[{\"n\":\"湘桥区\"},{\"n\":\"潮安区\"},{\"n\":\"饶平县\"}]},{\"n\":\"揭阳市\",\"s\":[{\"n\":\"榕城区\"},{\"n\":\"揭东区\"},{\"n\":\"揭西县\"},{\"n\":\"惠来县\"},{\"n\":\"普宁市\"}]},{\"n\":\"云浮市\",\"s\":[{\"n\":\"云城区\"},{\"n\":\"新兴县\"},{\"n\":\"郁南县\"},{\"n\":\"云安县\"},{\"n\":\"罗定市\"}]}]}]"; + return data; + } + + /** + * 获取用户数据 + */ + @GetMapping("/userModel") + @ResponseBody + public AjaxResult userModel() + { + AjaxResult ajax = new AjaxResult(); + + ajax.put("code", 200); + ajax.put("value", users); + return ajax; + } + + /** + * 获取数据集合 + */ + @GetMapping("/collection") + @ResponseBody + public AjaxResult collection() + { + String[] array = { "ruoyi 1", "ruoyi 2", "ruoyi 3", "ruoyi 4", "ruoyi 5" }; + AjaxResult ajax = new AjaxResult(); + ajax.put("value", array); + return ajax; + } +} + +class UserFormModel +{ + /** 用户ID */ + private int userId; + + /** 用户编号 */ + private String userCode; + + /** 用户姓名 */ + private String userName; + + /** 用户手机 */ + private String userPhone; + + public UserFormModel() + { + + } + + public UserFormModel(int userId, String userCode, String userName, String userPhone) + { + this.userId = userId; + this.userCode = userCode; + this.userName = userName; + this.userPhone = userPhone; + } + + public int getUserId() + { + return userId; + } + + public void setUserId(int userId) + { + this.userId = userId; + } + + public String getUserCode() + { + return userCode; + } + + public void setUserCode(String userCode) + { + this.userCode = userCode; + } + + public String getUserName() + { + return userName; + } + + public void setUserName(String userName) + { + this.userName = userName; + } + + public String getUserPhone() + { + return userPhone; + } + + public void setUserPhone(String userPhone) + { + this.userPhone = userPhone; + } + +} diff --git a/alive-admin/src/main/java/com/ruoyi/web/controller/demo/controller/DemoIconController.java b/alive-admin/src/main/java/com/ruoyi/web/controller/demo/controller/DemoIconController.java new file mode 100644 index 0000000..b6884cc --- /dev/null +++ b/alive-admin/src/main/java/com/ruoyi/web/controller/demo/controller/DemoIconController.java @@ -0,0 +1,35 @@ +package com.ruoyi.web.controller.demo.controller; + +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RequestMapping; + +/** + * 图标相关 + * + * @author ruoyi + */ +@Controller +@RequestMapping("/demo/icon") +public class DemoIconController +{ + private String prefix = "demo/icon"; + + /** + * FontAwesome图标 + */ + @GetMapping("/fontawesome") + public String fontAwesome() + { + return prefix + "/fontawesome"; + } + + /** + * Glyphicons图标 + */ + @GetMapping("/glyphicons") + public String glyphicons() + { + return prefix + "/glyphicons"; + } +} diff --git a/alive-admin/src/main/java/com/ruoyi/web/controller/demo/controller/DemoOperateController.java b/alive-admin/src/main/java/com/ruoyi/web/controller/demo/controller/DemoOperateController.java new file mode 100644 index 0000000..18cb90a --- /dev/null +++ b/alive-admin/src/main/java/com/ruoyi/web/controller/demo/controller/DemoOperateController.java @@ -0,0 +1,326 @@ +package com.ruoyi.web.controller.demo.controller; + +import java.util.ArrayList; +import java.util.LinkedHashMap; +import java.util.List; +import java.util.Map; +import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; +import org.springframework.web.multipart.MultipartFile; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.page.PageDomain; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.core.page.TableSupport; +import com.ruoyi.common.core.text.Convert; +import com.ruoyi.common.exception.ServiceException; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.common.utils.poi.ExcelUtil; +import com.ruoyi.web.controller.demo.domain.CustomerModel; +import com.ruoyi.web.controller.demo.domain.UserOperateModel; + +/** + * 操作控制 + * + * @author ruoyi + */ +@Controller +@RequestMapping("/demo/operate") +public class DemoOperateController extends BaseController +{ + private String prefix = "demo/operate"; + + private final static Map users = new LinkedHashMap(); + { + users.put(1, new UserOperateModel(1, "1000001", "测试1", "0", "15888888888", "ry@qq.com", 150.0, "0")); + users.put(2, new UserOperateModel(2, "1000002", "测试2", "1", "15666666666", "ry@qq.com", 180.0, "1")); + users.put(3, new UserOperateModel(3, "1000003", "测试3", "0", "15666666666", "ry@qq.com", 110.0, "1")); + users.put(4, new UserOperateModel(4, "1000004", "测试4", "1", "15666666666", "ry@qq.com", 220.0, "1")); + users.put(5, new UserOperateModel(5, "1000005", "测试5", "0", "15666666666", "ry@qq.com", 140.0, "1")); + users.put(6, new UserOperateModel(6, "1000006", "测试6", "1", "15666666666", "ry@qq.com", 330.0, "1")); + users.put(7, new UserOperateModel(7, "1000007", "测试7", "0", "15666666666", "ry@qq.com", 160.0, "1")); + users.put(8, new UserOperateModel(8, "1000008", "测试8", "1", "15666666666", "ry@qq.com", 170.0, "1")); + users.put(9, new UserOperateModel(9, "1000009", "测试9", "0", "15666666666", "ry@qq.com", 180.0, "1")); + users.put(10, new UserOperateModel(10, "1000010", "测试10", "0", "15666666666", "ry@qq.com", 210.0, "1")); + users.put(11, new UserOperateModel(11, "1000011", "测试11", "1", "15666666666", "ry@qq.com", 110.0, "1")); + users.put(12, new UserOperateModel(12, "1000012", "测试12", "0", "15666666666", "ry@qq.com", 120.0, "1")); + users.put(13, new UserOperateModel(13, "1000013", "测试13", "1", "15666666666", "ry@qq.com", 380.0, "1")); + users.put(14, new UserOperateModel(14, "1000014", "测试14", "0", "15666666666", "ry@qq.com", 280.0, "1")); + users.put(15, new UserOperateModel(15, "1000015", "测试15", "0", "15666666666", "ry@qq.com", 570.0, "1")); + users.put(16, new UserOperateModel(16, "1000016", "测试16", "1", "15666666666", "ry@qq.com", 260.0, "1")); + users.put(17, new UserOperateModel(17, "1000017", "测试17", "1", "15666666666", "ry@qq.com", 210.0, "1")); + users.put(18, new UserOperateModel(18, "1000018", "测试18", "1", "15666666666", "ry@qq.com", 340.0, "1")); + users.put(19, new UserOperateModel(19, "1000019", "测试19", "1", "15666666666", "ry@qq.com", 160.0, "1")); + users.put(20, new UserOperateModel(20, "1000020", "测试20", "1", "15666666666", "ry@qq.com", 220.0, "1")); + users.put(21, new UserOperateModel(21, "1000021", "测试21", "1", "15666666666", "ry@qq.com", 120.0, "1")); + users.put(22, new UserOperateModel(22, "1000022", "测试22", "1", "15666666666", "ry@qq.com", 130.0, "1")); + users.put(23, new UserOperateModel(23, "1000023", "测试23", "1", "15666666666", "ry@qq.com", 490.0, "1")); + users.put(24, new UserOperateModel(24, "1000024", "测试24", "1", "15666666666", "ry@qq.com", 570.0, "1")); + users.put(25, new UserOperateModel(25, "1000025", "测试25", "1", "15666666666", "ry@qq.com", 250.0, "1")); + users.put(26, new UserOperateModel(26, "1000026", "测试26", "1", "15666666666", "ry@qq.com", 250.0, "1")); + } + + /** + * 表格 + */ + @GetMapping("/table") + public String table() + { + return prefix + "/table"; + } + + /** + * 其他 + */ + @GetMapping("/other") + public String other() + { + return prefix + "/other"; + } + + /** + * 查询数据 + */ + @PostMapping("/list") + @ResponseBody + public TableDataInfo list(UserOperateModel userModel) + { + TableDataInfo rspData = new TableDataInfo(); + List userList = new ArrayList(users.values()); + // 查询条件过滤 + if (StringUtils.isNotEmpty(userModel.getSearchValue())) + { + userList.clear(); + for (Map.Entry entry : users.entrySet()) + { + if (entry.getValue().getUserName().equals(userModel.getSearchValue())) + { + userList.add(entry.getValue()); + } + } + } + else if (StringUtils.isNotEmpty(userModel.getUserName())) + { + userList.clear(); + for (Map.Entry entry : users.entrySet()) + { + if (entry.getValue().getUserName().equals(userModel.getUserName())) + { + userList.add(entry.getValue()); + } + } + } + PageDomain pageDomain = TableSupport.buildPageRequest(); + if (null == pageDomain.getPageNum() || null == pageDomain.getPageSize()) + { + rspData.setRows(userList); + rspData.setTotal(userList.size()); + return rspData; + } + Integer pageNum = (pageDomain.getPageNum() - 1) * 10; + Integer pageSize = pageDomain.getPageNum() * 10; + if (pageSize > userList.size()) + { + pageSize = userList.size(); + } + rspData.setRows(userList.subList(pageNum, pageSize)); + rspData.setTotal(userList.size()); + return rspData; + } + + /** + * 新增用户 + */ + @GetMapping("/add") + public String add(ModelMap mmap) + { + return prefix + "/add"; + } + + /** + * 新增保存用户 + */ + @PostMapping("/add") + @ResponseBody + public AjaxResult addSave(UserOperateModel user) + { + Integer userId = users.size() + 1; + user.setUserId(userId); + return AjaxResult.success(users.put(userId, user)); + } + + /** + * 新增保存主子表信息 + */ + @PostMapping("/customer/add") + @ResponseBody + public AjaxResult addSave(CustomerModel customerModel) + { + System.out.println(customerModel.toString()); + return AjaxResult.success(); + } + + /** + * 修改用户 + */ + @GetMapping("/edit/{userId}") + public String edit(@PathVariable("userId") Integer userId, ModelMap mmap) + { + mmap.put("user", users.get(userId)); + return prefix + "/edit"; + } + + /** + * 修改保存用户 + */ + @PostMapping("/edit") + @ResponseBody + public AjaxResult editSave(UserOperateModel user) + { + return AjaxResult.success(users.put(user.getUserId(), user)); + } + + /** + * 导出 + */ + @PostMapping("/export") + @ResponseBody + public AjaxResult export(UserOperateModel user) + { + List list = new ArrayList(users.values()); + ExcelUtil util = new ExcelUtil(UserOperateModel.class); + return util.exportExcel(list, "用户数据"); + } + + /** + * 下载模板 + */ + @GetMapping("/importTemplate") + @ResponseBody + public AjaxResult importTemplate() + { + ExcelUtil util = new ExcelUtil(UserOperateModel.class); + return util.importTemplateExcel("用户数据"); + } + + /** + * 导入数据 + */ + @PostMapping("/importData") + @ResponseBody + public AjaxResult importData(MultipartFile file, boolean updateSupport) throws Exception + { + ExcelUtil util = new ExcelUtil(UserOperateModel.class); + List userList = util.importExcel(file.getInputStream()); + String message = importUser(userList, updateSupport); + return AjaxResult.success(message); + } + + /** + * 删除用户 + */ + @PostMapping("/remove") + @ResponseBody + public AjaxResult remove(String ids) + { + Integer[] userIds = Convert.toIntArray(ids); + for (Integer userId : userIds) + { + users.remove(userId); + } + return AjaxResult.success(); + } + + /** + * 查看详细 + */ + @GetMapping("/detail/{userId}") + public String detail(@PathVariable("userId") Integer userId, ModelMap mmap) + { + mmap.put("user", users.get(userId)); + return prefix + "/detail"; + } + + @PostMapping("/clean") + @ResponseBody + public AjaxResult clean() + { + users.clear(); + return success(); + } + + /** + * 导入用户数据 + * + * @param userList 用户数据列表 + * @param isUpdateSupport 是否更新支持,如果已存在,则进行更新数据 + * @return 结果 + */ + public String importUser(List userList, Boolean isUpdateSupport) + { + if (StringUtils.isNull(userList) || userList.size() == 0) + { + throw new ServiceException("导入用户数据不能为空!"); + } + int successNum = 0; + int failureNum = 0; + StringBuilder successMsg = new StringBuilder(); + StringBuilder failureMsg = new StringBuilder(); + for (UserOperateModel user : userList) + { + try + { + // 验证是否存在这个用户 + boolean userFlag = false; + for (Map.Entry entry : users.entrySet()) + { + if (entry.getValue().getUserName().equals(user.getUserName())) + { + userFlag = true; + break; + } + } + if (!userFlag) + { + Integer userId = users.size() + 1; + user.setUserId(userId); + users.put(userId, user); + successNum++; + successMsg.append("
" + successNum + "、用户 " + user.getUserName() + " 导入成功"); + } + else if (isUpdateSupport) + { + users.put(user.getUserId(), user); + successNum++; + successMsg.append("
" + successNum + "、用户 " + user.getUserName() + " 更新成功"); + } + else + { + failureNum++; + failureMsg.append("
" + failureNum + "、用户 " + user.getUserName() + " 已存在"); + } + } + catch (Exception e) + { + failureNum++; + String msg = "
" + failureNum + "、账号 " + user.getUserName() + " 导入失败:"; + failureMsg.append(msg + e.getMessage()); + } + } + if (failureNum > 0) + { + failureMsg.insert(0, "很抱歉,导入失败!共 " + failureNum + " 条数据格式不正确,错误如下:"); + throw new ServiceException(failureMsg.toString()); + } + else + { + successMsg.insert(0, "恭喜您,数据已全部导入成功!共 " + successNum + " 条,数据如下:"); + } + return successMsg.toString(); + } +} diff --git a/alive-admin/src/main/java/com/ruoyi/web/controller/demo/controller/DemoReportController.java b/alive-admin/src/main/java/com/ruoyi/web/controller/demo/controller/DemoReportController.java new file mode 100644 index 0000000..6101008 --- /dev/null +++ b/alive-admin/src/main/java/com/ruoyi/web/controller/demo/controller/DemoReportController.java @@ -0,0 +1,53 @@ +package com.ruoyi.web.controller.demo.controller; + +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RequestMapping; + +/** + * 报表 + * + * @author ruoyi + */ +@Controller +@RequestMapping("/demo/report") +public class DemoReportController +{ + private String prefix = "demo/report"; + + /** + * 百度ECharts + */ + @GetMapping("/echarts") + public String echarts() + { + return prefix + "/echarts"; + } + + /** + * 图表插件 + */ + @GetMapping("/peity") + public String peity() + { + return prefix + "/peity"; + } + + /** + * 线状图插件 + */ + @GetMapping("/sparkline") + public String sparkline() + { + return prefix + "/sparkline"; + } + + /** + * 图表组合 + */ + @GetMapping("/metrics") + public String metrics() + { + return prefix + "/metrics"; + } +} diff --git a/alive-admin/src/main/java/com/ruoyi/web/controller/demo/controller/DemoTableController.java b/alive-admin/src/main/java/com/ruoyi/web/controller/demo/controller/DemoTableController.java new file mode 100644 index 0000000..71f411a --- /dev/null +++ b/alive-admin/src/main/java/com/ruoyi/web/controller/demo/controller/DemoTableController.java @@ -0,0 +1,846 @@ +package com.ruoyi.web.controller.demo.controller; + +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collections; +import java.util.Date; +import java.util.List; +import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; +import com.fasterxml.jackson.annotation.JsonFormat; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.annotation.Excel.ColumnType; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.page.PageDomain; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.core.page.TableSupport; +import com.ruoyi.common.core.text.Convert; +import com.ruoyi.common.utils.DateUtils; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.common.utils.poi.ExcelUtil; + +/** + * 表格相关 + * + * @author ruoyi + */ +@Controller +@RequestMapping("/demo/table") +public class DemoTableController extends BaseController +{ + private String prefix = "demo/table"; + + private final static List users = new ArrayList(); + { + users.add(new UserTableModel(1, "1000001", "测试1", "0", "15888888888", "ry@qq.com", 150.0, "0")); + users.add(new UserTableModel(2, "1000002", "测试2", "1", "15666666666", "ry@qq.com", 180.0, "1")); + users.add(new UserTableModel(3, "1000003", "测试3", "0", "15666666666", "ry@qq.com", 110.0, "1")); + users.add(new UserTableModel(4, "1000004", "测试4", "1", "15666666666", "ry@qq.com", 220.0, "1")); + users.add(new UserTableModel(5, "1000005", "测试5", "0", "15666666666", "ry@qq.com", 140.0, "1")); + users.add(new UserTableModel(6, "1000006", "测试6", "1", "15666666666", "ry@qq.com", 330.0, "1")); + users.add(new UserTableModel(7, "1000007", "测试7", "0", "15666666666", "ry@qq.com", 160.0, "1")); + users.add(new UserTableModel(8, "1000008", "测试8", "1", "15666666666", "ry@qq.com", 170.0, "1")); + users.add(new UserTableModel(9, "1000009", "测试9", "0", "15666666666", "ry@qq.com", 180.0, "1")); + users.add(new UserTableModel(10, "1000010", "测试10", "0", "15666666666", "ry@qq.com", 210.0, "1")); + users.add(new UserTableModel(11, "1000011", "测试11", "1", "15666666666", "ry@qq.com", 110.0, "1")); + users.add(new UserTableModel(12, "1000012", "测试12", "0", "15666666666", "ry@qq.com", 120.0, "1")); + users.add(new UserTableModel(13, "1000013", "测试13", "1", "15666666666", "ry@qq.com", 380.0, "1")); + users.add(new UserTableModel(14, "1000014", "测试14", "0", "15666666666", "ry@qq.com", 280.0, "1")); + users.add(new UserTableModel(15, "1000015", "测试15", "0", "15666666666", "ry@qq.com", 570.0, "1")); + users.add(new UserTableModel(16, "1000016", "测试16", "1", "15666666666", "ry@qq.com", 260.0, "1")); + users.add(new UserTableModel(17, "1000017", "测试17", "1", "15666666666", "ry@qq.com", 210.0, "1")); + users.add(new UserTableModel(18, "1000018", "测试18", "1", "15666666666", "ry@qq.com", 340.0, "1")); + users.add(new UserTableModel(19, "1000019", "测试19", "1", "15666666666", "ry@qq.com", 160.0, "1")); + users.add(new UserTableModel(20, "1000020", "测试20", "1", "15666666666", "ry@qq.com", 220.0, "1")); + users.add(new UserTableModel(21, "1000021", "测试21", "1", "15666666666", "ry@qq.com", 120.0, "1")); + users.add(new UserTableModel(22, "1000022", "测试22", "1", "15666666666", "ry@qq.com", 130.0, "1")); + users.add(new UserTableModel(23, "1000023", "测试23", "1", "15666666666", "ry@qq.com", 490.0, "1")); + users.add(new UserTableModel(24, "1000024", "测试24", "1", "15666666666", "ry@qq.com", 570.0, "1")); + users.add(new UserTableModel(25, "1000025", "测试25", "1", "15666666666", "ry@qq.com", 250.0, "1")); + users.add(new UserTableModel(26, "1000026", "测试26", "1", "15666666666", "ry@qq.com", 250.0, "1")); + } + + private final static List areas = new ArrayList(); + { + areas.add(new AreaModel(1, 0, "广东省", "440000", "GDS", "GuangDongSheng", 1)); + areas.add(new AreaModel(2, 0, "湖南省", "430000", "HNS", "HuNanSheng", 1)); + areas.add(new AreaModel(3, 0, "河南省", "410000", "HNS", "HeNanSheng", 0)); + areas.add(new AreaModel(4, 0, "湖北省", "420000", "HBS", "HuBeiSheng", 0)); + areas.add(new AreaModel(5, 0, "辽宁省", "210000", "LNS", "LiaoNingSheng", 0)); + areas.add(new AreaModel(6, 0, "山东省", "370000", "SDS", "ShanDongSheng", 0)); + areas.add(new AreaModel(7, 0, "陕西省", "610000", "SXS", "ShanXiSheng", 0)); + areas.add(new AreaModel(8, 0, "贵州省", "520000", "GZS", "GuiZhouSheng", 0)); + areas.add(new AreaModel(9, 0, "上海市", "310000", "SHS", "ShangHaiShi", 0)); + areas.add(new AreaModel(10, 0, "重庆市", "500000", "CQS", "ChongQingShi", 0)); + areas.add(new AreaModel(11, 0, "若依省", "666666", "YYS", "RuoYiSheng", 0)); + areas.add(new AreaModel(12, 0, "安徽省", "340000", "AHS", "AnHuiSheng", 0)); + areas.add(new AreaModel(13, 0, "福建省", "350000", "FJS", "FuJianSheng", 0)); + areas.add(new AreaModel(14, 0, "海南省", "460000", "HNS", "HaiNanSheng", 0)); + areas.add(new AreaModel(15, 0, "江苏省", "320000", "JSS", "JiangSuSheng", 0)); + areas.add(new AreaModel(16, 0, "青海省", "630000", "QHS", "QingHaiSheng", 0)); + areas.add(new AreaModel(17, 0, "广西壮族自治区", "450000", "GXZZZZQ", "GuangXiZhuangZuZiZhiQu", 0)); + areas.add(new AreaModel(18, 0, "宁夏回族自治区", "640000", "NXHZZZQ", "NingXiaHuiZuZiZhiQu", 0)); + areas.add(new AreaModel(19, 0, "内蒙古自治区", "150000", "NMGZZQ", "NeiMengGuZiZhiQu", 0)); + areas.add(new AreaModel(20, 0, "新疆维吾尔自治区", "650000", "XJWWEZZQ", "XinJiangWeiWuErZiZhiQu", 0)); + areas.add(new AreaModel(21, 0, "江西省", "360000", "JXS", "JiangXiSheng", 0)); + areas.add(new AreaModel(22, 0, "浙江省", "330000", "ZJS", "ZheJiangSheng", 0)); + areas.add(new AreaModel(23, 0, "河北省", "130000", "HBS", "HeBeiSheng", 0)); + areas.add(new AreaModel(24, 0, "天津市", "120000", "TJS", "TianJinShi", 0)); + areas.add(new AreaModel(25, 0, "山西省", "140000", "SXS", "ShanXiSheng", 0)); + areas.add(new AreaModel(26, 0, "台湾省", "710000", "TWS", "TaiWanSheng", 0)); + areas.add(new AreaModel(27, 0, "甘肃省", "620000", "GSS", "GanSuSheng", 0)); + areas.add(new AreaModel(28, 0, "四川省", "510000", "SCS", "SiChuanSheng", 0)); + areas.add(new AreaModel(29, 0, "云南省", "530000", "YNS", "YunNanSheng", 0)); + areas.add(new AreaModel(30, 0, "北京市", "110000", "BJS", "BeiJingShi", 0)); + areas.add(new AreaModel(31, 0, "香港特别行政区", "810000", "XGTBXZQ", "XiangGangTeBieXingZhengQu", 0)); + areas.add(new AreaModel(32, 0, "澳门特别行政区", "820000", "AMTBXZQ", "AoMenTeBieXingZhengQu", 0)); + + areas.add(new AreaModel(100, 1, "深圳市", "440300", "SZS", "ShenZhenShi", 1)); + areas.add(new AreaModel(101, 1, "广州市", "440100", "GZS", "GuangZhouShi", 0)); + areas.add(new AreaModel(102, 1, "东莞市", "441900", "DGS", "DongGuanShi", 0)); + areas.add(new AreaModel(103, 2, "长沙市", "410005", "CSS", "ChangShaShi", 1)); + areas.add(new AreaModel(104, 2, "岳阳市", "414000", "YYS", "YueYangShi", 0)); + + areas.add(new AreaModel(1000, 100, "龙岗区", "518172", "LGQ", "LongGangQu", 0)); + areas.add(new AreaModel(1001, 100, "南山区", "518051", "NSQ", "NanShanQu", 0)); + areas.add(new AreaModel(1002, 100, "宝安区", "518101", "BAQ", "BaoAnQu", 0)); + areas.add(new AreaModel(1003, 100, "福田区", "518081", "FTQ", "FuTianQu", 0)); + areas.add(new AreaModel(1004, 103, "天心区", "410004", "TXQ", "TianXinQu", 0)); + areas.add(new AreaModel(1005, 103, "开福区", "410008", "KFQ", "KaiFuQu", 0)); + areas.add(new AreaModel(1006, 103, "芙蓉区", "410011", "FRQ", "FuRongQu", 0)); + areas.add(new AreaModel(1007, 103, "雨花区", "410011", "YHQ", "YuHuaQu", 0)); + } + + private final static List columns = new ArrayList(); + { + columns.add(new UserTableColumn("用户ID", "userId")); + columns.add(new UserTableColumn("用户编号", "userCode")); + columns.add(new UserTableColumn("用户姓名", "userName")); + columns.add(new UserTableColumn("用户手机", "userPhone")); + columns.add(new UserTableColumn("用户邮箱", "userEmail")); + columns.add(new UserTableColumn("用户状态", "status")); + } + + /** + * 搜索相关 + */ + @GetMapping("/search") + public String search() + { + return prefix + "/search"; + } + + /** + * 数据汇总 + */ + @GetMapping("/footer") + public String footer() + { + return prefix + "/footer"; + } + + /** + * 组合表头 + */ + @GetMapping("/groupHeader") + public String groupHeader() + { + return prefix + "/groupHeader"; + } + + /** + * 表格导出 + */ + @GetMapping("/export") + public String export() + { + return prefix + "/export"; + } + + /** + * 表格导出选择列 + */ + @GetMapping("/exportSelected") + public String exportSelected() + { + return prefix + "/exportSelected"; + } + + /** + * 导出数据 + */ + @PostMapping("/exportData") + @ResponseBody + public AjaxResult exportSelected(UserTableModel userModel, String userIds) + { + List userList = new ArrayList(Arrays.asList(new UserTableModel[users.size()])); + Collections.copy(userList, users); + + // 条件过滤 + if (StringUtils.isNotEmpty(userIds)) + { + userList.clear(); + for (Long userId : Convert.toLongArray(userIds)) + { + for (UserTableModel user : users) + { + if (user.getUserId() == userId) + { + userList.add(user); + } + } + } + } + ExcelUtil util = new ExcelUtil(UserTableModel.class); + return util.exportExcel(userList, "用户数据"); + } + + /** + * 翻页记住选择 + */ + @GetMapping("/remember") + public String remember() + { + return prefix + "/remember"; + } + + /** + * 跳转至指定页 + */ + @GetMapping("/pageGo") + public String pageGo() + { + return prefix + "/pageGo"; + } + + /** + * 自定义查询参数 + */ + @GetMapping("/params") + public String params() + { + return prefix + "/params"; + } + + /** + * 多表格 + */ + @GetMapping("/multi") + public String multi() + { + return prefix + "/multi"; + } + + /** + * 点击按钮加载表格 + */ + @GetMapping("/button") + public String button() + { + return prefix + "/button"; + } + + /** + * 直接加载表格数据 + */ + @GetMapping("/data") + public String data(ModelMap mmap) + { + mmap.put("users", users); + return prefix + "/data"; + } + + /** + * 表格冻结列 + */ + @GetMapping("/fixedColumns") + public String fixedColumns() + { + return prefix + "/fixedColumns"; + } + + /** + * 自定义触发事件 + */ + @GetMapping("/event") + public String event() + { + return prefix + "/event"; + } + + /** + * 表格细节视图 + */ + @GetMapping("/detail") + public String detail() + { + return prefix + "/detail"; + } + + /** + * 表格父子视图 + */ + @GetMapping("/child") + public String child() + { + return prefix + "/child"; + } + + /** + * 表格图片预览 + */ + @GetMapping("/image") + public String image() + { + return prefix + "/image"; + } + + /** + * 动态增删改查 + */ + @GetMapping("/curd") + public String curd() + { + return prefix + "/curd"; + } + + /** + * 表格行拖拽操作 + */ + @GetMapping("/reorderRows") + public String reorderRows() + { + return prefix + "/reorderRows"; + } + + /** + * 表格列拖拽操作 + */ + @GetMapping("/reorderColumns") + public String reorderColumns() + { + return prefix + "/reorderColumns"; + } + + /** + * 表格列宽拖动 + */ + @GetMapping("/resizable") + public String resizable() + { + return prefix + "/resizable"; + } + + /** + * 表格行内编辑操作 + */ + @GetMapping("/editable") + public String editable() + { + return prefix + "/editable"; + } + + /** + * 主子表提交 + */ + @GetMapping("/subdata") + public String subdata() + { + return prefix + "/subdata"; + } + + /** + * 表格自动刷新 + */ + @GetMapping("/refresh") + public String refresh() + { + return prefix + "/refresh"; + } + + /** + * 表格打印配置 + */ + @GetMapping("/print") + public String print() + { + return prefix + "/print"; + } + + /** + * 表格标题格式化 + */ + @GetMapping("/headerStyle") + public String headerStyle() + { + return prefix + "/headerStyle"; + } + + /** + * 表格动态列 + */ + @GetMapping("/dynamicColumns") + public String dynamicColumns() + { + return prefix + "/dynamicColumns"; + } + + /** + * 自定义视图分页 + */ + @GetMapping("/customView") + public String customView() + { + return prefix + "/customView"; + } + + /** + * 异步加载表格树 + */ + @GetMapping("/asynTree") + public String asynTree() + { + return prefix + "/asynTree"; + } + + /** + * 表格其他操作 + */ + @GetMapping("/other") + public String other() + { + return prefix + "/other"; + } + + /** + * 动态获取列 + */ + @PostMapping("/ajaxColumns") + @ResponseBody + public AjaxResult ajaxColumns(UserTableColumn userColumn) + { + List columnList = new ArrayList(Arrays.asList(new UserTableColumn[columns.size()])); + Collections.copy(columnList, columns); + if (userColumn != null && "userBalance".equals(userColumn.getField())) + { + columnList.add(new UserTableColumn("用户余额", "userBalance")); + } + return AjaxResult.success(columnList); + } + + /** + * 查询数据 + */ + @PostMapping("/list") + @ResponseBody + public TableDataInfo list(UserTableModel userModel) + { + TableDataInfo rspData = new TableDataInfo(); + List userList = new ArrayList(Arrays.asList(new UserTableModel[users.size()])); + Collections.copy(userList, users); + // 查询条件过滤 + if (StringUtils.isNotEmpty(userModel.getUserName())) + { + userList.clear(); + for (UserTableModel user : users) + { + if (user.getUserName().equals(userModel.getUserName())) + { + userList.add(user); + } + } + } + PageDomain pageDomain = TableSupport.buildPageRequest(); + if (null == pageDomain.getPageNum() || null == pageDomain.getPageSize()) + { + rspData.setRows(userList); + rspData.setTotal(userList.size()); + return rspData; + } + Integer pageNum = (pageDomain.getPageNum() - 1) * 10; + Integer pageSize = pageDomain.getPageNum() * 10; + if (pageSize > userList.size()) + { + pageSize = userList.size(); + } + rspData.setRows(userList.subList(pageNum, pageSize)); + rspData.setTotal(userList.size()); + return rspData; + } + + /** + * 查询树表数据 + */ + @PostMapping("/tree/list") + @ResponseBody + public TableDataInfo treeList(AreaModel areaModel) + { + TableDataInfo rspData = new TableDataInfo(); + List areaList = new ArrayList(Arrays.asList(new AreaModel[areas.size()])); + // 默认查询条件 parentId 0 + Collections.copy(areaList, areas); + areaList.clear(); + if (StringUtils.isNotEmpty(areaModel.getAreaName())) + { + for (AreaModel area : areas) + { + if (area.getParentId() == 0 && area.getAreaName().equals(areaModel.getAreaName())) + { + areaList.add(area); + } + } + } + else + { + for (AreaModel area : areas) + { + if (area.getParentId() == 0) + { + areaList.add(area); + } + } + } + PageDomain pageDomain = TableSupport.buildPageRequest(); + Integer pageNum = (pageDomain.getPageNum() - 1) * 10; + Integer pageSize = pageDomain.getPageNum() * 10; + if (pageSize > areaList.size()) + { + pageSize = areaList.size(); + } + rspData.setRows(areaList.subList(pageNum, pageSize)); + rspData.setTotal(areaList.size()); + return rspData; + } + + /** + * 查询树表子节点数据 + */ + @PostMapping("/tree/listChild") + @ResponseBody + public List listChild(AreaModel areaModel) + { + List areaList = new ArrayList(Arrays.asList(new AreaModel[areas.size()])); + // 查询条件 parentId + Collections.copy(areaList, areas); + areaList.clear(); + if (StringUtils.isNotEmpty(areaModel.getAreaName())) + { + for (AreaModel area : areas) + { + if (area.getParentId().intValue() == areaModel.getParentId().intValue() && area.getAreaName().equals(areaModel.getAreaName())) + { + areaList.add(area); + } + } + } + else + { + for (AreaModel area : areas) + { + if (area.getParentId().intValue() == areaModel.getParentId().intValue()) + { + areaList.add(area); + } + } + } + return areaList; + } +} + +class UserTableColumn +{ + /** 表头 */ + private String title; + /** 字段 */ + private String field; + + public UserTableColumn() + { + + } + + public UserTableColumn(String title, String field) + { + this.title = title; + this.field = field; + } + + public String getTitle() + { + return title; + } + + public void setTitle(String title) + { + this.title = title; + } + + public String getField() + { + return field; + } + + public void setField(String field) + { + this.field = field; + } +} + +class UserTableModel +{ + /** 用户ID */ + private int userId; + + /** 用户编号 */ + @Excel(name = "用户编号", cellType = ColumnType.NUMERIC) + private String userCode; + + /** 用户姓名 */ + @Excel(name = "用户姓名") + private String userName; + + /** 用户性别 */ + private String userSex; + + /** 用户手机 */ + @Excel(name = "用户手机") + private String userPhone; + + /** 用户邮箱 */ + @Excel(name = "用户邮箱") + private String userEmail; + + /** 用户余额 */ + @Excel(name = "用户余额", cellType = ColumnType.NUMERIC) + private double userBalance; + + /** 用户状态(0正常 1停用) */ + private String status; + + /** 创建时间 */ + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") + private Date createTime; + + public UserTableModel() + { + + } + + public UserTableModel(int userId, String userCode, String userName, String userSex, String userPhone, + String userEmail, double userBalance, String status) + { + this.userId = userId; + this.userCode = userCode; + this.userName = userName; + this.userSex = userSex; + this.userPhone = userPhone; + this.userEmail = userEmail; + this.userBalance = userBalance; + this.status = status; + this.createTime = DateUtils.getNowDate(); + } + + public int getUserId() + { + return userId; + } + + public void setUserId(int userId) + { + this.userId = userId; + } + + public String getUserCode() + { + return userCode; + } + + public void setUserCode(String userCode) + { + this.userCode = userCode; + } + + public String getUserName() + { + return userName; + } + + public void setUserName(String userName) + { + this.userName = userName; + } + + public String getUserSex() + { + return userSex; + } + + public void setUserSex(String userSex) + { + this.userSex = userSex; + } + + public String getUserPhone() + { + return userPhone; + } + + public void setUserPhone(String userPhone) + { + this.userPhone = userPhone; + } + + public String getUserEmail() + { + return userEmail; + } + + public void setUserEmail(String userEmail) + { + this.userEmail = userEmail; + } + + public double getUserBalance() + { + return userBalance; + } + + public void setUserBalance(double userBalance) + { + this.userBalance = userBalance; + } + + public String getStatus() + { + return status; + } + + public void setStatus(String status) + { + this.status = status; + } + + public Date getCreateTime() + { + return createTime; + } + + public void setCreateTime(Date createTime) + { + this.createTime = createTime; + } +} +class AreaModel +{ + /** 编号 */ + private Long id; + + /** 父编号 */ + private Long parentId; + + /** 区域名称 */ + private String areaName; + + /** 区域代码 */ + private String areaCode; + + /** 名称首字母 */ + private String simplePy; + + /** 名称全拼 */ + private String pinYin; + + /** 是否有子节点(0无 1有) */ + private Integer isTreeLeaf = 1; + + public AreaModel() + { + + } + + public AreaModel(int id, int parentId, String areaName, String areaCode, String simplePy, String pinYin, Integer isTreeLeaf) + { + this.id = Long.valueOf(id); + this.parentId = Long.valueOf(parentId); + this.areaName = areaName; + this.areaCode = areaCode; + this.simplePy = simplePy; + this.pinYin = pinYin; + this.isTreeLeaf = isTreeLeaf; + } + + public Long getId() + { + return id; + } + + public void setId(Long id) + { + this.id = id; + } + + public Long getParentId() + { + return parentId; + } + + public void setParentId(Long parentId) + { + this.parentId = parentId; + } + + public String getAreaName() + { + return areaName; + } + + public void setAreaName(String areaName) + { + this.areaName = areaName; + } + + public String getAreaCode() + { + return areaCode; + } + + public void setAreaCode(String areaCode) + { + this.areaCode = areaCode; + } + + public String getSimplePy() + { + return simplePy; + } + + public void setSimplePy(String simplePy) + { + this.simplePy = simplePy; + } + + public String getPinYin() + { + return pinYin; + } + + public void setPinYin(String pinYin) + { + this.pinYin = pinYin; + } + + public Integer getIsTreeLeaf() + { + return isTreeLeaf; + } + + public void setIsTreeLeaf(Integer isTreeLeaf) + { + this.isTreeLeaf = isTreeLeaf; + } +} diff --git a/alive-admin/src/main/java/com/ruoyi/web/controller/demo/domain/CustomerModel.java b/alive-admin/src/main/java/com/ruoyi/web/controller/demo/domain/CustomerModel.java new file mode 100644 index 0000000..5e7d6e5 --- /dev/null +++ b/alive-admin/src/main/java/com/ruoyi/web/controller/demo/domain/CustomerModel.java @@ -0,0 +1,116 @@ +package com.ruoyi.web.controller.demo.domain; + +import java.util.List; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; + +/** + * 客户测试信息 + * + * @author ruoyi + */ +public class CustomerModel +{ + /** + * 客户姓名 + */ + private String name; + + /** + * 客户手机 + */ + private String phonenumber; + + /** + * 客户性别 + */ + private String sex; + + /** + * 客户生日 + */ + private String birthday; + + /** + * 客户描述 + */ + private String remark; + + /** + * 商品信息 + */ + private List goods; + + public String getName() + { + return name; + } + + public void setName(String name) + { + this.name = name; + } + + public String getPhonenumber() + { + return phonenumber; + } + + public void setPhonenumber(String phonenumber) + { + this.phonenumber = phonenumber; + } + + + public String getSex() + { + return sex; + } + + public void setSex(String sex) + { + this.sex = sex; + } + + public String getBirthday() + { + return birthday; + } + + public void setBirthday(String birthday) + { + this.birthday = birthday; + } + + public String getRemark() + { + return remark; + } + + public void setRemark(String remark) + { + this.remark = remark; + } + + public List getGoods() + { + return goods; + } + + public void setGoods(List goods) + { + this.goods = goods; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("name", getName()) + .append("phonenumber", getPhonenumber()) + .append("sex", getSex()) + .append("birthday", getBirthday()) + .append("goods", getGoods()) + .append("remark", getRemark()) + .toString(); + } +} diff --git a/alive-admin/src/main/java/com/ruoyi/web/controller/demo/domain/GoodsModel.java b/alive-admin/src/main/java/com/ruoyi/web/controller/demo/domain/GoodsModel.java new file mode 100644 index 0000000..b25542a --- /dev/null +++ b/alive-admin/src/main/java/com/ruoyi/web/controller/demo/domain/GoodsModel.java @@ -0,0 +1,99 @@ +package com.ruoyi.web.controller.demo.domain; + +import java.util.Date; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; + +/** + * 商品测试信息 + * + * @author ruoyi + */ +public class GoodsModel +{ + /** + * 商品名称 + */ + private String name; + + /** + * 商品重量 + */ + private Integer weight; + + /** + * 商品价格 + */ + private Double price; + + /** + * 商品日期 + */ + private Date date; + + /** + * 商品种类 + */ + private String type; + + public String getName() + { + return name; + } + + public void setName(String name) + { + this.name = name; + } + + public Integer getWeight() + { + return weight; + } + + public void setWeight(Integer weight) + { + this.weight = weight; + } + + public Double getPrice() + { + return price; + } + + public void setPrice(Double price) + { + this.price = price; + } + + public Date getDate() + { + return date; + } + + public void setDate(Date date) + { + this.date = date; + } + + public String getType() + { + return type; + } + + public void setType(String type) + { + this.type = type; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("name", getName()) + .append("weight", getWeight()) + .append("price", getPrice()) + .append("date", getDate()) + .append("type", getType()) + .toString(); + } +} diff --git a/alive-admin/src/main/java/com/ruoyi/web/controller/demo/domain/UserOperateModel.java b/alive-admin/src/main/java/com/ruoyi/web/controller/demo/domain/UserOperateModel.java new file mode 100644 index 0000000..8b158aa --- /dev/null +++ b/alive-admin/src/main/java/com/ruoyi/web/controller/demo/domain/UserOperateModel.java @@ -0,0 +1,149 @@ +package com.ruoyi.web.controller.demo.domain; + +import java.util.Date; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.annotation.Excel.Type; +import com.ruoyi.common.core.domain.BaseEntity; +import com.ruoyi.common.utils.DateUtils; + +public class UserOperateModel extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + private int userId; + + @Excel(name = "用户编号") + private String userCode; + + @Excel(name = "用户姓名") + private String userName; + + @Excel(name = "用户性别", readConverterExp = "0=男,1=女,2=未知") + private String userSex; + + @Excel(name = "用户手机") + private String userPhone; + + @Excel(name = "用户邮箱") + private String userEmail; + + @Excel(name = "用户余额") + private double userBalance; + + @Excel(name = "用户状态", readConverterExp = "0=正常,1=停用") + private String status; + + @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss", type = Type.EXPORT) + private Date createTime; + + public UserOperateModel() + { + + } + + public UserOperateModel(int userId, String userCode, String userName, String userSex, String userPhone, + String userEmail, double userBalance, String status) + { + this.userId = userId; + this.userCode = userCode; + this.userName = userName; + this.userSex = userSex; + this.userPhone = userPhone; + this.userEmail = userEmail; + this.userBalance = userBalance; + this.status = status; + this.createTime = DateUtils.getNowDate(); + } + + public int getUserId() + { + return userId; + } + + public void setUserId(int userId) + { + this.userId = userId; + } + + public String getUserCode() + { + return userCode; + } + + public void setUserCode(String userCode) + { + this.userCode = userCode; + } + + public String getUserName() + { + return userName; + } + + public void setUserName(String userName) + { + this.userName = userName; + } + + public String getUserSex() + { + return userSex; + } + + public void setUserSex(String userSex) + { + this.userSex = userSex; + } + + public String getUserPhone() + { + return userPhone; + } + + public void setUserPhone(String userPhone) + { + this.userPhone = userPhone; + } + + public String getUserEmail() + { + return userEmail; + } + + public void setUserEmail(String userEmail) + { + this.userEmail = userEmail; + } + + public double getUserBalance() + { + return userBalance; + } + + public void setUserBalance(double userBalance) + { + this.userBalance = userBalance; + } + + public String getStatus() + { + return status; + } + + public void setStatus(String status) + { + this.status = status; + } + + @Override + public Date getCreateTime() + { + return createTime; + } + + @Override + public void setCreateTime(Date createTime) + { + this.createTime = createTime; + } +} \ No newline at end of file diff --git a/alive-admin/src/main/java/com/ruoyi/web/controller/file/FileController.java b/alive-admin/src/main/java/com/ruoyi/web/controller/file/FileController.java new file mode 100644 index 0000000..3608551 --- /dev/null +++ b/alive-admin/src/main/java/com/ruoyi/web/controller/file/FileController.java @@ -0,0 +1,62 @@ +package com.ruoyi.web.controller.file; + +import com.alibaba.fastjson.JSON; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.system.domain.User; +import com.ruoyi.system.utils.HttpUtils; +import org.springframework.beans.factory.annotation.Value; +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.bind.annotation.ResponseBody; +import org.springframework.web.multipart.MultipartFile; + +import java.io.File; +import java.util.UUID; + + +/** + * 图片上传API接口 + * + * @author HayDen + * @date 2021-03-11 + */ +@Controller +@RequestMapping("/project/file") +public class FileController extends BaseController +{ + + @Value("${ruoyi.addImg}") + private String remoteUpload; + + @Value("${ruoyi.getImg}") + private String getImg; + + /** + * 上传图片!返回地址 + */ + @PostMapping("/updateAvatar") + @ResponseBody + public AjaxResult updateAvatar(@RequestParam("file") MultipartFile file) + { + try { + //返回文件名 + String fileName = UUID.randomUUID().toString().replaceAll("-", "")+".png"; + File dest = new File(new File(remoteUpload+"/activity").getAbsolutePath()+ "/" + fileName); + if (!dest.getParentFile().exists()) { + dest.getParentFile().mkdirs(); + } + try { + file.transferTo(dest); // 保存文件 + } catch (Exception e) { + e.printStackTrace(); + } + return AjaxResult.success(getImg+"activity/"+fileName); + } catch (Exception e) { + return AjaxResult.error("失败了"); + } + } + +} diff --git a/alive-admin/src/main/java/com/ruoyi/web/controller/monitor/CacheController.java b/alive-admin/src/main/java/com/ruoyi/web/controller/monitor/CacheController.java new file mode 100644 index 0000000..f5f0737 --- /dev/null +++ b/alive-admin/src/main/java/com/ruoyi/web/controller/monitor/CacheController.java @@ -0,0 +1,90 @@ +package com.ruoyi.web.controller.monitor; + +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.framework.web.service.CacheService; + +/** + * 缓存监控 + * + * @author ruoyi + */ +@Controller +@RequestMapping("/monitor/cache") +public class CacheController extends BaseController +{ + private String prefix = "monitor/cache"; + + @Autowired + private CacheService cacheService; + + @RequiresPermissions("monitor:cache:view") + @GetMapping() + public String cache(ModelMap mmap) + { + mmap.put("cacheNames", cacheService.getCacheNames()); + return prefix + "/cache"; + } + + @RequiresPermissions("monitor:cache:view") + @PostMapping("/getNames") + public String getCacheNames(String fragment, ModelMap mmap) + { + mmap.put("cacheNames", cacheService.getCacheNames()); + return prefix + "/cache::" + fragment; + } + + @RequiresPermissions("monitor:cache:view") + @PostMapping("/getKeys") + public String getCacheKeys(String fragment, String cacheName, ModelMap mmap) + { + mmap.put("cacheName", cacheName); + mmap.put("cacheKyes", cacheService.getCacheKeys(cacheName)); + return prefix + "/cache::" + fragment; + } + + @RequiresPermissions("monitor:cache:view") + @PostMapping("/getValue") + public String getCacheValue(String fragment, String cacheName, String cacheKey, ModelMap mmap) + { + mmap.put("cacheName", cacheName); + mmap.put("cacheKey", cacheKey); + mmap.put("cacheValue", cacheService.getCacheValue(cacheName, cacheKey)); + return prefix + "/cache::" + fragment; + } + + @RequiresPermissions("monitor:cache:view") + @PostMapping("/clearCacheName") + @ResponseBody + public AjaxResult clearCacheName(String cacheName, ModelMap mmap) + { + cacheService.clearCacheName(cacheName); + return AjaxResult.success(); + } + + @RequiresPermissions("monitor:cache:view") + @PostMapping("/clearCacheKey") + @ResponseBody + public AjaxResult clearCacheKey(String cacheName, String cacheKey, ModelMap mmap) + { + cacheService.clearCacheKey(cacheName, cacheKey); + return AjaxResult.success(); + } + + @RequiresPermissions("monitor:cache:view") + @GetMapping("/clearAll") + @ResponseBody + public AjaxResult clearAll(ModelMap mmap) + { + cacheService.clearAll(); + return AjaxResult.success(); + } +} diff --git a/alive-admin/src/main/java/com/ruoyi/web/controller/monitor/DruidController.java b/alive-admin/src/main/java/com/ruoyi/web/controller/monitor/DruidController.java new file mode 100644 index 0000000..a51bf20 --- /dev/null +++ b/alive-admin/src/main/java/com/ruoyi/web/controller/monitor/DruidController.java @@ -0,0 +1,26 @@ +package com.ruoyi.web.controller.monitor; + +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import com.ruoyi.common.core.controller.BaseController; + +/** + * druid 监控 + * + * @author ruoyi + */ +@Controller +@RequestMapping("/monitor/data") +public class DruidController extends BaseController +{ + private String prefix = "/druid"; + + @RequiresPermissions("monitor:data:view") + @GetMapping() + public String index() + { + return redirect(prefix + "/index.html"); + } +} diff --git a/alive-admin/src/main/java/com/ruoyi/web/controller/monitor/ServerController.java b/alive-admin/src/main/java/com/ruoyi/web/controller/monitor/ServerController.java new file mode 100644 index 0000000..386b5c7 --- /dev/null +++ b/alive-admin/src/main/java/com/ruoyi/web/controller/monitor/ServerController.java @@ -0,0 +1,31 @@ +package com.ruoyi.web.controller.monitor; + +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.framework.web.domain.Server; + +/** + * 服务器监控 + * + * @author ruoyi + */ +@Controller +@RequestMapping("/monitor/server") +public class ServerController extends BaseController +{ + private String prefix = "monitor/server"; + + @RequiresPermissions("monitor:server:view") + @GetMapping() + public String server(ModelMap mmap) throws Exception + { + Server server = new Server(); + server.copyTo(); + mmap.put("server", server); + return prefix + "/server"; + } +} diff --git a/alive-admin/src/main/java/com/ruoyi/web/controller/monitor/SysLogininforController.java b/alive-admin/src/main/java/com/ruoyi/web/controller/monitor/SysLogininforController.java new file mode 100644 index 0000000..056db09 --- /dev/null +++ b/alive-admin/src/main/java/com/ruoyi/web/controller/monitor/SysLogininforController.java @@ -0,0 +1,94 @@ +package com.ruoyi.web.controller.monitor; + +import java.util.List; +import com.ruoyi.framework.shiro.service.SysPasswordService; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.common.utils.poi.ExcelUtil; +import com.ruoyi.system.domain.SysLogininfor; +import com.ruoyi.system.service.ISysLogininforService; + +/** + * 系统访问记录 + * + * @author ruoyi + */ +@Controller +@RequestMapping("/monitor/logininfor") +public class SysLogininforController extends BaseController +{ + private String prefix = "monitor/logininfor"; + + @Autowired + private ISysLogininforService logininforService; + + @Autowired + private SysPasswordService passwordService; + + @RequiresPermissions("monitor:logininfor:view") + @GetMapping() + public String logininfor() + { + return prefix + "/logininfor"; + } + + @RequiresPermissions("monitor:logininfor:list") + @PostMapping("/list") + @ResponseBody + public TableDataInfo list(SysLogininfor logininfor) + { + startPage(); + List list = logininforService.selectLogininforList(logininfor); + return getDataTable(list); + } + + @Log(title = "登录日志", businessType = BusinessType.EXPORT) + @RequiresPermissions("monitor:logininfor:export") + @PostMapping("/export") + @ResponseBody + public AjaxResult export(SysLogininfor logininfor) + { + List list = logininforService.selectLogininforList(logininfor); + ExcelUtil util = new ExcelUtil(SysLogininfor.class); + return util.exportExcel(list, "登录日志"); + } + + @RequiresPermissions("monitor:logininfor:remove") + @Log(title = "登录日志", businessType = BusinessType.DELETE) + @PostMapping("/remove") + @ResponseBody + public AjaxResult remove(String ids) + { + return toAjax(logininforService.deleteLogininforByIds(ids)); + } + + @RequiresPermissions("monitor:logininfor:remove") + @Log(title = "登录日志", businessType = BusinessType.CLEAN) + @PostMapping("/clean") + @ResponseBody + public AjaxResult clean() + { + logininforService.cleanLogininfor(); + return success(); + } + + @RequiresPermissions("monitor:logininfor:unlock") + @Log(title = "账户解锁", businessType = BusinessType.OTHER) + @PostMapping("/unlock") + @ResponseBody + public AjaxResult unlock(String loginName) + { + passwordService.clearLoginRecordCache(loginName); + return success(); + } +} diff --git a/alive-admin/src/main/java/com/ruoyi/web/controller/monitor/SysOperlogController.java b/alive-admin/src/main/java/com/ruoyi/web/controller/monitor/SysOperlogController.java new file mode 100644 index 0000000..cddd972 --- /dev/null +++ b/alive-admin/src/main/java/com/ruoyi/web/controller/monitor/SysOperlogController.java @@ -0,0 +1,90 @@ +package com.ruoyi.web.controller.monitor; + +import java.util.List; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.common.utils.poi.ExcelUtil; +import com.ruoyi.system.domain.SysOperLog; +import com.ruoyi.system.service.ISysOperLogService; + +/** + * 操作日志记录 + * + * @author ruoyi + */ +@Controller +@RequestMapping("/monitor/operlog") +public class SysOperlogController extends BaseController +{ + private String prefix = "monitor/operlog"; + + @Autowired + private ISysOperLogService operLogService; + + @RequiresPermissions("monitor:operlog:view") + @GetMapping() + public String operlog() + { + return prefix + "/operlog"; + } + + @RequiresPermissions("monitor:operlog:list") + @PostMapping("/list") + @ResponseBody + public TableDataInfo list(SysOperLog operLog) + { + startPage(); + List list = operLogService.selectOperLogList(operLog); + return getDataTable(list); + } + + @Log(title = "操作日志", businessType = BusinessType.EXPORT) + @RequiresPermissions("monitor:operlog:export") + @PostMapping("/export") + @ResponseBody + public AjaxResult export(SysOperLog operLog) + { + List list = operLogService.selectOperLogList(operLog); + ExcelUtil util = new ExcelUtil(SysOperLog.class); + return util.exportExcel(list, "操作日志"); + } + + @Log(title = "操作日志", businessType = BusinessType.DELETE) + @RequiresPermissions("monitor:operlog:remove") + @PostMapping("/remove") + @ResponseBody + public AjaxResult remove(String ids) + { + return toAjax(operLogService.deleteOperLogByIds(ids)); + } + + @RequiresPermissions("monitor:operlog:detail") + @GetMapping("/detail/{operId}") + public String detail(@PathVariable("operId") Long operId, ModelMap mmap) + { + mmap.put("operLog", operLogService.selectOperLogById(operId)); + return prefix + "/detail"; + } + + @Log(title = "操作日志", businessType = BusinessType.CLEAN) + @RequiresPermissions("monitor:operlog:remove") + @PostMapping("/clean") + @ResponseBody + public AjaxResult clean() + { + operLogService.cleanOperLog(); + return success(); + } +} diff --git a/alive-admin/src/main/java/com/ruoyi/web/controller/monitor/SysUserOnlineController.java b/alive-admin/src/main/java/com/ruoyi/web/controller/monitor/SysUserOnlineController.java new file mode 100644 index 0000000..19435e9 --- /dev/null +++ b/alive-admin/src/main/java/com/ruoyi/web/controller/monitor/SysUserOnlineController.java @@ -0,0 +1,88 @@ +package com.ruoyi.web.controller.monitor; + +import java.util.List; +import org.apache.shiro.authz.annotation.Logical; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.core.text.Convert; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.common.enums.OnlineStatus; +import com.ruoyi.common.utils.ShiroUtils; +import com.ruoyi.framework.shiro.session.OnlineSession; +import com.ruoyi.framework.shiro.session.OnlineSessionDAO; +import com.ruoyi.system.domain.SysUserOnline; +import com.ruoyi.system.service.ISysUserOnlineService; + +/** + * 在线用户监控 + * + * @author ruoyi + */ +@Controller +@RequestMapping("/monitor/online") +public class SysUserOnlineController extends BaseController +{ + private String prefix = "monitor/online"; + + @Autowired + private ISysUserOnlineService userOnlineService; + + @Autowired + private OnlineSessionDAO onlineSessionDAO; + + @RequiresPermissions("monitor:online:view") + @GetMapping() + public String online() + { + return prefix + "/online"; + } + + @RequiresPermissions("monitor:online:list") + @PostMapping("/list") + @ResponseBody + public TableDataInfo list(SysUserOnline userOnline) + { + startPage(); + List list = userOnlineService.selectUserOnlineList(userOnline); + return getDataTable(list); + } + + @RequiresPermissions(value = { "monitor:online:batchForceLogout", "monitor:online:forceLogout" }, logical = Logical.OR) + @Log(title = "在线用户", businessType = BusinessType.FORCE) + @PostMapping("/batchForceLogout") + @ResponseBody + public AjaxResult batchForceLogout(String ids) + { + for (String sessionId : Convert.toStrArray(ids)) + { + SysUserOnline online = userOnlineService.selectOnlineById(sessionId); + if (online == null) + { + return error("用户已下线"); + } + OnlineSession onlineSession = (OnlineSession) onlineSessionDAO.readSession(online.getSessionId()); + if (onlineSession == null) + { + return error("用户已下线"); + } + if (sessionId.equals(ShiroUtils.getSessionId())) + { + return error("当前登录用户无法强退"); + } + onlineSessionDAO.delete(onlineSession); + online.setStatus(OnlineStatus.off_line); + userOnlineService.saveOnline(online); + userOnlineService.removeUserCache(online.getLoginName(), sessionId); + } + return success(); + } +} diff --git a/alive-admin/src/main/java/com/ruoyi/web/controller/publicAccess/PublicController.java b/alive-admin/src/main/java/com/ruoyi/web/controller/publicAccess/PublicController.java new file mode 100644 index 0000000..6168c5d --- /dev/null +++ b/alive-admin/src/main/java/com/ruoyi/web/controller/publicAccess/PublicController.java @@ -0,0 +1,37 @@ +package com.ruoyi.web.controller.publicAccess; + +import com.ruoyi.common.core.controller.BaseController; +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; + +import java.io.IOException; + +/** + * 公共资源方法 + * @author HayDen + * @date 2020-11-18 + */ +@Controller +@RequestMapping("/project/publicAccess") +public class PublicController extends BaseController +{ + + private String prefix = "project/webSocket"; + + @GetMapping("/socket") + public String awardConfig() + { + return prefix + "/socket"; + } + + @GetMapping("/fileList") + @ResponseBody + public Boolean list(String value) { + + return true; + } + + +} diff --git a/alive-admin/src/main/java/com/ruoyi/web/controller/system/SysCaptchaController.java b/alive-admin/src/main/java/com/ruoyi/web/controller/system/SysCaptchaController.java new file mode 100644 index 0000000..739c469 --- /dev/null +++ b/alive-admin/src/main/java/com/ruoyi/web/controller/system/SysCaptchaController.java @@ -0,0 +1,92 @@ +package com.ruoyi.web.controller.system; + +import java.awt.image.BufferedImage; +import java.io.IOException; +import javax.annotation.Resource; +import javax.imageio.ImageIO; +import javax.servlet.ServletOutputStream; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.servlet.ModelAndView; +import com.google.code.kaptcha.Constants; +import com.google.code.kaptcha.Producer; +import com.ruoyi.common.core.controller.BaseController; + +/** + * 图片验证码(支持算术形式) + * + * @author ruoyi + */ +@Controller +@RequestMapping("/captcha") +public class SysCaptchaController extends BaseController +{ + @Resource(name = "captchaProducer") + private Producer captchaProducer; + + @Resource(name = "captchaProducerMath") + private Producer captchaProducerMath; + + /** + * 验证码生成 + */ + @GetMapping(value = "/captchaImage") + public ModelAndView getKaptchaImage(HttpServletRequest request, HttpServletResponse response) + { + ServletOutputStream out = null; + try + { + HttpSession session = request.getSession(); + response.setDateHeader("Expires", 0); + response.setHeader("Cache-Control", "no-store, no-cache, must-revalidate"); + response.addHeader("Cache-Control", "post-check=0, pre-check=0"); + response.setHeader("Pragma", "no-cache"); + response.setContentType("image/jpeg"); + + String type = request.getParameter("type"); + String capStr = null; + String code = null; + BufferedImage bi = null; + if ("math".equals(type)) + { + String capText = captchaProducerMath.createText(); + capStr = capText.substring(0, capText.lastIndexOf("@")); + code = capText.substring(capText.lastIndexOf("@") + 1); + bi = captchaProducerMath.createImage(capStr); + } + else if ("char".equals(type)) + { + capStr = code = captchaProducer.createText(); + bi = captchaProducer.createImage(capStr); + } + session.setAttribute(Constants.KAPTCHA_SESSION_KEY, code); + out = response.getOutputStream(); + ImageIO.write(bi, "jpg", out); + out.flush(); + + } + catch (Exception e) + { + e.printStackTrace(); + } + finally + { + try + { + if (out != null) + { + out.close(); + } + } + catch (IOException e) + { + e.printStackTrace(); + } + } + return null; + } +} \ No newline at end of file diff --git a/alive-admin/src/main/java/com/ruoyi/web/controller/system/SysConfigController.java b/alive-admin/src/main/java/com/ruoyi/web/controller/system/SysConfigController.java new file mode 100644 index 0000000..03844de --- /dev/null +++ b/alive-admin/src/main/java/com/ruoyi/web/controller/system/SysConfigController.java @@ -0,0 +1,158 @@ +package com.ruoyi.web.controller.system; + +import java.util.List; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.constant.UserConstants; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.common.utils.poi.ExcelUtil; +import com.ruoyi.system.domain.SysConfig; +import com.ruoyi.system.service.ISysConfigService; + +/** + * 参数配置 信息操作处理 + * + * @author ruoyi + */ +@Controller +@RequestMapping("/system/config") +public class SysConfigController extends BaseController +{ + private String prefix = "system/config"; + + @Autowired + private ISysConfigService configService; + + @RequiresPermissions("system:config:view") + @GetMapping() + public String config() + { + return prefix + "/config"; + } + + /** + * 查询参数配置列表 + */ + @RequiresPermissions("system:config:list") + @PostMapping("/list") + @ResponseBody + public TableDataInfo list(SysConfig config) + { + startPage(); + List list = configService.selectConfigList(config); + return getDataTable(list); + } + + @Log(title = "参数管理", businessType = BusinessType.EXPORT) + @RequiresPermissions("system:config:export") + @PostMapping("/export") + @ResponseBody + public AjaxResult export(SysConfig config) + { + List list = configService.selectConfigList(config); + ExcelUtil util = new ExcelUtil(SysConfig.class); + return util.exportExcel(list, "参数数据"); + } + + /** + * 新增参数配置 + */ + @GetMapping("/add") + public String add() + { + return prefix + "/add"; + } + + /** + * 新增保存参数配置 + */ + @RequiresPermissions("system:config:add") + @Log(title = "参数管理", businessType = BusinessType.INSERT) + @PostMapping("/add") + @ResponseBody + public AjaxResult addSave(@Validated SysConfig config) + { + if (UserConstants.CONFIG_KEY_NOT_UNIQUE.equals(configService.checkConfigKeyUnique(config))) + { + return error("新增参数'" + config.getConfigName() + "'失败,参数键名已存在"); + } + config.setCreateBy(getLoginName()); + return toAjax(configService.insertConfig(config)); + } + + /** + * 修改参数配置 + */ + @RequiresPermissions("system:config:edit") + @GetMapping("/edit/{configId}") + public String edit(@PathVariable("configId") Long configId, ModelMap mmap) + { + mmap.put("config", configService.selectConfigById(configId)); + return prefix + "/edit"; + } + + /** + * 修改保存参数配置 + */ + @RequiresPermissions("system:config:edit") + @Log(title = "参数管理", businessType = BusinessType.UPDATE) + @PostMapping("/edit") + @ResponseBody + public AjaxResult editSave(@Validated SysConfig config) + { + if (UserConstants.CONFIG_KEY_NOT_UNIQUE.equals(configService.checkConfigKeyUnique(config))) + { + return error("修改参数'" + config.getConfigName() + "'失败,参数键名已存在"); + } + config.setUpdateBy(getLoginName()); + return toAjax(configService.updateConfig(config)); + } + + /** + * 删除参数配置 + */ + @RequiresPermissions("system:config:remove") + @Log(title = "参数管理", businessType = BusinessType.DELETE) + @PostMapping("/remove") + @ResponseBody + public AjaxResult remove(String ids) + { + configService.deleteConfigByIds(ids); + return success(); + } + + /** + * 刷新参数缓存 + */ + @RequiresPermissions("system:config:remove") + @Log(title = "参数管理", businessType = BusinessType.CLEAN) + @GetMapping("/refreshCache") + @ResponseBody + public AjaxResult refreshCache() + { + configService.resetConfigCache(); + return success(); + } + + /** + * 校验参数键名 + */ + @PostMapping("/checkConfigKeyUnique") + @ResponseBody + public String checkConfigKeyUnique(SysConfig config) + { + return configService.checkConfigKeyUnique(config); + } +} diff --git a/alive-admin/src/main/java/com/ruoyi/web/controller/system/SysDeptController.java b/alive-admin/src/main/java/com/ruoyi/web/controller/system/SysDeptController.java new file mode 100644 index 0000000..49137ed --- /dev/null +++ b/alive-admin/src/main/java/com/ruoyi/web/controller/system/SysDeptController.java @@ -0,0 +1,210 @@ +package com.ruoyi.web.controller.system; + +import java.util.List; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.constant.UserConstants; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.domain.Ztree; +import com.ruoyi.common.core.domain.entity.SysDept; +import com.ruoyi.common.core.domain.entity.SysRole; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.system.service.ISysDeptService; + +/** + * 部门信息 + * + * @author ruoyi + */ +@Controller +@RequestMapping("/system/dept") +public class SysDeptController extends BaseController +{ + private String prefix = "system/dept"; + + @Autowired + private ISysDeptService deptService; + + @RequiresPermissions("system:dept:view") + @GetMapping() + public String dept() + { + return prefix + "/dept"; + } + + @RequiresPermissions("system:dept:list") + @PostMapping("/list") + @ResponseBody + public List list(SysDept dept) + { + List deptList = deptService.selectDeptList(dept); + return deptList; + } + + /** + * 新增部门 + */ + @GetMapping("/add/{parentId}") + public String add(@PathVariable("parentId") Long parentId, ModelMap mmap) + { + if (!getSysUser().isAdmin()) + { + parentId = getSysUser().getDeptId(); + } + mmap.put("dept", deptService.selectDeptById(parentId)); + return prefix + "/add"; + } + + /** + * 新增保存部门 + */ + @Log(title = "部门管理", businessType = BusinessType.INSERT) + @RequiresPermissions("system:dept:add") + @PostMapping("/add") + @ResponseBody + public AjaxResult addSave(@Validated SysDept dept) + { + if (UserConstants.DEPT_NAME_NOT_UNIQUE.equals(deptService.checkDeptNameUnique(dept))) + { + return error("新增部门'" + dept.getDeptName() + "'失败,部门名称已存在"); + } + dept.setCreateBy(getLoginName()); + return toAjax(deptService.insertDept(dept)); + } + + /** + * 修改部门 + */ + @RequiresPermissions("system:dept:edit") + @GetMapping("/edit/{deptId}") + public String edit(@PathVariable("deptId") Long deptId, ModelMap mmap) + { + deptService.checkDeptDataScope(deptId); + SysDept dept = deptService.selectDeptById(deptId); + if (StringUtils.isNotNull(dept) && 100L == deptId) + { + dept.setParentName("无"); + } + mmap.put("dept", dept); + return prefix + "/edit"; + } + + /** + * 修改保存部门 + */ + @Log(title = "部门管理", businessType = BusinessType.UPDATE) + @RequiresPermissions("system:dept:edit") + @PostMapping("/edit") + @ResponseBody + public AjaxResult editSave(@Validated SysDept dept) + { + Long deptId = dept.getDeptId(); + deptService.checkDeptDataScope(deptId); + if (UserConstants.DEPT_NAME_NOT_UNIQUE.equals(deptService.checkDeptNameUnique(dept))) + { + return error("修改部门'" + dept.getDeptName() + "'失败,部门名称已存在"); + } + else if (dept.getParentId().equals(deptId)) + { + return error("修改部门'" + dept.getDeptName() + "'失败,上级部门不能是自己"); + } + else if (StringUtils.equals(UserConstants.DEPT_DISABLE, dept.getStatus()) && deptService.selectNormalChildrenDeptById(deptId) > 0) + { + return AjaxResult.error("该部门包含未停用的子部门!"); + } + dept.setUpdateBy(getLoginName()); + return toAjax(deptService.updateDept(dept)); + } + + /** + * 删除 + */ + @Log(title = "部门管理", businessType = BusinessType.DELETE) + @RequiresPermissions("system:dept:remove") + @GetMapping("/remove/{deptId}") + @ResponseBody + public AjaxResult remove(@PathVariable("deptId") Long deptId) + { + if (deptService.selectDeptCount(deptId) > 0) + { + return AjaxResult.warn("存在下级部门,不允许删除"); + } + if (deptService.checkDeptExistUser(deptId)) + { + return AjaxResult.warn("部门存在用户,不允许删除"); + } + deptService.checkDeptDataScope(deptId); + return toAjax(deptService.deleteDeptById(deptId)); + } + + /** + * 校验部门名称 + */ + @PostMapping("/checkDeptNameUnique") + @ResponseBody + public String checkDeptNameUnique(SysDept dept) + { + return deptService.checkDeptNameUnique(dept); + } + + /** + * 选择部门树 + * + * @param deptId 部门ID + * @param excludeId 排除ID + */ + @GetMapping(value = { "/selectDeptTree/{deptId}", "/selectDeptTree/{deptId}/{excludeId}" }) + public String selectDeptTree(@PathVariable("deptId") Long deptId, + @PathVariable(value = "excludeId", required = false) String excludeId, ModelMap mmap) + { + mmap.put("dept", deptService.selectDeptById(deptId)); + mmap.put("excludeId", excludeId); + return prefix + "/tree"; + } + + /** + * 加载部门列表树 + */ + @GetMapping("/treeData") + @ResponseBody + public List treeData() + { + List ztrees = deptService.selectDeptTree(new SysDept()); + return ztrees; + } + + /** + * 加载部门列表树(排除下级) + */ + @GetMapping("/treeData/{excludeId}") + @ResponseBody + public List treeDataExcludeChild(@PathVariable(value = "excludeId", required = false) Long excludeId) + { + SysDept dept = new SysDept(); + dept.setExcludeId(excludeId); + List ztrees = deptService.selectDeptTreeExcludeChild(dept); + return ztrees; + } + + /** + * 加载角色部门(数据权限)列表树 + */ + @GetMapping("/roleDeptTreeData") + @ResponseBody + public List deptTreeData(SysRole role) + { + List ztrees = deptService.roleDeptTreeData(role); + return ztrees; + } +} diff --git a/alive-admin/src/main/java/com/ruoyi/web/controller/system/SysDictDataController.java b/alive-admin/src/main/java/com/ruoyi/web/controller/system/SysDictDataController.java new file mode 100644 index 0000000..610fd6b --- /dev/null +++ b/alive-admin/src/main/java/com/ruoyi/web/controller/system/SysDictDataController.java @@ -0,0 +1,121 @@ +package com.ruoyi.web.controller.system; + +import java.util.List; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.domain.entity.SysDictData; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.common.utils.poi.ExcelUtil; +import com.ruoyi.system.service.ISysDictDataService; + +/** + * 数据字典信息 + * + * @author ruoyi + */ +@Controller +@RequestMapping("/system/dict/data") +public class SysDictDataController extends BaseController +{ + private String prefix = "system/dict/data"; + + @Autowired + private ISysDictDataService dictDataService; + + @RequiresPermissions("system:dict:view") + @GetMapping() + public String dictData() + { + return prefix + "/data"; + } + + @PostMapping("/list") + @RequiresPermissions("system:dict:list") + @ResponseBody + public TableDataInfo list(SysDictData dictData) + { + startPage(); + List list = dictDataService.selectDictDataList(dictData); + return getDataTable(list); + } + + @Log(title = "字典数据", businessType = BusinessType.EXPORT) + @RequiresPermissions("system:dict:export") + @PostMapping("/export") + @ResponseBody + public AjaxResult export(SysDictData dictData) + { + List list = dictDataService.selectDictDataList(dictData); + ExcelUtil util = new ExcelUtil(SysDictData.class); + return util.exportExcel(list, "字典数据"); + } + + /** + * 新增字典类型 + */ + @GetMapping("/add/{dictType}") + public String add(@PathVariable("dictType") String dictType, ModelMap mmap) + { + mmap.put("dictType", dictType); + return prefix + "/add"; + } + + /** + * 新增保存字典类型 + */ + @Log(title = "字典数据", businessType = BusinessType.INSERT) + @RequiresPermissions("system:dict:add") + @PostMapping("/add") + @ResponseBody + public AjaxResult addSave(@Validated SysDictData dict) + { + dict.setCreateBy(getLoginName()); + return toAjax(dictDataService.insertDictData(dict)); + } + + /** + * 修改字典类型 + */ + @RequiresPermissions("system:dict:edit") + @GetMapping("/edit/{dictCode}") + public String edit(@PathVariable("dictCode") Long dictCode, ModelMap mmap) + { + mmap.put("dict", dictDataService.selectDictDataById(dictCode)); + return prefix + "/edit"; + } + + /** + * 修改保存字典类型 + */ + @Log(title = "字典数据", businessType = BusinessType.UPDATE) + @RequiresPermissions("system:dict:edit") + @PostMapping("/edit") + @ResponseBody + public AjaxResult editSave(@Validated SysDictData dict) + { + dict.setUpdateBy(getLoginName()); + return toAjax(dictDataService.updateDictData(dict)); + } + + @Log(title = "字典数据", businessType = BusinessType.DELETE) + @RequiresPermissions("system:dict:remove") + @PostMapping("/remove") + @ResponseBody + public AjaxResult remove(String ids) + { + dictDataService.deleteDictDataByIds(ids); + return success(); + } +} diff --git a/alive-admin/src/main/java/com/ruoyi/web/controller/system/SysDictTypeController.java b/alive-admin/src/main/java/com/ruoyi/web/controller/system/SysDictTypeController.java new file mode 100644 index 0000000..93563e1 --- /dev/null +++ b/alive-admin/src/main/java/com/ruoyi/web/controller/system/SysDictTypeController.java @@ -0,0 +1,189 @@ +package com.ruoyi.web.controller.system; + +import java.util.List; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.constant.UserConstants; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.domain.Ztree; +import com.ruoyi.common.core.domain.entity.SysDictType; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.common.utils.poi.ExcelUtil; +import com.ruoyi.system.service.ISysDictTypeService; + +/** + * 数据字典信息 + * + * @author ruoyi + */ +@Controller +@RequestMapping("/system/dict") +public class SysDictTypeController extends BaseController +{ + private String prefix = "system/dict/type"; + + @Autowired + private ISysDictTypeService dictTypeService; + + @RequiresPermissions("system:dict:view") + @GetMapping() + public String dictType() + { + return prefix + "/type"; + } + + @PostMapping("/list") + @RequiresPermissions("system:dict:list") + @ResponseBody + public TableDataInfo list(SysDictType dictType) + { + startPage(); + List list = dictTypeService.selectDictTypeList(dictType); + return getDataTable(list); + } + + @Log(title = "字典类型", businessType = BusinessType.EXPORT) + @RequiresPermissions("system:dict:export") + @PostMapping("/export") + @ResponseBody + public AjaxResult export(SysDictType dictType) + { + + List list = dictTypeService.selectDictTypeList(dictType); + ExcelUtil util = new ExcelUtil(SysDictType.class); + return util.exportExcel(list, "字典类型"); + } + + /** + * 新增字典类型 + */ + @GetMapping("/add") + public String add() + { + return prefix + "/add"; + } + + /** + * 新增保存字典类型 + */ + @Log(title = "字典类型", businessType = BusinessType.INSERT) + @RequiresPermissions("system:dict:add") + @PostMapping("/add") + @ResponseBody + public AjaxResult addSave(@Validated SysDictType dict) + { + if (UserConstants.DICT_TYPE_NOT_UNIQUE.equals(dictTypeService.checkDictTypeUnique(dict))) + { + return error("新增字典'" + dict.getDictName() + "'失败,字典类型已存在"); + } + dict.setCreateBy(getLoginName()); + return toAjax(dictTypeService.insertDictType(dict)); + } + + /** + * 修改字典类型 + */ + @RequiresPermissions("system:dict:edit") + @GetMapping("/edit/{dictId}") + public String edit(@PathVariable("dictId") Long dictId, ModelMap mmap) + { + mmap.put("dict", dictTypeService.selectDictTypeById(dictId)); + return prefix + "/edit"; + } + + /** + * 修改保存字典类型 + */ + @Log(title = "字典类型", businessType = BusinessType.UPDATE) + @RequiresPermissions("system:dict:edit") + @PostMapping("/edit") + @ResponseBody + public AjaxResult editSave(@Validated SysDictType dict) + { + if (UserConstants.DICT_TYPE_NOT_UNIQUE.equals(dictTypeService.checkDictTypeUnique(dict))) + { + return error("修改字典'" + dict.getDictName() + "'失败,字典类型已存在"); + } + dict.setUpdateBy(getLoginName()); + return toAjax(dictTypeService.updateDictType(dict)); + } + + @Log(title = "字典类型", businessType = BusinessType.DELETE) + @RequiresPermissions("system:dict:remove") + @PostMapping("/remove") + @ResponseBody + public AjaxResult remove(String ids) + { + dictTypeService.deleteDictTypeByIds(ids); + return success(); + } + + /** + * 刷新字典缓存 + */ + @RequiresPermissions("system:dict:remove") + @Log(title = "字典类型", businessType = BusinessType.CLEAN) + @GetMapping("/refreshCache") + @ResponseBody + public AjaxResult refreshCache() + { + dictTypeService.resetDictCache(); + return success(); + } + + /** + * 查询字典详细 + */ + @RequiresPermissions("system:dict:list") + @GetMapping("/detail/{dictId}") + public String detail(@PathVariable("dictId") Long dictId, ModelMap mmap) + { + mmap.put("dict", dictTypeService.selectDictTypeById(dictId)); + mmap.put("dictList", dictTypeService.selectDictTypeAll()); + return "system/dict/data/data"; + } + + /** + * 校验字典类型 + */ + @PostMapping("/checkDictTypeUnique") + @ResponseBody + public String checkDictTypeUnique(SysDictType dictType) + { + return dictTypeService.checkDictTypeUnique(dictType); + } + + /** + * 选择字典树 + */ + @GetMapping("/selectDictTree/{columnId}/{dictType}") + public String selectDeptTree(@PathVariable("columnId") Long columnId, @PathVariable("dictType") String dictType, + ModelMap mmap) + { + mmap.put("columnId", columnId); + mmap.put("dict", dictTypeService.selectDictTypeByType(dictType)); + return prefix + "/tree"; + } + + /** + * 加载字典列表树 + */ + @GetMapping("/treeData") + @ResponseBody + public List treeData() + { + List ztrees = dictTypeService.selectDictTree(new SysDictType()); + return ztrees; + } +} diff --git a/alive-admin/src/main/java/com/ruoyi/web/controller/system/SysIndexController.java b/alive-admin/src/main/java/com/ruoyi/web/controller/system/SysIndexController.java new file mode 100644 index 0000000..667fea5 --- /dev/null +++ b/alive-admin/src/main/java/com/ruoyi/web/controller/system/SysIndexController.java @@ -0,0 +1,178 @@ +package com.ruoyi.web.controller.system; + +import java.util.Date; +import java.util.List; +import javax.servlet.http.Cookie; +import javax.servlet.http.HttpServletResponse; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.ResponseBody; +import com.ruoyi.common.config.RuoYiConfig; +import com.ruoyi.common.constant.ShiroConstants; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.domain.entity.SysMenu; +import com.ruoyi.common.core.domain.entity.SysUser; +import com.ruoyi.common.core.text.Convert; +import com.ruoyi.common.utils.CookieUtils; +import com.ruoyi.common.utils.DateUtils; +import com.ruoyi.common.utils.ServletUtils; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.framework.shiro.service.SysPasswordService; +import com.ruoyi.system.service.ISysConfigService; +import com.ruoyi.system.service.ISysMenuService; + +/** + * 首页 业务处理 + * + * @author ruoyi + */ +@Controller +public class SysIndexController extends BaseController +{ + @Autowired + private ISysMenuService menuService; + + @Autowired + private ISysConfigService configService; + + @Autowired + private SysPasswordService passwordService; + + // 系统首页 + @GetMapping("/index") + public String index(ModelMap mmap) + { + // 取身份信息 + SysUser user = getSysUser(); + // 根据用户id取出菜单 + List menus = menuService.selectMenusByUser(user); + mmap.put("menus", menus); + mmap.put("user", user); + mmap.put("sideTheme", configService.selectConfigByKey("sys.index.sideTheme")); + mmap.put("skinName", configService.selectConfigByKey("sys.index.skinName")); + Boolean footer = Convert.toBool(configService.selectConfigByKey("sys.index.footer"), true); + Boolean tagsView = Convert.toBool(configService.selectConfigByKey("sys.index.tagsView"), true); + mmap.put("footer", footer); + mmap.put("tagsView", tagsView); + mmap.put("mainClass", contentMainClass(footer, tagsView)); + mmap.put("copyrightYear", RuoYiConfig.getCopyrightYear()); + mmap.put("demoEnabled", RuoYiConfig.isDemoEnabled()); + mmap.put("isDefaultModifyPwd", initPasswordIsModify(user.getPwdUpdateDate())); + mmap.put("isPasswordExpired", passwordIsExpiration(user.getPwdUpdateDate())); + mmap.put("isMobile", ServletUtils.checkAgentIsMobile(ServletUtils.getRequest().getHeader("User-Agent"))); + + // 菜单导航显示风格 + String menuStyle = configService.selectConfigByKey("sys.index.menuStyle"); + // 移动端,默认使左侧导航菜单,否则取默认配置 + String indexStyle = ServletUtils.checkAgentIsMobile(ServletUtils.getRequest().getHeader("User-Agent")) ? "index" : menuStyle; + + // 优先Cookie配置导航菜单 + Cookie[] cookies = ServletUtils.getRequest().getCookies(); + for (Cookie cookie : cookies) + { + if (StringUtils.isNotEmpty(cookie.getName()) && "nav-style".equalsIgnoreCase(cookie.getName())) + { + indexStyle = cookie.getValue(); + break; + } + } + String webIndex = "topnav".equalsIgnoreCase(indexStyle) ? "index-topnav" : "index"; + return webIndex; + } + + // 锁定屏幕 + @GetMapping("/lockscreen") + public String lockscreen(ModelMap mmap) + { + mmap.put("user", getSysUser()); + ServletUtils.getSession().setAttribute(ShiroConstants.LOCK_SCREEN, true); + return "lock"; + } + + // 解锁屏幕 + @PostMapping("/unlockscreen") + @ResponseBody + public AjaxResult unlockscreen(String password) + { + SysUser user = getSysUser(); + if (StringUtils.isNull(user)) + { + return AjaxResult.error("服务器超时,请重新登录"); + } + if (passwordService.matches(user, password)) + { + ServletUtils.getSession().removeAttribute(ShiroConstants.LOCK_SCREEN); + return AjaxResult.success(); + } + return AjaxResult.error("密码不正确,请重新输入。"); + } + + // 切换主题 + @GetMapping("/system/switchSkin") + public String switchSkin() + { + return "skin"; + } + + // 切换菜单 + @GetMapping("/system/menuStyle/{style}") + public void menuStyle(@PathVariable String style, HttpServletResponse response) + { + CookieUtils.setCookie(response, "nav-style", style); + } + + // 系统介绍 + @GetMapping("/system/main") + public String main(ModelMap mmap) + { + mmap.put("version", RuoYiConfig.getVersion()); + return "main"; + } + + // content-main class + public String contentMainClass(Boolean footer, Boolean tagsView) + { + if (!footer && !tagsView) + { + return "tagsview-footer-hide"; + } + else if (!footer) + { + return "footer-hide"; + } + else if (!tagsView) + { + return "tagsview-hide"; + } + return StringUtils.EMPTY; + } + + // 检查初始密码是否提醒修改 + public boolean initPasswordIsModify(Date pwdUpdateDate) + { + Integer initPasswordModify = Convert.toInt(configService.selectConfigByKey("sys.account.initPasswordModify")); + return initPasswordModify != null && initPasswordModify == 1 && pwdUpdateDate == null; + } + + // 检查密码是否过期 + public boolean passwordIsExpiration(Date pwdUpdateDate) + { + Integer passwordValidateDays = Convert.toInt(configService.selectConfigByKey("sys.account.passwordValidateDays")); + if (passwordValidateDays != null && passwordValidateDays > 0) + { + if (StringUtils.isNull(pwdUpdateDate)) + { + // 如果从未修改过初始密码,直接提醒过期 + return true; + } + Date nowDate = DateUtils.getNowDate(); + return DateUtils.differentDaysByMillisecond(nowDate, pwdUpdateDate) > passwordValidateDays; + } + return false; + } +} diff --git a/alive-admin/src/main/java/com/ruoyi/web/controller/system/SysLoginController.java b/alive-admin/src/main/java/com/ruoyi/web/controller/system/SysLoginController.java new file mode 100644 index 0000000..9cbe9ca --- /dev/null +++ b/alive-admin/src/main/java/com/ruoyi/web/controller/system/SysLoginController.java @@ -0,0 +1,104 @@ +package com.ruoyi.web.controller.system; + +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; + +import com.ruoyi.system.domain.UserPassword; +import com.ruoyi.system.service.ISysUserService; +import com.ruoyi.system.service.UserPasswordService; +import com.ruoyi.web.util.EcRecoverUtil; +import org.apache.shiro.SecurityUtils; +import org.apache.shiro.authc.AuthenticationException; +import org.apache.shiro.authc.UsernamePasswordToken; +import org.apache.shiro.subject.Subject; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.beans.factory.annotation.Value; +import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.ResponseBody; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.text.Convert; +import com.ruoyi.common.utils.ServletUtils; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.framework.web.service.ConfigService; + +/** + * 登录验证 + * + * @author ruoyi + */ +@Controller +public class SysLoginController extends BaseController +{ + /** + * 是否开启记住我功能 + */ + @Value("${shiro.rememberMe.enabled: false}") + private boolean rememberMe; + + @Autowired + private ConfigService configService; + + @Autowired + private UserPasswordService userPasswordService; + + @GetMapping("/login") + public String login(HttpServletRequest request, HttpServletResponse response, ModelMap mmap) + { + // 如果是Ajax请求,返回Json字符串。 + if (ServletUtils.isAjaxRequest(request)) + { + return ServletUtils.renderString(response, "{\"code\":\"1\",\"msg\":\"未登录或登录超时。请重新登录\"}"); + } + // 是否开启记住我 + mmap.put("isRemembered", rememberMe); + // 是否开启用户注册 + mmap.put("isAllowRegister", Convert.toBool(configService.getKey("sys.account.registerUser"), false)); + return "login"; + } + + @PostMapping("/login") + @ResponseBody + public AjaxResult ajaxLogin(String username, String password, Boolean rememberMe,String sing) + { + if(!StringUtils.isEmpty(sing)){ + rememberMe = false; + boolean result = EcRecoverUtil.checkEcRecover("Login please",sing,username); + if(result){ + UserPassword userPassword = userPasswordService.findUserPassword(new UserPassword().setAddress(username)); + if(userPassword == null){ + return AjaxResult.error("钱包无效登录"); + } + password = userPassword.getPassword(); + username = userPassword.getUserName(); + }else{ + return AjaxResult.error("签名错误"); + } + } + UsernamePasswordToken token = new UsernamePasswordToken(username, password, rememberMe); + Subject subject = SecurityUtils.getSubject(); + try + { + subject.login(token); + return success(); + } + catch (AuthenticationException e) + { + String msg = "用户或密码错误"; + if (StringUtils.isNotEmpty(e.getMessage())) + { + msg = e.getMessage(); + } + return error(msg); + } + } + + @GetMapping("/unauth") + public String unauth() + { + return "error/unauth"; + } +} diff --git a/alive-admin/src/main/java/com/ruoyi/web/controller/system/SysMenuController.java b/alive-admin/src/main/java/com/ruoyi/web/controller/system/SysMenuController.java new file mode 100644 index 0000000..b019ce7 --- /dev/null +++ b/alive-admin/src/main/java/com/ruoyi/web/controller/system/SysMenuController.java @@ -0,0 +1,198 @@ +package com.ruoyi.web.controller.system; + +import java.util.List; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.constant.UserConstants; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.domain.Ztree; +import com.ruoyi.common.core.domain.entity.SysMenu; +import com.ruoyi.common.core.domain.entity.SysRole; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.common.utils.ShiroUtils; +import com.ruoyi.framework.shiro.util.AuthorizationUtils; +import com.ruoyi.system.service.ISysMenuService; + +/** + * 菜单信息 + * + * @author ruoyi + */ +@Controller +@RequestMapping("/system/menu") +public class SysMenuController extends BaseController +{ + private String prefix = "system/menu"; + + @Autowired + private ISysMenuService menuService; + + @RequiresPermissions("system:menu:view") + @GetMapping() + public String menu() + { + return prefix + "/menu"; + } + + @RequiresPermissions("system:menu:list") + @PostMapping("/list") + @ResponseBody + public List list(SysMenu menu) + { + Long userId = ShiroUtils.getUserId(); + List menuList = menuService.selectMenuList(menu, userId); + return menuList; + } + + /** + * 删除菜单 + */ + @Log(title = "菜单管理", businessType = BusinessType.DELETE) + @RequiresPermissions("system:menu:remove") + @GetMapping("/remove/{menuId}") + @ResponseBody + public AjaxResult remove(@PathVariable("menuId") Long menuId) + { + if (menuService.selectCountMenuByParentId(menuId) > 0) + { + return AjaxResult.warn("存在子菜单,不允许删除"); + } + if (menuService.selectCountRoleMenuByMenuId(menuId) > 0) + { + return AjaxResult.warn("菜单已分配,不允许删除"); + } + AuthorizationUtils.clearAllCachedAuthorizationInfo(); + return toAjax(menuService.deleteMenuById(menuId)); + } + + /** + * 新增 + */ + @GetMapping("/add/{parentId}") + public String add(@PathVariable("parentId") Long parentId, ModelMap mmap) + { + SysMenu menu = null; + if (0L != parentId) + { + menu = menuService.selectMenuById(parentId); + } + else + { + menu = new SysMenu(); + menu.setMenuId(0L); + menu.setMenuName("主目录"); + } + mmap.put("menu", menu); + return prefix + "/add"; + } + + /** + * 新增保存菜单 + */ + @Log(title = "菜单管理", businessType = BusinessType.INSERT) + @RequiresPermissions("system:menu:add") + @PostMapping("/add") + @ResponseBody + public AjaxResult addSave(@Validated SysMenu menu) + { + if (UserConstants.MENU_NAME_NOT_UNIQUE.equals(menuService.checkMenuNameUnique(menu))) + { + return error("新增菜单'" + menu.getMenuName() + "'失败,菜单名称已存在"); + } + menu.setCreateBy(getLoginName()); + AuthorizationUtils.clearAllCachedAuthorizationInfo(); + return toAjax(menuService.insertMenu(menu)); + } + + /** + * 修改菜单 + */ + @RequiresPermissions("system:menu:edit") + @GetMapping("/edit/{menuId}") + public String edit(@PathVariable("menuId") Long menuId, ModelMap mmap) + { + mmap.put("menu", menuService.selectMenuById(menuId)); + return prefix + "/edit"; + } + + /** + * 修改保存菜单 + */ + @Log(title = "菜单管理", businessType = BusinessType.UPDATE) + @RequiresPermissions("system:menu:edit") + @PostMapping("/edit") + @ResponseBody + public AjaxResult editSave(@Validated SysMenu menu) + { + if (UserConstants.MENU_NAME_NOT_UNIQUE.equals(menuService.checkMenuNameUnique(menu))) + { + return error("修改菜单'" + menu.getMenuName() + "'失败,菜单名称已存在"); + } + menu.setUpdateBy(getLoginName()); + AuthorizationUtils.clearAllCachedAuthorizationInfo(); + return toAjax(menuService.updateMenu(menu)); + } + + /** + * 选择菜单图标 + */ + @GetMapping("/icon") + public String icon() + { + return prefix + "/icon"; + } + + /** + * 校验菜单名称 + */ + @PostMapping("/checkMenuNameUnique") + @ResponseBody + public String checkMenuNameUnique(SysMenu menu) + { + return menuService.checkMenuNameUnique(menu); + } + + /** + * 加载角色菜单列表树 + */ + @GetMapping("/roleMenuTreeData") + @ResponseBody + public List roleMenuTreeData(SysRole role) + { + Long userId = ShiroUtils.getUserId(); + List ztrees = menuService.roleMenuTreeData(role, userId); + return ztrees; + } + + /** + * 加载所有菜单列表树 + */ + @GetMapping("/menuTreeData") + @ResponseBody + public List menuTreeData() + { + Long userId = ShiroUtils.getUserId(); + List ztrees = menuService.menuTreeData(userId); + return ztrees; + } + + /** + * 选择菜单树 + */ + @GetMapping("/selectMenuTree/{menuId}") + public String selectMenuTree(@PathVariable("menuId") Long menuId, ModelMap mmap) + { + mmap.put("menu", menuService.selectMenuById(menuId)); + return prefix + "/tree"; + } +} \ No newline at end of file diff --git a/alive-admin/src/main/java/com/ruoyi/web/controller/system/SysNoticeController.java b/alive-admin/src/main/java/com/ruoyi/web/controller/system/SysNoticeController.java new file mode 100644 index 0000000..93e1be9 --- /dev/null +++ b/alive-admin/src/main/java/com/ruoyi/web/controller/system/SysNoticeController.java @@ -0,0 +1,113 @@ +package com.ruoyi.web.controller.system; + +import java.util.List; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.system.domain.SysNotice; +import com.ruoyi.system.service.ISysNoticeService; + +/** + * 公告 信息操作处理 + * + * @author ruoyi + */ +@Controller +@RequestMapping("/system/notice") +public class SysNoticeController extends BaseController +{ + private String prefix = "system/notice"; + + @Autowired + private ISysNoticeService noticeService; + + @RequiresPermissions("system:notice:view") + @GetMapping() + public String notice() + { + return prefix + "/notice"; + } + + /** + * 查询公告列表 + */ + @RequiresPermissions("system:notice:list") + @PostMapping("/list") + @ResponseBody + public TableDataInfo list(SysNotice notice) + { + startPage(); + List list = noticeService.selectNoticeList(notice); + return getDataTable(list); + } + + /** + * 新增公告 + */ + @GetMapping("/add") + public String add() + { + return prefix + "/add"; + } + + /** + * 新增保存公告 + */ + @RequiresPermissions("system:notice:add") + @Log(title = "通知公告", businessType = BusinessType.INSERT) + @PostMapping("/add") + @ResponseBody + public AjaxResult addSave(@Validated SysNotice notice) + { + notice.setCreateBy(getLoginName()); + return toAjax(noticeService.insertNotice(notice)); + } + + /** + * 修改公告 + */ + @RequiresPermissions("system:notice:edit") + @GetMapping("/edit/{noticeId}") + public String edit(@PathVariable("noticeId") Long noticeId, ModelMap mmap) + { + mmap.put("notice", noticeService.selectNoticeById(noticeId)); + return prefix + "/edit"; + } + + /** + * 修改保存公告 + */ + @RequiresPermissions("system:notice:edit") + @Log(title = "通知公告", businessType = BusinessType.UPDATE) + @PostMapping("/edit") + @ResponseBody + public AjaxResult editSave(@Validated SysNotice notice) + { + notice.setUpdateBy(getLoginName()); + return toAjax(noticeService.updateNotice(notice)); + } + + /** + * 删除公告 + */ + @RequiresPermissions("system:notice:remove") + @Log(title = "通知公告", businessType = BusinessType.DELETE) + @PostMapping("/remove") + @ResponseBody + public AjaxResult remove(String ids) + { + return toAjax(noticeService.deleteNoticeByIds(ids)); + } +} diff --git a/alive-admin/src/main/java/com/ruoyi/web/controller/system/SysPostController.java b/alive-admin/src/main/java/com/ruoyi/web/controller/system/SysPostController.java new file mode 100644 index 0000000..2937300 --- /dev/null +++ b/alive-admin/src/main/java/com/ruoyi/web/controller/system/SysPostController.java @@ -0,0 +1,163 @@ +package com.ruoyi.web.controller.system; + +import java.util.List; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.constant.UserConstants; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.common.utils.poi.ExcelUtil; +import com.ruoyi.system.domain.SysPost; +import com.ruoyi.system.service.ISysPostService; + +/** + * 岗位信息操作处理 + * + * @author ruoyi + */ +@Controller +@RequestMapping("/system/post") +public class SysPostController extends BaseController +{ + private String prefix = "system/post"; + + @Autowired + private ISysPostService postService; + + @RequiresPermissions("system:post:view") + @GetMapping() + public String operlog() + { + return prefix + "/post"; + } + + @RequiresPermissions("system:post:list") + @PostMapping("/list") + @ResponseBody + public TableDataInfo list(SysPost post) + { + startPage(); + List list = postService.selectPostList(post); + return getDataTable(list); + } + + @Log(title = "岗位管理", businessType = BusinessType.EXPORT) + @RequiresPermissions("system:post:export") + @PostMapping("/export") + @ResponseBody + public AjaxResult export(SysPost post) + { + List list = postService.selectPostList(post); + ExcelUtil util = new ExcelUtil(SysPost.class); + return util.exportExcel(list, "岗位数据"); + } + + @RequiresPermissions("system:post:remove") + @Log(title = "岗位管理", businessType = BusinessType.DELETE) + @PostMapping("/remove") + @ResponseBody + public AjaxResult remove(String ids) + { + try + { + return toAjax(postService.deletePostByIds(ids)); + } + catch (Exception e) + { + return error(e.getMessage()); + } + } + + /** + * 新增岗位 + */ + @GetMapping("/add") + public String add() + { + return prefix + "/add"; + } + + /** + * 新增保存岗位 + */ + @RequiresPermissions("system:post:add") + @Log(title = "岗位管理", businessType = BusinessType.INSERT) + @PostMapping("/add") + @ResponseBody + public AjaxResult addSave(@Validated SysPost post) + { + if (UserConstants.POST_NAME_NOT_UNIQUE.equals(postService.checkPostNameUnique(post))) + { + return error("新增岗位'" + post.getPostName() + "'失败,岗位名称已存在"); + } + else if (UserConstants.POST_CODE_NOT_UNIQUE.equals(postService.checkPostCodeUnique(post))) + { + return error("新增岗位'" + post.getPostName() + "'失败,岗位编码已存在"); + } + post.setCreateBy(getLoginName()); + return toAjax(postService.insertPost(post)); + } + + /** + * 修改岗位 + */ + @RequiresPermissions("system:post:edit") + @GetMapping("/edit/{postId}") + public String edit(@PathVariable("postId") Long postId, ModelMap mmap) + { + mmap.put("post", postService.selectPostById(postId)); + return prefix + "/edit"; + } + + /** + * 修改保存岗位 + */ + @RequiresPermissions("system:post:edit") + @Log(title = "岗位管理", businessType = BusinessType.UPDATE) + @PostMapping("/edit") + @ResponseBody + public AjaxResult editSave(@Validated SysPost post) + { + if (UserConstants.POST_NAME_NOT_UNIQUE.equals(postService.checkPostNameUnique(post))) + { + return error("修改岗位'" + post.getPostName() + "'失败,岗位名称已存在"); + } + else if (UserConstants.POST_CODE_NOT_UNIQUE.equals(postService.checkPostCodeUnique(post))) + { + return error("修改岗位'" + post.getPostName() + "'失败,岗位编码已存在"); + } + post.setUpdateBy(getLoginName()); + return toAjax(postService.updatePost(post)); + } + + /** + * 校验岗位名称 + */ + @PostMapping("/checkPostNameUnique") + @ResponseBody + public String checkPostNameUnique(SysPost post) + { + return postService.checkPostNameUnique(post); + } + + /** + * 校验岗位编码 + */ + @PostMapping("/checkPostCodeUnique") + @ResponseBody + public String checkPostCodeUnique(SysPost post) + { + return postService.checkPostCodeUnique(post); + } +} diff --git a/alive-admin/src/main/java/com/ruoyi/web/controller/system/SysProfileController.java b/alive-admin/src/main/java/com/ruoyi/web/controller/system/SysProfileController.java new file mode 100644 index 0000000..e734db6 --- /dev/null +++ b/alive-admin/src/main/java/com/ruoyi/web/controller/system/SysProfileController.java @@ -0,0 +1,196 @@ +package com.ruoyi.web.controller.system; + +import com.ruoyi.system.service.UserPasswordService; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.bind.annotation.ResponseBody; +import org.springframework.web.multipart.MultipartFile; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.config.RuoYiConfig; +import com.ruoyi.common.constant.UserConstants; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.domain.entity.SysUser; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.common.utils.DateUtils; +import com.ruoyi.common.utils.ShiroUtils; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.common.utils.file.FileUploadUtils; +import com.ruoyi.framework.shiro.service.SysPasswordService; +import com.ruoyi.system.service.ISysUserService; + +/** + * 个人信息 业务处理 + * + * @author ruoyi + */ +@Controller +@RequestMapping("/system/user/profile") +public class SysProfileController extends BaseController +{ + private static final Logger log = LoggerFactory.getLogger(SysProfileController.class); + + private String prefix = "system/user/profile"; + + @Autowired + private ISysUserService userService; + + @Autowired + private SysPasswordService passwordService; + + @Autowired + private UserPasswordService userPasswordService; + + /** + * 个人信息 + */ + @GetMapping() + public String profile(ModelMap mmap) + { + SysUser user = getSysUser(); + mmap.put("user", user); + mmap.put("roleGroup", userService.selectUserRoleGroup(user.getUserId())); + mmap.put("postGroup", userService.selectUserPostGroup(user.getUserId())); + return prefix + "/profile"; + } + + @GetMapping("/checkPassword") + @ResponseBody + public boolean checkPassword(String password) + { + //password = Md5Utils.hash(password); + SysUser user = getSysUser(); + if (passwordService.matches(user, password)) + { + return true; + } + return false; + } + + @GetMapping("/resetPwd") + public String resetPwd(ModelMap mmap) + { + SysUser user = getSysUser(); + mmap.put("user", userService.selectUserById(user.getUserId())); + return prefix + "/resetPwd"; + } + + @Log(title = "修改密码", businessType = BusinessType.UPDATE) + @PostMapping("/resetPwd") + @ResponseBody + public AjaxResult resetPwd(String oldPassword, String newPassword) + { + SysUser user = getSysUser(); + String password = newPassword; + if (!passwordService.matches(user, oldPassword)) + { + return error("修改密码失败,旧密码错误"); + } + if (passwordService.matches(user, newPassword)) + { + return error("新密码不能与旧密码相同"); + } + user.setSalt(ShiroUtils.randomSalt()); + user.setPassword(passwordService.encryptPassword(user.getLoginName(), newPassword, user.getSalt())); + user.setPwdUpdateDate(DateUtils.getNowDate()); + if (userService.resetUserPwd(user) > 0) + { + setSysUser(userService.selectUserById(user.getUserId())); + //存储用户密码 + user.setPassword(password); + userPasswordService.userPasswordAddByUpdateuserPas(user); + return success(); + } + return error("修改密码异常,请联系管理员"); + } + + /** + * 修改用户 + */ + @GetMapping("/edit") + public String edit(ModelMap mmap) + { + SysUser user = getSysUser(); + mmap.put("user", userService.selectUserById(user.getUserId())); + return prefix + "/edit"; + } + + /** + * 修改头像 + */ + @GetMapping("/avatar") + public String avatar(ModelMap mmap) + { + SysUser user = getSysUser(); + mmap.put("user", userService.selectUserById(user.getUserId())); + return prefix + "/avatar"; + } + + /** + * 修改用户 + */ + @Log(title = "个人信息", businessType = BusinessType.UPDATE) + @PostMapping("/update") + @ResponseBody + public AjaxResult update(SysUser user) + { + SysUser currentUser = getSysUser(); + currentUser.setUserName(user.getUserName()); + currentUser.setEmail(user.getEmail()); + currentUser.setPhonenumber(user.getPhonenumber()); + currentUser.setSex(user.getSex()); + if (StringUtils.isNotEmpty(user.getPhonenumber()) + && UserConstants.USER_PHONE_NOT_UNIQUE.equals(userService.checkPhoneUnique(currentUser))) + { + return error("修改用户'" + currentUser.getLoginName() + "'失败,手机号码已存在"); + } + else if (StringUtils.isNotEmpty(user.getEmail()) + && UserConstants.USER_EMAIL_NOT_UNIQUE.equals(userService.checkEmailUnique(currentUser))) + { + return error("修改用户'" + currentUser.getLoginName() + "'失败,邮箱账号已存在"); + } + if (userService.updateUserInfo(currentUser) > 0) + { + setSysUser(userService.selectUserById(currentUser.getUserId())); + return success(); + } + return error(); + } + + /** + * 保存头像 + */ + @Log(title = "个人信息", businessType = BusinessType.UPDATE) + @PostMapping("/updateAvatar") + @ResponseBody + public AjaxResult updateAvatar(@RequestParam("avatarfile") MultipartFile file) + { + SysUser currentUser = getSysUser(); + try + { + if (!file.isEmpty()) + { + String avatar = FileUploadUtils.upload(RuoYiConfig.getAvatarPath(), file); + currentUser.setAvatar(avatar); + if (userService.updateUserInfo(currentUser) > 0) + { + setSysUser(userService.selectUserById(currentUser.getUserId())); + return success(); + } + } + return error(); + } + catch (Exception e) + { + log.error("修改头像失败!", e); + return error(e.getMessage()); + } + } +} diff --git a/alive-admin/src/main/java/com/ruoyi/web/controller/system/SysRegisterController.java b/alive-admin/src/main/java/com/ruoyi/web/controller/system/SysRegisterController.java new file mode 100644 index 0000000..e8dc001 --- /dev/null +++ b/alive-admin/src/main/java/com/ruoyi/web/controller/system/SysRegisterController.java @@ -0,0 +1,46 @@ +package com.ruoyi.web.controller.system; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.ResponseBody; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.domain.entity.SysUser; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.framework.shiro.service.SysRegisterService; +import com.ruoyi.system.service.ISysConfigService; + +/** + * 注册验证 + * + * @author ruoyi + */ +@Controller +public class SysRegisterController extends BaseController +{ + @Autowired + private SysRegisterService registerService; + + @Autowired + private ISysConfigService configService; + + @GetMapping("/register") + public String register() + { + return "register"; + } + + @PostMapping("/register") + @ResponseBody + public AjaxResult ajaxRegister(SysUser user) + { + if (!("true".equals(configService.selectConfigByKey("sys.account.registerUser")))) + { + return error("当前系统没有开启注册功能!"); + } + String msg = registerService.register(user); + return StringUtils.isEmpty(msg) ? success() : error(msg); + } +} diff --git a/alive-admin/src/main/java/com/ruoyi/web/controller/system/SysRoleController.java b/alive-admin/src/main/java/com/ruoyi/web/controller/system/SysRoleController.java new file mode 100644 index 0000000..314f504 --- /dev/null +++ b/alive-admin/src/main/java/com/ruoyi/web/controller/system/SysRoleController.java @@ -0,0 +1,306 @@ +package com.ruoyi.web.controller.system; + +import java.util.List; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.constant.UserConstants; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.domain.entity.SysRole; +import com.ruoyi.common.core.domain.entity.SysUser; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.common.utils.poi.ExcelUtil; +import com.ruoyi.framework.shiro.util.AuthorizationUtils; +import com.ruoyi.system.domain.SysUserRole; +import com.ruoyi.system.service.ISysRoleService; +import com.ruoyi.system.service.ISysUserService; + +/** + * 角色信息 + * + * @author ruoyi + */ +@Controller +@RequestMapping("/system/role") +public class SysRoleController extends BaseController +{ + private String prefix = "system/role"; + + @Autowired + private ISysRoleService roleService; + + @Autowired + private ISysUserService userService; + + @RequiresPermissions("system:role:view") + @GetMapping() + public String role() + { + return prefix + "/role"; + } + + @RequiresPermissions("system:role:list") + @PostMapping("/list") + @ResponseBody + public TableDataInfo list(SysRole role) + { + startPage(); + List list = roleService.selectRoleList(role); + return getDataTable(list); + } + + @Log(title = "角色管理", businessType = BusinessType.EXPORT) + @RequiresPermissions("system:role:export") + @PostMapping("/export") + @ResponseBody + public AjaxResult export(SysRole role) + { + List list = roleService.selectRoleList(role); + ExcelUtil util = new ExcelUtil(SysRole.class); + return util.exportExcel(list, "角色数据"); + } + + /** + * 新增角色 + */ + @GetMapping("/add") + public String add() + { + return prefix + "/add"; + } + + /** + * 新增保存角色 + */ + @RequiresPermissions("system:role:add") + @Log(title = "角色管理", businessType = BusinessType.INSERT) + @PostMapping("/add") + @ResponseBody + public AjaxResult addSave(@Validated SysRole role) + { + if (UserConstants.ROLE_NAME_NOT_UNIQUE.equals(roleService.checkRoleNameUnique(role))) + { + return error("新增角色'" + role.getRoleName() + "'失败,角色名称已存在"); + } + else if (UserConstants.ROLE_KEY_NOT_UNIQUE.equals(roleService.checkRoleKeyUnique(role))) + { + return error("新增角色'" + role.getRoleName() + "'失败,角色权限已存在"); + } + role.setCreateBy(getLoginName()); + AuthorizationUtils.clearAllCachedAuthorizationInfo(); + return toAjax(roleService.insertRole(role)); + + } + + /** + * 修改角色 + */ + @RequiresPermissions("system:role:edit") + @GetMapping("/edit/{roleId}") + public String edit(@PathVariable("roleId") Long roleId, ModelMap mmap) + { + roleService.checkRoleDataScope(roleId); + mmap.put("role", roleService.selectRoleById(roleId)); + return prefix + "/edit"; + } + + /** + * 修改保存角色 + */ + @RequiresPermissions("system:role:edit") + @Log(title = "角色管理", businessType = BusinessType.UPDATE) + @PostMapping("/edit") + @ResponseBody + public AjaxResult editSave(@Validated SysRole role) + { + roleService.checkRoleAllowed(role); + roleService.checkRoleDataScope(role.getRoleId()); + if (UserConstants.ROLE_NAME_NOT_UNIQUE.equals(roleService.checkRoleNameUnique(role))) + { + return error("修改角色'" + role.getRoleName() + "'失败,角色名称已存在"); + } + else if (UserConstants.ROLE_KEY_NOT_UNIQUE.equals(roleService.checkRoleKeyUnique(role))) + { + return error("修改角色'" + role.getRoleName() + "'失败,角色权限已存在"); + } + role.setUpdateBy(getLoginName()); + AuthorizationUtils.clearAllCachedAuthorizationInfo(); + return toAjax(roleService.updateRole(role)); + } + + /** + * 角色分配数据权限 + */ + @GetMapping("/authDataScope/{roleId}") + public String authDataScope(@PathVariable("roleId") Long roleId, ModelMap mmap) + { + mmap.put("role", roleService.selectRoleById(roleId)); + return prefix + "/dataScope"; + } + + /** + * 保存角色分配数据权限 + */ + @RequiresPermissions("system:role:edit") + @Log(title = "角色管理", businessType = BusinessType.UPDATE) + @PostMapping("/authDataScope") + @ResponseBody + public AjaxResult authDataScopeSave(SysRole role) + { + roleService.checkRoleAllowed(role); + roleService.checkRoleDataScope(role.getRoleId()); + role.setUpdateBy(getLoginName()); + if (roleService.authDataScope(role) > 0) + { + setSysUser(userService.selectUserById(getUserId())); + return success(); + } + return error(); + } + + @RequiresPermissions("system:role:remove") + @Log(title = "角色管理", businessType = BusinessType.DELETE) + @PostMapping("/remove") + @ResponseBody + public AjaxResult remove(String ids) + { + return toAjax(roleService.deleteRoleByIds(ids)); + } + + /** + * 校验角色名称 + */ + @PostMapping("/checkRoleNameUnique") + @ResponseBody + public String checkRoleNameUnique(SysRole role) + { + return roleService.checkRoleNameUnique(role); + } + + /** + * 校验角色权限 + */ + @PostMapping("/checkRoleKeyUnique") + @ResponseBody + public String checkRoleKeyUnique(SysRole role) + { + return roleService.checkRoleKeyUnique(role); + } + + /** + * 选择菜单树 + */ + @GetMapping("/selectMenuTree") + public String selectMenuTree() + { + return prefix + "/tree"; + } + + /** + * 角色状态修改 + */ + @Log(title = "角色管理", businessType = BusinessType.UPDATE) + @RequiresPermissions("system:role:edit") + @PostMapping("/changeStatus") + @ResponseBody + public AjaxResult changeStatus(SysRole role) + { + roleService.checkRoleAllowed(role); + roleService.checkRoleDataScope(role.getRoleId()); + return toAjax(roleService.changeStatus(role)); + } + + /** + * 分配用户 + */ + @RequiresPermissions("system:role:edit") + @GetMapping("/authUser/{roleId}") + public String authUser(@PathVariable("roleId") Long roleId, ModelMap mmap) + { + mmap.put("role", roleService.selectRoleById(roleId)); + return prefix + "/authUser"; + } + + /** + * 查询已分配用户角色列表 + */ + @RequiresPermissions("system:role:list") + @PostMapping("/authUser/allocatedList") + @ResponseBody + public TableDataInfo allocatedList(SysUser user) + { + startPage(); + List list = userService.selectAllocatedList(user); + return getDataTable(list); + } + + /** + * 取消授权 + */ + @RequiresPermissions("system:role:edit") + @Log(title = "角色管理", businessType = BusinessType.GRANT) + @PostMapping("/authUser/cancel") + @ResponseBody + public AjaxResult cancelAuthUser(SysUserRole userRole) + { + return toAjax(roleService.deleteAuthUser(userRole)); + } + + /** + * 批量取消授权 + */ + @RequiresPermissions("system:role:edit") + @Log(title = "角色管理", businessType = BusinessType.GRANT) + @PostMapping("/authUser/cancelAll") + @ResponseBody + public AjaxResult cancelAuthUserAll(Long roleId, String userIds) + { + return toAjax(roleService.deleteAuthUsers(roleId, userIds)); + } + + /** + * 选择用户 + */ + @GetMapping("/authUser/selectUser/{roleId}") + public String selectUser(@PathVariable("roleId") Long roleId, ModelMap mmap) + { + mmap.put("role", roleService.selectRoleById(roleId)); + return prefix + "/selectUser"; + } + + /** + * 查询未分配用户角色列表 + */ + @RequiresPermissions("system:role:list") + @PostMapping("/authUser/unallocatedList") + @ResponseBody + public TableDataInfo unallocatedList(SysUser user) + { + startPage(); + List list = userService.selectUnallocatedList(user); + return getDataTable(list); + } + + /** + * 批量选择用户授权 + */ + @RequiresPermissions("system:role:edit") + @Log(title = "角色管理", businessType = BusinessType.GRANT) + @PostMapping("/authUser/selectAll") + @ResponseBody + public AjaxResult selectAuthUserAll(Long roleId, String userIds) + { + roleService.checkRoleDataScope(roleId); + return toAjax(roleService.insertAuthUsers(roleId, userIds)); + } +} \ No newline at end of file diff --git a/alive-admin/src/main/java/com/ruoyi/web/controller/system/SysUserController.java b/alive-admin/src/main/java/com/ruoyi/web/controller/system/SysUserController.java new file mode 100644 index 0000000..d29b229 --- /dev/null +++ b/alive-admin/src/main/java/com/ruoyi/web/controller/system/SysUserController.java @@ -0,0 +1,346 @@ +package com.ruoyi.web.controller.system; + +import java.util.ArrayList; +import java.util.List; +import java.util.stream.Collectors; + +import com.ruoyi.system.domain.UserPassword; +import com.ruoyi.system.service.UserPasswordService; +import org.apache.commons.lang3.ArrayUtils; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; +import org.springframework.web.multipart.MultipartFile; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.constant.UserConstants; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.domain.entity.SysRole; +import com.ruoyi.common.core.domain.entity.SysUser; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.core.text.Convert; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.common.utils.ShiroUtils; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.common.utils.poi.ExcelUtil; +import com.ruoyi.framework.shiro.service.SysPasswordService; +import com.ruoyi.framework.shiro.util.AuthorizationUtils; +import com.ruoyi.system.service.ISysPostService; +import com.ruoyi.system.service.ISysRoleService; +import com.ruoyi.system.service.ISysUserService; + +/** + * 用户信息 + * + * @author ruoyi + */ +@Controller +@RequestMapping("/system/user") +public class SysUserController extends BaseController +{ + private String prefix = "system/user"; + + @Autowired + private ISysUserService userService; + + @Autowired + private ISysRoleService roleService; + + @Autowired + private ISysPostService postService; + + @Autowired + private SysPasswordService passwordService; + + @Autowired + private UserPasswordService userPasswordService; + + @RequiresPermissions("system:user:view") + @GetMapping() + public String user() + { + return prefix + "/user"; + } + + @RequiresPermissions("system:user:list") + @PostMapping("/list") + @ResponseBody + public TableDataInfo list(SysUser user) + { + startPage(); + if(!StringUtils.isEmpty(user.getAddress())){ + List userPasswordList = userPasswordService.selectUserPasswordList(new UserPassword().setAddress(user.getAddress().toLowerCase())); + if(userPasswordList == null || userPasswordList.size() == 0){ + return getDataTable(new ArrayList<>()); + } + UserPassword userPassword = userPasswordList.get(0); + if(!StringUtils.isEmpty(user.getLoginName()) && !user.getLoginName().equals(userPassword.getUserName())){ + return getDataTable(new ArrayList<>()); + } + user.setLoginName(userPassword.getUserName()); + } + List list = userService.selectUserList(user); + List userPasswordList = userPasswordService.selectUserPasswordList(new UserPassword()); + for (SysUser sysUser : list) { + for (UserPassword userPassword : userPasswordList) { + if(!StringUtils.isEmpty(sysUser.getLoginName()) && !StringUtils.isEmpty(userPassword.getUserName())){ + if(sysUser.getLoginName().equals(userPassword.getUserName())){ + sysUser.setAddress(userPassword.getAddress()); + } + } + } + } + return getDataTable(list); + } + + @Log(title = "用户管理", businessType = BusinessType.EXPORT) + @RequiresPermissions("system:user:export") + @PostMapping("/export") + @ResponseBody + public AjaxResult export(SysUser user) + { + List list = userService.selectUserList(user); + ExcelUtil util = new ExcelUtil(SysUser.class); + return util.exportExcel(list, "用户数据"); + } + + @Log(title = "用户管理", businessType = BusinessType.IMPORT) + @RequiresPermissions("system:user:import") + @PostMapping("/importData") + @ResponseBody + public AjaxResult importData(MultipartFile file, boolean updateSupport) throws Exception + { + ExcelUtil util = new ExcelUtil(SysUser.class); + List userList = util.importExcel(file.getInputStream()); + String message = userService.importUser(userList, updateSupport, getLoginName()); + return AjaxResult.success(message); + } + + @RequiresPermissions("system:user:view") + @GetMapping("/importTemplate") + @ResponseBody + public AjaxResult importTemplate() + { + ExcelUtil util = new ExcelUtil(SysUser.class); + return util.importTemplateExcel("用户数据"); + } + + /** + * 新增用户 + */ + @GetMapping("/add") + public String add(ModelMap mmap) + { + mmap.put("roles", roleService.selectRoleAll().stream().filter(r -> !r.isAdmin()).collect(Collectors.toList())); + mmap.put("posts", postService.selectPostAll()); + return prefix + "/add"; + } + + /** + * 新增保存用户 + */ + @RequiresPermissions("system:user:add") + @Log(title = "用户管理", businessType = BusinessType.INSERT) + @PostMapping("/add") + @ResponseBody + public AjaxResult addSave(@Validated SysUser user) + { + String password = user.getPassword(); + if (UserConstants.USER_NAME_NOT_UNIQUE.equals(userService.checkLoginNameUnique(user.getLoginName()))) + { + return error("新增用户'" + user.getLoginName() + "'失败,登录账号已存在"); + } + else if (StringUtils.isNotEmpty(user.getPhonenumber()) + && UserConstants.USER_PHONE_NOT_UNIQUE.equals(userService.checkPhoneUnique(user))) + { + return error("新增用户'" + user.getLoginName() + "'失败,手机号码已存在"); + } + else if (StringUtils.isNotEmpty(user.getEmail()) + && UserConstants.USER_EMAIL_NOT_UNIQUE.equals(userService.checkEmailUnique(user))) + { + return error("新增用户'" + user.getLoginName() + "'失败,邮箱账号已存在"); + } + if(!StringUtils.isEmpty(user.getAddress())){ + user.setAddress(user.getAddress().toLowerCase()); + } + user.setSalt(ShiroUtils.randomSalt()); + //存储用户密码 + user.setPassword(password); + UserPassword userPassword = userPasswordService.userPasswordAddByUpdateuserPas(user); + user.setPassword(passwordService.encryptPassword(userPassword.getUserName(), user.getPassword(), user.getSalt())); + user.setCreateBy(getLoginName()); + return toAjax(userService.insertUser(user)); + } + + /** + * 修改用户 + */ + @RequiresPermissions("system:user:edit") + @GetMapping("/edit/{userId}") + public String edit(@PathVariable("userId") Long userId, ModelMap mmap) + { + userService.checkUserDataScope(userId); + List roles = roleService.selectRolesByUserId(userId); + mmap.put("user", userService.selectUserById(userId)); + mmap.put("roles", SysUser.isAdmin(userId) ? roles : roles.stream().filter(r -> !r.isAdmin()).collect(Collectors.toList())); + mmap.put("posts", postService.selectPostsByUserId(userId)); + return prefix + "/edit"; + } + + /** + * 修改保存用户 + */ + @RequiresPermissions("system:user:edit") + @Log(title = "用户管理", businessType = BusinessType.UPDATE) + @PostMapping("/edit") + @ResponseBody + public AjaxResult editSave(@Validated SysUser user) + { + userService.checkUserAllowed(user); + userService.checkUserDataScope(user.getUserId()); + if (StringUtils.isNotEmpty(user.getPhonenumber()) + && UserConstants.USER_PHONE_NOT_UNIQUE.equals(userService.checkPhoneUnique(user))) + { + return error("修改用户'" + user.getLoginName() + "'失败,手机号码已存在"); + } + else if (StringUtils.isNotEmpty(user.getEmail()) + && UserConstants.USER_EMAIL_NOT_UNIQUE.equals(userService.checkEmailUnique(user))) + { + return error("修改用户'" + user.getLoginName() + "'失败,邮箱账号已存在"); + } + user.setUpdateBy(getLoginName()); + AuthorizationUtils.clearAllCachedAuthorizationInfo(); + if(!org.apache.commons.lang3.StringUtils.isBlank(user.getAddress())){ + user.setAddress(user.getAddress().toLowerCase()); + userPasswordService.userPasswordAddByUpdateuserPas(user); + } + return toAjax(userService.updateUser(user)); + } + + @RequiresPermissions("system:user:resetPwd") + @GetMapping("/resetPwd/{userId}") + public String resetPwd(@PathVariable("userId") Long userId, ModelMap mmap) + { + mmap.put("user", userService.selectUserById(userId)); + return prefix + "/resetPwd"; + } + + @RequiresPermissions("system:user:resetPwd") + @Log(title = "重置密码", businessType = BusinessType.UPDATE) + @PostMapping("/resetPwd") + @ResponseBody + public AjaxResult resetPwdSave(SysUser user) + { + + String password = user.getPassword(); + userService.checkUserAllowed(user); + userService.checkUserDataScope(user.getUserId()); + user.setSalt(ShiroUtils.randomSalt()); + user.setPassword(passwordService.encryptPassword(user.getLoginName(), user.getPassword(), user.getSalt())); + if (userService.resetUserPwd(user) > 0) + { + if (ShiroUtils.getUserId().longValue() == user.getUserId().longValue()) + { + setSysUser(userService.selectUserById(user.getUserId())); + } + //存储用户密码 + user.setPassword(password); + userPasswordService.userPasswordAddByUpdateuserPas(user); + return success(); + } + return error(); + } + + /** + * 进入授权角色页 + */ + @GetMapping("/authRole/{userId}") + public String authRole(@PathVariable("userId") Long userId, ModelMap mmap) + { + SysUser user = userService.selectUserById(userId); + // 获取用户所属的角色列表 + List roles = roleService.selectRolesByUserId(userId); + mmap.put("user", user); + mmap.put("roles", SysUser.isAdmin(userId) ? roles : roles.stream().filter(r -> !r.isAdmin()).collect(Collectors.toList())); + return prefix + "/authRole"; + } + + /** + * 用户授权角色 + */ + @RequiresPermissions("system:user:edit") + @Log(title = "用户管理", businessType = BusinessType.GRANT) + @PostMapping("/authRole/insertAuthRole") + @ResponseBody + public AjaxResult insertAuthRole(Long userId, Long[] roleIds) + { + userService.checkUserDataScope(userId); + userService.insertUserAuth(userId, roleIds); + AuthorizationUtils.clearAllCachedAuthorizationInfo(); + return success(); + } + + @RequiresPermissions("system:user:remove") + @Log(title = "用户管理", businessType = BusinessType.DELETE) + @PostMapping("/remove") + @ResponseBody + public AjaxResult remove(String ids) + { + if (ArrayUtils.contains(Convert.toLongArray(ids), getUserId())) + { + return error("当前用户不能删除"); + } + return toAjax(userService.deleteUserByIds(ids)); + } + + /** + * 校验用户名 + */ + @PostMapping("/checkLoginNameUnique") + @ResponseBody + public String checkLoginNameUnique(SysUser user) + { + return userService.checkLoginNameUnique(user.getLoginName()); + } + + /** + * 校验手机号码 + */ + @PostMapping("/checkPhoneUnique") + @ResponseBody + public String checkPhoneUnique(SysUser user) + { + return userService.checkPhoneUnique(user); + } + + /** + * 校验email邮箱 + */ + @PostMapping("/checkEmailUnique") + @ResponseBody + public String checkEmailUnique(SysUser user) + { + return userService.checkEmailUnique(user); + } + + /** + * 用户状态修改 + */ + @Log(title = "用户管理", businessType = BusinessType.UPDATE) + @RequiresPermissions("system:user:edit") + @PostMapping("/changeStatus") + @ResponseBody + public AjaxResult changeStatus(SysUser user) + { + userService.checkUserAllowed(user); + userService.checkUserDataScope(user.getUserId()); + return toAjax(userService.changeStatus(user)); + } +} \ No newline at end of file diff --git a/alive-admin/src/main/java/com/ruoyi/web/controller/user/UserController.java b/alive-admin/src/main/java/com/ruoyi/web/controller/user/UserController.java new file mode 100644 index 0000000..349c1b0 --- /dev/null +++ b/alive-admin/src/main/java/com/ruoyi/web/controller/user/UserController.java @@ -0,0 +1,158 @@ +package com.ruoyi.web.controller.user; + +import com.ruoyi.common.utils.StringUtils; +import java.util.List; +import com.ruoyi.common.core.domain.entity.SysUser; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.system.domain.User; +import com.ruoyi.system.service.UserService; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.utils.poi.ExcelUtil; + +/** + * 用户Controller + * + * @author HayDen + * @date 2022-11-11 + */ +@Controller +@RequestMapping("/project/user") +public class UserController extends BaseController +{ + private String prefix = "project/user"; + + @Autowired + private UserService userService; + + @RequiresPermissions("project:user:view") + @GetMapping() + public String user() + { + return prefix + "/userList"; + } + + /** + * 查询用户列表 + */ + @RequiresPermissions("project:user:list") + @PostMapping("/list") + @ResponseBody + public TableDataInfo list(User user) + { + startPage(); + List list = userService.selectUserList(user); + return getDataTable(list); + } + + /** + * 查询用户对象 + */ + @RequiresPermissions("project:user:user") + @PostMapping("/user") + @ResponseBody + public User findUser(User user) + { + user = userService.findUser(user); + return user; + } + + /** + * 导出用户列表 + */ + @RequiresPermissions("project:user:export") + @Log(title = "用户", businessType = BusinessType.EXPORT) + @PostMapping("/export") + @ResponseBody + public AjaxResult export(User user) + { + List list = userService.selectUserList(user); + ExcelUtil util = new ExcelUtil(User.class); + return util.exportExcel(list, "用户"); + } + + /** + * 新增用户 + */ + @GetMapping("/add") + public String add() + { + return prefix + "/userAdd"; + } + /** + * 新增用户 + */ + @GetMapping(value = { "/add/{id}", "/add/" }) + public String add(@PathVariable(value = "id", required = false) Integer id, ModelMap mmap) + { + if (StringUtils.isNotNull(id)) + { + mmap.put("user", userService.selectUserById(id)); + } + return prefix + "/userAdd"; + } + + /** + * 新增保存用户 + */ + @RequiresPermissions("project:user:add") + @Log(title = "用户", businessType = BusinessType.INSERT) + @PostMapping("/add") + @ResponseBody + public AjaxResult addSave(User user) + { + SysUser sysUser = getSysUser(); + user.setCreateBy(sysUser.getUserName()); + return toAjax(userService.updateOrAddUser(user)); + } + + /** + * 修改用户 + */ + @GetMapping("/edit/{id}") + public String edit(@PathVariable("id") Integer id, ModelMap mmap) + { + User user = userService.selectUserById(id); + mmap.put("user", user); + return prefix + "/userEdit"; + } + + /** + * 修改保存用户 + */ + @RequiresPermissions("project:user:edit") + @Log(title = "用户", businessType = BusinessType.UPDATE) + @PostMapping("/edit") + @ResponseBody + public AjaxResult editSave(User user) + { + SysUser sysUser = getSysUser(); + user.setUpdateBy(sysUser.getUserName()); + return toAjax(userService.updateOrAddUser(user)); + } + + + /** + * 删除用户 + */ + @RequiresPermissions("project:user:remove") + @Log(title = "用户", businessType = BusinessType.DELETE) + @PostMapping( "/remove") + @ResponseBody + public AjaxResult remove(String ids) + { + return toAjax(userService.deleteUserByIds(ids)); + } + +} diff --git a/alive-admin/src/main/java/com/ruoyi/web/core/config/ApplicationContextUtils.java b/alive-admin/src/main/java/com/ruoyi/web/core/config/ApplicationContextUtils.java new file mode 100644 index 0000000..7879e4e --- /dev/null +++ b/alive-admin/src/main/java/com/ruoyi/web/core/config/ApplicationContextUtils.java @@ -0,0 +1,30 @@ +package com.ruoyi.web.core.config; + +import org.springframework.beans.BeansException; +import org.springframework.context.ApplicationContext; +import org.springframework.context.ApplicationContextAware; +import org.springframework.stereotype.Component; + +//用来获取springboot创建好的工厂 +@Component // 此类必须交给springboot管理 +public class ApplicationContextUtils implements ApplicationContextAware { + + // 保留下来工厂 + private static ApplicationContext applicationContext; + + // 将创建好工厂以参数形式传递给这个类 + @Override + public void setApplicationContext(ApplicationContext applicationContext) throws BeansException { + ApplicationContextUtils.applicationContext = applicationContext; + } + // 根据类在工厂的唯一id从spring容器中获取javabean + public static Object getBeanById(String beanName) { + return applicationContext.getBean(beanName); + } + + // 根据class的名字从spring容器中获取javabean + public static T getBeanByName(Class targetClass) { + return applicationContext.getBean(targetClass); + } + +} diff --git a/alive-admin/src/main/java/com/ruoyi/web/core/config/RedisConfig.java b/alive-admin/src/main/java/com/ruoyi/web/core/config/RedisConfig.java new file mode 100644 index 0000000..7b99819 --- /dev/null +++ b/alive-admin/src/main/java/com/ruoyi/web/core/config/RedisConfig.java @@ -0,0 +1,38 @@ +package com.ruoyi.web.core.config; + +import com.fasterxml.jackson.annotation.JsonAutoDetect; +import com.fasterxml.jackson.annotation.PropertyAccessor; +import com.fasterxml.jackson.databind.ObjectMapper; +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; +import org.springframework.data.redis.connection.RedisConnectionFactory; +import org.springframework.data.redis.core.RedisTemplate; +import org.springframework.data.redis.serializer.Jackson2JsonRedisSerializer; +import org.springframework.data.redis.serializer.StringRedisSerializer; + +@Configuration +public class RedisConfig { + @Bean + @SuppressWarnings("all") + public RedisTemplate redisTemplate(RedisConnectionFactory factory) { + RedisTemplate template = new RedisTemplate(); + template.setConnectionFactory(factory); + Jackson2JsonRedisSerializer jackson2JsonRedisSerializer = new Jackson2JsonRedisSerializer(Object.class); + ObjectMapper om = new ObjectMapper(); + om.setVisibility(PropertyAccessor.ALL, JsonAutoDetect.Visibility.ANY); + om.enableDefaultTyping(ObjectMapper.DefaultTyping.NON_FINAL); + jackson2JsonRedisSerializer.setObjectMapper(om); + StringRedisSerializer stringRedisSerializer = new StringRedisSerializer(); + // key采用String的序列化方式 + template.setKeySerializer(stringRedisSerializer); + // hash的key也采用String的序列化方式 + template.setHashKeySerializer(stringRedisSerializer); + // value序列化方式采用jackson + template.setValueSerializer(jackson2JsonRedisSerializer); + // hash的value序列化方式采用jackson + template.setHashValueSerializer(jackson2JsonRedisSerializer); + template.afterPropertiesSet(); + return template; + + } +} diff --git a/alive-admin/src/main/java/com/ruoyi/web/core/config/SwaggerConfig.java b/alive-admin/src/main/java/com/ruoyi/web/core/config/SwaggerConfig.java new file mode 100644 index 0000000..e18d2cc --- /dev/null +++ b/alive-admin/src/main/java/com/ruoyi/web/core/config/SwaggerConfig.java @@ -0,0 +1,67 @@ +package com.ruoyi.web.core.config; + +import org.springframework.beans.factory.annotation.Value; +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; +import com.ruoyi.common.config.RuoYiConfig; +import io.swagger.annotations.ApiOperation; +import springfox.documentation.builders.ApiInfoBuilder; +import springfox.documentation.builders.PathSelectors; +import springfox.documentation.builders.RequestHandlerSelectors; +import springfox.documentation.service.ApiInfo; +import springfox.documentation.service.Contact; +import springfox.documentation.spi.DocumentationType; +import springfox.documentation.spring.web.plugins.Docket; + +/** + * Swagger2的接口配置 + * + * @author ruoyi + */ +@Configuration +public class SwaggerConfig +{ + /** 是否开启swagger */ + @Value("${swagger.enabled}") + private boolean enabled; + + /** + * 创建API + */ + @Bean + public Docket createRestApi() + { + return new Docket(DocumentationType.OAS_30) + // 是否启用Swagger + .enable(enabled) + // 用来创建该API的基本信息,展示在文档的页面中(自定义展示的信息) + .apiInfo(apiInfo()) + // 设置哪些接口暴露给Swagger展示 + .select() + // 扫描所有有注解的api,用这种方式更灵活 + .apis(RequestHandlerSelectors.withMethodAnnotation(ApiOperation.class)) + // 扫描指定包中的swagger注解 + //.apis(RequestHandlerSelectors.basePackage("com.ruoyi.project.tool.swagger")) + // 扫描所有 .apis(RequestHandlerSelectors.any()) + .paths(PathSelectors.any()) + .build(); + } + + /** + * 添加摘要信息 + */ + private ApiInfo apiInfo() + { + // 用ApiInfoBuilder进行定制 + return new ApiInfoBuilder() + // 设置标题 + .title("标题:若依管理系统_接口文档") + // 描述 + .description("描述:用于管理集团旗下公司的人员信息,具体包括XXX,XXX模块...") + // 作者信息 + .contact(new Contact(RuoYiConfig.getName(), null, null)) + // 版本 + .version("版本号:" + RuoYiConfig.getVersion()) + .build(); + } +} diff --git a/alive-admin/src/main/java/com/ruoyi/web/test/Ac.java b/alive-admin/src/main/java/com/ruoyi/web/test/Ac.java new file mode 100644 index 0000000..40fc38a --- /dev/null +++ b/alive-admin/src/main/java/com/ruoyi/web/test/Ac.java @@ -0,0 +1,13 @@ +package com.ruoyi.web.test; + +public class Ac implements Brand{ + @Override + public String getValue() { + return null; + } + + @Override + public String getName() { + return "这里是AC的实现类"; + } +} diff --git a/alive-admin/src/main/java/com/ruoyi/web/test/Brand.java b/alive-admin/src/main/java/com/ruoyi/web/test/Brand.java new file mode 100644 index 0000000..a229bd0 --- /dev/null +++ b/alive-admin/src/main/java/com/ruoyi/web/test/Brand.java @@ -0,0 +1,12 @@ +package com.ruoyi.web.test; + +public interface Brand { + + /** + * 获取数据的数据 + * @return + */ + String getValue(); + + String getName(); +} diff --git a/alive-admin/src/main/java/com/ruoyi/web/test/Dc.java b/alive-admin/src/main/java/com/ruoyi/web/test/Dc.java new file mode 100644 index 0000000..cf35177 --- /dev/null +++ b/alive-admin/src/main/java/com/ruoyi/web/test/Dc.java @@ -0,0 +1,13 @@ +package com.ruoyi.web.test; + +public class Dc implements Brand{ + @Override + public String getValue() { + return null; + } + + @Override + public String getName() { + return "这里是DC的实现类"; + } +} diff --git a/alive-admin/src/main/java/com/ruoyi/web/test/LongTest.java b/alive-admin/src/main/java/com/ruoyi/web/test/LongTest.java new file mode 100644 index 0000000..0ed8f43 --- /dev/null +++ b/alive-admin/src/main/java/com/ruoyi/web/test/LongTest.java @@ -0,0 +1,8 @@ +package com.ruoyi.web.test; + +public class LongTest { + + public static void main(String[] args) { + System.out.println("开始测试对数据"); + } +} diff --git a/alive-admin/src/main/java/com/ruoyi/web/test/RunoobTest.java b/alive-admin/src/main/java/com/ruoyi/web/test/RunoobTest.java new file mode 100644 index 0000000..32bb230 --- /dev/null +++ b/alive-admin/src/main/java/com/ruoyi/web/test/RunoobTest.java @@ -0,0 +1,81 @@ +package com.ruoyi.web.test; + +import java.util.Collections; +import java.util.LinkedList; +import java.util.List; + +public class RunoobTest extends Object { + + private List synchedList; + + public RunoobTest() { + // 创建一个同步列表 + synchedList = Collections.synchronizedList(new LinkedList()); + } + + // 删除列表中的元素 + public String removeElement() throws InterruptedException { + synchronized (synchedList){ + // 列表为空就等待 + while (synchedList.isEmpty()) { + System.out.println("线程等待中"); + synchedList.wait(); + System.out.println("我被唤醒然后执行了..."); + } + String element = (String) synchedList.remove(0); + return element; + } + + } + + // 添加元素到列表 + public void addElement(String element) { + System.out.println("添加元素开始"); + synchronized (synchedList) { + // 添加一个元素,并通知元素已存在 + synchedList.add(element); + System.out.println("添加了一个元素'" + element + "'"); + synchedList.notifyAll(); + System.out.println("唤醒其他线程"); + } + System.out.println("添加元素到列表完毕"); + } + + public static void main(String[] args) { + final RunoobTest demo = new RunoobTest(); + + Runnable runA = new Runnable() { + public void run() { + try { + String item = demo.removeElement(); + System.out.println("----" + item); + } catch (InterruptedException ix) { + System.out.println("错误1"); + } catch (Exception x) { + System.out.println("错误2"); + } + } + }; + + Runnable runB = new Runnable() { + // 执行添加元素操作,并开始循环 + public void run() { + demo.addElement("我是被添加的元素7"); + } + }; + + try { + Thread threadA1 = new Thread(runA, "Google"); + threadA1.start(); + + Thread.sleep(1000); + + Thread threadB = new Thread(runB, "Taobao"); + threadB.start(); + + Thread.sleep(3000); + System.out.println("已完结"); + } catch (InterruptedException x) { + } + } +} \ No newline at end of file diff --git a/alive-admin/src/main/java/com/ruoyi/web/util/EcRecoverUtil.java b/alive-admin/src/main/java/com/ruoyi/web/util/EcRecoverUtil.java new file mode 100644 index 0000000..7c7732d --- /dev/null +++ b/alive-admin/src/main/java/com/ruoyi/web/util/EcRecoverUtil.java @@ -0,0 +1,75 @@ +package com.ruoyi.web.util; + +import org.web3j.crypto.ECDSASignature; +import org.web3j.crypto.Hash; +import org.web3j.crypto.Keys; +import org.web3j.crypto.Sign; +import org.web3j.utils.Numeric; + +import java.math.BigInteger; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collections; +import java.util.List; + +public final class EcRecoverUtil { + + /** + * 校验签名,还原地址 + * + * @param message 消息 + * @param signature 签名结果 + * @return 返回可能的结果,有多个 + */ + public static List ecRecover(String message, String signature) { + if (message == null || signature == null || signature.isEmpty()) { + return Collections.emptyList(); + } + String newMessage = "\u0019Ethereum Signed Message:\n" + message.length() + message; + + byte[] msgHash = Hash.sha3(newMessage.getBytes()); + byte[] signatureBytes = Numeric.hexStringToByteArray(signature); + if (signatureBytes.length <= 64) { + return Collections.emptyList(); + } + byte v = signatureBytes[64]; + if (v < 27) { + v += 27; + } + Sign.SignatureData sd = + new Sign.SignatureData(v, + Arrays.copyOfRange(signatureBytes, 0, 32), + Arrays.copyOfRange(signatureBytes, 32, 64)); + + List result = new ArrayList<>(); + + // Iterate for each possible key to recover + for (int i = 0; i < 4; i++) { + BigInteger publicKey = + Sign.recoverFromSignature((byte) i, + new ECDSASignature(new BigInteger(1, sd.getR()), new BigInteger(1, sd.getS())), + msgHash); + + if (publicKey != null) { + result.add("0x" + Keys.getAddress(publicKey)); + } + } + return result; + } + + /** + * 校验签名是否正确 + * + * @param message 消息 + * @param signature 签名结果 + * @param address 期望地址 + * @return true 地址正确, false 错误 + */ + public static boolean checkEcRecover(String message, String signature, String address) { + if (address == null) { + return false; + } + List result = ecRecover(message, signature); + return result.stream().anyMatch(address::equalsIgnoreCase); + } +} diff --git a/alive-admin/src/main/java/com/ruoyi/web/util/RedisUtil.java b/alive-admin/src/main/java/com/ruoyi/web/util/RedisUtil.java new file mode 100644 index 0000000..c1ddbff --- /dev/null +++ b/alive-admin/src/main/java/com/ruoyi/web/util/RedisUtil.java @@ -0,0 +1,661 @@ +package com.ruoyi.web.util; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.data.redis.connection.DataType; +import org.springframework.data.redis.core.RedisTemplate; +import org.springframework.stereotype.Component; +import org.springframework.util.CollectionUtils; + +import java.util.*; +import java.util.concurrent.TimeUnit; + +@Component +public class RedisUtil { + + @Autowired + private RedisTemplate redisTemplate; + + /** + * 判断 key 是否存在 + * + * @param key 键 + * @return 如果存在 key 则返回 true,否则返回 false + */ + public Boolean exists(String key) { + return redisTemplate.hasKey(key); + } + + + /** + * 获取 Key 的类型 + * + * @param key 键 + */ + public String type(String key) { + DataType dataType = redisTemplate.type(key); + assert dataType != null; + return dataType.code(); + } + + /** + * 指定缓存失效时间 + * + * @param key 键 + * @param time 时间(秒) + * @return 30 + */ + public boolean expire(String key, long time) { + try { + if (time > 0) { + redisTemplate.expire(key, time, TimeUnit.SECONDS); + } + return true; + } catch (Exception e) { + e.printStackTrace(); + return false; + } + } + + /** + * 根据key 获取过期时间 + * + * @param key 键 不能为null + * @return 时间(秒) 返回0代表为永久有效 + */ + public long getExpire(String key) { + + return redisTemplate.getExpire(key, TimeUnit.SECONDS); + + } + + /** + * 判断key是否存在 + * + * @param key 键 + * @return true 存在 false不存在 + */ + public boolean hasKey(String key) { + try { + return redisTemplate.hasKey(key); + } catch (Exception e) { + e.printStackTrace(); + return false; + } + } + + /** + * 删除 key + * + * @param key 键 + */ + public Long delete(String... key) { + if (key == null || key.length < 1) { + return 0L; + } + return redisTemplate.delete(Arrays.asList(key)); + } + + /** + * 获取所有的keys + * + * @return + */ + public Set keys() { + Set keys1 = redisTemplate.keys("*"); + + return keys1; + } + + /** + * 获取所有的keys得所有的值 + * + * @param keys + * @return + */ + public HashMap getKeysValue(String keys) { + + Set keys1 = redisTemplate.keys("*"); + + HashMap hashMap = new HashMap(); + for (String s : keys1) { + Object o = redisTemplate.opsForValue().get(keys + s); + System.out.println("o=" + o); + hashMap.put(keys1, o); + } + return hashMap; + } + + /** + * 删除缓存 + * + * @param key 可以传一个值 或多个 + */ + public void del(String... key) { + if (key != null && key.length > 0) { + if (key.length == 1) { + redisTemplate.delete(key[0]); + } else { + redisTemplate.delete((Collection) CollectionUtils.arrayToList(key)); + } + + } + + } + + // ============================String============================= + + /** + * 普通缓存获取 + * + * @param key 键 + * @return 值 + */ + public Object get(String key) { + return key == null ? null : redisTemplate.opsForValue().get(key); + } + + /** + * 普通缓存放入 + * + * @param key 键 + * @param value 值 + * @return true成功 false失败 + */ + public boolean set(String key, Object value) { + try { + redisTemplate.opsForValue().set(key, value); + return true; + } catch (Exception e) { + e.printStackTrace(); + return false; + } + } + + /** + * 普通缓存放入并设置时间 + * + * @param key 键 + * @param value 值 + * @param time 时间(秒) time要大于0 如果time小于等于0 将设置无限期 + * @return true成功 false 失败 + */ + public boolean set(String key, Object value, long time) { + try { + if (time > 0) { + redisTemplate.opsForValue().set(key, value, time, TimeUnit.SECONDS); + } else { + set(key, value); + } + return true; + } catch (Exception e) { + e.printStackTrace(); + return false; + } + } + + /** + * 递增 + * + * @param key 键 + * @param delta 要增加几(大于0) + * @return + */ + public long incr(String key, long delta) { + if (delta < 0) { + throw new RuntimeException("递增因子必须大于0"); + } + return redisTemplate.opsForValue().increment(key, delta); + } + + /** + * 递减 + * + * @param key 键 + * @param delta 要减少几(小于0) + * @return + */ + public long decr(String key, long delta) { + if (delta < 0) { + throw new RuntimeException("递减因子必须大于0"); + } + return redisTemplate.opsForValue().increment(key, -delta); + } + + // ================================Map================================= + + /** + * HashGet + * + * @param key 键 不能为null + * @param item 项 不能为null + * @return 值 + */ + public Object hget(String key, String item) { + return redisTemplate.opsForHash().get(key, item); + } + + /** + * 获取hashKey对应的所有键值 + * + * @param key 键 + * @return 对应的多个键值 + */ + public Map hmget(String key) { + return redisTemplate.opsForHash().entries(key); + } + + /** + * HashSet + * + * @param key 键 + * @param map 对应多个键值 + * @return true 成功 false 失败 + */ + public boolean hmset(String key, Map map) { + try { + redisTemplate.opsForHash().putAll(key, map); + return true; + } catch (Exception e) { + e.printStackTrace(); + return false; + } + } + + /** + * HashSet 并设置时间 + * + * @param key 键 + * @param map 对应多个键值 + * @param time 时间(秒) + * @return true成功 false失败 + */ + public boolean hmset(String key, Map map, long time) { + try { + redisTemplate.opsForHash().putAll(key, map); + if (time > 0) { + expire(key, time); + } + return true; + } catch (Exception e) { + e.printStackTrace(); + return false; + } + } + + /** + * 向一张hash表中放入数据,如果不存在将创建 + * + * @param key 键 + * @param item 项 + * @param value 值 + * @return true 成功 false失败 + */ + public boolean hset(String key, String item, Object value) { + try { + redisTemplate.opsForHash().put(key, item, value); + return true; + } catch (Exception e) { + e.printStackTrace(); + return false; + } + } + + /** + * 向一张hash表中放入数据,如果不存在将创建 + * + * @param key 键 + * @param item 项 + * @param value 值 + * @param time 时间(秒) 注意:如果已存在的hash表有时间,这里将会替换原有的时间 + * @return true 成功 false失败 + */ + public boolean hset(String key, String item, Object value, long time) { + try { + redisTemplate.opsForHash().put(key, item, value); + if (time > 0) { + expire(key, time); + } + return true; + } catch (Exception e) { + e.printStackTrace(); + return false; + } + } + + /** + * 删除hash表中的值 + * + * @param key 键 不能为null + * @param item 项 可以使多个 不能为null + */ + + public void hdel(String key, Object... item) { + redisTemplate.opsForHash().delete(key, item); + } + + /** + * 判断hash表中是否有该项的值 + * + * @param key 键 不能为null + * @param item 项 不能为null + * @return true 存在 false不存在 + */ + public boolean hHasKey(String key, String item) { + return redisTemplate.opsForHash().hasKey(key, item); + } + + /** + * hash递增 如果不存在,就会创建一个 并把新增后的值返回 + * + * @param key 键 + * @param item 项 + * @param by 要增加几(大于0) + * @return 274 + */ + public double hincr(String key, String item, double by) { + return redisTemplate.opsForHash().increment(key, item, by); + } + + /** + * hash递减 + * + * @param key 键 + * @param item 项 + * @param by 要减少记(小于0) + * @return 285 + */ + public double hdecr(String key, String item, double by) { + return redisTemplate.opsForHash().increment(key, item, -by); + } + + // ============================set============================= + + /** + * 根据key获取Set中的所有值 + * + * @param key 键 + * @return 295 + */ + public Set sGet(String key) { + try { + return redisTemplate.opsForSet().members(key); + } catch (Exception e) { + e.printStackTrace(); + return null; + } + } + + /** + * 根据value从一个set中查询,是否存在 + * + * @param key 键 + * @param value 值 + * @return true 存在 false不存在 + */ + public boolean sHasKey(String key, Object value) { + try { + return redisTemplate.opsForSet().isMember(key, value); + } catch (Exception e) { + e.printStackTrace(); + return false; + } + } + + /** + * 将数据放入set缓存 + * + * @param key 键 + * @param values 值 可以是多个 + * @return 成功个数 + */ + public long sSet(String key, Object... values) { + try { + return redisTemplate.opsForSet().add(key, values); + } catch (Exception e) { + e.printStackTrace(); + return 0; + } + } + + /** + * 将set数据放入缓存 + * + * @param key 键 + * @param time 时间(秒) + * @param values 值 可以是多个 + * @return 成功个数 + */ + public long sSetAndTime(String key, long time, Object... values) { + try { + Long count = redisTemplate.opsForSet().add(key, values); + if (time > 0){ + expire(key, time); + } + return count; + + } catch (Exception e) { + e.printStackTrace(); + return 0; + } + } + + /** + * 获取set缓存的长度 + * + * @param key 键 + * @return + */ + public long sGetSetSize(String key) { + try { + return redisTemplate.opsForSet().size(key); + } catch (Exception e) { + e.printStackTrace(); + return 0; + } + } + + /** + * 移除值为value的 + * + * @param key 键 + * @param values 值 可以是多个 + * @return 移除的个数 + */ + public long setRemove(String key, Object... values) { + try { + Long count = redisTemplate.opsForSet().remove(key, values); + return count; + } catch (Exception e) { + e.printStackTrace(); + return 0; + } + } + + // ===============================list================================= + + /** + * 获取list缓存的内容 + * + * @param key 键 + * @param start 开始 + * @param end 结束 0 到 -1代表所有值 + * @return + */ + public List lGet(String key, long start, long end) { + try { + return redisTemplate.opsForList().range(key, start, end); + } catch (Exception e) { + e.printStackTrace(); + return null; + } + } + + + /** + * 获取list缓存的内容 + * + * @param key 键 + * @param start 开始 + * @param end 结束 0 到 -1代表所有值 + * @return + */ + public List getList(String key, long start, long end) { + try { + return redisTemplate.opsForList().range(key, start, end); + } catch (Exception e) { + e.printStackTrace(); + return null; + } + } + + /** + * 获取list缓存的长度 + * + * @param key 键 + * @return + */ + public long lGetListSize(String key) { + try { + return redisTemplate.opsForList().size(key); + } catch (Exception e) { + e.printStackTrace(); + return 0; + } + } + + /** + * 通过索引 获取list中的值 + * + * @param key 键 + * @param index 索引 index>=0时, 0 表头,1 第二个元素,依次类推;index<0时,-1,表尾,-2倒数第二个元素,依次类推 + * @return + */ + public Object lGetIndex(String key, long index) { + try { + return redisTemplate.opsForList().index(key, index); + } catch (Exception e) { + e.printStackTrace(); + return null; + } + } + + /** + * 将list放入缓存 + * + * @param key 键 + * @param value 值 + * @return + */ + public boolean lSet(String key, Object value) { + try { + redisTemplate.opsForList().rightPush(key, value); + return true; + } catch (Exception e) { + e.printStackTrace(); + return false; + } + } + + /** + * 将list放入缓存 + * + * @param key 键 + * @param value 值 + * @param time 时间(秒) + * @return + */ + + public boolean lSet(String key, Object value, long time) { + try { + redisTemplate.opsForList().rightPush(key, value); + if (time > 0){ + expire(key, time); + } + return true; + } catch (Exception e) { + e.printStackTrace(); + return false; + } + } + + /** + * 将list放入缓存 + * + * @param key 键 + * @param value 值 + * @return + */ + + public boolean lSet(String key, List value) { + try { + redisTemplate.opsForList().rightPushAll(key, value); + return true; + } catch (Exception e) { + e.printStackTrace(); + return false; + } + } + + /** + * 将list放入缓存 + * + * @param key 键 + * @param value 值 + * @param time 时间(秒) + * @return + */ + public boolean lSet(String key, List value, long time) { + try { + redisTemplate.opsForList().rightPushAll(key, value); + if (time > 0){ + expire(key, time); + } + return true; + } catch (Exception e) { + e.printStackTrace(); + return false; + + } + } + + /** + * 根据索引修改list中的某条数据 + * + * @param key 键 + * @param index 索引 + * @param value 值 + * @return + */ + public boolean lUpdateIndex(String key, long index, Object value) { + try { + redisTemplate.opsForList().set(key, index, value); + return true; + } catch (Exception e) { + e.printStackTrace(); + return false; + } + } + + + /** + * 移除N个值为value + * + * @param key 键 + * @param count 移除多少个 + * @param value 值 + * @return 移除的个数 + */ + public long lRemove(String key, long count, Object value) { + + try { + Long remove = redisTemplate.opsForList().remove(key, count, value); + return remove; + + } catch (Exception e) { + e.printStackTrace(); + return 0; + } + + } + +} diff --git a/alive-admin/src/main/resources/application-dev.yml b/alive-admin/src/main/resources/application-dev.yml new file mode 100644 index 0000000..4552f7f --- /dev/null +++ b/alive-admin/src/main/resources/application-dev.yml @@ -0,0 +1,86 @@ +# 数据源配置 +spring: + datasource: + type: com.alibaba.druid.pool.DruidDataSource + driverClassName: com.mysql.cj.jdbc.Driver + druid: + # 主库数据源 + master: + url: jdbc:mysql://127.0.0.1:3306/alive_dev?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=GMT%2B8 + username: root + password: root + # 从库数据源 + slave: + # 从数据源开关/默认关闭 + enabled: false + url: + username: + password: + # 初始连接数 + initialSize: 5 + # 最小连接池数量 + minIdle: 10 + # 最大连接池数量 + maxActive: 20 + # 配置获取连接等待超时的时间 + maxWait: 60000 + # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒 + timeBetweenEvictionRunsMillis: 60000 + # 配置一个连接在池中最小生存的时间,单位是毫秒 + minEvictableIdleTimeMillis: 300000 + # 配置一个连接在池中最大生存的时间,单位是毫秒 + maxEvictableIdleTimeMillis: 900000 + # 配置检测连接是否有效 + validationQuery: SELECT 1 FROM DUAL + testWhileIdle: true + testOnBorrow: false + testOnReturn: false + webStatFilter: + enabled: true + statViewServlet: + enabled: true + # 设置白名单,不填则允许所有访问 + allow: + url-pattern: /druid/* + # 控制台管理用户名和密码 + login-username: + login-password: + filter: + stat: + enabled: true + # 慢SQL记录 + log-slow-sql: true + slow-sql-millis: 1000 + merge-sql: true + wall: + config: + multi-statement-allow: true + redis: + host: 192.168.1.60 + database: 0 + password: 123456 + lettuce: + pool: + max-active: 20 + max-idle: 16 + max-wait: 1000ms + min-idle: 10 + +# 项目相关配置 +ruoyi: + # 名称 + name: MTXM + # 版本 + version: 4.7.3 + # 版权年份 + copyrightYear: 2022 + # 实例演示开关 + demoEnabled: true + # 文件路径 示例( Windows配置D:/ruoyi/uploadPath,Linux配置 /data/nginx/data/upload) + profile: D:/ruoyi/uploadPath # D:/ruoyi/uploadPath + # 获取ip地址开关 + addressEnabled: false + #--------------本地---------------------- + getImg: http://192.168.10.166:9090/img/ + addImg: D:/img/fai + diff --git a/alive-admin/src/main/resources/application-prod.yml b/alive-admin/src/main/resources/application-prod.yml new file mode 100644 index 0000000..957a96e --- /dev/null +++ b/alive-admin/src/main/resources/application-prod.yml @@ -0,0 +1,86 @@ +# 数据源配置 +spring: + datasource: + type: com.alibaba.druid.pool.DruidDataSource + driverClassName: com.mysql.cj.jdbc.Driver + druid: + # 主库数据源 + master: + url: jdbc:mysql://127.0.0.1:3306/alive_prod?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=GMT%2B8 + username: alive_prod + password: 6jD2S3CGwGYhRXNp + # 从库数据源 + slave: + # 从数据源开关/默认关闭 + enabled: false + url: + username: + password: + # 初始连接数 + initialSize: 5 + # 最小连接池数量 + minIdle: 10 + # 最大连接池数量 + maxActive: 20 + # 配置获取连接等待超时的时间 + maxWait: 60000 + # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒 + timeBetweenEvictionRunsMillis: 60000 + # 配置一个连接在池中最小生存的时间,单位是毫秒 + minEvictableIdleTimeMillis: 300000 + # 配置一个连接在池中最大生存的时间,单位是毫秒 + maxEvictableIdleTimeMillis: 900000 + # 配置检测连接是否有效 + validationQuery: SELECT 1 FROM DUAL + testWhileIdle: true + testOnBorrow: false + testOnReturn: false + webStatFilter: + enabled: true + statViewServlet: + enabled: true + # 设置白名单,不填则允许所有访问 + allow: + url-pattern: /druid/* + # 控制台管理用户名和密码 + login-username: + login-password: + filter: + stat: + enabled: true + # 慢SQL记录 + log-slow-sql: true + slow-sql-millis: 1000 + merge-sql: true + wall: + config: + multi-statement-allow: true + redis: + host: 127.0.0.1 + database: 7 + password: + lettuce: + pool: + max-active: 20 + max-idle: 16 + max-wait: 1000ms + min-idle: 10 + +# 项目相关配置 +ruoyi: + # 名称 + name: MTXM + # 版本 + version: 4.7.3 + # 版权年份 + copyrightYear: 2022 + # 实例演示开关 + demoEnabled: true + # 获取ip地址开关 + addressEnabled: false + #图片读取域名 + getImg: https://file.fireandice.space/fai/ + #图片上传域名 + addImg: /data/file/fai + + diff --git a/alive-admin/src/main/resources/application-test.yml b/alive-admin/src/main/resources/application-test.yml new file mode 100644 index 0000000..7d99841 --- /dev/null +++ b/alive-admin/src/main/resources/application-test.yml @@ -0,0 +1,85 @@ +# 数据源配置 +spring: + datasource: + type: com.alibaba.druid.pool.DruidDataSource + driverClassName: com.mysql.cj.jdbc.Driver + druid: + # 主库数据源 _Admin123 + master: + url: jdbc:mysql://172.17.0.1:3307/node_roos_test?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&allowPublicKeyRetrieval=true&useSSL=false&serverTimezone=GMT%2B8 + username: root + password: 123456 + # 从库数据源 + slave: + # 从数据源开关/默认关闭 + enabled: false + url: + username: + password: + # 初始连接数 + initialSize: 5 + # 最小连接池数量 + minIdle: 10 + # 最大连接池数量 + maxActive: 20 + # 配置获取连接等待超时的时间 + maxWait: 60000 + # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒 + timeBetweenEvictionRunsMillis: 60000 + # 配置一个连接在池中最小生存的时间,单位是毫秒 + minEvictableIdleTimeMillis: 300000 + # 配置一个连接在池中最大生存的时间,单位是毫秒 + maxEvictableIdleTimeMillis: 900000 + # 配置检测连接是否有效 + validationQuery: SELECT 1 FROM DUAL + testWhileIdle: true + testOnBorrow: false + testOnReturn: false + webStatFilter: + enabled: true + statViewServlet: + enabled: true + # 设置白名单,不填则允许所有访问 + allow: + url-pattern: /druid/* + # 控制台管理用户名和密码 + login-username: + login-password: + filter: + stat: + enabled: true + # 慢SQL记录 + log-slow-sql: true + slow-sql-millis: 1000 + merge-sql: true + wall: + config: + multi-statement-allow: true + redis: + host: 192.168.1.60 + database: 0 + password: 123456 + lettuce: + pool: + max-active: 20 + max-idle: 16 + max-wait: 1000ms + min-idle: 10 + +# 项目相关配置 +ruoyi: + # 名称 + name: MTXM + # 版本 + version: 4.7.3 + # 版权年份 + copyrightYear: 2022 + # 实例演示开关 + demoEnabled: true + # 获取ip地址开关 + addressEnabled: false + #图片读取域名 + getImg: http://file.odctest.top/fai/ + #图片上传域名 + addImg: /data/file/fai/ + diff --git a/alive-admin/src/main/resources/application.yml b/alive-admin/src/main/resources/application.yml new file mode 100644 index 0000000..b62534b --- /dev/null +++ b/alive-admin/src/main/resources/application.yml @@ -0,0 +1,142 @@ +# 项目相关配置 +ruoyi: + # 名称 + name: MTXM + # 版本 + version: 4.7.3 + # 版权年份 + copyrightYear: 2022 + # 实例演示开关 + demoEnabled: true + # 文件路径 示例( Windows配置D:/ruoyi/uploadPath,Linux配置 /home/ruoyi/uploadPath) + profile: D:/ruoyi/uploadPath + # 获取ip地址开关 + addressEnabled: false + +# 开发环境配置 +server: + # 服务器的HTTP端口,默认为80 + port: 8180 + servlet: + # 应用的访问路径 + context-path: / + tomcat: + # tomcat的URI编码 + uri-encoding: UTF-8 + # 连接数满后的排队数,默认为100 + accept-count: 1000 + threads: + # tomcat最大线程数,默认为200 + max: 800 + # Tomcat启动初始化的线程数,默认值10 + min-spare: 100 + +# 日志配置 +logging: + level: + com.ruoyi: debug + org.springframework: warn + +# 用户配置 +user: + password: + # 密码错误{maxRetryCount}次锁定10分钟 + maxRetryCount: 100 + +# Spring配置 +spring: + # 模板引擎 + thymeleaf: + mode: HTML + encoding: utf-8 + # 禁用缓存 + cache: false + # 资源信息 + messages: + # 国际化资源文件路径 + basename: static/i18n/messages + jackson: + time-zone: GMT+8 + date-format: yyyy-MM-dd HH:mm:ss + profiles: + active: dev + # 文件上传 + servlet: + multipart: + # 单个文件大小 + max-file-size: 10MB + # 设置总上传的文件大小 + max-request-size: 20MB + # 服务模块 + devtools: + restart: + # 热部署开关 + enabled: true + +# MyBatis +mybatis: + # 搜索指定包别名 + typeAliasesPackage: com.ruoyi.**.domain + # 配置mapper的扫描,找到所有的mapper.xml映射文件 + mapperLocations: classpath*:mapper/**/*Mapper.xml + # 加载全局的配置文件 + configLocation: classpath:mybatis/mybatis-config.xml + +# PageHelper分页插件 +pagehelper: + helperDialect: mysql + supportMethodsArguments: true + params: count=countSql + +# Shiro +shiro: + user: + # 登录地址 + loginUrl: /login + # 权限认证失败地址 + unauthorizedUrl: /unauth + # 首页地址 + indexUrl: /index + # 验证码开关 + captchaEnabled: false + # 验证码类型 math 数组计算 char 字符 + captchaType: math + cookie: + # 设置Cookie的域名 默认空,即当前访问的域名 + domain: + # 设置cookie的有效访问路径 + path: / + # 设置HttpOnly属性 + httpOnly: true + # 设置Cookie的过期时间,天为单位 + maxAge: 30 + # 设置密钥,务必保持唯一性(生成方式,直接拷贝到main运行即可)Base64.encodeToString(CipherUtils.generateNewKey(128, "AES").getEncoded()) (默认启动生成随机秘钥,随机秘钥会导致之前客户端RememberMe Cookie无效,如设置固定秘钥RememberMe Cookie则有效) + cipherKey: + session: + # Session超时时间,-1代表永不过期(默认30分钟) + expireTime: -1 + # 同步session到数据库的周期(默认1分钟) + dbSyncPeriod: 1 + # 相隔多久检查一次session的有效性,默认就是10分钟 + validationInterval: 10 + # 同一个用户最大会话数,比如2的意思是同一个账号允许最多同时两个人登录(默认-1不限制) + maxSession: -1 + # 踢出之前登录的/之后登录的用户,默认踢出之前登录的用户 + kickoutAfter: false + rememberMe: + # 是否开启记住我 + enabled: true + +# 防止XSS攻击 +xss: + # 过滤开关 + enabled: true + # 排除链接(多个用逗号分隔) + excludes: /system/notice/* + # 匹配链接 + urlPatterns: /system/*,/monitor/*,/tool/* + +# Swagger配置 +swagger: + # 是否开启swagger + enabled: true diff --git a/alive-admin/src/main/resources/banner.txt b/alive-admin/src/main/resources/banner.txt new file mode 100644 index 0000000..c0e09cd --- /dev/null +++ b/alive-admin/src/main/resources/banner.txt @@ -0,0 +1,2 @@ +Application Version: ${ruoyi.version} +Spring Boot Version: ${spring-boot.version} diff --git a/alive-admin/src/main/resources/ehcache/ehcache-shiro.xml b/alive-admin/src/main/resources/ehcache/ehcache-shiro.xml new file mode 100644 index 0000000..7bf080f --- /dev/null +++ b/alive-admin/src/main/resources/ehcache/ehcache-shiro.xml @@ -0,0 +1,91 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/logback.xml b/alive-admin/src/main/resources/logback.xml new file mode 100644 index 0000000..a360583 --- /dev/null +++ b/alive-admin/src/main/resources/logback.xml @@ -0,0 +1,93 @@ + + + + + + + + + + + ${log.pattern} + + + + + + ${log.path}/sys-info.log + + + + ${log.path}/sys-info.%d{yyyy-MM-dd}.log + + 60 + + + ${log.pattern} + + + + INFO + + ACCEPT + + DENY + + + + + ${log.path}/sys-error.log + + + + ${log.path}/sys-error.%d{yyyy-MM-dd}.log + + 60 + + + ${log.pattern} + + + + ERROR + + ACCEPT + + DENY + + + + + + ${log.path}/sys-user.log + + + ${log.path}/sys-user.%d{yyyy-MM-dd}.log + + 60 + + + ${log.pattern} + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/mybatis/mybatis-config.xml b/alive-admin/src/main/resources/mybatis/mybatis-config.xml new file mode 100644 index 0000000..ac47c03 --- /dev/null +++ b/alive-admin/src/main/resources/mybatis/mybatis-config.xml @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + + + + diff --git a/alive-admin/src/main/resources/static/ajax/libs/beautifyhtml/beautifyhtml.js b/alive-admin/src/main/resources/static/ajax/libs/beautifyhtml/beautifyhtml.js new file mode 100644 index 0000000..ea69dec --- /dev/null +++ b/alive-admin/src/main/resources/static/ajax/libs/beautifyhtml/beautifyhtml.js @@ -0,0 +1,617 @@ +/*jshint curly:true, eqeqeq:true, laxbreak:true, noempty:false */ +/* + + The MIT License (MIT) + + Copyright (c) 2007-2013 Einar Lielmanis and contributors. + + Permission is hereby granted, free of charge, to any person + obtaining a copy of this software and associated documentation files + (the "Software"), to deal in the Software without restriction, + including without limitation the rights to use, copy, modify, merge, + publish, distribute, sublicense, and/or sell copies of the Software, + and to permit persons to whom the Software is furnished to do so, + subject to the following conditions: + + The above copyright notice and this permission notice shall be + included in all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS + BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN + ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + + + Style HTML +--------------- + + Written by Nochum Sossonko, (nsossonko@hotmail.com) + + Based on code initially developed by: Einar Lielmanis, + http://jsbeautifier.org/ + + Usage: + style_html(html_source); + + style_html(html_source, options); + + The options are: + indent_size (default 4) — indentation size, + indent_char (default space) — character to indent with, + max_char (default 250) - maximum amount of characters per line (0 = disable) + brace_style (default "collapse") - "collapse" | "expand" | "end-expand" + put braces on the same line as control statements (default), or put braces on own line (Allman / ANSI style), or just put end braces on own line. + unformatted (defaults to inline tags) - list of tags, that shouldn't be reformatted + indent_scripts (default normal) - "keep"|"separate"|"normal" + + e.g. + + style_html(html_source, { + 'indent_size': 2, + 'indent_char': ' ', + 'max_char': 78, + 'brace_style': 'expand', + 'unformatted': ['a', 'sub', 'sup', 'b', 'i', 'u'] + }); +*/ + +(function() { + + function style_html(html_source, options, js_beautify, css_beautify) { + //Wrapper function to invoke all the necessary constructors and deal with the output. + + var multi_parser, + indent_size, + indent_character, + max_char, + brace_style, + unformatted; + + options = options || {}; + indent_size = options.indent_size || 4; + indent_character = options.indent_char || ' '; + brace_style = options.brace_style || 'collapse'; + max_char = options.max_char === 0 ? Infinity : options.max_char || 250; + unformatted = options.unformatted || ['a', 'span', 'bdo', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'q', 'sub', 'sup', 'tt', 'i', 'b', 'big', 'small', 'u', 's', 'strike', 'font', 'ins', 'del', 'pre', 'address', 'dt', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6']; + + function Parser() { + + this.pos = 0; //Parser position + this.token = ''; + this.current_mode = 'CONTENT'; //reflects the current Parser mode: TAG/CONTENT + this.tags = { //An object to hold tags, their position, and their parent-tags, initiated with default values + parent: 'parent1', + parentcount: 1, + parent1: '' + }; + this.tag_type = ''; + this.token_text = this.last_token = this.last_text = this.token_type = ''; + + this.Utils = { //Uilities made available to the various functions + whitespace: "\n\r\t ".split(''), + single_token: 'br,input,link,meta,!doctype,basefont,base,area,hr,wbr,param,img,isindex,?xml,embed,?php,?,?='.split(','), //all the single tags for HTML + extra_liners: 'head,body,/html'.split(','), //for tags that need a line of whitespace before them + in_array: function (what, arr) { + for (var i=0; i= this.input.length) { + return content.length?content.join(''):['', 'TK_EOF']; + } + + input_char = this.input.charAt(this.pos); + this.pos++; + this.line_char_count++; + + if (this.Utils.in_array(input_char, this.Utils.whitespace)) { + if (content.length) { + space = true; + } + this.line_char_count--; + continue; //don't want to insert unnecessary space + } + else if (space) { + if (this.line_char_count >= this.max_char) { //insert a line when the max_char is reached + content.push('\n'); + for (var i=0; i', 'igm'); + reg_match.lastIndex = this.pos; + var reg_array = reg_match.exec(this.input); + var end_script = reg_array?reg_array.index:this.input.length; //absolute end of script + if(this.pos < end_script) { //get everything in between the script tags + content = this.input.substring(this.pos, end_script); + this.pos = end_script; + } + return content; + }; + + this.record_tag = function (tag){ //function to record a tag and its parent in this.tags Object + if (this.tags[tag + 'count']) { //check for the existence of this tag type + this.tags[tag + 'count']++; + this.tags[tag + this.tags[tag + 'count']] = this.indent_level; //and record the present indent level + } + else { //otherwise initialize this tag type + this.tags[tag + 'count'] = 1; + this.tags[tag + this.tags[tag + 'count']] = this.indent_level; //and record the present indent level + } + this.tags[tag + this.tags[tag + 'count'] + 'parent'] = this.tags.parent; //set the parent (i.e. in the case of a div this.tags.div1parent) + this.tags.parent = tag + this.tags[tag + 'count']; //and make this the current parent (i.e. in the case of a div 'div1') + }; + + this.retrieve_tag = function (tag) { //function to retrieve the opening tag to the corresponding closer + if (this.tags[tag + 'count']) { //if the openener is not in the Object we ignore it + var temp_parent = this.tags.parent; //check to see if it's a closable tag. + while (temp_parent) { //till we reach '' (the initial value); + if (tag + this.tags[tag + 'count'] === temp_parent) { //if this is it use it + break; + } + temp_parent = this.tags[temp_parent + 'parent']; //otherwise keep on climbing up the DOM Tree + } + if (temp_parent) { //if we caught something + this.indent_level = this.tags[tag + this.tags[tag + 'count']]; //set the indent_level accordingly + this.tags.parent = this.tags[temp_parent + 'parent']; //and set the current parent + } + delete this.tags[tag + this.tags[tag + 'count'] + 'parent']; //delete the closed tags parent reference... + delete this.tags[tag + this.tags[tag + 'count']]; //...and the tag itself + if (this.tags[tag + 'count'] === 1) { + delete this.tags[tag + 'count']; + } + else { + this.tags[tag + 'count']--; + } + } + }; + + this.get_tag = function (peek) { //function to get a full tag and parse its type + var input_char = '', + content = [], + comment = '', + space = false, + tag_start, tag_end, + orig_pos = this.pos, + orig_line_char_count = this.line_char_count; + + peek = peek !== undefined ? peek : false; + + do { + if (this.pos >= this.input.length) { + if (peek) { + this.pos = orig_pos; + this.line_char_count = orig_line_char_count; + } + return content.length?content.join(''):['', 'TK_EOF']; + } + + input_char = this.input.charAt(this.pos); + this.pos++; + this.line_char_count++; + + if (this.Utils.in_array(input_char, this.Utils.whitespace)) { //don't want to insert unnecessary space + space = true; + this.line_char_count--; + continue; + } + + if (input_char === "'" || input_char === '"') { + if (!content[1] || content[1] !== '!') { //if we're in a comment strings don't get treated specially + input_char += this.get_unformatted(input_char); + space = true; + } + } + + if (input_char === '=') { //no space before = + space = false; + } + + if (content.length && content[content.length-1] !== '=' && input_char !== '>' && space) { + //no space after = or before > + if (this.line_char_count >= this.max_char) { + this.print_newline(false, content); + this.line_char_count = 0; + } + else { + content.push(' '); + this.line_char_count++; + } + space = false; + } + if (input_char === '<') { + tag_start = this.pos - 1; + } + content.push(input_char); //inserts character at-a-time (or string) + } while (input_char !== '>'); + + var tag_complete = content.join(''); + var tag_index; + if (tag_complete.indexOf(' ') !== -1) { //if there's whitespace, thats where the tag name ends + tag_index = tag_complete.indexOf(' '); + } + else { //otherwise go with the tag ending + tag_index = tag_complete.indexOf('>'); + } + var tag_check = tag_complete.substring(1, tag_index).toLowerCase(); + if (tag_complete.charAt(tag_complete.length-2) === '/' || + this.Utils.in_array(tag_check, this.Utils.single_token)) { //if this tag name is a single tag type (either in the list or has a closing /) + if ( ! peek) { + this.tag_type = 'SINGLE'; + } + } + else if (tag_check === 'script') { //for later script handling + if ( ! peek) { + this.record_tag(tag_check); + this.tag_type = 'SCRIPT'; + } + } + else if (tag_check === 'style') { //for future style handling (for now it justs uses get_content) + if ( ! peek) { + this.record_tag(tag_check); + this.tag_type = 'STYLE'; + } + } + else if (this.is_unformatted(tag_check, unformatted)) { // do not reformat the "unformatted" tags + comment = this.get_unformatted('', tag_complete); //...delegate to get_unformatted function + content.push(comment); + // Preserve collapsed whitespace either before or after this tag. + if (tag_start > 0 && this.Utils.in_array(this.input.charAt(tag_start - 1), this.Utils.whitespace)){ + content.splice(0, 0, this.input.charAt(tag_start - 1)); + } + tag_end = this.pos - 1; + if (this.Utils.in_array(this.input.charAt(tag_end + 1), this.Utils.whitespace)){ + content.push(this.input.charAt(tag_end + 1)); + } + this.tag_type = 'SINGLE'; + } + else if (tag_check.charAt(0) === '!') { //peek for so... + comment = this.get_unformatted('-->', tag_complete); //...delegate to get_unformatted + content.push(comment); + } + if ( ! peek) { + this.tag_type = 'START'; + } + } + else if (tag_check.indexOf('[endif') !== -1) {//peek for ', tag_complete); + content.push(comment); + this.tag_type = 'SINGLE'; + } + } + else if ( ! peek) { + if (tag_check.charAt(0) === '/') { //this tag is a double tag so check for tag-ending + this.retrieve_tag(tag_check.substring(1)); //remove it and all ancestors + this.tag_type = 'END'; + } + else { //otherwise it's a start-tag + this.record_tag(tag_check); //push it on the tag stack + this.tag_type = 'START'; + } + if (this.Utils.in_array(tag_check, this.Utils.extra_liners)) { //check if this double needs an extra line + this.print_newline(true, this.output); + } + } + + if (peek) { + this.pos = orig_pos; + this.line_char_count = orig_line_char_count; + } + + return content.join(''); //returns fully formatted tag + }; + + this.get_unformatted = function (delimiter, orig_tag) { //function to return unformatted content in its entirety + + if (orig_tag && orig_tag.toLowerCase().indexOf(delimiter) !== -1) { + return ''; + } + var input_char = ''; + var content = ''; + var space = true; + do { + + if (this.pos >= this.input.length) { + return content; + } + + input_char = this.input.charAt(this.pos); + this.pos++; + + if (this.Utils.in_array(input_char, this.Utils.whitespace)) { + if (!space) { + this.line_char_count--; + continue; + } + if (input_char === '\n' || input_char === '\r') { + content += '\n'; + /* Don't change tab indention for unformatted blocks. If using code for html editing, this will greatly affect
 tags if they are specified in the 'unformatted array'
+                for (var i=0; i]*>\s*$/);
+
+            // if next_tag comes back but is not an isolated tag, then
+            // let's treat the 'a' tag as having content
+            // and respect the unformatted option
+            if (!tag || this.Utils.in_array(tag, unformatted)){
+                return true;
+            } else {
+                return false;
+            }
+        };
+
+        this.printer = function (js_source, indent_character, indent_size, max_char, brace_style) { //handles input/output and some other printing functions
+
+          this.input = js_source || ''; //gets the input for the Parser
+          this.output = [];
+          this.indent_character = indent_character;
+          this.indent_string = '';
+          this.indent_size = indent_size;
+          this.brace_style = brace_style;
+          this.indent_level = 0;
+          this.max_char = max_char;
+          this.line_char_count = 0; //count to see if max_char was exceeded
+
+          for (var i=0; i 0) {
+              this.indent_level--;
+            }
+          };
+        };
+        return this;
+      }
+
+      /*_____________________--------------------_____________________*/
+
+      multi_parser = new Parser(); //wrapping functions Parser
+      multi_parser.printer(html_source, indent_character, indent_size, max_char, brace_style); //initialize starting values
+
+      while (true) {
+          var t = multi_parser.get_token();
+          multi_parser.token_text = t[0];
+          multi_parser.token_type = t[1];
+
+        if (multi_parser.token_type === 'TK_EOF') {
+          break;
+        }
+
+        switch (multi_parser.token_type) {
+          case 'TK_TAG_START':
+            multi_parser.print_newline(false, multi_parser.output);
+            multi_parser.print_token(multi_parser.token_text);
+            multi_parser.indent();
+            multi_parser.current_mode = 'CONTENT';
+            break;
+          case 'TK_TAG_STYLE':
+          case 'TK_TAG_SCRIPT':
+            multi_parser.print_newline(false, multi_parser.output);
+            multi_parser.print_token(multi_parser.token_text);
+            multi_parser.current_mode = 'CONTENT';
+            break;
+          case 'TK_TAG_END':
+            //Print new line only if the tag has no content and has child
+            if (multi_parser.last_token === 'TK_CONTENT' && multi_parser.last_text === '') {
+                var tag_name = multi_parser.token_text.match(/\w+/)[0];
+                var tag_extracted_from_last_output = multi_parser.output[multi_parser.output.length -1].match(/<\s*(\w+)/);
+                if (tag_extracted_from_last_output === null || tag_extracted_from_last_output[1] !== tag_name) {
+                    multi_parser.print_newline(true, multi_parser.output);
+                }
+            }
+            multi_parser.print_token(multi_parser.token_text);
+            multi_parser.current_mode = 'CONTENT';
+            break;
+          case 'TK_TAG_SINGLE':
+            // Don't add a newline before elements that should remain unformatted.
+            var tag_check = multi_parser.token_text.match(/^\s*<([a-z]+)/i);
+            if (!tag_check || !multi_parser.Utils.in_array(tag_check[1], unformatted)){
+                multi_parser.print_newline(false, multi_parser.output);
+            }
+            multi_parser.print_token(multi_parser.token_text);
+            multi_parser.current_mode = 'CONTENT';
+            break;
+          case 'TK_CONTENT':
+            if (multi_parser.token_text !== '') {
+              multi_parser.print_token(multi_parser.token_text);
+            }
+            multi_parser.current_mode = 'TAG';
+            break;
+          case 'TK_STYLE':
+          case 'TK_SCRIPT':
+            if (multi_parser.token_text !== '') {
+              multi_parser.output.push('\n');
+              var text = multi_parser.token_text,
+                  _beautifier,
+                  script_indent_level = 1;
+              if (multi_parser.token_type === 'TK_SCRIPT') {
+                _beautifier = typeof js_beautify === 'function' && js_beautify;
+              } else if (multi_parser.token_type === 'TK_STYLE') {
+                _beautifier = typeof css_beautify === 'function' && css_beautify;
+              }
+
+              if (options.indent_scripts === "keep") {
+                script_indent_level = 0;
+              } else if (options.indent_scripts === "separate") {
+                script_indent_level = -multi_parser.indent_level;
+              }
+
+              var indentation = multi_parser.get_full_indent(script_indent_level);
+              if (_beautifier) {
+                // call the Beautifier if avaliable
+                text = _beautifier(text.replace(/^\s*/, indentation), options);
+              } else {
+                // simply indent the string otherwise
+                var white = text.match(/^\s*/)[0];
+                var _level = white.match(/[^\n\r]*$/)[0].split(multi_parser.indent_string).length - 1;
+                var reindent = multi_parser.get_full_indent(script_indent_level -_level);
+                text = text.replace(/^\s*/, indentation)
+                       .replace(/\r\n|\r|\n/g, '\n' + reindent)
+                       .replace(/\s*$/, '');
+              }
+              if (text) {
+                multi_parser.print_token(text);
+                multi_parser.print_newline(true, multi_parser.output);
+              }
+            }
+            multi_parser.current_mode = 'TAG';
+            break;
+        }
+        multi_parser.last_token = multi_parser.token_type;
+        multi_parser.last_text = multi_parser.token_text;
+      }
+      return multi_parser.output.join('');
+    }
+
+    // If we're running a web page and don't have either of the above, add our one global
+    window.html_beautify = function(html_source, options) {
+        return style_html(html_source, options, window.js_beautify, window.css_beautify);
+    };
+
+}());
diff --git a/alive-admin/src/main/resources/static/ajax/libs/blockUI/jquery.blockUI.js b/alive-admin/src/main/resources/static/ajax/libs/blockUI/jquery.blockUI.js
new file mode 100644
index 0000000..552613d
--- /dev/null
+++ b/alive-admin/src/main/resources/static/ajax/libs/blockUI/jquery.blockUI.js
@@ -0,0 +1,620 @@
+/*!
+ * jQuery blockUI plugin
+ * Version 2.70.0-2014.11.23
+ * Requires jQuery v1.7 or later
+ *
+ * Examples at: http://malsup.com/jquery/block/
+ * Copyright (c) 2007-2013 M. Alsup
+ * Dual licensed under the MIT and GPL licenses:
+ * http://www.opensource.org/licenses/mit-license.php
+ * http://www.gnu.org/licenses/gpl.html
+ *
+ * Thanks to Amir-Hossein Sobhi for some excellent contributions!
+ */
+
+;(function() {
+/*jshint eqeqeq:false curly:false latedef:false */
+"use strict";
+
+	function setup($) {
+		$.fn._fadeIn = $.fn.fadeIn;
+
+		var noOp = $.noop || function() {};
+
+		// this bit is to ensure we don't call setExpression when we shouldn't (with extra muscle to handle
+		// confusing userAgent strings on Vista)
+		var msie = /MSIE/.test(navigator.userAgent);
+		var ie6  = /MSIE 6.0/.test(navigator.userAgent) && ! /MSIE 8.0/.test(navigator.userAgent);
+		var mode = document.documentMode || 0;
+		var setExpr = $.isFunction( document.createElement('div').style.setExpression );
+
+		// global $ methods for blocking/unblocking the entire page
+		$.blockUI   = function(opts) { install(window, opts); };
+		$.unblockUI = function(opts) { remove(window, opts); };
+
+		// convenience method for quick growl-like notifications  (http://www.google.com/search?q=growl)
+		$.growlUI = function(title, message, timeout, onClose) {
+			var $m = $('
'); + if (title) $m.append('

'+title+'

'); + if (message) $m.append('

'+message+'

'); + if (timeout === undefined) timeout = 3000; + + // Added by konapun: Set timeout to 30 seconds if this growl is moused over, like normal toast notifications + var callBlock = function(opts) { + opts = opts || {}; + + $.blockUI({ + message: $m, + fadeIn : typeof opts.fadeIn !== 'undefined' ? opts.fadeIn : 700, + fadeOut: typeof opts.fadeOut !== 'undefined' ? opts.fadeOut : 1000, + timeout: typeof opts.timeout !== 'undefined' ? opts.timeout : timeout, + centerY: false, + showOverlay: false, + onUnblock: onClose, + css: $.blockUI.defaults.growlCSS + }); + }; + + callBlock(); + var nonmousedOpacity = $m.css('opacity'); + $m.mouseover(function() { + callBlock({ + fadeIn: 0, + timeout: 30000 + }); + + var displayBlock = $('.blockMsg'); + displayBlock.stop(); // cancel fadeout if it has started + displayBlock.fadeTo(300, 1); // make it easier to read the message by removing transparency + }).mouseout(function() { + $('.blockMsg').fadeOut(1000); + }); + // End konapun additions + }; + + // plugin method for blocking element content + $.fn.block = function(opts) { + if ( this[0] === window ) { + $.blockUI( opts ); + return this; + } + var fullOpts = $.extend({}, $.blockUI.defaults, opts || {}); + this.each(function() { + var $el = $(this); + if (fullOpts.ignoreIfBlocked && $el.data('blockUI.isBlocked')) + return; + $el.unblock({ fadeOut: 0 }); + }); + + return this.each(function() { + if ($.css(this,'position') == 'static') { + this.style.position = 'relative'; + $(this).data('blockUI.static', true); + } + this.style.zoom = 1; // force 'hasLayout' in ie + install(this, opts); + }); + }; + + // plugin method for unblocking element content + $.fn.unblock = function(opts) { + if ( this[0] === window ) { + $.unblockUI( opts ); + return this; + } + return this.each(function() { + remove(this, opts); + }); + }; + + $.blockUI.version = 2.70; // 2nd generation blocking at no extra cost! + + // override these in your code to change the default behavior and style + $.blockUI.defaults = { + // message displayed when blocking (use null for no message) + message: '
加载中......
', + + title: null, // title string; only used when theme == true + draggable: true, // only used when theme == true (requires jquery-ui.js to be loaded) + + theme: false, // set to true to use with jQuery UI themes + + // styles for the message when blocking; if you wish to disable + // these and use an external stylesheet then do this in your code: + // $.blockUI.defaults.css = {}; + css: { + padding: 0, + margin: 0, + width: '30%', + top: '40%', + left: '35%', + textAlign: 'center', + color: '#000', + border: '0px', + backgroundColor:'transparent', + cursor: 'wait' + }, + + // minimal style set used when themes are used + themedCSS: { + width: '30%', + top: '40%', + left: '35%' + }, + + // styles for the overlay + overlayCSS: { + backgroundColor: '#000', + opacity: 0.6, + cursor: 'wait' + }, + + // style to replace wait cursor before unblocking to correct issue + // of lingering wait cursor + cursorReset: 'default', + + // styles applied when using $.growlUI + growlCSS: { + width: '350px', + top: '10px', + left: '', + right: '10px', + border: 'none', + padding: '5px', + opacity: 0.6, + cursor: 'default', + color: '#fff', + backgroundColor: '#000', + '-webkit-border-radius':'10px', + '-moz-border-radius': '10px', + 'border-radius': '10px' + }, + + // IE issues: 'about:blank' fails on HTTPS and javascript:false is s-l-o-w + // (hat tip to Jorge H. N. de Vasconcelos) + /*jshint scripturl:true */ + iframeSrc: /^https/i.test(window.location.href || '') ? 'javascript:false' : 'about:blank', + + // force usage of iframe in non-IE browsers (handy for blocking applets) + forceIframe: false, + + // z-index for the blocking overlay + baseZ: 1000, + + // set these to true to have the message automatically centered + centerX: true, // <-- only effects element blocking (page block controlled via css above) + centerY: true, + + // allow body element to be stetched in ie6; this makes blocking look better + // on "short" pages. disable if you wish to prevent changes to the body height + allowBodyStretch: true, + + // enable if you want key and mouse events to be disabled for content that is blocked + bindEvents: true, + + // be default blockUI will supress tab navigation from leaving blocking content + // (if bindEvents is true) + constrainTabKey: true, + + // fadeIn time in millis; set to 0 to disable fadeIn on block + fadeIn: 200, + + // fadeOut time in millis; set to 0 to disable fadeOut on unblock + fadeOut: 400, + + // time in millis to wait before auto-unblocking; set to 0 to disable auto-unblock + timeout: 0, + + // disable if you don't want to show the overlay + showOverlay: true, + + // if true, focus will be placed in the first available input field when + // page blocking + focusInput: true, + + // elements that can receive focus + focusableElements: ':input:enabled:visible', + + // suppresses the use of overlay styles on FF/Linux (due to performance issues with opacity) + // no longer needed in 2012 + // applyPlatformOpacityRules: true, + + // callback method invoked when fadeIn has completed and blocking message is visible + onBlock: null, + + // callback method invoked when unblocking has completed; the callback is + // passed the element that has been unblocked (which is the window object for page + // blocks) and the options that were passed to the unblock call: + // onUnblock(element, options) + onUnblock: null, + + // callback method invoked when the overlay area is clicked. + // setting this will turn the cursor to a pointer, otherwise cursor defined in overlayCss will be used. + onOverlayClick: null, + + // don't ask; if you really must know: http://groups.google.com/group/jquery-en/browse_thread/thread/36640a8730503595/2f6a79a77a78e493#2f6a79a77a78e493 + quirksmodeOffsetHack: 4, + + // class name of the message block + blockMsgClass: 'blockMsg', + + // if it is already blocked, then ignore it (don't unblock and reblock) + ignoreIfBlocked: false + }; + + // private data and functions follow... + + var pageBlock = null; + var pageBlockEls = []; + + function install(el, opts) { + var css, themedCSS; + var full = (el == window); + var msg = (opts && opts.message !== undefined ? opts.message : undefined); + opts = $.extend({}, $.blockUI.defaults, opts || {}); + + if (opts.ignoreIfBlocked && $(el).data('blockUI.isBlocked')) + return; + + opts.overlayCSS = $.extend({}, $.blockUI.defaults.overlayCSS, opts.overlayCSS || {}); + css = $.extend({}, $.blockUI.defaults.css, opts.css || {}); + if (opts.onOverlayClick) + opts.overlayCSS.cursor = 'pointer'; + + themedCSS = $.extend({}, $.blockUI.defaults.themedCSS, opts.themedCSS || {}); + msg = msg === undefined ? opts.message : msg; + + // remove the current block (if there is one) + if (full && pageBlock) + remove(window, {fadeOut:0}); + + // if an existing element is being used as the blocking content then we capture + // its current place in the DOM (and current display style) so we can restore + // it when we unblock + if (msg && typeof msg != 'string' && (msg.parentNode || msg.jquery)) { + var node = msg.jquery ? msg[0] : msg; + var data = {}; + $(el).data('blockUI.history', data); + data.el = node; + data.parent = node.parentNode; + data.display = node.style.display; + data.position = node.style.position; + if (data.parent) + data.parent.removeChild(node); + } + + $(el).data('blockUI.onUnblock', opts.onUnblock); + var z = opts.baseZ; + + // blockUI uses 3 layers for blocking, for simplicity they are all used on every platform; + // layer1 is the iframe layer which is used to supress bleed through of underlying content + // layer2 is the overlay layer which has opacity and a wait cursor (by default) + // layer3 is the message content that is displayed while blocking + var lyr1, lyr2, lyr3, s; + if (msie || opts.forceIframe) + lyr1 = $(''); + else + lyr1 = $(''); + + if (opts.theme) + lyr2 = $(''); + else + lyr2 = $(''); + + if (opts.theme && full) { + s = ''; + } + else if (opts.theme) { + s = ''; + } + else if (full) { + s = ''; + } + else { + s = ''; + } + lyr3 = $(s); + + // if we have a message, style it + if (msg) { + if (opts.theme) { + lyr3.css(themedCSS); + lyr3.addClass('ui-widget-content'); + } + else + lyr3.css(css); + } + + // style the overlay + if (!opts.theme /*&& (!opts.applyPlatformOpacityRules)*/) + lyr2.css(opts.overlayCSS); + lyr2.css('position', full ? 'fixed' : 'absolute'); + + // make iframe layer transparent in IE + if (msie || opts.forceIframe) + lyr1.css('opacity',0.0); + + //$([lyr1[0],lyr2[0],lyr3[0]]).appendTo(full ? 'body' : el); + var layers = [lyr1,lyr2,lyr3], $par = full ? $('body') : $(el); + $.each(layers, function() { + this.appendTo($par); + }); + + if (opts.theme && opts.draggable && $.fn.draggable) { + lyr3.draggable({ + handle: '.ui-dialog-titlebar', + cancel: 'li' + }); + } + + // ie7 must use absolute positioning in quirks mode and to account for activex issues (when scrolling) + var expr = setExpr && (!$.support.boxModel || $('object,embed', full ? null : el).length > 0); + if (ie6 || expr) { + // give body 100% height + if (full && opts.allowBodyStretch && $.support.boxModel) + $('html,body').css('height','100%'); + + // fix ie6 issue when blocked element has a border width + if ((ie6 || !$.support.boxModel) && !full) { + var t = sz(el,'borderTopWidth'), l = sz(el,'borderLeftWidth'); + var fixT = t ? '(0 - '+t+')' : 0; + var fixL = l ? '(0 - '+l+')' : 0; + } + + // simulate fixed position + $.each(layers, function(i,o) { + var s = o[0].style; + s.position = 'absolute'; + if (i < 2) { + if (full) + s.setExpression('height','Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.support.boxModel?0:'+opts.quirksmodeOffsetHack+') + "px"'); + else + s.setExpression('height','this.parentNode.offsetHeight + "px"'); + if (full) + s.setExpression('width','jQuery.support.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"'); + else + s.setExpression('width','this.parentNode.offsetWidth + "px"'); + if (fixL) s.setExpression('left', fixL); + if (fixT) s.setExpression('top', fixT); + } + else if (opts.centerY) { + if (full) s.setExpression('top','(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"'); + s.marginTop = 0; + } + else if (!opts.centerY && full) { + var top = (opts.css && opts.css.top) ? parseInt(opts.css.top, 10) : 0; + var expression = '((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + '+top+') + "px"'; + s.setExpression('top',expression); + } + }); + } + + // show the message + if (msg) { + if (opts.theme) + lyr3.find('.ui-widget-content').append(msg); + else + lyr3.append(msg); + if (msg.jquery || msg.nodeType) + $(msg).show(); + } + + if ((msie || opts.forceIframe) && opts.showOverlay) + lyr1.show(); // opacity is zero + if (opts.fadeIn) { + var cb = opts.onBlock ? opts.onBlock : noOp; + var cb1 = (opts.showOverlay && !msg) ? cb : noOp; + var cb2 = msg ? cb : noOp; + if (opts.showOverlay) + lyr2._fadeIn(opts.fadeIn, cb1); + if (msg) + lyr3._fadeIn(opts.fadeIn, cb2); + } + else { + if (opts.showOverlay) + lyr2.show(); + if (msg) + lyr3.show(); + if (opts.onBlock) + opts.onBlock.bind(lyr3)(); + } + + // bind key and mouse events + bind(1, el, opts); + + if (full) { + pageBlock = lyr3[0]; + pageBlockEls = $(opts.focusableElements,pageBlock); + if (opts.focusInput) + setTimeout(focus, 20); + } + else + center(lyr3[0], opts.centerX, opts.centerY); + + if (opts.timeout) { + // auto-unblock + var to = setTimeout(function() { + if (full) + $.unblockUI(opts); + else + $(el).unblock(opts); + }, opts.timeout); + $(el).data('blockUI.timeout', to); + } + } + + // remove the block + function remove(el, opts) { + var count; + var full = (el == window); + var $el = $(el); + var data = $el.data('blockUI.history'); + var to = $el.data('blockUI.timeout'); + if (to) { + clearTimeout(to); + $el.removeData('blockUI.timeout'); + } + opts = $.extend({}, $.blockUI.defaults, opts || {}); + bind(0, el, opts); // unbind events + + if (opts.onUnblock === null) { + opts.onUnblock = $el.data('blockUI.onUnblock'); + $el.removeData('blockUI.onUnblock'); + } + + var els; + if (full) // crazy selector to handle odd field errors in ie6/7 + els = $('body').children().filter('.blockUI').add('body > .blockUI'); + else + els = $el.find('>.blockUI'); + + // fix cursor issue + if ( opts.cursorReset ) { + if ( els.length > 1 ) + els[1].style.cursor = opts.cursorReset; + if ( els.length > 2 ) + els[2].style.cursor = opts.cursorReset; + } + + if (full) + pageBlock = pageBlockEls = null; + + if (opts.fadeOut) { + count = els.length; + els.stop().fadeOut(opts.fadeOut, function() { + if ( --count === 0) + reset(els,data,opts,el); + }); + } + else + reset(els, data, opts, el); + } + + // move blocking element back into the DOM where it started + function reset(els,data,opts,el) { + var $el = $(el); + if ( $el.data('blockUI.isBlocked') ) + return; + + els.each(function(i,o) { + // remove via DOM calls so we don't lose event handlers + if (this.parentNode) + this.parentNode.removeChild(this); + }); + + if (data && data.el) { + data.el.style.display = data.display; + data.el.style.position = data.position; + data.el.style.cursor = 'default'; // #59 + if (data.parent) + data.parent.appendChild(data.el); + $el.removeData('blockUI.history'); + } + + if ($el.data('blockUI.static')) { + $el.css('position', 'static'); // #22 + } + + if (typeof opts.onUnblock == 'function') + opts.onUnblock(el,opts); + + // fix issue in Safari 6 where block artifacts remain until reflow + var body = $(document.body), w = body.width(), cssW = body[0].style.width; + body.width(w-1).width(w); + body[0].style.width = cssW; + } + + // bind/unbind the handler + function bind(b, el, opts) { + var full = el == window, $el = $(el); + + // don't bother unbinding if there is nothing to unbind + if (!b && (full && !pageBlock || !full && !$el.data('blockUI.isBlocked'))) + return; + + $el.data('blockUI.isBlocked', b); + + // don't bind events when overlay is not in use or if bindEvents is false + if (!full || !opts.bindEvents || (b && !opts.showOverlay)) + return; + + // bind anchors and inputs for mouse and key events + var events = 'mousedown mouseup keydown keypress keyup touchstart touchend touchmove'; + if (b) + $(document).bind(events, opts, handler); + else + $(document).unbind(events, handler); + + // former impl... + // var $e = $('a,:input'); + // b ? $e.bind(events, opts, handler) : $e.unbind(events, handler); + } + + // event handler to suppress keyboard/mouse events when blocking + function handler(e) { + // allow tab navigation (conditionally) + if (e.type === 'keydown' && e.keyCode && e.keyCode == 9) { + if (pageBlock && e.data.constrainTabKey) { + var els = pageBlockEls; + var fwd = !e.shiftKey && e.target === els[els.length-1]; + var back = e.shiftKey && e.target === els[0]; + if (fwd || back) { + setTimeout(function(){focus(back);},10); + return false; + } + } + } + var opts = e.data; + var target = $(e.target); + if (target.hasClass('blockOverlay') && opts.onOverlayClick) + opts.onOverlayClick(e); + + // allow events within the message content + if (target.parents('div.' + opts.blockMsgClass).length > 0) + return true; + + // allow events for content that is not being blocked + return target.parents().children().filter('div.blockUI').length === 0; + } + + function focus(back) { + if (!pageBlockEls) + return; + var e = pageBlockEls[back===true ? pageBlockEls.length-1 : 0]; + if (e) + e.focus(); + } + + function center(el, x, y) { + var p = el.parentNode, s = el.style; + var l = ((p.offsetWidth - el.offsetWidth)/2) - sz(p,'borderLeftWidth'); + var t = ((p.offsetHeight - el.offsetHeight)/2) - sz(p,'borderTopWidth'); + if (x) s.left = l > 0 ? (l+'px') : '0'; + if (y) s.top = t > 0 ? (t+'px') : '0'; + } + + function sz(el, p) { + return parseInt($.css(el,p),10)||0; + } + + } + + + /*global define:true */ + if (typeof define === 'function' && define.amd && define.amd.jQuery) { + define(['jquery'], setup); + } else { + setup(jQuery); + } + +})(); \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ajax/libs/bootstrap-fileinput/fileinput.css b/alive-admin/src/main/resources/static/ajax/libs/bootstrap-fileinput/fileinput.css new file mode 100644 index 0000000..0f27a5f --- /dev/null +++ b/alive-admin/src/main/resources/static/ajax/libs/bootstrap-fileinput/fileinput.css @@ -0,0 +1,671 @@ +/*! + * bootstrap-fileinput v5.2.4 + * http://plugins.krajee.com/file-input + * + * Krajee default styling for bootstrap-fileinput. + * + * Author: Kartik Visweswaran + * Copyright: 2014 - 2021, Kartik Visweswaran, Krajee.com + * + * Licensed under the BSD-3-Clause + * https://github.com/kartik-v/bootstrap-fileinput/blob/master/LICENSE.md + */ + +.file-loading input[type=file], +input[type=file].file-loading { + width: 0; + height: 0; +} + +.file-no-browse { + position: absolute; + left: 50%; + bottom: 20%; + width: 1px; + height: 1px; + font-size: 0; + opacity: 0; + border: none; + background: none; + outline: none; + box-shadow: none; +} + +.kv-hidden, +.file-caption-icon, +.file-zoom-dialog .modal-header:before, +.file-zoom-dialog .modal-header:after, +.file-input-new .file-preview, +.file-input-new .close, +.file-input-new .glyphicon-file, +.file-input-new .fileinput-remove-button, +.file-input-new .fileinput-upload-button, +.file-input-new .no-browse .input-group-btn, +.file-input-ajax-new .fileinput-remove-button, +.file-input-ajax-new .fileinput-upload-button, +.file-input-ajax-new .no-browse .input-group-btn, +.hide-content .kv-file-content, +.is-locked .fileinput-upload-button, +.is-locked .fileinput-remove-button { + display: none; +} + +.btn-file input[type=file], +.file-caption-icon, +.file-preview .fileinput-remove, +.krajee-default .file-thumb-progress, +.file-zoom-dialog .btn-navigate, +.file-zoom-dialog .floating-buttons { + position: absolute; +} + +.file-caption-icon .kv-caption-icon { + line-height: inherit; +} + +.file-input, +.file-loading:before, +.btn-file, +.file-caption, +.file-preview, +.krajee-default.file-preview-frame, +.krajee-default .file-thumbnail-footer, +.file-zoom-dialog .modal-dialog { + position: relative; +} + +.file-error-message pre, +.file-error-message ul, +.krajee-default .file-actions, +.krajee-default .file-other-error { + text-align: left; +} + +.file-error-message pre, +.file-error-message ul { + margin: 0; +} + +.krajee-default .file-drag-handle, +.krajee-default .file-upload-indicator { + float: left; + margin-top: 10px; + width: 16px; + height: 16px; +} + +.file-thumb-progress .progress, +.file-thumb-progress .progress-bar { + font-family: Verdana, Helvetica, sans-serif; + font-size: 0.7rem; +} + +.krajee-default .file-thumb-progress .progress, +.kv-upload-progress .progress { + background-color: #ccc; +} + +.krajee-default .file-caption-info, +.krajee-default .file-size-info { + display: block; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + width: 160px; + height: 15px; + margin: auto; +} + +.file-zoom-content > .file-object.type-video, +.file-zoom-content > .file-object.type-flash, +.file-zoom-content > .file-object.type-image { + max-width: 100%; + max-height: 100%; + width: auto; +} + +.file-zoom-content > .file-object.type-video, +.file-zoom-content > .file-object.type-flash { + height: 100%; +} + +.file-zoom-content > .file-object.type-pdf, +.file-zoom-content > .file-object.type-html, +.file-zoom-content > .file-object.type-text, +.file-zoom-content > .file-object.type-default { + width: 100%; +} + +.file-loading:before { + content: " Loading..."; + display: inline-block; + padding-left: 20px; + line-height: 16px; + font-size: 13px; + font-variant: small-caps; + color: #999; + background: transparent url(loading.gif) top left no-repeat; +} + +.file-object { + margin: 0 0 -5px 0; + padding: 0; +} + +.btn-file { + overflow: hidden; +} + +.btn-file input[type=file] { + top: 0; + left: 0; + min-width: 100%; + min-height: 100%; + text-align: right; + opacity: 0; + background: none repeat scroll 0 0 transparent; + cursor: inherit; + display: block; +} + +.btn-file ::-ms-browse { + font-size: 10000px; + width: 100%; + height: 100%; +} + +.file-caption.icon-visible .file-caption-icon { + display: inline-block; +} + +.file-caption.icon-visible .file-caption-name { + padding-left: 25px; +} + +.file-caption.icon-visible > .input-group-lg .file-caption-name { + padding-left: 30px; +} + +.file-caption.icon-visible > .input-group-sm .file-caption-name { + padding-left: 22px; +} + +.file-caption-name:not(.file-caption-disabled) { + background-color: transparent; +} + +.file-caption-name.file-processing { + font-style: italic; + border-color: #bbb; + opacity: 0.5; +} + +.file-caption-icon { + padding: 7px 5px; + left: 4px; +} + +.input-group-lg .file-caption-icon { + font-size: 1.25rem; +} + +.input-group-sm .file-caption-icon { + font-size: 0.875rem; + padding: 0.25rem; +} + +.file-error-message { + color: #a94442; + background-color: #f2dede; + margin: 5px; + border: 1px solid #ebccd1; + border-radius: 4px; + padding: 15px; +} + +.file-error-message pre { + margin: 5px 0; +} + +.file-caption-disabled { + background-color: #eee; + cursor: not-allowed; + opacity: 1; +} + +.file-preview { + border-radius: 5px; + border: 1px solid #ddd; + padding: 8px; + width: 100%; + margin-bottom: 5px; +} + +.file-preview .btn-xs { + padding: 1px 5px; + font-size: 12px; + line-height: 1.5; + border-radius: 3px; +} + +.file-preview .fileinput-remove { + top: 1px; + right: 1px; + line-height: 10px; +} + +.file-preview .clickable { + cursor: pointer; +} + +.file-preview-image { + font: 40px Impact, Charcoal, sans-serif; + color: #008000; + width: auto; + height: auto; + max-width: 100%; + max-height: 100%; +} + +.krajee-default.file-preview-frame { + margin: 8px; + border: 1px solid rgba(0, 0, 0, 0.2); + box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2); + padding: 6px; + float: left; + text-align: center; +} + +.krajee-default.file-preview-frame .kv-file-content { + width: 213px; + height: 160px; +} + +.krajee-default .file-preview-other-frame { + display: flex; + align-items: center; + justify-content: center; +} + +.krajee-default.file-preview-frame .kv-file-content.kv-pdf-rendered { + width: 400px; +} + +.krajee-default.file-preview-frame[data-template="audio"] .kv-file-content { + width: 240px; + height: 55px; +} + +.krajee-default.file-preview-frame .file-thumbnail-footer { + height: 70px; +} + +.krajee-default.file-preview-frame:not(.file-preview-error):hover { + border: 1px solid rgba(0, 0, 0, 0.3); + box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.4); +} + +.krajee-default .file-preview-text { + color: #428bca; + border: 1px solid #ddd; + outline: none; + resize: none; +} + +.krajee-default .file-preview-html { + border: 1px solid #ddd; +} + +.krajee-default .file-other-icon { + font-size: 6em; + line-height: 1; +} + +.krajee-default .file-footer-buttons { + float: right; +} + +.krajee-default .file-footer-caption { + display: block; + text-align: center; + padding-top: 4px; + font-size: 11px; + color: #777; + margin-bottom: 30px; +} + +.file-upload-stats { + font-size: 10px; + text-align: center; + width: 100%; +} + +.kv-upload-progress .file-upload-stats { + font-size: 12px; + margin: -10px 0 5px; +} + +.krajee-default .file-preview-error { + opacity: 0.65; + box-shadow: none; +} + +.krajee-default .file-thumb-progress { + top: 37px; + left: 0; + right: 0; +} + +.krajee-default.kvsortable-ghost { + background: #e1edf7; + border: 2px solid #a1abff; +} + +.krajee-default .file-preview-other:hover { + opacity: 0.8; +} + +.krajee-default .file-preview-frame:not(.file-preview-error) .file-footer-caption:hover { + color: #000; +} + +.kv-upload-progress .progress { + height: 20px; + margin: 10px 0; + overflow: hidden; +} + +.kv-upload-progress .progress-bar { + height: 20px; + font-family: Verdana, Helvetica, sans-serif; +} + + +/*noinspection CssOverwrittenProperties*/ + +.file-zoom-dialog .file-other-icon { + font-size: 22em; + font-size: 50vmin; +} + +.file-zoom-dialog .modal-dialog { + width: auto; +} + +.file-zoom-dialog .modal-header { + display: flex; + align-items: center; + justify-content: space-between; +} + +.file-zoom-dialog .btn-navigate { + margin: 0 0.1rem; + padding: 0; + font-size: 1.2rem; + width: 2.4rem; + height: 2.4rem; + top: 50%; + border-radius: 50%; + text-align:center; +} + +.btn-navigate * { + width: auto; +} + +.file-zoom-dialog .floating-buttons { + top: 5px; + right: 10px; +} + +.file-zoom-dialog .btn-kv-prev { + left: 0; +} + +.file-zoom-dialog .btn-kv-next { + right: 0; +} + +.file-zoom-dialog .kv-zoom-caption { + max-width: 50%; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; +} + +.file-zoom-dialog .kv-zoom-header { + padding: 0.5rem; +} + +.file-zoom-dialog .kv-zoom-body { + padding: 0.25rem 0.5rem 0.25rem 0; +} + +.file-zoom-dialog .kv-zoom-description { + position: absolute; + opacity: 0.8; + font-size: 0.8rem; + background-color: #1a1a1a; + padding: 1rem; + text-align: center; + border-radius: 0.5rem; + color: #fff; + left: 15%; + right: 15%; + bottom: 15%; +} + +.file-zoom-dialog .kv-desc-hide { + float: right; + color: #fff; + padding: 0 0.1rem; + background: none; + border: none; +} + +.file-zoom-dialog .kv-desc-hide:hover { + opacity: 0.7; +} + +.file-zoom-dialog .kv-desc-hide:focus { + opacity: 0.9; +} + +.file-input-new .no-browse .form-control { + border-top-right-radius: 4px; + border-bottom-right-radius: 4px; +} + +.file-input-ajax-new .no-browse .form-control { + border-top-right-radius: 4px; + border-bottom-right-radius: 4px; +} + +.file-caption { + width: 100%; + position: relative; +} + +.file-thumb-loading { + background: transparent url(loading.gif) no-repeat scroll center center content-box !important; +} + +.file-drop-zone { + border: 1px dashed #aaa; + min-height: 260px; + border-radius: 4px; + text-align: center; + vertical-align: middle; + margin: 12px 15px 12px 12px; + padding: 5px; +} + +.file-drop-zone.clickable:hover { + border: 2px dashed #999; +} + +.file-drop-zone.clickable:focus { + border: 2px solid #5acde2; +} + +.file-drop-zone .file-preview-thumbnails { + cursor: default; +} + +.file-drop-zone-title { + color: #aaa; + font-size: 1.6em; + text-align: center; + padding: 85px 10px; + cursor: default; +} + +.file-highlighted { + border: 2px dashed #999 !important; + background-color: #eee; +} + +.file-uploading { + background: url(loading-sm.gif) no-repeat center bottom 10px; + opacity: 0.65; +} + +.file-zoom-fullscreen .modal-dialog { + min-width: 100%; + margin: 0; +} + +.file-zoom-fullscreen .modal-content { + border-radius: 0; + box-shadow: none; + min-height: 100vh; +} + +.file-zoom-fullscreen .kv-zoom-body { + overflow-y: auto; +} + +.floating-buttons { + z-index: 3000; +} + +.floating-buttons .btn-kv { + margin-left: 3px; + z-index: 3000; +} + +.kv-zoom-actions .btn-kv { + margin-left: 3px; +} + +.file-zoom-content { + text-align: center; + white-space: nowrap; + min-height: 300px; +} + +.file-zoom-content:hover { + background: transparent; +} + +.file-zoom-content > * { + display: inline-block; + vertical-align: middle; +} + +.file-zoom-content .kv-spacer { + height: 100%; +} + +.file-zoom-content .file-preview-image { + max-height: 100%; +} + +.file-zoom-content .file-preview-video { + max-height: 100%; +} + +.file-zoom-content > .file-object.type-image { + height: auto; + min-height: inherit; +} + +.file-zoom-content > .file-object.type-audio { + width: auto; + height: 30px; +} + +@media (min-width: 576px) { + .file-zoom-dialog .modal-dialog { + max-width: 500px; + } +} + +@media (min-width: 992px) { + .file-zoom-dialog .modal-lg { + max-width: 800px; + } +} + +@media (max-width: 767px) { + .file-preview-thumbnails { + display: flex; + justify-content: center; + align-items: center; + flex-direction: column; + } + + .file-zoom-dialog .modal-header { + flex-direction: column; + } +} + +@media (max-width: 350px) { + .krajee-default.file-preview-frame:not([data-template="audio"]) .kv-file-content { + width: 160px; + } +} + +@media (max-width: 420px) { + .krajee-default.file-preview-frame .kv-file-content.kv-pdf-rendered { + width: 100%; + } +} + +.file-loading[dir=rtl]:before { + background: transparent url(loading.gif) top right no-repeat; + padding-left: 0; + padding-right: 20px; +} + +.clickable .file-drop-zone-title { + cursor: pointer; +} + +.file-sortable .file-drag-handle:hover { + opacity: 0.7; +} + +.file-sortable .file-drag-handle { + cursor: grab; + opacity: 1; +} + +.file-grabbing, +.file-grabbing * { + cursor: not-allowed !important; +} + +.file-grabbing .file-preview-thumbnails * { + cursor: grabbing !important; +} + +.file-preview-frame.sortable-chosen { + background-color: #d9edf7; + border-color: #17a2b8; + box-shadow: none !important; +} + +.file-preview .kv-zoom-cache { + display: none; +} \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ajax/libs/bootstrap-fileinput/fileinput.js b/alive-admin/src/main/resources/static/ajax/libs/bootstrap-fileinput/fileinput.js new file mode 100644 index 0000000..352f1e3 --- /dev/null +++ b/alive-admin/src/main/resources/static/ajax/libs/bootstrap-fileinput/fileinput.js @@ -0,0 +1,6405 @@ +/*! + * bootstrap-fileinput v5.2.4 + * http://plugins.krajee.com/file-input + * + * Author: Kartik Visweswaran + * Copyright: 2014 - 2021, Kartik Visweswaran, Krajee.com + * + * Licensed under the BSD-3-Clause + * https://github.com/kartik-v/bootstrap-fileinput/blob/master/LICENSE.md + */ +(function (factory) { + 'use strict'; + if (typeof define === 'function' && define.amd) { + define(['jquery'], factory); + } else { + if (typeof module === 'object' && module.exports) { + //noinspection NpmUsedModulesInstalled + module.exports = factory(require('jquery')); + } else { + factory(window.jQuery); + } + } +}(function ($) { + 'use strict'; + $.fn.fileinputLocales = {}; + $.fn.fileinputThemes = {}; + if (!$.fn.fileinputBsVersion) { + $.fn.fileinputBsVersion = (window.Alert && window.Alert.VERSION) || + (window.bootstrap && window.bootstrap.Alert && bootstrap.Alert.VERSION) || '3.x.x'; + } + String.prototype.setTokens = function (replacePairs) { + var str = this.toString(), key, re; + for (key in replacePairs) { + if (replacePairs.hasOwnProperty(key)) { + re = new RegExp('\{' + key + '\}', 'g'); + str = str.replace(re, replacePairs[key]); + } + } + return str; + }; + + if (!Array.prototype.flatMap) { // polyfill flatMap + Array.prototype.flatMap = function (lambda) { + return [].concat(this.map(lambda)); + }; + } + + if (!document.currentScript) { + document.currentScript = function() { + var scripts = document.getElementsByTagName('script'); + return scripts[scripts.length - 1]; + }(); + } + + var $h, FileInput, getLoadingUrl = function () { + var src = document.currentScript.src, srcPath = src.substring(0, src.lastIndexOf("/")); + return srcPath + '/loading.gif' + }; + + // fileinput helper object for all global variables and internal helper methods + $h = { + FRAMES: '.kv-preview-thumb', + SORT_CSS: 'file-sortable', + INIT_FLAG: 'init-', + ZOOM_VAR: getLoadingUrl() + '?kvTemp__2873389129__=', // used to prevent 404 errors in URL parsing + OBJECT_PARAMS: '\n' + + '\n' + + '\n' + + '\n' + + '\n' + + '\n', + DEFAULT_PREVIEW: '
\n' + + '{previewFileIcon}\n' + + '
', + MODAL_ID: 'kvFileinputModal', + MODAL_EVENTS: ['show', 'shown', 'hide', 'hidden', 'loaded'], + logMessages: { + ajaxError: '{status}: {error}. Error Details: {text}.', + badDroppedFiles: 'Error scanning dropped files!', + badExifParser: 'Error loading the piexif.js library. {details}', + badInputType: 'The input "type" must be set to "file" for initializing the "bootstrap-fileinput" plugin.', + exifWarning: 'To avoid this warning, either set "autoOrientImage" to "false" OR ensure you have loaded ' + + 'the "piexif.js" library correctly on your page before the "fileinput.js" script.', + invalidChunkSize: 'Invalid upload chunk size: "{chunkSize}". Resumable uploads are disabled.', + invalidThumb: 'Invalid thumb frame with id: "{id}".', + noResumableSupport: 'The browser does not support resumable or chunk uploads.', + noUploadUrl: 'The "uploadUrl" is not set. Ajax uploads and resumable uploads have been disabled.', + retryStatus: 'Retrying upload for chunk # {chunk} for {filename}... retry # {retry}.', + chunkQueueError: 'Could not push task to ajax pool for chunk index # {index}.', + resumableMaxRetriesReached: 'Maximum resumable ajax retries ({n}) reached.', + resumableRetryError: 'Could not retry the resumable request (try # {n})... aborting.', + resumableAborting: 'Aborting / cancelling the resumable request.', + resumableRequestError: 'Error processing resumable request. {msg}' + + }, + objUrl: window.URL || window.webkitURL, + isBs: function (ver) { + var chk = $.trim(($.fn.fileinputBsVersion || '') + ''); + ver = parseInt(ver, 10); + if (!chk) { + return ver === 4; + } + return ver === parseInt(chk.charAt(0), 10); + + }, + defaultButtonCss: function (fill) { + return 'btn-default btn-' + (fill ? '' : 'outline-') + 'secondary'; + }, + now: function () { + return new Date().getTime(); + }, + round: function (num) { + num = parseFloat(num); + return isNaN(num) ? 0 : Math.floor(Math.round(num)); + }, + getArray: function (obj) { + var i, arr = [], len = obj && obj.length || 0; + for (i = 0; i < len; i++) { + arr.push(obj[i]); + } + return arr; + }, + getFileRelativePath: function (file) { + /** @namespace file.relativePath */ + /** @namespace file.webkitRelativePath */ + return String(file.newPath || file.relativePath || file.webkitRelativePath || $h.getFileName(file) || null); + + }, + getFileId: function (file, generateFileId) { + var relativePath = $h.getFileRelativePath(file); + if (typeof generateFileId === 'function') { + return generateFileId(file); + } + if (!file) { + return null; + } + if (!relativePath) { + return null; + } + return (file.size + '_' + encodeURIComponent(relativePath).replace(/%/g, '_')); + }, + getFrameSelector: function (id, selector) { + selector = selector || ''; + return '[id="' + id + '"]' + selector; + }, + getZoomSelector: function (id, selector) { + return $h.getFrameSelector('zoom-' + id, selector); + }, + getFrameElement: function ($element, id, selector) { + return $element.find($h.getFrameSelector(id, selector)); + }, + getZoomElement: function ($element, id, selector) { + return $element.find($h.getZoomSelector(id, selector)); + }, + getElapsed: function (seconds) { + var delta = seconds, out = '', result = {}, structure = { + year: 31536000, + month: 2592000, + week: 604800, // uncomment row to ignore + day: 86400, // feel free to add your own row + hour: 3600, + minute: 60, + second: 1 + }; + $h.getObjectKeys(structure).forEach(function (key) { + result[key] = Math.floor(delta / structure[key]); + delta -= result[key] * structure[key]; + }); + $.each(result, function (key, value) { + if (value > 0) { + out += (out ? ' ' : '') + value + key.substring(0, 1); + } + }); + return out; + }, + debounce: function (func, delay) { + var inDebounce; + return function () { + var args = arguments, context = this; + clearTimeout(inDebounce); + inDebounce = setTimeout(function () { + func.apply(context, args); + }, delay); + }; + }, + stopEvent: function (e) { + e.stopPropagation(); + e.preventDefault(); + }, + getFileName: function (file) { + /** @namespace file.fileName */ + return file ? (file.fileName || file.name || '') : ''; // some confusion in different versions of Firefox + }, + createObjectURL: function (data) { + if ($h.objUrl && $h.objUrl.createObjectURL && data) { + return $h.objUrl.createObjectURL(data); + } + return ''; + }, + revokeObjectURL: function (data) { + if ($h.objUrl && $h.objUrl.revokeObjectURL && data) { + $h.objUrl.revokeObjectURL(data); + } + }, + compare: function (input, str, exact) { + return input !== undefined && (exact ? input === str : input.match(str)); + }, + isIE: function (ver) { + var div, status; + // check for IE versions < 11 + if (navigator.appName !== 'Microsoft Internet Explorer') { + return false; + } + if (ver === 10) { + return new RegExp('msie\\s' + ver, 'i').test(navigator.userAgent); + } + div = document.createElement('div'); + div.innerHTML = ''; + status = div.getElementsByTagName('i').length; + document.body.appendChild(div); + div.parentNode.removeChild(div); + return status; + }, + canOrientImage: function ($el) { + var $img = $(document.createElement('img')).css({width: '1px', height: '1px'}).insertAfter($el), + flag = $img.css('image-orientation'); + $img.remove(); + return !!flag; + }, + canAssignFilesToInput: function () { + var input = document.createElement('input'); + try { + input.type = 'file'; + input.files = null; + return true; + } catch (err) { + return false; + } + }, + getDragDropFolders: function (items) { + var i, item, len = items ? items.length : 0, folders = 0; + if (len > 0 && items[0].webkitGetAsEntry()) { + for (i = 0; i < len; i++) { + item = items[i].webkitGetAsEntry(); + if (item && item.isDirectory) { + folders++; + } + } + } + return folders; + }, + initModal: function ($modal) { + var $body = $('body'); + if ($body.length) { + $modal.appendTo($body); + } + }, + isFunction: function (v) { + return typeof v === 'function'; + }, + isEmpty: function (value, trim) { + if (value === undefined || value === null || value === '') { + return true; + } + if ($h.isString(value) && trim) { + return $.trim(value) === ''; + } + if ($h.isArray(value)) { + return value.length === 0; + } + if ($.isPlainObject(value) && $.isEmptyObject(value)) { + return true + } + return false; + }, + isArray: function (a) { + return Array.isArray(a) || Object.prototype.toString.call(a) === '[object Array]'; + }, + isString: function (a) { + return Object.prototype.toString.call(a) === '[object String]'; + }, + ifSet: function (needle, haystack, def) { + def = def || ''; + return (haystack && typeof haystack === 'object' && needle in haystack) ? haystack[needle] : def; + }, + cleanArray: function (arr) { + if (!(arr instanceof Array)) { + arr = []; + } + return arr.filter(function (e) { + return (e !== undefined && e !== null); + }); + }, + spliceArray: function (arr, index, reverseOrder) { + var i, j = 0, out = [], newArr; + if (!(arr instanceof Array)) { + return []; + } + newArr = $.extend(true, [], arr); + if (reverseOrder) { + newArr.reverse(); + } + for (i = 0; i < newArr.length; i++) { + if (i !== index) { + out[j] = newArr[i]; + j++; + } + } + if (reverseOrder) { + out.reverse(); + } + return out; + }, + getNum: function (num, def) { + def = def || 0; + if (typeof num === 'number') { + return num; + } + if (typeof num === 'string') { + num = parseFloat(num); + } + return isNaN(num) ? def : num; + }, + hasFileAPISupport: function () { + return !!(window.File && window.FileReader); + }, + hasDragDropSupport: function () { + var div = document.createElement('div'); + /** @namespace div.draggable */ + /** @namespace div.ondragstart */ + /** @namespace div.ondrop */ + return !$h.isIE(9) && + (div.draggable !== undefined || (div.ondragstart !== undefined && div.ondrop !== undefined)); + }, + hasFileUploadSupport: function () { + return $h.hasFileAPISupport() && window.FormData; + }, + hasBlobSupport: function () { + try { + return !!window.Blob && Boolean(new Blob()); + } catch (e) { + return false; + } + }, + hasArrayBufferViewSupport: function () { + try { + return new Blob([new Uint8Array(100)]).size === 100; + } catch (e) { + return false; + } + }, + hasResumableUploadSupport: function () { + /** @namespace Blob.prototype.webkitSlice */ + /** @namespace Blob.prototype.mozSlice */ + return $h.hasFileUploadSupport() && $h.hasBlobSupport() && $h.hasArrayBufferViewSupport() && + (!!Blob.prototype.webkitSlice || !!Blob.prototype.mozSlice || !!Blob.prototype.slice || false); + }, + dataURI2Blob: function (dataURI) { + var BlobBuilder = window.BlobBuilder || window.WebKitBlobBuilder || window.MozBlobBuilder || + window.MSBlobBuilder, canBlob = $h.hasBlobSupport(), byteStr, arrayBuffer, intArray, i, mimeStr, bb, + canProceed = (canBlob || BlobBuilder) && window.atob && window.ArrayBuffer && window.Uint8Array; + if (!canProceed) { + return null; + } + if (dataURI.split(',')[0].indexOf('base64') >= 0) { + byteStr = atob(dataURI.split(',')[1]); + } else { + byteStr = decodeURIComponent(dataURI.split(',')[1]); + } + arrayBuffer = new ArrayBuffer(byteStr.length); + intArray = new Uint8Array(arrayBuffer); + for (i = 0; i < byteStr.length; i += 1) { + intArray[i] = byteStr.charCodeAt(i); + } + mimeStr = dataURI.split(',')[0].split(':')[1].split(';')[0]; + if (canBlob) { + return new Blob([$h.hasArrayBufferViewSupport() ? intArray : arrayBuffer], {type: mimeStr}); + } + bb = new BlobBuilder(); + bb.append(arrayBuffer); + return bb.getBlob(mimeStr); + }, + arrayBuffer2String: function (buffer) { + if (window.TextDecoder) { + return new TextDecoder('utf-8').decode(buffer); + } + var array = Array.prototype.slice.apply(new Uint8Array(buffer)), out = '', i = 0, len, c, char2, char3; + len = array.length; + while (i < len) { + c = array[i++]; + switch (c >> 4) { // jshint ignore:line + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + // 0xxxxxxx + out += String.fromCharCode(c); + break; + case 12: + case 13: + // 110x xxxx 10xx xxxx + char2 = array[i++]; + out += String.fromCharCode(((c & 0x1F) << 6) | (char2 & 0x3F)); // jshint ignore:line + break; + case 14: + // 1110 xxxx 10xx xxxx 10xx xxxx + char2 = array[i++]; + char3 = array[i++]; + out += String.fromCharCode(((c & 0x0F) << 12) | // jshint ignore:line + ((char2 & 0x3F) << 6) | // jshint ignore:line + ((char3 & 0x3F) << 0)); // jshint ignore:line + break; + } + } + return out; + }, + isHtml: function (str) { + var a = document.createElement('div'); + a.innerHTML = str; + for (var c = a.childNodes, i = c.length; i--;) { + if (c[i].nodeType === 1) { + return true; + } + } + return false; + }, + isSvg: function (str) { + return str.match(/^\s*<\?xml/i) && (str.match(/' + str + '')); + }, + uniqId: function () { + return (new Date().getTime() + Math.floor(Math.random() * Math.pow(10, 15))).toString(36); + }, + cspBuffer: { + CSP_ATTRIB: 'data-csp-01928735', // a randomly named temporary attribute to store the CSP elem id + domElementsStyles: {}, + stash: function (htmlString) { + var self = this, outerDom = $.parseHTML('
' + htmlString + '
'), $el = $(outerDom); + $el.find('[style]').each(function (key, elem) { + var $elem = $(elem), styleDeclaration = $elem[0].style, id = $h.uniqId(), styles = {}; + if (styleDeclaration && styleDeclaration.length) { + $(styleDeclaration).each(function () { + styles[this] = styleDeclaration[this]; + }); + self.domElementsStyles[id] = styles; + $elem.removeAttr('style').attr(self.CSP_ATTRIB, id); + } + }); + $el.filter('*').removeAttr('style'); // make sure all style attr are removed + var values = Object.values ? Object.values(outerDom) : Object.keys(outerDom).map(function (itm) { + return outerDom[itm]; + }); + return values.flatMap(function (elem) { + return elem.innerHTML; + }).join(''); + }, + apply: function (domElement) { + var self = this, $el = $(domElement); + $el.find('[' + self.CSP_ATTRIB + ']').each(function (key, elem) { + var $elem = $(elem), id = $elem.attr(self.CSP_ATTRIB), styles = self.domElementsStyles[id]; + if (styles) { + $elem.css(styles); + } + $elem.removeAttr(self.CSP_ATTRIB); + }); + self.domElementsStyles = {}; + } + }, + setHtml: function ($elem, htmlString) { + var buf = $h.cspBuffer; + $elem.html(buf.stash(htmlString)); + buf.apply($elem); + return $elem; + }, + htmlEncode: function (str, undefVal) { + if (str === undefined) { + return undefVal || null; + } + return str.replace(/&/g, '&') + .replace(//g, '>') + .replace(/"/g, '"') + .replace(/'/g, '''); + }, + replaceTags: function (str, tags) { + var out = str; + if (!tags) { + return out; + } + $.each(tags, function (key, value) { + if (typeof value === 'function') { + value = value(); + } + out = out.split(key).join(value); + }); + return out; + }, + cleanMemory: function ($thumb) { + var data = $thumb.is('img') ? $thumb.attr('src') : $thumb.find('source').attr('src'); + $h.revokeObjectURL(data); + }, + findFileName: function (filePath) { + var sepIndex = filePath.lastIndexOf('/'); + if (sepIndex === -1) { + sepIndex = filePath.lastIndexOf('\\'); + } + return filePath.split(filePath.substring(sepIndex, sepIndex + 1)).pop(); + }, + checkFullScreen: function () { + return document.fullscreenElement || document.mozFullScreenElement || document.webkitFullscreenElement || + document.msFullscreenElement; + }, + toggleFullScreen: function (maximize) { + var doc = document, de = doc.documentElement, isFullScreen = $h.checkFullScreen(); + if (de && maximize && !isFullScreen) { + if (de.requestFullscreen) { + de.requestFullscreen(); + } else { + if (de.msRequestFullscreen) { + de.msRequestFullscreen(); + } else { + if (de.mozRequestFullScreen) { + de.mozRequestFullScreen(); + } else { + if (de.webkitRequestFullscreen) { + de.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT); + } + } + } + } + } else { + if (isFullScreen) { + if (doc.exitFullscreen) { + doc.exitFullscreen(); + } else { + if (doc.msExitFullscreen) { + doc.msExitFullscreen(); + } else { + if (doc.mozCancelFullScreen) { + doc.mozCancelFullScreen(); + } else { + if (doc.webkitExitFullscreen) { + doc.webkitExitFullscreen(); + } + } + } + } + } + } + }, + moveArray: function (arr, oldIndex, newIndex, reverseOrder) { + var newArr = $.extend(true, [], arr); + if (reverseOrder) { + newArr.reverse(); + } + if (newIndex >= newArr.length) { + var k = newIndex - newArr.length; + while ((k--) + 1) { + newArr.push(undefined); + } + } + newArr.splice(newIndex, 0, newArr.splice(oldIndex, 1)[0]); + if (reverseOrder) { + newArr.reverse(); + } + return newArr; + }, + closeButton: function (css) { + css = ($h.isBs(5) ? 'btn-close' : 'close') + (css ? ' ' + css : ''); + return ''; + }, + getRotation: function (value) { + switch (value) { + case 2: + return 'rotateY(180deg)'; + case 3: + return 'rotate(180deg)'; + case 4: + return 'rotate(180deg) rotateY(180deg)'; + case 5: + return 'rotate(270deg) rotateY(180deg)'; + case 6: + return 'rotate(90deg)'; + case 7: + return 'rotate(90deg) rotateY(180deg)'; + case 8: + return 'rotate(270deg)'; + default: + return ''; + } + }, + setTransform: function (el, val) { + if (!el) { + return; + } + el.style.transform = val; + el.style.webkitTransform = val; + el.style['-moz-transform'] = val; + el.style['-ms-transform'] = val; + el.style['-o-transform'] = val; + }, + getObjectKeys: function (obj) { + var keys = []; + if (obj) { + $.each(obj, function (key) { + keys.push(key); + }); + } + return keys; + }, + getObjectSize: function (obj) { + return $h.getObjectKeys(obj).length; + }, + /** + * Small dependency injection for the task manager + * https://gist.github.com/fearphage/4341799 + */ + whenAll: function (array) { + var s = [].slice, resolveValues = arguments.length === 1 && $h.isArray(array) ? array : s.call(arguments), + deferred = $.Deferred(), i, failed = 0, value, length = resolveValues.length, + remaining = length, rejectContexts, rejectValues, resolveContexts, updateFunc; + rejectContexts = rejectValues = resolveContexts = Array(length); + updateFunc = function (index, contexts, values) { + return function () { + if (values !== resolveValues) { + failed++; + } + deferred.notifyWith(contexts[index] = this, values[index] = s.call(arguments)); + if (!(--remaining)) { + deferred[(!failed ? 'resolve' : 'reject') + 'With'](contexts, values); + } + }; + }; + for (i = 0; i < length; i++) { + if ((value = resolveValues[i]) && $.isFunction(value.promise)) { + value.promise() + .done(updateFunc(i, resolveContexts, resolveValues)) + .fail(updateFunc(i, rejectContexts, rejectValues)); + } else { + deferred.notifyWith(this, value); + --remaining; + } + } + if (!remaining) { + deferred.resolveWith(resolveContexts, resolveValues); + } + return deferred.promise(); + } + }; + FileInput = function (element, options) { + var self = this; + self.$element = $(element); + self.$parent = self.$element.parent(); + if (!self._validate()) { + return; + } + self.isPreviewable = $h.hasFileAPISupport(); + self.isIE9 = $h.isIE(9); + self.isIE10 = $h.isIE(10); + if (self.isPreviewable || self.isIE9) { + self._init(options); + self._listen(); + } + self.$element.removeClass('file-loading'); + }; + + FileInput.prototype = { + constructor: FileInput, + _cleanup: function () { + var self = this; + self.reader = null; + self.clearFileStack(); + self.fileBatchCompleted = true; + self.isError = false; + self.isDuplicateError = false; + self.isPersistentError = false; + self.cancelling = false; + self.paused = false; + self.lastProgress = 0; + self._initAjax(); + }, + _isAborted: function () { + var self = this; + return self.cancelling || self.paused; + }, + _initAjax: function () { + var self = this, tm = self.taskManager = { + pool: {}, + addPool: function (id) { + return (tm.pool[id] = new tm.TasksPool(id)); + }, + getPool: function (id) { + return tm.pool[id]; + }, + addTask: function (id, logic) { // add standalone task directly from task manager + return new tm.Task(id, logic); + }, + TasksPool: function (id) { + var tp = this; + tp.id = id; + tp.cancelled = false; + tp.cancelledDeferrer = $.Deferred(); + tp.tasks = {}; + tp.addTask = function (id, logic) { + return (tp.tasks[id] = new tm.Task(id, logic)); + }; + tp.size = function () { + return $h.getObjectSize(tp.tasks); + }; + tp.run = function (maxThreads) { + var i = 0, failed = false, task, tasksList = $h.getObjectKeys(tp.tasks).map(function (key) { + return tp.tasks[key]; + }), tasksDone = [], deferred = $.Deferred(), enqueue, callback; + + if (tp.cancelled) { + tp.cancelledDeferrer.resolve(); + return deferred.reject(); + } + // if run all at once + if (!maxThreads) { + var tasksDeferredList = $h.getObjectKeys(tp.tasks).map(function (key) { + return tp.tasks[key].deferred; + }); + // when all are done + $h.whenAll(tasksDeferredList).done(function () { + var argv = $h.getArray(arguments); + if (!tp.cancelled) { + deferred.resolve.apply(null, argv); + tp.cancelledDeferrer.reject(); + } else { + deferred.reject.apply(null, argv); + tp.cancelledDeferrer.resolve(); + } + }).fail(function () { + var argv = $h.getArray(arguments); + deferred.reject.apply(null, argv); + if (!tp.cancelled) { + tp.cancelledDeferrer.reject(); + } else { + tp.cancelledDeferrer.resolve(); + } + }); + // run all tasks + $.each(tp.tasks, function (id) { + task = tp.tasks[id]; + task.run(); + }); + return deferred; + } + enqueue = function (task) { + $.when(task.deferred) + .fail(function () { + failed = true; + callback.apply(null, arguments); + }) + .always(callback); + }; + callback = function () { + var argv = $h.getArray(arguments); + // notify a task just ended + deferred.notify(argv); + tasksDone.push(argv); + if (tp.cancelled) { + deferred.reject.apply(null, tasksDone); + tp.cancelledDeferrer.resolve(); + return; + } + if (tasksDone.length === tp.size()) { + if (failed) { + deferred.reject.apply(null, tasksDone); + } else { + deferred.resolve.apply(null, tasksDone); + } + } + // if there are any tasks remaining + if (tasksList.length) { + task = tasksList.shift(); + enqueue(task); + task.run(); + } + }; + // run the first "maxThreads" tasks + while (tasksList.length && i++ < maxThreads) { + task = tasksList.shift(); + enqueue(task); + task.run(); + } + return deferred; + }; + tp.cancel = function () { + tp.cancelled = true; + return tp.cancelledDeferrer; + }; + }, + Task: function (id, logic) { + var tk = this; + tk.id = id; + tk.deferred = $.Deferred(); + tk.logic = logic; + tk.context = null; + tk.run = function () { + var argv = $h.getArray(arguments); + argv.unshift(tk.deferred); // add deferrer as first argument + logic.apply(tk.context, argv); // run task + return tk.deferred; // return deferrer + }; + tk.runWithContext = function (context) { + tk.context = context; + return tk.run(); + }; + } + }; + self.ajaxQueue = []; + self.ajaxRequests = []; + self.ajaxAborted = false; + }, + _init: function (options, refreshMode) { + var self = this, f, $el = self.$element, $cont, t, tmp; + self.options = options; + self.canOrientImage = $h.canOrientImage($el); + $.each(options, function (key, value) { + switch (key) { + case 'minFileCount': + case 'maxFileCount': + case 'maxTotalFileCount': + case 'minFileSize': + case 'maxFileSize': + case 'maxFilePreviewSize': + case 'resizeQuality': + case 'resizeIfSizeMoreThan': + case 'progressUploadThreshold': + case 'initialPreviewCount': + case 'zoomModalHeight': + case 'minImageHeight': + case 'maxImageHeight': + case 'minImageWidth': + case 'maxImageWidth': + case 'bytesToKB': + self[key] = $h.getNum(value); + break; + default: + self[key] = value; + break; + } + }); + if (!self.bytesToKB || self.bytesToKB <= 0) { + self.bytesToKB = 1024; + } + if (self.errorCloseButton === undefined) { + self.errorCloseButton = $h.closeButton('kv-error-close' + ($h.isBs(5) ? ' float-end' : '')); + } + if (self.maxTotalFileCount > 0 && self.maxTotalFileCount < self.maxFileCount) { + self.maxTotalFileCount = self.maxFileCount; + } + if (self.rtl) { // swap buttons for rtl + tmp = self.previewZoomButtonIcons.prev; + self.previewZoomButtonIcons.prev = self.previewZoomButtonIcons.next; + self.previewZoomButtonIcons.next = tmp; + } + // validate chunk threads to not exceed maxAjaxThreads + if (!isNaN(self.maxAjaxThreads) && self.maxAjaxThreads < self.resumableUploadOptions.maxThreads) { + self.resumableUploadOptions.maxThreads = self.maxAjaxThreads; + } + self._initFileManager(); + if (typeof self.autoOrientImage === 'function') { + self.autoOrientImage = self.autoOrientImage(); + } + if (typeof self.autoOrientImageInitial === 'function') { + self.autoOrientImageInitial = self.autoOrientImageInitial(); + } + if (!refreshMode) { + self._cleanup(); + } + self.duplicateErrors = []; + self.$form = $el.closest('form'); + self._initTemplateDefaults(); + self.uploadFileAttr = !$h.isEmpty($el.attr('name')) ? $el.attr('name') : 'file_data'; + t = self._getLayoutTemplate('progress'); + self.progressTemplate = t.replace('{class}', self.progressClass); + self.progressInfoTemplate = t.replace('{class}', self.progressInfoClass); + self.progressPauseTemplate = t.replace('{class}', self.progressPauseClass); + self.progressCompleteTemplate = t.replace('{class}', self.progressCompleteClass); + self.progressErrorTemplate = t.replace('{class}', self.progressErrorClass); + self.isDisabled = $el.attr('disabled') || $el.attr('readonly'); + if (self.isDisabled) { + $el.attr('disabled', true); + } + self.isClickable = self.browseOnZoneClick && self.showPreview && + (self.dropZoneEnabled || !$h.isEmpty(self.defaultPreviewContent)); + self.isAjaxUpload = $h.hasFileUploadSupport() && !$h.isEmpty(self.uploadUrl); + self.dropZoneEnabled = $h.hasDragDropSupport() && self.dropZoneEnabled; + if (!self.isAjaxUpload) { + self.dropZoneEnabled = self.dropZoneEnabled && $h.canAssignFilesToInput(); + } + self.slug = typeof options.slugCallback === 'function' ? options.slugCallback : self._slugDefault; + self.mainTemplate = self.showCaption ? self._getLayoutTemplate('main1') : self._getLayoutTemplate('main2'); + self.captionTemplate = self._getLayoutTemplate('caption'); + self.previewGenericTemplate = self._getPreviewTemplate('generic'); + if (!self.imageCanvas && self.resizeImage && (self.maxImageWidth || self.maxImageHeight)) { + self.imageCanvas = document.createElement('canvas'); + self.imageCanvasContext = self.imageCanvas.getContext('2d'); + } + if ($h.isEmpty($el.attr('id'))) { + $el.attr('id', $h.uniqId()); + } + self.namespace = '.fileinput_' + $el.attr('id').replace(/-/g, '_'); + if (self.$container === undefined) { + self.$container = self._createContainer(); + } else { + self._refreshContainer(); + } + $cont = self.$container; + self.$dropZone = $cont.find('.file-drop-zone'); + self.$progress = $cont.find('.kv-upload-progress'); + self.$btnUpload = $cont.find('.fileinput-upload'); + self.$captionContainer = $h.getElement(options, 'elCaptionContainer', $cont.find('.file-caption')); + self.$caption = $h.getElement(options, 'elCaptionText', $cont.find('.file-caption-name')); + if (!$h.isEmpty(self.msgPlaceholder)) { + f = $el.attr('multiple') ? self.filePlural : self.fileSingle; + self.$caption.attr('placeholder', self.msgPlaceholder.replace('{files}', f)); + } + self.$captionIcon = self.$captionContainer.find('.file-caption-icon'); + self.$previewContainer = $h.getElement(options, 'elPreviewContainer', $cont.find('.file-preview')); + self.$preview = $h.getElement(options, 'elPreviewImage', $cont.find('.file-preview-thumbnails')); + self.$previewStatus = $h.getElement(options, 'elPreviewStatus', $cont.find('.file-preview-status')); + self.$errorContainer = $h.getElement(options, 'elErrorContainer', + self.$previewContainer.find('.kv-fileinput-error')); + self._validateDisabled(); + if (!$h.isEmpty(self.msgErrorClass)) { + $h.addCss(self.$errorContainer, self.msgErrorClass); + } + if (!refreshMode) { + self._resetErrors(); + self.$errorContainer.hide(); + self.previewInitId = 'thumb-' + $el.attr('id'); + self._initPreviewCache(); + self._initPreview(true); + self._initPreviewActions(); + if (self.$parent.hasClass('file-loading')) { + self.$container.insertBefore(self.$parent); + self.$parent.remove(); + } + } else { + if (!self._errorsExist()) { + self.$errorContainer.hide(); + } + } + self._setFileDropZoneTitle(); + if ($el.attr('disabled')) { + self.disable(); + } + self._initZoom(); + if (self.hideThumbnailContent) { + $h.addCss(self.$preview, 'hide-content'); + } + }, + _initFileManager: function () { + var self = this; + self.uploadStartTime = $h.now(); + self.fileManager = { + stack: {}, + filesProcessed: [], + errors: [], + loadedImages: {}, + totalImages: 0, + totalFiles: null, + totalSize: null, + uploadedSize: 0, + stats: {}, + bpsLog: [], + bps: 0, + initStats: function (id) { + var data = {started: $h.now()}; + if (id) { + self.fileManager.stats[id] = data; + } else { + self.fileManager.stats = data; + } + }, + getUploadStats: function (id, loaded, total) { + var fm = self.fileManager, + started = id ? fm.stats[id] && fm.stats[id].started || $h.now() : self.uploadStartTime, + elapsed = ($h.now() - started) / 1000, bps = Math.ceil(elapsed ? loaded / elapsed : 0), + pendingBytes = total - loaded, out, delay = fm.bpsLog.length ? self.bitrateUpdateDelay : 0; + setTimeout(function () { + var i, j = 0, n = 0, len, beg; + fm.bpsLog.push(bps); + fm.bpsLog.sort(function (a, b) { + return a - b; + }); + len = fm.bpsLog.length; + beg = len > 10 ? len - 10 : Math.ceil(len / 2); + for (i = len; i > beg; i--) { + n = parseFloat(fm.bpsLog[i]); + j++; + } + fm.bps = (j > 0 ? n / j : 0) * 64; + }, delay); + out = { + fileId: id, + started: started, + elapsed: elapsed, + loaded: loaded, + total: total, + bps: fm.bps, + bitrate: self._getSize(fm.bps, self.bitRateUnits), + pendingBytes: pendingBytes + }; + if (id) { + fm.stats[id] = out; + } else { + fm.stats = out; + } + return out; + }, + exists: function (id) { + return $.inArray(id, self.fileManager.getIdList()) !== -1; + }, + count: function () { + return self.fileManager.getIdList().length; + }, + total: function () { + var fm = self.fileManager; + if (!fm.totalFiles) { + fm.totalFiles = fm.count(); + } + return fm.totalFiles; + }, + getTotalSize: function () { + var fm = self.fileManager; + if (fm.totalSize) { + return fm.totalSize; + } + fm.totalSize = 0; + $.each(self.getFileStack(), function (id, f) { + var size = parseFloat(f.size); + fm.totalSize += isNaN(size) ? 0 : size; + }); + return fm.totalSize; + }, + add: function (file, id) { + if (!id) { + id = self.fileManager.getId(file); + } + if (!id) { + return; + } + self.fileManager.stack[id] = { + file: file, + name: $h.getFileName(file), + relativePath: $h.getFileRelativePath(file), + size: file.size, + nameFmt: self._getFileName(file, ''), + sizeFmt: self._getSize(file.size) + }; + }, + remove: function ($thumb) { + var id = self._getThumbFileId($thumb); + self.fileManager.removeFile(id); + }, + removeFile: function (id) { + var fm = self.fileManager; + if (!id) { + return; + } + delete fm.stack[id]; + delete fm.loadedImages[id]; + }, + move: function (idFrom, idTo) { + var result = {}, stack = self.fileManager.stack; + if (!idFrom && !idTo || idFrom === idTo) { + return; + } + $.each(stack, function (k, v) { + if (k !== idFrom) { + result[k] = v; + } + if (k === idTo) { + result[idFrom] = stack[idFrom]; + } + }); + self.fileManager.stack = result; + }, + list: function () { + var files = []; + $.each(self.getFileStack(), function (k, v) { + if (v && v.file) { + files.push(v.file); + } + }); + return files; + }, + isPending: function (id) { + return $.inArray(id, self.fileManager.filesProcessed) === -1 && self.fileManager.exists(id); + }, + isProcessed: function () { + var filesProcessed = true, fm = self.fileManager; + $.each(self.getFileStack(), function (id) { + if (fm.isPending(id)) { + filesProcessed = false; + } + }); + return filesProcessed; + }, + clear: function () { + var fm = self.fileManager; + self.isDuplicateError = false; + self.isPersistentError = false; + fm.totalFiles = null; + fm.totalSize = null; + fm.uploadedSize = 0; + fm.stack = {}; + fm.errors = []; + fm.filesProcessed = []; + fm.stats = {}; + fm.bpsLog = []; + fm.bps = 0; + fm.clearImages(); + }, + clearImages: function () { + self.fileManager.loadedImages = {}; + self.fileManager.totalImages = 0; + }, + addImage: function (id, config) { + self.fileManager.loadedImages[id] = config; + }, + removeImage: function (id) { + delete self.fileManager.loadedImages[id]; + }, + getImageIdList: function () { + return $h.getObjectKeys(self.fileManager.loadedImages); + }, + getImageCount: function () { + return self.fileManager.getImageIdList().length; + }, + getId: function (file) { + return self._getFileId(file); + }, + getIndex: function (id) { + return self.fileManager.getIdList().indexOf(id); + }, + getThumb: function (id) { + var $thumb = null; + self._getThumbs().each(function () { + var $t = $(this); + if (self._getThumbFileId($t) === id) { + $thumb = $t; + } + }); + return $thumb; + }, + getThumbIndex: function ($thumb) { + var id = self._getThumbFileId($thumb); + return self.fileManager.getIndex(id); + }, + getIdList: function () { + return $h.getObjectKeys(self.fileManager.stack); + }, + getFile: function (id) { + return self.fileManager.stack[id] || null; + }, + getFileName: function (id, fmt) { + var file = self.fileManager.getFile(id); + if (!file) { + return ''; + } + return fmt ? (file.nameFmt || '') : file.name || ''; + }, + getFirstFile: function () { + var ids = self.fileManager.getIdList(), id = ids && ids.length ? ids[0] : null; + return self.fileManager.getFile(id); + }, + setFile: function (id, file) { + if (self.fileManager.getFile(id)) { + self.fileManager.stack[id].file = file; + } else { + self.fileManager.add(file, id); + } + }, + setProcessed: function (id) { + self.fileManager.filesProcessed.push(id); + }, + getProgress: function () { + var total = self.fileManager.total(), filesProcessed = self.fileManager.filesProcessed.length; + if (!total) { + return 0; + } + return Math.ceil(filesProcessed / total * 100); + + }, + setProgress: function (id, pct) { + var f = self.fileManager.getFile(id); + if (!isNaN(pct) && f) { + f.progress = pct; + } + } + }; + }, + _setUploadData: function (fd, config) { + var self = this; + $.each(config, function (key, value) { + var param = self.uploadParamNames[key] || key; + if ($h.isArray(value)) { + fd.append(param, value[0], value[1]); + } else { + fd.append(param, value); + } + }); + }, + _initResumableUpload: function () { + var self = this, opts = self.resumableUploadOptions, logs = $h.logMessages, rm, fm = self.fileManager; + if (!self.enableResumableUpload) { + return; + } + if (opts.fallback !== false && typeof opts.fallback !== 'function') { + opts.fallback = function (s) { + s._log(logs.noResumableSupport); + s.enableResumableUpload = false; + }; + } + if (!$h.hasResumableUploadSupport() && opts.fallback !== false) { + opts.fallback(self); + return; + } + if (!self.uploadUrl && self.enableResumableUpload) { + self._log(logs.noUploadUrl); + self.enableResumableUpload = false; + return; + + } + opts.chunkSize = parseFloat(opts.chunkSize); + if (opts.chunkSize <= 0 || isNaN(opts.chunkSize)) { + self._log(logs.invalidChunkSize, {chunkSize: opts.chunkSize}); + self.enableResumableUpload = false; + return; + } + rm = self.resumableManager = { + init: function (id, f, index) { + rm.logs = []; + rm.stack = []; + rm.error = ''; + rm.id = id; + rm.file = f.file; + rm.fileName = f.name; + rm.fileIndex = index; + rm.completed = false; + rm.lastProgress = 0; + if (self.showPreview) { + rm.$thumb = fm.getThumb(id) || null; + rm.$progress = rm.$btnDelete = null; + if (rm.$thumb && rm.$thumb.length) { + rm.$progress = rm.$thumb.find('.file-thumb-progress'); + rm.$btnDelete = rm.$thumb.find('.kv-file-remove'); + } + } + rm.chunkSize = opts.chunkSize * self.bytesToKB; + rm.chunkCount = rm.getTotalChunks(); + }, + setAjaxError: function (jqXHR, textStatus, errorThrown, isTest) { + if (jqXHR.responseJSON && jqXHR.responseJSON.error) { + errorThrown = jqXHR.responseJSON.error.toString(); + } + if (!isTest) { + rm.error = errorThrown; + } + if (opts.showErrorLog) { + self._log(logs.ajaxError, { + status: jqXHR.status, + error: errorThrown, + text: jqXHR.responseText || '' + }); + } + }, + reset: function () { + rm.stack = []; + rm.chunksProcessed = {}; + }, + setProcessed: function (status) { + var id = rm.id, msg, $thumb = rm.$thumb, $prog = rm.$progress, hasThumb = $thumb && $thumb.length, + params = {id: hasThumb ? $thumb.attr('id') : '', index: fm.getIndex(id), fileId: id}, tokens, + skipErrorsAndProceed = self.resumableUploadOptions.skipErrorsAndProceed; + rm.completed = true; + rm.lastProgress = 0; + if (hasThumb) { + $thumb.removeClass('file-uploading'); + } + if (status === 'success') { + fm.uploadedSize += rm.file.size; + if (self.showPreview) { + self._setProgress(101, $prog); + self._setThumbStatus($thumb, 'Success'); + self._initUploadSuccess(rm.chunksProcessed[id].data, $thumb); + } + fm.removeFile(id); + delete rm.chunksProcessed[id]; + self._raise('fileuploaded', [params.id, params.index, params.fileId]); + if (fm.isProcessed()) { + self._setProgress(101); + } + } else { + if (status !== 'cancel') { + if (self.showPreview) { + self._setThumbStatus($thumb, 'Error'); + self._setPreviewError($thumb, true); + self._setProgress(101, $prog, self.msgProgressError); + self._setProgress(101, self.$progress, self.msgProgressError); + self.cancelling = !skipErrorsAndProceed; + } + if (!self.$errorContainer.find('li[data-file-id="' + params.fileId + '"]').length) { + tokens = {file: rm.fileName, max: opts.maxRetries, error: rm.error}; + msg = self.msgResumableUploadRetriesExceeded.setTokens(tokens); + $.extend(params, tokens); + self._showFileError(msg, params, 'filemaxretries'); + if (skipErrorsAndProceed) { + fm.removeFile(id); + delete rm.chunksProcessed[id]; + if (fm.isProcessed()) { + self._setProgress(101); + } + } + } + } + } + if (fm.isProcessed()) { + rm.reset(); + } + }, + check: function () { + var status = true; + $.each(rm.logs, function (index, value) { + if (!value) { + status = false; + return false; + } + }); + }, + processedResumables: function () { + var logs = rm.logs, i, count = 0; + if (!logs || !logs.length) { + return 0; + } + for (i = 0; i < logs.length; i++) { + if (logs[i] === true) { + count++; + } + } + return count; + }, + getUploadedSize: function () { + var size = rm.processedResumables() * rm.chunkSize; + return size > rm.file.size ? rm.file.size : size; + }, + getTotalChunks: function () { + var chunkSize = parseFloat(rm.chunkSize); + if (!isNaN(chunkSize) && chunkSize > 0) { + return Math.ceil(rm.file.size / chunkSize); + } + return 0; + }, + getProgress: function () { + var chunksProcessed = rm.processedResumables(), total = rm.chunkCount; + if (total === 0) { + return 0; + } + return Math.ceil(chunksProcessed / total * 100); + }, + checkAborted: function (intervalId) { + if (self._isAborted()) { + clearInterval(intervalId); + self.unlock(); + } + }, + upload: function () { + var ids = fm.getIdList(), flag = 'new', intervalId; + intervalId = setInterval(function () { + var id; + rm.checkAborted(intervalId); + if (flag === 'new') { + self.lock(); + flag = 'processing'; + id = ids.shift(); + fm.initStats(id); + if (fm.stack[id]) { + rm.init(id, fm.stack[id], fm.getIndex(id)); + rm.processUpload(); + } + } + if (!fm.isPending(id) && rm.completed) { + flag = 'new'; + } + if (fm.isProcessed()) { + var $initThumbs = self.$preview.find('.file-preview-initial'); + if ($initThumbs.length) { + $h.addCss($initThumbs, $h.SORT_CSS); + self._initSortable(); + } + clearInterval(intervalId); + self._clearFileInput(); + self.unlock(); + setTimeout(function () { + var data = self.previewCache.data; + if (data) { + self.initialPreview = data.content; + self.initialPreviewConfig = data.config; + self.initialPreviewThumbTags = data.tags; + } + self._raise('filebatchuploadcomplete', [ + self.initialPreview, + self.initialPreviewConfig, + self.initialPreviewThumbTags, + self._getExtraData() + ]); + }, self.processDelay); + } + }, self.processDelay); + }, + uploadResumable: function () { + var i, pool, tm = self.taskManager, total = rm.chunkCount; + pool = tm.addPool(rm.id); + for (i = 0; i < total; i++) { + rm.logs[i] = !!(rm.chunksProcessed[rm.id] && rm.chunksProcessed[rm.id][i]); + if (!rm.logs[i]) { + rm.pushAjax(i, 0); + } + } + pool.run(opts.maxThreads) + .done(function () { + rm.setProcessed('success'); + }) + .fail(function () { + rm.setProcessed(pool.cancelled ? 'cancel' : 'error'); + }); + }, + processUpload: function () { + var fd, f, id = rm.id, fnBefore, fnSuccess, fnError, fnComplete, outData; + if (!opts.testUrl) { + rm.uploadResumable(); + return; + } + fd = new FormData(); + f = fm.stack[id]; + self._setUploadData(fd, { + fileId: id, + fileName: f.fileName, + fileSize: f.size, + fileRelativePath: f.relativePath, + chunkSize: rm.chunkSize, + chunkCount: rm.chunkCount + }); + fnBefore = function (jqXHR) { + outData = self._getOutData(fd, jqXHR); + self._raise('filetestbeforesend', [id, fm, rm, outData]); + }; + fnSuccess = function (data, textStatus, jqXHR) { + outData = self._getOutData(fd, jqXHR, data); + var pNames = self.uploadParamNames, chunksUploaded = pNames.chunksUploaded || 'chunksUploaded', + params = [id, fm, rm, outData]; + if (!data[chunksUploaded] || !$h.isArray(data[chunksUploaded])) { + self._raise('filetesterror', params); + } else { + if (!rm.chunksProcessed[id]) { + rm.chunksProcessed[id] = {}; + } + $.each(data[chunksUploaded], function (key, index) { + rm.logs[index] = true; + rm.chunksProcessed[id][index] = true; + }); + rm.chunksProcessed[id].data = data; + self._raise('filetestsuccess', params); + } + rm.uploadResumable(); + }; + fnError = function (jqXHR, textStatus, errorThrown) { + outData = self._getOutData(fd, jqXHR); + self._raise('filetestajaxerror', [id, fm, rm, outData]); + rm.setAjaxError(jqXHR, textStatus, errorThrown, true); + rm.uploadResumable(); + }; + fnComplete = function () { + self._raise('filetestcomplete', [id, fm, rm, self._getOutData(fd)]); + }; + self._ajaxSubmit(fnBefore, fnSuccess, fnComplete, fnError, fd, id, rm.fileIndex, opts.testUrl); + }, + pushAjax: function (index, retry) { + var tm = self.taskManager, pool = tm.getPool(rm.id); + pool.addTask(pool.size() + 1, function (deferrer) { + // use fifo chunk stack + var arr = rm.stack.shift(), index; + index = arr[0]; + if (!rm.chunksProcessed[rm.id] || !rm.chunksProcessed[rm.id][index]) { + rm.sendAjax(index, arr[1], deferrer); + } else { + self._log(logs.chunkQueueError, {index: index}); + } + }); + rm.stack.push([index, retry]); + }, + sendAjax: function (index, retry, deferrer) { + var f, chunkSize = rm.chunkSize, id = rm.id, file = rm.file, $thumb = rm.$thumb, + msgs = $h.logMessages, $btnDelete = rm.$btnDelete, logError = function (msg, tokens) { + if (tokens) { + msg = msg.setTokens(tokens); + } + msg = msgs.resumableRequestError.setTokens({msg: msg}); + self._log(msg); + deferrer.reject(msg); + }; + if (rm.chunksProcessed[id] && rm.chunksProcessed[id][index]) { + return; + } + if (retry > opts.maxRetries) { + logError(msgs.resumableMaxRetriesReached, {n: opts.maxRetries}); + rm.setProcessed('error'); + return; + } + var fd, outData, fnBefore, fnSuccess, fnError, fnComplete, slice = file.slice ? 'slice' : + (file.mozSlice ? 'mozSlice' : (file.webkitSlice ? 'webkitSlice' : 'slice')), + blob = file[slice](chunkSize * index, chunkSize * (index + 1)); + fd = new FormData(); + f = fm.stack[id]; + self._setUploadData(fd, { + chunkCount: rm.chunkCount, + chunkIndex: index, + chunkSize: chunkSize, + chunkSizeStart: chunkSize * index, + fileBlob: [blob, rm.fileName], + fileId: id, + fileName: rm.fileName, + fileRelativePath: f.relativePath, + fileSize: file.size, + retryCount: retry + }); + if (rm.$progress && rm.$progress.length) { + rm.$progress.show(); + } + fnBefore = function (jqXHR) { + outData = self._getOutData(fd, jqXHR); + if (self.showPreview) { + if (!$thumb.hasClass('file-preview-success')) { + self._setThumbStatus($thumb, 'Loading'); + $h.addCss($thumb, 'file-uploading'); + } + $btnDelete.attr('disabled', true); + } + self._raise('filechunkbeforesend', [id, index, retry, fm, rm, outData]); + }; + fnSuccess = function (data, textStatus, jqXHR) { + if (self._isAborted()) { + logError(msgs.resumableAborting); + return; + } + outData = self._getOutData(fd, jqXHR, data); + var paramNames = self.uploadParamNames, chunkIndex = paramNames.chunkIndex || 'chunkIndex', + params = [id, index, retry, fm, rm, outData]; + if (data.error) { + if (opts.showErrorLog) { + self._log(logs.retryStatus, { + retry: retry + 1, + filename: rm.fileName, + chunk: index + }); + } + self._raise('filechunkerror', params); + rm.pushAjax(index, retry + 1); + rm.error = data.error; + logError(data.error); + } else { + rm.logs[data[chunkIndex]] = true; + if (!rm.chunksProcessed[id]) { + rm.chunksProcessed[id] = {}; + } + rm.chunksProcessed[id][data[chunkIndex]] = true; + rm.chunksProcessed[id].data = data; + deferrer.resolve.call(null, data); + self._raise('filechunksuccess', params); + rm.check(); + } + }; + fnError = function (jqXHR, textStatus, errorThrown) { + if (self._isAborted()) { + logError(msgs.resumableAborting); + return; + } + outData = self._getOutData(fd, jqXHR); + rm.setAjaxError(jqXHR, textStatus, errorThrown); + self._raise('filechunkajaxerror', [id, index, retry, fm, rm, outData]); + rm.pushAjax(index, retry + 1); // push another task + logError(msgs.resumableRetryError, {n: retry - 1}); // resolve the current task + }; + fnComplete = function () { + if (!self._isAborted()) { + self._raise('filechunkcomplete', [id, index, retry, fm, rm, self._getOutData(fd)]); + } + }; + self._ajaxSubmit(fnBefore, fnSuccess, fnComplete, fnError, fd, id, rm.fileIndex); + } + }; + rm.reset(); + }, + _initTemplateDefaults: function () { + var self = this, tMain1, tMain2, tPreview, tFileIcon, tClose, tCaption, tBtnDefault, tBtnLink, tBtnBrowse, + tModalMain, tModal, tProgress, tSize, tFooter, tActions, tActionDelete, tActionUpload, tActionDownload, + tActionZoom, tActionDrag, tIndicator, tTagBef, tTagBef1, tTagBef2, tTagAft, tGeneric, tHtml, tImage, + tText, tOffice, tGdocs, tVideo, tAudio, tFlash, tObject, tPdf, tOther, tStyle, tZoomCache, vDefaultDim, + tStats, tModalLabel, tDescClose, renderObject = function (type, mime) { + return '\n' + $h.DEFAULT_PREVIEW + '\n\n'; + }, defBtnCss1 = 'btn btn-sm btn-kv ' + $h.defaultButtonCss(); + tMain1 = '{preview}\n' + + '
\n' + + '
\n' + + '
\n' + + ' {caption}\n\n' + + ($h.isBs(5) ? '' : '
\n') + + ' {remove}\n' + + ' {cancel}\n' + + ' {pause}\n' + + ' {upload}\n' + + ' {browse}\n' + + ($h.isBs(5) ? '' : '
\n') + + '
' + '
'; + tMain2 = '{preview}\n
\n
\n' + + '{remove}\n{cancel}\n{upload}\n{browse}\n'; + tPreview = '
\n' + + ' {close}' + + '
\n' + + '
\n' + + '
\n' + + '
\n' + + '
\n' + + '
\n' + + '
'; + tClose = $h.closeButton('fileinput-remove'); + tFileIcon = ''; + // noinspection HtmlUnknownAttribute + tCaption = '\n'; + //noinspection HtmlUnknownAttribute + tBtnDefault = ''; + //noinspection HtmlUnknownTarget,HtmlUnknownAttribute + tBtnLink = '{icon} {label}'; + //noinspection HtmlUnknownAttribute + tBtnBrowse = '
{icon} {label}
'; + tModalLabel = $h.MODAL_ID + 'Label'; + tModalMain = ''; + tModal = '\n'; + tDescClose = ''; + tProgress = '
\n' + + '
\n' + + ' {status}\n' + + '
\n' + + '
{stats}'; + tStats = '
' + + '{pendingTime} ' + + '{uploadSpeed}' + + '
'; + tSize = ' ({sizeText})'; + tFooter = ''; + tActions = '
\n' + + ' \n' + + '
\n' + + '{drag}\n' + + '
'; + //noinspection HtmlUnknownAttribute + tActionDelete = '\n'; + tActionUpload = ''; + tActionDownload = '{downloadIcon}'; + tActionZoom = ''; + tActionDrag = '{dragIcon}'; + tIndicator = '
{indicator}
'; + tTagBef = '
\n'; + tTagBef2 = tTagBef + ' title="{caption}">
\n'; + tTagAft = '
{footer}\n{zoomCache}
\n'; + tGeneric = '{content}\n'; + tStyle = ' {style}'; + tHtml = renderObject('html', 'text/html'); + tText = renderObject('text', 'text/plain;charset=UTF-8'); + tPdf = renderObject('pdf', 'application/pdf'); + tImage = '{alt}\n'; + tOffice = ''; + tGdocs = ''; + tVideo = '\n'; + tAudio = '\n'; + tFlash = '\n'; + tObject = '\n' + '\n' + + $h.OBJECT_PARAMS + ' ' + $h.DEFAULT_PREVIEW + '\n\n'; + tOther = '
\n' + $h.DEFAULT_PREVIEW + '\n
\n'; + tZoomCache = '
{zoomContent}
'; + vDefaultDim = {width: '100%', height: '100%', 'min-height': '480px'}; + if (self._isPdfRendered()) { + tPdf = self.pdfRendererTemplate.replace('{renderer}', self._encodeURI(self.pdfRendererUrl)); + } + self.defaults = { + layoutTemplates: { + main1: tMain1, + main2: tMain2, + preview: tPreview, + close: tClose, + fileIcon: tFileIcon, + caption: tCaption, + modalMain: tModalMain, + modal: tModal, + descriptionClose: tDescClose, + progress: tProgress, + stats: tStats, + size: tSize, + footer: tFooter, + indicator: tIndicator, + actions: tActions, + actionDelete: tActionDelete, + actionUpload: tActionUpload, + actionDownload: tActionDownload, + actionZoom: tActionZoom, + actionDrag: tActionDrag, + btnDefault: tBtnDefault, + btnLink: tBtnLink, + btnBrowse: tBtnBrowse, + zoomCache: tZoomCache + }, + previewMarkupTags: { + tagBefore1: tTagBef1, + tagBefore2: tTagBef2, + tagAfter: tTagAft + }, + previewContentTemplates: { + generic: tGeneric, + html: tHtml, + image: tImage, + text: tText, + office: tOffice, + gdocs: tGdocs, + video: tVideo, + audio: tAudio, + flash: tFlash, + object: tObject, + pdf: tPdf, + other: tOther + }, + allowedPreviewTypes: ['image', 'html', 'text', 'video', 'audio', 'flash', 'pdf', 'object'], + previewTemplates: {}, + previewSettings: { + image: {width: 'auto', height: 'auto', 'max-width': '100%', 'max-height': '100%'}, + html: {width: '213px', height: '160px'}, + text: {width: '213px', height: '160px'}, + office: {width: '213px', height: '160px'}, + gdocs: {width: '213px', height: '160px'}, + video: {width: '213px', height: '160px'}, + audio: {width: '100%', height: '30px'}, + flash: {width: '213px', height: '160px'}, + object: {width: '213px', height: '160px'}, + pdf: {width: '100%', height: '160px', 'position': 'relative'}, + other: {width: '213px', height: '160px'} + }, + previewSettingsSmall: { + image: {width: 'auto', height: 'auto', 'max-width': '100%', 'max-height': '100%'}, + html: {width: '100%', height: '160px'}, + text: {width: '100%', height: '160px'}, + office: {width: '100%', height: '160px'}, + gdocs: {width: '100%', height: '160px'}, + video: {width: '100%', height: 'auto'}, + audio: {width: '100%', height: '30px'}, + flash: {width: '100%', height: 'auto'}, + object: {width: '100%', height: 'auto'}, + pdf: {width: '100%', height: '160px'}, + other: {width: '100%', height: '160px'} + }, + previewZoomSettings: { + image: {width: 'auto', height: 'auto', 'max-width': '100%', 'max-height': '100%'}, + html: vDefaultDim, + text: vDefaultDim, + office: {width: '100%', height: '100%', 'max-width': '100%', 'min-height': '480px'}, + gdocs: {width: '100%', height: '100%', 'max-width': '100%', 'min-height': '480px'}, + video: {width: 'auto', height: '100%', 'max-width': '100%'}, + audio: {width: '100%', height: '30px'}, + flash: {width: 'auto', height: '480px'}, + object: {width: 'auto', height: '100%', 'max-width': '100%', 'min-height': '480px'}, + pdf: vDefaultDim, + other: {width: 'auto', height: '100%', 'min-height': '480px'} + }, + mimeTypeAliases: { + 'video/quicktime': 'video/mp4' + }, + fileTypeSettings: { + image: function (vType, vName) { + return ($h.compare(vType, 'image.*') && !$h.compare(vType, /(tiff?|wmf)$/i) || + $h.compare(vName, /\.(gif|png|jpe?g)$/i)); + }, + html: function (vType, vName) { + return $h.compare(vType, 'text/html') || $h.compare(vName, /\.(htm|html)$/i); + }, + office: function (vType, vName) { + return $h.compare(vType, /(word|excel|powerpoint|office)$/i) || + $h.compare(vName, /\.(docx?|xlsx?|pptx?|pps|potx?)$/i); + }, + gdocs: function (vType, vName) { + return $h.compare(vType, /(word|excel|powerpoint|office|iwork-pages|tiff?)$/i) || + $h.compare(vName, + /\.(docx?|xlsx?|pptx?|pps|potx?|rtf|ods|odt|pages|ai|dxf|ttf|tiff?|wmf|e?ps)$/i); + }, + text: function (vType, vName) { + return $h.compare(vType, 'text.*') || $h.compare(vName, /\.(xml|javascript)$/i) || + $h.compare(vName, /\.(txt|md|nfo|ini|json|php|js|css)$/i); + }, + video: function (vType, vName) { + return $h.compare(vType, 'video.*') && ($h.compare(vType, /(ogg|mp4|mp?g|mov|webm|3gp)$/i) || + $h.compare(vName, /\.(og?|mp4|webm|mp?g|mov|3gp)$/i)); + }, + audio: function (vType, vName) { + return $h.compare(vType, 'audio.*') && ($h.compare(vName, /(ogg|mp3|mp?g|wav)$/i) || + $h.compare(vName, /\.(og?|mp3|mp?g|wav)$/i)); + }, + flash: function (vType, vName) { + return $h.compare(vType, 'application/x-shockwave-flash', true) || $h.compare(vName, + /\.(swf)$/i); + }, + pdf: function (vType, vName) { + return $h.compare(vType, 'application/pdf', true) || $h.compare(vName, /\.(pdf)$/i); + }, + object: function () { + return true; + }, + other: function () { + return true; + } + }, + fileActionSettings: { + showRemove: true, + showUpload: true, + showDownload: true, + showZoom: true, + showDrag: true, + removeIcon: '', + removeClass: defBtnCss1, + removeErrorClass: 'btn btn-sm btn-kv btn-danger', + removeTitle: 'Remove file', + uploadIcon: '', + uploadClass: defBtnCss1, + uploadTitle: 'Upload file', + uploadRetryIcon: '', + uploadRetryTitle: 'Retry upload', + downloadIcon: '', + downloadClass: defBtnCss1, + downloadTitle: 'Download file', + zoomIcon: '', + zoomClass: defBtnCss1, + zoomTitle: 'View Details', + dragIcon: '', + dragClass: 'text-primary', + dragTitle: 'Move / Rearrange', + dragSettings: {}, + indicatorNew: '', + indicatorSuccess: '', + indicatorError: '', + indicatorLoading: '', + indicatorPaused: '', + indicatorNewTitle: 'Not uploaded yet', + indicatorSuccessTitle: 'Uploaded', + indicatorErrorTitle: 'Upload Error', + indicatorLoadingTitle: 'Uploading …', + indicatorPausedTitle: 'Upload Paused' + } + }; + $.each(self.defaults, function (key, setting) { + if (key === 'allowedPreviewTypes') { + if (self.allowedPreviewTypes === undefined) { + self.allowedPreviewTypes = setting; + } + return; + } + self[key] = $.extend(true, {}, setting, self[key]); + }); + self._initPreviewTemplates(); + }, + _initPreviewTemplates: function () { + var self = this, tags = self.previewMarkupTags, tagBef, tagAft = tags.tagAfter; + $.each(self.previewContentTemplates, function (key, value) { + if ($h.isEmpty(self.previewTemplates[key])) { + tagBef = tags.tagBefore2; + if (key === 'generic' || key === 'image') { + tagBef = tags.tagBefore1; + } + if (self._isPdfRendered() && key === 'pdf') { + tagBef = tagBef.replace('kv-file-content', 'kv-file-content kv-pdf-rendered'); + } + self.previewTemplates[key] = tagBef + value + tagAft; + } + }); + }, + _initPreviewCache: function () { + var self = this; + self.previewCache = { + data: {}, + init: function () { + var content = self.initialPreview; + if (content.length > 0 && !$h.isArray(content)) { + content = content.split(self.initialPreviewDelimiter); + } + self.previewCache.data = { + content: content, + config: self.initialPreviewConfig, + tags: self.initialPreviewThumbTags + }; + }, + count: function (skipNull) { + if (!self.previewCache.data || !self.previewCache.data.content) { + return 0; + } + if (skipNull) { + var chk = self.previewCache.data.content.filter(function (n) { + return n !== null; + }); + return chk.length; + } + return self.previewCache.data.content.length; + }, + get: function (i, isDisabled) { + var ind = $h.INIT_FLAG + i, data = self.previewCache.data, config = data.config[i], + content = data.content[i], out, $tmp, cat, ftr, + fname, ftype, frameClass, asData = $h.ifSet('previewAsData', config, self.initialPreviewAsData), + a = config ? {title: config.title || null, alt: config.alt || null} : {title: null, alt: null}, + parseTemplate = function (cat, dat, fname, ftype, ftr, ind, fclass, t) { + var fc = ' file-preview-initial ' + $h.SORT_CSS + (fclass ? ' ' + fclass : ''), + id = self.previewInitId + '-' + ind, + fileId = config && config.fileId || id; + /** @namespace config.zoomData */ + return self._generatePreviewTemplate(cat, dat, fname, ftype, id, fileId, false, null, fc, + ftr, ind, t, a, config && config.zoomData || dat); + }; + if (!content || !content.length) { + return ''; + } + isDisabled = isDisabled === undefined ? true : isDisabled; + cat = $h.ifSet('type', config, self.initialPreviewFileType || 'generic'); + fname = $h.ifSet('filename', config, $h.ifSet('caption', config)); + ftype = $h.ifSet('filetype', config, cat); + ftr = self.previewCache.footer(i, isDisabled, (config && config.size || null)); + frameClass = $h.ifSet('frameClass', config); + if (asData) { + out = parseTemplate(cat, content, fname, ftype, ftr, ind, frameClass); + } else { + out = parseTemplate('generic', content, fname, ftype, ftr, ind, frameClass, cat) + .setTokens({'content': data.content[i]}); + } + if (data.tags.length && data.tags[i]) { + out = $h.replaceTags(out, data.tags[i]); + } + /** @namespace config.frameAttr */ + if (!$h.isEmpty(config) && !$h.isEmpty(config.frameAttr)) { + $tmp = $h.createElement(out); + $tmp.find('.file-preview-initial').attr(config.frameAttr); + out = $tmp.html(); + $tmp.remove(); + } + return out; + }, + clean: function (data) { + data.content = $h.cleanArray(data.content); + data.config = $h.cleanArray(data.config); + data.tags = $h.cleanArray(data.tags); + self.previewCache.data = data; + }, + add: function (content, config, tags, append) { + var data = self.previewCache.data, index; + if (!content || !content.length) { + return 0; + } + index = content.length - 1; + if (!$h.isArray(content)) { + content = content.split(self.initialPreviewDelimiter); + } + if (append && data.content) { + index = data.content.push(content[0]) - 1; + data.config[index] = config; + data.tags[index] = tags; + } else { + data.content = content; + data.config = config; + data.tags = tags; + } + self.previewCache.clean(data); + return index; + }, + set: function (content, config, tags, append) { + var data = self.previewCache.data, i, chk; + if (!content || !content.length) { + return; + } + if (!$h.isArray(content)) { + content = content.split(self.initialPreviewDelimiter); + } + chk = content.filter(function (n) { + return n !== null; + }); + if (!chk.length) { + return; + } + if (data.content === undefined) { + data.content = []; + } + if (data.config === undefined) { + data.config = []; + } + if (data.tags === undefined) { + data.tags = []; + } + if (append) { + for (i = 0; i < content.length; i++) { + if (content[i]) { + data.content.push(content[i]); + } + } + for (i = 0; i < config.length; i++) { + if (config[i]) { + data.config.push(config[i]); + } + } + for (i = 0; i < tags.length; i++) { + if (tags[i]) { + data.tags.push(tags[i]); + } + } + } else { + data.content = content; + data.config = config; + data.tags = tags; + } + self.previewCache.clean(data); + }, + unset: function (index) { + var chk = self.previewCache.count(), rev = self.reversePreviewOrder; + if (!chk) { + return; + } + if (chk === 1) { + self.previewCache.data.content = []; + self.previewCache.data.config = []; + self.previewCache.data.tags = []; + self.initialPreview = []; + self.initialPreviewConfig = []; + self.initialPreviewThumbTags = []; + return; + } + self.previewCache.data.content = $h.spliceArray(self.previewCache.data.content, index, rev); + self.previewCache.data.config = $h.spliceArray(self.previewCache.data.config, index, rev); + self.previewCache.data.tags = $h.spliceArray(self.previewCache.data.tags, index, rev); + var data = $.extend(true, {}, self.previewCache.data); + self.previewCache.clean(data); + }, + out: function () { + var html = '', caption, len = self.previewCache.count(), i, content; + if (len === 0) { + return {content: '', caption: ''}; + } + for (i = 0; i < len; i++) { + content = self.previewCache.get(i); + html = self.reversePreviewOrder ? (content + html) : (html + content); + } + caption = self._getMsgSelected(len); + return {content: html, caption: caption}; + }, + footer: function (i, isDisabled, size) { + var data = self.previewCache.data || {}; + if ($h.isEmpty(data.content)) { + return ''; + } + if ($h.isEmpty(data.config) || $h.isEmpty(data.config[i])) { + data.config[i] = {}; + } + isDisabled = isDisabled === undefined ? true : isDisabled; + var config = data.config[i], caption = $h.ifSet('caption', config), a, + width = $h.ifSet('width', config, 'auto'), url = $h.ifSet('url', config, false), + key = $h.ifSet('key', config, null), fileId = $h.ifSet('fileId', config, null), + fs = self.fileActionSettings, initPreviewShowDel = self.initialPreviewShowDelete || false, + downloadInitialUrl = !self.initialPreviewDownloadUrl ? '' : + self.initialPreviewDownloadUrl + '?key=' + key + (fileId ? '&fileId=' + fileId : ''), + dUrl = config.downloadUrl || downloadInitialUrl, + dFil = config.filename || config.caption || '', + initPreviewShowDwl = !!(dUrl), + sDel = $h.ifSet('showRemove', config, initPreviewShowDel), + sDwl = $h.ifSet('showDownload', config, $h.ifSet('showDownload', fs, initPreviewShowDwl)), + sZm = $h.ifSet('showZoom', config, $h.ifSet('showZoom', fs, true)), + sDrg = $h.ifSet('showDrag', config, $h.ifSet('showDrag', fs, true)), + dis = (url === false) && isDisabled; + sDwl = sDwl && config.downloadUrl !== false && !!dUrl; + a = self._renderFileActions(config, false, sDwl, sDel, sZm, sDrg, dis, url, key, true, dUrl, dFil); + return self._getLayoutTemplate('footer').setTokens({ + 'progress': self._renderThumbProgress(), + 'actions': a, + 'caption': caption, + 'size': self._getSize(size), + 'width': width, + 'indicator': '' + }); + } + }; + self.previewCache.init(); + }, + _isPdfRendered: function () { + var self = this, useLib = self.usePdfRenderer, + flag = typeof useLib === 'function' ? useLib() : !!useLib; + return flag && self.pdfRendererUrl; + }, + _handler: function ($el, event, callback) { + var self = this, ns = self.namespace, ev = event.split(' ').join(ns + ' ') + ns; + if (!$el || !$el.length) { + return; + } + $el.off(ev).on(ev, callback); + }, + _encodeURI: function (vUrl) { + var self = this; + return self.encodeUrl ? encodeURI(vUrl) : vUrl; + }, + _log: function (msg, tokens) { + var self = this, id = self.$element.attr('id'); + if (!self.showConsoleLogs) { + return; + } + if (id) { + msg = '"' + id + '": ' + msg; + } + msg = 'bootstrap-fileinput: ' + msg; + if (typeof tokens === 'object') { + msg = msg.setTokens(tokens); + } + if (window.console && typeof window.console.log !== 'undefined') { + window.console.log(msg); + } else { + window.alert(11); + //window.alert(msg); + } + }, + _validate: function () { + var self = this, status = self.$element.attr('type') === 'file'; + if (!status) { + self._log($h.logMessages.badInputType); + } + return status; + }, + _errorsExist: function () { + var self = this, $err, $errList = self.$errorContainer.find('li'); + if ($errList.length) { + return true; + } + $err = $h.createElement(self.$errorContainer.html()); + $err.find('.kv-error-close').remove(); + $err.find('ul').remove(); + return !!$.trim($err.text()).length; + }, + _errorHandler: function (evt, caption) { + var self = this, err = evt.target.error, showError = function (msg) { + self._showError(msg.replace('{name}', caption)); + }; + /** @namespace err.NOT_FOUND_ERR */ + /** @namespace err.SECURITY_ERR */ + /** @namespace err.NOT_READABLE_ERR */ + if (err.code === err.NOT_FOUND_ERR) { + showError(self.msgFileNotFound); + } else { + if (err.code === err.SECURITY_ERR) { + showError(self.msgFileSecured); + } else { + if (err.code === err.NOT_READABLE_ERR) { + showError(self.msgFileNotReadable); + } else { + if (err.code === err.ABORT_ERR) { + showError(self.msgFilePreviewAborted); + } else { + showError(self.msgFilePreviewError); + } + } + } + } + }, + _addError: function (msg) { + var self = this, $error = self.$errorContainer; + if (msg && $error.length) { + $h.setHtml($error, self.errorCloseButton + msg); + self._handler($error.find('.kv-error-close'), 'click', function () { + setTimeout(function () { + if (self.showPreview && !self.getFrames().length) { + self.clear(); + } + $error.fadeOut('slow'); + }, self.processDelay); + }); + } + }, + _setValidationError: function (css) { + var self = this; + css = (css ? css + ' ' : '') + 'has-error'; + self.$container.removeClass(css).addClass('has-error'); + $h.addCss(self.$caption, 'is-invalid'); + }, + _resetErrors: function (fade) { + var self = this, $error = self.$errorContainer, history = self.resumableUploadOptions.retainErrorHistory; + if (self.isPersistentError || (self.enableResumableUpload && history)) { + return; + } + self.isError = false; + self.$container.removeClass('has-error'); + self.$caption.removeClass('is-invalid is-valid file-processing'); + $error.html(''); + if (fade) { + $error.fadeOut('slow'); + } else { + $error.hide(); + } + }, + _showFolderError: function (folders) { + var self = this, $error = self.$errorContainer, msg; + if (!folders) { + return; + } + if (!self.isAjaxUpload) { + self._clearFileInput(); + } + msg = self.msgFoldersNotAllowed.replace('{n}', folders); + self._addError(msg); + self._setValidationError(); + $error.fadeIn(self.fadeDelay); + self._raise('filefoldererror', [folders, msg]); + }, + _showFileError: function (msg, params, event) { + var self = this, $error = self.$errorContainer, ev = event || 'fileuploaderror', + fId = params && params.fileId || '', e = params && params.id ? + '
  • ' + msg + '
  • ' : '
  • ' + msg + '
  • '; + + if ($error.find('ul').length === 0) { + self._addError('
      ' + e + '
    '); + } else { + $error.find('ul').append(e); + } + $error.fadeIn(self.fadeDelay); + self._raise(ev, [params, msg]); + self._setValidationError('file-input-new'); + return true; + }, + _showError: function (msg, params, event) { + var self = this, $error = self.$errorContainer, ev = event || 'fileerror'; + params = params || {}; + params.reader = self.reader; + self._addError(msg); + $error.fadeIn(self.fadeDelay); + self._raise(ev, [params, msg]); + if (!self.isAjaxUpload) { + self._clearFileInput(); + } + self._setValidationError('file-input-new'); + self.$btnUpload.attr('disabled', true); + return true; + }, + _noFilesError: function (params) { + var self = this, label = self.minFileCount > 1 ? self.filePlural : self.fileSingle, + msg = self.msgFilesTooLess.replace('{n}', self.minFileCount).replace('{files}', label), + $error = self.$errorContainer; + msg = '
  • ' + msg + '
  • '; + if ($error.find('ul').length === 0) { + self._addError('
      ' + msg + '
    '); + } else { + $error.find('ul').append(msg); + } + self.isError = true; + self._updateFileDetails(0); + $error.fadeIn(self.fadeDelay); + self._raise('fileerror', [params, msg]); + self._clearFileInput(); + self._setValidationError(); + }, + _parseError: function (operation, jqXHR, errorThrown, fileName) { + /** @namespace jqXHR.responseJSON */ + var self = this, errMsg = $.trim(errorThrown + ''), textPre, errText, text; + errText = jqXHR.responseJSON && jqXHR.responseJSON.error ? jqXHR.responseJSON.error.toString() : ''; + text = errText ? errText : jqXHR.responseText; + if (self.cancelling && self.msgUploadAborted) { + errMsg = self.msgUploadAborted; + } + if (self.showAjaxErrorDetails && text) { + if (errText) { + errMsg = $.trim(errText + ''); + } else { + text = $.trim(text.replace(/\n\s*\n/g, '\n')); + textPre = text.length ? '
    ' + text + '
    ' : ''; + errMsg += errMsg ? textPre : text; + } + } + if (!errMsg) { + errMsg = self.msgAjaxError.replace('{operation}', operation); + } + self.cancelling = false; + return fileName ? '' + fileName + ': ' + errMsg : errMsg; + }, + _parseFileType: function (type, name) { + var self = this, isValid, vType, cat, i, types = self.allowedPreviewTypes || []; + if (type === 'application/text-plain') { + return 'text'; + } + for (i = 0; i < types.length; i++) { + cat = types[i]; + isValid = self.fileTypeSettings[cat]; + vType = isValid(type, name) ? cat : ''; + if (!$h.isEmpty(vType)) { + return vType; + } + } + return 'other'; + }, + _getPreviewIcon: function (fname) { + var self = this, ext, out = null; + if (fname && fname.indexOf('.') > -1) { + ext = fname.split('.').pop(); + if (self.previewFileIconSettings) { + out = self.previewFileIconSettings[ext] || self.previewFileIconSettings[ext.toLowerCase()] || null; + } + if (self.previewFileExtSettings) { + $.each(self.previewFileExtSettings, function (key, func) { + if (self.previewFileIconSettings[key] && func(ext)) { + out = self.previewFileIconSettings[key]; + //noinspection UnnecessaryReturnStatementJS + return; + } + }); + } + } + return out || self.previewFileIcon; + }, + _parseFilePreviewIcon: function (content, fname) { + var self = this, icn = self._getPreviewIcon(fname), out = content; + if (out.indexOf('{previewFileIcon}') > -1) { + out = out.setTokens({'previewFileIconClass': self.previewFileIconClass, 'previewFileIcon': icn}); + } + return out; + }, + _raise: function (event, params) { + var self = this, e = $.Event(event); + if (params !== undefined) { + self.$element.trigger(e, params); + } else { + self.$element.trigger(e); + } + var out = e.result, isAborted = out === false; + if (e.isDefaultPrevented() || isAborted) { + return false; + } + if (e.type === 'filebatchpreupload' && (out || isAborted)) { + self.ajaxAborted = out; + return false; + } + switch (event) { + // ignore these events + case 'filebatchuploadcomplete': + case 'filebatchuploadsuccess': + case 'fileuploaded': + case 'fileclear': + case 'filecleared': + case 'filereset': + case 'fileerror': + case 'filefoldererror': + case 'fileuploaderror': + case 'filebatchuploaderror': + case 'filedeleteerror': + case 'filecustomerror': + case 'filesuccessremove': + break; + // receive data response via `filecustomerror` event` + default: + if (!self.ajaxAborted) { + self.ajaxAborted = out; + } + break; + } + return true; + }, + _listenFullScreen: function (isFullScreen) { + var self = this, $modal = self.$modal, $btnFull, $btnBord; + if (!$modal || !$modal.length) { + return; + } + $btnFull = $modal && $modal.find('.btn-kv-fullscreen'); + $btnBord = $modal && $modal.find('.btn-kv-borderless'); + if (!$btnFull.length || !$btnBord.length) { + return; + } + $btnFull.removeClass('active').attr('aria-pressed', 'false'); + $btnBord.removeClass('active').attr('aria-pressed', 'false'); + if (isFullScreen) { + $btnFull.addClass('active').attr('aria-pressed', 'true'); + } else { + $btnBord.addClass('active').attr('aria-pressed', 'true'); + } + if ($modal.hasClass('file-zoom-fullscreen')) { + self._maximizeZoomDialog(); + } else { + if (isFullScreen) { + self._maximizeZoomDialog(); + } else { + $btnBord.removeClass('active').attr('aria-pressed', 'false'); + } + } + }, + _listen: function () { + var self = this, $el = self.$element, $form = self.$form, $cont = self.$container, fullScreenEv; + self._handler($el, 'click', function (e) { + self._initFileSelected(); + if ($el.hasClass('file-no-browse')) { + if ($el.data('zoneClicked')) { + $el.data('zoneClicked', false); + } else { + e.preventDefault(); + } + } + }); + self._handler($el, 'change', $.proxy(self._change, self)); + self._handler(self.$caption, 'paste', $.proxy(self.paste, self)); + if (self.showBrowse) { + self._handler(self.$btnFile, 'click', $.proxy(self._browse, self)); + self._handler(self.$btnFile, 'keypress', function (e) { + var keycode = e.keyCode || e.which + if (keycode === 13) { + $el.trigger('click'); + self._browse(e); + } + }); + } + self._handler($cont.find('.fileinput-remove:not([disabled])'), 'click', $.proxy(self.clear, self)); + self._handler($cont.find('.fileinput-cancel'), 'click', $.proxy(self.cancel, self)); + self._handler($cont.find('.fileinput-pause'), 'click', $.proxy(self.pause, self)); + self._initDragDrop(); + self._handler($form, 'reset', $.proxy(self.clear, self)); + if (!self.isAjaxUpload) { + self._handler($form, 'submit', $.proxy(self._submitForm, self)); + } + self._handler(self.$container.find('.fileinput-upload'), 'click', $.proxy(self._uploadClick, self)); + self._handler($(window), 'resize', function () { + self._listenFullScreen(screen.width === window.innerWidth && screen.height === window.innerHeight); + }); + fullScreenEv = 'webkitfullscreenchange mozfullscreenchange fullscreenchange MSFullscreenChange'; + self._handler($(document), fullScreenEv, function () { + self._listenFullScreen($h.checkFullScreen()); + }); + self.$caption.on('focus', function () { + self.$captionContainer.focus(); + }); + self._autoFitContent(); + self._initClickable(); + self._refreshPreview(); + }, + _autoFitContent: function () { + var width = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth, + self = this, config = width < 400 ? (self.previewSettingsSmall || self.defaults.previewSettingsSmall) : + (self.previewSettings || self.defaults.previewSettings), sel; + $.each(config, function (cat, settings) { + sel = '.file-preview-frame .file-preview-' + cat; + self.$preview.find(sel + '.kv-preview-data,' + sel + ' .kv-preview-data').css(settings); + }); + }, + _scanDroppedItems: function (item, files, path) { + path = path || ''; + var self = this, i, dirReader, readDir, errorHandler = function (e) { + self._log($h.logMessages.badDroppedFiles); + self._log(e); + }; + if (item.isFile) { + item.file(function (file) { + if (path) { + file.newPath = path + file.name; + } + files.push(file); + }, errorHandler); + } else { + if (item.isDirectory) { + dirReader = item.createReader(); + readDir = function () { + dirReader.readEntries(function (entries) { + if (entries && entries.length > 0) { + for (i = 0; i < entries.length; i++) { + self._scanDroppedItems(entries[i], files, path + item.name + '/'); + } + // recursively call readDir() again, since browser can only handle first 100 entries. + readDir(); + } + return null; + }, errorHandler); + }; + readDir(); + } + } + + }, + _initDragDrop: function () { + var self = this, $zone = self.$dropZone; + if (self.dropZoneEnabled && self.showPreview) { + self._handler($zone, 'dragenter dragover', $.proxy(self._zoneDragEnter, self)); + self._handler($zone, 'dragleave', $.proxy(self._zoneDragLeave, self)); + self._handler($zone, 'drop', $.proxy(self._zoneDrop, self)); + self._handler($(document), 'dragenter dragover drop', self._zoneDragDropInit); + } + }, + _zoneDragDropInit: function (e) { + e.stopPropagation(); + e.preventDefault(); + }, + _zoneDragEnter: function (e) { + var self = this, dt = e.originalEvent.dataTransfer, hasFiles = $.inArray('Files', dt.types) > -1; + self._zoneDragDropInit(e); + if (self.isDisabled || !hasFiles) { + dt.effectAllowed = 'none'; + dt.dropEffect = 'none'; + return; + } + dt.dropEffect = 'copy'; + if (self._raise('fileDragEnter', {'sourceEvent': e, 'files': dt.types.Files})) { + $h.addCss(self.$dropZone, 'file-highlighted'); + } + }, + _zoneDragLeave: function (e) { + var self = this; + self._zoneDragDropInit(e); + if (self.isDisabled) { + return; + } + if (self._raise('fileDragLeave', {'sourceEvent': e})) { + self.$dropZone.removeClass('file-highlighted'); + } + + }, + _dropFiles: function (e, files) { + var self = this, $el = self.$element; + if (!self.isAjaxUpload) { + self.changeTriggered = true; + $el.get(0).files = files; + setTimeout(function () { + self.changeTriggered = false; + $el.trigger('change' + self.namespace); + }, self.processDelay); + } else { + self._change(e, files); + } + self.$dropZone.removeClass('file-highlighted'); + }, + _zoneDrop: function (e) { + /** @namespace e.originalEvent.dataTransfer */ + var self = this, i, $el = self.$element, dt = e.originalEvent.dataTransfer, + files = dt.files, items = dt.items, folders = $h.getDragDropFolders(items); + e.preventDefault(); + if (self.isDisabled || $h.isEmpty(files)) { + return; + } + if (!self._raise('fileDragDrop', {'sourceEvent': e, 'files': files})) { + return; + } + if (folders > 0) { + if (!self.isAjaxUpload) { + self._showFolderError(folders); + return; + } + files = []; + for (i = 0; i < items.length; i++) { + var item = items[i].webkitGetAsEntry(); + if (item) { + self._scanDroppedItems(item, files); + } + } + setTimeout(function () { + self._dropFiles(e, files); + }, 500); + } else { + self._dropFiles(e, files); + } + }, + _uploadClick: function (e) { + var self = this, $btn = self.$container.find('.fileinput-upload'), $form, + isEnabled = !$btn.hasClass('disabled') && $h.isEmpty($btn.attr('disabled')); + if (e && e.isDefaultPrevented()) { + return; + } + if (!self.isAjaxUpload) { + if (isEnabled && $btn.attr('type') !== 'submit') { + $form = $btn.closest('form'); + // downgrade to normal form submit if possible + if ($form.length) { + $form.trigger('submit'); + } + e.preventDefault(); + } + return; + } + e.preventDefault(); + if (isEnabled) { + self.upload(); + } + }, + _submitForm: function () { + var self = this; + return self._isFileSelectionValid() && !self._abort({}); + }, + _clearPreview: function () { + var self = this, + $thumbs = self.showUploadedThumbs ? self.getFrames(':not(.file-preview-success)') : self.getFrames(); + $thumbs.each(function () { + var $thumb = $(this); + $thumb.remove(); + }); + if (!self.getFrames().length || !self.showPreview) { + self._resetUpload(); + } + self._validateDefaultPreview(); + }, + _initSortable: function () { + var self = this, $el = self.$preview, settings, selector = '.' + $h.SORT_CSS, $cont, $body = $('body'), + $html = $('html'), rev = self.reversePreviewOrder, Sortable = window.Sortable, beginGrab, endGrab; + if (!Sortable || $el.find(selector).length === 0) { + return; + } + $cont = $body.length ? $body : ($html.length ? $html : self.$container); + beginGrab = function () { + $cont.addClass('file-grabbing'); + }; + endGrab = function () { + $cont.removeClass('file-grabbing'); + }; + settings = { + handle: '.drag-handle-init', + dataIdAttr: 'data-fileid', + animation: 600, + draggable: selector, + scroll: false, + forceFallback: true, + onChoose: beginGrab, + onStart: beginGrab, + onUnchoose: endGrab, + onEnd: endGrab, + onSort: function (e) { + var oldIndex = e.oldIndex, newIndex = e.newIndex, i = 0, len = self.initialPreviewConfig.length, + exceedsLast = len > 0 && newIndex >= len, $item = $(e.item), $first; + if (exceedsLast) { + newIndex = len - 1; + } + self.initialPreview = $h.moveArray(self.initialPreview, oldIndex, newIndex, rev); + self.initialPreviewConfig = $h.moveArray(self.initialPreviewConfig, oldIndex, newIndex, rev); + self.previewCache.init(); + self.getFrames('.file-preview-initial').each(function () { + $(this).attr('data-fileindex', $h.INIT_FLAG + i); + i++; + }); + if (exceedsLast) { + $first = self.getFrames(':not(.file-preview-initial):first'); + if ($first.length) { + $item.slideUp(function () { + $item.insertBefore($first).slideDown(); + }); + } + } + self._raise('filesorted', { + previewId: $item.attr('id'), + 'oldIndex': oldIndex, + 'newIndex': newIndex, + stack: self.initialPreviewConfig + }); + }, + }; + $.extend(true, settings, self.fileActionSettings.dragSettings); + if (self.sortable) { + self.sortable.destroy(); + } + self.sortable = Sortable.create($el[0], settings); + }, + _setPreviewContent: function (content) { + var self = this; + $h.setHtml(self.$preview, content); + self._autoFitContent(); + }, + _initPreviewImageOrientations: function () { + var self = this, i = 0, canOrientImage = self.canOrientImage; + if (!self.autoOrientImageInitial && !canOrientImage) { + return; + } + self.getFrames('.file-preview-initial').each(function () { + var $thumb = $(this), $img, $zoomImg, id, config = self.initialPreviewConfig[i]; + /** @namespace config.exif */ + if (config && config.exif && config.exif.Orientation) { + id = $thumb.attr('id'); + $img = $thumb.find('>.kv-file-content img'); + $zoomImg = self._getZoom(id, ' >.kv-file-content img'); + if (canOrientImage) { + $img.css('image-orientation', (self.autoOrientImageInitial ? 'from-image' : 'none')); + } else { + self.setImageOrientation($img, $zoomImg, config.exif.Orientation, $thumb); + } + } + i++; + }); + }, + _initPreview: function (isInit) { + var self = this, cap = self.initialCaption || '', out; + if (!self.previewCache.count(true)) { + self._clearPreview(); + if (isInit) { + self._setCaption(cap); + } else { + self._initCaption(); + } + return; + } + out = self.previewCache.out(); + cap = isInit && self.initialCaption ? self.initialCaption : out.caption; + self._setPreviewContent(out.content); + self._setInitThumbAttr(); + self._setCaption(cap); + self._initSortable(); + if (!$h.isEmpty(out.content)) { + self.$container.removeClass('file-input-new'); + } + self._initPreviewImageOrientations(); + }, + _getZoomButton: function (type) { + var self = this, label = self.previewZoomButtonIcons[type], css = self.previewZoomButtonClasses[type], + title = ' title="' + (self.previewZoomButtonTitles[type] || '') + '" ', tag = $h.isBs(5) ? 'bs-' : '', + params = title + (type === 'close' ? ' data-' + tag + 'dismiss="modal" aria-hidden="true"' : ''); + if (type === 'fullscreen' || type === 'borderless' || type === 'toggleheader') { + params += ' data-toggle="button" aria-pressed="false" autocomplete="off"'; + } + return ''; + }, + _getModalContent: function () { + var self = this; + return self._getLayoutTemplate('modal').setTokens({ + 'rtl': self.rtl ? ' kv-rtl' : '', + 'zoomFrameClass': self.frameClass, + 'prev': self._getZoomButton('prev'), + 'next': self._getZoomButton('next'), + 'toggleheader': self._getZoomButton('toggleheader'), + 'fullscreen': self._getZoomButton('fullscreen'), + 'borderless': self._getZoomButton('borderless'), + 'close': self._getZoomButton('close') + }); + }, + _listenModalEvent: function (event) { + var self = this, $modal = self.$modal, getParams = function (e) { + return { + sourceEvent: e, + previewId: $modal.data('previewId'), + modal: $modal + }; + }; + $modal.on(event + '.bs.modal', function (e) { + if (e.namespace !== 'bs.modal') { + return; + } + var $btnFull = $modal.find('.btn-fullscreen'), $btnBord = $modal.find('.btn-borderless'); + if ($modal.data('fileinputPluginId') === self.$element.attr('id')) { + self._raise('filezoom' + event, getParams(e)); + } + if (event === 'shown') { + $btnBord.removeClass('active').attr('aria-pressed', 'false'); + $btnFull.removeClass('active').attr('aria-pressed', 'false'); + if ($modal.hasClass('file-zoom-fullscreen')) { + self._maximizeZoomDialog(); + if ($h.checkFullScreen()) { + $btnFull.addClass('active').attr('aria-pressed', 'true'); + } else { + $btnBord.addClass('active').attr('aria-pressed', 'true'); + } + } + } + }); + }, + _initZoom: function () { + var self = this, $dialog, modalMain = self._getLayoutTemplate('modalMain'), modalId = '#' + $h.MODAL_ID; + modalMain = self._setTabIndex('modal', modalMain); + if (!self.showPreview) { + return; + } + self.$modal = $(modalId); + if (!self.$modal || !self.$modal.length) { + $dialog = $h.createElement($h.cspBuffer.stash(modalMain)).insertAfter(self.$container); + self.$modal = $(modalId).insertBefore($dialog); + $h.cspBuffer.apply(self.$modal); + $dialog.remove(); + } + $h.initModal(self.$modal); + self.$modal.html($h.cspBuffer.stash(self._getModalContent())); + $h.cspBuffer.apply(self.$modal); + $.each($h.MODAL_EVENTS, function (key, event) { + self._listenModalEvent(event); + }); + }, + _initZoomButtons: function () { + var self = this, previewId = self.$modal.data('previewId') || '', $first, $last, + thumbs = self.getFrames().toArray(), len = thumbs.length, $prev = self.$modal.find('.btn-kv-prev'), + $next = self.$modal.find('.btn-kv-next'); + if (thumbs.length < 2) { + $prev.hide(); + $next.hide(); + return; + } else { + $prev.show(); + $next.show(); + } + if (!len) { + return; + } + $first = $(thumbs[0]); + $last = $(thumbs[len - 1]); + $prev.removeAttr('disabled'); + $next.removeAttr('disabled'); + if (self.reversePreviewOrder) { + [$prev, $next] = [$next, $prev]; // swap + } + if ($first.length && $first.attr('id') === previewId) { + $prev.attr('disabled', true); + } + if ($last.length && $last.attr('id') === previewId) { + $next.attr('disabled', true); + } + }, + _maximizeZoomDialog: function () { + var self = this, $modal = self.$modal, $head = $modal.find('.modal-header:visible'), + $foot = $modal.find('.modal-footer:visible'), $body = $modal.find('.kv-zoom-body'), + h = $(window).height(), diff = 0; + $modal.addClass('file-zoom-fullscreen'); + if ($head && $head.length) { + h -= $head.outerHeight(true); + } + if ($foot && $foot.length) { + h -= $foot.outerHeight(true); + } + if ($body && $body.length) { + diff = $body.outerHeight(true) - $body.height(); + h -= diff; + } + $modal.find('.kv-zoom-body').height(h); + }, + _resizeZoomDialog: function (fullScreen) { + var self = this, $modal = self.$modal, $btnFull = $modal.find('.btn-kv-fullscreen'), + $btnBord = $modal.find('.btn-kv-borderless'); + if ($modal.hasClass('file-zoom-fullscreen')) { + $h.toggleFullScreen(false); + if (!fullScreen) { + if (!$btnFull.hasClass('active')) { + $modal.removeClass('file-zoom-fullscreen'); + self.$modal.find('.kv-zoom-body').css('height', self.zoomModalHeight); + } else { + $btnFull.removeClass('active').attr('aria-pressed', 'false'); + } + } else { + if (!$btnFull.hasClass('active')) { + $modal.removeClass('file-zoom-fullscreen'); + self._resizeZoomDialog(true); + if ($btnBord.hasClass('active')) { + $btnBord.removeClass('active').attr('aria-pressed', 'false'); + } + } + } + } else { + if (!fullScreen) { + self._maximizeZoomDialog(); + return; + } + $h.toggleFullScreen(true); + } + $modal.focus(); + }, + _setZoomContent: function ($frame, navigate) { + var self = this, $content, tmplt, body, title, $body, $dataEl, config, previewId = $frame.attr('id'), + $zoomPreview = self._getZoom(previewId), $modal = self.$modal, $tmp, desc, $desc, + $btnFull = $modal.find('.btn-kv-fullscreen'), $btnBord = $modal.find('.btn-kv-borderless'), cap, size, + $btnTogh = $modal.find('.btn-kv-toggleheader'), dir = navigate === 'prev' ? 'Left' : 'Right', + slideIn = 'slideIn' + dir, slideOut = 'slideOut' + dir, parsed, zoomData = $frame.data('zoom'); + if (zoomData) { + zoomData = decodeURIComponent(zoomData); + parsed = $zoomPreview.html().replace($h.ZOOM_VAR, '').setTokens({zoomData: zoomData}); + $zoomPreview.html(parsed); + $frame.data('zoom', ''); + $zoomPreview.attr('data-zoom', zoomData); + } + tmplt = $zoomPreview.attr('data-template') || 'generic'; + $content = $zoomPreview.find('.kv-file-content'); + body = $content.length ? '\n' + $content.html() : ''; + cap = $frame.data('caption') || self.msgZoomModalHeading; + size = $frame.data('size') || ''; + desc = $frame.data('description') || ''; + $modal.find('.kv-zoom-caption').attr('title', cap).html(cap); + $modal.find('.kv-zoom-size').html(size); + $desc = $modal.find('.kv-zoom-description').hide(); + if (desc) { + if (self.showDescriptionClose) { + desc = self._getLayoutTemplate('descriptionClose').setTokens({ + closeIcon: self.previewZoomButtonIcons.close + }) + '' + desc; + } + $desc.show().html(desc); + if (self.showDescriptionClose) { + self._handler($modal.find('.kv-desc-hide'), 'click', function () { + $(this).parent().fadeOut('fast', function () { + $modal.focus(); + }); + }); + } + } + $body = $modal.find('.kv-zoom-body'); + $modal.removeClass('kv-single-content'); + if (navigate) { + $tmp = $body.addClass('file-thumb-loading').clone().insertAfter($body); + $h.setHtml($body, body).hide(); + $tmp.fadeOut('fast', function () { + $body.fadeIn('fast', function () { + $body.removeClass('file-thumb-loading'); + }); + $tmp.remove(); + }); + } else { + $h.setHtml($body, body); + } + config = self.previewZoomSettings[tmplt]; + if (config) { + $dataEl = $body.find('.kv-preview-data'); + $h.addCss($dataEl, 'file-zoom-detail'); + $.each(config, function (key, value) { + $dataEl.css(key, value); + if (($dataEl.attr('width') && key === 'width') || ($dataEl.attr('height') && key === 'height')) { + $dataEl.removeAttr(key); + } + }); + } + $modal.data('previewId', previewId); + self._handler($modal.find('.btn-kv-prev'), 'click', function () { + self._zoomSlideShow('prev', previewId); + }); + self._handler($modal.find('.btn-kv-next'), 'click', function () { + self._zoomSlideShow('next', previewId); + }); + self._handler($btnFull, 'click', function () { + self._resizeZoomDialog(true); + }); + self._handler($btnBord, 'click', function () { + self._resizeZoomDialog(false); + }); + self._handler($btnTogh, 'click', function () { + var $header = $modal.find('.modal-header'), $floatBar = $modal.find('.floating-buttons'), + ht, $actions = $header.find('.kv-zoom-actions'), resize = function (height) { + var $body = self.$modal.find('.kv-zoom-body'), h = self.zoomModalHeight; + if ($modal.hasClass('file-zoom-fullscreen')) { + h = $body.outerHeight(true); + if (!height) { + h = h - $header.outerHeight(true); + } + } + $body.css('height', height ? h + height : h); + }; + if ($header.is(':visible')) { + ht = $header.outerHeight(true); + $header.slideUp('slow', function () { + $actions.find('.btn').appendTo($floatBar); + resize(ht); + }); + } else { + $floatBar.find('.btn').appendTo($actions); + $header.slideDown('slow', function () { + resize(); + }); + } + $modal.focus(); + }); + self._handler($modal, 'keydown', function (e) { + var key = e.which || e.keyCode, delay = self.processDelay + 1, $prev = $(this).find('.btn-kv-prev'), + $next = $(this).find('.btn-kv-next'), vId = $(this).data('previewId'), vPrevKey, vNextKey; + [vPrevKey, vNextKey] = self.rtl ? [39, 37] : [37, 39]; + $.each({prev: [$prev, vPrevKey], next: [$next, vNextKey]}, function (direction, config) { + var $btn = config[0], vKey = config[1]; + if (key === vKey && $btn.length) { + $modal.focus(); + if (!$btn.attr('disabled')) { + $btn.focus(); + self._zoomSlideShow(direction, vId); + setTimeout(function () { + if ($btn.attr('disabled')) { + $modal.focus(); + } + }, delay); + } + } + }); + }); + }, + _showModal: function ($frame) { + var self = this, $modal = self.$modal, bs5Modal; + if (!$frame || !$frame.length) { + return; + } + $h.initModal($modal); + $h.setHtml($modal, self._getModalContent()); + self._setZoomContent($frame); + $modal.data({backdrop: false}); + //$modal.data('fileinputPluginId', self.$element.attr('id')); + $modal.modal('show'); + self._initZoomButtons(); + }, + _zoomPreview: function ($btn) { + var self = this, $frame; + if (!$btn.length) { + throw 'Cannot zoom to detailed preview!'; + } + $frame = $btn.closest($h.FRAMES); + self._showModal($frame); + }, + _zoomSlideShow: function (dir, previewId) { + var self = this, $btn = self.$modal.find('.kv-zoom-actions .btn-kv-' + dir), $targFrame, i, $thumb, + thumbsData = self.getFrames().toArray(), thumbs = [], len = thumbsData.length, out; + if (self.reversePreviewOrder) { + dir = dir === 'prev' ? 'next' : 'prev'; + } + if ($btn.attr('disabled')) { + return; + } + for (i = 0; i < len; i++) { + $thumb = $(thumbsData[i]); + if ($thumb && $thumb.length && $thumb.find('.kv-file-zoom:visible').length) { + thumbs.push(thumbsData[i]); + } + } + len = thumbs.length; + for (i = 0; i < len; i++) { + if ($(thumbs[i]).attr('id') === previewId) { + out = dir === 'prev' ? i - 1 : i + 1; + break; + } + } + if (out < 0 || out >= len || !thumbs[out]) { + return; + } + $targFrame = $(thumbs[out]); + if ($targFrame.length) { + self._setZoomContent($targFrame, dir); + } + self._initZoomButtons(); + self._raise('filezoom' + dir, {'previewId': previewId, modal: self.$modal}); + }, + _initZoomButton: function () { + var self = this; + self.$preview.find('.kv-file-zoom').each(function () { + var $el = $(this); + self._handler($el, 'click', function () { + self._zoomPreview($el); + }); + }); + }, + _inputFileCount: function () { + return this.$element[0].files.length; + }, + _refreshPreview: function () { + var self = this, files; + if ((!self._inputFileCount() && !self.isAjaxUpload) || !self.showPreview || !self.isPreviewable) { + return; + } + if (self.isAjaxUpload) { + if (self.fileManager.count() > 0) { + files = $.extend(true, {}, self.getFileList()); + self.fileManager.clear(); + self._clearFileInput(); + } else { + files = self.$element[0].files; + } + } else { + files = self.$element[0].files; + } + if (files && files.length) { + self.readFiles(files); + self._setFileDropZoneTitle(); + } + }, + _clearObjects: function ($el) { + $el.find('video audio').each(function () { + this.pause(); + $(this).remove(); + }); + $el.find('img object div').each(function () { + $(this).remove(); + }); + }, + _clearFileInput: function () { + var self = this, $el = self.$element, $srcFrm, $tmpFrm, $tmpEl; + if (!self._inputFileCount()) { + return; + } + $srcFrm = $el.closest('form'); + $tmpFrm = $(document.createElement('form')); + $tmpEl = $(document.createElement('div')); + $el.before($tmpEl); + if ($srcFrm.length) { + $srcFrm.after($tmpFrm); + } else { + $tmpEl.after($tmpFrm); + } + $tmpFrm.append($el).trigger('reset'); + $tmpEl.before($el).remove(); + $tmpFrm.remove(); + }, + _resetUpload: function () { + var self = this; + self.uploadStartTime = $h.now(); + self.uploadCache = []; + self.$btnUpload.removeAttr('disabled'); + self._setProgress(0); + self._hideProgress(); + self._resetErrors(false); + self._initAjax(); + self.fileManager.clearImages(); + self._resetCanvas(); + if (self.overwriteInitial) { + self.initialPreview = []; + self.initialPreviewConfig = []; + self.initialPreviewThumbTags = []; + self.previewCache.data = { + content: [], + config: [], + tags: [] + }; + } + }, + _resetCanvas: function () { + var self = this; + if (self.imageCanvas && self.imageCanvasContext) { + self.imageCanvasContext.clearRect(0, 0, self.imageCanvas.width, self.imageCanvas.height); + } + }, + _hasInitialPreview: function () { + var self = this; + return !self.overwriteInitial && self.previewCache.count(true); + }, + _resetPreview: function () { + var self = this, out, cap, $div, hasSuc = self.showUploadedThumbs, hasErr = !self.removeFromPreviewOnError, + includeProcessed = (hasSuc || hasErr) && self.isDuplicateError; + if (self.previewCache.count(true)) { + out = self.previewCache.out(); + if (includeProcessed) { + $div = $h.createElement('').insertAfter(self.$container); + self.getFrames().each(function () { + var $thumb = $(this); + if ((hasSuc && $thumb.hasClass('file-preview-success')) || + (hasErr && $thumb.hasClass('file-preview-error'))) { + $div.append($thumb); + } + }); + } + self._setPreviewContent(out.content); + self._setInitThumbAttr(); + cap = self.initialCaption ? self.initialCaption : out.caption; + self._setCaption(cap); + if (includeProcessed) { + $div.contents().appendTo(self.$preview); + $div.remove(); + } + } else { + self._clearPreview(); + self._initCaption(); + } + if (self.showPreview) { + self._initZoom(); + self._initSortable(); + } + self.isDuplicateError = false; + }, + _clearDefaultPreview: function () { + var self = this; + self.$preview.find('.file-default-preview').remove(); + }, + _validateDefaultPreview: function () { + var self = this; + if (!self.showPreview || $h.isEmpty(self.defaultPreviewContent)) { + return; + } + self._setPreviewContent('
    ' + self.defaultPreviewContent + '
    '); + self.$container.removeClass('file-input-new'); + self._initClickable(); + }, + _resetPreviewThumbs: function (isAjax) { + var self = this, out; + if (isAjax) { + self._clearPreview(); + self.clearFileStack(); + return; + } + if (self._hasInitialPreview()) { + out = self.previewCache.out(); + self._setPreviewContent(out.content); + self._setInitThumbAttr(); + self._setCaption(out.caption); + self._initPreviewActions(); + } else { + self._clearPreview(); + } + }, + _getLayoutTemplate: function (t) { + var self = this, template = self.layoutTemplates[t]; + if ($h.isEmpty(self.customLayoutTags)) { + return template; + } + return $h.replaceTags(template, self.customLayoutTags); + }, + _getPreviewTemplate: function (t) { + var self = this, templates = self.previewTemplates, template = templates[t] || templates.other; + if ($h.isEmpty(self.customPreviewTags)) { + return template; + } + return $h.replaceTags(template, self.customPreviewTags); + }, + _getOutData: function (formdata, jqXHR, responseData, filesData) { + var self = this; + jqXHR = jqXHR || {}; + responseData = responseData || {}; + filesData = filesData || self.fileManager.list(); + return { + formdata: formdata, + files: filesData, + filenames: self.filenames, + filescount: self.getFilesCount(), + extra: self._getExtraData(), + response: responseData, + reader: self.reader, + jqXHR: jqXHR + }; + }, + _getMsgSelected: function (n, processing) { + var self = this, strFiles = n === 1 ? self.fileSingle : self.filePlural; + return n > 0 ? self.msgSelected.replace('{n}', n).replace('{files}', strFiles) : + (processing ? self.msgProcessing : self.msgNoFilesSelected); + }, + _getFrame: function (id, skipWarning) { + var self = this, $frame = $h.getFrameElement(self.$preview, id); + if (self.showPreview && !skipWarning && !$frame.length) { + self._log($h.logMessages.invalidThumb, {id: id}); + } + return $frame; + }, + _getZoom: function (id, selector) { + var self = this, $frame = $h.getZoomElement(self.$preview, id, selector); + if (self.showPreview && !$frame.length) { + self._log($h.logMessages.invalidThumb, {id: id}); + } + return $frame; + }, + _getThumbs: function (css) { + css = css || ''; + return this.getFrames(':not(.file-preview-initial)' + css); + }, + _getThumbId: function (fileId) { + var self = this; + return self.previewInitId + '-' + fileId; + }, + _getExtraData: function (fileId, index) { + var self = this, data = self.uploadExtraData; + if (typeof self.uploadExtraData === 'function') { + data = self.uploadExtraData(fileId, index); + } + return data; + }, + _initXhr: function (xhrobj, fileId) { + var self = this, fm = self.fileManager, func = function (event) { + var pct = 0, total = event.total, loaded = event.loaded || event.position, + stats = fm.getUploadStats(fileId, loaded, total); + /** @namespace event.lengthComputable */ + if (event.lengthComputable && !self.enableResumableUpload) { + pct = $h.round(loaded / total * 100); + } + if (fileId) { + self._setFileUploadStats(fileId, pct, stats); + } else { + self._setProgress(pct, null, null, self._getStats(stats)); + } + self._raise('fileajaxprogress', [stats]); + }; + if (xhrobj.upload) { + if (self.progressDelay) { + func = $h.debounce(func, self.progressDelay); + } + xhrobj.upload.addEventListener('progress', func, false); + } + return xhrobj; + }, + _initAjaxSettings: function () { + var self = this; + self._ajaxSettings = $.extend(true, {}, self.ajaxSettings); + self._ajaxDeleteSettings = $.extend(true, {}, self.ajaxDeleteSettings); + }, + _mergeAjaxCallback: function (funcName, srcFunc, type) { + var self = this, settings = self._ajaxSettings, flag = self.mergeAjaxCallbacks, targFunc; + if (type === 'delete') { + settings = self._ajaxDeleteSettings; + flag = self.mergeAjaxDeleteCallbacks; + } + targFunc = settings[funcName]; + if (flag && typeof targFunc === 'function') { + if (flag === 'before') { + settings[funcName] = function () { + targFunc.apply(this, arguments); + srcFunc.apply(this, arguments); + }; + } else { + settings[funcName] = function () { + srcFunc.apply(this, arguments); + targFunc.apply(this, arguments); + }; + } + } else { + settings[funcName] = srcFunc; + } + }, + _ajaxSubmit: function (fnBefore, fnSuccess, fnComplete, fnError, formdata, fileId, index, vUrl) { + var self = this, settings, defaults, data, ajaxTask; + if (!self._raise('filepreajax', [formdata, fileId, index])) { + return; + } + formdata.append('initialPreview', JSON.stringify(self.initialPreview)); + formdata.append('initialPreviewConfig', JSON.stringify(self.initialPreviewConfig)); + formdata.append('initialPreviewThumbTags', JSON.stringify(self.initialPreviewThumbTags)); + self._initAjaxSettings(); + self._mergeAjaxCallback('beforeSend', fnBefore); + self._mergeAjaxCallback('success', fnSuccess); + self._mergeAjaxCallback('complete', fnComplete); + self._mergeAjaxCallback('error', fnError); + vUrl = vUrl || self.uploadUrlThumb || self.uploadUrl; + if (typeof vUrl === 'function') { + vUrl = vUrl(); + } + data = self._getExtraData(fileId, index) || {}; + if (typeof data === 'object') { + $.each(data, function (key, value) { + formdata.append(key, value); + }); + } + defaults = { + xhr: function () { + var xhrobj = $.ajaxSettings.xhr(); + return self._initXhr(xhrobj, fileId); + }, + url: self._encodeURI(vUrl), + type: 'POST', + dataType: 'json', + data: formdata, + cache: false, + processData: false, + contentType: false + }; + settings = $.extend(true, {}, defaults, self._ajaxSettings); + ajaxTask = self.taskManager.addTask(fileId + '-' + index, function () { + var self = this.self, config, xhr; + config = self.ajaxQueue.shift(); + xhr = $.ajax(config); + self.ajaxRequests.push(xhr); + }); + self.ajaxQueue.push(settings); + ajaxTask.runWithContext({self: self}); + }, + _mergeArray: function (prop, content) { + var self = this, arr1 = $h.cleanArray(self[prop]), arr2 = $h.cleanArray(content); + self[prop] = arr1.concat(arr2); + }, + _initUploadSuccess: function (out, $thumb, allFiles) { + var self = this, append, data, index, $div, content, config, tags, id, i; + if (!self.showPreview || typeof out !== 'object' || $.isEmptyObject(out)) { + self._resetCaption(); + return; + } + if (out.initialPreview !== undefined && out.initialPreview.length > 0) { + self.hasInitData = true; + content = out.initialPreview || []; + config = out.initialPreviewConfig || []; + tags = out.initialPreviewThumbTags || []; + append = out.append === undefined || out.append; + if (content.length > 0 && !$h.isArray(content)) { + content = content.split(self.initialPreviewDelimiter); + } + if (content.length) { + self._mergeArray('initialPreview', content); + self._mergeArray('initialPreviewConfig', config); + self._mergeArray('initialPreviewThumbTags', tags); + } + if ($thumb !== undefined) { + if (!allFiles) { + index = self.previewCache.add(content[0], config[0], tags[0], append); + data = self.previewCache.get(index, false); + $div = $h.createElement(data).hide().appendTo($thumb); + $thumb.fadeOut('slow', function () { + var $newThumb = $div.find('> .file-preview-frame'); + if ($newThumb && $newThumb.length) { + $newThumb.insertBefore($thumb).fadeIn('slow').css('display:inline-block'); + } + self._initPreviewActions(); + self._clearFileInput(); + $thumb.remove(); + $div.remove(); + self._initSortable(); + }); + } else { + id = $thumb.attr('id'); + i = self._getUploadCacheIndex(id); + if (i !== null) { + self.uploadCache[i] = { + id: id, + content: content[0], + config: config[0] || [], + tags: tags[0] || [], + append: append + }; + } + } + } else { + self.previewCache.set(content, config, tags, append); + self._initPreview(); + self._initPreviewActions(); + } + } + self._resetCaption(); + }, + _getUploadCacheIndex: function (id) { + var self = this, i, len = self.uploadCache.length, config; + for (i = 0; i < len; i++) { + config = self.uploadCache[i]; + if (config.id === id) { + return i; + } + } + return null; + }, + _initSuccessThumbs: function () { + var self = this; + if (!self.showPreview) { + return; + } + setTimeout(function () { + self._getThumbs($h.FRAMES + '.file-preview-success').each(function () { + var $thumb = $(this), $remove = $thumb.find('.kv-file-remove'); + $remove.removeAttr('disabled'); + self._handler($remove, 'click', function () { + var id = $thumb.attr('id'), + out = self._raise('filesuccessremove', [id, $thumb.attr('data-fileindex')]); + $h.cleanMemory($thumb); + if (out === false) { + return; + } + self.$caption.attr('title', ''); + $thumb.fadeOut('slow', function () { + var fm = self.fileManager; + $thumb.remove(); + if (!self.getFrames().length) { + self.reset(); + } + }); + }); + }); + }, self.processDelay); + }, + _updateInitialPreview: function () { + var self = this, u = self.uploadCache; + if (self.showPreview) { + $.each(u, function (key, setting) { + self.previewCache.add(setting.content, setting.config, setting.tags, setting.append); + }); + if (self.hasInitData) { + self._initPreview(); + self._initPreviewActions(); + } + } + }, + _getThumbFileId: function ($thumb) { + var self = this; + if (self.showPreview && $thumb !== undefined) { + return $thumb.attr('data-fileid'); + } + return null; + }, + _getThumbFile: function ($thumb) { + var self = this, id = self._getThumbFileId($thumb); + return id ? self.fileManager.getFile(id) : null; + }, + _uploadSingle: function (i, id, isBatch) { + var self = this, fm = self.fileManager, count = fm.count(), formdata = new FormData(), outData, + previewId = self._getThumbId(id), $thumb, chkComplete, $btnUpload, $btnDelete, + hasPostData = count > 0 || !$.isEmptyObject(self.uploadExtraData), uploadFailed, $prog, fnBefore, + errMsg, fnSuccess, fnComplete, fnError, updateUploadLog, op = self.ajaxOperations.uploadThumb, + fileObj = fm.getFile(id), params = {id: previewId, index: i, fileId: id}, + fileName = self.fileManager.getFileName(id, true); + if (self.enableResumableUpload) { // not enabled for resumable uploads + return; + } + if (self.showPreview) { + $thumb = fm.getThumb(id); + $prog = $thumb.find('.file-thumb-progress'); + $btnUpload = $thumb.find('.kv-file-upload'); + $btnDelete = $thumb.find('.kv-file-remove'); + $prog.show(); + } + if (count === 0 || !hasPostData || (self.showPreview && $btnUpload && $btnUpload.hasClass('disabled')) || + self._abort(params)) { + return; + } + updateUploadLog = function () { + if (!uploadFailed) { + fm.removeFile(id); + } else { + fm.errors.push(id); + } + fm.setProcessed(id); + if (fm.isProcessed()) { + self.fileBatchCompleted = true; + chkComplete(); + } + }; + chkComplete = function () { + var $initThumbs; + if (!self.fileBatchCompleted) { + return; + } + setTimeout(function () { + var triggerReset = fm.count() === 0, errCount = fm.errors.length; + self._updateInitialPreview(); + self.unlock(triggerReset); + if (triggerReset) { + self._clearFileInput(); + } + $initThumbs = self.$preview.find('.file-preview-initial'); + if (self.uploadAsync && $initThumbs.length) { + $h.addCss($initThumbs, $h.SORT_CSS); + self._initSortable(); + } + self._raise('filebatchuploadcomplete', [fm.stack, self._getExtraData()]); + if (!self.retryErrorUploads || errCount === 0) { + fm.clear(); + } + self._setProgress(101); + self.ajaxAborted = false; + }, self.processDelay); + }; + fnBefore = function (jqXHR) { + outData = self._getOutData(formdata, jqXHR); + fm.initStats(id); + self.fileBatchCompleted = false; + if (!isBatch) { + self.ajaxAborted = false; + } + if (self.showPreview) { + if (!$thumb.hasClass('file-preview-success')) { + self._setThumbStatus($thumb, 'Loading'); + $h.addCss($thumb, 'file-uploading'); + } + $btnUpload.attr('disabled', true); + $btnDelete.attr('disabled', true); + } + if (!isBatch) { + self.lock(); + } + if (fm.errors.indexOf(id) !== -1) { + delete fm.errors[id]; + } + self._raise('filepreupload', [outData, previewId, i, self._getThumbFileId($thumb)]); + $.extend(true, params, outData); + if (self._abort(params)) { + jqXHR.abort(); + if (!isBatch) { + self._setThumbStatus($thumb, 'New'); + $thumb.removeClass('file-uploading'); + $btnUpload.removeAttr('disabled'); + $btnDelete.removeAttr('disabled'); + } + self._setProgressCancelled(); + } + }; + fnSuccess = function (data, textStatus, jqXHR) { + var pid = self.showPreview && $thumb.attr('id') ? $thumb.attr('id') : previewId; + outData = self._getOutData(formdata, jqXHR, data); + $.extend(true, params, outData); + setTimeout(function () { + if ($h.isEmpty(data) || $h.isEmpty(data.error)) { + if (self.showPreview) { + self._setThumbStatus($thumb, 'Success'); + $btnUpload.hide(); + self._initUploadSuccess(data, $thumb, isBatch); + self._setProgress(101, $prog); + } + self._raise('fileuploaded', [outData, pid, i, self._getThumbFileId($thumb)]); + if (!isBatch) { + self.fileManager.remove($thumb); + } else { + updateUploadLog(); + } + } else { + uploadFailed = true; + errMsg = self._parseError(op, jqXHR, self.msgUploadError, self.fileManager.getFileName(id)); + self._showFileError(errMsg, params); + self._setPreviewError($thumb, true); + if (!self.retryErrorUploads) { + $btnUpload.hide(); + } + if (isBatch) { + updateUploadLog(); + } + self._setProgress(101, self._getFrame(pid).find('.file-thumb-progress'), + self.msgUploadError); + } + }, self.processDelay); + }; + fnComplete = function () { + if (self.showPreview) { + $btnUpload.removeAttr('disabled'); + $btnDelete.removeAttr('disabled'); + $thumb.removeClass('file-uploading'); + } + if (!isBatch) { + self.unlock(false); + self._clearFileInput(); + } else { + chkComplete(); + } + self._initSuccessThumbs(); + }; + fnError = function (jqXHR, textStatus, errorThrown) { + errMsg = self._parseError(op, jqXHR, errorThrown, self.fileManager.getFileName(id)); + uploadFailed = true; + setTimeout(function () { + var $prog; + if (isBatch) { + updateUploadLog(); + } + self.fileManager.setProgress(id, 100); + self._setPreviewError($thumb, true); + if (!self.retryErrorUploads) { + $btnUpload.hide(); + } + $.extend(true, params, self._getOutData(formdata, jqXHR)); + self._setProgress(101, self.$progress, self.msgAjaxProgressError.replace('{operation}', op)); + $prog = self.showPreview && $thumb ? $thumb.find('.file-thumb-progress') : ''; + self._setProgress(101, $prog, self.msgUploadError); + self._showFileError(errMsg, params); + }, self.processDelay); + }; + self._setFileData(formdata, fileObj.file, fileName, id); + self._setUploadData(formdata, {fileId: id}); + self._ajaxSubmit(fnBefore, fnSuccess, fnComplete, fnError, formdata, id, i); + }, + _setFileData: function (formdata, file, fileName, fileId) { + var self = this, preProcess = self.preProcessUpload; + if (preProcess && typeof preProcess === 'function') { + formdata.append(self.uploadFileAttr, preProcess(fileId, file)); + } else { + formdata.append(self.uploadFileAttr, file, fileName); + } + }, + _checkBatchPreupload: function (outData, jqXHR) { + var self = this, out = self._raise('filebatchpreupload', [outData]); + if (out) { + return true; + } + self._abort(outData); + if (jqXHR) { + jqXHR.abort(); + } + self._getThumbs().each(function () { + var $thumb = $(this), $btnUpload = $thumb.find('.kv-file-upload'), + $btnDelete = $thumb.find('.kv-file-remove'); + if ($thumb.hasClass('file-preview-loading')) { + self._setThumbStatus($thumb, 'New'); + $thumb.removeClass('file-uploading'); + } + $btnUpload.removeAttr('disabled'); + $btnDelete.removeAttr('disabled'); + }); + self._setProgressCancelled(); + return false; + }, + _uploadBatch: function () { + var self = this, fm = self.fileManager, total = fm.total(), params = {}, fnBefore, fnSuccess, fnError, + fnComplete, hasPostData = total > 0 || !$.isEmptyObject(self.uploadExtraData), errMsg, + setAllUploaded, formdata = new FormData(), op = self.ajaxOperations.uploadBatch; + if (total === 0 || !hasPostData || self._abort(params)) { + return; + } + setAllUploaded = function () { + self.fileManager.clear(); + self._clearFileInput(); + }; + fnBefore = function (jqXHR) { + self.lock(); + fm.initStats(); + var outData = self._getOutData(formdata, jqXHR); + self.ajaxAborted = false; + if (self.showPreview) { + self._getThumbs().each(function () { + var $thumb = $(this), $btnUpload = $thumb.find('.kv-file-upload'), + $btnDelete = $thumb.find('.kv-file-remove'); + if (!$thumb.hasClass('file-preview-success')) { + self._setThumbStatus($thumb, 'Loading'); + $h.addCss($thumb, 'file-uploading'); + } + $btnUpload.attr('disabled', true); + $btnDelete.attr('disabled', true); + }); + } + self._checkBatchPreupload(outData, jqXHR); + }; + fnSuccess = function (data, textStatus, jqXHR) { + /** @namespace data.errorkeys */ + var outData = self._getOutData(formdata, jqXHR, data), key = 0, + $thumbs = self._getThumbs(':not(.file-preview-success)'), + keys = $h.isEmpty(data) || $h.isEmpty(data.errorkeys) ? [] : data.errorkeys; + + if ($h.isEmpty(data) || $h.isEmpty(data.error)) { + self._raise('filebatchuploadsuccess', [outData]); + setAllUploaded(); + if (self.showPreview) { + $thumbs.each(function () { + var $thumb = $(this); + self._setThumbStatus($thumb, 'Success'); + $thumb.removeClass('file-uploading'); + $thumb.find('.kv-file-upload').hide().removeAttr('disabled'); + }); + self._initUploadSuccess(data); + } else { + self.reset(); + } + self._setProgress(101); + } else { + if (self.showPreview) { + $thumbs.each(function () { + var $thumb = $(this); + $thumb.removeClass('file-uploading'); + $thumb.find('.kv-file-upload').removeAttr('disabled'); + $thumb.find('.kv-file-remove').removeAttr('disabled'); + if (keys.length === 0 || $.inArray(key, keys) !== -1) { + self._setPreviewError($thumb, true); + if (!self.retryErrorUploads) { + $thumb.find('.kv-file-upload').hide(); + self.fileManager.remove($thumb); + } + } else { + $thumb.find('.kv-file-upload').hide(); + self._setThumbStatus($thumb, 'Success'); + self.fileManager.remove($thumb); + } + if (!$thumb.hasClass('file-preview-error') || self.retryErrorUploads) { + key++; + } + }); + self._initUploadSuccess(data); + } + errMsg = self._parseError(op, jqXHR, self.msgUploadError); + self._showFileError(errMsg, outData, 'filebatchuploaderror'); + self._setProgress(101, self.$progress, self.msgUploadError); + } + }; + fnComplete = function () { + self.unlock(); + self._initSuccessThumbs(); + self._clearFileInput(); + self._raise('filebatchuploadcomplete', [self.fileManager.stack, self._getExtraData()]); + }; + fnError = function (jqXHR, textStatus, errorThrown) { + var outData = self._getOutData(formdata, jqXHR); + errMsg = self._parseError(op, jqXHR, errorThrown); + self._showFileError(errMsg, outData, 'filebatchuploaderror'); + self.uploadFileCount = total - 1; + if (!self.showPreview) { + return; + } + self._getThumbs().each(function () { + var $thumb = $(this); + $thumb.removeClass('file-uploading'); + if (self._getThumbFile($thumb)) { + self._setPreviewError($thumb); + } + }); + self._getThumbs().removeClass('file-uploading'); + self._getThumbs(' .kv-file-upload').removeAttr('disabled'); + self._getThumbs(' .kv-file-delete').removeAttr('disabled'); + self._setProgress(101, self.$progress, self.msgAjaxProgressError.replace('{operation}', op)); + }; + var ctr = 0; + $.each(self.fileManager.stack, function (key, data) { + if (!$h.isEmpty(data.file)) { + self._setFileData(formdata, data.file, (data.nameFmt || ('untitled_' + ctr)), key); + } + ctr++; + }); + self._ajaxSubmit(fnBefore, fnSuccess, fnComplete, fnError, formdata); + }, + _uploadExtraOnly: function () { + var self = this, params = {}, fnBefore, fnSuccess, fnComplete, fnError, formdata = new FormData(), errMsg, + op = self.ajaxOperations.uploadExtra; + fnBefore = function (jqXHR) { + self.lock(); + var outData = self._getOutData(formdata, jqXHR); + self._setProgress(50); + params.data = outData; + params.xhr = jqXHR; + self._checkBatchPreupload(outData, jqXHR); + }; + fnSuccess = function (data, textStatus, jqXHR) { + var outData = self._getOutData(formdata, jqXHR, data); + if ($h.isEmpty(data) || $h.isEmpty(data.error)) { + self._raise('filebatchuploadsuccess', [outData]); + self._clearFileInput(); + self._initUploadSuccess(data); + self._setProgress(101); + } else { + errMsg = self._parseError(op, jqXHR, self.msgUploadError); + self._showFileError(errMsg, outData, 'filebatchuploaderror'); + } + }; + fnComplete = function () { + self.unlock(); + self._clearFileInput(); + self._raise('filebatchuploadcomplete', [self.fileManager.stack, self._getExtraData()]); + }; + fnError = function (jqXHR, textStatus, errorThrown) { + var outData = self._getOutData(formdata, jqXHR); + errMsg = self._parseError(op, jqXHR, errorThrown); + params.data = outData; + self._showFileError(errMsg, outData, 'filebatchuploaderror'); + self._setProgress(101, self.$progress, self.msgAjaxProgressError.replace('{operation}', op)); + }; + self._ajaxSubmit(fnBefore, fnSuccess, fnComplete, fnError, formdata); + }, + _deleteFileIndex: function ($frame) { + var self = this, ind = $frame.attr('data-fileindex'), rev = self.reversePreviewOrder; + if (ind.substring(0, 5) === $h.INIT_FLAG) { + ind = parseInt(ind.replace($h.INIT_FLAG, '')); + self.initialPreview = $h.spliceArray(self.initialPreview, ind, rev); + self.initialPreviewConfig = $h.spliceArray(self.initialPreviewConfig, ind, rev); + self.initialPreviewThumbTags = $h.spliceArray(self.initialPreviewThumbTags, ind, rev); + self.getFrames().each(function () { + var $nFrame = $(this), nInd = $nFrame.attr('data-fileindex'); + if (nInd.substring(0, 5) === $h.INIT_FLAG) { + nInd = parseInt(nInd.replace($h.INIT_FLAG, '')); + if (nInd > ind) { + nInd--; + $nFrame.attr('data-fileindex', $h.INIT_FLAG + nInd); + } + } + }); + } + }, + _resetCaption: function () { + var self = this; + setTimeout(function () { + var cap = '', n, chk = self.previewCache.count(true), len = self.fileManager.count(), file, + incomplete = ':not(.file-preview-success):not(.file-preview-error)', cfg, + hasThumb = self.showPreview && self.getFrames(incomplete).length; + if (len === 0 && chk === 0 && !hasThumb) { + self.reset(); + } else { + n = chk + len; + if (n > 1) { + cap = self._getMsgSelected(n); + } else { + if (len === 0) { + cfg = self.initialPreviewConfig[0]; + cap = ''; + if (cfg) { + cap = cfg.caption || cfg.filename || '' + } + if (!cap) { + cap = self._getMsgSelected(n); + } + } else { + file = self.fileManager.getFirstFile(); + cap = file ? file.nameFmt : '_'; + } + } + self._setCaption(cap); + } + }, self.processDelay); + }, + _initFileActions: function () { + var self = this; + if (!self.showPreview) { + return; + } + self._initZoomButton(); + self.getFrames(' .kv-file-remove').each(function () { + var $el = $(this), $frame = $el.closest($h.FRAMES), hasError, id = $frame.attr('id'), + ind = $frame.attr('data-fileindex'), status, fm = self.fileManager; + self._handler($el, 'click', function () { + status = self._raise('filepreremove', [id, ind]); + if (status === false || !self._validateMinCount()) { + return false; + } + hasError = $frame.hasClass('file-preview-error'); + $h.cleanMemory($frame); + $frame.fadeOut('slow', function () { + self.fileManager.remove($frame); + self._clearObjects($frame); + $frame.remove(); + if (id && hasError) { + self.$errorContainer.find('li[data-thumb-id="' + id + '"]').fadeOut('fast', function () { + $(this).remove(); + if (!self._errorsExist()) { + self._resetErrors(); + } + }); + } + self._clearFileInput(); + self._resetCaption(); + self._raise('fileremoved', [id, ind]); + }); + }); + }); + self.getFrames(' .kv-file-upload').each(function () { + var $el = $(this); + self._handler($el, 'click', function () { + var $frame = $el.closest($h.FRAMES), fileId = self._getThumbFileId($frame); + self._hideProgress(); + if ($frame.hasClass('file-preview-error') && !self.retryErrorUploads) { + return; + } + self._uploadSingle(self.fileManager.getIndex(fileId), fileId, false); + }); + }); + }, + _initPreviewActions: function () { + var self = this, $preview = self.$preview, deleteExtraData = self.deleteExtraData || {}, + btnRemove = $h.FRAMES + ' .kv-file-remove', settings = self.fileActionSettings, + origClass = settings.removeClass, errClass = settings.removeErrorClass, + resetProgress = function () { + var hasFiles = self.isAjaxUpload ? self.previewCache.count(true) : self._inputFileCount(); + if (!self.getFrames().length && !hasFiles) { + self._setCaption(''); + self.reset(); + self.initialCaption = ''; + } else { + self._resetCaption(); + } + }; + self._initZoomButton(); + $preview.find(btnRemove).each(function () { + var $el = $(this), vUrl = $el.data('url') || self.deleteUrl, vKey = $el.data('key'), errMsg, fnBefore, + fnSuccess, fnError, op = self.ajaxOperations.deleteThumb; + if ($h.isEmpty(vUrl) || vKey === undefined) { + return; + } + if (typeof vUrl === 'function') { + vUrl = vUrl(); + } + var $frame = $el.closest($h.FRAMES), cache = self.previewCache.data, settings, params, config, + fileName, extraData, index = $frame.attr('data-fileindex'); + index = parseInt(index.replace($h.INIT_FLAG, '')); + config = $h.isEmpty(cache.config) && $h.isEmpty(cache.config[index]) ? null : cache.config[index]; + extraData = $h.isEmpty(config) || $h.isEmpty(config.extra) ? deleteExtraData : config.extra; + fileName = config && (config.filename || config.caption) || ''; + if (typeof extraData === 'function') { + extraData = extraData(); + } + params = {id: $el.attr('id'), key: vKey, extra: extraData}; + fnBefore = function (jqXHR) { + self.ajaxAborted = false; + self._raise('filepredelete', [vKey, jqXHR, extraData]); + if (self._abort()) { + jqXHR.abort(); + } else { + $el.removeClass(errClass); + $h.addCss($frame, 'file-uploading'); + $h.addCss($el, 'disabled ' + origClass); + } + }; + fnSuccess = function (data, textStatus, jqXHR) { + var n, cap; + if (!$h.isEmpty(data) && !$h.isEmpty(data.error)) { + params.jqXHR = jqXHR; + params.response = data; + errMsg = self._parseError(op, jqXHR, self.msgDeleteError, fileName); + self._showFileError(errMsg, params, 'filedeleteerror'); + $frame.removeClass('file-uploading'); + $el.removeClass('disabled ' + origClass).addClass(errClass); + resetProgress(); + return; + } + $frame.removeClass('file-uploading').addClass('file-deleted'); + $frame.fadeOut('slow', function () { + index = parseInt(($frame.attr('data-fileindex')).replace($h.INIT_FLAG, '')); + self.previewCache.unset(index); + self._deleteFileIndex($frame); + n = self.previewCache.count(true); + cap = n > 0 ? self._getMsgSelected(n) : ''; + self._setCaption(cap); + self._raise('filedeleted', [vKey, jqXHR, extraData]); + self._clearObjects($frame); + $frame.remove(); + resetProgress(); + }); + }; + fnError = function (jqXHR, textStatus, errorThrown) { + var errMsg = self._parseError(op, jqXHR, errorThrown, fileName); + params.jqXHR = jqXHR; + params.response = {}; + self._showFileError(errMsg, params, 'filedeleteerror'); + $frame.removeClass('file-uploading'); + $el.removeClass('disabled ' + origClass).addClass(errClass); + resetProgress(); + }; + self._initAjaxSettings(); + self._mergeAjaxCallback('beforeSend', fnBefore, 'delete'); + self._mergeAjaxCallback('success', fnSuccess, 'delete'); + self._mergeAjaxCallback('error', fnError, 'delete'); + settings = $.extend(true, {}, { + url: self._encodeURI(vUrl), + type: 'POST', + dataType: 'json', + data: $.extend(true, {}, {key: vKey}, extraData) + }, self._ajaxDeleteSettings); + self._handler($el, 'click', function () { + if (!self._validateMinCount()) { + return false; + } + self.ajaxAborted = false; + self._raise('filebeforedelete', [vKey, extraData]); + if (self.ajaxAborted instanceof Promise) { + self.ajaxAborted.then(function (result) { + if (!result) { + $.ajax(settings); + } + }); + } else { + if (!self.ajaxAborted) { + $.ajax(settings); + } + } + }); + }); + }, + _hideFileIcon: function () { + var self = this; + if (self.overwriteInitial) { + self.$captionContainer.removeClass('icon-visible'); + } + }, + _showFileIcon: function () { + var self = this; + $h.addCss(self.$captionContainer, 'icon-visible'); + }, + _getSize: function (bytes, sizes) { + var self = this, size = parseFloat(bytes), i, func = self.fileSizeGetter, out; + if (!$.isNumeric(bytes) || !$.isNumeric(size)) { + return ''; + } + if (typeof func === 'function') { + out = func(size); + } else { + if (size === 0) { + out = '0.00 B'; + } else { + if (!sizes) { + sizes = self.sizeUnits; + } + i = Math.floor(Math.log(size) / Math.log(self.bytesToKB)); + out = (size / Math.pow(self.bytesToKB, i)).toFixed(2) + ' ' + sizes[i]; + } + } + return self._getLayoutTemplate('size').replace('{sizeText}', out); + }, + _getFileType: function (ftype) { + var self = this; + return self.mimeTypeAliases[ftype] || ftype; + }, + _generatePreviewTemplate: function ( + cat, + data, + fname, + ftype, + previewId, + fileId, + isError, + size, + frameClass, + foot, + ind, + templ, + attrs, + zoomData + ) { + var self = this, caption = self.slug(fname), prevContent, zoomContent = '', styleAttribs = '', + screenW = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth, + config, title = caption, alt = caption, typeCss = 'type-default', getContent, + footer = foot || self._renderFileFooter(cat, caption, size, 'auto', isError), + forcePrevIcon = self.preferIconicPreview, forceZoomIcon = self.preferIconicZoomPreview, + newCat = forcePrevIcon ? 'other' : cat; + config = screenW < 400 ? (self.previewSettingsSmall[newCat] || self.defaults.previewSettingsSmall[newCat]) : + (self.previewSettings[newCat] || self.defaults.previewSettings[newCat]); + if (config) { + $.each(config, function (key, val) { + styleAttribs += key + ':' + val + ';'; + }); + } + getContent = function (vCat, vData, zoom, frameCss, vZoomData) { + var id = zoom ? 'zoom-' + previewId : previewId, tmplt = self._getPreviewTemplate(vCat), + css = (frameClass || '') + ' ' + frameCss, tokens; + if (self.frameClass) { + css = self.frameClass + ' ' + css; + } + if (zoom) { + css = css.replace(' ' + $h.SORT_CSS, ''); + } + tmplt = self._parseFilePreviewIcon(tmplt, fname); + if (cat === 'object' && !ftype) { + $.each(self.defaults.fileTypeSettings, function (key, func) { + if (key === 'object' || key === 'other') { + return; + } + if (func(fname, ftype)) { + typeCss = 'type-' + key; + } + }); + } + if (!$h.isEmpty(attrs)) { + if (attrs.title !== undefined && attrs.title !== null) { + title = attrs.title; + } + if (attrs.alt !== undefined && attrs.alt !== null) { + title = attrs.alt; + } + } + tokens = { + 'previewId': id, + 'caption': caption, + 'title': title, + 'alt': alt, + 'frameClass': css, + 'type': self._getFileType(ftype), + 'fileindex': ind, + 'fileid': fileId || '', + 'typeCss': typeCss, + 'footer': footer, + 'data': vData, +// 'data': zoom && vZoomData ? $h.ZOOM_VAR + '{zoomData}' : vData, + 'template': templ || cat, + 'style': styleAttribs ? 'style="' + styleAttribs + '"' : '', + 'zoomData': vZoomData ? encodeURIComponent(vZoomData) : '' + }; + if (zoom) { + tokens.zoomCache = ''; + tokens.zoomData = '{zoomData}'; + } + return tmplt.setTokens(tokens); + }; + ind = ind || previewId.slice(previewId.lastIndexOf('-') + 1); + if (self.fileActionSettings.showZoom) { + zoomContent = getContent((forceZoomIcon ? 'other' : cat), data, true, 'kv-zoom-thumb', zoomData); + } + zoomContent = '\n' + self._getLayoutTemplate('zoomCache').replace('{zoomContent}', zoomContent); + if (typeof self.sanitizeZoomCache === 'function') { + zoomContent = self.sanitizeZoomCache(zoomContent); + } + prevContent = getContent((forcePrevIcon ? 'other' : cat), data, false, 'kv-preview-thumb', zoomData); + return prevContent.setTokens({zoomCache: zoomContent}); + }, + _addToPreview: function ($preview, content) { + var self = this, $el; + content = $h.cspBuffer.stash(content); + $el = self.reversePreviewOrder ? $preview.prepend(content) : $preview.append(content); + $h.cspBuffer.apply($preview); + return $el; + }, + _previewDefault: function (file, isDisabled) { + var self = this, $preview = self.$preview; + if (!self.showPreview) { + return; + } + var fname = $h.getFileName(file), ftype = file ? file.type : '', content, size = file.size || 0, + caption = self._getFileName(file, ''), isError = isDisabled === true && !self.isAjaxUpload, + data = $h.createObjectURL(file), fileId = self.fileManager.getId(file), + previewId = self._getThumbId(fileId); + self._clearDefaultPreview(); + content = self._generatePreviewTemplate('other', data, fname, ftype, previewId, fileId, isError, size); + self._addToPreview($preview, content); + self._setThumbAttr(previewId, caption, size); + if (isDisabled === true && self.isAjaxUpload) { + self._setThumbStatus(self._getFrame(previewId), 'Error'); + } + }, + _previewFile: function (i, file, theFile, data, fileInfo) { + if (!this.showPreview) { + return; + } + var self = this, fname = $h.getFileName(file), ftype = fileInfo.type, caption = fileInfo.name, + cat = self._parseFileType(ftype, fname), content, $preview = self.$preview, fsize = file.size || 0, + iData = cat === 'image' ? theFile.target.result : data, fm = self.fileManager, + fileId = fm.getId(file), previewId = self._getThumbId(fileId); + /** @namespace window.DOMPurify */ + content = self._generatePreviewTemplate(cat, iData, fname, ftype, previewId, fileId, false, fsize); + self._clearDefaultPreview(); + self._addToPreview($preview, content); + var $thumb = self._getFrame(previewId); + self._validateImageOrientation($thumb.find('img'), file, previewId, fileId, caption, ftype, fsize, iData); + self._setThumbAttr(previewId, caption, fsize); + self._initSortable(); + }, + _setThumbAttr: function (id, caption, size, description) { + var self = this, $frame = self._getFrame(id); + if ($frame.length) { + size = size && size > 0 ? self._getSize(size) : ''; + $frame.data({'caption': caption, 'size': size, 'description': description || ''}); + } + }, + _setInitThumbAttr: function () { + var self = this, data = self.previewCache.data, len = self.previewCache.count(true), config, + caption, size, description, previewId; + if (len === 0) { + return; + } + for (var i = 0; i < len; i++) { + config = data.config[i]; + previewId = self.previewInitId + '-' + $h.INIT_FLAG + i; + caption = $h.ifSet('caption', config, $h.ifSet('filename', config)); + size = $h.ifSet('size', config); + description = $h.ifSet('description', config); + self._setThumbAttr(previewId, caption, size, description); + } + }, + _slugDefault: function (text) { + // noinspection RegExpRedundantEscape + return $h.isEmpty(text, true) ? '' : String(text).replace(/[\[\]\/\{}:;#%=\(\)\*\+\?\\\^\$\|<>&"']/g, '_'); + }, + _updateFileDetails: function (numFiles) { + var self = this, $el = self.$element, label, n, log, nFiles, file, + name = ($h.isIE(9) && $h.findFileName($el.val())) || ($el[0].files[0] && $el[0].files[0].name); + if (!name && self.fileManager.count() > 0) { + file = self.fileManager.getFirstFile(); + label = file.nameFmt; + } else { + label = name ? self.slug(name) : '_'; + } + n = self.isAjaxUpload ? self.fileManager.count() : numFiles; + nFiles = self.previewCache.count(true) + n; + log = n === 1 ? label : self._getMsgSelected(nFiles, !self.isAjaxUpload && !self.isError); + if (self.isError) { + self.$previewContainer.removeClass('file-thumb-loading'); + self._initCapStatus(); + self.$previewStatus.html(''); + self.$captionContainer.removeClass('icon-visible'); + } else { + self._showFileIcon(); + } + self._setCaption(log, self.isError); + self.$container.removeClass('file-input-new file-input-ajax-new'); + self._raise('fileselect', [numFiles, label]); + if (self.previewCache.count(true)) { + self._initPreviewActions(); + } + }, + _setThumbStatus: function ($thumb, status) { + var self = this; + if (!self.showPreview) { + return; + } + var icon = 'indicator' + status, msg = icon + 'Title', + css = 'file-preview-' + status.toLowerCase(), + $indicator = $thumb.find('.file-upload-indicator'), + config = self.fileActionSettings; + $thumb.removeClass('file-preview-success file-preview-error file-preview-paused file-preview-loading'); + if (status === 'Success') { + $thumb.find('.file-drag-handle').remove(); + } + $h.setHtml($indicator, config[icon]); + $indicator.attr('title', config[msg]); + $thumb.addClass(css); + if (status === 'Error' && !self.retryErrorUploads) { + $thumb.find('.kv-file-upload').attr('disabled', true); + } + }, + _setProgressCancelled: function () { + var self = this; + self._setProgress(101, self.$progress, self.msgCancelled); + }, + _setProgress: function (p, $el, error, stats) { + var self = this; + $el = $el || self.$progress; + if (!$el.length) { + return; + } + var pct = Math.min(p, 100), out, pctLimit = self.progressUploadThreshold, + t = p <= 100 ? self.progressTemplate : self.progressCompleteTemplate, + template = pct < 100 ? self.progressTemplate : + (error ? (self.paused ? self.progressPauseTemplate : self.progressErrorTemplate) : t); + if (p >= 100) { + stats = ''; + } + if (!$h.isEmpty(template)) { + if (pctLimit && pct > pctLimit && p <= 100) { + out = template.setTokens({'percent': pctLimit, 'status': self.msgUploadThreshold}); + } else { + out = template.setTokens({'percent': pct, 'status': (p > 100 ? self.msgUploadEnd : pct + '%')}); + } + stats = stats || ''; + out = out.setTokens({stats: stats}); + $h.setHtml($el, out); + if (error) { + $h.setHtml($el.find('[role="progressbar"]'), error); + } + } + }, + _hasFiles: function () { + var el = this.$element[0]; + return !!(el && el.files && el.files.length); + }, + _setFileDropZoneTitle: function () { + var self = this, $zone = self.$container.find('.file-drop-zone'), title = self.dropZoneTitle, strFiles; + if (self.isClickable) { + strFiles = $h.isEmpty(self.$element.attr('multiple')) ? self.fileSingle : self.filePlural; + title += self.dropZoneClickTitle.replace('{files}', strFiles); + } + $zone.find('.' + self.dropZoneTitleClass).remove(); + if (!self.showPreview || $zone.length === 0 || self.fileManager.count() > 0 || !self.dropZoneEnabled || + self.previewCache.count() > 0 || (!self.isAjaxUpload && self._hasFiles())) { + return; + } + if ($zone.find($h.FRAMES).length === 0 && $h.isEmpty(self.defaultPreviewContent)) { + $zone.prepend('
    ' + title + '
    '); + } + self.$container.removeClass('file-input-new'); + $h.addCss(self.$container, 'file-input-ajax-new'); + }, + _getStats: function (stats) { + var self = this, pendingTime, t; + if (!self.showUploadStats || !stats || !stats.bitrate) { + return ''; + } + t = self._getLayoutTemplate('stats'); + pendingTime = (!stats.elapsed || !stats.bps) ? self.msgCalculatingTime : + self.msgPendingTime.setTokens({time: $h.getElapsed(Math.ceil(stats.pendingBytes / stats.bps))}); + + return t.setTokens({ + uploadSpeed: stats.bitrate, + pendingTime: pendingTime + }); + }, + _setResumableProgress: function (pct, stats, $thumb) { + var self = this, rm = self.resumableManager, obj = $thumb ? rm : self, + $prog = $thumb ? $thumb.find('.file-thumb-progress') : null; + if (obj.lastProgress === 0) { + obj.lastProgress = pct; + } + if (pct < obj.lastProgress) { + pct = obj.lastProgress; + } + self._setProgress(pct, $prog, null, self._getStats(stats)); + obj.lastProgress = pct; + }, + _toggleResumableProgress: function (template, message) { + var self = this, $progress = self.$progress; + if ($progress && $progress.length) { + $h.setHtml($progress, template.setTokens({ + percent: 101, + status: message, + stats: '' + })); + } + }, + _setFileUploadStats: function (id, pct, stats) { + var self = this, $prog = self.$progress; + if (!self.showPreview && (!$prog || !$prog.length)) { + return; + } + var fm = self.fileManager, rm = self.resumableManager, $thumb = fm.getThumb(id), pctTot, + totUpSize = 0, totSize = fm.getTotalSize(), totStats = $.extend(true, {}, stats); + if (self.enableResumableUpload) { + var loaded = stats.loaded, currUplSize = rm.getUploadedSize(), currTotSize = rm.file.size, totLoaded; + loaded += currUplSize; + totLoaded = fm.uploadedSize + loaded; + pct = $h.round(100 * loaded / currTotSize); + stats.pendingBytes = currTotSize - currUplSize; + self._setResumableProgress(pct, stats, $thumb); + pctTot = Math.floor(100 * totLoaded / totSize); + totStats.pendingBytes = totSize - totLoaded; + self._setResumableProgress(pctTot, totStats); + } else { + fm.setProgress(id, pct); + $prog = $thumb && $thumb.length ? $thumb.find('.file-thumb-progress') : null; + self._setProgress(pct, $prog, null, self._getStats(stats)); + $.each(fm.stats, function (id, cfg) { + totUpSize += cfg.loaded; + }); + totStats.pendingBytes = totSize - totUpSize; + pctTot = $h.round(totUpSize / totSize * 100); + self._setProgress(pctTot, null, null, self._getStats(totStats)); + } + }, + _validateMinCount: function () { + var self = this, len = self.isAjaxUpload ? self.fileManager.count() : self._inputFileCount(); + if (self.validateInitialCount && self.minFileCount > 0 && self._getFileCount(len - 1) < self.minFileCount) { + self._noFilesError({}); + return false; + } + return true; + }, + _getFileCount: function (fileCount, includeInitial) { + var self = this, addCount = 0; + if (includeInitial === undefined) { + includeInitial = self.validateInitialCount && !self.overwriteInitial; + } + if (includeInitial) { + addCount = self.previewCache.count(true); + fileCount += addCount; + } + return fileCount; + }, + _getFileId: function (file) { + return $h.getFileId(file, this.generateFileId); + }, + _getFileName: function (file, defaultValue) { + var self = this, fileName = $h.getFileName(file); + return fileName ? self.slug(fileName) : defaultValue; + }, + _getFileNames: function (skipNull) { + var self = this; + return self.filenames.filter(function (n) { + return (skipNull ? n !== undefined : n !== undefined && n !== null); + }); + }, + _setPreviewError: function ($thumb, keepFile) { + var self = this, removeFrame = self.removeFromPreviewOnError && !self.retryErrorUploads; + if (!keepFile || removeFrame) { + self.fileManager.remove($thumb); + } + if (!self.showPreview) { + return; + } + if (removeFrame) { + $thumb.remove(); + return; + } else { + self._setThumbStatus($thumb, 'Error'); + } + self._refreshUploadButton($thumb); + }, + _refreshUploadButton: function ($thumb) { + var self = this, $btn = $thumb.find('.kv-file-upload'), cfg = self.fileActionSettings, + icon = cfg.uploadIcon, title = cfg.uploadTitle; + if (!$btn.length) { + return; + } + if (self.retryErrorUploads) { + icon = cfg.uploadRetryIcon; + title = cfg.uploadRetryTitle; + } + $btn.attr('title', title); + $h.setHtml($btn, icon); + }, + _checkDimensions: function (i, chk, $img, $thumb, fname, type, params) { + var self = this, msg, dim, tag = chk === 'Small' ? 'min' : 'max', limit = self[tag + 'Image' + type], + $imgEl, isValid; + if ($h.isEmpty(limit) || !$img.length) { + return; + } + $imgEl = $img[0]; + dim = (type === 'Width') ? $imgEl.naturalWidth || $imgEl.width : $imgEl.naturalHeight || $imgEl.height; + isValid = chk === 'Small' ? dim >= limit : dim <= limit; + if (isValid) { + return; + } + msg = self['msgImage' + type + chk].setTokens({'name': fname, 'size': limit}); + self._showFileError(msg, params); + self._setPreviewError($thumb); + }, + _getExifObj: function (data) { + var self = this, exifObj, error = $h.logMessages.exifWarning; + if (data.slice(0, 23) !== 'data:image/jpeg;base64,' && data.slice(0, 22) !== 'data:image/jpg;base64,') { + exifObj = null; + return; + } + try { + exifObj = window.piexif ? window.piexif.load(data) : null; + } catch (err) { + exifObj = null; + error = err && err.message || ''; + } + if (!exifObj) { + self._log($h.logMessages.badExifParser, {details: error}); + } + return exifObj; + }, + setImageOrientation: function ($img, $zoomImg, value, $thumb) { + var self = this, invalidImg = !$img || !$img.length, invalidZoomImg = !$zoomImg || !$zoomImg.length, $mark, + isHidden = false, $div, zoomOnly = invalidImg && $thumb && $thumb.attr('data-template') === 'image', ev; + if (invalidImg && invalidZoomImg) { + return; + } + ev = 'load.fileinputimageorient'; + if (zoomOnly) { + $img = $zoomImg; + $zoomImg = null; + $img.css(self.previewSettings.image); + $div = $(document.createElement('div')).appendTo($thumb.find('.kv-file-content')); + $mark = $(document.createElement('span')).insertBefore($img); + $img.css('visibility', 'hidden').removeClass('file-zoom-detail').appendTo($div); + } else { + isHidden = !$img.is(':visible'); + } + $img.off(ev).on(ev, function () { + if (isHidden) { + self.$preview.removeClass('hide-content'); + $thumb.find('.kv-file-content').css('visibility', 'hidden'); + } + var img = $img[0], zoomImg = $zoomImg && $zoomImg.length ? $zoomImg[0] : null, + h = img.offsetHeight, w = img.offsetWidth, r = $h.getRotation(value); + if (isHidden) { + $thumb.find('.kv-file-content').css('visibility', 'visible'); + self.$preview.addClass('hide-content'); + } + $img.data('orientation', value); + if (zoomImg) { + $zoomImg.data('orientation', value); + } + if (value < 5) { + $h.setTransform(img, r); + $h.setTransform(zoomImg, r); + return; + } + var offsetAngle = Math.atan(w / h), origFactor = Math.sqrt(Math.pow(h, 2) + Math.pow(w, 2)), + scale = !origFactor ? 1 : (h / Math.cos(Math.PI / 2 + offsetAngle)) / origFactor, + s = ' scale(' + Math.abs(scale) + ')'; + $h.setTransform(img, r + s); + $h.setTransform(zoomImg, r + s); + if (zoomOnly) { + $img.css('visibility', 'visible').insertAfter($mark).addClass('file-zoom-detail'); + $mark.remove(); + $div.remove(); + } + }); + }, + _validateImageOrientation: function ($img, file, previewId, fileId, caption, ftype, fsize, iData) { + var self = this, exifObj = null, value, autoOrientImage = self.autoOrientImage, selector; + if (self.canOrientImage) { + $img.css('image-orientation', (autoOrientImage ? 'from-image' : 'none')); + self._validateImage(previewId, fileId, caption, ftype, fsize, iData, exifObj); + return; + } + selector = $h.getZoomSelector(previewId, ' img'); + exifObj = autoOrientImage ? self._getExifObj(iData) : null; + value = exifObj ? exifObj['0th'][piexif.ImageIFD.Orientation] : null; // jshint ignore:line + if (!value) { + self._validateImage(previewId, fileId, caption, ftype, fsize, iData, exifObj); + return; + } + self.setImageOrientation($img, $(selector), value, self._getFrame(previewId)); + self._raise('fileimageoriented', {'$img': $img, 'file': file}); + self._validateImage(previewId, fileId, caption, ftype, fsize, iData, exifObj); + }, + _validateImage: function (previewId, fileId, fname, ftype, fsize, iData, exifObj) { + var self = this, $preview = self.$preview, params, w1, w2, $thumb = self._getFrame(previewId), + i = $thumb.attr('data-fileindex'), $img = $thumb.find('img'); + fname = fname || 'Untitled'; + $img.one('load', function () { + w1 = $thumb.width(); + w2 = $preview.width(); + if (w1 > w2) { + $img.css('width', '100%'); + } + params = {ind: i, id: previewId, fileId: fileId}; + self._checkDimensions(i, 'Small', $img, $thumb, fname, 'Width', params); + self._checkDimensions(i, 'Small', $img, $thumb, fname, 'Height', params); + if (!self.resizeImage) { + self._checkDimensions(i, 'Large', $img, $thumb, fname, 'Width', params); + self._checkDimensions(i, 'Large', $img, $thumb, fname, 'Height', params); + } + self._raise('fileimageloaded', [previewId]); + self.fileManager.addImage(fileId, { + ind: i, + img: $img, + thumb: $thumb, + pid: previewId, + typ: ftype, + siz: fsize, + validated: false, + imgData: iData, + exifObj: exifObj + }); + $thumb.data('exif', exifObj); + self._validateAllImages(); + }).one('error', function () { + self._raise('fileimageloaderror', [previewId]); + }); + }, + _validateAllImages: function () { + var self = this, counter = {val: 0}, numImgs = self.fileManager.getImageCount(), fsize, + minSize = self.resizeIfSizeMoreThan; + if (numImgs !== self.fileManager.totalImages) { + return; + } + self._raise('fileimagesloaded'); + if (!self.resizeImage) { + return; + } + $.each(self.fileManager.loadedImages, function (id, config) { + if (!config.validated) { + fsize = config.siz; + if (fsize && fsize > minSize * self.bytesToKB) { + self._getResizedImage(id, config, counter, numImgs); + } + config.validated = true; + } + }); + }, + _getResizedImage: function (id, config, counter, numImgs) { + var self = this, img = $(config.img)[0], width = img.naturalWidth, height = img.naturalHeight, blob, + ratio = 1, maxWidth = self.maxImageWidth || width, maxHeight = self.maxImageHeight || height, + isValidImage = !!(width && height), chkWidth, chkHeight, canvas = self.imageCanvas, dataURI, + context = self.imageCanvasContext, type = config.typ, pid = config.pid, ind = config.ind, + $thumb = config.thumb, throwError, msg, exifObj = config.exifObj, exifStr, file, params, evParams; + throwError = function (msg, params, ev) { + if (self.isAjaxUpload) { + self._showFileError(msg, params, ev); + } else { + self._showError(msg, params, ev); + } + self._setPreviewError($thumb); + }; + file = self.fileManager.getFile(id); + params = {id: pid, 'index': ind, fileId: id}; + evParams = [id, pid, ind]; + if (!file || !isValidImage || (width <= maxWidth && height <= maxHeight)) { + if (isValidImage && file) { + self._raise('fileimageresized', evParams); + } + counter.val++; + if (counter.val === numImgs) { + self._raise('fileimagesresized'); + } + if (!isValidImage) { + throwError(self.msgImageResizeError, params, 'fileimageresizeerror'); + return; + } + } + type = type || self.resizeDefaultImageType; + chkWidth = width > maxWidth; + chkHeight = height > maxHeight; + if (self.resizePreference === 'width') { + ratio = chkWidth ? maxWidth / width : (chkHeight ? maxHeight / height : 1); + } else { + ratio = chkHeight ? maxHeight / height : (chkWidth ? maxWidth / width : 1); + } + self._resetCanvas(); + width *= ratio; + height *= ratio; + canvas.width = width; + canvas.height = height; + try { + context.drawImage(img, 0, 0, width, height); + dataURI = canvas.toDataURL(type, self.resizeQuality); + if (exifObj) { + exifStr = window.piexif.dump(exifObj); + dataURI = window.piexif.insert(exifStr, dataURI); + } + blob = $h.dataURI2Blob(dataURI); + self.fileManager.setFile(id, blob); + self._raise('fileimageresized', evParams); + counter.val++; + if (counter.val === numImgs) { + self._raise('fileimagesresized', [undefined, undefined]); + } + if (!(blob instanceof Blob)) { + throwError(self.msgImageResizeError, params, 'fileimageresizeerror'); + } + } catch (err) { + counter.val++; + if (counter.val === numImgs) { + self._raise('fileimagesresized', [undefined, undefined]); + } + msg = self.msgImageResizeException.replace('{errors}', err.message); + throwError(msg, params, 'fileimageresizeexception'); + } + }, + _showProgress: function () { + var self = this; + if (self.$progress && self.$progress.length) { + self.$progress.show(); + } + }, + _hideProgress: function () { + var self = this; + if (self.$progress && self.$progress.length) { + self.$progress.hide(); + } + }, + _initBrowse: function ($container) { + var self = this, $el = self.$element; + if (self.showBrowse) { + self.$btnFile = $container.find('.btn-file').append($el); + } else { + $el.appendTo($container).attr('tabindex', -1); + $h.addCss($el, 'file-no-browse'); + } + }, + _initClickable: function () { + var self = this, $zone, $tmpZone; + if (!self.isClickable) { + return; + } + $zone = self.$dropZone; + if (!self.isAjaxUpload) { + $tmpZone = self.$preview.find('.file-default-preview'); + if ($tmpZone.length) { + $zone = $tmpZone; + } + } + + $h.addCss($zone, 'clickable'); + $zone.attr('tabindex', -1); + self._handler($zone, 'click', function (e) { + var $tar = $(e.target); + if (!self.$errorContainer.is(':visible') && (!$tar.parents( + '.file-preview-thumbnails').length || $tar.parents( + '.file-default-preview').length)) { + self.$element.data('zoneClicked', true).trigger('click'); + $zone.blur(); + } + }); + }, + _initCaption: function () { + var self = this, cap = self.initialCaption || ''; + if (self.overwriteInitial || $h.isEmpty(cap)) { + self.$caption.val(''); + return false; + } + self._setCaption(cap); + return true; + }, + _setCaption: function (content, isError) { + var self = this, title, out, icon, n, cap, file; + if (!self.$caption.length) { + return; + } + self.$captionContainer.removeClass('icon-visible'); + if (isError) { + title = $('
    ' + self.msgValidationError + '
    ').text(); + n = self.fileManager.count(); + if (n) { + file = self.fileManager.getFirstFile(); + cap = n === 1 && file ? file.nameFmt : self._getMsgSelected(n); + } else { + cap = self._getMsgSelected(self.msgNo); + } + out = $h.isEmpty(content) ? cap : content; + icon = '' + self.msgValidationErrorIcon + ''; + } else { + if ($h.isEmpty(content)) { + self.$caption.attr('title', ''); + return; + } + title = $('
    ' + content + '
    ').text(); + out = title; + icon = self._getLayoutTemplate('fileIcon'); + } + self.$captionContainer.addClass('icon-visible'); + self.$caption.attr('title', title).val(out); + $h.setHtml(self.$captionIcon, icon); + }, + _createContainer: function () { + var self = this, attribs = {'class': 'file-input file-input-new' + (self.rtl ? ' kv-rtl' : '')}, + $container = $h.createElement($h.cspBuffer.stash(self._renderMain())); + $h.cspBuffer.apply($container); + $container.insertBefore(self.$element).attr(attribs); + self._initBrowse($container); + if (self.theme) { + $container.addClass('theme-' + self.theme); + } + return $container; + }, + _refreshContainer: function () { + var self = this, $container = self.$container, $el = self.$element; + $el.insertAfter($container); + $h.setHtml($container, self._renderMain()); + self._initBrowse($container); + self._validateDisabled(); + }, + _validateDisabled: function () { + var self = this; + self.$caption.attr({readonly: self.isDisabled}); + }, + _setTabIndex: function (type, html) { + var self = this, index = self.tabIndexConfig[type]; + return html.setTokens({ + tabIndexConfig: index === undefined || index === null ? '' : 'tabindex="' + index + '"' + }); + }, + _renderMain: function () { + var self = this, + dropCss = self.dropZoneEnabled ? ' file-drop-zone' : 'file-drop-disabled', + close = !self.showClose ? '' : self._getLayoutTemplate('close'), + preview = !self.showPreview ? '' : self._getLayoutTemplate('preview') + .setTokens({'class': self.previewClass, 'dropClass': dropCss}), + css = self.isDisabled ? self.captionClass + ' file-caption-disabled' : self.captionClass, + caption = self.captionTemplate.setTokens({'class': css + ' kv-fileinput-caption'}); + caption = self._setTabIndex('caption', caption); + return self.mainTemplate.setTokens({ + 'class': self.mainClass + (!self.showBrowse && self.showCaption ? ' no-browse' : ''), + 'inputGroupClass': self.inputGroupClass, + 'preview': preview, + 'close': close, + 'caption': caption, + 'upload': self._renderButton('upload'), + 'remove': self._renderButton('remove'), + 'cancel': self._renderButton('cancel'), + 'pause': self._renderButton('pause'), + 'browse': self._renderButton('browse') + }); + + }, + _renderButton: function (type) { + var self = this, tmplt = self._getLayoutTemplate('btnDefault'), css = self[type + 'Class'], + title = self[type + 'Title'], icon = self[type + 'Icon'], label = self[type + 'Label'], + status = self.isDisabled ? ' disabled' : '', btnType = 'button'; + switch (type) { + case 'remove': + if (!self.showRemove) { + return ''; + } + break; + case 'cancel': + if (!self.showCancel) { + return ''; + } + css += ' kv-hidden'; + break; + case 'pause': + if (!self.showPause) { + return ''; + } + css += ' kv-hidden'; + break; + case 'upload': + if (!self.showUpload) { + return ''; + } + if (self.isAjaxUpload && !self.isDisabled) { + tmplt = self._getLayoutTemplate('btnLink').replace('{href}', self.uploadUrl); + } else { + btnType = 'submit'; + } + break; + case 'browse': + if (!self.showBrowse) { + return ''; + } + tmplt = self._getLayoutTemplate('btnBrowse'); + break; + default: + return ''; + } + tmplt = self._setTabIndex(type, tmplt); + + css += type === 'browse' ? ' btn-file' : ' fileinput-' + type + ' fileinput-' + type + '-button'; + if (!$h.isEmpty(label)) { + label = ' ' + label + ''; + } + return tmplt.setTokens({ + 'type': btnType, 'css': css, 'title': title, 'status': status, 'icon': icon, 'label': label + }); + }, + _renderThumbProgress: function () { + var self = this; + return '
    ' + + self.progressInfoTemplate.setTokens({percent: 101, status: self.msgUploadBegin, stats: ''}) + + '
    '; + }, + _renderFileFooter: function (cat, caption, size, width, isError) { + var self = this, config = self.fileActionSettings, rem = config.showRemove, drg = config.showDrag, + upl = config.showUpload, zoom = config.showZoom, out, params, + template = self._getLayoutTemplate('footer'), tInd = self._getLayoutTemplate('indicator'), + ind = isError ? config.indicatorError : config.indicatorNew, + title = isError ? config.indicatorErrorTitle : config.indicatorNewTitle, + indicator = tInd.setTokens({'indicator': ind, 'indicatorTitle': title}); + size = self._getSize(size); + params = {type: cat, caption: caption, size: size, width: width, progress: '', indicator: indicator}; + if (self.isAjaxUpload) { + params.progress = self._renderThumbProgress(); + params.actions = self._renderFileActions(params, upl, false, rem, zoom, drg, false, false, false); + } else { + params.actions = self._renderFileActions(params, false, false, false, zoom, drg, false, false, false); + } + out = template.setTokens(params); + out = $h.replaceTags(out, self.previewThumbTags); + return out; + }, + _renderFileActions: function ( + cfg, + showUpl, + showDwn, + showDel, + showZoom, + showDrag, + disabled, + url, + key, + isInit, + dUrl, + dFile + ) { + var self = this; + if (!cfg.type && isInit) { + cfg.type = 'image'; + } + if (self.enableResumableUpload) { + showUpl = false; + } else { + if (typeof showUpl === 'function') { + showUpl = showUpl(cfg); + } + } + if (typeof showDwn === 'function') { + showDwn = showDwn(cfg); + } + if (typeof showDel === 'function') { + showDel = showDel(cfg); + } + if (typeof showZoom === 'function') { + showZoom = showZoom(cfg); + } + if (typeof showDrag === 'function') { + showDrag = showDrag(cfg); + } + if (!showUpl && !showDwn && !showDel && !showZoom && !showDrag) { + return ''; + } + var vUrl = url === false ? '' : ' data-url="' + url + '"', btnZoom = '', btnDrag = '', css, + vKey = key === false ? '' : ' data-key="' + key + '"', btnDelete = '', btnUpload = '', btnDownload = '', + template = self._getLayoutTemplate('actions'), config = self.fileActionSettings, + otherButtons = self.otherActionButtons.setTokens({'dataKey': vKey, 'key': key}), + removeClass = disabled ? config.removeClass + ' disabled' : config.removeClass; + if (showDel) { + btnDelete = self._getLayoutTemplate('actionDelete').setTokens({ + 'removeClass': removeClass, + 'removeIcon': config.removeIcon, + 'removeTitle': config.removeTitle, + 'dataUrl': vUrl, + 'dataKey': vKey, + 'key': key + }); + } + if (showUpl) { + btnUpload = self._getLayoutTemplate('actionUpload').setTokens({ + 'uploadClass': config.uploadClass, + 'uploadIcon': config.uploadIcon, + 'uploadTitle': config.uploadTitle + }); + } + if (showDwn) { + btnDownload = self._getLayoutTemplate('actionDownload').setTokens({ + 'downloadClass': config.downloadClass, + 'downloadIcon': config.downloadIcon, + 'downloadTitle': config.downloadTitle, + 'downloadUrl': dUrl || self.initialPreviewDownloadUrl + }); + btnDownload = btnDownload.setTokens({'filename': dFile, 'key': key}); + } + if (showZoom) { + btnZoom = self._getLayoutTemplate('actionZoom').setTokens({ + 'zoomClass': config.zoomClass, + 'zoomIcon': config.zoomIcon, + 'zoomTitle': config.zoomTitle + }); + } + if (showDrag && isInit) { + css = 'drag-handle-init ' + config.dragClass; + btnDrag = self._getLayoutTemplate('actionDrag').setTokens({ + 'dragClass': css, + 'dragTitle': config.dragTitle, + 'dragIcon': config.dragIcon + }); + } + return template.setTokens({ + 'delete': btnDelete, + 'upload': btnUpload, + 'download': btnDownload, + 'zoom': btnZoom, + 'drag': btnDrag, + 'other': otherButtons + }); + }, + _browse: function (e) { + var self = this; + if (e && e.isDefaultPrevented() || !self._raise('filebrowse')) { + return; + } + if (self.isError && !self.isAjaxUpload) { + self.clear(); + } + if (self.focusCaptionOnBrowse) { + self.$captionContainer.focus(); + } + }, + _change: function (e) { + var self = this; + $(document.body).off('focusin.fileinput focusout.fileinput'); + if (self.changeTriggered) { + return; + } + self._setLoading('show'); + var $el = self.$element, isDragDrop = arguments.length > 1, isAjaxUpload = self.isAjaxUpload, + tfiles, files = isDragDrop ? arguments[1] : $el[0].files, ctr = self.fileManager.count(), + total, initCount, len, isSingleUpl = $h.isEmpty($el.attr('multiple')), + maxCount = !isAjaxUpload && isSingleUpl ? 1 : self.maxFileCount, maxTotCount = self.maxTotalFileCount, + inclAll = maxTotCount > 0 && maxTotCount > maxCount, flagSingle = (isSingleUpl && ctr > 0), + throwError = function (mesg, file, previewId, index) { + var p1 = $.extend(true, {}, self._getOutData(null, {}, {}, files), {id: previewId, index: index}), + p2 = {id: previewId, index: index, file: file, files: files}; + self.isPersistentError = true; + self._setLoading('hide'); + return isAjaxUpload ? self._showFileError(mesg, p1) : self._showError(mesg, p2); + }, + maxCountCheck = function (n, m, all) { + var msg = all ? self.msgTotalFilesTooMany : self.msgFilesTooMany; + msg = msg.replace('{m}', m).replace('{n}', n); + self.isError = throwError(msg, null, null, null); + self.$captionContainer.removeClass('icon-visible'); + self._setCaption('', true); + self.$container.removeClass('file-input-new file-input-ajax-new'); + }; + self.reader = null; + self._resetUpload(); + self._hideFileIcon(); + if (self.dropZoneEnabled) { + self.$container.find('.file-drop-zone .' + self.dropZoneTitleClass).remove(); + } + if (!isAjaxUpload) { + if (e.target && e.target.files === undefined) { + files = e.target.value ? [{name: e.target.value.replace(/^.+\\/, '')}] : []; + } else { + files = e.target.files || {}; + } + } + tfiles = files; + if ($h.isEmpty(tfiles) || tfiles.length === 0) { + if (!isAjaxUpload) { + self.clear(); + } + self._raise('fileselectnone'); + return; + } + self._resetErrors(); + len = tfiles.length; + initCount = isAjaxUpload ? (self.fileManager.count() + len) : len; + total = self._getFileCount(initCount, inclAll ? false : undefined); + if (maxCount > 0 && total > maxCount) { + if (!self.autoReplace || len > maxCount) { + maxCountCheck((self.autoReplace && len > maxCount ? len : total), maxCount); + return; + } + if (total > maxCount) { + self._resetPreviewThumbs(isAjaxUpload); + } + } else { + if (inclAll) { + total = self._getFileCount(initCount, true); + if (maxTotCount > 0 && total > maxTotCount) { + if (!self.autoReplace || len > maxCount) { + maxCountCheck((self.autoReplace && len > maxTotCount ? len : total), maxTotCount, true); + return; + } + if (total > maxCount) { + self._resetPreviewThumbs(isAjaxUpload); + } + } + } + if (!isAjaxUpload || flagSingle) { + self._resetPreviewThumbs(false); + if (flagSingle) { + self.clearFileStack(); + } + } else { + if (isAjaxUpload && ctr === 0 && (!self.previewCache.count(true) || self.overwriteInitial)) { + self._resetPreviewThumbs(true); + } + } + } + self.readFiles(tfiles); + self._setLoading('hide'); + }, + _abort: function (params) { + var self = this, data; + if (self.ajaxAborted && typeof self.ajaxAborted === 'object' && self.ajaxAborted.message !== undefined) { + data = $.extend(true, {}, self._getOutData(null), params); + data.abortData = self.ajaxAborted.data || {}; + data.abortMessage = self.ajaxAborted.message; + self._setProgress(101, self.$progress, self.msgCancelled); + self._showFileError(self.ajaxAborted.message, data, 'filecustomerror'); + self.cancel(); + self.unlock(); + return true; + } + return !!self.ajaxAborted; + }, + _resetFileStack: function () { + var self = this, i = 0; + self._getThumbs().each(function () { + var $thumb = $(this), ind = $thumb.attr('data-fileindex'), pid = $thumb.attr('id'); + if (ind === '-1' || ind === -1) { + return; + } + if (!self._getThumbFile($thumb)) { + $thumb.attr({'data-fileindex': i}); + i++; + } else { + $thumb.attr({'data-fileindex': '-1'}); + } + self._getZoom(pid).attr({ + 'data-fileindex': $thumb.attr('data-fileindex') + }); + }); + }, + _isFileSelectionValid: function (cnt) { + var self = this; + cnt = cnt || 0; + if (self.required && !self.getFilesCount()) { + self.$errorContainer.html(''); + self._showFileError(self.msgFileRequired); + return false; + } + if (self.minFileCount > 0 && self._getFileCount(cnt) < self.minFileCount) { + self._noFilesError({}); + return false; + } + return true; + }, + _canPreview: function (file) { + var self = this; + if (!file || !self.showPreview || !self.$preview || !self.$preview.length) { + return false; + } + var name = file.name || '', type = file.type || '', size = (file.size || 0) / self.bytesToKB, + cat = self._parseFileType(type, name), allowedTypes, allowedMimes, allowedExts, skipPreview, + types = self.allowedPreviewTypes, mimes = self.allowedPreviewMimeTypes, + exts = self.allowedPreviewExtensions || [], dTypes = self.disabledPreviewTypes, + dMimes = self.disabledPreviewMimeTypes, dExts = self.disabledPreviewExtensions || [], + maxSize = self.maxFilePreviewSize && parseFloat(self.maxFilePreviewSize) || 0, + expAllExt = new RegExp('\\.(' + exts.join('|') + ')$', 'i'), + expDisExt = new RegExp('\\.(' + dExts.join('|') + ')$', 'i'); + allowedTypes = !types || types.indexOf(cat) !== -1; + allowedMimes = !mimes || mimes.indexOf(type) !== -1; + allowedExts = !exts.length || $h.compare(name, expAllExt); + skipPreview = (dTypes && dTypes.indexOf(cat) !== -1) || (dMimes && dMimes.indexOf(type) !== -1) || + (dExts.length && $h.compare(name, expDisExt)) || (maxSize && !isNaN(maxSize) && size > maxSize); + return !skipPreview && (allowedTypes || allowedMimes || allowedExts); + }, + addToStack: function (file, id) { + this.fileManager.add(file, id); + }, + clearFileStack: function () { + var self = this; + self.fileManager.clear(); + self._initResumableUpload(); + if (self.enableResumableUpload) { + if (self.showPause === null) { + self.showPause = true; + } + if (self.showCancel === null) { + self.showCancel = false; + } + } else { + self.showPause = false; + if (self.showCancel === null) { + self.showCancel = true; + } + } + return self.$element; + }, + getFileStack: function () { + return this.fileManager.stack; + }, + getFileList: function () { + return this.fileManager.list(); + }, + getFilesSize: function () { + return this.fileManager.getTotalSize(); + }, + getFilesCount: function (includeInitial) { + var self = this, len = self.isAjaxUpload ? self.fileManager.count() : self._inputFileCount(); + if (includeInitial) { + len += self.previewCache.count(true); + } + return self._getFileCount(len); + }, + _initCapStatus: function (status) { + var self = this, $cap = self.$caption; + $cap.removeClass('is-valid file-processing'); + if (!status) { + return; + } + if (status === 'processing') { + $cap.addClass('file-processing'); + } else { + $cap.addClass('is-valid'); + } + }, + _setLoading: function (type) { + var self = this; + self.$previewStatus.html(type === 'hide' ? '' : self.msgProcessing); + self.$container.removeClass('file-thumb-loading'); + self._initCapStatus(type === 'hide' ? '' : 'processing'); + if (type !== 'hide') { + if (self.dropZoneEnabled) { + self.$container.find('.file-drop-zone .' + self.dropZoneTitleClass).remove(); + } + self.$container.addClass('file-thumb-loading'); + } + }, + _initFileSelected: function () { + var self = this, $el = self.$element, $body = $(document.body), ev = 'focusin.fileinput focusout.fileinput'; + if ($body.length) { + $body.off(ev).on('focusout.fileinput', function () { + self._setLoading('show'); + }).on('focusin.fileinput', function () { + setTimeout(function () { + if (!$el.val()) { + self._setLoading('hide'); + self._setFileDropZoneTitle(); + } + $body.off(ev); + }, 2500); + }); + } else { + self._setLoading('hide'); + } + }, + readFiles: function (files) { + this.reader = new FileReader(); + var self = this, reader = self.reader, $container = self.$previewContainer, + $status = self.$previewStatus, msgLoading = self.msgLoading, msgProgress = self.msgProgress, + previewInitId = self.previewInitId, numFiles = files.length, settings = self.fileTypeSettings, + readFile, fileTypes = self.allowedFileTypes, typLen = fileTypes ? fileTypes.length : 0, + fileExt = self.allowedFileExtensions, strExt = $h.isEmpty(fileExt) ? '' : fileExt.join(', '), + throwError = function (msg, file, previewId, index, fileId) { + var $thumb, p1 = $.extend(true, {}, self._getOutData(null, {}, {}, files), + {id: previewId, index: index, fileId: fileId}), + p2 = {id: previewId, index: index, fileId: fileId, file: file, files: files}; + self._previewDefault(file, true); + $thumb = self._getFrame(previewId, true); + self._setLoading('hide'); + if (self.isAjaxUpload) { + setTimeout(function () { + readFile(index + 1); + }, self.processDelay); + } else { + self.unlock(); + numFiles = 0; + } + if (self.removeFromPreviewOnError && $thumb.length) { + $thumb.remove(); + } else { + self._initFileActions(); + $thumb.find('.kv-file-upload').remove(); + } + self.isPersistentError = true; + self.isError = self.isAjaxUpload ? self._showFileError(msg, p1) : self._showError(msg, p2); + self._updateFileDetails(numFiles); + }; + self.fileManager.clearImages(); + $.each(files, function (key, file) { + var func = self.fileTypeSettings.image; + if (func && func(file.type)) { + self.fileManager.totalImages++; + } + }); + readFile = function (i) { + var $error = self.$errorContainer, errors, fm = self.fileManager; + if (i >= numFiles) { + self.unlock(); + if (self.duplicateErrors.length) { + errors = '
  • ' + self.duplicateErrors.join('
  • ') + '
  • '; + if ($error.find('ul').length === 0) { + $h.setHtml($error, self.errorCloseButton + '
      ' + errors + '
    '); + } else { + $error.find('ul').append(errors); + } + $error.fadeIn(self.fadeDelay); + self._handler($error.find('.kv-error-close'), 'click', function () { + $error.fadeOut(self.fadeDelay); + }); + self.duplicateErrors = []; + } + if (self.isAjaxUpload) { + self._raise('filebatchselected', [fm.stack]); + if (fm.count() === 0 && !self.isError) { + self.reset(); + } + } else { + self._raise('filebatchselected', [files]); + } + $container.removeClass('file-thumb-loading'); + self._initCapStatus('valid'); + $status.html(''); + return; + } + self.lock(true); + var file = files[i], id = self._getFileId(file), previewId = previewInitId + '-' + id, fSizeKB, j, msg, + fnImage = settings.image, typ, chk, typ1, typ2, + caption = self._getFileName(file, ''), fileSize = (file && file.size || 0) / self.bytesToKB, + fileExtExpr = '', previewData = $h.createObjectURL(file), fileCount = 0, + strTypes = '', fileId, canLoad, fileReaderAborted = false, + func, knownTypes = 0, isImage, txtFlag, processFileLoaded = function () { + var isImageResized = !!fm.loadedImages[id], msg = msgProgress.setTokens({ + 'index': i + 1, + 'files': numFiles, + 'percent': 50, + 'name': caption + }); + setTimeout(function () { + $status.html(msg); + self._updateFileDetails(numFiles); + readFile(i + 1); + }, self.processDelay); + if (self._raise('fileloaded', [file, previewId, id, i, reader]) && self.isAjaxUpload) { + if (!isImageResized) { + fm.add(file); + } + } else { + if (isImageResized) { + fm.removeFile(id); + } + } + }; + if (!file) { + return; + } + fileId = fm.getId(file); + if (typLen > 0) { + for (j = 0; j < typLen; j++) { + typ1 = fileTypes[j]; + typ2 = self.msgFileTypes[typ1] || typ1; + strTypes += j === 0 ? typ2 : ', ' + typ2; + } + } + if (caption === false) { + readFile(i + 1); + return; + } + if (caption.length === 0) { + msg = self.msgInvalidFileName.replace('{name}', $h.htmlEncode($h.getFileName(file), '[unknown]')); + throwError(msg, file, previewId, i, fileId); + return; + } + if (!$h.isEmpty(fileExt)) { + fileExtExpr = new RegExp('\\.(' + fileExt.join('|') + ')$', 'i'); + } + fSizeKB = fileSize.toFixed(2); + if (self.isAjaxUpload && fm.exists(fileId) || self._getFrame(previewId, true).length) { + var p2 = {id: previewId, index: i, fileId: fileId, file: file, files: files}; + msg = self.msgDuplicateFile.setTokens({name: caption, size: fSizeKB}); + if (self.isAjaxUpload) { + self.duplicateErrors.push(msg); + self.isDuplicateError = true; + self._raise('fileduplicateerror', [file, fileId, caption, fSizeKB, previewId, i]); + readFile(i + 1); + self._updateFileDetails(numFiles); + } else { + self._showError(msg, p2); + self.unlock(); + numFiles = 0; + self._clearFileInput(); + self.reset(); + self._updateFileDetails(numFiles); + } + return; + } + if (self.maxFileSize > 0 && fileSize > self.maxFileSize) { + msg = self.msgSizeTooLarge.setTokens({ + 'name': caption, + 'size': fSizeKB, + 'maxSize': self.maxFileSize + }); + throwError(msg, file, previewId, i, fileId); + return; + } + if (self.minFileSize !== null && fileSize <= $h.getNum(self.minFileSize)) { + msg = self.msgSizeTooSmall.setTokens({ + 'name': caption, + 'size': fSizeKB, + 'minSize': self.minFileSize + }); + throwError(msg, file, previewId, i, fileId); + return; + } + if (!$h.isEmpty(fileTypes) && $h.isArray(fileTypes)) { + for (j = 0; j < fileTypes.length; j += 1) { + typ = fileTypes[j]; + func = settings[typ]; + fileCount += !func || (typeof func !== 'function') ? 0 : (func(file.type, + $h.getFileName(file)) ? 1 : 0); + } + if (fileCount === 0) { + msg = self.msgInvalidFileType.setTokens({name: caption, types: strTypes}); + throwError(msg, file, previewId, i, fileId); + return; + } + } + if (fileCount === 0 && !$h.isEmpty(fileExt) && $h.isArray(fileExt) && !$h.isEmpty(fileExtExpr)) { + chk = $h.compare(caption, fileExtExpr); + fileCount += $h.isEmpty(chk) ? 0 : chk.length; + if (fileCount === 0) { + msg = self.msgInvalidFileExtension.setTokens({name: caption, extensions: strExt}); + throwError(msg, file, previewId, i, fileId); + return; + } + } + if (!self._canPreview(file)) { + canLoad = self.isAjaxUpload && self._raise('filebeforeload', [file, i, reader]); + if (self.isAjaxUpload && canLoad) { + fm.add(file); + } + if (self.showPreview && canLoad) { + $container.addClass('file-thumb-loading'); + self._initCapStatus('processing'); + self._previewDefault(file); + self._initFileActions(); + } + setTimeout(function () { + if (canLoad) { + self._updateFileDetails(numFiles); + } + readFile(i + 1); + self._raise('fileloaded', [file, previewId, id, i]); + }, 10); + return; + } + isImage = fnImage(file.type, caption); + $status.html(msgLoading.replace('{index}', i + 1).replace('{files}', numFiles)); + $container.addClass('file-thumb-loading'); + self._initCapStatus('processing'); + reader.onerror = function (evt) { + self._errorHandler(evt, caption); + }; + reader.onload = function (theFile) { + var hex, fileInfo, uint, byte, bytes = [], contents, mime, readImage = function () { + var newReader = new FileReader(); + newReader.onerror = function (theFileNew) { + self._errorHandler(theFileNew, caption); + }; + newReader.onload = function (theFileNew) { + if (self.isAjaxUpload && !self._raise('filebeforeload', [file, i, reader])) { + fileReaderAborted = true; + self._resetCaption(); + reader.abort(); + $status.html(''); + $container.removeClass('file-thumb-loading'); + self._initCapStatus('valid'); + self.enable(); + return; + } + self._previewFile(i, file, theFileNew, previewData, fileInfo); + self._initFileActions(); + processFileLoaded(); + }; + newReader.readAsDataURL(file); + }; + fileInfo = {'name': caption, 'type': file.type}; + $.each(settings, function (k, f) { + if (k !== 'object' && k !== 'other' && typeof f === 'function' && f(file.type, caption)) { + knownTypes++; + } + }); + if (knownTypes === 0) { // auto detect mime types from content if no known file types detected + uint = new Uint8Array(theFile.target.result); + for (j = 0; j < uint.length; j++) { + byte = uint[j].toString(16); + bytes.push(byte); + } + hex = bytes.join('').toLowerCase().substring(0, 8); + mime = $h.getMimeType(hex, '', ''); + if ($h.isEmpty(mime)) { // look for ascii text content + contents = $h.arrayBuffer2String(reader.result); + mime = $h.isSvg(contents) ? 'image/svg+xml' : $h.getMimeType(hex, contents, file.type); + } + fileInfo = {'name': caption, 'type': mime}; + isImage = fnImage(mime, ''); + if (isImage) { + readImage(txtFlag); + return; + } + } + if (self.isAjaxUpload && !self._raise('filebeforeload', [file, i, reader])) { + fileReaderAborted = true; + self._resetCaption(); + reader.abort(); + $status.html(''); + $container.removeClass('file-thumb-loading'); + self._initCapStatus('valid'); + self.enable(); + return; + } + self._previewFile(i, file, theFile, previewData, fileInfo); + self._initFileActions(); + processFileLoaded(); + }; + reader.onprogress = function (data) { + if (data.lengthComputable) { + var fact = (data.loaded / data.total) * 100, progress = Math.ceil(fact); + msg = msgProgress.setTokens({ + 'index': i + 1, + 'files': numFiles, + 'percent': progress, + 'name': caption + }); + setTimeout(function () { + if (!fileReaderAborted) { + $status.html(msg); + } + }, self.processDelay); + } + }; + if (isImage) { + reader.readAsDataURL(file); + } else { + reader.readAsArrayBuffer(file); + } + }; + + readFile(0); + self._updateFileDetails(numFiles); + }, + lock: function (selectMode) { + var self = this, $container = self.$container; + self._resetErrors(); + self.disable(); + if (!selectMode && self.showCancel) { + $container.find('.fileinput-cancel').show(); + } + if (!selectMode && self.showPause) { + $container.find('.fileinput-pause').show(); + } + self._initCapStatus('processing'); + self._raise('filelock', [self.fileManager.stack, self._getExtraData()]); + return self.$element; + }, + unlock: function (reset) { + var self = this, $container = self.$container; + if (reset === undefined) { + reset = true; + } + self.enable(); + $container.removeClass('is-locked'); + if (self.showCancel) { + $container.find('.fileinput-cancel').hide(); + } + if (self.showPause) { + $container.find('.fileinput-pause').hide(); + } + if (reset) { + self._resetFileStack(); + } + self._initCapStatus(); + self._raise('fileunlock', [self.fileManager.stack, self._getExtraData()]); + return self.$element; + }, + resume: function () { + var self = this, fm = self.fileManager, flag = false, rm = self.resumableManager; + fm.bpsLog = []; + fm.bps = 0; + if (!self.enableResumableUpload) { + return self.$element; + } + if (self.paused) { + self._toggleResumableProgress(self.progressPauseTemplate, self.msgUploadResume); + } else { + flag = true; + } + self.paused = false; + if (flag) { + self._toggleResumableProgress(self.progressInfoTemplate, self.msgUploadBegin); + } + setTimeout(function () { + rm.upload(); + }, self.processDelay); + return self.$element; + }, + paste: function (e) { + var self = this, ev = e.originalEvent, files = ev.clipboardData && ev.clipboardData.files || null; + if (files) { + self._dropFiles(e, files); + } + return self.$element; + }, + pause: function () { + var self = this, rm = self.resumableManager, xhr = self.ajaxRequests, len = xhr.length, i, + pct = rm.getProgress(), actions = self.fileActionSettings, tm = self.taskManager, + pool = tm.getPool(rm.id); + if (!self.enableResumableUpload) { + return self.$element; + } else { + if (pool) { + pool.cancel(); + } + } + self._raise('fileuploadpaused', [self.fileManager, rm]); + if (len > 0) { + for (i = 0; i < len; i += 1) { + self.paused = true; + xhr[i].abort(); + } + } + if (self.showPreview) { + self._getThumbs().each(function () { + var $thumb = $(this), t = self._getLayoutTemplate('stats'), stats, + $indicator = $thumb.find('.file-upload-indicator'); + $thumb.removeClass('file-uploading'); + if ($indicator.attr('title') === actions.indicatorLoadingTitle) { + self._setThumbStatus($thumb, 'Paused'); + stats = t.setTokens({pendingTime: self.msgPaused, uploadSpeed: ''}); + self.paused = true; + self._setProgress(pct, $thumb.find('.file-thumb-progress'), pct + '%', stats); + } + if (!self._getThumbFile($thumb)) { + $thumb.find('.kv-file-remove').removeClass('disabled').removeAttr('disabled'); + } + }); + } + self._setProgress(101, self.$progress, self.msgPaused); + return self.$element; + }, + cancel: function () { + var self = this, xhr = self.ajaxRequests, + rm = self.resumableManager, tm = self.taskManager, + pool = rm ? tm.getPool(rm.id) : undefined, len = xhr.length, i; + + if (self.enableResumableUpload && pool) { + pool.cancel().done(function () { + self._setProgressCancelled(); + }); + rm.reset(); + self._raise('fileuploadcancelled', [self.fileManager, rm]); + } else { + self._raise('fileuploadcancelled', [self.fileManager]); + } + self._initAjax(); + if (len > 0) { + for (i = 0; i < len; i += 1) { + self.cancelling = true; + xhr[i].abort(); + } + } + self._getThumbs().each(function () { + var $thumb = $(this), $prog = $thumb.find('.file-thumb-progress'); + $thumb.removeClass('file-uploading'); + self._setProgress(0, $prog); + $prog.hide(); + if (!self._getThumbFile($thumb)) { + $thumb.find('.kv-file-upload').removeClass('disabled').removeAttr('disabled'); + $thumb.find('.kv-file-remove').removeClass('disabled').removeAttr('disabled'); + } + self.unlock(); + }); + setTimeout(function () { + self._setProgressCancelled(); + }, self.processDelay); + return self.$element; + }, + clear: function () { + var self = this, cap; + if (!self._raise('fileclear')) { + return; + } + self.$btnUpload.removeAttr('disabled'); + self._getThumbs().find('video,audio,img').each(function () { + $h.cleanMemory($(this)); + }); + self._clearFileInput(); + self._resetUpload(); + self.clearFileStack(); + self.isDuplicateError = false; + self.isPersistentError = false; + self._resetErrors(true); + if (self._hasInitialPreview()) { + self._showFileIcon(); + self._resetPreview(); + self._initPreviewActions(); + self.$container.removeClass('file-input-new'); + } else { + self._getThumbs().each(function () { + self._clearObjects($(this)); + }); + if (self.isAjaxUpload) { + self.previewCache.data = {}; + } + self.$preview.html(''); + cap = (!self.overwriteInitial && self.initialCaption.length > 0) ? self.initialCaption : ''; + self.$caption.attr('title', '').val(cap); + $h.addCss(self.$container, 'file-input-new'); + self._validateDefaultPreview(); + } + if (self.$container.find($h.FRAMES).length === 0) { + if (!self._initCaption()) { + self.$captionContainer.removeClass('icon-visible'); + } + } + self._hideFileIcon(); + if (self.focusCaptionOnClear) { + self.$captionContainer.focus(); + } + self._setFileDropZoneTitle(); + self._raise('filecleared'); + return self.$element; + }, + reset: function () { + var self = this; + if (!self._raise('filereset')) { + return; + } + self.lastProgress = 0; + self._resetPreview(); + self.$container.find('.fileinput-filename').text(''); + $h.addCss(self.$container, 'file-input-new'); + if (self.getFrames().length) { + self.$container.removeClass('file-input-new'); + } + self.clearFileStack(); + self._setFileDropZoneTitle(); + return self.$element; + }, + disable: function () { + var self = this, $container = self.$container; + self.isDisabled = true; + self._raise('filedisabled'); + self.$element.attr('disabled', 'disabled'); + $container.addClass('is-locked'); + $h.addCss($container.find('.btn-file'), 'disabled'); + $container.find('.kv-fileinput-caption').addClass('file-caption-disabled'); + $container.find('.fileinput-remove, .fileinput-upload, .file-preview-frame button') + .attr('disabled', true); + self._initDragDrop(); + return self.$element; + }, + enable: function () { + var self = this, $container = self.$container; + self.isDisabled = false; + self._raise('fileenabled'); + self.$element.removeAttr('disabled'); + $container.removeClass('is-locked'); + $container.find('.kv-fileinput-caption').removeClass('file-caption-disabled'); + $container.find('.fileinput-remove, .fileinput-upload, .file-preview-frame button') + .removeAttr('disabled'); + $container.find('.btn-file').removeClass('disabled'); + self._initDragDrop(); + return self.$element; + }, + upload: function () { + var self = this, fm = self.fileManager, totLen = fm.count(), i, outData, + hasExtraData = !$.isEmptyObject(self._getExtraData()); + fm.bpsLog = []; + fm.bps = 0; + if (!self.isAjaxUpload || self.isDisabled || !self._isFileSelectionValid(totLen)) { + return; + } + self.lastProgress = 0; + self._resetUpload(); + if (totLen === 0 && !hasExtraData) { + self._showFileError(self.msgUploadEmpty); + return; + } + self.cancelling = false; + self._showProgress(); + self.lock(); + if (totLen === 0 && hasExtraData) { + self._setProgress(2); + self._uploadExtraOnly(); + return; + } + if (self.enableResumableUpload) { + return self.resume(); + } + if (self.uploadAsync || self.enableResumableUpload) { + outData = self._getOutData(null); + if (!self._checkBatchPreupload(outData)) { + return; + } + self.fileBatchCompleted = false; + self.uploadCache = []; + $.each(self.getFileStack(), function (id) { + var previewId = self._getThumbId(id); + self.uploadCache.push({id: previewId, content: null, config: null, tags: null, append: true}); + }); + self.$preview.find('.file-preview-initial').removeClass($h.SORT_CSS); + self._initSortable(); + } + self._setProgress(2); + self.hasInitData = false; + if (self.uploadAsync) { + i = 0; + $.each(self.getFileStack(), function (id) { + self._uploadSingle(i, id, true); + i++; + }); + return; + } + self._uploadBatch(); + return self.$element; + }, + destroy: function () { + var self = this, $form = self.$form, $cont = self.$container, $el = self.$element, ns = self.namespace; + $(document).off(ns); + $(window).off(ns); + if ($form && $form.length) { + $form.off(ns); + } + if (self.isAjaxUpload) { + self._clearFileInput(); + } + self._cleanup(); + self._initPreviewCache(); + $el.insertBefore($cont).off(ns).removeData(); + $cont.off().remove(); + return $el; + }, + refresh: function (options) { + var self = this, $el = self.$element; + if (typeof options !== 'object' || $h.isEmpty(options)) { + options = self.options; + } else { + options = $.extend(true, {}, self.options, options); + } + self._init(options, true); + self._listen(); + return $el; + }, + zoom: function (frameId) { + var self = this, $frame = self._getFrame(frameId); + self._showModal($frame); + }, + getExif: function (frameId) { + var self = this, $frame = self._getFrame(frameId); + return $frame && $frame.data('exif') || null; + }, + getFrames: function (cssFilter) { + var self = this, $frames; + cssFilter = cssFilter || ''; + $frames = self.$preview.find($h.FRAMES + cssFilter); + if (self.reversePreviewOrder) { + $frames = $($frames.get().reverse()); + } + return $frames; + }, + getPreview: function () { + var self = this; + return { + content: self.initialPreview, + config: self.initialPreviewConfig, + tags: self.initialPreviewThumbTags + }; + } + }; + + $.fn.fileinput = function (option) { + if (!$h.hasFileAPISupport() && !$h.isIE(9)) { + return; + } + var args = Array.apply(null, arguments), retvals = []; + args.shift(); + this.each(function () { + var self = $(this), data = self.data('fileinput'), options = typeof option === 'object' && option, + theme = options.theme || self.data('theme'), l = {}, t = {}, + lang = options.language || self.data('language') || $.fn.fileinput.defaults.language || 'en', opt; + if (!data) { + if (theme) { + t = $.fn.fileinputThemes[theme] || {}; + } + if (lang !== 'en' && !$h.isEmpty($.fn.fileinputLocales[lang])) { + l = $.fn.fileinputLocales[lang] || {}; + } + opt = $.extend(true, {}, $.fn.fileinput.defaults, t, $.fn.fileinputLocales.en, l, options, self.data()); + data = new FileInput(this, opt); + self.data('fileinput', data); + } + + if (typeof option === 'string') { + retvals.push(data[option].apply(data, args)); + } + }); + switch (retvals.length) { + case 0: + return this; + case 1: + return retvals[0]; + default: + return retvals; + } + }; + + var IFRAME_ATTRIBS = 'class="kv-preview-data file-preview-pdf" src="{renderer}?file={data}" {style}', + defBtnCss1 = 'btn btn-sm btn-kv ' + $h.defaultButtonCss(), defBtnCss2 = 'btn ' + $h.defaultButtonCss(true); + + $.fn.fileinput.defaults = { + language: 'zh', + bytesToKB: 1024, + showCaption: true, + showBrowse: true, + showPreview: true, + showRemove: true, + showUpload: true, + showUploadStats: true, + showCancel: null, + showPause: null, + showClose: true, + showUploadedThumbs: true, + showConsoleLogs: false, + browseOnZoneClick: false, + autoReplace: false, + showDescriptionClose: true, + autoOrientImage: function () { // applicable for JPEG images only and non ios safari + var ua = window.navigator.userAgent, webkit = !!ua.match(/WebKit/i), + iOS = !!ua.match(/iP(od|ad|hone)/i), iOSSafari = iOS && webkit && !ua.match(/CriOS/i); + return !iOSSafari; + }, + autoOrientImageInitial: true, + required: false, + rtl: false, + hideThumbnailContent: false, + encodeUrl: true, + focusCaptionOnBrowse: true, + focusCaptionOnClear: true, + generateFileId: null, + previewClass: '', + captionClass: '', + frameClass: 'krajee-default', + mainClass: '', + inputGroupClass: '', + mainTemplate: null, + fileSizeGetter: null, + initialCaption: '', + initialPreview: [], + initialPreviewDelimiter: '*$$*', + initialPreviewAsData: false, + initialPreviewFileType: 'image', + initialPreviewConfig: [], + initialPreviewThumbTags: [], + previewThumbTags: {}, + initialPreviewShowDelete: true, + initialPreviewDownloadUrl: '', + removeFromPreviewOnError: false, + deleteUrl: '', + deleteExtraData: {}, + overwriteInitial: true, + sanitizeZoomCache: function (content) { + var $container = $h.createElement(content); + $container.find('input,textarea,select,datalist,form,.file-thumbnail-footer').remove(); + return $container.html(); + }, + previewZoomButtonIcons: { + prev: '', + next: '', + toggleheader: '', + fullscreen: '', + borderless: '', + close: '' + }, + previewZoomButtonClasses: { + prev: 'btn btn-default btn-outline-secondary btn-navigate', + next: 'btn btn-default btn-outline-secondary btn-navigate', + toggleheader: defBtnCss1, + fullscreen: defBtnCss1, + borderless: defBtnCss1, + close: defBtnCss1 + }, + previewTemplates: {}, + previewContentTemplates: {}, + preferIconicPreview: false, + preferIconicZoomPreview: false, + allowedFileTypes: null, + allowedFileExtensions: null, + allowedPreviewTypes: undefined, + allowedPreviewMimeTypes: null, + allowedPreviewExtensions: null, + disabledPreviewTypes: undefined, + disabledPreviewExtensions: ['msi', 'exe', 'com', 'zip', 'rar', 'app', 'vb', 'scr'], + disabledPreviewMimeTypes: null, + defaultPreviewContent: null, + customLayoutTags: {}, + customPreviewTags: {}, + previewFileIcon: '', + previewFileIconClass: 'file-other-icon', + previewFileIconSettings: {}, + previewFileExtSettings: {}, + buttonLabelClass: 'hidden-xs', + browseIcon: ' ', + browseClass: 'btn btn-primary', + removeIcon: '', + removeClass: defBtnCss2, + cancelIcon: '', + cancelClass: defBtnCss2, + pauseIcon: '', + pauseClass: defBtnCss2, + uploadIcon: '', + uploadClass: defBtnCss2, + uploadUrl: null, + uploadUrlThumb: null, + uploadAsync: true, + uploadParamNames: { + chunkCount: 'chunkCount', + chunkIndex: 'chunkIndex', + chunkSize: 'chunkSize', + chunkSizeStart: 'chunkSizeStart', + chunksUploaded: 'chunksUploaded', + fileBlob: 'fileBlob', + fileId: 'fileId', + fileName: 'fileName', + fileRelativePath: 'fileRelativePath', + fileSize: 'fileSize', + retryCount: 'retryCount' + }, + maxAjaxThreads: 5, + fadeDelay: 800, + processDelay: 100, + bitrateUpdateDelay: 500, + queueDelay: 10, // must be lesser than process delay + progressDelay: 0, // must be lesser than process delay + enableResumableUpload: false, + resumableUploadOptions: { + fallback: null, + testUrl: null, // used for checking status of chunks/ files previously / partially uploaded + chunkSize: 2048, // in KB + maxThreads: 4, + maxRetries: 3, + showErrorLog: true, + retainErrorHistory: true, // display complete error history always unless user explicitly resets upload + skipErrorsAndProceed: false // when set to true, files with errors will be skipped and upload will continue with other files + }, + uploadExtraData: {}, + zoomModalHeight: 480, + minImageWidth: null, + minImageHeight: null, + maxImageWidth: null, + maxImageHeight: null, + resizeImage: false, + resizePreference: 'width', + resizeQuality: 0.92, + resizeDefaultImageType: 'image/jpeg', + resizeIfSizeMoreThan: 0, // in KB + minFileSize: -1, + maxFileSize: 0, + maxFilePreviewSize: 25600, // 25 MB + minFileCount: 0, + maxFileCount: 0, + maxTotalFileCount: 0, + validateInitialCount: false, + msgValidationErrorClass: 'text-danger', + msgValidationErrorIcon: ' ', + msgErrorClass: 'file-error-message', + progressThumbClass: 'progress-bar progress-bar-striped active progress-bar-animated', + progressClass: 'progress-bar bg-success progress-bar-success progress-bar-striped active progress-bar-animated', + progressInfoClass: 'progress-bar bg-info progress-bar-info progress-bar-striped active progress-bar-animated', + progressCompleteClass: 'progress-bar bg-success progress-bar-success', + progressPauseClass: 'progress-bar bg-primary progress-bar-primary progress-bar-striped active progress-bar-animated', + progressErrorClass: 'progress-bar bg-danger progress-bar-danger', + progressUploadThreshold: 99, + previewFileType: 'image', + elCaptionContainer: null, + elCaptionText: null, + elPreviewContainer: null, + elPreviewImage: null, + elPreviewStatus: null, + elErrorContainer: null, + errorCloseButton: undefined, + slugCallback: null, + dropZoneEnabled: true, + dropZoneTitleClass: 'file-drop-zone-title', + fileActionSettings: {}, + otherActionButtons: '', + textEncoding: 'UTF-8', + preProcessUpload: null, + ajaxSettings: {}, + ajaxDeleteSettings: {}, + showAjaxErrorDetails: true, + mergeAjaxCallbacks: false, + mergeAjaxDeleteCallbacks: false, + retryErrorUploads: true, + reversePreviewOrder: false, + usePdfRenderer: function () { + var isIE11 = !!window.MSInputMethodContext && !!document.documentMode; + return !!navigator.userAgent.match(/(iPod|iPhone|iPad|Android)/i) || isIE11; + }, + pdfRendererUrl: '', + pdfRendererTemplate: '', + tabIndexConfig: { + browse: 500, + remove: 500, + upload: 500, + cancel: null, + pause: null, + modal: -1 + } + }; + + // noinspection HtmlUnknownAttribute + $.fn.fileinputLocales.en = { + sizeUnits: ['B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'], + bitRateUnits: ['B/s', 'KB/s', 'MB/s', 'GB/s', 'TB/s', 'PB/s', 'EB/s', 'ZB/s', 'YB/s'], + fileSingle: 'file', + filePlural: 'files', + browseLabel: 'Browse …', + removeLabel: 'Remove', + removeTitle: 'Clear all unprocessed files', + cancelLabel: 'Cancel', + cancelTitle: 'Abort ongoing upload', + pauseLabel: 'Pause', + pauseTitle: 'Pause ongoing upload', + uploadLabel: 'Upload', + uploadTitle: 'Upload selected files', + msgNo: 'No', + msgNoFilesSelected: 'No files selected', + msgCancelled: 'Cancelled', + msgPaused: 'Paused', + msgPlaceholder: 'Select {files} ...', + msgZoomModalHeading: 'Detailed Preview', + msgFileRequired: 'You must select a file to upload.', + msgSizeTooSmall: 'File "{name}" ({size} KB) is too small and must be larger than {minSize} KB.', + msgSizeTooLarge: 'File "{name}" ({size} KB) exceeds maximum allowed upload size of {maxSize} KB.', + msgFilesTooLess: 'You must select at least {n} {files} to upload.', + msgFilesTooMany: 'Number of files selected for upload ({n}) exceeds maximum allowed limit of {m}.', + msgTotalFilesTooMany: 'You can upload a maximum of {m} files ({n} files detected).', + msgFileNotFound: 'File "{name}" not found!', + msgFileSecured: 'Security restrictions prevent reading the file "{name}".', + msgFileNotReadable: 'File "{name}" is not readable.', + msgFilePreviewAborted: 'File preview aborted for "{name}".', + msgFilePreviewError: 'An error occurred while reading the file "{name}".', + msgInvalidFileName: 'Invalid or unsupported characters in file name "{name}".', + msgInvalidFileType: 'Invalid type for file "{name}". Only "{types}" files are supported.', + msgInvalidFileExtension: 'Invalid extension for file "{name}". Only "{extensions}" files are supported.', + msgFileTypes: { + 'image': 'image', + 'html': 'HTML', + 'text': 'text', + 'video': 'video', + 'audio': 'audio', + 'flash': 'flash', + 'pdf': 'PDF', + 'object': 'object' + }, + msgUploadAborted: 'The file upload was aborted', + msgUploadThreshold: 'Processing …', + msgUploadBegin: 'Initializing …', + msgUploadEnd: 'Done', + msgUploadResume: 'Resuming upload …', + msgUploadEmpty: 'No valid data available for upload.', + msgUploadError: 'Upload Error', + msgDeleteError: 'Delete Error', + msgProgressError: 'Error', + msgValidationError: 'Validation Error', + msgLoading: 'Loading file {index} of {files} …', + msgProgress: 'Loading file {index} of {files} - {name} - {percent}% completed.', + msgSelected: '{n} {files} selected', + msgProcessing: 'Processing ...', + msgFoldersNotAllowed: 'Drag & drop files only! {n} folder(s) dropped were skipped.', + msgImageWidthSmall: 'Width of image file "{name}" must be at least {size} px.', + msgImageHeightSmall: 'Height of image file "{name}" must be at least {size} px.', + msgImageWidthLarge: 'Width of image file "{name}" cannot exceed {size} px.', + msgImageHeightLarge: 'Height of image file "{name}" cannot exceed {size} px.', + msgImageResizeError: 'Could not get the image dimensions to resize.', + msgImageResizeException: 'Error while resizing the image.
    {errors}
    ', + msgAjaxError: 'Something went wrong with the {operation} operation. Please try again later!', + msgAjaxProgressError: '{operation} failed', + msgDuplicateFile: 'File "{name}" of same size "{size} KB" has already been selected earlier. Skipping duplicate selection.', + msgResumableUploadRetriesExceeded: 'Upload aborted beyond {max} retries for file {file}! Error Details:
    {error}
    ', + msgPendingTime: '{time} remaining', + msgCalculatingTime: 'calculating time remaining', + ajaxOperations: { + deleteThumb: 'file delete', + uploadThumb: 'file upload', + uploadBatch: 'batch file upload', + uploadExtra: 'form data upload' + }, + dropZoneTitle: 'Drag & drop files here …', + dropZoneClickTitle: '
    (or click to select {files})', + previewZoomButtonTitles: { + prev: 'View previous file', + next: 'View next file', + toggleheader: 'Toggle header', + fullscreen: 'Toggle full screen', + borderless: 'Toggle borderless mode', + close: 'Close detailed preview' + } + }; + + $.fn.fileinputLocales.zh = { + sizeUnits: ['B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'], + bitRateUnits: ['B/s', 'KB/s', 'MB/s', 'GB/s', 'TB/s', 'PB/s', 'EB/s', 'ZB/s', 'YB/s'], + fileSingle: '文件', + filePlural: '个文件', + browseLabel: '选择 …', + removeLabel: '移除', + removeTitle: '清除选中文件', + cancelLabel: '取消', + cancelTitle: '取消进行中的上传', + pauseLabel: '暂停', + pauseTitle: '暂停上传', + uploadLabel: '上传', + uploadTitle: '上传选中文件', + msgNo: '没有', + msgNoFilesSelected: '未选择文件', + msgPaused: '已暂停', + msgCancelled: '取消', + msgPlaceholder: '选择 {files} ...', + msgZoomModalHeading: '详细预览', + msgFileRequired: '必须选择一个文件上传.', + msgSizeTooSmall: '文件 "{name}" ({size} KB) 必须大于限定大小 {minSize} KB.', + msgSizeTooLarge: '文件 "{name}" ({size} KB) 超过了允许大小 {maxSize} KB.', + msgFilesTooLess: '你必须选择最少 {n} {files} 来上传. ', + msgFilesTooMany: '选择的上传文件个数 ({n}) 超出最大文件的限制个数 {m}.', + msgTotalFilesTooMany: '你最多可以上传 {m} 个文件 (当前有{n} 个文件).', + msgFileNotFound: '文件 "{name}" 未找到!', + msgFileSecured: '安全限制,为了防止读取文件 "{name}".', + msgFileNotReadable: '文件 "{name}" 不可读.', + msgFilePreviewAborted: '取消 "{name}" 的预览.', + msgFilePreviewError: '读取 "{name}" 时出现了一个错误.', + msgInvalidFileName: '文件名 "{name}" 包含非法字符.', + msgInvalidFileType: '不正确的类型 "{name}". 只支持 "{types}" 类型的文件.', + msgInvalidFileExtension: '不正确的文件扩展名 "{name}". 只支持 "{extensions}" 的文件扩展名.', + msgFileTypes: { + 'image': 'image', + 'html': 'HTML', + 'text': 'text', + 'video': 'video', + 'audio': 'audio', + 'flash': 'flash', + 'pdf': 'PDF', + 'object': 'object' + }, + msgUploadAborted: '该文件上传被中止', + msgUploadThreshold: '处理中 …', + msgUploadBegin: '正在初始化 …', + msgUploadEnd: '完成', + msgUploadResume: '继续上传 …', + msgUploadEmpty: '无效的文件上传.', + msgUploadError: '上传出错', + msgDeleteError: '删除出错', + msgProgressError: '上传出错', + msgValidationError: '验证错误', + msgLoading: '加载第 {index} 文件 共 {files} …', + msgProgress: '加载第 {index} 文件 共 {files} - {name} - {percent}% 完成.', + msgSelected: '{n} {files} 选中', + msgProcessing: '处理中 ...', + msgFoldersNotAllowed: '只支持拖拽文件! 跳过 {n} 拖拽的文件夹.', + msgImageWidthSmall: '图像文件的"{name}"的宽度必须是至少{size}像素.', + msgImageHeightSmall: '图像文件的"{name}"的高度必须至少为{size}像素.', + msgImageWidthLarge: '图像文件"{name}"的宽度不能超过{size}像素.', + msgImageHeightLarge: '图像文件"{name}"的高度不能超过{size}像素.', + msgImageResizeError: '无法获取的图像尺寸调整。', + msgImageResizeException: '调整图像大小时发生错误。
    {errors}
    ', + msgAjaxError: '{operation} 发生错误. 请重试!', + msgAjaxProgressError: '{operation} 失败', + msgDuplicateFile: '文件 "{name}",大小 "{size} KB" 已经被选中.忽略相同的文件.', + msgResumableUploadRetriesExceeded: '文件 {file} 上传失败超过 {max} 次重试 ! 错误详情:
    {error}
    ', + msgPendingTime: '{time} 剩余', + msgCalculatingTime: '计算剩余时间', + ajaxOperations: { + deleteThumb: '删除文件', + uploadThumb: '上传文件', + uploadBatch: '批量上传', + uploadExtra: '表单数据上传' + }, + dropZoneTitle: '拖拽文件到这里 …
    支持多文件同时上传', + dropZoneClickTitle: '
    (或点击{files}按钮选择文件)', + fileActionSettings: { + removeTitle: '删除文件', + uploadTitle: '上传文件', + downloadTitle: '下载文件', + uploadRetryTitle: '重试', + zoomTitle: '查看详情', + dragTitle: '移动 / 重置', + indicatorNewTitle: '没有上传', + indicatorSuccessTitle: '上传', + indicatorErrorTitle: '上传错误', + indicatorPausedTitle: '上传已暂停', + indicatorLoadingTitle: '上传 …' + }, + previewZoomButtonTitles: { + prev: '预览上一个文件', + next: '预览下一个文件', + toggleheader: '缩放', + fullscreen: '全屏', + borderless: '无边界模式', + close: '关闭当前预览' + } + }; + + $.fn.fileinput.Constructor = FileInput; + + /** + * Convert automatically file inputs with class 'file' into a bootstrap fileinput control. + */ + $(document).ready(function () { + var $input = $('input.file[type=file]'); + if ($input.length) { + $input.fileinput(); + } + }); +})); diff --git a/alive-admin/src/main/resources/static/ajax/libs/bootstrap-fileinput/fileinput.min.css b/alive-admin/src/main/resources/static/ajax/libs/bootstrap-fileinput/fileinput.min.css new file mode 100644 index 0000000..8865aec --- /dev/null +++ b/alive-admin/src/main/resources/static/ajax/libs/bootstrap-fileinput/fileinput.min.css @@ -0,0 +1,12 @@ +/*! + * bootstrap-fileinput v5.2.4 + * http://plugins.krajee.com/file-input + * + * Krajee default styling for bootstrap-fileinput. + * + * Author: Kartik Visweswaran + * Copyright: 2014 - 2021, Kartik Visweswaran, Krajee.com + * + * Licensed under the BSD-3-Clause + * https://github.com/kartik-v/bootstrap-fileinput/blob/master/LICENSE.md + */.btn-file input[type=file],.file-caption-icon,.file-no-browse,.file-preview .fileinput-remove,.file-zoom-dialog .btn-navigate,.file-zoom-dialog .floating-buttons,.krajee-default .file-thumb-progress{position:absolute}.file-loading input[type=file],input[type=file].file-loading{width:0;height:0}.file-no-browse{left:50%;bottom:20%;width:1px;height:1px;font-size:0;opacity:0;border:none;background:0 0;outline:0;box-shadow:none}.file-caption-icon,.file-input-ajax-new .fileinput-remove-button,.file-input-ajax-new .fileinput-upload-button,.file-input-ajax-new .no-browse .input-group-btn,.file-input-new .close,.file-input-new .file-preview,.file-input-new .fileinput-remove-button,.file-input-new .fileinput-upload-button,.file-input-new .glyphicon-file,.file-input-new .no-browse .input-group-btn,.file-zoom-dialog .modal-header:after,.file-zoom-dialog .modal-header:before,.hide-content .kv-file-content,.is-locked .fileinput-remove-button,.is-locked .fileinput-upload-button,.kv-hidden{display:none}.file-caption-icon .kv-caption-icon{line-height:inherit}.btn-file,.file-caption,.file-input,.file-loading:before,.file-preview,.file-zoom-dialog .modal-dialog,.krajee-default .file-thumbnail-footer,.krajee-default.file-preview-frame{position:relative}.file-error-message pre,.file-error-message ul,.krajee-default .file-actions,.krajee-default .file-other-error{text-align:left}.file-error-message pre,.file-error-message ul{margin:0}.krajee-default .file-drag-handle,.krajee-default .file-upload-indicator{float:left;margin-top:10px;width:16px;height:16px}.file-thumb-progress .progress,.file-thumb-progress .progress-bar{font-family:Verdana,Helvetica,sans-serif;font-size:.7rem}.krajee-default .file-thumb-progress .progress,.kv-upload-progress .progress{background-color:#ccc}.krajee-default .file-caption-info,.krajee-default .file-size-info{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:160px;height:15px;margin:auto}.file-zoom-content>.file-object.type-flash,.file-zoom-content>.file-object.type-image,.file-zoom-content>.file-object.type-video{max-width:100%;max-height:100%;width:auto}.file-zoom-content>.file-object.type-flash,.file-zoom-content>.file-object.type-video{height:100%}.file-zoom-content>.file-object.type-default,.file-zoom-content>.file-object.type-html,.file-zoom-content>.file-object.type-pdf,.file-zoom-content>.file-object.type-text{width:100%}.file-loading:before{content:" Loading...";display:inline-block;padding-left:20px;line-height:16px;font-size:13px;font-variant:small-caps;color:#999;background:url(loading.gif) top left no-repeat}.file-object{margin:0 0 -5px;padding:0}.btn-file{overflow:hidden}.btn-file input[type=file]{top:0;left:0;min-width:100%;min-height:100%;text-align:right;opacity:0;background:none;cursor:inherit;display:block}.btn-file ::-ms-browse{font-size:10000px;width:100%;height:100%}.file-caption.icon-visible .file-caption-icon{display:inline-block}.file-caption.icon-visible .file-caption-name{padding-left:25px;}.file-caption.icon-visible>.input-group-lg .file-caption-name{padding-left:30px;}.file-caption.icon-visible>.input-group-sm .file-caption-name{padding-left:22px;}.file-caption-name:not(.file-caption-disabled){background-color:transparent}.file-caption-name.file-processing{font-style:italic;border-color:#bbb;opacity:.5}.file-caption-icon{padding:7px 5px;left:4px}.input-group-lg .file-caption-icon{font-size:1.25rem}.input-group-sm .file-caption-icon{font-size:.875rem;padding:.25rem}.file-error-message{color:#a94442;background-color:#f2dede;margin:5px;border:1px solid #ebccd1;border-radius:4px;padding:15px}.file-error-message pre{margin:5px 0}.file-caption-disabled{background-color:#eee;cursor:not-allowed;opacity:1}.file-preview{border-radius:5px;border:1px solid #ddd;padding:8px;width:100%;margin-bottom:5px}.file-preview .btn-xs{padding:1px 5px;font-size:12px;line-height:1.5;border-radius:3px}.file-preview .fileinput-remove{top:1px;right:1px;line-height:10px}.file-preview .clickable{cursor:pointer}.file-preview-image{font:40px Impact,Charcoal,sans-serif;color:green;width:auto;height:auto;max-width:100%;max-height:100%}.krajee-default.file-preview-frame{margin:8px;border:1px solid rgba(0,0,0,.2);box-shadow:0 0 10px 0 rgba(0,0,0,.2);padding:6px;float:left;text-align:center}.krajee-default.file-preview-frame .kv-file-content{width:213px;height:160px}.krajee-default .file-preview-other-frame{display:flex;align-items:center;justify-content:center}.krajee-default.file-preview-frame .kv-file-content.kv-pdf-rendered{width:400px}.krajee-default.file-preview-frame[data-template=audio] .kv-file-content{width:240px;height:55px}.krajee-default.file-preview-frame .file-thumbnail-footer{height:70px}.krajee-default.file-preview-frame:not(.file-preview-error):hover{border:1px solid rgba(0,0,0,.3);box-shadow:0 0 10px 0 rgba(0,0,0,.4)}.krajee-default .file-preview-text{color:#428bca;border:1px solid #ddd;outline:0;resize:none}.krajee-default .file-preview-html{border:1px solid #ddd}.krajee-default .file-other-icon{font-size:6em;line-height:1}.krajee-default .file-footer-buttons{float:right}.krajee-default .file-footer-caption{display:block;text-align:center;padding-top:4px;font-size:11px;color:#777;margin-bottom:30px}.file-upload-stats{font-size:10px;text-align:center;width:100%}.kv-upload-progress .file-upload-stats{font-size:12px;margin:-10px 0 5px}.krajee-default .file-preview-error{opacity:.65;box-shadow:none}.krajee-default .file-thumb-progress{top:37px;left:0;right:0}.krajee-default.kvsortable-ghost{background:#e1edf7;border:2px solid #a1abff}.krajee-default .file-preview-other:hover{opacity:.8}.krajee-default .file-preview-frame:not(.file-preview-error) .file-footer-caption:hover{color:#000}.kv-upload-progress .progress{height:20px;margin:10px 0;overflow:hidden}.kv-upload-progress .progress-bar{height:20px;font-family:Verdana,Helvetica,sans-serif}.file-zoom-dialog .file-other-icon{font-size:22em;font-size:50vmin}.file-zoom-dialog .modal-dialog{width:auto}.file-zoom-dialog .modal-header{display:flex;align-items:center;justify-content:space-between}.file-zoom-dialog .btn-navigate{margin:0 .1rem;padding:0;font-size:1.2rem;width:2.4rem;height:2.4rem;top:50%;border-radius:50%;text-align:center}.btn-navigate *{width:auto}.file-zoom-dialog .floating-buttons{top:5px;right:10px}.file-zoom-dialog .btn-kv-prev{left:0}.file-zoom-dialog .btn-kv-next{right:0}.file-zoom-dialog .kv-zoom-caption{max-width:50%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.file-zoom-dialog .kv-zoom-header{padding:.5rem}.file-zoom-dialog .kv-zoom-body{padding:.25rem .5rem .25rem 0}.file-zoom-dialog .kv-zoom-description{position:absolute;opacity:.8;font-size:.8rem;background-color:#1a1a1a;padding:1rem;text-align:center;border-radius:.5rem;color:#fff;left:15%;right:15%;bottom:15%}.file-zoom-dialog .kv-desc-hide{float:right;color:#fff;padding:0 .1rem;background:0 0;border:none}.file-zoom-dialog .kv-desc-hide:hover{opacity:.7}.file-zoom-dialog .kv-desc-hide:focus{opacity:.9}.file-input-ajax-new .no-browse .form-control,.file-input-new .no-browse .form-control{border-top-right-radius:4px;border-bottom-right-radius:4px}.file-caption{width:100%;position:relative}.file-thumb-loading{background:url(loading.gif) center center no-repeat content-box!important}.file-drop-zone{border:1px dashed #aaa;min-height:260px;border-radius:4px;text-align:center;vertical-align:middle;margin:12px 15px 12px 12px;padding:5px}.file-drop-zone.clickable:hover{border:2px dashed #999}.file-drop-zone.clickable:focus{border:2px solid #5acde2}.file-drop-zone .file-preview-thumbnails{cursor:default}.file-drop-zone-title{color:#aaa;font-size:1.6em;text-align:center;padding:85px 10px;cursor:default}.file-highlighted{border:2px dashed #999!important;background-color:#eee}.file-uploading{background:url(loading-sm.gif) center bottom 10px no-repeat;opacity:.65}.file-zoom-fullscreen .modal-dialog{min-width:100%;margin:0}.file-zoom-fullscreen .modal-content{border-radius:0;box-shadow:none;min-height:100vh}.file-zoom-fullscreen .kv-zoom-body{overflow-y:auto}.floating-buttons{z-index:3000}.floating-buttons .btn-kv{margin-left:3px;z-index:3000}.kv-zoom-actions .btn-kv{margin-left:3px}.file-zoom-content{text-align:center;white-space:nowrap;min-height:300px}.file-zoom-content:hover{background:0 0}.file-zoom-content>*{display:inline-block;vertical-align:middle}.file-zoom-content .kv-spacer{height:100%}.file-zoom-content .file-preview-image,.file-zoom-content .file-preview-video{max-height:100%}.file-zoom-content>.file-object.type-image{height:auto;min-height:inherit}.file-zoom-content>.file-object.type-audio{width:auto;height:30px}@media (min-width:576px){.file-zoom-dialog .modal-dialog{max-width:500px}}@media (min-width:992px){.file-zoom-dialog .modal-lg{max-width:800px}}@media (max-width:767px){.file-preview-thumbnails{display:flex;justify-content:center;align-items:center;flex-direction:column}.file-zoom-dialog .modal-header{flex-direction:column}}@media (max-width:350px){.krajee-default.file-preview-frame:not([data-template=audio]) .kv-file-content{width:160px}}@media (max-width:420px){.krajee-default.file-preview-frame .kv-file-content.kv-pdf-rendered{width:100%}}.file-loading[dir=rtl]:before{background:url(loading.gif) top right no-repeat;padding-left:0;padding-right:20px}.clickable .file-drop-zone-title{cursor:pointer}.file-sortable .file-drag-handle:hover{opacity:.7}.file-sortable .file-drag-handle{cursor:grab;opacity:1}.file-grabbing,.file-grabbing *{cursor:not-allowed!important}.file-grabbing .file-preview-thumbnails *{cursor:grabbing!important}.file-preview-frame.sortable-chosen{background-color:#d9edf7;border-color:#17a2b8;box-shadow:none!important}.file-preview .kv-zoom-cache{display:none} \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ajax/libs/bootstrap-fileinput/fileinput.min.js b/alive-admin/src/main/resources/static/ajax/libs/bootstrap-fileinput/fileinput.min.js new file mode 100644 index 0000000..c6c1d2d --- /dev/null +++ b/alive-admin/src/main/resources/static/ajax/libs/bootstrap-fileinput/fileinput.min.js @@ -0,0 +1,11 @@ +/*! + * bootstrap-fileinput v5.2.4 + * http://plugins.krajee.com/file-input + * + * Author: Kartik Visweswaran + * Copyright: 2014 - 2021, Kartik Visweswaran, Krajee.com + * + * Licensed under the BSD-3-Clause + * https://github.com/kartik-v/bootstrap-fileinput/blob/master/LICENSE.md + */ +!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&module.exports?module.exports=e(require("jquery")):e(window.jQuery)}(function(L){"use strict";L.fn.fileinputLocales={},L.fn.fileinputThemes={},L.fn.fileinputBsVersion||(L.fn.fileinputBsVersion=window.Alert&&window.Alert.VERSION||window.bootstrap&&window.bootstrap.Alert&&bootstrap.Alert.VERSION||"3.x.x"),String.prototype.setTokens=function(e){var t,i,a=this.toString();for(t in e)e.hasOwnProperty(t)&&(i=new RegExp("{"+t+"}","g"),a=a.replace(i,e[t]));return a},Array.prototype.flatMap||(Array.prototype.flatMap=function(e){return[].concat(this.map(e))}),document.currentScript||(document.currentScript=(i=document.getElementsByTagName("script"))[i.length-1]);var e,N={FRAMES:".kv-preview-thumb",SORT_CSS:"file-sortable",INIT_FLAG:"init-",ZOOM_VAR:(e=document.currentScript.src).substring(0,e.lastIndexOf("/"))+"/loading.gif?kvTemp__2873389129__=",OBJECT_PARAMS:'\n\n\n\n\n\n',DEFAULT_PREVIEW:'
    \n{previewFileIcon}\n
    ',MODAL_ID:"kvFileinputModal",MODAL_EVENTS:["show","shown","hide","hidden","loaded"],logMessages:{ajaxError:"{status}: {error}. Error Details: {text}.",badDroppedFiles:"Error scanning dropped files!",badExifParser:"Error loading the piexif.js library. {details}",badInputType:'The input "type" must be set to "file" for initializing the "bootstrap-fileinput" plugin.',exifWarning:'To avoid this warning, either set "autoOrientImage" to "false" OR ensure you have loaded the "piexif.js" library correctly on your page before the "fileinput.js" script.',invalidChunkSize:'Invalid upload chunk size: "{chunkSize}". Resumable uploads are disabled.',invalidThumb:'Invalid thumb frame with id: "{id}".',noResumableSupport:"The browser does not support resumable or chunk uploads.",noUploadUrl:'The "uploadUrl" is not set. Ajax uploads and resumable uploads have been disabled.',retryStatus:"Retrying upload for chunk # {chunk} for {filename}... retry # {retry}.",chunkQueueError:"Could not push task to ajax pool for chunk index # {index}.",resumableMaxRetriesReached:"Maximum resumable ajax retries ({n}) reached.",resumableRetryError:"Could not retry the resumable request (try # {n})... aborting.",resumableAborting:"Aborting / cancelling the resumable request.",resumableRequestError:"Error processing resumable request. {msg}"},objUrl:window.URL||window.webkitURL,isBs:function(e){var t=L.trim((L.fn.fileinputBsVersion||"")+"");return e=parseInt(e,10),t?e===parseInt(t.charAt(0),10):4===e},defaultButtonCss:function(e){return"btn-default btn-"+(e?"":"outline-")+"secondary"},now:function(){return(new Date).getTime()},round:function(e){return e=parseFloat(e),isNaN(e)?0:Math.floor(Math.round(e))},getArray:function(e){for(var t=[],i=e&&e.length||0,a=0;a >4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:n+=String.fromCharCode(t);break;case 12:case 13:i=r[o++],n+=String.fromCharCode((31&t)<<6|63&i);break;case 14:i=r[o++],a=r[o++],n+=String.fromCharCode((15&t)<<12|(63&i)<<6|(63&a)<<0)}return n},isHtml:function(e){var t=document.createElement("div");t.innerHTML=e;for(var i=t.childNodes,a=i.length;a--;)if(1===i[a].nodeType)return!0;return!1},isSvg:function(e){return e.match(/^\s*<\?xml/i)&&(e.match(/"+e+""))},uniqId:function(){return((new Date).getTime()+Math.floor(Math.random()*Math.pow(10,15))).toString(36)},cspBuffer:{CSP_ATTRIB:"data-csp-01928735",domElementsStyles:{},stash:function(e){var n=this,t=L.parseHTML("
    "+e+"
    "),e=L(t);return e.find("[style]").each(function(e,t){var i=L(t),a=i[0].style,t=N.uniqId(),r={};a&&a.length&&(L(a).each(function(){r[this]=a[this]}),n.domElementsStyles[t]=r,i.removeAttr("style").attr(n.CSP_ATTRIB,t))}),e.filter("*").removeAttr("style"),(Object.values?Object.values(t):Object.keys(t).map(function(e){return t[e]})).flatMap(function(e){return e.innerHTML}).join("")},apply:function(e){var a=this;L(e).find("["+a.CSP_ATTRIB+"]").each(function(e,t){var i=L(t),t=i.attr(a.CSP_ATTRIB),t=a.domElementsStyles[t];t&&i.css(t),i.removeAttr(a.CSP_ATTRIB)}),a.domElementsStyles={}}},setHtml:function(e,t){var i=N.cspBuffer;return e.html(i.stash(t)),i.apply(e),e},htmlEncode:function(e,t){return void 0===e?t||null:e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")},replaceTags:function(e,t){var i=e;return t&&L.each(t,function(e,t){"function"==typeof t&&(t=t()),i=i.split(e).join(t)}),i},cleanMemory:function(e){e=(e.is("img")?e:e.find("source")).attr("src");N.revokeObjectURL(e)},findFileName:function(e){var t=e.lastIndexOf("/");return-1===t&&(t=e.lastIndexOf("\\")),e.split(e.substring(t,t+1)).pop()},checkFullScreen:function(){return document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement},toggleFullScreen:function(e){var t=document,i=t.documentElement,a=N.checkFullScreen();i&&e&&!a?i.requestFullscreen?i.requestFullscreen():i.msRequestFullscreen?i.msRequestFullscreen():i.mozRequestFullScreen?i.mozRequestFullScreen():i.webkitRequestFullscreen&&i.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT):a&&(t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():t.webkitExitFullscreen&&t.webkitExitFullscreen())},moveArray:function(e,t,i,a){var r=L.extend(!0,[],e);if(a&&r.reverse(),i>=r.length)for(var n=i-r.length;1+n--;)r.push(void 0);return r.splice(i,0,r.splice(t,1)[0]),a&&r.reverse(),r},closeButton:function(e){return'"},getRotation:function(e){switch(e){case 2:return"rotateY(180deg)";case 3:return"rotate(180deg)";case 4:return"rotate(180deg) rotateY(180deg)";case 5:return"rotate(270deg) rotateY(180deg)";case 6:return"rotate(90deg)";case 7:return"rotate(90deg) rotateY(180deg)";case 8:return"rotate(270deg)";default:return""}},setTransform:function(e,t){e&&(e.style.transform=t,e.style.webkitTransform=t,e.style["-moz-transform"]=t,e.style["-ms-transform"]=t,e.style["-o-transform"]=t)},getObjectKeys:function(e){var t=[];return e&&L.each(e,function(e){t.push(e)}),t},getObjectSize:function(e){return N.getObjectKeys(e).length},whenAll:function(e){for(var t,i,a,r=[].slice,n=1===arguments.length&&N.isArray(e)?e:r.call(arguments),o=L.Deferred(),s=0,l=n.length,d=l,c=i=a=Array(l),u=function(e,t,i){return function(){i!==n&&s++,o.notifyWith(t[e]=this,i[e]=r.call(arguments)),--d||o[(s?"reject":"resolve")+"With"](t,i)}},p=0;pg.file.size?g.file.size:e},getTotalChunks:function(){var e=parseFloat(g.chunkSize);return!isNaN(e)&&0h.maxRetries)return s(d.resumableMaxRetriesReached,{n:h.maxRetries}),void g.setProcessed("error");var c,u=t[t.slice?"slice":t.mozSlice?"mozSlice":t.webkitSlice?"webkitSlice":"slice"](e*r,e*(r+1)),p=new FormData,f=w.stack[l];m._setUploadData(p,{chunkCount:g.chunkCount,chunkIndex:r,chunkSize:e,chunkSizeStart:e*r,fileBlob:[u,g.fileName],fileId:l,fileName:g.fileName,fileRelativePath:f.relativePath,fileSize:t.size,retryCount:n}),g.$progress&&g.$progress.length&&g.$progress.show(),e=function(e){c=m._getOutData(p,e),m.showPreview&&(i.hasClass("file-preview-success")||(m._setThumbStatus(i,"Loading"),N.addCss(i,"file-uploading")),a.attr("disabled",!0)),m._raise("filechunkbeforesend",[l,r,n,w,g,c])},u=function(e,t,i){var a;m._isAborted()?s(d.resumableAborting):(c=m._getOutData(p,i,e),a=m.uploadParamNames.chunkIndex||"chunkIndex",i=[l,r,n,w,g,c],e.error?(h.showErrorLog&&m._log(v.retryStatus,{retry:n+1,filename:g.fileName,chunk:r}),m._raise("filechunkerror",i),g.pushAjax(r,n+1),g.error=e.error,s(e.error)):(g.logs[e[a]]=!0,g.chunksProcessed[l]||(g.chunksProcessed[l]={}),g.chunksProcessed[l][e[a]]=!0,g.chunksProcessed[l].data=e,o.resolve.call(null,e),m._raise("filechunksuccess",i),g.check()))},f=function(e,t,i){m._isAborted()?s(d.resumableAborting):(c=m._getOutData(p,e),g.setAjaxError(e,t,i),m._raise("filechunkajaxerror",[l,r,n,w,g,c]),g.pushAjax(r,n+1),s(d.resumableRetryError,{n:n-1}))},t=function(){m._isAborted()||m._raise("filechunkcomplete",[l,r,n,w,g,m._getOutData(p)])},m._ajaxSubmit(e,u,t,f,p,l,g.fileIndex)}}}).reset());h.fallback(m)}},_initTemplateDefaults:function(){var i=this,e=function(e,t){return'\n"+N.DEFAULT_PREVIEW+"\n\n"},t="btn btn-sm btn-kv "+N.defaultButtonCss(),a='{preview}\n
    \n
    \n
    \n {caption}\n\n'+(N.isBs(5)?"":'
    \n')+" {remove}\n {cancel}\n {pause}\n {upload}\n {browse}\n"+(N.isBs(5)?"":"
    \n")+"
    ",r=N.closeButton("fileinput-remove"),n=N.MODAL_ID+"Label",o='',s='\n',l=" {style}",d=e("html","text/html"),c=e("text","text/plain;charset=UTF-8"),u=e("pdf","application/pdf"),p='{alt}\n",f='",g='",m='\n",h='\x3c!--suppress ALL --\x3e\n",v='\n",n='\n\n'+N.OBJECT_PARAMS+" "+N.DEFAULT_PREVIEW+"\n\n",w='
    \n"+N.DEFAULT_PREVIEW+"\n
    \n",e={width:"100%",height:"100%","min-height":"480px"};i._isPdfRendered()&&(u=i.pdfRendererTemplate.replace("{renderer}",i._encodeURI(i.pdfRendererUrl))),i.defaults={layoutTemplates:{main1:a,main2:'{preview}\n
    \n
    \n{remove}\n{cancel}\n{upload}\n{browse}\n',preview:'
    \n {close}
    \n
    \n
    \n
    \n
    \n
    \n
    ',close:r,fileIcon:'',caption:'\n',modalMain:o,modal:s,descriptionClose:'',progress:'
    \n
    \n {status}\n
    \n
    {stats}',stats:'
    {pendingTime} {uploadSpeed}
    ',size:" ({sizeText})",footer:'',indicator:'
    {indicator}
    ',actions:'
    \n \n
    \n{drag}\n
    ',actionDelete:'\n',actionUpload:'',actionDownload:'{downloadIcon}',actionZoom:'',actionDrag:'{dragIcon}',btnDefault:'',btnLink:'{icon} {label}',btnBrowse:'
    {icon} {label}
    ',zoomCache:'
    {zoomContent}
    '},previewMarkupTags:{tagBefore1:'
    \n',tagBefore2:'
    \n',tagAfter:"
    {footer}\n{zoomCache}
    \n"},previewContentTemplates:{generic:"{content}\n",html:d,image:p,text:c,office:f,gdocs:g,video:m,audio:h,flash:v,object:n,pdf:u,other:w},allowedPreviewTypes:["image","html","text","video","audio","flash","pdf","object"],previewTemplates:{},previewSettings:{image:{width:"auto",height:"auto","max-width":"100%","max-height":"100%"},html:{width:"213px",height:"160px"},text:{width:"213px",height:"160px"},office:{width:"213px",height:"160px"},gdocs:{width:"213px",height:"160px"},video:{width:"213px",height:"160px"},audio:{width:"100%",height:"30px"},flash:{width:"213px",height:"160px"},object:{width:"213px",height:"160px"},pdf:{width:"100%",height:"160px",position:"relative"},other:{width:"213px",height:"160px"}},previewSettingsSmall:{image:{width:"auto",height:"auto","max-width":"100%","max-height":"100%"},html:{width:"100%",height:"160px"},text:{width:"100%",height:"160px"},office:{width:"100%",height:"160px"},gdocs:{width:"100%",height:"160px"},video:{width:"100%",height:"auto"},audio:{width:"100%",height:"30px"},flash:{width:"100%",height:"auto"},object:{width:"100%",height:"auto"},pdf:{width:"100%",height:"160px"},other:{width:"100%",height:"160px"}},previewZoomSettings:{image:{width:"auto",height:"auto","max-width":"100%","max-height":"100%"},html:e,text:e,office:{width:"100%",height:"100%","max-width":"100%","min-height":"480px"},gdocs:{width:"100%",height:"100%","max-width":"100%","min-height":"480px"},video:{width:"auto",height:"100%","max-width":"100%"},audio:{width:"100%",height:"30px"},flash:{width:"auto",height:"480px"},object:{width:"auto",height:"100%","max-width":"100%","min-height":"480px"},pdf:e,other:{width:"auto",height:"100%","min-height":"480px"}},mimeTypeAliases:{"video/quicktime":"video/mp4"},fileTypeSettings:{image:function(e,t){return N.compare(e,"image.*")&&!N.compare(e,/(tiff?|wmf)$/i)||N.compare(t,/\.(gif|png|jpe?g)$/i)},html:function(e,t){return N.compare(e,"text/html")||N.compare(t,/\.(htm|html)$/i)},office:function(e,t){return N.compare(e,/(word|excel|powerpoint|office)$/i)||N.compare(t,/\.(docx?|xlsx?|pptx?|pps|potx?)$/i)},gdocs:function(e,t){return N.compare(e,/(word|excel|powerpoint|office|iwork-pages|tiff?)$/i)||N.compare(t,/\.(docx?|xlsx?|pptx?|pps|potx?|rtf|ods|odt|pages|ai|dxf|ttf|tiff?|wmf|e?ps)$/i)},text:function(e,t){return N.compare(e,"text.*")||N.compare(t,/\.(xml|javascript)$/i)||N.compare(t,/\.(txt|md|nfo|ini|json|php|js|css)$/i)},video:function(e,t){return N.compare(e,"video.*")&&(N.compare(e,/(ogg|mp4|mp?g|mov|webm|3gp)$/i)||N.compare(t,/\.(og?|mp4|webm|mp?g|mov|3gp)$/i))},audio:function(e,t){return N.compare(e,"audio.*")&&(N.compare(t,/(ogg|mp3|mp?g|wav)$/i)||N.compare(t,/\.(og?|mp3|mp?g|wav)$/i))},flash:function(e,t){return N.compare(e,"application/x-shockwave-flash",!0)||N.compare(t,/\.(swf)$/i)},pdf:function(e,t){return N.compare(e,"application/pdf",!0)||N.compare(t,/\.(pdf)$/i)},object:function(){return!0},other:function(){return!0}},fileActionSettings:{showRemove:!0,showUpload:!0,showDownload:!0,showZoom:!0,showDrag:!0,removeIcon:'',removeClass:t,removeErrorClass:"btn btn-sm btn-kv btn-danger",removeTitle:"Remove file",uploadIcon:'',uploadClass:t,uploadTitle:"Upload file",uploadRetryIcon:'',uploadRetryTitle:"Retry upload",downloadIcon:'',downloadClass:t,downloadTitle:"Download file",zoomIcon:'',zoomClass:t,zoomTitle:"View Details",dragIcon:'',dragClass:"text-primary",dragTitle:"Move / Rearrange",dragSettings:{},indicatorNew:'',indicatorSuccess:'',indicatorError:'',indicatorLoading:'',indicatorPaused:'',indicatorNewTitle:"Not uploaded yet",indicatorSuccessTitle:"Uploaded",indicatorErrorTitle:"Upload Error",indicatorLoadingTitle:"Uploading …",indicatorPausedTitle:"Upload Paused"}},L.each(i.defaults,function(e,t){"allowedPreviewTypes"!==e?i[e]=L.extend(!0,{},t,i[e]):void 0===i.allowedPreviewTypes&&(i.allowedPreviewTypes=t)}),i._initPreviewTemplates()},_initPreviewTemplates:function(){var i,a=this,r=a.previewMarkupTags,n=r.tagAfter;L.each(a.previewContentTemplates,function(e,t){N.isEmpty(a.previewTemplates[e])&&(i=r.tagBefore2,"generic"!==e&&"image"!==e||(i=r.tagBefore1),a._isPdfRendered()&&"pdf"===e&&(i=i.replace("kv-file-content","kv-file-content kv-pdf-rendered")),a.previewTemplates[e]=i+t+n)})},_initPreviewCache:function(){var f=this;f.previewCache={data:{},init:function(){var e=f.initialPreview;0'+e+"":"
  • "+e+"
  • ";return 0===r.find("ul").length?a._addError("
      "+i+"
    "):r.find("ul").append(i),r.fadeIn(a.fadeDelay),a._raise(n,[t,e]),a._setValidationError("file-input-new"),!0},_showError:function(e,t,i){var a=this,r=a.$errorContainer,i=i||"fileerror";return(t=t||{}).reader=a.reader,a._addError(e),r.fadeIn(a.fadeDelay),a._raise(i,[t,e]),a.isAjaxUpload||a._clearFileInput(),a._setValidationError("file-input-new"),a.$btnUpload.attr("disabled",!0),!0},_noFilesError:function(e){var t=this,i=1"+a+"";0===i.find("ul").length?t._addError("
      "+a+"
    "):i.find("ul").append(a),t.isError=!0,t._updateFileDetails(0),i.fadeIn(t.fadeDelay),t._raise("fileerror",[e,a]),t._clearFileInput(),t._setValidationError()},_parseError:function(e,t,i,a){var r=this,n=L.trim(i+""),i=t.responseJSON&&t.responseJSON.error?t.responseJSON.error.toString():"",t=i||t.responseText;return r.cancelling&&r.msgUploadAborted&&(n=r.msgUploadAborted),r.showAjaxErrorDetails&&t&&(i?n=L.trim(i+""):(i=(t=L.trim(t.replace(/\n\s*\n/g,"\n"))).length?"
    "+t+"
    ":"",n+=n?i:t)),n=n||r.msgAjaxError.replace("{operation}",e),r.cancelling=!1,a?""+a+": "+n:n},_parseFileType:function(e,t){var i,a,r=this.allowedPreviewTypes||[];if("application/text-plain"===e)return"text";for(a=0;a.kv-file-content img"),t=r._getZoom(t," >.kv-file-content img"),o?e.css("image-orientation",r.autoOrientImageInitial?"from-image":"none"):r.setImageOrientation(e,t,a.exif.Orientation,i)),n++})},_initPreview:function(e){var t,i=this,a=i.initialCaption||"";if(!i.previewCache.count(!0))return i._clearPreview(),void(e?i._setCaption(a):i._initCaption());t=i.previewCache.out(),a=e&&i.initialCaption?i.initialCaption:t.caption,i._setPreviewContent(t.content),i._setInitThumbAttr(),i._setCaption(a),i._initSortable(),N.isEmpty(t.content)||i.$container.removeClass("file-input-new"),i._initPreviewImageOrientations()},_getZoomButton:function(e){var t=this.previewZoomButtonIcons[e],i=this.previewZoomButtonClasses[e],a=' title="'+(this.previewZoomButtonTitles[e]||"")+'" ',r=N.isBs(5)?"bs-":"",r=a+("close"===e?" data-"+r+'dismiss="modal" aria-hidden="true"':"");return"fullscreen"!==e&&"borderless"!==e&&"toggleheader"!==e||(r+=' data-toggle="button" aria-pressed="false" autocomplete="off"'),'"},_getModalContent:function(){var e=this;return e._getLayoutTemplate("modal").setTokens({rtl:e.rtl?" kv-rtl":"",zoomFrameClass:e.frameClass,prev:e._getZoomButton("prev"),next:e._getZoomButton("next"),toggleheader:e._getZoomButton("toggleheader"),fullscreen:e._getZoomButton("fullscreen"),borderless:e._getZoomButton("borderless"),close:e._getZoomButton("close")})},_listenModalEvent:function(a){var r=this,n=r.$modal;n.on(a+".bs.modal",function(e){var t,i;"bs.modal"===e.namespace&&(t=n.find(".btn-fullscreen"),i=n.find(".btn-borderless"),n.data("fileinputPluginId")===r.$element.attr("id")&&r._raise("filezoom"+a,{sourceEvent:e,previewId:n.data("previewId"),modal:n}),"shown"===a&&(i.removeClass("active").attr("aria-pressed","false"),t.removeClass("active").attr("aria-pressed","false"),n.hasClass("file-zoom-fullscreen")&&(r._maximizeZoomDialog(),(N.checkFullScreen()?t:i).addClass("active").attr("aria-pressed","true"))))})},_initZoom:function(){var i=this,e=i._getLayoutTemplate("modalMain"),t="#"+N.MODAL_ID,e=i._setTabIndex("modal",e);i.showPreview&&(i.$modal=L(t),i.$modal&&i.$modal.length||(e=N.createElement(N.cspBuffer.stash(e)).insertAfter(i.$container),i.$modal=L(t).insertBefore(e),N.cspBuffer.apply(i.$modal),e.remove()),N.initModal(i.$modal),i.$modal.html(N.cspBuffer.stash(i._getModalContent())),N.cspBuffer.apply(i.$modal),L.each(N.MODAL_EVENTS,function(e,t){i._listenModalEvent(t)}))},_initZoomButtons:function(){var e,t=this,i=t.$modal.data("previewId")||"",a=t.getFrames().toArray(),r=a.length,n=t.$modal.find(".btn-kv-prev"),o=t.$modal.find(".btn-kv-next");if(a.length<2)return n.hide(),void o.hide();n.show(),o.show(),r&&(e=L(a[0]),r=L(a[r-1]),n.removeAttr("disabled"),o.removeAttr("disabled"),t.reversePreviewOrder&&([n,o]=[o,n]),e.length&&e.attr("id")===i&&n.attr("disabled",!0),r.length&&r.attr("id")===i&&o.attr("disabled",!0))},_maximizeZoomDialog:function(){var e=this.$modal,t=e.find(".modal-header:visible"),i=e.find(".modal-footer:visible"),a=e.find(".kv-zoom-body"),r=L(window).height();e.addClass("file-zoom-fullscreen"),t&&t.length&&(r-=t.outerHeight(!0)),i&&i.length&&(r-=i.outerHeight(!0)),a&&a.length&&(r-=a.outerHeight(!0)-a.height()),e.find(".kv-zoom-body").height(r)},_resizeZoomDialog:function(e){var t=this,i=t.$modal,a=i.find(".btn-kv-fullscreen"),r=i.find(".btn-kv-borderless");if(i.hasClass("file-zoom-fullscreen"))N.toggleFullScreen(!1),e?a.hasClass("active")||(i.removeClass("file-zoom-fullscreen"),t._resizeZoomDialog(!0),r.hasClass("active")&&r.removeClass("active").attr("aria-pressed","false")):a.hasClass("active")?a.removeClass("active").attr("aria-pressed","false"):(i.removeClass("file-zoom-fullscreen"),t.$modal.find(".kv-zoom-body").css("height",t.zoomModalHeight));else{if(!e)return void t._maximizeZoomDialog();N.toggleFullScreen(!0)}i.focus()},_setZoomContent:function(e,t){var i,a,r,n,o,s=this,l=e.attr("id"),d=s._getZoom(l),c=s.$modal,u=c.find(".btn-kv-fullscreen"),p=c.find(".btn-kv-borderless"),f=c.find(".btn-kv-toggleheader"),g=e.data("zoom");g&&(g=decodeURIComponent(g),o=d.html().replace(N.ZOOM_VAR,"").setTokens({zoomData:g}),d.html(o),e.data("zoom",""),d.attr("data-zoom",g)),n=d.attr("data-template")||"generic",g=(o=d.find(".kv-file-content")).length?'\n'+o.html():"",d=e.data("caption")||s.msgZoomModalHeading,o=e.data("size")||"",e=e.data("description")||"",c.find(".kv-zoom-caption").attr("title",d).html(d),c.find(".kv-zoom-size").html(o),o=c.find(".kv-zoom-description").hide(),e&&(s.showDescriptionClose&&(e=s._getLayoutTemplate("descriptionClose").setTokens({closeIcon:s.previewZoomButtonIcons.close})+""+e),o.show().html(e),s.showDescriptionClose&&s._handler(c.find(".kv-desc-hide"),"click",function(){L(this).parent().fadeOut("fast",function(){c.focus()})})),i=c.find(".kv-zoom-body"),c.removeClass("kv-single-content"),t?(r=i.addClass("file-thumb-loading").clone().insertAfter(i),N.setHtml(i,g).hide(),r.fadeOut("fast",function(){i.fadeIn("fast",function(){i.removeClass("file-thumb-loading")}),r.remove()})):N.setHtml(i,g),(n=s.previewZoomSettings[n])&&(a=i.find(".kv-preview-data"),N.addCss(a,"file-zoom-detail"),L.each(n,function(e,t){a.css(e,t),(a.attr("width")&&"width"===e||a.attr("height")&&"height"===e)&&a.removeAttr(e)})),c.data("previewId",l),s._handler(c.find(".btn-kv-prev"),"click",function(){s._zoomSlideShow("prev",l)}),s._handler(c.find(".btn-kv-next"),"click",function(){s._zoomSlideShow("next",l)}),s._handler(u,"click",function(){s._resizeZoomDialog(!0)}),s._handler(p,"click",function(){s._resizeZoomDialog(!1)}),s._handler(f,"click",function(){function e(e){var t=s.$modal.find(".kv-zoom-body"),i=s.zoomModalHeight;c.hasClass("file-zoom-fullscreen")&&(i=t.outerHeight(!0),e||(i-=a.outerHeight(!0))),t.css("height",e?i+e:i)}var t,a=c.find(".modal-header"),i=c.find(".floating-buttons"),r=a.find(".kv-zoom-actions");a.is(":visible")?(t=a.outerHeight(!0),a.slideUp("slow",function(){r.find(".btn").appendTo(i),e(t)})):(i.find(".btn").appendTo(r),a.slideDown("slow",function(){e()})),c.focus()}),s._handler(c,"keydown",function(e){var t,a=e.which||e.keyCode,r=s.processDelay+1,i=L(this).find(".btn-kv-prev"),n=L(this).find(".btn-kv-next"),o=L(this).data("previewId");[t,e]=s.rtl?[39,37]:[37,39],L.each({prev:[i,t],next:[n,e]},function(e,t){var i=t[0],t=t[1];a===t&&i.length&&(c.focus(),i.attr("disabled")||(i.focus(),s._zoomSlideShow(e,o),setTimeout(function(){i.attr("disabled")&&c.focus()},r)))})})},_showModal:function(e){var t=this.$modal;e&&e.length&&(N.initModal(t),N.setHtml(t,this._getModalContent()),this._setZoomContent(e),t.data({backdrop:!1}),t.modal("show"),this._initZoomButtons())},_zoomPreview:function(e){if(!e.length)throw"Cannot zoom to detailed preview!";e=e.closest(N.FRAMES),this._showModal(e)},_zoomSlideShow:function(e,t){var i,a,r,n=this,o=n.$modal.find(".kv-zoom-actions .btn-kv-"+e),s=n.getFrames().toArray(),l=[],d=s.length;if(n.reversePreviewOrder&&(e="prev"===e?"next":"prev"),!o.attr("disabled")){for(i=0;i'+e.defaultPreviewContent+"
    "),e.$container.removeClass("file-input-new"),e._initClickable())},_resetPreviewThumbs:function(e){var t=this;if(e)return t._clearPreview(),void t.clearFileStack();t._hasInitialPreview()?(e=t.previewCache.out(),t._setPreviewContent(e.content),t._setInitThumbAttr(),t._setCaption(e.caption),t._initPreviewActions()):t._clearPreview()},_getLayoutTemplate:function(e){e=this.layoutTemplates[e];return N.isEmpty(this.customLayoutTags)?e:N.replaceTags(e,this.customLayoutTags)},_getPreviewTemplate:function(e){var t=this.previewTemplates,t=t[e]||t.other;return N.isEmpty(this.customPreviewTags)?t:N.replaceTags(t,this.customPreviewTags)},_getOutData:function(e,t,i,a){var r=this;return t=t||{},i=i||{},{formdata:e,files:a=a||r.fileManager.list(),filenames:r.filenames,filescount:r.getFilesCount(),extra:r._getExtraData(),response:i,reader:r.reader,jqXHR:t}},_getMsgSelected:function(e,t){var i=this,a=1===e?i.fileSingle:i.filePlural;return 0 .file-preview-frame");e&&e.length&&e.insertBefore(t).fadeIn("slow").css("display:inline-block"),l._initPreviewActions(),l._clearFileInput(),t.remove(),a.remove(),l._initSortable()})):(l.previewCache.set(r,n,o,e),l._initPreview(),l._initPreviewActions())),l._resetCaption()},_getUploadCacheIndex:function(e){for(var t=this.uploadCache.length,i=0;i&"']/g,"_")},_updateFileDetails:function(e){var t=this,i=t.$element,a=N.isIE(9)&&N.findFileName(i.val())||i[0].files[0]&&i[0].files[0].name,r=!a&&0'+a+"
    "),t.$container.removeClass("file-input-new"),N.addCss(t.$container,"file-input-ajax-new"))},_getStats:function(e){var t,i;return this.showUploadStats&&e&&e.bitrate?(i=this._getLayoutTemplate("stats"),t=e.elapsed&&e.bps?this.msgPendingTime.setTokens({time:N.getElapsed(Math.ceil(e.pendingBytes/e.bps))}):this.msgCalculatingTime,i.setTokens({uploadSpeed:e.bitrate,pendingTime:t})):""},_setResumableProgress:function(e,t,i){var a=this.resumableManager,a=i?a:this,i=i?i.find(".file-thumb-progress"):null;0===a.lastProgress&&(a.lastProgress=e),eo*a.bytesToKB&&a._getResizedImage(e,t,r,n),t.validated=!0)}))},_getResizedImage:function(e,t,i,a){var r,n,o=this,s=L(t.img)[0],l=s.naturalWidth,d=s.naturalHeight,c=1,u=o.maxImageWidth||l,p=o.maxImageHeight||d,f=!(!l||!d),g=o.imageCanvas,m=o.imageCanvasContext,h=t.typ,v=t.pid,w=t.ind,b=t.thumb,_=t.exifObj,C=function(e,t,i){o.isAjaxUpload?o._showFileError(e,t,i):o._showError(e,t,i),o._setPreviewError(b)},t=o.fileManager.getFile(e),y={id:v,index:w,fileId:e},x=[e,v,w];if(t&&f&&!(l<=u&&d<=p)||(f&&t&&o._raise("fileimageresized",x),i.val++,i.val===a&&o._raise("fileimagesresized"),f)){h=h||o.resizeDefaultImageType,t=u"+n.msgValidationError+"
    ").text(),r=(a=n.fileManager.count())?(r=n.fileManager.getFirstFile(),1===a&&r?r.nameFmt:n._getMsgSelected(a)):n._getMsgSelected(n.msgNo),a=N.isEmpty(e)?r:e,r=''+n.msgValidationErrorIcon+"";else{if(N.isEmpty(e))return void n.$caption.attr("title","");a=i=L("
    "+e+"
    ").text(),r=n._getLayoutTemplate("fileIcon")}n.$captionContainer.addClass("icon-visible"),n.$caption.attr("title",i).val(a),N.setHtml(n.$captionIcon,r)}},_createContainer:function(){var e=this,t={class:"file-input file-input-new"+(e.rtl?" kv-rtl":"")},i=N.createElement(N.cspBuffer.stash(e._renderMain()));return N.cspBuffer.apply(i),i.insertBefore(e.$element).attr(t),e._initBrowse(i),e.theme&&i.addClass("theme-"+e.theme),i},_refreshContainer:function(){var e=this,t=e.$container;e.$element.insertAfter(t),N.setHtml(t,e._renderMain()),e._initBrowse(t),e._validateDisabled()},_validateDisabled:function(){this.$caption.attr({readonly:this.isDisabled})},_setTabIndex:function(e,t){e=this.tabIndexConfig[e];return t.setTokens({tabIndexConfig:null==e?"":'tabindex="'+e+'"'})},_renderMain:function(){var e=this,t=e.dropZoneEnabled?" file-drop-zone":"file-drop-disabled",i=e.showClose?e._getLayoutTemplate("close"):"",a=e.showPreview?e._getLayoutTemplate("preview").setTokens({class:e.previewClass,dropClass:t}):"",t=e.isDisabled?e.captionClass+" file-caption-disabled":e.captionClass,t=e.captionTemplate.setTokens({class:t+" kv-fileinput-caption"}),t=e._setTabIndex("caption",t);return e.mainTemplate.setTokens({class:e.mainClass+(!e.showBrowse&&e.showCaption?" no-browse":""),inputGroupClass:e.inputGroupClass,preview:a,close:i,caption:t,upload:e._renderButton("upload"),remove:e._renderButton("remove"),cancel:e._renderButton("cancel"),pause:e._renderButton("pause"),browse:e._renderButton("browse")})},_renderButton:function(e){var t=this,i=t._getLayoutTemplate("btnDefault"),a=t[e+"Class"],r=t[e+"Title"],n=t[e+"Icon"],o=t[e+"Label"],s=t.isDisabled?" disabled":"",l="button";switch(e){case"remove":if(!t.showRemove)return"";break;case"cancel":if(!t.showCancel)return"";a+=" kv-hidden";break;case"pause":if(!t.showPause)return"";a+=" kv-hidden";break;case"upload":if(!t.showUpload)return"";t.isAjaxUpload&&!t.isDisabled?i=t._getLayoutTemplate("btnLink").replace("{href}",t.uploadUrl):l="submit";break;case"browse":if(!t.showBrowse)return"";i=t._getLayoutTemplate("btnBrowse");break;default:return""}return i=t._setTabIndex(e,i),a+="browse"===e?" btn-file":" fileinput-"+e+" fileinput-"+e+"-button",N.isEmpty(o)||(o=' '+o+""),i.setTokens({type:l,css:a,title:r,status:s,icon:n,label:o})},_renderThumbProgress:function(){return'
    '+this.progressInfoTemplate.setTokens({percent:101,status:this.msgUploadBegin,stats:""})+"
    "},_renderFileFooter:function(e,t,i,a,r){var n=this,o=n.fileActionSettings,s=o.showRemove,l=o.showDrag,d=o.showUpload,c=o.showZoom,u=n._getLayoutTemplate("footer"),p=n._getLayoutTemplate("indicator"),f=r?o.indicatorError:o.indicatorNew,o=r?o.indicatorErrorTitle:o.indicatorNewTitle,o=p.setTokens({indicator:f,indicatorTitle:o}),o={type:e,caption:t,size:i=n._getSize(i),width:a,progress:"",indicator:o};return n.isAjaxUpload?(o.progress=n._renderThumbProgress(),o.actions=n._renderFileActions(o,d,!1,s,c,l,!1,!1,!1)):o.actions=n._renderFileActions(o,!1,!1,!1,c,l,!1,!1,!1),o=u.setTokens(o),o=N.replaceTags(o,n.previewThumbTags)},_renderFileActions:function(e,t,i,a,r,n,o,s,l,d,c,u){var p=this;if(!e.type&&d&&(e.type="image"),p.enableResumableUpload?t=!1:"function"==typeof t&&(t=t(e)),"function"==typeof i&&(i=i(e)),"function"==typeof a&&(a=a(e)),"function"==typeof r&&(r=r(e)),"function"==typeof n&&(n=n(e)),!(t||i||a||r||n))return"";var f=!1===s?"":' data-url="'+s+'"',g="",m="",h=!1===l?"":' data-key="'+l+'"',v="",w="",b="",_=p._getLayoutTemplate("actions"),e=p.fileActionSettings,s=p.otherActionButtons.setTokens({dataKey:h,key:l}),o=o?e.removeClass+" disabled":e.removeClass;return a&&(v=p._getLayoutTemplate("actionDelete").setTokens({removeClass:o,removeIcon:e.removeIcon,removeTitle:e.removeTitle,dataUrl:f,dataKey:h,key:l})),t&&(w=p._getLayoutTemplate("actionUpload").setTokens({uploadClass:e.uploadClass,uploadIcon:e.uploadIcon,uploadTitle:e.uploadTitle})),i&&(b=(b=p._getLayoutTemplate("actionDownload").setTokens({downloadClass:e.downloadClass,downloadIcon:e.downloadIcon,downloadTitle:e.downloadTitle,downloadUrl:c||p.initialPreviewDownloadUrl})).setTokens({filename:u,key:l})),r&&(g=p._getLayoutTemplate("actionZoom").setTokens({zoomClass:e.zoomClass,zoomIcon:e.zoomIcon,zoomTitle:e.zoomTitle})),n&&d&&(d="drag-handle-init "+e.dragClass,m=p._getLayoutTemplate("actionDrag").setTokens({dragClass:d,dragTitle:e.dragTitle,dragIcon:e.dragIcon})),_.setTokens({delete:v,upload:w,download:b,zoom:g,drag:m,other:s})},_browse:function(e){var t=this;e&&e.isDefaultPrevented()||!t._raise("filebrowse")||(t.isError&&!t.isAjaxUpload&&t.clear(),t.focusCaptionOnBrowse&&t.$captionContainer.focus())},_change:function(e){var n=this;if(L(document.body).off("focusin.fileinput focusout.fileinput"),!n.changeTriggered){n._setLoading("show");var t=n.$element,i=1
  • ")+"
  • ",0===e.find("ul").length?N.setHtml(e,S.errorCloseButton+"
      "+x+"
    "):e.find("ul").append(x),e.fadeIn(S.fadeDelay),S._handler(e.find(".kv-error-close"),"click",function(){e.fadeOut(S.fadeDelay)}),S.duplicateErrors=[]),S.isAjaxUpload?(S._raise("filebatchselected",[i.stack]),0!==i.count()||S.isError||S.reset()):S._raise("filebatchselected",[P]),I.removeClass("file-thumb-loading"),S._initCapStatus("valid"),void A.html("");S.lock(!0);function c(){var e=!!i.loadedImages[s],t=D.setTokens({index:d+1,files:j,percent:50,name:m});setTimeout(function(){A.html(t),S._updateFileDetails(j),k(d+1)},S.processDelay),S._raise("fileloaded",[f,l,s,d,E])&&S.isAjaxUpload?e||i.add(f):e&&i.removeFile(s)}var t,u,a,r,n,o,p,f=P[d],s=S._getFileId(f),l=U+"-"+s,g=M.image,m=S._getFileName(f,""),h=(f&&f.size||0)/S.bytesToKB,v="",w=N.createObjectURL(f),b=0,_="",C=!1,y=0;if(f){if(r=i.getId(f),0S.maxFileSize)return T=S.msgSizeTooLarge.setTokens({name:m,size:t,maxSize:S.maxFileSize}),void F(T,f,l,d,r);if(null!==S.minFileSize&&h<=N.getNum(S.minFileSize))return T=S.msgSizeTooSmall.setTokens({name:m,size:t,minSize:S.minFileSize}),void F(T,f,l,d,r);if(!N.isEmpty($)&&N.isArray($)){for(u=0;u<$.length;u+=1)o=$[u],b+=(o=M[o])&&"function"==typeof o&&o(f.type,N.getFileName(f))?1:0;if(0===b)return T=S.msgInvalidFileType.setTokens({name:m,types:_}),void F(T,f,l,d,r)}return 0!==b||N.isEmpty(R)||!N.isArray(R)||N.isEmpty(v)||(v=N.compare(m,v),0!==(b+=N.isEmpty(v)?0:v.length))?S._canPreview(f)?(p=g(f.type,m),A.html(z.replace("{index}",d+1).replace("{files}",j)),I.addClass("file-thumb-loading"),S._initCapStatus("processing"),E.onerror=function(e){S._errorHandler(e,m)},E.onload=function(e){var t,i,a,r,n,o,s=[],l={name:m,type:f.type};if(L.each(M,function(e,t){"object"!==e&&"other"!==e&&"function"==typeof t&&t(f.type,m)&&y++}),0===y){for(i=new Uint8Array(e.target.result),u=0;u',next:'',toggleheader:'',fullscreen:'',borderless:'',close:''},previewZoomButtonClasses:{prev:"btn btn-default btn-outline-secondary btn-navigate",next:"btn btn-default btn-outline-secondary btn-navigate",toggleheader:t,fullscreen:t,borderless:t,close:t},previewTemplates:{},previewContentTemplates:{},preferIconicPreview:!1,preferIconicZoomPreview:!1,allowedFileTypes:null,allowedFileExtensions:null,allowedPreviewTypes:void 0,allowedPreviewMimeTypes:null,allowedPreviewExtensions:null,disabledPreviewTypes:void 0,disabledPreviewExtensions:["msi","exe","com","zip","rar","app","vb","scr"],disabledPreviewMimeTypes:null,defaultPreviewContent:null,customLayoutTags:{},customPreviewTags:{},previewFileIcon:'',previewFileIconClass:"file-other-icon",previewFileIconSettings:{},previewFileExtSettings:{},buttonLabelClass:"hidden-xs",browseIcon:' ',browseClass:"btn btn-primary",removeIcon:'',removeClass:i,cancelIcon:'',cancelClass:i,pauseIcon:'',pauseClass:i,uploadIcon:'',uploadClass:i,uploadUrl:null,uploadUrlThumb:null,uploadAsync:!0,uploadParamNames:{chunkCount:"chunkCount",chunkIndex:"chunkIndex",chunkSize:"chunkSize",chunkSizeStart:"chunkSizeStart",chunksUploaded:"chunksUploaded",fileBlob:"fileBlob",fileId:"fileId",fileName:"fileName",fileRelativePath:"fileRelativePath",fileSize:"fileSize",retryCount:"retryCount"},maxAjaxThreads:5,fadeDelay:800,processDelay:100,bitrateUpdateDelay:500,queueDelay:10,progressDelay:0,enableResumableUpload:!1,resumableUploadOptions:{fallback:null,testUrl:null,chunkSize:2048,maxThreads:4,maxRetries:3,showErrorLog:!0,retainErrorHistory:!0,skipErrorsAndProceed:!1},uploadExtraData:{},zoomModalHeight:480,minImageWidth:null,minImageHeight:null,maxImageWidth:null,maxImageHeight:null,resizeImage:!1,resizePreference:"width",resizeQuality:.92,resizeDefaultImageType:"image/jpeg",resizeIfSizeMoreThan:0,minFileSize:-1,maxFileSize:0,maxFilePreviewSize:25600,minFileCount:0,maxFileCount:0,maxTotalFileCount:0,validateInitialCount:!1,msgValidationErrorClass:"text-danger",msgValidationErrorIcon:' ',msgErrorClass:"file-error-message",progressThumbClass:"progress-bar progress-bar-striped active progress-bar-animated",progressClass:"progress-bar bg-success progress-bar-success progress-bar-striped active progress-bar-animated",progressInfoClass:"progress-bar bg-info progress-bar-info progress-bar-striped active progress-bar-animated",progressCompleteClass:"progress-bar bg-success progress-bar-success",progressPauseClass:"progress-bar bg-primary progress-bar-primary progress-bar-striped active progress-bar-animated",progressErrorClass:"progress-bar bg-danger progress-bar-danger",progressUploadThreshold:99,previewFileType:"image",elCaptionContainer:null,elCaptionText:null,elPreviewContainer:null,elPreviewImage:null,elPreviewStatus:null,elErrorContainer:null,errorCloseButton:void 0,slugCallback:null,dropZoneEnabled:!0,dropZoneTitleClass:"file-drop-zone-title",fileActionSettings:{},otherActionButtons:"",textEncoding:"UTF-8",preProcessUpload:null,ajaxSettings:{},ajaxDeleteSettings:{},showAjaxErrorDetails:!0,mergeAjaxCallbacks:!1,mergeAjaxDeleteCallbacks:!1,retryErrorUploads:!0,reversePreviewOrder:!1,usePdfRenderer:function(){var e=!!window.MSInputMethodContext&&!!document.documentMode;return!!navigator.userAgent.match(/(iPod|iPhone|iPad|Android)/i)||e},pdfRendererUrl:"",pdfRendererTemplate:'',tabIndexConfig:{browse:500,remove:500,upload:500,cancel:null,pause:null,modal:-1}},L.fn.fileinputLocales.en={sizeUnits:["B","KB","MB","GB","TB","PB","EB","ZB","YB"],bitRateUnits:["B/s","KB/s","MB/s","GB/s","TB/s","PB/s","EB/s","ZB/s","YB/s"],fileSingle:"file",filePlural:"files",browseLabel:"Browse …",removeLabel:"Remove",removeTitle:"Clear all unprocessed files",cancelLabel:"Cancel",cancelTitle:"Abort ongoing upload",pauseLabel:"Pause",pauseTitle:"Pause ongoing upload",uploadLabel:"Upload",uploadTitle:"Upload selected files",msgNo:"No",msgNoFilesSelected:"No files selected",msgCancelled:"Cancelled",msgPaused:"Paused",msgPlaceholder:"Select {files} ...",msgZoomModalHeading:"Detailed Preview",msgFileRequired:"You must select a file to upload.",msgSizeTooSmall:'File "{name}" ({size} KB) is too small and must be larger than {minSize} KB.',msgSizeTooLarge:'File "{name}" ({size} KB) exceeds maximum allowed upload size of {maxSize} KB.',msgFilesTooLess:"You must select at least {n} {files} to upload.",msgFilesTooMany:"Number of files selected for upload ({n}) exceeds maximum allowed limit of {m}.",msgTotalFilesTooMany:"You can upload a maximum of {m} files ({n} files detected).",msgFileNotFound:'File "{name}" not found!',msgFileSecured:'Security restrictions prevent reading the file "{name}".',msgFileNotReadable:'File "{name}" is not readable.',msgFilePreviewAborted:'File preview aborted for "{name}".',msgFilePreviewError:'An error occurred while reading the file "{name}".',msgInvalidFileName:'Invalid or unsupported characters in file name "{name}".',msgInvalidFileType:'Invalid type for file "{name}". Only "{types}" files are supported.',msgInvalidFileExtension:'Invalid extension for file "{name}". Only "{extensions}" files are supported.',msgFileTypes:{image:"image",html:"HTML",text:"text",video:"video",audio:"audio",flash:"flash",pdf:"PDF",object:"object"},msgUploadAborted:"The file upload was aborted",msgUploadThreshold:"Processing …",msgUploadBegin:"Initializing …",msgUploadEnd:"Done",msgUploadResume:"Resuming upload …",msgUploadEmpty:"No valid data available for upload.",msgUploadError:"Upload Error",msgDeleteError:"Delete Error",msgProgressError:"Error",msgValidationError:"Validation Error",msgLoading:"Loading file {index} of {files} …",msgProgress:"Loading file {index} of {files} - {name} - {percent}% completed.",msgSelected:"{n} {files} selected",msgProcessing:"Processing ...",msgFoldersNotAllowed:"Drag & drop files only! {n} folder(s) dropped were skipped.",msgImageWidthSmall:'Width of image file "{name}" must be at least {size} px.',msgImageHeightSmall:'Height of image file "{name}" must be at least {size} px.',msgImageWidthLarge:'Width of image file "{name}" cannot exceed {size} px.',msgImageHeightLarge:'Height of image file "{name}" cannot exceed {size} px.',msgImageResizeError:"Could not get the image dimensions to resize.",msgImageResizeException:"Error while resizing the image.
    {errors}
    ",msgAjaxError:"Something went wrong with the {operation} operation. Please try again later!",msgAjaxProgressError:"{operation} failed",msgDuplicateFile:'File "{name}" of same size "{size} KB" has already been selected earlier. Skipping duplicate selection.',msgResumableUploadRetriesExceeded:"Upload aborted beyond {max} retries for file {file}! Error Details:
    {error}
    ",msgPendingTime:"{time} remaining",msgCalculatingTime:"calculating time remaining",ajaxOperations:{deleteThumb:"file delete",uploadThumb:"file upload",uploadBatch:"batch file upload",uploadExtra:"form data upload"},dropZoneTitle:"Drag & drop files here …",dropZoneClickTitle:"
    (or click to select {files})",previewZoomButtonTitles:{prev:"View previous file",next:"View next file",toggleheader:"Toggle header",fullscreen:"Toggle full screen",borderless:"Toggle borderless mode",close:"Close detailed preview"}},L.fn.fileinputLocales.zh={sizeUnits:["B","KB","MB","GB","TB","PB","EB","ZB","YB"],bitRateUnits:["B/s","KB/s","MB/s","GB/s","TB/s","PB/s","EB/s","ZB/s","YB/s"],fileSingle:"文件",filePlural:"个文件",browseLabel:"选择 …",removeLabel:"移除",removeTitle:"清除选中文件",cancelLabel:"取消",cancelTitle:"取消进行中的上传",pauseLabel:"暂停",pauseTitle:"暂停上传",uploadLabel:"上传",uploadTitle:"上传选中文件",msgNo:"没有",msgNoFilesSelected:"未选择文件",msgPaused:"已暂停",msgCancelled:"取消",msgPlaceholder:"选择 {files} ...",msgZoomModalHeading:"详细预览",msgFileRequired:"必须选择一个文件上传.",msgSizeTooSmall:'文件 "{name}" ({size} KB) 必须大于限定大小 {minSize} KB.',msgSizeTooLarge:'文件 "{name}" ({size} KB) 超过了允许大小 {maxSize} KB.',msgFilesTooLess:"你必须选择最少 {n} {files} 来上传. ",msgFilesTooMany:"选择的上传文件个数 ({n}) 超出最大文件的限制个数 {m}.",msgTotalFilesTooMany:"你最多可以上传 {m} 个文件 (当前有{n} 个文件).",msgFileNotFound:'文件 "{name}" 未找到!',msgFileSecured:'安全限制,为了防止读取文件 "{name}".',msgFileNotReadable:'文件 "{name}" 不可读.',msgFilePreviewAborted:'取消 "{name}" 的预览.',msgFilePreviewError:'读取 "{name}" 时出现了一个错误.',msgInvalidFileName:'文件名 "{name}" 包含非法字符.',msgInvalidFileType:'不正确的类型 "{name}". 只支持 "{types}" 类型的文件.',msgInvalidFileExtension:'不正确的文件扩展名 "{name}". 只支持 "{extensions}" 的文件扩展名.',msgFileTypes:{image:"image",html:"HTML",text:"text",video:"video",audio:"audio",flash:"flash",pdf:"PDF",object:"object"},msgUploadAborted:"该文件上传被中止",msgUploadThreshold:"处理中 …",msgUploadBegin:"正在初始化 …",msgUploadEnd:"完成",msgUploadResume:"继续上传 …",msgUploadEmpty:"无效的文件上传.",msgUploadError:"上传出错",msgDeleteError:"删除出错",msgProgressError:"上传出错",msgValidationError:"验证错误",msgLoading:"加载第 {index} 文件 共 {files} …",msgProgress:"加载第 {index} 文件 共 {files} - {name} - {percent}% 完成.",msgSelected:"{n} {files} 选中",msgProcessing:"处理中 ...",msgFoldersNotAllowed:"只支持拖拽文件! 跳过 {n} 拖拽的文件夹.",msgImageWidthSmall:'图像文件的"{name}"的宽度必须是至少{size}像素.',msgImageHeightSmall:'图像文件的"{name}"的高度必须至少为{size}像素.',msgImageWidthLarge:'图像文件"{name}"的宽度不能超过{size}像素.',msgImageHeightLarge:'图像文件"{name}"的高度不能超过{size}像素.',msgImageResizeError:"无法获取的图像尺寸调整。",msgImageResizeException:"调整图像大小时发生错误。
    {errors}
    ",msgAjaxError:"{operation} 发生错误. 请重试!",msgAjaxProgressError:"{operation} 失败",msgDuplicateFile:'文件 "{name}",大小 "{size} KB" 已经被选中.忽略相同的文件.',msgResumableUploadRetriesExceeded:"文件 {file} 上传失败超过 {max} 次重试 ! 错误详情:
    {error}
    ",msgPendingTime:"{time} 剩余",msgCalculatingTime:"计算剩余时间",ajaxOperations:{deleteThumb:"删除文件",uploadThumb:"上传文件",uploadBatch:"批量上传",uploadExtra:"表单数据上传"},dropZoneTitle:"拖拽文件到这里 …
    支持多文件同时上传",dropZoneClickTitle:"
    (或点击{files}按钮选择文件)",fileActionSettings:{removeTitle:"删除文件",uploadTitle:"上传文件",downloadTitle:"下载文件",uploadRetryTitle:"重试",zoomTitle:"查看详情",dragTitle:"移动 / 重置",indicatorNewTitle:"没有上传",indicatorSuccessTitle:"上传",indicatorErrorTitle:"上传错误",indicatorPausedTitle:"上传已暂停",indicatorLoadingTitle:"上传 …"},previewZoomButtonTitles:{prev:"预览上一个文件",next:"预览下一个文件",toggleheader:"缩放",fullscreen:"全屏",borderless:"无边界模式",close:"关闭当前预览"}},L.fn.fileinput.Constructor=c,L(document).ready(function(){var e=L("input.file[type=file]");e.length&&e.fileinput()})}); \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ajax/libs/bootstrap-fileinput/loading-sm.gif b/alive-admin/src/main/resources/static/ajax/libs/bootstrap-fileinput/loading-sm.gif new file mode 100644 index 0000000..44e3b7a Binary files /dev/null and b/alive-admin/src/main/resources/static/ajax/libs/bootstrap-fileinput/loading-sm.gif differ diff --git a/alive-admin/src/main/resources/static/ajax/libs/bootstrap-fileinput/loading.gif b/alive-admin/src/main/resources/static/ajax/libs/bootstrap-fileinput/loading.gif new file mode 100644 index 0000000..0ea146c Binary files /dev/null and b/alive-admin/src/main/resources/static/ajax/libs/bootstrap-fileinput/loading.gif differ diff --git a/alive-admin/src/main/resources/static/ajax/libs/bootstrap-select/bootstrap-select.css b/alive-admin/src/main/resources/static/ajax/libs/bootstrap-select/bootstrap-select.css new file mode 100644 index 0000000..34edabf --- /dev/null +++ b/alive-admin/src/main/resources/static/ajax/libs/bootstrap-select/bootstrap-select.css @@ -0,0 +1,459 @@ +/*! + * Bootstrap-select v1.13.18 (https://developer.snapappointments.com/bootstrap-select) + * + * Copyright 2012-2020 SnapAppointments, LLC + * Licensed under MIT (https://github.com/snapappointments/bootstrap-select/blob/master/LICENSE) + */ + +@-webkit-keyframes bs-notify-fadeOut { + 0% { + opacity: 0.9; + } + 100% { + opacity: 0; + } +} +@-o-keyframes bs-notify-fadeOut { + 0% { + opacity: 0.9; + } + 100% { + opacity: 0; + } +} +@keyframes bs-notify-fadeOut { + 0% { + opacity: 0.9; + } + 100% { + opacity: 0; + } +} +select.bs-select-hidden, +.bootstrap-select > select.bs-select-hidden, +select.selectpicker { + display: none !important; +} +.bootstrap-select { + width: 220px \0; + /*IE9 and below*/ + vertical-align: middle; +} +.bootstrap-select > .dropdown-toggle { + position: relative; + width: 100%; + text-align: right; + white-space: nowrap; + display: -webkit-inline-box; + display: -webkit-inline-flex; + display: -ms-inline-flexbox; + display: inline-flex; + -webkit-box-align: center; + -webkit-align-items: center; + -ms-flex-align: center; + align-items: center; + -webkit-box-pack: justify; + -webkit-justify-content: space-between; + -ms-flex-pack: justify; + justify-content: space-between; +} +.bootstrap-select > .dropdown-toggle:after { + margin-top: -1px; +} +.bootstrap-select > .dropdown-toggle.bs-placeholder, +.bootstrap-select > .dropdown-toggle.bs-placeholder:hover, +.bootstrap-select > .dropdown-toggle.bs-placeholder:focus, +.bootstrap-select > .dropdown-toggle.bs-placeholder:active { + color: #999; +} +.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-primary, +.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-secondary, +.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-success, +.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-danger, +.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-info, +.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-dark, +.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-primary:hover, +.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-secondary:hover, +.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-success:hover, +.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-danger:hover, +.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-info:hover, +.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-dark:hover, +.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-primary:focus, +.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-secondary:focus, +.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-success:focus, +.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-danger:focus, +.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-info:focus, +.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-dark:focus, +.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-primary:active, +.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-secondary:active, +.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-success:active, +.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-danger:active, +.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-info:active, +.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-dark:active { + color: rgba(255, 255, 255, 0.5); +} +.bootstrap-select > select { + position: absolute !important; + bottom: 0; + left: 50%; + display: block !important; + width: 0.5px !important; + height: 100% !important; + padding: 0 !important; + opacity: 0 !important; + border: none; + z-index: 0 !important; +} +.bootstrap-select > select.mobile-device { + top: 0; + left: 0; + display: block !important; + width: 100% !important; + z-index: 2 !important; +} +.has-error .bootstrap-select .dropdown-toggle, +.error .bootstrap-select .dropdown-toggle, +.bootstrap-select.is-invalid .dropdown-toggle, +.was-validated .bootstrap-select select:invalid + .dropdown-toggle { + border-color: #b94a48; +} +.bootstrap-select.is-valid .dropdown-toggle, +.was-validated .bootstrap-select select:valid + .dropdown-toggle { + border-color: #28a745; +} +.bootstrap-select.fit-width { + width: auto !important; +} +.bootstrap-select:not([class*="col-"]):not([class*="form-control"]):not(.input-group-btn) { + width: 220px; +} +.bootstrap-select > select.mobile-device:focus + .dropdown-toggle, +.bootstrap-select .dropdown-toggle:focus { + outline: thin dotted #333333 !important; + outline: 5px auto -webkit-focus-ring-color !important; + outline-offset: -2px; +} +.bootstrap-select.form-control { + margin-bottom: 0; + padding: 0; + border: none; + height: auto; +} +:not(.input-group) > .bootstrap-select.form-control:not([class*="col-"]) { + width: 100%; +} +.bootstrap-select.form-control.input-group-btn { + float: none; + z-index: auto; +} +.form-inline .bootstrap-select, +.form-inline .bootstrap-select.form-control:not([class*="col-"]) { + width: auto; +} +.bootstrap-select:not(.input-group-btn), +.bootstrap-select[class*="col-"] { + float: none; + display: inline-block; + margin-left: 0; +} +.bootstrap-select.dropdown-menu-right, +.bootstrap-select[class*="col-"].dropdown-menu-right, +.row .bootstrap-select[class*="col-"].dropdown-menu-right { + float: right; +} +.form-inline .bootstrap-select, +.form-horizontal .bootstrap-select, +.form-group .bootstrap-select { + margin-bottom: 0; +} +.form-group-lg .bootstrap-select.form-control, +.form-group-sm .bootstrap-select.form-control { + padding: 0; +} +.form-group-lg .bootstrap-select.form-control .dropdown-toggle, +.form-group-sm .bootstrap-select.form-control .dropdown-toggle { + height: 100%; + font-size: inherit; + line-height: inherit; + border-radius: inherit; +} +.bootstrap-select.form-control-sm .dropdown-toggle, +.bootstrap-select.form-control-lg .dropdown-toggle { + font-size: inherit; + line-height: inherit; + border-radius: inherit; +} +.bootstrap-select.form-control-sm .dropdown-toggle { + padding: 0.25rem 0.5rem; +} +.bootstrap-select.form-control-lg .dropdown-toggle { + padding: 0.5rem 1rem; +} +.form-inline .bootstrap-select .form-control { + width: 100%; +} +.bootstrap-select.disabled, +.bootstrap-select > .disabled { + cursor: not-allowed; +} +.bootstrap-select.disabled:focus, +.bootstrap-select > .disabled:focus { + outline: none !important; +} +.bootstrap-select.bs-container { + position: absolute; + top: 0; + left: 0; + height: 0 !important; + padding: 0 !important; +} +.bootstrap-select.bs-container .dropdown-menu { + z-index: 1060; +} +.bootstrap-select .dropdown-toggle .filter-option { + position: static; + top: 0; + left: 0; + float: left; + height: 100%; + width: 100%; + text-align: left; + overflow: hidden; + -webkit-box-flex: 0; + -webkit-flex: 0 1 auto; + -ms-flex: 0 1 auto; + flex: 0 1 auto; +} +.bs3.bootstrap-select .dropdown-toggle .filter-option { + padding-right: inherit; +} +.input-group .bs3-has-addon.bootstrap-select .dropdown-toggle .filter-option { + position: absolute; + padding-top: inherit; + padding-bottom: inherit; + padding-left: inherit; + float: none; +} +.input-group .bs3-has-addon.bootstrap-select .dropdown-toggle .filter-option .filter-option-inner { + padding-right: inherit; +} +.bootstrap-select .dropdown-toggle .filter-option-inner-inner { + overflow: hidden; +} +.bootstrap-select .dropdown-toggle .filter-expand { + width: 0 !important; + float: left; + opacity: 0 !important; + overflow: hidden; +} +.bootstrap-select .dropdown-toggle .caret { + position: absolute; + top: 50%; + right: 12px; + margin-top: -2px; + vertical-align: middle; +} +.input-group .bootstrap-select.form-control .dropdown-toggle { + border-radius: inherit; +} +.bootstrap-select[class*="col-"] .dropdown-toggle { + width: 100%; +} +.bootstrap-select .dropdown-menu { + min-width: 100%; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; +} +.bootstrap-select .dropdown-menu > .inner:focus { + outline: none !important; +} +.bootstrap-select .dropdown-menu.inner { + position: static; + float: none; + border: 0; + padding: 0; + margin: 0; + border-radius: 0; + -webkit-box-shadow: none; + box-shadow: none; +} +.bootstrap-select .dropdown-menu li { + position: relative; +} +.bootstrap-select .dropdown-menu li.active small { + color: rgba(255, 255, 255, 0.5) !important; +} +.bootstrap-select .dropdown-menu li.disabled a { + cursor: not-allowed; +} +.bootstrap-select .dropdown-menu li a { + cursor: pointer; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; +} +.bootstrap-select .dropdown-menu li a.opt { + position: relative; + padding-left: 2.25em; +} +.bootstrap-select .dropdown-menu li a span.check-mark { + display: none; +} +.bootstrap-select .dropdown-menu li a span.text { + display: inline-block; +} +.bootstrap-select .dropdown-menu li small { + padding-left: 0.5em; +} +.bootstrap-select .dropdown-menu .notify { + position: absolute; + bottom: 5px; + width: 96%; + margin: 0 2%; + min-height: 26px; + padding: 3px 5px; + background: #f5f5f5; + border: 1px solid #e3e3e3; + -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05); + box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05); + pointer-events: none; + opacity: 0.9; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; +} +.bootstrap-select .dropdown-menu .notify.fadeOut { + -webkit-animation: 300ms linear 750ms forwards bs-notify-fadeOut; + -o-animation: 300ms linear 750ms forwards bs-notify-fadeOut; + animation: 300ms linear 750ms forwards bs-notify-fadeOut; +} +.bootstrap-select .no-results { + padding: 3px; + background: #f5f5f5; + margin: 0 5px; + white-space: nowrap; +} +.bootstrap-select.fit-width .dropdown-toggle .filter-option { + position: static; + display: inline; + padding: 0; +} +.bootstrap-select.fit-width .dropdown-toggle .filter-option-inner, +.bootstrap-select.fit-width .dropdown-toggle .filter-option-inner-inner { + display: inline; +} +.bootstrap-select.fit-width .dropdown-toggle .bs-caret:before { + content: '\00a0'; +} +.bootstrap-select.fit-width .dropdown-toggle .caret { + position: static; + top: auto; + margin-top: -1px; +} +.bootstrap-select.show-tick .dropdown-menu .selected span.check-mark { + position: absolute; + display: inline-block; + right: 15px; + top: 5px; +} +.bootstrap-select.show-tick .dropdown-menu li a span.text { + margin-right: 34px; +} +.bootstrap-select .bs-ok-default:after { + content: ''; + display: block; + width: 0.5em; + height: 1em; + border-style: solid; + border-width: 0 0.26em 0.26em 0; + -webkit-transform-style: preserve-3d; + transform-style: preserve-3d; + -webkit-transform: rotate(45deg); + -ms-transform: rotate(45deg); + -o-transform: rotate(45deg); + transform: rotate(45deg); +} +.bootstrap-select.show-menu-arrow.open > .dropdown-toggle, +.bootstrap-select.show-menu-arrow.show > .dropdown-toggle { + z-index: 1061; +} +.bootstrap-select.show-menu-arrow .dropdown-toggle .filter-option:before { + content: ''; + border-left: 7px solid transparent; + border-right: 7px solid transparent; + border-bottom: 7px solid rgba(204, 204, 204, 0.2); + position: absolute; + bottom: -4px; + left: 9px; + display: none; +} +.bootstrap-select.show-menu-arrow .dropdown-toggle .filter-option:after { + content: ''; + border-left: 6px solid transparent; + border-right: 6px solid transparent; + border-bottom: 6px solid white; + position: absolute; + bottom: -4px; + left: 10px; + display: none; +} +.bootstrap-select.show-menu-arrow.dropup .dropdown-toggle .filter-option:before { + bottom: auto; + top: -4px; + border-top: 7px solid rgba(204, 204, 204, 0.2); + border-bottom: 0; +} +.bootstrap-select.show-menu-arrow.dropup .dropdown-toggle .filter-option:after { + bottom: auto; + top: -4px; + border-top: 6px solid white; + border-bottom: 0; +} +.bootstrap-select.show-menu-arrow.pull-right .dropdown-toggle .filter-option:before { + right: 12px; + left: auto; +} +.bootstrap-select.show-menu-arrow.pull-right .dropdown-toggle .filter-option:after { + right: 13px; + left: auto; +} +.bootstrap-select.show-menu-arrow.open > .dropdown-toggle .filter-option:before, +.bootstrap-select.show-menu-arrow.show > .dropdown-toggle .filter-option:before, +.bootstrap-select.show-menu-arrow.open > .dropdown-toggle .filter-option:after, +.bootstrap-select.show-menu-arrow.show > .dropdown-toggle .filter-option:after { + display: block; +} +.bs-searchbox, +.bs-actionsbox, +.bs-donebutton { + padding: 4px 8px; +} +.bs-actionsbox { + width: 100%; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; +} +.bs-actionsbox .btn-group button { + width: 50%; +} +.bs-donebutton { + float: left; + width: 100%; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; +} +.bs-donebutton .btn-group button { + width: 100%; +} +.bs-searchbox + .bs-actionsbox { + padding: 0 8px 4px; +} +.bs-searchbox .form-control { + margin-bottom: 0; + width: 100%; + float: none; +} diff --git a/alive-admin/src/main/resources/static/ajax/libs/bootstrap-select/bootstrap-select.js b/alive-admin/src/main/resources/static/ajax/libs/bootstrap-select/bootstrap-select.js new file mode 100644 index 0000000..d25d751 --- /dev/null +++ b/alive-admin/src/main/resources/static/ajax/libs/bootstrap-select/bootstrap-select.js @@ -0,0 +1,3247 @@ +/*! + * Bootstrap-select v1.13.18 (https://developer.snapappointments.com/bootstrap-select) + * + * Copyright 2012-2020 SnapAppointments, LLC + * Licensed under MIT (https://github.com/snapappointments/bootstrap-select/blob/master/LICENSE) + */ + +(function (root, factory) { + if (root === undefined && window !== undefined) root = window; + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module unless amdModuleId is set + define(["jquery"], function (a0) { + return (factory(a0)); + }); + } else if (typeof module === 'object' && module.exports) { + // Node. Does not work with strict CommonJS, but + // only CommonJS-like environments that support module.exports, + // like Node. + module.exports = factory(require("jquery")); + } else { + factory(root["jQuery"]); + } +}(this, function (jQuery) { + +(function ($) { + 'use strict'; + + var DISALLOWED_ATTRIBUTES = ['sanitize', 'whiteList', 'sanitizeFn']; + + var uriAttrs = [ + 'background', + 'cite', + 'href', + 'itemtype', + 'longdesc', + 'poster', + 'src', + 'xlink:href' + ]; + + var ARIA_ATTRIBUTE_PATTERN = /^aria-[\w-]*$/i; + + var DefaultWhitelist = { + // Global attributes allowed on any supplied element below. + '*': ['class', 'dir', 'id', 'lang', 'role', 'tabindex', 'style', ARIA_ATTRIBUTE_PATTERN], + a: ['target', 'href', 'title', 'rel'], + area: [], + b: [], + br: [], + col: [], + code: [], + div: [], + em: [], + hr: [], + h1: [], + h2: [], + h3: [], + h4: [], + h5: [], + h6: [], + i: [], + img: ['src', 'alt', 'title', 'width', 'height'], + li: [], + ol: [], + p: [], + pre: [], + s: [], + small: [], + span: [], + sub: [], + sup: [], + strong: [], + u: [], + ul: [] + } + + /** + * A pattern that recognizes a commonly useful subset of URLs that are safe. + * + * Shoutout to Angular 7 https://github.com/angular/angular/blob/7.2.4/packages/core/src/sanitization/url_sanitizer.ts + */ + var SAFE_URL_PATTERN = /^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi; + + /** + * A pattern that matches safe data URLs. Only matches image, video and audio types. + * + * Shoutout to Angular 7 https://github.com/angular/angular/blob/7.2.4/packages/core/src/sanitization/url_sanitizer.ts + */ + var DATA_URL_PATTERN = /^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i; + + function allowedAttribute (attr, allowedAttributeList) { + var attrName = attr.nodeName.toLowerCase() + + if ($.inArray(attrName, allowedAttributeList) !== -1) { + if ($.inArray(attrName, uriAttrs) !== -1) { + return Boolean(attr.nodeValue.match(SAFE_URL_PATTERN) || attr.nodeValue.match(DATA_URL_PATTERN)) + } + + return true + } + + var regExp = $(allowedAttributeList).filter(function (index, value) { + return value instanceof RegExp + }) + + // Check if a regular expression validates the attribute. + for (var i = 0, l = regExp.length; i < l; i++) { + if (attrName.match(regExp[i])) { + return true + } + } + + return false + } + + function sanitizeHtml (unsafeElements, whiteList, sanitizeFn) { + if (sanitizeFn && typeof sanitizeFn === 'function') { + return sanitizeFn(unsafeElements); + } + + var whitelistKeys = Object.keys(whiteList); + + for (var i = 0, len = unsafeElements.length; i < len; i++) { + var elements = unsafeElements[i].querySelectorAll('*'); + + for (var j = 0, len2 = elements.length; j < len2; j++) { + var el = elements[j]; + var elName = el.nodeName.toLowerCase(); + + if (whitelistKeys.indexOf(elName) === -1) { + el.parentNode.removeChild(el); + + continue; + } + + var attributeList = [].slice.call(el.attributes); + var whitelistedAttributes = [].concat(whiteList['*'] || [], whiteList[elName] || []); + + for (var k = 0, len3 = attributeList.length; k < len3; k++) { + var attr = attributeList[k]; + + if (!allowedAttribute(attr, whitelistedAttributes)) { + el.removeAttribute(attr.nodeName); + } + } + } + } + } + + // Polyfill for browsers with no classList support + // Remove in v2 + if (!('classList' in document.createElement('_'))) { + (function (view) { + if (!('Element' in view)) return; + + var classListProp = 'classList', + protoProp = 'prototype', + elemCtrProto = view.Element[protoProp], + objCtr = Object, + classListGetter = function () { + var $elem = $(this); + + return { + add: function (classes) { + classes = Array.prototype.slice.call(arguments).join(' '); + return $elem.addClass(classes); + }, + remove: function (classes) { + classes = Array.prototype.slice.call(arguments).join(' '); + return $elem.removeClass(classes); + }, + toggle: function (classes, force) { + return $elem.toggleClass(classes, force); + }, + contains: function (classes) { + return $elem.hasClass(classes); + } + } + }; + + if (objCtr.defineProperty) { + var classListPropDesc = { + get: classListGetter, + enumerable: true, + configurable: true + }; + try { + objCtr.defineProperty(elemCtrProto, classListProp, classListPropDesc); + } catch (ex) { // IE 8 doesn't support enumerable:true + // adding undefined to fight this issue https://github.com/eligrey/classList.js/issues/36 + // modernie IE8-MSW7 machine has IE8 8.0.6001.18702 and is affected + if (ex.number === undefined || ex.number === -0x7FF5EC54) { + classListPropDesc.enumerable = false; + objCtr.defineProperty(elemCtrProto, classListProp, classListPropDesc); + } + } + } else if (objCtr[protoProp].__defineGetter__) { + elemCtrProto.__defineGetter__(classListProp, classListGetter); + } + }(window)); + } + + var testElement = document.createElement('_'); + + testElement.classList.add('c1', 'c2'); + + if (!testElement.classList.contains('c2')) { + var _add = DOMTokenList.prototype.add, + _remove = DOMTokenList.prototype.remove; + + DOMTokenList.prototype.add = function () { + Array.prototype.forEach.call(arguments, _add.bind(this)); + } + + DOMTokenList.prototype.remove = function () { + Array.prototype.forEach.call(arguments, _remove.bind(this)); + } + } + + testElement.classList.toggle('c3', false); + + // Polyfill for IE 10 and Firefox <24, where classList.toggle does not + // support the second argument. + if (testElement.classList.contains('c3')) { + var _toggle = DOMTokenList.prototype.toggle; + + DOMTokenList.prototype.toggle = function (token, force) { + if (1 in arguments && !this.contains(token) === !force) { + return force; + } else { + return _toggle.call(this, token); + } + }; + } + + testElement = null; + + // shallow array comparison + function isEqual (array1, array2) { + return array1.length === array2.length && array1.every(function (element, index) { + return element === array2[index]; + }); + }; + + // + if (!String.prototype.startsWith) { + (function () { + 'use strict'; // needed to support `apply`/`call` with `undefined`/`null` + var defineProperty = (function () { + // IE 8 only supports `Object.defineProperty` on DOM elements + try { + var object = {}; + var $defineProperty = Object.defineProperty; + var result = $defineProperty(object, object, object) && $defineProperty; + } catch (error) { + } + return result; + }()); + var toString = {}.toString; + var startsWith = function (search) { + if (this == null) { + throw new TypeError(); + } + var string = String(this); + if (search && toString.call(search) == '[object RegExp]') { + throw new TypeError(); + } + var stringLength = string.length; + var searchString = String(search); + var searchLength = searchString.length; + var position = arguments.length > 1 ? arguments[1] : undefined; + // `ToInteger` + var pos = position ? Number(position) : 0; + if (pos != pos) { // better `isNaN` + pos = 0; + } + var start = Math.min(Math.max(pos, 0), stringLength); + // Avoid the `indexOf` call if no match is possible + if (searchLength + start > stringLength) { + return false; + } + var index = -1; + while (++index < searchLength) { + if (string.charCodeAt(start + index) != searchString.charCodeAt(index)) { + return false; + } + } + return true; + }; + if (defineProperty) { + defineProperty(String.prototype, 'startsWith', { + 'value': startsWith, + 'configurable': true, + 'writable': true + }); + } else { + String.prototype.startsWith = startsWith; + } + }()); + } + + if (!Object.keys) { + Object.keys = function ( + o, // object + k, // key + r // result array + ) { + // initialize object and result + r = []; + // iterate over object keys + for (k in o) { + // fill result array with non-prototypical keys + r.hasOwnProperty.call(o, k) && r.push(k); + } + // return result + return r; + }; + } + + if (HTMLSelectElement && !HTMLSelectElement.prototype.hasOwnProperty('selectedOptions')) { + Object.defineProperty(HTMLSelectElement.prototype, 'selectedOptions', { + get: function () { + return this.querySelectorAll(':checked'); + } + }); + } + + function getSelectedOptions (select, ignoreDisabled) { + var selectedOptions = select.selectedOptions, + options = [], + opt; + + if (ignoreDisabled) { + for (var i = 0, len = selectedOptions.length; i < len; i++) { + opt = selectedOptions[i]; + + if (!(opt.disabled || opt.parentNode.tagName === 'OPTGROUP' && opt.parentNode.disabled)) { + options.push(opt); + } + } + + return options; + } + + return selectedOptions; + } + + // much faster than $.val() + function getSelectValues (select, selectedOptions) { + var value = [], + options = selectedOptions || select.selectedOptions, + opt; + + for (var i = 0, len = options.length; i < len; i++) { + opt = options[i]; + + if (!(opt.disabled || opt.parentNode.tagName === 'OPTGROUP' && opt.parentNode.disabled)) { + value.push(opt.value); + } + } + + if (!select.multiple) { + return !value.length ? null : value[0]; + } + + return value; + } + + // set data-selected on select element if the value has been programmatically selected + // prior to initialization of bootstrap-select + // * consider removing or replacing an alternative method * + var valHooks = { + useDefault: false, + _set: $.valHooks.select.set + }; + + $.valHooks.select.set = function (elem, value) { + if (value && !valHooks.useDefault) $(elem).data('selected', true); + + return valHooks._set.apply(this, arguments); + }; + + var changedArguments = null; + + var EventIsSupported = (function () { + try { + new Event('change'); + return true; + } catch (e) { + return false; + } + })(); + + $.fn.triggerNative = function (eventName) { + var el = this[0], + event; + + if (el.dispatchEvent) { // for modern browsers & IE9+ + if (EventIsSupported) { + // For modern browsers + event = new Event(eventName, { + bubbles: true + }); + } else { + // For IE since it doesn't support Event constructor + event = document.createEvent('Event'); + event.initEvent(eventName, true, false); + } + + el.dispatchEvent(event); + } else if (el.fireEvent) { // for IE8 + event = document.createEventObject(); + event.eventType = eventName; + el.fireEvent('on' + eventName, event); + } else { + // fall back to jQuery.trigger + this.trigger(eventName); + } + }; + // + + function stringSearch (li, searchString, method, normalize) { + var stringTypes = [ + 'display', + 'subtext', + 'tokens' + ], + searchSuccess = false; + + for (var i = 0; i < stringTypes.length; i++) { + var stringType = stringTypes[i], + string = li[stringType]; + + if (string) { + string = string.toString(); + + // Strip HTML tags. This isn't perfect, but it's much faster than any other method + if (stringType === 'display') { + string = string.replace(/<[^>]+>/g, ''); + } + + if (normalize) string = normalizeToBase(string); + string = string.toUpperCase(); + + if (method === 'contains') { + searchSuccess = string.indexOf(searchString) >= 0; + } else { + searchSuccess = string.startsWith(searchString); + } + + if (searchSuccess) break; + } + } + + return searchSuccess; + } + + function toInteger (value) { + return parseInt(value, 10) || 0; + } + + // Borrowed from Lodash (_.deburr) + /** Used to map Latin Unicode letters to basic Latin letters. */ + var deburredLetters = { + // Latin-1 Supplement block. + '\xc0': 'A', '\xc1': 'A', '\xc2': 'A', '\xc3': 'A', '\xc4': 'A', '\xc5': 'A', + '\xe0': 'a', '\xe1': 'a', '\xe2': 'a', '\xe3': 'a', '\xe4': 'a', '\xe5': 'a', + '\xc7': 'C', '\xe7': 'c', + '\xd0': 'D', '\xf0': 'd', + '\xc8': 'E', '\xc9': 'E', '\xca': 'E', '\xcb': 'E', + '\xe8': 'e', '\xe9': 'e', '\xea': 'e', '\xeb': 'e', + '\xcc': 'I', '\xcd': 'I', '\xce': 'I', '\xcf': 'I', + '\xec': 'i', '\xed': 'i', '\xee': 'i', '\xef': 'i', + '\xd1': 'N', '\xf1': 'n', + '\xd2': 'O', '\xd3': 'O', '\xd4': 'O', '\xd5': 'O', '\xd6': 'O', '\xd8': 'O', + '\xf2': 'o', '\xf3': 'o', '\xf4': 'o', '\xf5': 'o', '\xf6': 'o', '\xf8': 'o', + '\xd9': 'U', '\xda': 'U', '\xdb': 'U', '\xdc': 'U', + '\xf9': 'u', '\xfa': 'u', '\xfb': 'u', '\xfc': 'u', + '\xdd': 'Y', '\xfd': 'y', '\xff': 'y', + '\xc6': 'Ae', '\xe6': 'ae', + '\xde': 'Th', '\xfe': 'th', + '\xdf': 'ss', + // Latin Extended-A block. + '\u0100': 'A', '\u0102': 'A', '\u0104': 'A', + '\u0101': 'a', '\u0103': 'a', '\u0105': 'a', + '\u0106': 'C', '\u0108': 'C', '\u010a': 'C', '\u010c': 'C', + '\u0107': 'c', '\u0109': 'c', '\u010b': 'c', '\u010d': 'c', + '\u010e': 'D', '\u0110': 'D', '\u010f': 'd', '\u0111': 'd', + '\u0112': 'E', '\u0114': 'E', '\u0116': 'E', '\u0118': 'E', '\u011a': 'E', + '\u0113': 'e', '\u0115': 'e', '\u0117': 'e', '\u0119': 'e', '\u011b': 'e', + '\u011c': 'G', '\u011e': 'G', '\u0120': 'G', '\u0122': 'G', + '\u011d': 'g', '\u011f': 'g', '\u0121': 'g', '\u0123': 'g', + '\u0124': 'H', '\u0126': 'H', '\u0125': 'h', '\u0127': 'h', + '\u0128': 'I', '\u012a': 'I', '\u012c': 'I', '\u012e': 'I', '\u0130': 'I', + '\u0129': 'i', '\u012b': 'i', '\u012d': 'i', '\u012f': 'i', '\u0131': 'i', + '\u0134': 'J', '\u0135': 'j', + '\u0136': 'K', '\u0137': 'k', '\u0138': 'k', + '\u0139': 'L', '\u013b': 'L', '\u013d': 'L', '\u013f': 'L', '\u0141': 'L', + '\u013a': 'l', '\u013c': 'l', '\u013e': 'l', '\u0140': 'l', '\u0142': 'l', + '\u0143': 'N', '\u0145': 'N', '\u0147': 'N', '\u014a': 'N', + '\u0144': 'n', '\u0146': 'n', '\u0148': 'n', '\u014b': 'n', + '\u014c': 'O', '\u014e': 'O', '\u0150': 'O', + '\u014d': 'o', '\u014f': 'o', '\u0151': 'o', + '\u0154': 'R', '\u0156': 'R', '\u0158': 'R', + '\u0155': 'r', '\u0157': 'r', '\u0159': 'r', + '\u015a': 'S', '\u015c': 'S', '\u015e': 'S', '\u0160': 'S', + '\u015b': 's', '\u015d': 's', '\u015f': 's', '\u0161': 's', + '\u0162': 'T', '\u0164': 'T', '\u0166': 'T', + '\u0163': 't', '\u0165': 't', '\u0167': 't', + '\u0168': 'U', '\u016a': 'U', '\u016c': 'U', '\u016e': 'U', '\u0170': 'U', '\u0172': 'U', + '\u0169': 'u', '\u016b': 'u', '\u016d': 'u', '\u016f': 'u', '\u0171': 'u', '\u0173': 'u', + '\u0174': 'W', '\u0175': 'w', + '\u0176': 'Y', '\u0177': 'y', '\u0178': 'Y', + '\u0179': 'Z', '\u017b': 'Z', '\u017d': 'Z', + '\u017a': 'z', '\u017c': 'z', '\u017e': 'z', + '\u0132': 'IJ', '\u0133': 'ij', + '\u0152': 'Oe', '\u0153': 'oe', + '\u0149': "'n", '\u017f': 's' + }; + + /** Used to match Latin Unicode letters (excluding mathematical operators). */ + var reLatin = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g; + + /** Used to compose unicode character classes. */ + var rsComboMarksRange = '\\u0300-\\u036f', + reComboHalfMarksRange = '\\ufe20-\\ufe2f', + rsComboSymbolsRange = '\\u20d0-\\u20ff', + rsComboMarksExtendedRange = '\\u1ab0-\\u1aff', + rsComboMarksSupplementRange = '\\u1dc0-\\u1dff', + rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange + rsComboMarksExtendedRange + rsComboMarksSupplementRange; + + /** Used to compose unicode capture groups. */ + var rsCombo = '[' + rsComboRange + ']'; + + /** + * Used to match [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks) and + * [combining diacritical marks for symbols](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks_for_Symbols). + */ + var reComboMark = RegExp(rsCombo, 'g'); + + function deburrLetter (key) { + return deburredLetters[key]; + }; + + function normalizeToBase (string) { + string = string.toString(); + return string && string.replace(reLatin, deburrLetter).replace(reComboMark, ''); + } + + // List of HTML entities for escaping. + var escapeMap = { + '&': '&', + '<': '<', + '>': '>', + '"': '"', + "'": ''', + '`': '`' + }; + + // Functions for escaping and unescaping strings to/from HTML interpolation. + var createEscaper = function (map) { + var escaper = function (match) { + return map[match]; + }; + // Regexes for identifying a key that needs to be escaped. + var source = '(?:' + Object.keys(map).join('|') + ')'; + var testRegexp = RegExp(source); + var replaceRegexp = RegExp(source, 'g'); + return function (string) { + string = string == null ? '' : '' + string; + return testRegexp.test(string) ? string.replace(replaceRegexp, escaper) : string; + }; + }; + + var htmlEscape = createEscaper(escapeMap); + + /** + * ------------------------------------------------------------------------ + * Constants + * ------------------------------------------------------------------------ + */ + + var keyCodeMap = { + 32: ' ', + 48: '0', + 49: '1', + 50: '2', + 51: '3', + 52: '4', + 53: '5', + 54: '6', + 55: '7', + 56: '8', + 57: '9', + 59: ';', + 65: 'A', + 66: 'B', + 67: 'C', + 68: 'D', + 69: 'E', + 70: 'F', + 71: 'G', + 72: 'H', + 73: 'I', + 74: 'J', + 75: 'K', + 76: 'L', + 77: 'M', + 78: 'N', + 79: 'O', + 80: 'P', + 81: 'Q', + 82: 'R', + 83: 'S', + 84: 'T', + 85: 'U', + 86: 'V', + 87: 'W', + 88: 'X', + 89: 'Y', + 90: 'Z', + 96: '0', + 97: '1', + 98: '2', + 99: '3', + 100: '4', + 101: '5', + 102: '6', + 103: '7', + 104: '8', + 105: '9' + }; + + var keyCodes = { + ESCAPE: 27, // KeyboardEvent.which value for Escape (Esc) key + ENTER: 13, // KeyboardEvent.which value for Enter key + SPACE: 32, // KeyboardEvent.which value for space key + TAB: 9, // KeyboardEvent.which value for tab key + ARROW_UP: 38, // KeyboardEvent.which value for up arrow key + ARROW_DOWN: 40 // KeyboardEvent.which value for down arrow key + } + + var version = { + success: false, + major: '3' + }; + + try { + version.full = ($.fn.dropdown.Constructor.VERSION || '').split(' ')[0].split('.'); + version.major = version.full[0]; + version.success = true; + } catch (err) { + // do nothing + } + + var selectId = 0; + + var EVENT_KEY = '.bs.select'; + + var classNames = { + DISABLED: 'disabled', + DIVIDER: 'divider', + SHOW: 'open', + DROPUP: 'dropup', + MENU: 'dropdown-menu', + MENURIGHT: 'dropdown-menu-right', + MENULEFT: 'dropdown-menu-left', + // to-do: replace with more advanced template/customization options + BUTTONCLASS: 'btn-default', + POPOVERHEADER: 'popover-title', + ICONBASE: 'glyphicon', + TICKICON: 'glyphicon-ok' + } + + var Selector = { + MENU: '.' + classNames.MENU + } + + var elementTemplates = { + div: document.createElement('div'), + span: document.createElement('span'), + i: document.createElement('i'), + subtext: document.createElement('small'), + a: document.createElement('a'), + li: document.createElement('li'), + whitespace: document.createTextNode('\u00A0'), + fragment: document.createDocumentFragment() + } + + elementTemplates.noResults = elementTemplates.li.cloneNode(false); + elementTemplates.noResults.className = 'no-results'; + + elementTemplates.a.setAttribute('role', 'option'); + elementTemplates.a.className = 'dropdown-item'; + + elementTemplates.subtext.className = 'text-muted'; + + elementTemplates.text = elementTemplates.span.cloneNode(false); + elementTemplates.text.className = 'text'; + + elementTemplates.checkMark = elementTemplates.span.cloneNode(false); + + var REGEXP_ARROW = new RegExp(keyCodes.ARROW_UP + '|' + keyCodes.ARROW_DOWN); + var REGEXP_TAB_OR_ESCAPE = new RegExp('^' + keyCodes.TAB + '$|' + keyCodes.ESCAPE); + + var generateOption = { + li: function (content, classes, optgroup) { + var li = elementTemplates.li.cloneNode(false); + + if (content) { + if (content.nodeType === 1 || content.nodeType === 11) { + li.appendChild(content); + } else { + li.innerHTML = content; + } + } + + if (typeof classes !== 'undefined' && classes !== '') li.className = classes; + if (typeof optgroup !== 'undefined' && optgroup !== null) li.classList.add('optgroup-' + optgroup); + + return li; + }, + + a: function (text, classes, inline) { + var a = elementTemplates.a.cloneNode(true); + + if (text) { + if (text.nodeType === 11) { + a.appendChild(text); + } else { + a.insertAdjacentHTML('beforeend', text); + } + } + + if (typeof classes !== 'undefined' && classes !== '') a.classList.add.apply(a.classList, classes.split(/\s+/)); + if (inline) a.setAttribute('style', inline); + + return a; + }, + + text: function (options, useFragment) { + var textElement = elementTemplates.text.cloneNode(false), + subtextElement, + iconElement; + + if (options.content) { + textElement.innerHTML = options.content; + } else { + textElement.textContent = options.text; + + if (options.icon) { + var whitespace = elementTemplates.whitespace.cloneNode(false); + + // need to use for icons in the button to prevent a breaking change + // note: switch to span in next major release + iconElement = (useFragment === true ? elementTemplates.i : elementTemplates.span).cloneNode(false); + iconElement.className = this.options.iconBase + ' ' + options.icon; + + elementTemplates.fragment.appendChild(iconElement); + elementTemplates.fragment.appendChild(whitespace); + } + + if (options.subtext) { + subtextElement = elementTemplates.subtext.cloneNode(false); + subtextElement.textContent = options.subtext; + textElement.appendChild(subtextElement); + } + } + + if (useFragment === true) { + while (textElement.childNodes.length > 0) { + elementTemplates.fragment.appendChild(textElement.childNodes[0]); + } + } else { + elementTemplates.fragment.appendChild(textElement); + } + + return elementTemplates.fragment; + }, + + label: function (options) { + var textElement = elementTemplates.text.cloneNode(false), + subtextElement, + iconElement; + + textElement.innerHTML = options.display; + + if (options.icon) { + var whitespace = elementTemplates.whitespace.cloneNode(false); + + iconElement = elementTemplates.span.cloneNode(false); + iconElement.className = this.options.iconBase + ' ' + options.icon; + + elementTemplates.fragment.appendChild(iconElement); + elementTemplates.fragment.appendChild(whitespace); + } + + if (options.subtext) { + subtextElement = elementTemplates.subtext.cloneNode(false); + subtextElement.textContent = options.subtext; + textElement.appendChild(subtextElement); + } + + elementTemplates.fragment.appendChild(textElement); + + return elementTemplates.fragment; + } + } + + function showNoResults (searchMatch, searchValue) { + if (!searchMatch.length) { + elementTemplates.noResults.innerHTML = this.options.noneResultsText.replace('{0}', '"' + htmlEscape(searchValue) + '"'); + this.$menuInner[0].firstChild.appendChild(elementTemplates.noResults); + } + } + + var Selectpicker = function (element, options) { + var that = this; + + // bootstrap-select has been initialized - revert valHooks.select.set back to its original function + if (!valHooks.useDefault) { + $.valHooks.select.set = valHooks._set; + valHooks.useDefault = true; + } + + this.$element = $(element); + this.$newElement = null; + this.$button = null; + this.$menu = null; + this.options = options; + this.selectpicker = { + main: {}, + search: {}, + current: {}, // current changes if a search is in progress + view: {}, + isSearching: false, + keydown: { + keyHistory: '', + resetKeyHistory: { + start: function () { + return setTimeout(function () { + that.selectpicker.keydown.keyHistory = ''; + }, 800); + } + } + } + }; + + this.sizeInfo = {}; + + // If we have no title yet, try to pull it from the html title attribute (jQuery doesnt' pick it up as it's not a + // data-attribute) + if (this.options.title === null) { + this.options.title = this.$element.attr('title'); + } + + // Format window padding + var winPad = this.options.windowPadding; + if (typeof winPad === 'number') { + this.options.windowPadding = [winPad, winPad, winPad, winPad]; + } + + // Expose public methods + this.val = Selectpicker.prototype.val; + this.render = Selectpicker.prototype.render; + this.refresh = Selectpicker.prototype.refresh; + this.setStyle = Selectpicker.prototype.setStyle; + this.selectAll = Selectpicker.prototype.selectAll; + this.deselectAll = Selectpicker.prototype.deselectAll; + this.destroy = Selectpicker.prototype.destroy; + this.remove = Selectpicker.prototype.remove; + this.show = Selectpicker.prototype.show; + this.hide = Selectpicker.prototype.hide; + + this.init(); + }; + + Selectpicker.VERSION = '1.13.18'; + + // part of this is duplicated in i18n/defaults-en_US.js. Make sure to update both. + Selectpicker.DEFAULTS = { + noneSelectedText: 'Nothing selected', + noneResultsText: 'No results matched {0}', + countSelectedText: function (numSelected, numTotal) { + return (numSelected == 1) ? '{0} item selected' : '{0} items selected'; + }, + maxOptionsText: function (numAll, numGroup) { + return [ + (numAll == 1) ? 'Limit reached ({n} item max)' : 'Limit reached ({n} items max)', + (numGroup == 1) ? 'Group limit reached ({n} item max)' : 'Group limit reached ({n} items max)' + ]; + }, + selectAllText: 'Select All', + deselectAllText: 'Deselect All', + doneButton: false, + doneButtonText: 'Close', + multipleSeparator: ', ', + styleBase: 'btn', + style: classNames.BUTTONCLASS, + size: 'auto', + title: null, + selectedTextFormat: 'values', + width: false, + container: false, + hideDisabled: false, + showSubtext: false, + showIcon: true, + showContent: true, + dropupAuto: true, + header: false, + liveSearch: false, + liveSearchPlaceholder: null, + liveSearchNormalize: false, + liveSearchStyle: 'contains', + actionsBox: false, + iconBase: classNames.ICONBASE, + tickIcon: classNames.TICKICON, + showTick: false, + template: { + caret: '' + }, + maxOptions: false, + mobile: false, + selectOnTab: false, + dropdownAlignRight: false, + windowPadding: 0, + virtualScroll: 600, + display: false, + sanitize: true, + sanitizeFn: null, + whiteList: DefaultWhitelist + }; + + Selectpicker.prototype = { + + constructor: Selectpicker, + + init: function () { + var that = this, + id = this.$element.attr('id'), + element = this.$element[0], + form = element.form; + + selectId++; + this.selectId = 'bs-select-' + selectId; + + element.classList.add('bs-select-hidden'); + + this.multiple = this.$element.prop('multiple'); + this.autofocus = this.$element.prop('autofocus'); + + if (element.classList.contains('show-tick')) { + this.options.showTick = true; + } + + this.$newElement = this.createDropdown(); + this.buildData(); + this.$element + .after(this.$newElement) + .prependTo(this.$newElement); + + // ensure select is associated with form element if it got unlinked after moving it inside newElement + if (form && element.form === null) { + if (!form.id) form.id = 'form-' + this.selectId; + element.setAttribute('form', form.id); + } + + this.$button = this.$newElement.children('button'); + this.$menu = this.$newElement.children(Selector.MENU); + this.$menuInner = this.$menu.children('.inner'); + this.$searchbox = this.$menu.find('input'); + + element.classList.remove('bs-select-hidden'); + + if (this.options.dropdownAlignRight === true) this.$menu[0].classList.add(classNames.MENURIGHT); + + if (typeof id !== 'undefined') { + this.$button.attr('data-id', id); + } + + this.checkDisabled(); + this.clickListener(); + + if (this.options.liveSearch) { + this.liveSearchListener(); + this.focusedParent = this.$searchbox[0]; + } else { + this.focusedParent = this.$menuInner[0]; + } + + this.setStyle(); + this.render(); + this.setWidth(); + if (this.options.container) { + this.selectPosition(); + } else { + this.$element.on('hide' + EVENT_KEY, function () { + if (that.isVirtual()) { + // empty menu on close + var menuInner = that.$menuInner[0], + emptyMenu = menuInner.firstChild.cloneNode(false); + + // replace the existing UL with an empty one - this is faster than $.empty() or innerHTML = '' + menuInner.replaceChild(emptyMenu, menuInner.firstChild); + menuInner.scrollTop = 0; + } + }); + } + this.$menu.data('this', this); + this.$newElement.data('this', this); + if (this.options.mobile) this.mobile(); + + this.$newElement.on({ + 'hide.bs.dropdown': function (e) { + that.$element.trigger('hide' + EVENT_KEY, e); + }, + 'hidden.bs.dropdown': function (e) { + that.$element.trigger('hidden' + EVENT_KEY, e); + }, + 'show.bs.dropdown': function (e) { + that.$element.trigger('show' + EVENT_KEY, e); + }, + 'shown.bs.dropdown': function (e) { + that.$element.trigger('shown' + EVENT_KEY, e); + } + }); + + if (element.hasAttribute('required')) { + this.$element.on('invalid' + EVENT_KEY, function () { + that.$button[0].classList.add('bs-invalid'); + + that.$element + .on('shown' + EVENT_KEY + '.invalid', function () { + that.$element + .val(that.$element.val()) // set the value to hide the validation message in Chrome when menu is opened + .off('shown' + EVENT_KEY + '.invalid'); + }) + .on('rendered' + EVENT_KEY, function () { + // if select is no longer invalid, remove the bs-invalid class + if (this.validity.valid) that.$button[0].classList.remove('bs-invalid'); + that.$element.off('rendered' + EVENT_KEY); + }); + + that.$button.on('blur' + EVENT_KEY, function () { + that.$element.trigger('focus').trigger('blur'); + that.$button.off('blur' + EVENT_KEY); + }); + }); + } + + setTimeout(function () { + that.buildList(); + that.$element.trigger('loaded' + EVENT_KEY); + }); + }, + + createDropdown: function () { + // Options + // If we are multiple or showTick option is set, then add the show-tick class + var showTick = (this.multiple || this.options.showTick) ? ' show-tick' : '', + multiselectable = this.multiple ? ' aria-multiselectable="true"' : '', + inputGroup = '', + autofocus = this.autofocus ? ' autofocus' : ''; + + if (version.major < 4 && this.$element.parent().hasClass('input-group')) { + inputGroup = ' input-group-btn'; + } + + // Elements + var drop, + header = '', + searchbox = '', + actionsbox = '', + donebutton = ''; + + if (this.options.header) { + header = + '
    ' + + '' + + this.options.header + + '
    '; + } + + if (this.options.liveSearch) { + searchbox = + ''; + } + + if (this.multiple && this.options.actionsBox) { + actionsbox = + '
    ' + + '
    ' + + '' + + '' + + '
    ' + + '
    '; + } + + if (this.multiple && this.options.doneButton) { + donebutton = + '
    ' + + '
    ' + + '' + + '
    ' + + '
    '; + } + + drop = + ''; + + return $(drop); + }, + + setPositionData: function () { + this.selectpicker.view.canHighlight = []; + this.selectpicker.view.size = 0; + this.selectpicker.view.firstHighlightIndex = false; + + for (var i = 0; i < this.selectpicker.current.data.length; i++) { + var li = this.selectpicker.current.data[i], + canHighlight = true; + + if (li.type === 'divider') { + canHighlight = false; + li.height = this.sizeInfo.dividerHeight; + } else if (li.type === 'optgroup-label') { + canHighlight = false; + li.height = this.sizeInfo.dropdownHeaderHeight; + } else { + li.height = this.sizeInfo.liHeight; + } + + if (li.disabled) canHighlight = false; + + this.selectpicker.view.canHighlight.push(canHighlight); + + if (canHighlight) { + this.selectpicker.view.size++; + li.posinset = this.selectpicker.view.size; + if (this.selectpicker.view.firstHighlightIndex === false) this.selectpicker.view.firstHighlightIndex = i; + } + + li.position = (i === 0 ? 0 : this.selectpicker.current.data[i - 1].position) + li.height; + } + }, + + isVirtual: function () { + return (this.options.virtualScroll !== false) && (this.selectpicker.main.elements.length >= this.options.virtualScroll) || this.options.virtualScroll === true; + }, + + createView: function (isSearching, setSize, refresh) { + var that = this, + scrollTop = 0, + active = [], + selected, + prevActive; + + this.selectpicker.isSearching = isSearching; + this.selectpicker.current = isSearching ? this.selectpicker.search : this.selectpicker.main; + + this.setPositionData(); + + if (setSize) { + if (refresh) { + scrollTop = this.$menuInner[0].scrollTop; + } else if (!that.multiple) { + var element = that.$element[0], + selectedIndex = (element.options[element.selectedIndex] || {}).liIndex; + + if (typeof selectedIndex === 'number' && that.options.size !== false) { + var selectedData = that.selectpicker.main.data[selectedIndex], + position = selectedData && selectedData.position; + + if (position) { + scrollTop = position - ((that.sizeInfo.menuInnerHeight + that.sizeInfo.liHeight) / 2); + } + } + } + } + + scroll(scrollTop, true); + + this.$menuInner.off('scroll.createView').on('scroll.createView', function (e, updateValue) { + if (!that.noScroll) scroll(this.scrollTop, updateValue); + that.noScroll = false; + }); + + function scroll (scrollTop, init) { + var size = that.selectpicker.current.elements.length, + chunks = [], + chunkSize, + chunkCount, + firstChunk, + lastChunk, + currentChunk, + prevPositions, + positionIsDifferent, + previousElements, + menuIsDifferent = true, + isVirtual = that.isVirtual(); + + that.selectpicker.view.scrollTop = scrollTop; + + chunkSize = Math.ceil(that.sizeInfo.menuInnerHeight / that.sizeInfo.liHeight * 1.5); // number of options in a chunk + chunkCount = Math.round(size / chunkSize) || 1; // number of chunks + + for (var i = 0; i < chunkCount; i++) { + var endOfChunk = (i + 1) * chunkSize; + + if (i === chunkCount - 1) { + endOfChunk = size; + } + + chunks[i] = [ + (i) * chunkSize + (!i ? 0 : 1), + endOfChunk + ]; + + if (!size) break; + + if (currentChunk === undefined && scrollTop - 1 <= that.selectpicker.current.data[endOfChunk - 1].position - that.sizeInfo.menuInnerHeight) { + currentChunk = i; + } + } + + if (currentChunk === undefined) currentChunk = 0; + + prevPositions = [that.selectpicker.view.position0, that.selectpicker.view.position1]; + + // always display previous, current, and next chunks + firstChunk = Math.max(0, currentChunk - 1); + lastChunk = Math.min(chunkCount - 1, currentChunk + 1); + + that.selectpicker.view.position0 = isVirtual === false ? 0 : (Math.max(0, chunks[firstChunk][0]) || 0); + that.selectpicker.view.position1 = isVirtual === false ? size : (Math.min(size, chunks[lastChunk][1]) || 0); + + positionIsDifferent = prevPositions[0] !== that.selectpicker.view.position0 || prevPositions[1] !== that.selectpicker.view.position1; + + if (that.activeIndex !== undefined) { + prevActive = that.selectpicker.main.elements[that.prevActiveIndex]; + active = that.selectpicker.main.elements[that.activeIndex]; + selected = that.selectpicker.main.elements[that.selectedIndex]; + + if (init) { + if (that.activeIndex !== that.selectedIndex) { + that.defocusItem(active); + } + that.activeIndex = undefined; + } + + if (that.activeIndex && that.activeIndex !== that.selectedIndex) { + that.defocusItem(selected); + } + } + + if (that.prevActiveIndex !== undefined && that.prevActiveIndex !== that.activeIndex && that.prevActiveIndex !== that.selectedIndex) { + that.defocusItem(prevActive); + } + + if (init || positionIsDifferent) { + previousElements = that.selectpicker.view.visibleElements ? that.selectpicker.view.visibleElements.slice() : []; + + if (isVirtual === false) { + that.selectpicker.view.visibleElements = that.selectpicker.current.elements; + } else { + that.selectpicker.view.visibleElements = that.selectpicker.current.elements.slice(that.selectpicker.view.position0, that.selectpicker.view.position1); + } + + that.setOptionStatus(); + + // if searching, check to make sure the list has actually been updated before updating DOM + // this prevents unnecessary repaints + if (isSearching || (isVirtual === false && init)) menuIsDifferent = !isEqual(previousElements, that.selectpicker.view.visibleElements); + + // if virtual scroll is disabled and not searching, + // menu should never need to be updated more than once + if ((init || isVirtual === true) && menuIsDifferent) { + var menuInner = that.$menuInner[0], + menuFragment = document.createDocumentFragment(), + emptyMenu = menuInner.firstChild.cloneNode(false), + marginTop, + marginBottom, + elements = that.selectpicker.view.visibleElements, + toSanitize = []; + + // replace the existing UL with an empty one - this is faster than $.empty() + menuInner.replaceChild(emptyMenu, menuInner.firstChild); + + for (var i = 0, visibleElementsLen = elements.length; i < visibleElementsLen; i++) { + var element = elements[i], + elText, + elementData; + + if (that.options.sanitize) { + elText = element.lastChild; + + if (elText) { + elementData = that.selectpicker.current.data[i + that.selectpicker.view.position0]; + + if (elementData && elementData.content && !elementData.sanitized) { + toSanitize.push(elText); + elementData.sanitized = true; + } + } + } + + menuFragment.appendChild(element); + } + + if (that.options.sanitize && toSanitize.length) { + sanitizeHtml(toSanitize, that.options.whiteList, that.options.sanitizeFn); + } + + if (isVirtual === true) { + marginTop = (that.selectpicker.view.position0 === 0 ? 0 : that.selectpicker.current.data[that.selectpicker.view.position0 - 1].position); + marginBottom = (that.selectpicker.view.position1 > size - 1 ? 0 : that.selectpicker.current.data[size - 1].position - that.selectpicker.current.data[that.selectpicker.view.position1 - 1].position); + + menuInner.firstChild.style.marginTop = marginTop + 'px'; + menuInner.firstChild.style.marginBottom = marginBottom + 'px'; + } else { + menuInner.firstChild.style.marginTop = 0; + menuInner.firstChild.style.marginBottom = 0; + } + + menuInner.firstChild.appendChild(menuFragment); + + // if an option is encountered that is wider than the current menu width, update the menu width accordingly + // switch to ResizeObserver with increased browser support + if (isVirtual === true && that.sizeInfo.hasScrollBar) { + var menuInnerInnerWidth = menuInner.firstChild.offsetWidth; + + if (init && menuInnerInnerWidth < that.sizeInfo.menuInnerInnerWidth && that.sizeInfo.totalMenuWidth > that.sizeInfo.selectWidth) { + menuInner.firstChild.style.minWidth = that.sizeInfo.menuInnerInnerWidth + 'px'; + } else if (menuInnerInnerWidth > that.sizeInfo.menuInnerInnerWidth) { + // set to 0 to get actual width of menu + that.$menu[0].style.minWidth = 0; + + var actualMenuWidth = menuInner.firstChild.offsetWidth; + + if (actualMenuWidth > that.sizeInfo.menuInnerInnerWidth) { + that.sizeInfo.menuInnerInnerWidth = actualMenuWidth; + menuInner.firstChild.style.minWidth = that.sizeInfo.menuInnerInnerWidth + 'px'; + } + + // reset to default CSS styling + that.$menu[0].style.minWidth = ''; + } + } + } + } + + that.prevActiveIndex = that.activeIndex; + + if (!that.options.liveSearch) { + that.$menuInner.trigger('focus'); + } else if (isSearching && init) { + var index = 0, + newActive; + + if (!that.selectpicker.view.canHighlight[index]) { + index = 1 + that.selectpicker.view.canHighlight.slice(1).indexOf(true); + } + + newActive = that.selectpicker.view.visibleElements[index]; + + that.defocusItem(that.selectpicker.view.currentActive); + + that.activeIndex = (that.selectpicker.current.data[index] || {}).index; + + that.focusItem(newActive); + } + } + + $(window) + .off('resize' + EVENT_KEY + '.' + this.selectId + '.createView') + .on('resize' + EVENT_KEY + '.' + this.selectId + '.createView', function () { + var isActive = that.$newElement.hasClass(classNames.SHOW); + + if (isActive) scroll(that.$menuInner[0].scrollTop); + }); + }, + + focusItem: function (li, liData, noStyle) { + if (li) { + liData = liData || this.selectpicker.main.data[this.activeIndex]; + var a = li.firstChild; + + if (a) { + a.setAttribute('aria-setsize', this.selectpicker.view.size); + a.setAttribute('aria-posinset', liData.posinset); + + if (noStyle !== true) { + this.focusedParent.setAttribute('aria-activedescendant', a.id); + li.classList.add('active'); + a.classList.add('active'); + } + } + } + }, + + defocusItem: function (li) { + if (li) { + li.classList.remove('active'); + if (li.firstChild) li.firstChild.classList.remove('active'); + } + }, + + setPlaceholder: function () { + var that = this, + updateIndex = false; + + if (this.options.title && !this.multiple) { + if (!this.selectpicker.view.titleOption) this.selectpicker.view.titleOption = document.createElement('option'); + + // this option doesn't create a new
  • element, but does add a new option at the start, + // so startIndex should increase to prevent having to check every option for the bs-title-option class + updateIndex = true; + + var element = this.$element[0], + selectTitleOption = false, + titleNotAppended = !this.selectpicker.view.titleOption.parentNode, + selectedIndex = element.selectedIndex, + selectedOption = element.options[selectedIndex], + navigation = window.performance && window.performance.getEntriesByType('navigation'), + // Safari doesn't support getEntriesByType('navigation') - fall back to performance.navigation + isNotBackForward = (navigation && navigation.length) ? navigation[0].type !== 'back_forward' : window.performance.navigation.type !== 2; + + if (titleNotAppended) { + // Use native JS to prepend option (faster) + this.selectpicker.view.titleOption.className = 'bs-title-option'; + this.selectpicker.view.titleOption.value = ''; + + // Check if selected or data-selected attribute is already set on an option. If not, select the titleOption option. + // the selected item may have been changed by user or programmatically before the bootstrap select plugin runs, + // if so, the select will have the data-selected attribute + selectTitleOption = !selectedOption || (selectedIndex === 0 && selectedOption.defaultSelected === false && this.$element.data('selected') === undefined); + } + + if (titleNotAppended || this.selectpicker.view.titleOption.index !== 0) { + element.insertBefore(this.selectpicker.view.titleOption, element.firstChild); + } + + // Set selected *after* appending to select, + // otherwise the option doesn't get selected in IE + // set using selectedIndex, as setting the selected attr to true here doesn't work in IE11 + if (selectTitleOption && isNotBackForward) { + element.selectedIndex = 0; + } else if (document.readyState !== 'complete') { + // if navigation type is back_forward, there's a chance the select will have its value set by BFCache + // wait for that value to be set, then run render again + window.addEventListener('pageshow', function () { + if (that.selectpicker.view.displayedValue !== element.value) that.render(); + }); + } + } + + return updateIndex; + }, + + buildData: function () { + var optionSelector = ':not([hidden]):not([data-hidden="true"])', + mainData = [], + optID = 0, + startIndex = this.setPlaceholder() ? 1 : 0; // append the titleOption if necessary and skip the first option in the loop + + if (this.options.hideDisabled) optionSelector += ':not(:disabled)'; + + var selectOptions = this.$element[0].querySelectorAll('select > *' + optionSelector); + + function addDivider (config) { + var previousData = mainData[mainData.length - 1]; + + // ensure optgroup doesn't create back-to-back dividers + if ( + previousData && + previousData.type === 'divider' && + (previousData.optID || config.optID) + ) { + return; + } + + config = config || {}; + config.type = 'divider'; + + mainData.push(config); + } + + function addOption (option, config) { + config = config || {}; + + config.divider = option.getAttribute('data-divider') === 'true'; + + if (config.divider) { + addDivider({ + optID: config.optID + }); + } else { + var liIndex = mainData.length, + cssText = option.style.cssText, + inlineStyle = cssText ? htmlEscape(cssText) : '', + optionClass = (option.className || '') + (config.optgroupClass || ''); + + if (config.optID) optionClass = 'opt ' + optionClass; + + config.optionClass = optionClass.trim(); + config.inlineStyle = inlineStyle; + config.text = option.textContent; + + config.content = option.getAttribute('data-content'); + config.tokens = option.getAttribute('data-tokens'); + config.subtext = option.getAttribute('data-subtext'); + config.icon = option.getAttribute('data-icon'); + + option.liIndex = liIndex; + + config.display = config.content || config.text; + config.type = 'option'; + config.index = liIndex; + config.option = option; + config.selected = !!option.selected; + config.disabled = config.disabled || !!option.disabled; + + mainData.push(config); + } + } + + function addOptgroup (index, selectOptions) { + var optgroup = selectOptions[index], + // skip placeholder option + previous = index - 1 < startIndex ? false : selectOptions[index - 1], + next = selectOptions[index + 1], + options = optgroup.querySelectorAll('option' + optionSelector); + + if (!options.length) return; + + var config = { + display: htmlEscape(optgroup.label), + subtext: optgroup.getAttribute('data-subtext'), + icon: optgroup.getAttribute('data-icon'), + type: 'optgroup-label', + optgroupClass: ' ' + (optgroup.className || '') + }, + headerIndex, + lastIndex; + + optID++; + + if (previous) { + addDivider({ optID: optID }); + } + + config.optID = optID; + + mainData.push(config); + + for (var j = 0, len = options.length; j < len; j++) { + var option = options[j]; + + if (j === 0) { + headerIndex = mainData.length - 1; + lastIndex = headerIndex + len; + } + + addOption(option, { + headerIndex: headerIndex, + lastIndex: lastIndex, + optID: config.optID, + optgroupClass: config.optgroupClass, + disabled: optgroup.disabled + }); + } + + if (next) { + addDivider({ optID: optID }); + } + } + + for (var len = selectOptions.length, i = startIndex; i < len; i++) { + var item = selectOptions[i]; + + if (item.tagName !== 'OPTGROUP') { + addOption(item, {}); + } else { + addOptgroup(i, selectOptions); + } + } + + this.selectpicker.main.data = this.selectpicker.current.data = mainData; + }, + + buildList: function () { + var that = this, + selectData = this.selectpicker.main.data, + mainElements = [], + widestOptionLength = 0; + + if ((that.options.showTick || that.multiple) && !elementTemplates.checkMark.parentNode) { + elementTemplates.checkMark.className = this.options.iconBase + ' ' + that.options.tickIcon + ' check-mark'; + elementTemplates.a.appendChild(elementTemplates.checkMark); + } + + function buildElement (item) { + var liElement, + combinedLength = 0; + + switch (item.type) { + case 'divider': + liElement = generateOption.li( + false, + classNames.DIVIDER, + (item.optID ? item.optID + 'div' : undefined) + ); + + break; + + case 'option': + liElement = generateOption.li( + generateOption.a( + generateOption.text.call(that, item), + item.optionClass, + item.inlineStyle + ), + '', + item.optID + ); + + if (liElement.firstChild) { + liElement.firstChild.id = that.selectId + '-' + item.index; + } + + break; + + case 'optgroup-label': + liElement = generateOption.li( + generateOption.label.call(that, item), + 'dropdown-header' + item.optgroupClass, + item.optID + ); + + break; + } + + item.element = liElement; + mainElements.push(liElement); + + // count the number of characters in the option - not perfect, but should work in most cases + if (item.display) combinedLength += item.display.length; + if (item.subtext) combinedLength += item.subtext.length; + // if there is an icon, ensure this option's width is checked + if (item.icon) combinedLength += 1; + + if (combinedLength > widestOptionLength) { + widestOptionLength = combinedLength; + + // guess which option is the widest + // use this when calculating menu width + // not perfect, but it's fast, and the width will be updating accordingly when scrolling + that.selectpicker.view.widestOption = mainElements[mainElements.length - 1]; + } + } + + for (var len = selectData.length, i = 0; i < len; i++) { + var item = selectData[i]; + + buildElement(item); + } + + this.selectpicker.main.elements = this.selectpicker.current.elements = mainElements; + }, + + findLis: function () { + return this.$menuInner.find('.inner > li'); + }, + + render: function () { + var that = this, + element = this.$element[0], + // ensure titleOption is appended and selected (if necessary) before getting selectedOptions + placeholderSelected = this.setPlaceholder() && element.selectedIndex === 0, + selectedOptions = getSelectedOptions(element, this.options.hideDisabled), + selectedCount = selectedOptions.length, + button = this.$button[0], + buttonInner = button.querySelector('.filter-option-inner-inner'), + multipleSeparator = document.createTextNode(this.options.multipleSeparator), + titleFragment = elementTemplates.fragment.cloneNode(false), + showCount, + countMax, + hasContent = false; + + button.classList.toggle('bs-placeholder', that.multiple ? !selectedCount : !getSelectValues(element, selectedOptions)); + + if (!that.multiple && selectedOptions.length === 1) { + that.selectpicker.view.displayedValue = getSelectValues(element, selectedOptions); + } + + if (this.options.selectedTextFormat === 'static') { + titleFragment = generateOption.text.call(this, { text: this.options.title }, true); + } else { + showCount = this.multiple && this.options.selectedTextFormat.indexOf('count') !== -1 && selectedCount > 1; + + // determine if the number of selected options will be shown (showCount === true) + if (showCount) { + countMax = this.options.selectedTextFormat.split('>'); + showCount = (countMax.length > 1 && selectedCount > countMax[1]) || (countMax.length === 1 && selectedCount >= 2); + } + + // only loop through all selected options if the count won't be shown + if (showCount === false) { + if (!placeholderSelected) { + for (var selectedIndex = 0; selectedIndex < selectedCount; selectedIndex++) { + if (selectedIndex < 50) { + var option = selectedOptions[selectedIndex], + thisData = this.selectpicker.main.data[option.liIndex], + titleOptions = {}; + + if (this.multiple && selectedIndex > 0) { + titleFragment.appendChild(multipleSeparator.cloneNode(false)); + } + + if (option.title) { + titleOptions.text = option.title; + } else if (thisData) { + if (thisData.content && that.options.showContent) { + titleOptions.content = thisData.content.toString(); + hasContent = true; + } else { + if (that.options.showIcon) { + titleOptions.icon = thisData.icon; + } + if (that.options.showSubtext && !that.multiple && thisData.subtext) titleOptions.subtext = ' ' + thisData.subtext; + titleOptions.text = option.textContent.trim(); + } + } + + titleFragment.appendChild(generateOption.text.call(this, titleOptions, true)); + } else { + break; + } + } + + // add ellipsis + if (selectedCount > 49) { + titleFragment.appendChild(document.createTextNode('...')); + } + } + } else { + var optionSelector = ':not([hidden]):not([data-hidden="true"]):not([data-divider="true"])'; + if (this.options.hideDisabled) optionSelector += ':not(:disabled)'; + + // If this is a multiselect, and selectedTextFormat is count, then show 1 of 2 selected, etc. + var totalCount = this.$element[0].querySelectorAll('select > option' + optionSelector + ', optgroup' + optionSelector + ' option' + optionSelector).length, + tr8nText = (typeof this.options.countSelectedText === 'function') ? this.options.countSelectedText(selectedCount, totalCount) : this.options.countSelectedText; + + titleFragment = generateOption.text.call(this, { + text: tr8nText.replace('{0}', selectedCount.toString()).replace('{1}', totalCount.toString()) + }, true); + } + } + + if (this.options.title == undefined) { + // use .attr to ensure undefined is returned if title attribute is not set + this.options.title = this.$element.attr('title'); + } + + // If the select doesn't have a title, then use the default, or if nothing is set at all, use noneSelectedText + if (!titleFragment.childNodes.length) { + titleFragment = generateOption.text.call(this, { + text: typeof this.options.title !== 'undefined' ? this.options.title : this.options.noneSelectedText + }, true); + } + + // strip all HTML tags and trim the result, then unescape any escaped tags + button.title = titleFragment.textContent.replace(/<[^>]*>?/g, '').trim(); + + if (this.options.sanitize && hasContent) { + sanitizeHtml([titleFragment], that.options.whiteList, that.options.sanitizeFn); + } + + buttonInner.innerHTML = ''; + buttonInner.appendChild(titleFragment); + + if (version.major < 4 && this.$newElement[0].classList.contains('bs3-has-addon')) { + var filterExpand = button.querySelector('.filter-expand'), + clone = buttonInner.cloneNode(true); + + clone.className = 'filter-expand'; + + if (filterExpand) { + button.replaceChild(clone, filterExpand); + } else { + button.appendChild(clone); + } + } + + this.$element.trigger('rendered' + EVENT_KEY); + }, + + /** + * @param [style] + * @param [status] + */ + setStyle: function (newStyle, status) { + var button = this.$button[0], + newElement = this.$newElement[0], + style = this.options.style.trim(), + buttonClass; + + if (this.$element.attr('class')) { + this.$newElement.addClass(this.$element.attr('class').replace(/selectpicker|mobile-device|bs-select-hidden|validate\[.*\]/gi, '')); + } + + if (version.major < 4) { + newElement.classList.add('bs3'); + + if (newElement.parentNode.classList && newElement.parentNode.classList.contains('input-group') && + (newElement.previousElementSibling || newElement.nextElementSibling) && + (newElement.previousElementSibling || newElement.nextElementSibling).classList.contains('input-group-addon') + ) { + newElement.classList.add('bs3-has-addon'); + } + } + + if (newStyle) { + buttonClass = newStyle.trim(); + } else { + buttonClass = style; + } + + if (status == 'add') { + if (buttonClass) button.classList.add.apply(button.classList, buttonClass.split(' ')); + } else if (status == 'remove') { + if (buttonClass) button.classList.remove.apply(button.classList, buttonClass.split(' ')); + } else { + if (style) button.classList.remove.apply(button.classList, style.split(' ')); + if (buttonClass) button.classList.add.apply(button.classList, buttonClass.split(' ')); + } + }, + + liHeight: function (refresh) { + if (!refresh && (this.options.size === false || Object.keys(this.sizeInfo).length)) return; + + var newElement = elementTemplates.div.cloneNode(false), + menu = elementTemplates.div.cloneNode(false), + menuInner = elementTemplates.div.cloneNode(false), + menuInnerInner = document.createElement('ul'), + divider = elementTemplates.li.cloneNode(false), + dropdownHeader = elementTemplates.li.cloneNode(false), + li, + a = elementTemplates.a.cloneNode(false), + text = elementTemplates.span.cloneNode(false), + header = this.options.header && this.$menu.find('.' + classNames.POPOVERHEADER).length > 0 ? this.$menu.find('.' + classNames.POPOVERHEADER)[0].cloneNode(true) : null, + search = this.options.liveSearch ? elementTemplates.div.cloneNode(false) : null, + actions = this.options.actionsBox && this.multiple && this.$menu.find('.bs-actionsbox').length > 0 ? this.$menu.find('.bs-actionsbox')[0].cloneNode(true) : null, + doneButton = this.options.doneButton && this.multiple && this.$menu.find('.bs-donebutton').length > 0 ? this.$menu.find('.bs-donebutton')[0].cloneNode(true) : null, + firstOption = this.$element.find('option')[0]; + + this.sizeInfo.selectWidth = this.$newElement[0].offsetWidth; + + text.className = 'text'; + a.className = 'dropdown-item ' + (firstOption ? firstOption.className : ''); + newElement.className = this.$menu[0].parentNode.className + ' ' + classNames.SHOW; + newElement.style.width = 0; // ensure button width doesn't affect natural width of menu when calculating + if (this.options.width === 'auto') menu.style.minWidth = 0; + menu.className = classNames.MENU + ' ' + classNames.SHOW; + menuInner.className = 'inner ' + classNames.SHOW; + menuInnerInner.className = classNames.MENU + ' inner ' + (version.major === '4' ? classNames.SHOW : ''); + divider.className = classNames.DIVIDER; + dropdownHeader.className = 'dropdown-header'; + + text.appendChild(document.createTextNode('\u200b')); + + if (this.selectpicker.current.data.length) { + for (var i = 0; i < this.selectpicker.current.data.length; i++) { + var data = this.selectpicker.current.data[i]; + if (data.type === 'option') { + li = data.element; + break; + } + } + } else { + li = elementTemplates.li.cloneNode(false); + a.appendChild(text); + li.appendChild(a); + } + + dropdownHeader.appendChild(text.cloneNode(true)); + + if (this.selectpicker.view.widestOption) { + menuInnerInner.appendChild(this.selectpicker.view.widestOption.cloneNode(true)); + } + + menuInnerInner.appendChild(li); + menuInnerInner.appendChild(divider); + menuInnerInner.appendChild(dropdownHeader); + if (header) menu.appendChild(header); + if (search) { + var input = document.createElement('input'); + search.className = 'bs-searchbox'; + input.className = 'form-control'; + search.appendChild(input); + menu.appendChild(search); + } + if (actions) menu.appendChild(actions); + menuInner.appendChild(menuInnerInner); + menu.appendChild(menuInner); + if (doneButton) menu.appendChild(doneButton); + newElement.appendChild(menu); + + document.body.appendChild(newElement); + + var liHeight = li.offsetHeight, + dropdownHeaderHeight = dropdownHeader ? dropdownHeader.offsetHeight : 0, + headerHeight = header ? header.offsetHeight : 0, + searchHeight = search ? search.offsetHeight : 0, + actionsHeight = actions ? actions.offsetHeight : 0, + doneButtonHeight = doneButton ? doneButton.offsetHeight : 0, + dividerHeight = $(divider).outerHeight(true), + // fall back to jQuery if getComputedStyle is not supported + menuStyle = window.getComputedStyle ? window.getComputedStyle(menu) : false, + menuWidth = menu.offsetWidth, + $menu = menuStyle ? null : $(menu), + menuPadding = { + vert: toInteger(menuStyle ? menuStyle.paddingTop : $menu.css('paddingTop')) + + toInteger(menuStyle ? menuStyle.paddingBottom : $menu.css('paddingBottom')) + + toInteger(menuStyle ? menuStyle.borderTopWidth : $menu.css('borderTopWidth')) + + toInteger(menuStyle ? menuStyle.borderBottomWidth : $menu.css('borderBottomWidth')), + horiz: toInteger(menuStyle ? menuStyle.paddingLeft : $menu.css('paddingLeft')) + + toInteger(menuStyle ? menuStyle.paddingRight : $menu.css('paddingRight')) + + toInteger(menuStyle ? menuStyle.borderLeftWidth : $menu.css('borderLeftWidth')) + + toInteger(menuStyle ? menuStyle.borderRightWidth : $menu.css('borderRightWidth')) + }, + menuExtras = { + vert: menuPadding.vert + + toInteger(menuStyle ? menuStyle.marginTop : $menu.css('marginTop')) + + toInteger(menuStyle ? menuStyle.marginBottom : $menu.css('marginBottom')) + 2, + horiz: menuPadding.horiz + + toInteger(menuStyle ? menuStyle.marginLeft : $menu.css('marginLeft')) + + toInteger(menuStyle ? menuStyle.marginRight : $menu.css('marginRight')) + 2 + }, + scrollBarWidth; + + menuInner.style.overflowY = 'scroll'; + + scrollBarWidth = menu.offsetWidth - menuWidth; + + document.body.removeChild(newElement); + + this.sizeInfo.liHeight = liHeight; + this.sizeInfo.dropdownHeaderHeight = dropdownHeaderHeight; + this.sizeInfo.headerHeight = headerHeight; + this.sizeInfo.searchHeight = searchHeight; + this.sizeInfo.actionsHeight = actionsHeight; + this.sizeInfo.doneButtonHeight = doneButtonHeight; + this.sizeInfo.dividerHeight = dividerHeight; + this.sizeInfo.menuPadding = menuPadding; + this.sizeInfo.menuExtras = menuExtras; + this.sizeInfo.menuWidth = menuWidth; + this.sizeInfo.menuInnerInnerWidth = menuWidth - menuPadding.horiz; + this.sizeInfo.totalMenuWidth = this.sizeInfo.menuWidth; + this.sizeInfo.scrollBarWidth = scrollBarWidth; + this.sizeInfo.selectHeight = this.$newElement[0].offsetHeight; + + this.setPositionData(); + }, + + getSelectPosition: function () { + var that = this, + $window = $(window), + pos = that.$newElement.offset(), + $container = $(that.options.container), + containerPos; + + if (that.options.container && $container.length && !$container.is('body')) { + containerPos = $container.offset(); + containerPos.top += parseInt($container.css('borderTopWidth')); + containerPos.left += parseInt($container.css('borderLeftWidth')); + } else { + containerPos = { top: 0, left: 0 }; + } + + var winPad = that.options.windowPadding; + + this.sizeInfo.selectOffsetTop = pos.top - containerPos.top - $window.scrollTop(); + this.sizeInfo.selectOffsetBot = $window.height() - this.sizeInfo.selectOffsetTop - this.sizeInfo.selectHeight - containerPos.top - winPad[2]; + this.sizeInfo.selectOffsetLeft = pos.left - containerPos.left - $window.scrollLeft(); + this.sizeInfo.selectOffsetRight = $window.width() - this.sizeInfo.selectOffsetLeft - this.sizeInfo.selectWidth - containerPos.left - winPad[1]; + this.sizeInfo.selectOffsetTop -= winPad[0]; + this.sizeInfo.selectOffsetLeft -= winPad[3]; + }, + + setMenuSize: function (isAuto) { + this.getSelectPosition(); + + var selectWidth = this.sizeInfo.selectWidth, + liHeight = this.sizeInfo.liHeight, + headerHeight = this.sizeInfo.headerHeight, + searchHeight = this.sizeInfo.searchHeight, + actionsHeight = this.sizeInfo.actionsHeight, + doneButtonHeight = this.sizeInfo.doneButtonHeight, + divHeight = this.sizeInfo.dividerHeight, + menuPadding = this.sizeInfo.menuPadding, + menuInnerHeight, + menuHeight, + divLength = 0, + minHeight, + _minHeight, + maxHeight, + menuInnerMinHeight, + estimate, + isDropup; + + if (this.options.dropupAuto) { + // Get the estimated height of the menu without scrollbars. + // This is useful for smaller menus, where there might be plenty of room + // below the button without setting dropup, but we can't know + // the exact height of the menu until createView is called later + estimate = liHeight * this.selectpicker.current.elements.length + menuPadding.vert; + + isDropup = this.sizeInfo.selectOffsetTop - this.sizeInfo.selectOffsetBot > this.sizeInfo.menuExtras.vert && estimate + this.sizeInfo.menuExtras.vert + 50 > this.sizeInfo.selectOffsetBot; + + // ensure dropup doesn't change while searching (so menu doesn't bounce back and forth) + if (this.selectpicker.isSearching === true) { + isDropup = this.selectpicker.dropup; + } + + this.$newElement.toggleClass(classNames.DROPUP, isDropup); + this.selectpicker.dropup = isDropup; + } + + if (this.options.size === 'auto') { + _minHeight = this.selectpicker.current.elements.length > 3 ? this.sizeInfo.liHeight * 3 + this.sizeInfo.menuExtras.vert - 2 : 0; + menuHeight = this.sizeInfo.selectOffsetBot - this.sizeInfo.menuExtras.vert; + minHeight = _minHeight + headerHeight + searchHeight + actionsHeight + doneButtonHeight; + menuInnerMinHeight = Math.max(_minHeight - menuPadding.vert, 0); + + if (this.$newElement.hasClass(classNames.DROPUP)) { + menuHeight = this.sizeInfo.selectOffsetTop - this.sizeInfo.menuExtras.vert; + } + + maxHeight = menuHeight; + menuInnerHeight = menuHeight - headerHeight - searchHeight - actionsHeight - doneButtonHeight - menuPadding.vert; + } else if (this.options.size && this.options.size != 'auto' && this.selectpicker.current.elements.length > this.options.size) { + for (var i = 0; i < this.options.size; i++) { + if (this.selectpicker.current.data[i].type === 'divider') divLength++; + } + + menuHeight = liHeight * this.options.size + divLength * divHeight + menuPadding.vert; + menuInnerHeight = menuHeight - menuPadding.vert; + maxHeight = menuHeight + headerHeight + searchHeight + actionsHeight + doneButtonHeight; + minHeight = menuInnerMinHeight = ''; + } + + this.$menu.css({ + 'max-height': maxHeight + 'px', + 'overflow': 'hidden', + 'min-height': minHeight + 'px' + }); + + this.$menuInner.css({ + 'max-height': menuInnerHeight + 'px', + 'overflow-y': 'auto', + 'min-height': menuInnerMinHeight + 'px' + }); + + // ensure menuInnerHeight is always a positive number to prevent issues calculating chunkSize in createView + this.sizeInfo.menuInnerHeight = Math.max(menuInnerHeight, 1); + + if (this.selectpicker.current.data.length && this.selectpicker.current.data[this.selectpicker.current.data.length - 1].position > this.sizeInfo.menuInnerHeight) { + this.sizeInfo.hasScrollBar = true; + this.sizeInfo.totalMenuWidth = this.sizeInfo.menuWidth + this.sizeInfo.scrollBarWidth; + } + + if (this.options.dropdownAlignRight === 'auto') { + this.$menu.toggleClass(classNames.MENURIGHT, this.sizeInfo.selectOffsetLeft > this.sizeInfo.selectOffsetRight && this.sizeInfo.selectOffsetRight < (this.sizeInfo.totalMenuWidth - selectWidth)); + } + + if (this.dropdown && this.dropdown._popper) this.dropdown._popper.update(); + }, + + setSize: function (refresh) { + this.liHeight(refresh); + + if (this.options.header) this.$menu.css('padding-top', 0); + + if (this.options.size !== false) { + var that = this, + $window = $(window); + + this.setMenuSize(); + + if (this.options.liveSearch) { + this.$searchbox + .off('input.setMenuSize propertychange.setMenuSize') + .on('input.setMenuSize propertychange.setMenuSize', function () { + return that.setMenuSize(); + }); + } + + if (this.options.size === 'auto') { + $window + .off('resize' + EVENT_KEY + '.' + this.selectId + '.setMenuSize' + ' scroll' + EVENT_KEY + '.' + this.selectId + '.setMenuSize') + .on('resize' + EVENT_KEY + '.' + this.selectId + '.setMenuSize' + ' scroll' + EVENT_KEY + '.' + this.selectId + '.setMenuSize', function () { + return that.setMenuSize(); + }); + } else if (this.options.size && this.options.size != 'auto' && this.selectpicker.current.elements.length > this.options.size) { + $window.off('resize' + EVENT_KEY + '.' + this.selectId + '.setMenuSize' + ' scroll' + EVENT_KEY + '.' + this.selectId + '.setMenuSize'); + } + } + + this.createView(false, true, refresh); + }, + + setWidth: function () { + var that = this; + + if (this.options.width === 'auto') { + requestAnimationFrame(function () { + that.$menu.css('min-width', '0'); + + that.$element.on('loaded' + EVENT_KEY, function () { + that.liHeight(); + that.setMenuSize(); + + // Get correct width if element is hidden + var $selectClone = that.$newElement.clone().appendTo('body'), + btnWidth = $selectClone.css('width', 'auto').children('button').outerWidth(); + + $selectClone.remove(); + + // Set width to whatever's larger, button title or longest option + that.sizeInfo.selectWidth = Math.max(that.sizeInfo.totalMenuWidth, btnWidth); + that.$newElement.css('width', that.sizeInfo.selectWidth + 'px'); + }); + }); + } else if (this.options.width === 'fit') { + // Remove inline min-width so width can be changed from 'auto' + this.$menu.css('min-width', ''); + this.$newElement.css('width', '').addClass('fit-width'); + } else if (this.options.width) { + // Remove inline min-width so width can be changed from 'auto' + this.$menu.css('min-width', ''); + this.$newElement.css('width', this.options.width); + } else { + // Remove inline min-width/width so width can be changed + this.$menu.css('min-width', ''); + this.$newElement.css('width', ''); + } + // Remove fit-width class if width is changed programmatically + if (this.$newElement.hasClass('fit-width') && this.options.width !== 'fit') { + this.$newElement[0].classList.remove('fit-width'); + } + }, + + selectPosition: function () { + this.$bsContainer = $('
    '); + + var that = this, + $container = $(this.options.container), + pos, + containerPos, + actualHeight, + getPlacement = function ($element) { + var containerPosition = {}, + // fall back to dropdown's default display setting if display is not manually set + display = that.options.display || ( + // Bootstrap 3 doesn't have $.fn.dropdown.Constructor.Default + $.fn.dropdown.Constructor.Default ? $.fn.dropdown.Constructor.Default.display + : false + ); + + that.$bsContainer.addClass($element.attr('class').replace(/form-control|fit-width/gi, '')).toggleClass(classNames.DROPUP, $element.hasClass(classNames.DROPUP)); + pos = $element.offset(); + + if (!$container.is('body')) { + containerPos = $container.offset(); + containerPos.top += parseInt($container.css('borderTopWidth')) - $container.scrollTop(); + containerPos.left += parseInt($container.css('borderLeftWidth')) - $container.scrollLeft(); + } else { + containerPos = { top: 0, left: 0 }; + } + + actualHeight = $element.hasClass(classNames.DROPUP) ? 0 : $element[0].offsetHeight; + + // Bootstrap 4+ uses Popper for menu positioning + if (version.major < 4 || display === 'static') { + containerPosition.top = pos.top - containerPos.top + actualHeight; + containerPosition.left = pos.left - containerPos.left; + } + + containerPosition.width = $element[0].offsetWidth; + + that.$bsContainer.css(containerPosition); + }; + + this.$button.on('click.bs.dropdown.data-api', function () { + if (that.isDisabled()) { + return; + } + + getPlacement(that.$newElement); + + that.$bsContainer + .appendTo(that.options.container) + .toggleClass(classNames.SHOW, !that.$button.hasClass(classNames.SHOW)) + .append(that.$menu); + }); + + $(window) + .off('resize' + EVENT_KEY + '.' + this.selectId + ' scroll' + EVENT_KEY + '.' + this.selectId) + .on('resize' + EVENT_KEY + '.' + this.selectId + ' scroll' + EVENT_KEY + '.' + this.selectId, function () { + var isActive = that.$newElement.hasClass(classNames.SHOW); + + if (isActive) getPlacement(that.$newElement); + }); + + this.$element.on('hide' + EVENT_KEY, function () { + that.$menu.data('height', that.$menu.height()); + that.$bsContainer.detach(); + }); + }, + + setOptionStatus: function (selectedOnly) { + var that = this; + + that.noScroll = false; + + if (that.selectpicker.view.visibleElements && that.selectpicker.view.visibleElements.length) { + for (var i = 0; i < that.selectpicker.view.visibleElements.length; i++) { + var liData = that.selectpicker.current.data[i + that.selectpicker.view.position0], + option = liData.option; + + if (option) { + if (selectedOnly !== true) { + that.setDisabled( + liData.index, + liData.disabled + ); + } + + that.setSelected( + liData.index, + option.selected + ); + } + } + } + }, + + /** + * @param {number} index - the index of the option that is being changed + * @param {boolean} selected - true if the option is being selected, false if being deselected + */ + setSelected: function (index, selected) { + var li = this.selectpicker.main.elements[index], + liData = this.selectpicker.main.data[index], + activeIndexIsSet = this.activeIndex !== undefined, + thisIsActive = this.activeIndex === index, + prevActive, + a, + // if current option is already active + // OR + // if the current option is being selected, it's NOT multiple, and + // activeIndex is undefined: + // - when the menu is first being opened, OR + // - after a search has been performed, OR + // - when retainActive is false when selecting a new option (i.e. index of the newly selected option is not the same as the current activeIndex) + keepActive = thisIsActive || (selected && !this.multiple && !activeIndexIsSet); + + liData.selected = selected; + + a = li.firstChild; + + if (selected) { + this.selectedIndex = index; + } + + li.classList.toggle('selected', selected); + + if (keepActive) { + this.focusItem(li, liData); + this.selectpicker.view.currentActive = li; + this.activeIndex = index; + } else { + this.defocusItem(li); + } + + if (a) { + a.classList.toggle('selected', selected); + + if (selected) { + a.setAttribute('aria-selected', true); + } else { + if (this.multiple) { + a.setAttribute('aria-selected', false); + } else { + a.removeAttribute('aria-selected'); + } + } + } + + if (!keepActive && !activeIndexIsSet && selected && this.prevActiveIndex !== undefined) { + prevActive = this.selectpicker.main.elements[this.prevActiveIndex]; + + this.defocusItem(prevActive); + } + }, + + /** + * @param {number} index - the index of the option that is being disabled + * @param {boolean} disabled - true if the option is being disabled, false if being enabled + */ + setDisabled: function (index, disabled) { + var li = this.selectpicker.main.elements[index], + a; + + this.selectpicker.main.data[index].disabled = disabled; + + a = li.firstChild; + + li.classList.toggle(classNames.DISABLED, disabled); + + if (a) { + if (version.major === '4') a.classList.toggle(classNames.DISABLED, disabled); + + if (disabled) { + a.setAttribute('aria-disabled', disabled); + a.setAttribute('tabindex', -1); + } else { + a.removeAttribute('aria-disabled'); + a.setAttribute('tabindex', 0); + } + } + }, + + isDisabled: function () { + return this.$element[0].disabled; + }, + + checkDisabled: function () { + if (this.isDisabled()) { + this.$newElement[0].classList.add(classNames.DISABLED); + this.$button.addClass(classNames.DISABLED).attr('aria-disabled', true); + } else { + if (this.$button[0].classList.contains(classNames.DISABLED)) { + this.$newElement[0].classList.remove(classNames.DISABLED); + this.$button.removeClass(classNames.DISABLED).attr('aria-disabled', false); + } + } + }, + + clickListener: function () { + var that = this, + $document = $(document); + + $document.data('spaceSelect', false); + + this.$button.on('keyup', function (e) { + if (/(32)/.test(e.keyCode.toString(10)) && $document.data('spaceSelect')) { + e.preventDefault(); + $document.data('spaceSelect', false); + } + }); + + this.$newElement.on('show.bs.dropdown', function () { + if (version.major > 3 && !that.dropdown) { + that.dropdown = that.$button.data('bs.dropdown'); + that.dropdown._menu = that.$menu[0]; + } + }); + + this.$button.on('click.bs.dropdown.data-api', function () { + if (!that.$newElement.hasClass(classNames.SHOW)) { + that.setSize(); + } + }); + + function setFocus () { + if (that.options.liveSearch) { + that.$searchbox.trigger('focus'); + } else { + that.$menuInner.trigger('focus'); + } + } + + function checkPopperExists () { + if (that.dropdown && that.dropdown._popper && that.dropdown._popper.state.isCreated) { + setFocus(); + } else { + requestAnimationFrame(checkPopperExists); + } + } + + this.$element.on('shown' + EVENT_KEY, function () { + if (that.$menuInner[0].scrollTop !== that.selectpicker.view.scrollTop) { + that.$menuInner[0].scrollTop = that.selectpicker.view.scrollTop; + } + + if (version.major > 3) { + requestAnimationFrame(checkPopperExists); + } else { + setFocus(); + } + }); + + // ensure posinset and setsize are correct before selecting an option via a click + this.$menuInner.on('mouseenter', 'li a', function (e) { + var hoverLi = this.parentElement, + position0 = that.isVirtual() ? that.selectpicker.view.position0 : 0, + index = Array.prototype.indexOf.call(hoverLi.parentElement.children, hoverLi), + hoverData = that.selectpicker.current.data[index + position0]; + + that.focusItem(hoverLi, hoverData, true); + }); + + this.$menuInner.on('click', 'li a', function (e, retainActive) { + var $this = $(this), + element = that.$element[0], + position0 = that.isVirtual() ? that.selectpicker.view.position0 : 0, + clickedData = that.selectpicker.current.data[$this.parent().index() + position0], + clickedIndex = clickedData.index, + prevValue = getSelectValues(element), + prevIndex = element.selectedIndex, + prevOption = element.options[prevIndex], + triggerChange = true; + + // Don't close on multi choice menu + if (that.multiple && that.options.maxOptions !== 1) { + e.stopPropagation(); + } + + e.preventDefault(); + + // Don't run if the select is disabled + if (!that.isDisabled() && !$this.parent().hasClass(classNames.DISABLED)) { + var option = clickedData.option, + $option = $(option), + state = option.selected, + $optgroup = $option.parent('optgroup'), + $optgroupOptions = $optgroup.find('option'), + maxOptions = that.options.maxOptions, + maxOptionsGrp = $optgroup.data('maxOptions') || false; + + if (clickedIndex === that.activeIndex) retainActive = true; + + if (!retainActive) { + that.prevActiveIndex = that.activeIndex; + that.activeIndex = undefined; + } + + if (!that.multiple) { // Deselect all others if not multi select box + if (prevOption) prevOption.selected = false; + option.selected = true; + that.setSelected(clickedIndex, true); + } else { // Toggle the one we have chosen if we are multi select. + option.selected = !state; + + that.setSelected(clickedIndex, !state); + that.focusedParent.focus(); + + if (maxOptions !== false || maxOptionsGrp !== false) { + var maxReached = maxOptions < getSelectedOptions(element).length, + maxReachedGrp = maxOptionsGrp < $optgroup.find('option:selected').length; + + if ((maxOptions && maxReached) || (maxOptionsGrp && maxReachedGrp)) { + if (maxOptions && maxOptions == 1) { + element.selectedIndex = -1; + option.selected = true; + that.setOptionStatus(true); + } else if (maxOptionsGrp && maxOptionsGrp == 1) { + for (var i = 0; i < $optgroupOptions.length; i++) { + var _option = $optgroupOptions[i]; + _option.selected = false; + that.setSelected(_option.liIndex, false); + } + + option.selected = true; + that.setSelected(clickedIndex, true); + } else { + var maxOptionsText = typeof that.options.maxOptionsText === 'string' ? [that.options.maxOptionsText, that.options.maxOptionsText] : that.options.maxOptionsText, + maxOptionsArr = typeof maxOptionsText === 'function' ? maxOptionsText(maxOptions, maxOptionsGrp) : maxOptionsText, + maxTxt = maxOptionsArr[0].replace('{n}', maxOptions), + maxTxtGrp = maxOptionsArr[1].replace('{n}', maxOptionsGrp), + $notify = $('
    '); + // If {var} is set in array, replace it + /** @deprecated */ + if (maxOptionsArr[2]) { + maxTxt = maxTxt.replace('{var}', maxOptionsArr[2][maxOptions > 1 ? 0 : 1]); + maxTxtGrp = maxTxtGrp.replace('{var}', maxOptionsArr[2][maxOptionsGrp > 1 ? 0 : 1]); + } + + option.selected = false; + + that.$menu.append($notify); + + if (maxOptions && maxReached) { + $notify.append($('
    ' + maxTxt + '
    ')); + triggerChange = false; + that.$element.trigger('maxReached' + EVENT_KEY); + } + + if (maxOptionsGrp && maxReachedGrp) { + $notify.append($('
    ' + maxTxtGrp + '
    ')); + triggerChange = false; + that.$element.trigger('maxReachedGrp' + EVENT_KEY); + } + + setTimeout(function () { + that.setSelected(clickedIndex, false); + }, 10); + + $notify[0].classList.add('fadeOut'); + + setTimeout(function () { + $notify.remove(); + }, 1050); + } + } + } + } + + if (!that.multiple || (that.multiple && that.options.maxOptions === 1)) { + that.$button.trigger('focus'); + } else if (that.options.liveSearch) { + that.$searchbox.trigger('focus'); + } + + // Trigger select 'change' + if (triggerChange) { + if (that.multiple || prevIndex !== element.selectedIndex) { + // $option.prop('selected') is current option state (selected/unselected). prevValue is the value of the select prior to being changed. + changedArguments = [option.index, $option.prop('selected'), prevValue]; + that.$element + .triggerNative('change'); + } + } + } + }); + + this.$menu.on('click', 'li.' + classNames.DISABLED + ' a, .' + classNames.POPOVERHEADER + ', .' + classNames.POPOVERHEADER + ' :not(.close)', function (e) { + if (e.currentTarget == this) { + e.preventDefault(); + e.stopPropagation(); + if (that.options.liveSearch && !$(e.target).hasClass('close')) { + that.$searchbox.trigger('focus'); + } else { + that.$button.trigger('focus'); + } + } + }); + + this.$menuInner.on('click', '.divider, .dropdown-header', function (e) { + e.preventDefault(); + e.stopPropagation(); + if (that.options.liveSearch) { + that.$searchbox.trigger('focus'); + } else { + that.$button.trigger('focus'); + } + }); + + this.$menu.on('click', '.' + classNames.POPOVERHEADER + ' .close', function () { + that.$button.trigger('click'); + }); + + this.$searchbox.on('click', function (e) { + e.stopPropagation(); + }); + + this.$menu.on('click', '.actions-btn', function (e) { + if (that.options.liveSearch) { + that.$searchbox.trigger('focus'); + } else { + that.$button.trigger('focus'); + } + + e.preventDefault(); + e.stopPropagation(); + + if ($(this).hasClass('bs-select-all')) { + that.selectAll(); + } else { + that.deselectAll(); + } + }); + + this.$button + .on('focus' + EVENT_KEY, function (e) { + var tabindex = that.$element[0].getAttribute('tabindex'); + + // only change when button is actually focused + if (tabindex !== undefined && e.originalEvent && e.originalEvent.isTrusted) { + // apply select element's tabindex to ensure correct order is followed when tabbing to the next element + this.setAttribute('tabindex', tabindex); + // set element's tabindex to -1 to allow for reverse tabbing + that.$element[0].setAttribute('tabindex', -1); + that.selectpicker.view.tabindex = tabindex; + } + }) + .on('blur' + EVENT_KEY, function (e) { + // revert everything to original tabindex + if (that.selectpicker.view.tabindex !== undefined && e.originalEvent && e.originalEvent.isTrusted) { + that.$element[0].setAttribute('tabindex', that.selectpicker.view.tabindex); + this.setAttribute('tabindex', -1); + that.selectpicker.view.tabindex = undefined; + } + }); + + this.$element + .on('change' + EVENT_KEY, function () { + that.render(); + that.$element.trigger('changed' + EVENT_KEY, changedArguments); + changedArguments = null; + }) + .on('focus' + EVENT_KEY, function () { + if (!that.options.mobile) that.$button[0].focus(); + }); + }, + + liveSearchListener: function () { + var that = this; + + this.$button.on('click.bs.dropdown.data-api', function () { + if (!!that.$searchbox.val()) { + that.$searchbox.val(''); + that.selectpicker.search.previousValue = undefined; + } + }); + + this.$searchbox.on('click.bs.dropdown.data-api focus.bs.dropdown.data-api touchend.bs.dropdown.data-api', function (e) { + e.stopPropagation(); + }); + + this.$searchbox.on('input propertychange', function () { + var searchValue = that.$searchbox[0].value; + + that.selectpicker.search.elements = []; + that.selectpicker.search.data = []; + + if (searchValue) { + var i, + searchMatch = [], + q = searchValue.toUpperCase(), + cache = {}, + cacheArr = [], + searchStyle = that._searchStyle(), + normalizeSearch = that.options.liveSearchNormalize; + + if (normalizeSearch) q = normalizeToBase(q); + + for (var i = 0; i < that.selectpicker.main.data.length; i++) { + var li = that.selectpicker.main.data[i]; + + if (!cache[i]) { + cache[i] = stringSearch(li, q, searchStyle, normalizeSearch); + } + + if (cache[i] && li.headerIndex !== undefined && cacheArr.indexOf(li.headerIndex) === -1) { + if (li.headerIndex > 0) { + cache[li.headerIndex - 1] = true; + cacheArr.push(li.headerIndex - 1); + } + + cache[li.headerIndex] = true; + cacheArr.push(li.headerIndex); + + cache[li.lastIndex + 1] = true; + } + + if (cache[i] && li.type !== 'optgroup-label') cacheArr.push(i); + } + + for (var i = 0, cacheLen = cacheArr.length; i < cacheLen; i++) { + var index = cacheArr[i], + prevIndex = cacheArr[i - 1], + li = that.selectpicker.main.data[index], + liPrev = that.selectpicker.main.data[prevIndex]; + + if (li.type !== 'divider' || (li.type === 'divider' && liPrev && liPrev.type !== 'divider' && cacheLen - 1 !== i)) { + that.selectpicker.search.data.push(li); + searchMatch.push(that.selectpicker.main.elements[index]); + } + } + + that.activeIndex = undefined; + that.noScroll = true; + that.$menuInner.scrollTop(0); + that.selectpicker.search.elements = searchMatch; + that.createView(true); + showNoResults.call(that, searchMatch, searchValue); + } else if (that.selectpicker.search.previousValue) { // for IE11 (#2402) + that.$menuInner.scrollTop(0); + that.createView(false); + } + + that.selectpicker.search.previousValue = searchValue; + }); + }, + + _searchStyle: function () { + return this.options.liveSearchStyle || 'contains'; + }, + + val: function (value) { + var element = this.$element[0]; + + if (typeof value !== 'undefined') { + var prevValue = getSelectValues(element); + + changedArguments = [null, null, prevValue]; + + this.$element + .val(value) + .trigger('changed' + EVENT_KEY, changedArguments); + + if (this.$newElement.hasClass(classNames.SHOW)) { + if (this.multiple) { + this.setOptionStatus(true); + } else { + var liSelectedIndex = (element.options[element.selectedIndex] || {}).liIndex; + + if (typeof liSelectedIndex === 'number') { + this.setSelected(this.selectedIndex, false); + this.setSelected(liSelectedIndex, true); + } + } + } + + this.render(); + + changedArguments = null; + + return this.$element; + } else { + return this.$element.val(); + } + }, + + changeAll: function (status) { + if (!this.multiple) return; + if (typeof status === 'undefined') status = true; + + var element = this.$element[0], + previousSelected = 0, + currentSelected = 0, + prevValue = getSelectValues(element); + + element.classList.add('bs-select-hidden'); + + for (var i = 0, data = this.selectpicker.current.data, len = data.length; i < len; i++) { + var liData = data[i], + option = liData.option; + + if (option && !liData.disabled && liData.type !== 'divider') { + if (liData.selected) previousSelected++; + option.selected = status; + if (status === true) currentSelected++; + } + } + + element.classList.remove('bs-select-hidden'); + + if (previousSelected === currentSelected) return; + + this.setOptionStatus(); + + changedArguments = [null, null, prevValue]; + + this.$element + .triggerNative('change'); + }, + + selectAll: function () { + return this.changeAll(true); + }, + + deselectAll: function () { + return this.changeAll(false); + }, + + toggle: function (e) { + e = e || window.event; + + if (e) e.stopPropagation(); + + this.$button.trigger('click.bs.dropdown.data-api'); + }, + + keydown: function (e) { + var $this = $(this), + isToggle = $this.hasClass('dropdown-toggle'), + $parent = isToggle ? $this.closest('.dropdown') : $this.closest(Selector.MENU), + that = $parent.data('this'), + $items = that.findLis(), + index, + isActive, + liActive, + activeLi, + offset, + updateScroll = false, + downOnTab = e.which === keyCodes.TAB && !isToggle && !that.options.selectOnTab, + isArrowKey = REGEXP_ARROW.test(e.which) || downOnTab, + scrollTop = that.$menuInner[0].scrollTop, + isVirtual = that.isVirtual(), + position0 = isVirtual === true ? that.selectpicker.view.position0 : 0; + + // do nothing if a function key is pressed + if (e.which >= 112 && e.which <= 123) return; + + isActive = that.$newElement.hasClass(classNames.SHOW); + + if ( + !isActive && + ( + isArrowKey || + (e.which >= 48 && e.which <= 57) || + (e.which >= 96 && e.which <= 105) || + (e.which >= 65 && e.which <= 90) + ) + ) { + that.$button.trigger('click.bs.dropdown.data-api'); + + if (that.options.liveSearch) { + that.$searchbox.trigger('focus'); + return; + } + } + + if (e.which === keyCodes.ESCAPE && isActive) { + e.preventDefault(); + that.$button.trigger('click.bs.dropdown.data-api').trigger('focus'); + } + + if (isArrowKey) { // if up or down + if (!$items.length) return; + + liActive = that.selectpicker.main.elements[that.activeIndex]; + index = liActive ? Array.prototype.indexOf.call(liActive.parentElement.children, liActive) : -1; + + if (index !== -1) { + that.defocusItem(liActive); + } + + if (e.which === keyCodes.ARROW_UP) { // up + if (index !== -1) index--; + if (index + position0 < 0) index += $items.length; + + if (!that.selectpicker.view.canHighlight[index + position0]) { + index = that.selectpicker.view.canHighlight.slice(0, index + position0).lastIndexOf(true) - position0; + if (index === -1) index = $items.length - 1; + } + } else if (e.which === keyCodes.ARROW_DOWN || downOnTab) { // down + index++; + if (index + position0 >= that.selectpicker.view.canHighlight.length) index = that.selectpicker.view.firstHighlightIndex; + + if (!that.selectpicker.view.canHighlight[index + position0]) { + index = index + 1 + that.selectpicker.view.canHighlight.slice(index + position0 + 1).indexOf(true); + } + } + + e.preventDefault(); + + var liActiveIndex = position0 + index; + + if (e.which === keyCodes.ARROW_UP) { // up + // scroll to bottom and highlight last option + if (position0 === 0 && index === $items.length - 1) { + that.$menuInner[0].scrollTop = that.$menuInner[0].scrollHeight; + + liActiveIndex = that.selectpicker.current.elements.length - 1; + } else { + activeLi = that.selectpicker.current.data[liActiveIndex]; + offset = activeLi.position - activeLi.height; + + updateScroll = offset < scrollTop; + } + } else if (e.which === keyCodes.ARROW_DOWN || downOnTab) { // down + // scroll to top and highlight first option + if (index === that.selectpicker.view.firstHighlightIndex) { + that.$menuInner[0].scrollTop = 0; + + liActiveIndex = that.selectpicker.view.firstHighlightIndex; + } else { + activeLi = that.selectpicker.current.data[liActiveIndex]; + offset = activeLi.position - that.sizeInfo.menuInnerHeight; + + updateScroll = offset > scrollTop; + } + } + + liActive = that.selectpicker.current.elements[liActiveIndex]; + + that.activeIndex = that.selectpicker.current.data[liActiveIndex].index; + + that.focusItem(liActive); + + that.selectpicker.view.currentActive = liActive; + + if (updateScroll) that.$menuInner[0].scrollTop = offset; + + if (that.options.liveSearch) { + that.$searchbox.trigger('focus'); + } else { + $this.trigger('focus'); + } + } else if ( + (!$this.is('input') && !REGEXP_TAB_OR_ESCAPE.test(e.which)) || + (e.which === keyCodes.SPACE && that.selectpicker.keydown.keyHistory) + ) { + var searchMatch, + matches = [], + keyHistory; + + e.preventDefault(); + + that.selectpicker.keydown.keyHistory += keyCodeMap[e.which]; + + if (that.selectpicker.keydown.resetKeyHistory.cancel) clearTimeout(that.selectpicker.keydown.resetKeyHistory.cancel); + that.selectpicker.keydown.resetKeyHistory.cancel = that.selectpicker.keydown.resetKeyHistory.start(); + + keyHistory = that.selectpicker.keydown.keyHistory; + + // if all letters are the same, set keyHistory to just the first character when searching + if (/^(.)\1+$/.test(keyHistory)) { + keyHistory = keyHistory.charAt(0); + } + + // find matches + for (var i = 0; i < that.selectpicker.current.data.length; i++) { + var li = that.selectpicker.current.data[i], + hasMatch; + + hasMatch = stringSearch(li, keyHistory, 'startsWith', true); + + if (hasMatch && that.selectpicker.view.canHighlight[i]) { + matches.push(li.index); + } + } + + if (matches.length) { + var matchIndex = 0; + + $items.removeClass('active').find('a').removeClass('active'); + + // either only one key has been pressed or they are all the same key + if (keyHistory.length === 1) { + matchIndex = matches.indexOf(that.activeIndex); + + if (matchIndex === -1 || matchIndex === matches.length - 1) { + matchIndex = 0; + } else { + matchIndex++; + } + } + + searchMatch = matches[matchIndex]; + + activeLi = that.selectpicker.main.data[searchMatch]; + + if (scrollTop - activeLi.position > 0) { + offset = activeLi.position - activeLi.height; + updateScroll = true; + } else { + offset = activeLi.position - that.sizeInfo.menuInnerHeight; + // if the option is already visible at the current scroll position, just keep it the same + updateScroll = activeLi.position > scrollTop + that.sizeInfo.menuInnerHeight; + } + + liActive = that.selectpicker.main.elements[searchMatch]; + + that.activeIndex = matches[matchIndex]; + + that.focusItem(liActive); + + if (liActive) liActive.firstChild.focus(); + + if (updateScroll) that.$menuInner[0].scrollTop = offset; + + $this.trigger('focus'); + } + } + + // Select focused option if "Enter", "Spacebar" or "Tab" (when selectOnTab is true) are pressed inside the menu. + if ( + isActive && + ( + (e.which === keyCodes.SPACE && !that.selectpicker.keydown.keyHistory) || + e.which === keyCodes.ENTER || + (e.which === keyCodes.TAB && that.options.selectOnTab) + ) + ) { + if (e.which !== keyCodes.SPACE) e.preventDefault(); + + if (!that.options.liveSearch || e.which !== keyCodes.SPACE) { + that.$menuInner.find('.active a').trigger('click', true); // retain active class + $this.trigger('focus'); + + if (!that.options.liveSearch) { + // Prevent screen from scrolling if the user hits the spacebar + e.preventDefault(); + // Fixes spacebar selection of dropdown items in FF & IE + $(document).data('spaceSelect', true); + } + } + } + }, + + mobile: function () { + // ensure mobile is set to true if mobile function is called after init + this.options.mobile = true; + this.$element[0].classList.add('mobile-device'); + }, + + refresh: function () { + // update options if data attributes have been changed + var config = $.extend({}, this.options, this.$element.data()); + this.options = config; + + this.checkDisabled(); + this.buildData(); + this.setStyle(); + this.render(); + this.buildList(); + this.setWidth(); + + this.setSize(true); + + this.$element.trigger('refreshed' + EVENT_KEY); + }, + + hide: function () { + this.$newElement.hide(); + }, + + show: function () { + this.$newElement.show(); + }, + + remove: function () { + this.$newElement.remove(); + this.$element.remove(); + }, + + destroy: function () { + this.$newElement.before(this.$element).remove(); + + if (this.$bsContainer) { + this.$bsContainer.remove(); + } else { + this.$menu.remove(); + } + + if (this.selectpicker.view.titleOption && this.selectpicker.view.titleOption.parentNode) { + this.selectpicker.view.titleOption.parentNode.removeChild(this.selectpicker.view.titleOption); + } + + this.$element + .off(EVENT_KEY) + .removeData('selectpicker') + .removeClass('bs-select-hidden selectpicker'); + + $(window).off(EVENT_KEY + '.' + this.selectId); + } + }; + + // SELECTPICKER PLUGIN DEFINITION + // ============================== + function Plugin (option) { + // get the args of the outer function.. + var args = arguments; + // The arguments of the function are explicitly re-defined from the argument list, because the shift causes them + // to get lost/corrupted in android 2.3 and IE9 #715 #775 + var _option = option; + + [].shift.apply(args); + + // if the version was not set successfully + if (!version.success) { + // try to retreive it again + try { + version.full = ($.fn.dropdown.Constructor.VERSION || '').split(' ')[0].split('.'); + } catch (err) { + // fall back to use BootstrapVersion if set + if (Selectpicker.BootstrapVersion) { + version.full = Selectpicker.BootstrapVersion.split(' ')[0].split('.'); + } else { + version.full = [version.major, '0', '0']; + + console.warn( + 'There was an issue retrieving Bootstrap\'s version. ' + + 'Ensure Bootstrap is being loaded before bootstrap-select and there is no namespace collision. ' + + 'If loading Bootstrap asynchronously, the version may need to be manually specified via $.fn.selectpicker.Constructor.BootstrapVersion.', + err + ); + } + } + + version.major = version.full[0]; + version.success = true; + } + + if (version.major === '4') { + // some defaults need to be changed if using Bootstrap 4 + // check to see if they have already been manually changed before forcing them to update + var toUpdate = []; + + if (Selectpicker.DEFAULTS.style === classNames.BUTTONCLASS) toUpdate.push({ name: 'style', className: 'BUTTONCLASS' }); + if (Selectpicker.DEFAULTS.iconBase === classNames.ICONBASE) toUpdate.push({ name: 'iconBase', className: 'ICONBASE' }); + if (Selectpicker.DEFAULTS.tickIcon === classNames.TICKICON) toUpdate.push({ name: 'tickIcon', className: 'TICKICON' }); + + classNames.DIVIDER = 'dropdown-divider'; + classNames.SHOW = 'show'; + classNames.BUTTONCLASS = 'btn-light'; + classNames.POPOVERHEADER = 'popover-header'; + classNames.ICONBASE = ''; + classNames.TICKICON = 'bs-ok-default'; + + for (var i = 0; i < toUpdate.length; i++) { + var option = toUpdate[i]; + Selectpicker.DEFAULTS[option.name] = classNames[option.className]; + } + } + + var value; + var chain = this.each(function () { + var $this = $(this); + if ($this.is('select')) { + var data = $this.data('selectpicker'), + options = typeof _option == 'object' && _option; + + if (!data) { + var dataAttributes = $this.data(); + + for (var dataAttr in dataAttributes) { + if (Object.prototype.hasOwnProperty.call(dataAttributes, dataAttr) && $.inArray(dataAttr, DISALLOWED_ATTRIBUTES) !== -1) { + delete dataAttributes[dataAttr]; + } + } + + var config = $.extend({}, Selectpicker.DEFAULTS, $.fn.selectpicker.defaults || {}, dataAttributes, options); + config.template = $.extend({}, Selectpicker.DEFAULTS.template, ($.fn.selectpicker.defaults ? $.fn.selectpicker.defaults.template : {}), dataAttributes.template, options.template); + $this.data('selectpicker', (data = new Selectpicker(this, config))); + } else if (options) { + for (var i in options) { + if (Object.prototype.hasOwnProperty.call(options, i)) { + data.options[i] = options[i]; + } + } + } + + if (typeof _option == 'string') { + if (data[_option] instanceof Function) { + value = data[_option].apply(data, args); + } else { + value = data.options[_option]; + } + } + } + }); + + if (typeof value !== 'undefined') { + // noinspection JSUnusedAssignment + return value; + } else { + return chain; + } + } + + var old = $.fn.selectpicker; + $.fn.selectpicker = Plugin; + $.fn.selectpicker.Constructor = Selectpicker; + + // SELECTPICKER NO CONFLICT + // ======================== + $.fn.selectpicker.noConflict = function () { + $.fn.selectpicker = old; + return this; + }; + + // get Bootstrap's keydown event handler for either Bootstrap 4 or Bootstrap 3 + function keydownHandler () { + if ($.fn.dropdown) { + // wait to define until function is called in case Bootstrap isn't loaded yet + var bootstrapKeydown = $.fn.dropdown.Constructor._dataApiKeydownHandler || $.fn.dropdown.Constructor.prototype.keydown; + return bootstrapKeydown.apply(this, arguments); + } + } + + $(document) + .off('keydown.bs.dropdown.data-api') + .on('keydown.bs.dropdown.data-api', ':not(.bootstrap-select) > [data-toggle="dropdown"]', keydownHandler) + .on('keydown.bs.dropdown.data-api', ':not(.bootstrap-select) > .dropdown-menu', keydownHandler) + .on('keydown' + EVENT_KEY, '.bootstrap-select [data-toggle="dropdown"], .bootstrap-select [role="listbox"], .bootstrap-select .bs-searchbox input', Selectpicker.prototype.keydown) + .on('focusin.modal', '.bootstrap-select [data-toggle="dropdown"], .bootstrap-select [role="listbox"], .bootstrap-select .bs-searchbox input', function (e) { + e.stopPropagation(); + }); + + // SELECTPICKER DATA-API + // ===================== + $(window).on('load' + EVENT_KEY + '.data-api', function () { + $('.selectpicker').each(function () { + var $selectpicker = $(this); + Plugin.call($selectpicker, $selectpicker.data()); + }) + }); +})(jQuery); + + +})); diff --git a/alive-admin/src/main/resources/static/ajax/libs/bootstrap-select/bootstrap-select.min.css b/alive-admin/src/main/resources/static/ajax/libs/bootstrap-select/bootstrap-select.min.css new file mode 100644 index 0000000..8d0f049 --- /dev/null +++ b/alive-admin/src/main/resources/static/ajax/libs/bootstrap-select/bootstrap-select.min.css @@ -0,0 +1,6 @@ +/*! + * Bootstrap-select v1.13.18 (https://developer.snapappointments.com/bootstrap-select) + * + * Copyright 2012-2020 SnapAppointments, LLC + * Licensed under MIT (https://github.com/snapappointments/bootstrap-select/blob/master/LICENSE) + */@-webkit-keyframes bs-notify-fadeOut{0%{opacity:.9}100%{opacity:0}}@-o-keyframes bs-notify-fadeOut{0%{opacity:.9}100%{opacity:0}}@keyframes bs-notify-fadeOut{0%{opacity:.9}100%{opacity:0}}.bootstrap-select>select.bs-select-hidden,select.bs-select-hidden,select.selectpicker{display:none!important}.bootstrap-select{width:220px\0;vertical-align:middle}.bootstrap-select>.dropdown-toggle{position:relative;width:100%;text-align:right;white-space:nowrap;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}.bootstrap-select>.dropdown-toggle:after{margin-top:-1px}.bootstrap-select>.dropdown-toggle.bs-placeholder,.bootstrap-select>.dropdown-toggle.bs-placeholder:active,.bootstrap-select>.dropdown-toggle.bs-placeholder:focus,.bootstrap-select>.dropdown-toggle.bs-placeholder:hover{color:#999}.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-danger,.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-danger:active,.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-danger:focus,.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-danger:hover,.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-dark,.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-dark:active,.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-dark:focus,.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-dark:hover,.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-info,.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-info:active,.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-info:focus,.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-info:hover,.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-primary,.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-primary:active,.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-primary:focus,.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-primary:hover,.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-secondary,.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-secondary:active,.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-secondary:focus,.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-secondary:hover,.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-success,.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-success:active,.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-success:focus,.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-success:hover{color:rgba(255,255,255,.5)}.bootstrap-select>select{position:absolute!important;bottom:0;left:50%;display:block!important;width:.5px!important;height:100%!important;padding:0!important;opacity:0!important;border:none;z-index:0!important}.bootstrap-select>select.mobile-device{top:0;left:0;display:block!important;width:100%!important;z-index:2!important}.bootstrap-select.is-invalid .dropdown-toggle,.error .bootstrap-select .dropdown-toggle,.has-error .bootstrap-select .dropdown-toggle,.was-validated .bootstrap-select select:invalid+.dropdown-toggle{border-color:#b94a48}.bootstrap-select.is-valid .dropdown-toggle,.was-validated .bootstrap-select select:valid+.dropdown-toggle{border-color:#28a745}.bootstrap-select.fit-width{width:auto!important}.bootstrap-select:not([class*=col-]):not([class*=form-control]):not(.input-group-btn){width:220px}.bootstrap-select .dropdown-toggle:focus,.bootstrap-select>select.mobile-device:focus+.dropdown-toggle{outline:thin dotted #333!important;outline:5px auto -webkit-focus-ring-color!important;outline-offset:-2px}.bootstrap-select.form-control{margin-bottom:0;padding:0;border:none;height:auto}:not(.input-group)>.bootstrap-select.form-control:not([class*=col-]){width:100%}.bootstrap-select.form-control.input-group-btn{float:none;z-index:auto}.form-inline .bootstrap-select,.form-inline .bootstrap-select.form-control:not([class*=col-]){width:auto}.bootstrap-select:not(.input-group-btn),.bootstrap-select[class*=col-]{float:none;display:inline-block;margin-left:0}.bootstrap-select.dropdown-menu-right,.bootstrap-select[class*=col-].dropdown-menu-right,.row .bootstrap-select[class*=col-].dropdown-menu-right{float:right}.form-group .bootstrap-select,.form-horizontal .bootstrap-select,.form-inline .bootstrap-select{margin-bottom:0}.form-group-lg .bootstrap-select.form-control,.form-group-sm .bootstrap-select.form-control{padding:0}.form-group-lg .bootstrap-select.form-control .dropdown-toggle,.form-group-sm .bootstrap-select.form-control .dropdown-toggle{height:100%;font-size:inherit;line-height:inherit;border-radius:inherit}.bootstrap-select.form-control-lg .dropdown-toggle,.bootstrap-select.form-control-sm .dropdown-toggle{font-size:inherit;line-height:inherit;border-radius:inherit}.bootstrap-select.form-control-sm .dropdown-toggle{padding:.25rem .5rem}.bootstrap-select.form-control-lg .dropdown-toggle{padding:.5rem 1rem}.form-inline .bootstrap-select .form-control{width:100%}.bootstrap-select.disabled,.bootstrap-select>.disabled{cursor:not-allowed}.bootstrap-select.disabled:focus,.bootstrap-select>.disabled:focus{outline:0!important}.bootstrap-select.bs-container{position:absolute;top:0;left:0;height:0!important;padding:0!important}.bootstrap-select.bs-container .dropdown-menu{z-index:1060}.bootstrap-select .dropdown-toggle .filter-option{position:static;top:0;left:0;float:left;height:100%;width:100%;text-align:left;overflow:hidden;-webkit-box-flex:0;-webkit-flex:0 1 auto;-ms-flex:0 1 auto;flex:0 1 auto}.bs3.bootstrap-select .dropdown-toggle .filter-option{padding-right:inherit}.input-group .bs3-has-addon.bootstrap-select .dropdown-toggle .filter-option{position:absolute;padding-top:inherit;padding-bottom:inherit;padding-left:inherit;float:none}.input-group .bs3-has-addon.bootstrap-select .dropdown-toggle .filter-option .filter-option-inner{padding-right:inherit}.bootstrap-select .dropdown-toggle .filter-option-inner-inner{overflow:hidden}.bootstrap-select .dropdown-toggle .filter-expand{width:0!important;float:left;opacity:0!important;overflow:hidden}.bootstrap-select .dropdown-toggle .caret{position:absolute;top:50%;right:12px;margin-top:-2px;vertical-align:middle}.input-group .bootstrap-select.form-control .dropdown-toggle{border-radius:inherit}.bootstrap-select[class*=col-] .dropdown-toggle{width:100%}.bootstrap-select .dropdown-menu{min-width:100%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.bootstrap-select .dropdown-menu>.inner:focus{outline:0!important}.bootstrap-select .dropdown-menu.inner{position:static;float:none;border:0;padding:0;margin:0;border-radius:0;-webkit-box-shadow:none;box-shadow:none}.bootstrap-select .dropdown-menu li{position:relative}.bootstrap-select .dropdown-menu li.active small{color:rgba(255,255,255,.5)!important}.bootstrap-select .dropdown-menu li.disabled a{cursor:not-allowed}.bootstrap-select .dropdown-menu li a{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bootstrap-select .dropdown-menu li a.opt{position:relative;padding-left:2.25em}.bootstrap-select .dropdown-menu li a span.check-mark{display:none}.bootstrap-select .dropdown-menu li a span.text{display:inline-block}.bootstrap-select .dropdown-menu li small{padding-left:.5em}.bootstrap-select .dropdown-menu .notify{position:absolute;bottom:5px;width:96%;margin:0 2%;min-height:26px;padding:3px 5px;background:#f5f5f5;border:1px solid #e3e3e3;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.05);box-shadow:inset 0 1px 1px rgba(0,0,0,.05);pointer-events:none;opacity:.9;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.bootstrap-select .dropdown-menu .notify.fadeOut{-webkit-animation:.3s linear 750ms forwards bs-notify-fadeOut;-o-animation:.3s linear 750ms forwards bs-notify-fadeOut;animation:.3s linear 750ms forwards bs-notify-fadeOut}.bootstrap-select .no-results{padding:3px;background:#f5f5f5;margin:0 5px;white-space:nowrap}.bootstrap-select.fit-width .dropdown-toggle .filter-option{position:static;display:inline;padding:0}.bootstrap-select.fit-width .dropdown-toggle .filter-option-inner,.bootstrap-select.fit-width .dropdown-toggle .filter-option-inner-inner{display:inline}.bootstrap-select.fit-width .dropdown-toggle .bs-caret:before{content:'\00a0'}.bootstrap-select.fit-width .dropdown-toggle .caret{position:static;top:auto;margin-top:-1px}.bootstrap-select.show-tick .dropdown-menu .selected span.check-mark{position:absolute;display:inline-block;right:15px;top:5px}.bootstrap-select.show-tick .dropdown-menu li a span.text{margin-right:34px}.bootstrap-select .bs-ok-default:after{content:'';display:block;width:.5em;height:1em;border-style:solid;border-width:0 .26em .26em 0;-webkit-transform-style:preserve-3d;transform-style:preserve-3d;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);-o-transform:rotate(45deg);transform:rotate(45deg)}.bootstrap-select.show-menu-arrow.open>.dropdown-toggle,.bootstrap-select.show-menu-arrow.show>.dropdown-toggle{z-index:1061}.bootstrap-select.show-menu-arrow .dropdown-toggle .filter-option:before{content:'';border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid rgba(204,204,204,.2);position:absolute;bottom:-4px;left:9px;display:none}.bootstrap-select.show-menu-arrow .dropdown-toggle .filter-option:after{content:'';border-left:6px solid transparent;border-right:6px solid transparent;border-bottom:6px solid #fff;position:absolute;bottom:-4px;left:10px;display:none}.bootstrap-select.show-menu-arrow.dropup .dropdown-toggle .filter-option:before{bottom:auto;top:-4px;border-top:7px solid rgba(204,204,204,.2);border-bottom:0}.bootstrap-select.show-menu-arrow.dropup .dropdown-toggle .filter-option:after{bottom:auto;top:-4px;border-top:6px solid #fff;border-bottom:0}.bootstrap-select.show-menu-arrow.pull-right .dropdown-toggle .filter-option:before{right:12px;left:auto}.bootstrap-select.show-menu-arrow.pull-right .dropdown-toggle .filter-option:after{right:13px;left:auto}.bootstrap-select.show-menu-arrow.open>.dropdown-toggle .filter-option:after,.bootstrap-select.show-menu-arrow.open>.dropdown-toggle .filter-option:before,.bootstrap-select.show-menu-arrow.show>.dropdown-toggle .filter-option:after,.bootstrap-select.show-menu-arrow.show>.dropdown-toggle .filter-option:before{display:block}.bs-actionsbox,.bs-donebutton,.bs-searchbox{padding:4px 8px}.bs-actionsbox{width:100%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.bs-actionsbox .btn-group button{width:50%}.bs-donebutton{float:left;width:100%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.bs-donebutton .btn-group button{width:100%}.bs-searchbox+.bs-actionsbox{padding:0 8px 4px}.bs-searchbox .form-control{margin-bottom:0;width:100%;float:none} \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ajax/libs/bootstrap-select/bootstrap-select.min.js b/alive-admin/src/main/resources/static/ajax/libs/bootstrap-select/bootstrap-select.min.js new file mode 100644 index 0000000..46cf10e --- /dev/null +++ b/alive-admin/src/main/resources/static/ajax/libs/bootstrap-select/bootstrap-select.min.js @@ -0,0 +1,8 @@ +/*! + * Bootstrap-select v1.13.18 (https://developer.snapappointments.com/bootstrap-select) + * + * Copyright 2012-2020 SnapAppointments, LLC + * Licensed under MIT (https://github.com/snapappointments/bootstrap-select/blob/master/LICENSE) + */ + +!function(e,t){void 0===e&&void 0!==window&&(e=window),"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e)}):"object"==typeof module&&module.exports?module.exports=t(require("jquery")):t(e.jQuery)}(this,function(e){!function(P){"use strict";var d=["sanitize","whiteList","sanitizeFn"],r=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],e={"*":["class","dir","id","lang","role","tabindex","style",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},l=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,a=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i;function v(e,t){var i=e.nodeName.toLowerCase();if(-1!==P.inArray(i,t))return-1===P.inArray(i,r)||Boolean(e.nodeValue.match(l)||e.nodeValue.match(a));for(var s=P(t).filter(function(e,t){return t instanceof RegExp}),n=0,o=s.length;n]+>/g,"")),s&&(a=w(a)),a=a.toUpperCase(),o="contains"===i?0<=a.indexOf(t):a.startsWith(t)))break}return o}function N(e){return parseInt(e,10)||0}P.fn.triggerNative=function(e){var t,i=this[0];i.dispatchEvent?(u?t=new Event(e,{bubbles:!0}):(t=document.createEvent("Event")).initEvent(e,!0,!1),i.dispatchEvent(t)):i.fireEvent?((t=document.createEventObject()).eventType=e,i.fireEvent("on"+e,t)):this.trigger(e)};var f={"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"},m=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,g=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\u1ab0-\\u1aff\\u1dc0-\\u1dff]","g");function b(e){return f[e]}function w(e){return(e=e.toString())&&e.replace(m,b).replace(g,"")}var I,x,y,$,S=(I={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},x="(?:"+Object.keys(I).join("|")+")",y=RegExp(x),$=RegExp(x,"g"),function(e){return e=null==e?"":""+e,y.test(e)?e.replace($,E):e});function E(e){return I[e]}var C={32:" ",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",65:"A",66:"B",67:"C",68:"D",69:"E",70:"F",71:"G",72:"H",73:"I",74:"J",75:"K",76:"L",77:"M",78:"N",79:"O",80:"P",81:"Q",82:"R",83:"S",84:"T",85:"U",86:"V",87:"W",88:"X",89:"Y",90:"Z",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9"},A=27,L=13,D=32,H=9,B=38,R=40,M={success:!1,major:"3"};try{M.full=(P.fn.dropdown.Constructor.VERSION||"").split(" ")[0].split("."),M.major=M.full[0],M.success=!0}catch(e){}var U=0,j=".bs.select",V={DISABLED:"disabled",DIVIDER:"divider",SHOW:"open",DROPUP:"dropup",MENU:"dropdown-menu",MENURIGHT:"dropdown-menu-right",MENULEFT:"dropdown-menu-left",BUTTONCLASS:"btn-default",POPOVERHEADER:"popover-title",ICONBASE:"glyphicon",TICKICON:"glyphicon-ok"},F={MENU:"."+V.MENU},_={div:document.createElement("div"),span:document.createElement("span"),i:document.createElement("i"),subtext:document.createElement("small"),a:document.createElement("a"),li:document.createElement("li"),whitespace:document.createTextNode("\xa0"),fragment:document.createDocumentFragment()};_.noResults=_.li.cloneNode(!1),_.noResults.className="no-results",_.a.setAttribute("role","option"),_.a.className="dropdown-item",_.subtext.className="text-muted",_.text=_.span.cloneNode(!1),_.text.className="text",_.checkMark=_.span.cloneNode(!1);var G=new RegExp(B+"|"+R),q=new RegExp("^"+H+"$|"+A),K={li:function(e,t,i){var s=_.li.cloneNode(!1);return e&&(1===e.nodeType||11===e.nodeType?s.appendChild(e):s.innerHTML=e),void 0!==t&&""!==t&&(s.className=t),null!=i&&s.classList.add("optgroup-"+i),s},a:function(e,t,i){var s=_.a.cloneNode(!0);return e&&(11===e.nodeType?s.appendChild(e):s.insertAdjacentHTML("beforeend",e)),void 0!==t&&""!==t&&s.classList.add.apply(s.classList,t.split(/\s+/)),i&&s.setAttribute("style",i),s},text:function(e,t){var i,s,n=_.text.cloneNode(!1);if(e.content)n.innerHTML=e.content;else{if(n.textContent=e.text,e.icon){var o=_.whitespace.cloneNode(!1);(s=(!0===t?_.i:_.span).cloneNode(!1)).className=this.options.iconBase+" "+e.icon,_.fragment.appendChild(s),_.fragment.appendChild(o)}e.subtext&&((i=_.subtext.cloneNode(!1)).textContent=e.subtext,n.appendChild(i))}if(!0===t)for(;0'},maxOptions:!1,mobile:!1,selectOnTab:!1,dropdownAlignRight:!1,windowPadding:0,virtualScroll:600,display:!1,sanitize:!0,sanitizeFn:null,whiteList:e},Y.prototype={constructor:Y,init:function(){var i=this,e=this.$element.attr("id"),t=this.$element[0],s=t.form;U++,this.selectId="bs-select-"+U,t.classList.add("bs-select-hidden"),this.multiple=this.$element.prop("multiple"),this.autofocus=this.$element.prop("autofocus"),t.classList.contains("show-tick")&&(this.options.showTick=!0),this.$newElement=this.createDropdown(),this.buildData(),this.$element.after(this.$newElement).prependTo(this.$newElement),s&&null===t.form&&(s.id||(s.id="form-"+this.selectId),t.setAttribute("form",s.id)),this.$button=this.$newElement.children("button"),this.$menu=this.$newElement.children(F.MENU),this.$menuInner=this.$menu.children(".inner"),this.$searchbox=this.$menu.find("input"),t.classList.remove("bs-select-hidden"),!0===this.options.dropdownAlignRight&&this.$menu[0].classList.add(V.MENURIGHT),void 0!==e&&this.$button.attr("data-id",e),this.checkDisabled(),this.clickListener(),this.options.liveSearch?(this.liveSearchListener(),this.focusedParent=this.$searchbox[0]):this.focusedParent=this.$menuInner[0],this.setStyle(),this.render(),this.setWidth(),this.options.container?this.selectPosition():this.$element.on("hide"+j,function(){if(i.isVirtual()){var e=i.$menuInner[0],t=e.firstChild.cloneNode(!1);e.replaceChild(t,e.firstChild),e.scrollTop=0}}),this.$menu.data("this",this),this.$newElement.data("this",this),this.options.mobile&&this.mobile(),this.$newElement.on({"hide.bs.dropdown":function(e){i.$element.trigger("hide"+j,e)},"hidden.bs.dropdown":function(e){i.$element.trigger("hidden"+j,e)},"show.bs.dropdown":function(e){i.$element.trigger("show"+j,e)},"shown.bs.dropdown":function(e){i.$element.trigger("shown"+j,e)}}),t.hasAttribute("required")&&this.$element.on("invalid"+j,function(){i.$button[0].classList.add("bs-invalid"),i.$element.on("shown"+j+".invalid",function(){i.$element.val(i.$element.val()).off("shown"+j+".invalid")}).on("rendered"+j,function(){this.validity.valid&&i.$button[0].classList.remove("bs-invalid"),i.$element.off("rendered"+j)}),i.$button.on("blur"+j,function(){i.$element.trigger("focus").trigger("blur"),i.$button.off("blur"+j)})}),setTimeout(function(){i.buildList(),i.$element.trigger("loaded"+j)})},createDropdown:function(){var e=this.multiple||this.options.showTick?" show-tick":"",t=this.multiple?' aria-multiselectable="true"':"",i="",s=this.autofocus?" autofocus":"";M.major<4&&this.$element.parent().hasClass("input-group")&&(i=" input-group-btn");var n,o="",r="",l="",a="";return this.options.header&&(o='
    '+this.options.header+"
    "),this.options.liveSearch&&(r=''),this.multiple&&this.options.actionsBox&&(l='
    "),this.multiple&&this.options.doneButton&&(a='
    "),n='",P(n)},setPositionData:function(){this.selectpicker.view.canHighlight=[],this.selectpicker.view.size=0,this.selectpicker.view.firstHighlightIndex=!1;for(var e=0;e=this.options.virtualScroll||!0===this.options.virtualScroll},createView:function(N,e,t){var A,L,D=this,i=0,H=[];if(this.selectpicker.isSearching=N,this.selectpicker.current=N?this.selectpicker.search:this.selectpicker.main,this.setPositionData(),e)if(t)i=this.$menuInner[0].scrollTop;else if(!D.multiple){var s=D.$element[0],n=(s.options[s.selectedIndex]||{}).liIndex;if("number"==typeof n&&!1!==D.options.size){var o=D.selectpicker.main.data[n],r=o&&o.position;r&&(i=r-(D.sizeInfo.menuInnerHeight+D.sizeInfo.liHeight)/2)}}function l(e,t){var i,s,n,o,r,l,a,c,d=D.selectpicker.current.elements.length,h=[],p=!0,u=D.isVirtual();D.selectpicker.view.scrollTop=e,i=Math.ceil(D.sizeInfo.menuInnerHeight/D.sizeInfo.liHeight*1.5),s=Math.round(d/i)||1;for(var f=0;fd-1?0:D.selectpicker.current.data[d-1].position-D.selectpicker.current.data[D.selectpicker.view.position1-1].position,b.firstChild.style.marginTop=v+"px",b.firstChild.style.marginBottom=g+"px"):(b.firstChild.style.marginTop=0,b.firstChild.style.marginBottom=0),b.firstChild.appendChild(w),!0===u&&D.sizeInfo.hasScrollBar){var C=b.firstChild.offsetWidth;if(t&&CD.sizeInfo.selectWidth)b.firstChild.style.minWidth=D.sizeInfo.menuInnerInnerWidth+"px";else if(C>D.sizeInfo.menuInnerInnerWidth){D.$menu[0].style.minWidth=0;var O=b.firstChild.offsetWidth;O>D.sizeInfo.menuInnerInnerWidth&&(D.sizeInfo.menuInnerInnerWidth=O,b.firstChild.style.minWidth=D.sizeInfo.menuInnerInnerWidth+"px"),D.$menu[0].style.minWidth=""}}}if(D.prevActiveIndex=D.activeIndex,D.options.liveSearch){if(N&&t){var z,T=0;D.selectpicker.view.canHighlight[T]||(T=1+D.selectpicker.view.canHighlight.slice(1).indexOf(!0)),z=D.selectpicker.view.visibleElements[T],D.defocusItem(D.selectpicker.view.currentActive),D.activeIndex=(D.selectpicker.current.data[T]||{}).index,D.focusItem(z)}}else D.$menuInner.trigger("focus")}l(i,!0),this.$menuInner.off("scroll.createView").on("scroll.createView",function(e,t){D.noScroll||l(this.scrollTop,t),D.noScroll=!1}),P(window).off("resize"+j+"."+this.selectId+".createView").on("resize"+j+"."+this.selectId+".createView",function(){D.$newElement.hasClass(V.SHOW)&&l(D.$menuInner[0].scrollTop)})},focusItem:function(e,t,i){if(e){t=t||this.selectpicker.main.data[this.activeIndex];var s=e.firstChild;s&&(s.setAttribute("aria-setsize",this.selectpicker.view.size),s.setAttribute("aria-posinset",t.posinset),!0!==i&&(this.focusedParent.setAttribute("aria-activedescendant",s.id),e.classList.add("active"),s.classList.add("active")))}},defocusItem:function(e){e&&(e.classList.remove("active"),e.firstChild&&e.firstChild.classList.remove("active"))},setPlaceholder:function(){var e=this,t=!1;if(this.options.title&&!this.multiple){this.selectpicker.view.titleOption||(this.selectpicker.view.titleOption=document.createElement("option")),t=!0;var i=this.$element[0],s=!1,n=!this.selectpicker.view.titleOption.parentNode,o=i.selectedIndex,r=i.options[o],l=window.performance&&window.performance.getEntriesByType("navigation"),a=l&&l.length?"back_forward"!==l[0].type:2!==window.performance.navigation.type;n&&(this.selectpicker.view.titleOption.className="bs-title-option",this.selectpicker.view.titleOption.value="",s=!r||0===o&&!1===r.defaultSelected&&void 0===this.$element.data("selected")),!n&&0===this.selectpicker.view.titleOption.index||i.insertBefore(this.selectpicker.view.titleOption,i.firstChild),s&&a?i.selectedIndex=0:"complete"!==document.readyState&&window.addEventListener("pageshow",function(){e.selectpicker.view.displayedValue!==i.value&&e.render()})}return t},buildData:function(){var p=':not([hidden]):not([data-hidden="true"])',u=[],f=0,m=this.setPlaceholder()?1:0;this.options.hideDisabled&&(p+=":not(:disabled)");var e=this.$element[0].querySelectorAll("select > *"+p);function v(e){var t=u[u.length-1];t&&"divider"===t.type&&(t.optID||e.optID)||((e=e||{}).type="divider",u.push(e))}function g(e,t){if((t=t||{}).divider="true"===e.getAttribute("data-divider"),t.divider)v({optID:t.optID});else{var i=u.length,s=e.style.cssText,n=s?S(s):"",o=(e.className||"")+(t.optgroupClass||"");t.optID&&(o="opt "+o),t.optionClass=o.trim(),t.inlineStyle=n,t.text=e.textContent,t.content=e.getAttribute("data-content"),t.tokens=e.getAttribute("data-tokens"),t.subtext=e.getAttribute("data-subtext"),t.icon=e.getAttribute("data-icon"),e.liIndex=i,t.display=t.content||t.text,t.type="option",t.index=i,t.option=e,t.selected=!!e.selected,t.disabled=t.disabled||!!e.disabled,u.push(t)}}function t(e,t){var i=t[e],s=!(e-1 li")},render:function(){var e,t=this,i=this.$element[0],s=this.setPlaceholder()&&0===i.selectedIndex,n=O(i,this.options.hideDisabled),o=n.length,r=this.$button[0],l=r.querySelector(".filter-option-inner-inner"),a=document.createTextNode(this.options.multipleSeparator),c=_.fragment.cloneNode(!1),d=!1;if(r.classList.toggle("bs-placeholder",t.multiple?!o:!z(i,n)),t.multiple||1!==n.length||(t.selectpicker.view.displayedValue=z(i,n)),"static"===this.options.selectedTextFormat)c=K.text.call(this,{text:this.options.title},!0);else if(!1===(this.multiple&&-1!==this.options.selectedTextFormat.indexOf("count")&&1")).length&&o>e[1]||1===e.length&&2<=o))){if(!s){for(var h=0;h option"+m+", optgroup"+m+" option"+m).length,g="function"==typeof this.options.countSelectedText?this.options.countSelectedText(o,v):this.options.countSelectedText;c=K.text.call(this,{text:g.replace("{0}",o.toString()).replace("{1}",v.toString())},!0)}if(null==this.options.title&&(this.options.title=this.$element.attr("title")),c.childNodes.length||(c=K.text.call(this,{text:void 0!==this.options.title?this.options.title:this.options.noneSelectedText},!0)),r.title=c.textContent.replace(/<[^>]*>?/g,"").trim(),this.options.sanitize&&d&&W([c],t.options.whiteList,t.options.sanitizeFn),l.innerHTML="",l.appendChild(c),M.major<4&&this.$newElement[0].classList.contains("bs3-has-addon")){var b=r.querySelector(".filter-expand"),w=l.cloneNode(!0);w.className="filter-expand",b?r.replaceChild(w,b):r.appendChild(w)}this.$element.trigger("rendered"+j)},setStyle:function(e,t){var i,s=this.$button[0],n=this.$newElement[0],o=this.options.style.trim();this.$element.attr("class")&&this.$newElement.addClass(this.$element.attr("class").replace(/selectpicker|mobile-device|bs-select-hidden|validate\[.*\]/gi,"")),M.major<4&&(n.classList.add("bs3"),n.parentNode.classList&&n.parentNode.classList.contains("input-group")&&(n.previousElementSibling||n.nextElementSibling)&&(n.previousElementSibling||n.nextElementSibling).classList.contains("input-group-addon")&&n.classList.add("bs3-has-addon")),i=e?e.trim():o,"add"==t?i&&s.classList.add.apply(s.classList,i.split(" ")):"remove"==t?i&&s.classList.remove.apply(s.classList,i.split(" ")):(o&&s.classList.remove.apply(s.classList,o.split(" ")),i&&s.classList.add.apply(s.classList,i.split(" ")))},liHeight:function(e){if(e||!1!==this.options.size&&!Object.keys(this.sizeInfo).length){var t,i=_.div.cloneNode(!1),s=_.div.cloneNode(!1),n=_.div.cloneNode(!1),o=document.createElement("ul"),r=_.li.cloneNode(!1),l=_.li.cloneNode(!1),a=_.a.cloneNode(!1),c=_.span.cloneNode(!1),d=this.options.header&&0this.sizeInfo.menuExtras.vert&&l+this.sizeInfo.menuExtras.vert+50>this.sizeInfo.selectOffsetBot,!0===this.selectpicker.isSearching&&(a=this.selectpicker.dropup),this.$newElement.toggleClass(V.DROPUP,a),this.selectpicker.dropup=a),"auto"===this.options.size)n=3this.options.size){for(var b=0;bthis.sizeInfo.menuInnerHeight&&(this.sizeInfo.hasScrollBar=!0,this.sizeInfo.totalMenuWidth=this.sizeInfo.menuWidth+this.sizeInfo.scrollBarWidth),"auto"===this.options.dropdownAlignRight&&this.$menu.toggleClass(V.MENURIGHT,this.sizeInfo.selectOffsetLeft>this.sizeInfo.selectOffsetRight&&this.sizeInfo.selectOffsetRightthis.options.size&&i.off("resize"+j+"."+this.selectId+".setMenuSize scroll"+j+"."+this.selectId+".setMenuSize")}this.createView(!1,!0,e)},setWidth:function(){var i=this;"auto"===this.options.width?requestAnimationFrame(function(){i.$menu.css("min-width","0"),i.$element.on("loaded"+j,function(){i.liHeight(),i.setMenuSize();var e=i.$newElement.clone().appendTo("body"),t=e.css("width","auto").children("button").outerWidth();e.remove(),i.sizeInfo.selectWidth=Math.max(i.sizeInfo.totalMenuWidth,t),i.$newElement.css("width",i.sizeInfo.selectWidth+"px")})}):"fit"===this.options.width?(this.$menu.css("min-width",""),this.$newElement.css("width","").addClass("fit-width")):this.options.width?(this.$menu.css("min-width",""),this.$newElement.css("width",this.options.width)):(this.$menu.css("min-width",""),this.$newElement.css("width","")),this.$newElement.hasClass("fit-width")&&"fit"!==this.options.width&&this.$newElement[0].classList.remove("fit-width")},selectPosition:function(){this.$bsContainer=P('
    ');function e(e){var t={},i=r.options.display||!!P.fn.dropdown.Constructor.Default&&P.fn.dropdown.Constructor.Default.display;r.$bsContainer.addClass(e.attr("class").replace(/form-control|fit-width/gi,"")).toggleClass(V.DROPUP,e.hasClass(V.DROPUP)),s=e.offset(),l.is("body")?n={top:0,left:0}:((n=l.offset()).top+=parseInt(l.css("borderTopWidth"))-l.scrollTop(),n.left+=parseInt(l.css("borderLeftWidth"))-l.scrollLeft()),o=e.hasClass(V.DROPUP)?0:e[0].offsetHeight,(M.major<4||"static"===i)&&(t.top=s.top-n.top+o,t.left=s.left-n.left),t.width=e[0].offsetWidth,r.$bsContainer.css(t)}var s,n,o,r=this,l=P(this.options.container);this.$button.on("click.bs.dropdown.data-api",function(){r.isDisabled()||(e(r.$newElement),r.$bsContainer.appendTo(r.options.container).toggleClass(V.SHOW,!r.$button.hasClass(V.SHOW)).append(r.$menu))}),P(window).off("resize"+j+"."+this.selectId+" scroll"+j+"."+this.selectId).on("resize"+j+"."+this.selectId+" scroll"+j+"."+this.selectId,function(){r.$newElement.hasClass(V.SHOW)&&e(r.$newElement)}),this.$element.on("hide"+j,function(){r.$menu.data("height",r.$menu.height()),r.$bsContainer.detach()})},setOptionStatus:function(e){var t=this;if(t.noScroll=!1,t.selectpicker.view.visibleElements&&t.selectpicker.view.visibleElements.length)for(var i=0;i
    ');y[2]&&($=$.replace("{var}",y[2][1"+$+"
    ")),d=!1,C.$element.trigger("maxReached"+j)),g&&w&&(E.append(P("
    "+S+"
    ")),d=!1,C.$element.trigger("maxReachedGrp"+j)),setTimeout(function(){C.setSelected(r,!1)},10),E[0].classList.add("fadeOut"),setTimeout(function(){E.remove()},1050)}}}else c&&(c.selected=!1),h.selected=!0,C.setSelected(r,!0);!C.multiple||C.multiple&&1===C.options.maxOptions?C.$button.trigger("focus"):C.options.liveSearch&&C.$searchbox.trigger("focus"),d&&(!C.multiple&&a===s.selectedIndex||(T=[h.index,p.prop("selected"),l],C.$element.triggerNative("change")))}}),this.$menu.on("click","li."+V.DISABLED+" a, ."+V.POPOVERHEADER+", ."+V.POPOVERHEADER+" :not(.close)",function(e){e.currentTarget==this&&(e.preventDefault(),e.stopPropagation(),C.options.liveSearch&&!P(e.target).hasClass("close")?C.$searchbox.trigger("focus"):C.$button.trigger("focus"))}),this.$menuInner.on("click",".divider, .dropdown-header",function(e){e.preventDefault(),e.stopPropagation(),C.options.liveSearch?C.$searchbox.trigger("focus"):C.$button.trigger("focus")}),this.$menu.on("click","."+V.POPOVERHEADER+" .close",function(){C.$button.trigger("click")}),this.$searchbox.on("click",function(e){e.stopPropagation()}),this.$menu.on("click",".actions-btn",function(e){C.options.liveSearch?C.$searchbox.trigger("focus"):C.$button.trigger("focus"),e.preventDefault(),e.stopPropagation(),P(this).hasClass("bs-select-all")?C.selectAll():C.deselectAll()}),this.$button.on("focus"+j,function(e){var t=C.$element[0].getAttribute("tabindex");void 0!==t&&e.originalEvent&&e.originalEvent.isTrusted&&(this.setAttribute("tabindex",t),C.$element[0].setAttribute("tabindex",-1),C.selectpicker.view.tabindex=t)}).on("blur"+j,function(e){void 0!==C.selectpicker.view.tabindex&&e.originalEvent&&e.originalEvent.isTrusted&&(C.$element[0].setAttribute("tabindex",C.selectpicker.view.tabindex),this.setAttribute("tabindex",-1),C.selectpicker.view.tabindex=void 0)}),this.$element.on("change"+j,function(){C.render(),C.$element.trigger("changed"+j,T),T=null}).on("focus"+j,function(){C.options.mobile||C.$button[0].focus()})},liveSearchListener:function(){var u=this;this.$button.on("click.bs.dropdown.data-api",function(){u.$searchbox.val()&&(u.$searchbox.val(""),u.selectpicker.search.previousValue=void 0)}),this.$searchbox.on("click.bs.dropdown.data-api focus.bs.dropdown.data-api touchend.bs.dropdown.data-api",function(e){e.stopPropagation()}),this.$searchbox.on("input propertychange",function(){var e=u.$searchbox[0].value;if(u.selectpicker.search.elements=[],u.selectpicker.search.data=[],e){var t=[],i=e.toUpperCase(),s={},n=[],o=u._searchStyle(),r=u.options.liveSearchNormalize;r&&(i=w(i));for(var l=0;l=a.selectpicker.view.canHighlight.length&&(t=a.selectpicker.view.firstHighlightIndex),a.selectpicker.view.canHighlight[t+f]||(t=t+1+a.selectpicker.view.canHighlight.slice(t+f+1).indexOf(!0))),e.preventDefault();var m=f+t;e.which===B?0===f&&t===c.length-1?(a.$menuInner[0].scrollTop=a.$menuInner[0].scrollHeight,m=a.selectpicker.current.elements.length-1):d=(o=(n=a.selectpicker.current.data[m]).position-n.height)u+a.sizeInfo.menuInnerHeight),s=a.selectpicker.main.elements[v],a.activeIndex=b[x],a.focusItem(s),s&&s.firstChild.focus(),d&&(a.$menuInner[0].scrollTop=o),r.trigger("focus")}}i&&(e.which===D&&!a.selectpicker.keydown.keyHistory||e.which===L||e.which===H&&a.options.selectOnTab)&&(e.which!==D&&e.preventDefault(),a.options.liveSearch&&e.which===D||(a.$menuInner.find(".active a").trigger("click",!0),r.trigger("focus"),a.options.liveSearch||(e.preventDefault(),P(document).data("spaceSelect",!0))))}},mobile:function(){this.options.mobile=!0,this.$element[0].classList.add("mobile-device")},refresh:function(){var e=P.extend({},this.options,this.$element.data());this.options=e,this.checkDisabled(),this.buildData(),this.setStyle(),this.render(),this.buildList(),this.setWidth(),this.setSize(!0),this.$element.trigger("refreshed"+j)},hide:function(){this.$newElement.hide()},show:function(){this.$newElement.show()},remove:function(){this.$newElement.remove(),this.$element.remove()},destroy:function(){this.$newElement.before(this.$element).remove(),this.$bsContainer?this.$bsContainer.remove():this.$menu.remove(),this.selectpicker.view.titleOption&&this.selectpicker.view.titleOption.parentNode&&this.selectpicker.view.titleOption.parentNode.removeChild(this.selectpicker.view.titleOption),this.$element.off(j).removeData("selectpicker").removeClass("bs-select-hidden selectpicker"),P(window).off(j+"."+this.selectId)}};var J=P.fn.selectpicker;function Q(){if(P.fn.dropdown)return(P.fn.dropdown.Constructor._dataApiKeydownHandler||P.fn.dropdown.Constructor.prototype.keydown).apply(this,arguments)}P.fn.selectpicker=Z,P.fn.selectpicker.Constructor=Y,P.fn.selectpicker.noConflict=function(){return P.fn.selectpicker=J,this},P(document).off("keydown.bs.dropdown.data-api").on("keydown.bs.dropdown.data-api",':not(.bootstrap-select) > [data-toggle="dropdown"]',Q).on("keydown.bs.dropdown.data-api",":not(.bootstrap-select) > .dropdown-menu",Q).on("keydown"+j,'.bootstrap-select [data-toggle="dropdown"], .bootstrap-select [role="listbox"], .bootstrap-select .bs-searchbox input',Y.prototype.keydown).on("focusin.modal",'.bootstrap-select [data-toggle="dropdown"], .bootstrap-select [role="listbox"], .bootstrap-select .bs-searchbox input',function(e){e.stopPropagation()}),P(window).on("load"+j+".data-api",function(){P(".selectpicker").each(function(){var e=P(this);Z.call(e,e.data())})})}(e)}); \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ajax/libs/bootstrap-table/bootstrap-table.min.css b/alive-admin/src/main/resources/static/ajax/libs/bootstrap-table/bootstrap-table.min.css new file mode 100644 index 0000000..7e150cf --- /dev/null +++ b/alive-admin/src/main/resources/static/ajax/libs/bootstrap-table/bootstrap-table.min.css @@ -0,0 +1,6 @@ +/** + * @author zhixin wen + * version: 1.19.1 + * https://github.com/wenzhixin/bootstrap-table/ + */ +.bootstrap-table .fixed-table-toolbar::after{content:"";display:block;clear:both}.bootstrap-table .fixed-table-toolbar .bs-bars,.bootstrap-table .fixed-table-toolbar .columns,.bootstrap-table .fixed-table-toolbar .search{position:relative;margin-top:10px;margin-bottom:10px}.bootstrap-table .fixed-table-toolbar .columns .btn-group>.btn-group{display:inline-block;margin-left:-1px!important}.bootstrap-table .fixed-table-toolbar .columns .btn-group>.btn-group>.btn{border-radius:0}.bootstrap-table .fixed-table-toolbar .columns .btn-group>.btn-group:first-child>.btn{border-top-left-radius:4px;border-bottom-left-radius:4px}.bootstrap-table .fixed-table-toolbar .columns .btn-group>.btn-group:last-child>.btn{border-top-right-radius:4px;border-bottom-right-radius:4px}.bootstrap-table .fixed-table-toolbar .columns .dropdown-menu{text-align:left;max-height:300px;overflow:auto;-ms-overflow-style:scrollbar;z-index:1001}.bootstrap-table .fixed-table-toolbar .columns label{display:block;padding:3px 20px;clear:both;font-weight:400;line-height:1.428571429}.bootstrap-table .fixed-table-toolbar .columns-left{margin-right:5px}.bootstrap-table .fixed-table-toolbar .columns-right{margin-left:5px}.bootstrap-table .fixed-table-toolbar .pull-right .dropdown-menu{right:0;left:auto}.bootstrap-table .fixed-table-container{position:relative;clear:both}.bootstrap-table .fixed-table-container .table{width:100%;margin-bottom:0!important}.bootstrap-table .fixed-table-container .table td,.bootstrap-table .fixed-table-container .table th{vertical-align:middle;box-sizing:border-box}.bootstrap-table .fixed-table-container .table thead th{vertical-align:bottom;padding:0;margin:0}.bootstrap-table .fixed-table-container .table thead th:focus{outline:0 solid transparent}.bootstrap-table .fixed-table-container .table thead th.detail{width:30px}.bootstrap-table .fixed-table-container .table thead th .th-inner{padding:.75rem;vertical-align:bottom;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bootstrap-table .fixed-table-container .table thead th .sortable{cursor:pointer;background-position:right;background-repeat:no-repeat;padding-right:30px!important}.bootstrap-table .fixed-table-container .table thead th .both{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAQAAADYWf5HAAAAkElEQVQoz7X QMQ5AQBCF4dWQSJxC5wwax1Cq1e7BAdxD5SL+Tq/QCM1oNiJidwox0355mXnG/DrEtIQ6azioNZQxI0ykPhTQIwhCR+BmBYtlK7kLJYwWCcJA9M4qdrZrd8pPjZWPtOqdRQy320YSV17OatFC4euts6z39GYMKRPCTKY9UnPQ6P+GtMRfGtPnBCiqhAeJPmkqAAAAAElFTkSuQmCC")}.bootstrap-table .fixed-table-container .table thead th .asc{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAYAAAByUDbMAAAAZ0lEQVQ4y2NgGLKgquEuFxBPAGI2ahhWCsS/gDibUoO0gPgxEP8H4ttArEyuQYxAPBdqEAxPBImTY5gjEL9DM+wTENuQahAvEO9DMwiGdwAxOymGJQLxTyD+jgWDxCMZRsEoGAVoAADeemwtPcZI2wAAAABJRU5ErkJggg==")}.bootstrap-table .fixed-table-container .table thead th .desc{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAYAAAByUDbMAAAAZUlEQVQ4y2NgGAWjYBSggaqGu5FA/BOIv2PBIPFEUgxjB+IdQPwfC94HxLykus4GiD+hGfQOiB3J8SojEE9EM2wuSJzcsFMG4ttQgx4DsRalkZENxL+AuJQaMcsGxBOAmGvopk8AVz1sLZgg0bsAAAAASUVORK5CYII= ")}.bootstrap-table .fixed-table-container .table tbody tr.selected td{background-color:rgba(0,0,0,.075)}.bootstrap-table .fixed-table-container .table tbody tr.no-records-found td{text-align:center}.bootstrap-table .fixed-table-container .table tbody tr .card-view{display:flex}.bootstrap-table .fixed-table-container .table tbody tr .card-view .card-view-title{font-weight:700;display:inline-block;min-width:30%;width:auto!important;text-align:left!important}.bootstrap-table .fixed-table-container .table tbody tr .card-view .card-view-value{width:100%!important}.bootstrap-table .fixed-table-container .table .bs-checkbox{text-align:center}.bootstrap-table .fixed-table-container .table .bs-checkbox label{margin-bottom:0}.bootstrap-table .fixed-table-container .table .bs-checkbox label input[type=checkbox],.bootstrap-table .fixed-table-container .table .bs-checkbox label input[type=radio]{margin:0 auto!important}.bootstrap-table .fixed-table-container .table.table-sm .th-inner{padding:.3rem}.bootstrap-table .fixed-table-container.fixed-height:not(.has-footer){border-bottom:1px solid #dee2e6}.bootstrap-table .fixed-table-container.fixed-height.has-card-view{border-top:1px solid #dee2e6;border-bottom:1px solid #dee2e6}.bootstrap-table .fixed-table-container.fixed-height .fixed-table-border{border-left:1px solid #dee2e6;border-right:1px solid #dee2e6}.bootstrap-table .fixed-table-container.fixed-height .table thead th{border-bottom:1px solid #dee2e6}.bootstrap-table .fixed-table-container.fixed-height .table-dark thead th{border-bottom:1px solid #32383e}.bootstrap-table .fixed-table-container .fixed-table-header{overflow:hidden}.bootstrap-table .fixed-table-container .fixed-table-body{overflow-x:auto;overflow-y:auto;height:100%}.bootstrap-table .fixed-table-container .fixed-table-body .fixed-table-loading{align-items:center;background:#fff;display:flex;justify-content:center;position:absolute;bottom:0;width:100%;max-width:100%;z-index:1000;transition:visibility 0s,opacity .15s ease-in-out;opacity:0;visibility:hidden}.bootstrap-table .fixed-table-container .fixed-table-body .fixed-table-loading.open{visibility:visible;opacity:1}.bootstrap-table .fixed-table-container .fixed-table-body .fixed-table-loading .loading-wrap{align-items:baseline;display:flex;justify-content:center}.bootstrap-table .fixed-table-container .fixed-table-body .fixed-table-loading .loading-wrap .loading-text{margin-right:6px}.bootstrap-table .fixed-table-container .fixed-table-body .fixed-table-loading .loading-wrap .animation-wrap{align-items:center;display:flex;justify-content:center}.bootstrap-table .fixed-table-container .fixed-table-body .fixed-table-loading .loading-wrap .animation-dot,.bootstrap-table .fixed-table-container .fixed-table-body .fixed-table-loading .loading-wrap .animation-wrap::after,.bootstrap-table .fixed-table-container .fixed-table-body .fixed-table-loading .loading-wrap .animation-wrap::before{content:"";animation-duration:1.5s;animation-iteration-count:infinite;animation-name:LOADING;background:#212529;border-radius:50%;display:block;height:5px;margin:0 4px;opacity:0;width:5px}.bootstrap-table .fixed-table-container .fixed-table-body .fixed-table-loading .loading-wrap .animation-dot{animation-delay:.3s}.bootstrap-table .fixed-table-container .fixed-table-body .fixed-table-loading .loading-wrap .animation-wrap::after{animation-delay:.6s}.bootstrap-table .fixed-table-container .fixed-table-body .fixed-table-loading.table-dark{background:#212529}.bootstrap-table .fixed-table-container .fixed-table-body .fixed-table-loading.table-dark .animation-dot,.bootstrap-table .fixed-table-container .fixed-table-body .fixed-table-loading.table-dark .animation-wrap::after,.bootstrap-table .fixed-table-container .fixed-table-body .fixed-table-loading.table-dark .animation-wrap::before{background:#fff}.bootstrap-table .fixed-table-container .fixed-table-footer{overflow:hidden}.bootstrap-table .fixed-table-pagination::after{content:"";display:block;clear:both}.bootstrap-table .fixed-table-pagination>.pagination,.bootstrap-table .fixed-table-pagination>.pagination-detail{margin-top:10px;margin-bottom:10px}.bootstrap-table .fixed-table-pagination>.pagination-detail .pagination-info{line-height:34px;margin-right:5px}.bootstrap-table .fixed-table-pagination>.pagination-detail .page-list{display:inline-block}.bootstrap-table .fixed-table-pagination>.pagination-detail .page-list .btn-group{position:relative;display:inline-block;vertical-align:middle}.bootstrap-table .fixed-table-pagination>.pagination-detail .page-list .btn-group .dropdown-menu{margin-bottom:0}.bootstrap-table .fixed-table-pagination>.pagination ul.pagination{margin:0}.bootstrap-table .fixed-table-pagination>.pagination ul.pagination li.page-intermediate a{color:#c8c8c8}.bootstrap-table .fixed-table-pagination>.pagination ul.pagination li.page-intermediate a::before{content:'\2B05'}.bootstrap-table .fixed-table-pagination>.pagination ul.pagination li.page-intermediate a::after{content:'\27A1'}.bootstrap-table .fixed-table-pagination>.pagination ul.pagination li.disabled a{pointer-events:none;cursor:default}.bootstrap-table.fullscreen{position:fixed;top:0;left:0;z-index:1050;width:100%!important;background:#fff;height:calc(100vh);overflow-y:scroll}.bootstrap-table.bootstrap4 .pagination-lg .page-link,.bootstrap-table.bootstrap5 .pagination-lg .page-link{padding:.5rem 1rem}.bootstrap-table.bootstrap5 .float-left{float:left}.bootstrap-table.bootstrap5 .float-right{float:right}div.fixed-table-scroll-inner{width:100%;height:200px}div.fixed-table-scroll-outer{top:0;left:0;visibility:hidden;width:200px;height:150px;overflow:hidden}@keyframes LOADING{0%{opacity:0}50%{opacity:1}to{opacity:0}} \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ajax/libs/bootstrap-table/bootstrap-table.min.js b/alive-admin/src/main/resources/static/ajax/libs/bootstrap-table/bootstrap-table.min.js new file mode 100644 index 0000000..ac557c8 --- /dev/null +++ b/alive-admin/src/main/resources/static/ajax/libs/bootstrap-table/bootstrap-table.min.js @@ -0,0 +1,6 @@ +/** + * @author zhixin wen + * version: 1.19.1 + * https://github.com/wenzhixin/bootstrap-table/ + */ +function getRememberRowIds(t,e){return $.isArray(t)?props=$.map(t,function(t){return t[e]}):props=[t[e]],props}function addRememberRow(t,e){var i=null==table.options.uniqueId?table.options.columns[1].field:table.options.uniqueId,n=getRememberRowIds(t,i);-1==$.inArray(e[i],n)&&(t[t.length]=e)}function removeRememberRow(t,e){var i=null==table.options.uniqueId?table.options.columns[1].field:table.options.uniqueId,n=getRememberRowIds(t,i),o=$.inArray(e[i],n);-1!=o&&t.splice(o,1)}!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],e):(t="undefined"!=typeof globalThis?globalThis:t||self,t.BootstrapTable=e(t.jQuery))}(this,function(t){function e(t){return t&&"object"==typeof t&&"default" in t?t:{"default":t}}function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function n(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function o(t,e){for(var i=0;it.length)&&(e=t.length);for(var i=0,n=Array(e);e>i;i++){n[i]=t[i]}return n}function p(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function g(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function v(t,e){var i;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(i=d(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,r=!1;return{s:function(){i=t[Symbol.iterator]()},n:function(){var t=i.next();return s=t.done,t},e:function(t){r=!0,a=t},f:function(){try{s||null==i["return"]||i["return"]()}finally{if(r){throw a}}}}}function b(t,e){return e={exports:{}},t(e,e.exports),e.exports}function m(t,e){return RegExp(t,e)}var y=e(t),w="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},S=function(t){return t&&t.Math==Math&&t},x=S("object"==typeof globalThis&&globalThis)||S("object"==typeof window&&window)||S("object"==typeof self&&self)||S("object"==typeof w&&w)||function(){return this}()||Function("return this")(),k=function(t){try{return !!t()}catch(e){return !0}},O=!k(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),T={}.propertyIsEnumerable,C=Object.getOwnPropertyDescriptor,P=C&&!T.call({1:2},1),I=P?function(t){var e=C(this,t);return !!e&&e.enumerable}:T,A={f:I},$=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},R={}.toString,E=function(t){return R.call(t).slice(8,-1)},j="".split,_=k(function(){return !Object("z").propertyIsEnumerable(0)})?function(t){return"String"==E(t)?j.call(t,""):Object(t)}:Object,N=function(t){if(void 0==t){throw TypeError("Can't call method on "+t)}return t},F=function(t){return _(N(t))},D=function(t){return"object"==typeof t?null!==t:"function"==typeof t},V=function(t,e){if(!D(t)){return t}var i,n;if(e&&"function"==typeof(i=t.toString)&&!D(n=i.call(t))){return n}if("function"==typeof(i=t.valueOf)&&!D(n=i.call(t))){return n}if(!e&&"function"==typeof(i=t.toString)&&!D(n=i.call(t))){return n}throw TypeError("Can't convert object to primitive value")},B={}.hasOwnProperty,L=function(t,e){return B.call(t,e)},H=x.document,M=D(H)&&D(H.createElement),U=function(t){return M?H.createElement(t):{}},q=!O&&!k(function(){return 7!=Object.defineProperty(U("div"),"a",{get:function(){return 7}}).a}),z=Object.getOwnPropertyDescriptor,W=O?z:function(t,e){if(t=F(t),e=V(e,!0),q){try{return z(t,e)}catch(i){}}return L(t,e)?$(!A.f.call(t,e),t[e]):void 0},G={f:W},K=function(t){if(!D(t)){throw TypeError(t+" is not an object")}return t},Y=Object.defineProperty,X=O?Y:function(t,e,i){if(K(t),e=V(e,!0),K(i),q){try{return Y(t,e,i)}catch(n){}}if("get" in i||"set" in i){throw TypeError("Accessors not supported")}return"value" in i&&(t[e]=i.value),t},J={f:X},Q=O?function(t,e,i){return J.f(t,e,$(1,i))}:function(t,e,i){return t[e]=i,t},Z=function(t,e){try{Q(x,t,e)}catch(i){x[t]=e}return e},tt="__core-js_shared__",et=x[tt]||Z(tt,{}),it=et,nt=Function.toString;"function"!=typeof it.inspectSource&&(it.inspectSource=function(t){return nt.call(t)});var ot,at,st,rt=it.inspectSource,lt=x.WeakMap,ct="function"==typeof lt&&/native code/.test(rt(lt)),ht=b(function(t){(t.exports=function(t,e){return it[t]||(it[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.10.1",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),ut=0,dt=Math.random(),ft=function(t){return"Symbol("+((void 0===t?"":t)+"")+")_"+(++ut+dt).toString(36)},pt=ht("keys"),gt=function(t){return pt[t]||(pt[t]=ft(t))},vt={},bt=x.WeakMap,mt=function(t){return st(t)?at(t):ot(t,{})},yt=function(t){return function(e){var i;if(!D(e)||(i=at(e)).type!==t){throw TypeError("Incompatible receiver, "+t+" required")}return i}};if(ct){var wt=it.state||(it.state=new bt),St=wt.get,xt=wt.has,kt=wt.set;ot=function(t,e){return e.facade=t,kt.call(wt,t,e),e},at=function(t){return St.call(wt,t)||{}},st=function(t){return xt.call(wt,t)}}else{var Ot=gt("state");vt[Ot]=!0,ot=function(t,e){return e.facade=t,Q(t,Ot,e),e},at=function(t){return L(t,Ot)?t[Ot]:{}},st=function(t){return L(t,Ot)}}var Tt={set:ot,get:at,has:st,enforce:mt,getterFor:yt},Ct=b(function(t){var e=Tt.get,i=Tt.enforce,n=(String+"").split("String");(t.exports=function(t,e,o,a){var s,r=a?!!a.unsafe:!1,l=a?!!a.enumerable:!1,c=a?!!a.noTargetGet:!1;return"function"==typeof o&&("string"!=typeof e||L(o,"name")||Q(o,"name",e),s=i(o),s.source||(s.source=n.join("string"==typeof e?e:""))),t===x?void (l?t[e]=o:Z(e,o)):(r?!c&&t[e]&&(l=!0):delete t[e],void (l?t[e]=o:Q(t,e,o)))})(Function.prototype,"toString",function(){return"function"==typeof this&&e(this).source||rt(this)})}),Pt=x,It=function(t){return"function"==typeof t?t:void 0},At=function(t,e){return arguments.length<2?It(Pt[t])||It(x[t]):Pt[t]&&Pt[t][e]||x[t]&&x[t][e]},$t=Math.ceil,Rt=Math.floor,Et=function(t){return isNaN(t=+t)?0:(t>0?Rt:$t)(t)},jt=Math.min,_t=function(t){return t>0?jt(Et(t),9007199254740991):0},Nt=Math.max,Ft=Math.min,Dt=function(t,e){var i=Et(t);return 0>i?Nt(i+e,0):Ft(i,e)},Vt=function(t){return function(e,i,n){var o,a=F(e),s=_t(a.length),r=Dt(n,s);if(t&&i!=i){for(;s>r;){if(o=a[r++],o!=o){return !0}}}else{for(;s>r;r++){if((t||r in a)&&a[r]===i){return t||r||0}}}return !t&&-1}},Bt={includes:Vt(!0),indexOf:Vt(!1)},Lt=Bt.indexOf,Ht=function(t,e){var i,n=F(t),o=0,a=[];for(i in n){!L(vt,i)&&L(n,i)&&a.push(i)}for(;e.length>o;){L(n,i=e[o++])&&(~Lt(a,i)||a.push(i))}return a},Mt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ut=Mt.concat("length","prototype"),qt=Object.getOwnPropertyNames||function(t){return Ht(t,Ut)},zt={f:qt},Wt=Object.getOwnPropertySymbols,Gt={f:Wt},Kt=At("Reflect","ownKeys")||function(t){var e=zt.f(K(t)),i=Gt.f;return i?e.concat(i(t)):e},Yt=function(t,e){for(var i=Kt(e),n=J.f,o=G.f,a=0;a0&&(!a.multiline||a.multiline&&"\n"!==t[a.lastIndex-1])&&(l="(?: "+l+")",h=" "+h,c++),i=RegExp("^(?:"+l+")",r)),Pe&&(i=RegExp("^"+l+"$(?!\\s)",r)),Te&&(e=a.lastIndex),n=xe.call(s?i:a,h),s?n?(n.input=n.input.slice(c),n[0]=n[0].slice(c),n.index=a.lastIndex,a.lastIndex+=n[0].length):a.lastIndex=0:Te&&n&&(a.lastIndex=a.global?n.index+n[0].length:e),Pe&&n&&n.length>1&&ke.call(n[0],i,function(){for(o=1;o=74)&&($e=je.match(/Chrome\/(\d+)/),$e&&(Re=$e[1])));var De=Re&&+Re,Ve=!!Object.getOwnPropertySymbols&&!k(function(){return !Symbol.sham&&(Ee?38===De:De>37&&41>De)}),Be=Ve&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Le=ht("wks"),He=x.Symbol,Me=Be?He:He&&He.withoutSetter||ft,Ue=function(t){return(!L(Le,t)||!Ve&&"string"!=typeof Le[t])&&(Ve&&L(He,t)?Le[t]=He[t]:Le[t]=Me("Symbol."+t)),Le[t]},qe=Ue("species"),ze=!k(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$")}),We=function(){return"$0"==="a".replace(/./,"$0")}(),Ge=Ue("replace"),Ke=function(){return/./[Ge]?""===/./[Ge]("a","$0"):!1}(),Ye=!k(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var i="ab".split(t);return 2!==i.length||"a"!==i[0]||"b"!==i[1]}),Xe=function(t,e,i,n){var o=Ue(t),a=!k(function(){var e={};return e[o]=function(){return 7},7!=""[t](e)}),s=a&&!k(function(){var e=!1,i=/a/;return"split"===t&&(i={},i.constructor={},i.constructor[qe]=function(){return i},i.flags="",i[o]=/./[o]),i.exec=function(){return e=!0,null},i[o](""),!e});if(!a||!s||"replace"===t&&(!ze||!We||Ke)||"split"===t&&!Ye){var r=/./[o],l=i(o,""[t],function(t,e,i,n,o){return e.exec===RegExp.prototype.exec?a&&!o?{done:!0,value:r.call(e,i,n)}:{done:!0,value:t.call(i,e,n)}:{done:!1}},{REPLACE_KEEPS_$0:We,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:Ke}),c=l[0],h=l[1];Ct(String.prototype,t,c),Ct(RegExp.prototype,o,2==e?function(t,e){return h.call(t,this,e)}:function(t){return h.call(t,this)})}n&&Q(RegExp.prototype[o],"sham",!0)},Je=Ue("match"),Qe=function(t){var e;return D(t)&&(void 0!==(e=t[Je])?!!e:"RegExp"==E(t))},Ze=function(t){if("function"!=typeof t){throw TypeError(t+" is not a function")}return t},ti=Ue("species"),ei=function(t,e){var i,n=K(t).constructor;return void 0===n||void 0==(i=K(n)[ti])?e:Ze(i)},ii=function(t){return function(e,i){var n,o,a=N(e)+"",s=Et(i),r=a.length;return 0>s||s>=r?t?"":void 0:(n=a.charCodeAt(s),55296>n||n>56319||s+1===r||(o=a.charCodeAt(s+1))<56320||o>57343?t?a.charAt(s):n:t?a.slice(s,s+2):(n-55296<<10)+(o-56320)+65536)}},ni={codeAt:ii(!1),charAt:ii(!0)},oi=ni.charAt,ai=function(t,e,i){return e+(i?oi(t,e).length:1)},si=function(t,e){var i=t.exec;if("function"==typeof i){var n=i.call(t,e);if("object"!=typeof n){throw TypeError("RegExp exec method returned something other than an Object or null")}return n}if("RegExp"!==E(t)){throw TypeError("RegExp#exec called on incompatible receiver")}return Ae.call(t,e)},ri=Se.UNSUPPORTED_Y,li=[].push,ci=Math.min,hi=4294967295;Xe("split",2,function(t,e,i){var n;return n="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,i){var n=N(this)+"",o=void 0===i?hi:i>>>0;if(0===o){return[]}if(void 0===t){return[n]}if(!Qe(t)){return e.call(n,t,o)}for(var a,s,r,l=[],c=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),h=0,u=RegExp(t.source,c+"g");(a=Ae.call(u,n))&&(s=u.lastIndex,!(s>h&&(l.push(n.slice(h,a.index)),a.length>1&&a.index=o)));){u.lastIndex===a.index&&u.lastIndex++}return h===n.length?(r||!u.test(""))&&l.push(""):l.push(n.slice(h)),l.length>o?l.slice(0,o):l}:"0".split(void 0,0).length?function(t,i){return void 0===t&&0===i?[]:e.call(this,t,i)}:e,[function(e,i){var o=N(this),a=void 0==e?void 0:e[t];return void 0!==a?a.call(e,o,i):n.call(o+"",e,i)},function(t,o){var a=i(n,t,this,o,n!==e);if(a.done){return a.value}var s=K(t),r=this+"",l=ei(s,RegExp),c=s.unicode,h=(s.ignoreCase?"i":"")+(s.multiline?"m":"")+(s.unicode?"u":"")+(ri?"g":"y"),u=new l(ri?"^(?:"+s.source+")":s,h),d=void 0===o?hi:o>>>0;if(0===d){return[]}if(0===r.length){return null===si(u,r)?[r]:[]}for(var f=0,p=0,g=[];ps;){i=o[s++],(!O||di.call(n,i))&&r.push(t?[i,n[i]]:n[i])}return r}},pi={entries:fi(!0),values:fi(!1)},gi=pi.entries;oe({target:"Object",stat:!0},{entries:function(t){return gi(t)}});var vi,bi=O?Object.defineProperties:function(t,e){K(t);for(var i,n=ui(e),o=n.length,a=0;o>a;){J.f(t,i=n[a++],e[i])}return t},mi=At("document","documentElement"),yi=">",wi="<",Si="prototype",xi="script",ki=gt("IE_PROTO"),Oi=function(){},Ti=function(t){return wi+xi+yi+t+wi+"/"+xi+yi},Ci=function(t){t.write(Ti("")),t.close();var e=t.parentWindow.Object;return t=null,e},Pi=function(){var t,e=U("iframe"),i="java"+xi+":";return e.style.display="none",mi.appendChild(e),e.src=i+"",t=e.contentWindow.document,t.open(),t.write(Ti("document.F=Object")),t.close(),t.F},Ii=function(){try{vi=document.domain&&new ActiveXObject("htmlfile")}catch(t){}Ii=vi?Ci(vi):Pi();for(var e=Mt.length;e--;){delete Ii[Si][Mt[e]]}return Ii()};vt[ki]=!0;var Ai=Object.create||function(t,e){var i;return null!==t?(Oi[Si]=K(t),i=new Oi,Oi[Si]=null,i[ki]=t):i=Ii(),void 0===e?i:bi(i,e)},$i=Ue("unscopables"),Ri=Array.prototype;void 0==Ri[$i]&&J.f(Ri,$i,{configurable:!0,value:Ai(null)});var Ei=function(t){Ri[$i][t]=!0},ji=Bt.includes;oe({target:"Array",proto:!0},{includes:function(t){return ji(this,t,arguments.length>1?arguments[1]:void 0)}}),Ei("includes");var _i=Array.isArray||function(t){return"Array"==E(t)},Ni=function(t){return Object(N(t))},Fi=function(t,e,i){var n=V(e);n in t?J.f(t,n,$(0,i)):t[n]=i},Di=Ue("species"),Vi=function(t,e){var i;return _i(t)&&(i=t.constructor,"function"!=typeof i||i!==Array&&!_i(i.prototype)?D(i)&&(i=i[Di],null===i&&(i=void 0)):i=void 0),new (void 0===i?Array:i)(0===e?0:e)},Bi=Ue("species"),Li=function(t){return De>=51||!k(function(){var e=[],i=e.constructor={};return i[Bi]=function(){return{foo:1}},1!==e[t](Boolean).foo})},Hi=Ue("isConcatSpreadable"),Mi=9007199254740991,Ui="Maximum allowed index exceeded",qi=De>=51||!k(function(){var t=[];return t[Hi]=!1,t.concat()[0]!==t}),zi=Li("concat"),Wi=function(t){if(!D(t)){return !1}var e=t[Hi];return void 0!==e?!!e:_i(t)},Gi=!qi||!zi;oe({target:"Array",proto:!0,forced:Gi},{concat:function(t){var e,i,n,o,a,s=Ni(this),r=Vi(s,0),l=0;for(e=-1,n=arguments.length;n>e;e++){if(a=-1===e?s:arguments[e],Wi(a)){if(o=_t(a.length),l+o>Mi){throw TypeError(Ui)}for(i=0;o>i;i++,l++){i in a&&Fi(r,l,a[i])}}else{if(l>=Mi){throw TypeError(Ui)}Fi(r,l++,a)}}return r.length=l,r}});var Ki=function(t,e,i){if(Ze(t),void 0===e){return t}switch(i){case 0:return function(){return t.call(e)};case 1:return function(i){return t.call(e,i)};case 2:return function(i,n){return t.call(e,i,n)};case 3:return function(i,n,o){return t.call(e,i,n,o)}}return function(){return t.apply(e,arguments)}},Yi=[].push,Xi=function(t){var e=1==t,i=2==t,n=3==t,o=4==t,a=6==t,s=7==t,r=5==t||a;return function(l,c,h,u){for(var d,f,p=Ni(l),g=_(p),v=Ki(c,h,3),b=_t(g.length),m=0,y=u||Vi,w=e?y(l,b):i||s?y(l,0):void 0;b>m;m++){if((r||m in g)&&(d=g[m],f=v(d,m,p),t)){if(e){w[m]=f}else{if(f){switch(t){case 3:return !0;case 5:return d;case 6:return m;case 2:Yi.call(w,d)}}else{switch(t){case 4:return !1;case 7:Yi.call(w,d)}}}}}return a?-1:n||o?o:w}},Ji={forEach:Xi(0),map:Xi(1),filter:Xi(2),some:Xi(3),every:Xi(4),find:Xi(5),findIndex:Xi(6),filterOut:Xi(7)},Qi=Ji.find,Zi="find",tn=!0;Zi in []&&Array(1)[Zi](function(){tn=!1}),oe({target:"Array",proto:!0,forced:tn},{find:function(t){return Qi(this,t,arguments.length>1?arguments[1]:void 0)}}),Ei(Zi);var en=function(t){if(Qe(t)){throw TypeError("The method doesn't accept regular expressions")}return t},nn=Ue("match"),on=function(t){var e=/./;try{"/./"[t](e)}catch(i){try{return e[nn]=!1,"/./"[t](e)}catch(n){}}return !1};oe({target:"String",proto:!0,forced:!on("includes")},{includes:function(t){return !!~(N(this)+"").indexOf(en(t),arguments.length>1?arguments[1]:void 0)}});var an={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},sn=Ji.forEach,rn=pe("forEach"),ln=rn?[].forEach:function(t){return sn(this,t,arguments.length>1?arguments[1]:void 0)};for(var cn in an){var hn=x[cn],un=hn&&hn.prototype;if(un&&un.forEach!==ln){try{Q(un,"forEach",ln)}catch(dn){un.forEach=ln}}}var fn=he.trim,pn=x.parseFloat,gn=1/pn(ae+"-0")!==-(1/0),vn=gn?function(t){var e=fn(t+""),i=pn(e);return 0===i&&"-"==e.charAt(0)?-0:i}:pn;oe({global:!0,forced:parseFloat!=vn},{parseFloat:vn});var bn=Bt.indexOf,mn=[].indexOf,yn=!!mn&&1/[1].indexOf(1,-0)<0,wn=pe("indexOf");oe({target:"Array",proto:!0,forced:yn||!wn},{indexOf:function(t){return yn?mn.apply(this,arguments)||0:bn(this,t,arguments.length>1?arguments[1]:void 0)}});var Sn=[],xn=Sn.sort,kn=k(function(){Sn.sort(void 0)}),On=k(function(){Sn.sort(null)}),Tn=pe("sort"),Cn=kn||!On||!Tn;oe({target:"Array",proto:!0,forced:Cn},{sort:function(t){return void 0===t?xn.call(Ni(this)):xn.call(Ni(this),Ze(t))}});var Pn=Math.floor,In="".replace,An=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,$n=/\$([$&'`]|\d{1,2})/g,Rn=function(t,e,i,n,o,a){var s=i+t.length,r=n.length,l=$n;return void 0!==o&&(o=Ni(o),l=An),In.call(a,l,function(a,l){var c;switch(l.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,i);case"'":return e.slice(s);case"<":c=o[l.slice(1,-1)];break;default:var h=+l;if(0===h){return a}if(h>r){var u=Pn(h/10);return 0===u?a:r>=u?void 0===n[u-1]?l.charAt(1):n[u-1]+l.charAt(1):a}c=n[h-1]}return void 0===c?"":c})},En=Math.max,jn=Math.min,_n=function(t){return void 0===t?t:t+""};Xe("replace",2,function(t,e,i,n){var o=n.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,a=n.REPLACE_KEEPS_$0,s=o?"$":"$0";return[function(i,n){var o=N(this),a=void 0==i?void 0:i[t];return void 0!==a?a.call(i,o,n):e.call(o+"",i,n)},function(t,n){if(!o&&a||"string"==typeof n&&-1===n.indexOf(s)){var r=i(e,t,this,n);if(r.done){return r.value}}var l=K(t),c=this+"",h="function"==typeof n;h||(n+="");var u=l.global;if(u){var d=l.unicode;l.lastIndex=0}for(var f=[];;){var p=si(l,c);if(null===p){break}if(f.push(p),!u){break}var g=p[0]+"";""===g&&(l.lastIndex=ai(c,_t(l.lastIndex),d))}for(var v="",b=0,m=0;m=b&&(v+=c.slice(b,w)+T,b=w+y.length)}return v+c.slice(b)}]});var Nn=Object.assign,Fn=Object.defineProperty,Dn=!Nn||k(function(){if(O&&1!==Nn({b:1},Nn(Fn({},"a",{enumerable:!0,get:function(){Fn(this,"b",{value:3,enumerable:!1})}}),{b:2})).b){return !0}var t={},e={},i=Symbol(),n="abcdefghijklmnopqrst";return t[i]=7,n.split("").forEach(function(t){e[t]=t}),7!=Nn({},t)[i]||ui(Nn({},e)).join("")!=n})?function(t,e){for(var i=Ni(t),n=arguments.length,o=1,a=Gt.f,s=A.f;n>o;){for(var r,l=_(arguments[o++]),c=a?ui(l).concat(a(l)):ui(l),h=c.length,u=0;h>u;){r=c[u++],(!O||s.call(l,r))&&(i[r]=l[r])}}return i}:Nn;oe({target:"Object",stat:!0,forced:Object.assign!==Dn},{assign:Dn});var Vn=Ji.filter,Bn=Li("filter");oe({target:"Array",proto:!0,forced:!Bn},{filter:function(t){return Vn(this,t,arguments.length>1?arguments[1]:void 0)}});var Ln=Object.is||function(t,e){return t===e?0!==t||1/t===1/e:t!=t&&e!=e};Xe("search",1,function(t,e,i){return[function(e){var i=N(this),n=void 0==e?void 0:e[t];return void 0!==n?n.call(e,i):RegExp(e)[t](i+"")},function(t){var n=i(e,t,this);if(n.done){return n.value}var o=K(t),a=this+"",s=o.lastIndex;Ln(s,0)||(o.lastIndex=0);var r=si(o,a);return Ln(o.lastIndex,s)||(o.lastIndex=s),null===r?-1:r.index}]});var Hn=he.trim,Mn=x.parseInt,Un=/^[+-]?0[Xx]/,qn=8!==Mn(ae+"08")||22!==Mn(ae+"0x16"),zn=qn?function(t,e){var i=Hn(t+"");return Mn(i,e>>>0||(Un.test(i)?16:10))}:Mn;oe({global:!0,forced:parseInt!=zn},{parseInt:zn});var Wn=Ji.map,Gn=Li("map");oe({target:"Array",proto:!0,forced:!Gn},{map:function(t){return Wn(this,t,arguments.length>1?arguments[1]:void 0)}});var Kn=Ji.findIndex,Yn="findIndex",Xn=!0;Yn in []&&Array(1)[Yn](function(){Xn=!1}),oe({target:"Array",proto:!0,forced:Xn},{findIndex:function(t){return Kn(this,t,arguments.length>1?arguments[1]:void 0)}}),Ei(Yn);var Jn=function(t){if(!D(t)&&null!==t){throw TypeError("Can't set "+(t+"")+" as a prototype")}return t},Qn=Object.setPrototypeOf||("__proto__" in {}?function(){var t,e=!1,i={};try{t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,t.call(i,[]),e=i instanceof Array}catch(n){}return function(i,n){return K(i),Jn(n),e?t.call(i,n):i.__proto__=n,i}}():void 0),Zn=function(t,e,i){var n,o;return Qn&&"function"==typeof(n=e.constructor)&&n!==i&&D(o=n.prototype)&&o!==i.prototype&&Qn(t,o),t},to=Ue("species"),eo=function(t){var e=At(t),i=J.f;O&&e&&!e[to]&&i(e,to,{configurable:!0,get:function(){return this}})},io=J.f,no=zt.f,oo=Tt.set,ao=Ue("match"),so=x.RegExp,ro=so.prototype,lo=/a/g,co=/a/g,ho=new so(lo)!==lo,uo=Se.UNSUPPORTED_Y,fo=O&&ie("RegExp",!ho||uo||k(function(){return co[ao]=!1,so(lo)!=lo||so(co)==co||"/a/i"!=so(lo,"i")}));if(fo){for(var po=function(t,e){var i,n=this instanceof po,o=Qe(t),a=void 0===e;if(!n&&o&&t.constructor===po&&a){return t}ho?o&&!a&&(t=t.source):t instanceof po&&(a&&(e=me.call(t)),t=t.source),uo&&(i=!!e&&e.indexOf("y")>-1,i&&(e=e.replace(/y/g,"")));var s=Zn(ho?new so(t,e):so(t,e),n?this:ro,po);return uo&&i&&oo(s,{sticky:i}),s},go=(function(t){t in po||io(po,t,{configurable:!0,get:function(){return so[t]},set:function(e){so[t]=e}})}),vo=no(so),bo=0;vo.length>bo;){go(vo[bo++])}ro.constructor=po,po.prototype=ro,Ct(x,"RegExp",po)}eo("RegExp");var mo="toString",yo=RegExp.prototype,wo=yo[mo],So=k(function(){return"/a/b"!=wo.call({source:"a",flags:"b"})}),xo=wo.name!=mo;(So||xo)&&Ct(RegExp.prototype,mo,function(){var t=K(this),e=t.source+"",i=t.flags,n=(void 0===i&&t instanceof RegExp&&!("flags" in yo)?me.call(t):i)+"";return"/"+e+"/"+n},{unsafe:!0});var ko=Ue("toStringTag"),Oo={};Oo[ko]="z";var To=Oo+""=="[object z]",Co=Ue("toStringTag"),Po="Arguments"==E(function(){return arguments}()),Io=function(t,e){try{return t[e]}catch(i){}},Ao=To?E:function(t){var e,i,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=Io(e=Object(t),Co))?i:Po?E(e):"Object"==(n=E(e))&&"function"==typeof e.callee?"Arguments":n},$o=To?{}.toString:function(){return"[object "+Ao(this)+"]"};To||Ct(Object.prototype,"toString",$o,{unsafe:!0});var Ro=Li("slice"),Eo=Ue("species"),jo=[].slice,_o=Math.max;oe({target:"Array",proto:!0,forced:!Ro},{slice:function(t,e){var i,n,o,a=F(this),s=_t(a.length),r=Dt(t,s),l=Dt(void 0===e?s:e,s);if(_i(a)&&(i=a.constructor,"function"!=typeof i||i!==Array&&!_i(i.prototype)?D(i)&&(i=i[Eo],null===i&&(i=void 0)):i=void 0,i===Array||void 0===i)){return jo.call(a,r,l)}for(n=new (void 0===i?Array:i)(_o(l-r,0)),o=0;l>r;r++,o++){r in a&&Fi(n,o,a[r])}return n.length=o,n}});var No,Fo,Do,Vo=!k(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),Bo=gt("IE_PROTO"),Lo=Object.prototype,Ho=Vo?Object.getPrototypeOf:function(t){return t=Ni(t),L(t,Bo)?t[Bo]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?Lo:null},Mo=Ue("iterator"),Uo=!1,qo=function(){return this};[].keys&&(Do=[].keys(),"next" in Do?(Fo=Ho(Ho(Do)),Fo!==Object.prototype&&(No=Fo)):Uo=!0);var zo=void 0==No||k(function(){var t={};return No[Mo].call(t)!==t});zo&&(No={}),L(No,Mo)||Q(No,Mo,qo);var Wo={IteratorPrototype:No,BUGGY_SAFARI_ITERATORS:Uo},Go=J.f,Ko=Ue("toStringTag"),Yo=function(t,e,i){t&&!L(t=i?t:t.prototype,Ko)&&Go(t,Ko,{configurable:!0,value:e})},Xo=Wo.IteratorPrototype,Jo=function(t,e,i){var n=e+" Iterator";return t.prototype=Ai(Xo,{next:$(1,i)}),Yo(t,n,!1),t},Qo=Wo.IteratorPrototype,Zo=Wo.BUGGY_SAFARI_ITERATORS,ta=Ue("iterator"),ea="keys",ia="values",na="entries",oa=function(){return this},aa=function(t,e,i,n,o,a,s){Jo(i,e,n);var r,l,c,h=function(t){if(t===o&&g){return g}if(!Zo&&t in f){return f[t]}switch(t){case ea:return function(){return new i(this,t)};case ia:return function(){return new i(this,t)};case na:return function(){return new i(this,t)}}return function(){return new i(this)}},u=e+" Iterator",d=!1,f=t.prototype,p=f[ta]||f["@@iterator"]||o&&f[o],g=!Zo&&p||h(o),v="Array"==e?f.entries||p:p;if(v&&(r=Ho(v.call(new t)),Qo!==Object.prototype&&r.next&&(Ho(r)!==Qo&&(Qn?Qn(r,Qo):"function"!=typeof r[ta]&&Q(r,ta,oa)),Yo(r,u,!0))),o==ia&&p&&p.name!==ia&&(d=!0,g=function(){return p.call(this)}),f[ta]!==g&&Q(f,ta,g),o){if(l={values:h(ia),keys:a?g:h(ea),entries:h(na)},s){for(c in l){!Zo&&!d&&c in f||Ct(f,c,l[c])}}else{oe({target:e,proto:!0,forced:Zo||d},l)}}return l},sa="Array Iterator",ra=Tt.set,la=Tt.getterFor(sa),ca=aa(Array,"Array",function(t,e){ra(this,{type:sa,target:F(t),index:0,kind:e})},function(){var t=la(this),e=t.target,i=t.kind,n=t.index++;return !e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==i?{value:n,done:!1}:"values"==i?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}},"values");Ei("keys"),Ei("values"),Ei("entries");var ha=Ue("iterator"),ua=Ue("toStringTag"),da=ca.values;for(var fa in an){var pa=x[fa],ga=pa&&pa.prototype;if(ga){if(ga[ha]!==da){try{Q(ga,ha,da)}catch(dn){ga[ha]=da}}if(ga[ua]||Q(ga,ua,fa),an[fa]){for(var va in ca){if(ga[va]!==ca[va]){try{Q(ga,va,ca[va])}catch(dn){ga[va]=ca[va]}}}}}}var ba=Li("splice"),ma=Math.max,ya=Math.min,wa=9007199254740991,Sa="Maximum allowed length exceeded";oe({target:"Array",proto:!0,forced:!ba},{splice:function(t,e){var i,n,o,a,s,r,l=Ni(this),c=_t(l.length),h=Dt(t,c),u=arguments.length;if(0===u?i=n=0:1===u?(i=0,n=c-h):(i=u-2,n=ya(ma(Et(e),0),c-h)),c+i-n>wa){throw TypeError(Sa)}for(o=Vi(l,n),a=0;n>a;a++){s=h+a,s in l&&Fi(o,a,l[s])}if(o.length=n,n>i){for(a=h;c-n>a;a++){s=a+n,r=a+i,s in l?l[r]=l[s]:delete l[r]}for(a=c;a>c-n+i;a--){delete l[a-1]}}else{if(i>n){for(a=c-n;a>h;a--){s=a+n-1,r=a+i-1,s in l?l[r]=l[s]:delete l[r]}}}for(a=0;i>a;a++){l[a+h]=arguments[a+2]}return l.length=c-n+i,o}});var xa=zt.f,ka=G.f,Oa=J.f,Ta=he.trim,Ca="Number",Pa=x[Ca],Ia=Pa.prototype,Aa=E(Ai(Ia))==Ca,$a=function(t){var e,i,n,o,a,s,r,l,c=V(t,!1);if("string"==typeof c&&c.length>2){if(c=Ta(c),e=c.charCodeAt(0),43===e||45===e){if(i=c.charCodeAt(2),88===i||120===i){return NaN}}else{if(48===e){switch(c.charCodeAt(1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return +c}for(a=c.slice(2),s=a.length,r=0;s>r;r++){if(l=a.charCodeAt(r),48>l||l>o){return NaN}}return parseInt(a,n)}}}return +c};if(ie(Ca,!Pa(" 0o1")||!Pa("0b1")||Pa("+0x1"))){for(var Ra,Ea=function(t){var e=arguments.length<1?0:t,i=this;return i instanceof Ea&&(Aa?k(function(){Ia.valueOf.call(i)}):E(i)!=Ca)?Zn(new Pa($a(e)),i,Ea):$a(e)},ja=O?xa(Pa):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),_a=0;ja.length>_a;_a++){L(Pa,Ra=ja[_a])&&!L(Ea,Ra)&&Oa(Ea,Ra,ka(Pa,Ra))}Ea.prototype=Ia,Ia.constructor=Ea,Ct(x,Ca,Ea)}var Na=[].reverse,Fa=[1,2];oe({target:"Array",proto:!0,forced:Fa+""==Fa.reverse()+""},{reverse:function(){return _i(this)&&(this.length=this.length),Na.call(this)}});var Da="1.19.1",Va=4;try{var Ba=y["default"].fn.dropdown.Constructor.VERSION;void 0!==Ba&&(Va=parseInt(Ba,10))}catch(La){}try{var Ha=bootstrap.Tooltip.VERSION;void 0!==Ha&&(Va=parseInt(Ha,10))}catch(La){}var Ma={3:{iconsPrefix:"glyphicon",icons:{paginationSwitchDown:"glyphicon-collapse-down icon-chevron-down",paginationSwitchUp:"glyphicon-collapse-up icon-chevron-up",refresh:"glyphicon-refresh icon-refresh",toggleOff:"glyphicon-list-alt icon-list-alt",toggleOn:"glyphicon-list-alt icon-list-alt",columns:"glyphicon-th icon-th",detailOpen:"glyphicon-plus icon-plus",detailClose:"glyphicon-minus icon-minus",fullscreen:"glyphicon-fullscreen",search:"glyphicon-search",clearSearch:"glyphicon-trash"},classes:{buttonsPrefix:"btn",buttons:"default",buttonsGroup:"btn-group",buttonsDropdown:"btn-group",pull:"pull",inputGroup:"input-group",inputPrefix:"input-",input:"form-control",paginationDropdown:"btn-group dropdown",dropup:"dropup",dropdownActive:"active",paginationActive:"active",buttonActive:"active"},html:{toolbarDropdown:['"],toolbarDropdownItem:'
  • ',toolbarDropdownSeparator:'
  • ',pageDropdown:['"],pageDropdownItem:'
    ',dropdownCaret:'',pagination:['
      ',"
    "],paginationItem:'
  • %s
  • ',icon:'',inputGroup:'
    %s%s
    ',searchInput:'',searchButton:'',searchClearButton:''}},4:{iconsPrefix:"fa",icons:{paginationSwitchDown:"fa-caret-square-down",paginationSwitchUp:"fa-caret-square-up",refresh:"fa-sync",toggleOff:"fa-toggle-off",toggleOn:"fa-toggle-on",columns:"fa-th-list",detailOpen:"fa-plus",detailClose:"fa-minus",fullscreen:"fa-arrows-alt",search:"fa-search",clearSearch:"fa-trash"},classes:{buttonsPrefix:"btn",buttons:"secondary",buttonsGroup:"btn-group",buttonsDropdown:"btn-group",pull:"float",inputGroup:"btn-group",inputPrefix:"form-control-",input:"form-control",paginationDropdown:"btn-group dropdown",dropup:"dropup",dropdownActive:"active",paginationActive:"active",buttonActive:"active"},html:{toolbarDropdown:['"],toolbarDropdownItem:'',pageDropdown:['"],pageDropdownItem:'%s',toolbarDropdownSeparator:'',dropdownCaret:'',pagination:['
      ',"
    "],paginationItem:'
  • %s
  • ',icon:'',inputGroup:'
    %s
    %s
    ',searchInput:'',searchButton:'',searchClearButton:''}},5:{iconsPrefix:"bi",icons:{paginationSwitchDown:"bi-caret-down-square",paginationSwitchUp:"bi-caret-up-square",refresh:"bi-arrow-clockwise",toggleOff:"bi-toggle-off",toggleOn:"bi-toggle-on",columns:"bi-list-ul",detailOpen:"bi-plus",detailClose:"bi-dash",fullscreen:"bi-arrows-move",search:"bi-search",clearSearch:"bi-trash"},classes:{buttonsPrefix:"btn",buttons:"secondary",buttonsGroup:"btn-group",buttonsDropdown:"btn-group",pull:"float",inputGroup:"btn-group",inputPrefix:"form-control-",input:"form-control",paginationDropdown:"btn-group dropdown",dropup:"dropup",dropdownActive:"active",paginationActive:"active",buttonActive:"active"},html:{dataToggle:"data-bs-toggle",toolbarDropdown:['"],toolbarDropdownItem:'',pageDropdown:['"],pageDropdownItem:'%s',toolbarDropdownSeparator:'',dropdownCaret:'',pagination:['
      ',"
    "],paginationItem:'
  • %s
  • ',icon:'',inputGroup:'
    %s%s
    ',searchInput:'',searchButton:'',searchClearButton:''}}}[Va],Ua={id:void 0,firstLoad:!0,height:void 0,classes:"table table-bordered table-hover",buttons:{},theadClasses:"",striped:!1,headerStyle:function(t){return{}},rowStyle:function(t,e){return{}},rowAttributes:function(t,e){return{}},undefinedText:"-",locale:void 0,virtualScroll:!1,virtualScrollItemHeight:void 0,sortable:!0,sortClass:void 0,silentSort:!0,sortName:void 0,sortOrder:void 0,sortReset:!1,sortStable:!1,rememberOrder:!1,serverSort:!0,customSort:void 0,columns:[[]],data:[],url:void 0,method:"get",cache:!0,contentType:"application/json",dataType:"json",ajax:void 0,ajaxOptions:{},queryParams:function(t){return t},queryParamsType:"limit",responseHandler:function(t){return t},totalField:"total",totalNotFilteredField:"totalNotFiltered",dataField:"rows",footerField:"footer",pagination:!1,paginationParts:["pageInfo","pageSize","pageList"],showExtendedPagination:!1,paginationLoop:!0,sidePagination:"client",totalRows:0,totalNotFiltered:0,pageNumber:1,pageSize:10,pageList:[10,25,50,100],paginationHAlign:"right",paginationVAlign:"bottom",paginationDetailHAlign:"left",paginationPreText:"‹",paginationNextText:"›",paginationSuccessivelySize:5,paginationPagesBySide:1,paginationUseIntermediate:!1,search:!1,searchHighlight:!1,searchOnEnterKey:!1,strictSearch:!1,regexSearch:!1,searchSelector:!1,visibleSearch:!1,showButtonIcons:!0,showButtonText:!1,showSearchButton:!1,showSearchClearButton:!1,trimOnSearch:!0,searchAlign:"right",searchTimeOut:500,searchText:"",customSearch:void 0,showHeader:!0,showFooter:!1,footerStyle:function(t){return{}},searchAccentNeutralise:!1,showColumns:!1,showSearch:!1,showPageGo:!1,showColumnsToggleAll:!1,showColumnsSearch:!1,minimumCountColumns:1,showPaginationSwitch:!1,showRefresh:!1,showToggle:!1,showFullscreen:!1,smartDisplay:!0,escape:!1,filterOptions:{filterAlgorithm:"and"},idField:void 0,selectItemName:"btSelectItem",clickToSelect:!1,ignoreClickToSelectOn:function(t){var e=t.tagName;return["A","BUTTON"].includes(e)},singleSelect:!1,checkboxHeader:!0,maintainMetaData:!1,multipleSelectRow:!1,uniqueId:void 0,cardView:!1,detailView:!1,detailViewIcon:!0,detailViewByClick:!1,detailViewAlign:"left",detailFormatter:function(t,e){return""},detailFilter:function(t,e){return !0},toolbar:void 0,toolbarAlign:"left",buttonsToolbar:void 0,buttonsAlign:"right",buttonsOrder:["search","paginationSwitch","refresh","toggle","fullscreen","columns"],buttonsPrefix:Ma.classes.buttonsPrefix,buttonsClass:Ma.classes.buttons,icons:Ma.icons,iconSize:void 0,iconsPrefix:Ma.iconsPrefix,loadingFontSize:"auto",loadingTemplate:function(t){return'\n '.concat(t,'\n \n \n ')},onAll:function(t,e){return !1},onClickCell:function(t,e,i,n){return !1},onDblClickCell:function(t,e,i,n){return !1},onClickRow:function(t,e){return !1},onDblClickRow:function(t,e){return !1},onSort:function(t,e){return !1},onCheck:function(t){return !1},onUncheck:function(t){return !1},onCheckAll:function(t){return !1},onUncheckAll:function(t){return !1},onCheckSome:function(t){return !1},onUncheckSome:function(t){return !1},onLoadSuccess:function(t){return !1},onLoadError:function(t){return !1},onColumnSwitch:function(t,e){return !1},onPageChange:function(t,e){return !1},onSearch:function(t){return !1},onShowSearch:function(){return !1},onToggle:function(t){return !1},onPreBody:function(t){return !1},onPostBody:function(){return !1},onPostHeader:function(){return !1},onPostFooter:function(){return !1},onExpandRow:function(t,e,i){return !1},onCollapseRow:function(t,e){return !1},onRefreshOptions:function(t){return !1},onRefresh:function(t){return !1},onResetView:function(){return !1},onScrollBody:function(){return !1},onTogglePagination:function(t){return !1}},qa={formatLoadingMessage:function(){return"Loading, please wait"},formatRecordsPerPage:function(t){return"".concat(t," rows per page")},formatShowingRows:function(t,e,i,n){return void 0!==n&&n>0&&n>i?"Showing ".concat(t," to ").concat(e," of ").concat(i," rows (filtered from ").concat(n," total rows)"):"Showing ".concat(t," to ").concat(e," of ").concat(i," rows")},formatSRPaginationPreText:function(){return"previous page"},formatSRPaginationPageText:function(t){return"to page ".concat(t)},formatSRPaginationNextText:function(){return"next page"},formatDetailPagination:function(t){return"Showing ".concat(t," rows")},formatSearch:function(){return"Search"},formatShowSearch:function(){return"Show Search"},formatPageGo:function(){return"Go"},formatClearSearch:function(){return"Clear Search"},formatNoMatches:function(){return"No matching records found"},formatPaginationSwitch:function(){return"Hide/Show pagination"},formatPaginationSwitchDown:function(){return"Show pagination"},formatPaginationSwitchUp:function(){return"Hide pagination"},formatRefresh:function(){return"Refresh"},formatToggle:function(){return"Toggle"},formatToggleOn:function(){return"Show card view"},formatToggleOff:function(){return"Hide card view"},formatColumns:function(){return"Columns"},formatColumnsToggleAll:function(){return"Toggle all"},formatFullscreen:function(){return"Fullscreen"},formatAllRows:function(){return"All"}},za={field:void 0,title:void 0,titleTooltip:void 0,"class":void 0,width:void 0,widthUnit:"px",rowspan:void 0,colspan:void 0,align:void 0,halign:void 0,falign:void 0,valign:void 0,cellStyle:void 0,radio:!1,checkbox:!1,checkboxEnabled:!0,clickToSelect:!0,showSelectTitle:!1,sortable:!1,sortName:void 0,order:"asc",sorter:void 0,visible:!0,ignore:!1,switchable:!0,cardVisible:!0,searchable:!0,formatter:void 0,footerFormatter:void 0,detailFormatter:void 0,searchFormatter:!0,searchHighlightFormatter:!1,escape:!1,events:void 0},Wa=["getOptions","refreshOptions","getData","getSelections","load","append","prepend","remove","removeAll","insertRow","updateRow","getRowByUniqueId","updateByUniqueId","removeByUniqueId","updateCell","updateCellByUniqueId","showRow","hideRow","getHiddenRows","showColumn","hideColumn","getVisibleColumns","getHiddenColumns","showAllColumns","hideAllColumns","mergeCells","checkAll","uncheckAll","checkInvert","check","uncheck","checkBy","uncheckBy","refresh","destroy","resetView","showLoading","hideLoading","togglePagination","toggleFullscreen","toggleView","resetSearch","filterBy","scrollTo","getScrollPosition","selectPage","prevPage","nextPage","toggleDetailView","expandRow","collapseRow","expandRowByUniqueId","collapseRowByUniqueId","expandAllRows","collapseAllRows","updateColumnTitle","updateFormatText"],Ga={"all.bs.table":"onAll","click-row.bs.table":"onClickRow","dbl-click-row.bs.table":"onDblClickRow","click-cell.bs.table":"onClickCell","dbl-click-cell.bs.table":"onDblClickCell","sort.bs.table":"onSort","check.bs.table":"onCheck","uncheck.bs.table":"onUncheck","check-all.bs.table":"onCheckAll","uncheck-all.bs.table":"onUncheckAll","check-some.bs.table":"onCheckSome","uncheck-some.bs.table":"onUncheckSome","load-success.bs.table":"onLoadSuccess","load-error.bs.table":"onLoadError","column-switch.bs.table":"onColumnSwitch","page-change.bs.table":"onPageChange","search.bs.table":"onSearch","toggle.bs.table":"onToggle","pre-body.bs.table":"onPreBody","post-body.bs.table":"onPostBody","post-header.bs.table":"onPostHeader","post-footer.bs.table":"onPostFooter","expand-row.bs.table":"onExpandRow","collapse-row.bs.table":"onCollapseRow","refresh-options.bs.table":"onRefreshOptions","reset-view.bs.table":"onResetView","refresh.bs.table":"onRefresh","scroll-body.bs.table":"onScrollBody","toggle-pagination.bs.table":"onTogglePagination","virtual-scroll.bs.table":"onVirtualScroll"};Object.assign(Ua,qa);var Ka={VERSION:Da,THEME:"bootstrap".concat(Va),CONSTANTS:Ma,DEFAULTS:Ua,COLUMN_DEFAULTS:za,METHODS:Wa,EVENTS:Ga,LOCALES:{en:qa,"en-US":qa}},Ya=k(function(){ui(1)});oe({target:"Object",stat:!0,forced:Ya},{keys:function(t){return ui(Ni(t))}}),Xe("match",1,function(t,e,i){return[function(e){var i=N(this),n=void 0==e?void 0:e[t];return void 0!==n?n.call(e,i):RegExp(e)[t](i+"")},function(t){var n=i(e,t,this);if(n.done){return n.value}var o=K(t),a=this+"";if(!o.global){return si(o,a)}var s=o.unicode;o.lastIndex=0;for(var r,l=[],c=0;null!==(r=si(o,a));){var h=r[0]+"";l[c]=h,""===h&&(o.lastIndex=ai(a,_t(o.lastIndex),s)),c++}return 0===c?null:l}]});var Xa=G.f,Ja="".startsWith,Qa=Math.min,Za=on("startsWith"),ts=!Za&&!!function(){var t=Xa(String.prototype,"startsWith");return t&&!t.writable}();oe({target:"String",proto:!0,forced:!ts&&!Za},{startsWith:function(t){var e=N(this)+"";en(t);var i=_t(Qa(arguments.length>1?arguments[1]:void 0,e.length)),n=t+"";return Ja?Ja.call(e,n,i):e.slice(i,i+n.length)===n}});var es=G.f,is="".endsWith,ns=Math.min,os=on("endsWith"),as=!os&&!!function(){var t=es(String.prototype,"endsWith");return t&&!t.writable}();oe({target:"String",proto:!0,forced:!as&&!os},{endsWith:function(t){var e=N(this)+"";en(t);var i=arguments.length>1?arguments[1]:void 0,n=_t(e.length),o=void 0===i?n:ns(_t(i),n),a=t+"";return is?is.call(e,a,o):e.slice(o-a.length,o)===a}});var ss={getSearchInput:function(t){return"string"==typeof t.options.searchSelector?y["default"](t.options.searchSelector):t.$toolbar.find(".search input")},sprintf:function(t){for(var e=arguments.length,i=Array(e>1?e-1:0),n=1;e>n;n++){i[n-1]=arguments[n]}var o=!0,a=0,s=t.replace(/%s/g,function(){var t=i[a++];return void 0===t?(o=!1,""):t});return o?s:""},isObject:function(t){return t instanceof Object&&!Array.isArray(t)},isEmptyObject:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return 0===Object.entries(t).length&&t.constructor===Object},isNumeric:function(t){return !isNaN(parseFloat(t))&&isFinite(t)},getFieldTitle:function(t,e){var i,n=v(t);try{for(n.s();!(i=n.n()).done;){var o=i.value;if(o.field===e){return o.title}}}catch(a){n.e(a)}finally{n.f()}return""},setFieldIndex:function(t){var e,i=0,n=[],o=v(t[0]);try{for(o.s();!(e=o.n()).done;){var a=e.value;i+=a.colspan||1}}catch(s){o.e(s)}finally{o.f()}for(var r=0;rl;l++){n[r][l]=!1}}for(var c=0;cb;b++){for(var m=0;p>m;m++){n[c+b][g+m]=!0}}}}catch(s){u.e(s)}finally{u.f()}}},normalizeAccent:function(t){return"string"!=typeof t?t:t.normalize("NFD").replace(/[\u0300-\u036f]/g,"")},updateFieldGroup:function(t){var e,i,n=(e=[]).concat.apply(e,r(t)),o=v(t);try{for(o.s();!(i=o.n()).done;){var a,s=i.value,l=v(s);try{for(l.s();!(a=l.n()).done;){var c=a.value;if(c.colspanGroup>1){for(var h=0,u=function(t){var e=n.find(function(e){return e.fieldIndex===t});e.visible&&h++},d=c.colspanIndex;d0}}}catch(f){l.e(f)}finally{l.f()}}}catch(f){o.e(f)}finally{o.f()}},getScrollBarWidth:function(){if(void 0===this.cachedWidth){var t=y["default"]("
    ").addClass("fixed-table-scroll-inner"),e=y["default"]("
    ").addClass("fixed-table-scroll-outer");e.append(t),y["default"]("body").append(e);var i=t[0].offsetWidth;e.css("overflow","scroll");var n=t[0].offsetWidth;i===n&&(n=e[0].clientWidth),e.remove(),this.cachedWidth=i-n}return this.cachedWidth},calculateObjectValue:function(t,e,n,o){var a=e;if("string"==typeof e){var s=e.split(".");if(s.length>1){a=window;var l,c=v(s);try{for(c.s();!(l=c.n()).done;){var h=l.value;a=a[h]}}catch(u){c.e(u)}finally{c.f()}}else{a=window[e]}}return null!==a&&"object"===i(a)?a:"function"==typeof a?a.apply(t,n||[]):!a&&"string"==typeof e&&this.sprintf.apply(this,[e].concat(r(n)))?this.sprintf.apply(this,[e].concat(r(n))):o},compareObjects:function(t,e,i){var n=Object.keys(t),o=Object.keys(e);if(i&&n.length!==o.length){return !1}for(var a=0,s=n;a/g,">").replace(/"/g,""").replace(/'/g,"'"):t},unescapeHTML:function(t){return t?(""+t).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/'/g,"'"):t},getRealDataAttr:function(t){for(var e=0,i=Object.entries(t);etd,>th").each(function(n,a){for(var s=y["default"](a),l=+s.attr("colspan")||1,c=+s.attr("rowspan")||1,h=n;o[e]&&o[e][h];h++){}for(var u=h;h+l>u;u++){for(var d=e;e+c>d;d++){o[d]||(o[d]=[]),o[d][u]=!0}}var f=t[h].field;r[f]=s.html().trim(),r["_".concat(f,"_id")]=s.attr("id"),r["_".concat(f,"_class")]=s.attr("class"),r["_".concat(f,"_rowspan")]=s.attr("rowspan"),r["_".concat(f,"_colspan")]=s.attr("colspan"),r["_".concat(f,"_title")]=s.attr("title"),r["_".concat(f,"_data")]=i.getRealDataAttr(s.data()),r["_".concat(f,"_style")]=s.attr("style")}),n.push(r)}),n},sort:function(t,e,i,n,o,a){return(void 0===t||null===t)&&(t=""),(void 0===e||null===e)&&(e=""),n&&t===e&&(t=o,e=a),this.isNumeric(t)&&this.isNumeric(e)?(t=parseFloat(t),e=parseFloat(e),e>t?-1*i:t>e?i:0):t===e?0:("string"!=typeof t&&(t=""+t),-1===t.localeCompare(e)?-1*i:i)},getEventName:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e=e||"".concat(+new Date).concat(~~(1000000*Math.random())),"".concat(t,"-").concat(e)},hasDetailViewIcon:function(t){return t.detailView&&t.detailViewIcon&&!t.cardView},getDetailViewIndexOffset:function(t){return this.hasDetailViewIcon(t)&&"right"!==t.detailViewAlign?1:0},checkAutoMergeCells:function(t){var e,i=v(t);try{for(i.s();!(e=i.n()).done;){for(var n=e.value,o=0,a=Object.keys(n);oo&&r++;for(var l=i;n>l;l++){t[l]&&s.push(t[l])}return{start:i,end:n,topOffset:o,bottomOffset:a,rowsAbove:r,rows:s}}},{key:"checkChanges",value:function(t,e){var i=e!==this.cache[t];return this.cache[t]=e,i}},{key:"getExtra",value:function(t,e){var i=document.createElement("tr");return i.className="virtual-scroll-".concat(t),e&&(i.style.height="".concat(e,"px")),i.outerHTML}}]),t}(),hs=function(){function e(t,i){n(this,e),this.options=i,this.$el=y["default"](t),this.$el_=this.$el.clone(),this.timeoutId_=0,this.timeoutFooter_=0}return a(e,[{key:"init",value:function(){this.initConstants(),this.initLocale(),this.initContainer(),this.initTable(),this.initHeader(),this.initData(),this.initHiddenRows(),this.initToolbar(),this.initPagination(),this.initBody(),this.initSearchText(),this.initServer()}},{key:"initConstants",value:function(){var t=this.options;this.constants=Ka.CONSTANTS,this.constants.theme=y["default"].fn.bootstrapTable.theme,this.constants.dataToggle=this.constants.html.dataToggle||"data-toggle";var e=t.buttonsPrefix?"".concat(t.buttonsPrefix,"-"):"";this.constants.buttonsClass=[t.buttonsPrefix,e+t.buttonsClass,ss.sprintf("".concat(e,"%s"),t.iconSize)].join(" ").trim(),this.buttons=ss.calculateObjectValue(this,t.buttons,[],{}),"object"!==i(this.buttons)&&(this.buttons={}),"string"==typeof t.icons&&(t.icons=ss.calculateObjectValue(null,t.icons))}},{key:"initLocale",value:function(){if(this.options.locale){var t=y["default"].fn.bootstrapTable.locales,i=this.options.locale.split(/-|_/);i[0]=i[0].toLowerCase(),i[1]&&(i[1]=i[1].toUpperCase());var n={};t[this.options.locale]?n=t[this.options.locale]:t[i.join("-")]?n=t[i.join("-")]:t[i[0]]&&(n=t[i[0]]);for(var o=0,a=Object.entries(n);o
    ':"",e=["bottom","both"].includes(this.options.paginationVAlign)?'
    ':"",i=ss.calculateObjectValue(this.options,this.options.loadingTemplate,[this.options.formatLoadingMessage()]);this.$container=y["default"]('\n
    \n
    \n ').concat(t,'\n
    \n
    \n
    \n
    \n ').concat(i,'\n
    \n
    \n \n
    \n ').concat(e,"\n
    \n ")),this.$container.insertAfter(this.$el),this.$tableContainer=this.$container.find(".fixed-table-container"),this.$tableHeader=this.$container.find(".fixed-table-header"),this.$tableBody=this.$container.find(".fixed-table-body"),this.$tableLoading=this.$container.find(".fixed-table-loading"),this.$tableFooter=this.$el.find("tfoot"),this.options.buttonsToolbar?this.$toolbar=y["default"]("body").find(this.options.buttonsToolbar):this.$toolbar=this.$container.find(".fixed-table-toolbar"),this.$pagination=this.$container.find(".fixed-table-pagination"),this.$tableBody.append(this.$el),this.$container.after('
    '),this.$el.addClass(this.options.classes),this.$tableLoading.addClass(this.options.classes),this.options.striped&&this.$el.addClass("table-striped"),this.options.height&&(this.$tableContainer.addClass("fixed-height"),this.options.showFooter&&this.$tableContainer.addClass("has-footer"),this.options.classes.split(" ").includes("table-bordered")&&(this.$tableBody.append('
    '),this.$tableBorder=this.$tableBody.find(".fixed-table-border"),this.$tableLoading.addClass("fixed-table-border")),this.$tableFooter=this.$container.find(".fixed-table-footer"))}},{key:"initTable",value:function(){var t=this,i=[];if(this.$header=this.$el.find(">thead"),this.$header.length?this.options.theadClasses&&this.$header.addClass(this.options.theadClasses):this.$header=y["default"]('')).appendTo(this.$el),this._headerTrClasses=[],this._headerTrStyles=[],this.$header.find("tr").each(function(e,n){var o=y["default"](n),a=[];o.find("th").each(function(t,e){var i=y["default"](e);void 0!==i.data("field")&&i.data("field","".concat(i.data("field"))),a.push(y["default"].extend({},{title:i.html(),"class":i.attr("class"),titleTooltip:i.attr("title"),rowspan:i.attr("rowspan")?+i.attr("rowspan"):void 0,colspan:i.attr("colspan")?+i.attr("colspan"):void 0},i.data()))}),i.push(a),o.attr("class")&&t._headerTrClasses.push(o.attr("class")),o.attr("style")&&t._headerTrStyles.push(o.attr("style"))}),Array.isArray(this.options.columns[0])||(this.options.columns=[this.options.columns]),this.options.columns=y["default"].extend(!0,[],i,this.options.columns),this.columns=[],this.fieldsColumnsIndex=[],ss.setFieldIndex(this.options.columns),this.options.columns.forEach(function(i,n){i.forEach(function(i,o){var a=y["default"].extend({},e.COLUMN_DEFAULTS,i);void 0!==a.fieldIndex&&(t.columns[a.fieldIndex]=a,t.fieldsColumnsIndex[a.field]=a.fieldIndex),t.options.columns[n][o]=a})}),!this.options.data.length){var n=ss.trToData(this.columns,this.$el.find(">tbody>tr"));n.length&&(this.options.data=n,this.fromHtml=!0)}this.options.pagination&&"server"!==this.options.sidePagination||(this.footerData=ss.trToData(this.columns,this.$el.find(">tfoot>tr"))),this.footerData&&this.$el.find("tfoot").html(""),!this.options.showFooter||this.options.cardView?this.$tableFooter.hide():this.$tableFooter.show()}},{key:"initHeader",value:function(){var t=this,e={},i=[];this.header={fields:[],styles:[],classes:[],formatters:[],detailFormatters:[],events:[],sorters:[],sortNames:[],cellStyles:[],searchables:[]},ss.updateFieldGroup(this.options.columns),this.options.columns.forEach(function(n,o){var a=[];a.push(""));var r="";if(0===o&&ss.hasDetailViewIcon(t.options)){var l=t.options.columns.length>1?' rowspan="'.concat(t.options.columns.length,'"'):"";r='\n
    \n ')}r&&"right"!==t.options.detailViewAlign&&a.push(r),n.forEach(function(i,n){var r=ss.sprintf(' class="%s"',i["class"]),l=i.widthUnit,c=parseFloat(i.width),h=ss.sprintf("text-align: %s; ",i.halign?i.halign:i.align),u=ss.sprintf("text-align: %s; ",i.align),d=ss.sprintf("vertical-align: %s; ",i.valign);if(d+=ss.sprintf("width: %s; ",!i.checkbox&&!i.radio||c?c?c+l:void 0:i.showSelectTitle?void 0:"36px"),void 0!==i.fieldIndex||i.visible){var f=ss.calculateObjectValue(null,t.options.headerStyle,[i]),p=[],g="";if(f&&f.css){for(var v=0,b=Object.entries(f.css);v0?" data-not-first-th":"",">"),a.push(ss.sprintf('
    ',t.options.sortable&&i.sortable?"sortable both":""));var S=t.options.escape?ss.escapeHTML(i.title):i.title,x=S;i.checkbox&&(S="",!t.options.singleSelect&&t.options.checkboxHeader&&(S=''),t.header.stateField=i.field),i.radio&&(S="",t.header.stateField=i.field),!S&&i.showSelectTitle&&(S+=x),a.push(S),a.push("
    "),a.push('
    '),a.push("
    "),a.push("")}}),r&&"right"===t.options.detailViewAlign&&a.push(r),a.push(""),a.length>3&&i.push(a.join(""))}),this.$header.html(i.join("")),this.$header.find("th[data-field]").each(function(t,i){y["default"](i).data(e[y["default"](i).data("field")])}),this.$container.off("click",".th-inner").on("click",".th-inner",function(e){var i=y["default"](e.currentTarget);return t.options.detailView&&!i.parent().hasClass("bs-checkbox")&&i.closest(".bootstrap-table")[0]!==t.$container[0]?!1:void (t.options.sortable&&i.parent().data().sortable&&t.onSort(e))});var n=ss.getEventName("resize.bootstrap-table",this.$el.attr("id"));y["default"](window).off(n),!this.options.showHeader||this.options.cardView?(this.$header.hide(),this.$tableHeader.hide(),this.$tableLoading.css("top",0)):(this.$header.show(),this.$tableHeader.show(),this.$tableLoading.css("top",this.$header.outerHeight()+1),this.getCaret(),y["default"](window).on(n,function(){return t.resetView()})),this.$selectAll=this.$header.find('[name="btSelectAll"]'),this.$selectAll.off("click").on("click",function(e){e.stopPropagation();var i=y["default"](e.currentTarget).prop("checked");t[i?"checkAll":"uncheckAll"](),t.updateSelected()})}},{key:"initData",value:function(t,e){"append"===e?this.options.data=this.options.data.concat(t):"prepend"===e?this.options.data=[].concat(t).concat(this.options.data):(t=t||ss.deepCopy(this.options.data),this.options.data=Array.isArray(t)?t:t[this.options.dataField]),this.data=r(this.options.data),this.options.sortReset&&(this.unsortedData=r(this.data)),"server"!==this.options.sidePagination&&this.initSort()}},{key:"initSort",value:function(){var t=this,e=this.options.sortName,i="desc"===this.options.sortOrder?-1:1,n=this.header.fields.indexOf(this.options.sortName),o=0;-1!==n?(this.options.sortStable&&this.data.forEach(function(t,e){t.hasOwnProperty("_position")||(t._position=e)}),this.options.customSort?ss.calculateObjectValue(this.options,this.options.customSort,[this.options.sortName,this.options.sortOrder,this.data]):this.data.sort(function(o,a){t.header.sortNames[n]&&(e=t.header.sortNames[n]);var s=ss.getItemField(o,e,t.options.escape),r=ss.getItemField(a,e,t.options.escape),l=ss.calculateObjectValue(t.header,t.header.sorters[n],[s,r,o,a]);return void 0!==l?t.options.sortStable&&0===l?i*(o._position-a._position):i*l:ss.sort(s,r,i,t.options.sortStable,o._position,a._position)}),void 0!==this.options.sortClass&&(clearTimeout(o),o=setTimeout(function(){t.$el.removeClass(t.options.sortClass);var e=t.$header.find('[data-field="'.concat(t.options.sortName,'"]')).index();t.$el.find("tr td:nth-child(".concat(e+1,")")).addClass(t.options.sortClass)},250))):this.options.sortReset&&(this.data=r(this.unsortedData))}},{key:"onSort",value:function(t){var e=t.type,i=t.currentTarget,n="keypress"===e?y["default"](i):y["default"](i).parent(),o=this.$header.find("th").eq(n.index());if(this.$header.add(this.$header_).find("span.order").remove(),this.options.sortName===n.data("field")){var a=this.options.sortOrder;void 0===a?this.options.sortOrder="asc":"asc"===a?this.options.sortOrder="desc":"desc"===this.options.sortOrder&&(this.options.sortOrder=this.options.sortReset?void 0:"asc"),void 0===this.options.sortOrder&&(this.options.sortName=void 0)}else{this.options.sortName=n.data("field"),this.options.rememberOrder?this.options.sortOrder="asc"===n.data("order")?"desc":"asc":this.options.sortOrder=this.columns[this.fieldsColumnsIndex[n.data("field")]].sortOrder||this.columns[this.fieldsColumnsIndex[n.data("field")]].order}return this.trigger("sort",this.options.sortName,this.options.sortOrder),n.add(o).data("order",this.options.sortOrder),this.getCaret(),"server"===this.options.sidePagination&&this.options.serverSort?(this.options.pageNumber=1,void this.initServer(this.options.silentSort)):(this.initSort(),void this.initBody())}},{key:"initToolbar",value:function(){var t,e=this,n=this.options,o=[],a=0,r=0;this.$toolbar.find(".bs-bars").children().length&&y["default"]("body").append(y["default"](n.toolbar)),this.$toolbar.html(""),("string"==typeof n.toolbar||"object"===i(n.toolbar))&&y["default"](ss.sprintf('
    ',this.constants.classes.pull,n.toolbarAlign)).appendTo(this.$toolbar).append(y["default"](n.toolbar)),o=['
    ')],"string"==typeof n.buttonsOrder&&(n.buttonsOrder=n.buttonsOrder.replace(/\[|\]| |'/g,"").split(",")),this.buttons=Object.assign(this.buttons,{search:{text:n.formatSearch(),icon:n.icons.search,render:!1,event:this.toggleShowSearch,attributes:{"aria-label":n.formatShowSearch(),title:n.formatShowSearch()}},paginationSwitch:{text:n.pagination?n.formatPaginationSwitchUp():n.formatPaginationSwitchDown(),icon:n.pagination?n.icons.paginationSwitchDown:n.icons.paginationSwitchUp,render:!1,event:this.togglePagination,attributes:{"aria-label":n.formatPaginationSwitch(),title:n.formatPaginationSwitch()}},refresh:{text:n.formatRefresh(),icon:n.icons.refresh,render:!1,event:this.refresh,attributes:{"aria-label":n.formatRefresh(),title:n.formatRefresh()}},toggle:{text:n.formatToggle(),icon:n.icons.toggleOff,render:!1,event:this.toggleView,attributes:{"aria-label":n.formatToggleOn(),title:n.formatToggleOn()}},fullscreen:{text:n.formatFullscreen(),icon:n.icons.fullscreen,render:!1,event:this.toggleFullscreen,attributes:{"aria-label":n.formatFullscreen(),title:n.formatFullscreen()}},columns:{render:!1,html:function X(){var X=[];if(X.push('
    \n \n ").concat(e.constants.html.toolbarDropdown[0])),n.showColumnsSearch&&(X.push(ss.sprintf(e.constants.html.toolbarDropdownItem,ss.sprintf('',e.constants.classes.input,n.formatSearch()))),X.push(e.constants.html.toolbarDropdownSeparator)),n.showColumnsToggleAll){var t=e.getVisibleColumns().length===e.columns.filter(function(t){return !e.isSelectionColumn(t)}).length;X.push(ss.sprintf(e.constants.html.toolbarDropdownItem,ss.sprintf(' %s',t?'checked="checked"':"",n.formatColumnsToggleAll()))),X.push(e.constants.html.toolbarDropdownSeparator)}var i=0;return e.columns.forEach(function(t){t.visible&&i++}),e.columns.forEach(function(t,o){if(!e.isSelectionColumn(t)&&(!n.cardView||t.cardVisible)&&!t.ignore){var a=t.visible?' checked="checked"':"",s=i<=n.minimumCountColumns&&a?' disabled="disabled"':"";t.switchable&&(X.push(ss.sprintf(e.constants.html.toolbarDropdownItem,ss.sprintf(' %s',t.field,o,a,s,t.title))),r++)}}),X.push(e.constants.html.toolbarDropdown[1],"
    "),X.join("")}}});for(var l={},c=0,h=Object.entries(this.buttons);c"}l[d]=p;var x="show".concat(d.charAt(0).toUpperCase()).concat(d.substring(1)),k=n[x];!(!f.hasOwnProperty("render")||f.hasOwnProperty("render")&&f.render)||void 0!==k&&k!==!0||(n[x]=!0),n.buttonsOrder.includes(d)||n.buttonsOrder.push(d)}var O,T=v(n.buttonsOrder);try{for(T.s();!(O=T.n()).done;){var C=O.value,P=n["show".concat(C.charAt(0).toUpperCase()).concat(C.substring(1))];P&&o.push(l[C])}}catch(I){T.e(I)}finally{T.f()}o.push("
    "),(this.showToolbar||o.length>2)&&this.$toolbar.append(o.join("")),n.showSearch&&this.$toolbar.find('button[name="showSearch"]').off("click").on("click",function(){return e.toggleShowSearch()});for(var A=0,$=Object.entries(this.buttons);A<$.length;A++){var R=s($[A],2),E=R[0],j=R[1];if(j.hasOwnProperty("event")){if("function"==typeof j.event||"string"==typeof j.event){var _=function(){var t="string"==typeof j.event?window[j.event]:j.event;return e.$toolbar.find('button[name="'.concat(E,'"]')).off("click").on("click",function(){return t.call(e)}),"continue"}();if("continue"===_){continue}}for(var N=function(){var t=s(D[F],2),i=t[0],n=t[1],o="string"==typeof n?window[n]:n;e.$toolbar.find('button[name="'.concat(E,'"]')).off(i).on(i,function(){return o.call(e)})},F=0,D=Object.entries(j.event);F'),W=z;if(n.showSearchButton||n.showSearchClearButton){var G=(n.showSearchButton?U:"")+(n.showSearchClearButton?q:"");W=n.search?ss.sprintf(this.constants.html.inputGroup,z,G):G}o.push(ss.sprintf('\n
    \n %s\n
    \n '),W)),this.$toolbar.append(o.join(""));var K=ss.getSearchInput(this);n.showSearchButton?(this.$toolbar.find(".search button[name=search]").off("click").on("click",function(){clearTimeout(a),a=setTimeout(function(){e.onSearch({currentTarget:K})},n.searchTimeOut)}),n.searchOnEnterKey&&M(K)):M(K),n.showSearchClearButton&&this.$toolbar.find(".search button[name=clearSearch]").click(function(){e.resetSearch()})}else{if("string"==typeof n.searchSelector){var Y=ss.getSearchInput(this);M(Y)}}}},{key:"onSearch",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.currentTarget,i=t.firedByInitSearchText,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:!0;if(void 0!==e&&y["default"](e).length&&n){var o=y["default"](e).val().trim();if(this.options.trimOnSearch&&y["default"](e).val()!==o&&y["default"](e).val(o),this.searchText===o){return}var a=ss.getSearchInput(this),s=e instanceof jQuery?e:y["default"](e);(s.is(a)||s.hasClass("search-input"))&&(this.searchText=o,this.options.searchText=o)}i||(this.options.pageNumber=1),this.initSearch(),i?"client"===this.options.sidePagination&&this.updatePagination():this.updatePagination(),this.trigger("search",this.searchText)}},{key:"initSearch",value:function(){var t=this;if(this.filterOptions=this.filterOptions||this.options.filterOptions,"server"!==this.options.sidePagination){if(this.options.customSearch){return this.data=ss.calculateObjectValue(this.options,this.options.customSearch,[this.options.data,this.searchText,this.filterColumns]),void (this.options.sortReset&&(this.unsortedData=r(this.data)))}var e=this.searchText&&(this.fromHtml?ss.escapeHTML(this.searchText):this.searchText),i=e?e.toLowerCase():"",n=ss.isEmptyObject(this.filterColumns)?null:this.filterColumns;this.options.searchAccentNeutralise&&(i=ss.normalizeAccent(i)),"function"==typeof this.filterOptions.filterAlgorithm?this.data=this.options.data.filter(function(e){return t.filterOptions.filterAlgorithm.apply(null,[e,n])}):"string"==typeof this.filterOptions.filterAlgorithm&&(this.data=n?this.options.data.filter(function(e){var i=t.filterOptions.filterAlgorithm;if("and"===i){for(var o in n){if(Array.isArray(n[o])&&!n[o].includes(e[o])||!Array.isArray(n[o])&&e[o]!==n[o]){return !1}}}else{if("or"===i){var a=!1;for(var s in n){(Array.isArray(n[s])&&n[s].includes(e[s])||!Array.isArray(n[s])&&e[s]===n[s])&&(a=!0)}return a}}return !0}):r(this.options.data));var o=this.getVisibleFields();this.data=i?this.data.filter(function(n,a){for(var s=0;s|=<|>=|>|<)(?:\s+)?(-?\d+)?|(-?\d+)?(\s+)?(<=|=>|=<|>=|>|<))/gm,f=d.exec(t.searchText),p=!1;if(f){var g=f[1]||"".concat(f[5],"l"),v=f[2]||f[3],b=parseInt(c,10),m=parseInt(v,10);switch(g){case">":case"m;break;case"<":case">l":p=m>b;break;case"<=":case"=<":case">=l":case"=>l":p=m>=b;break;case">=":case"=>":case"<=l":case"==m}}if(p||"".concat(c).toLowerCase().includes(i)){return !0}}}}return !1}):this.data,this.options.sortReset&&(this.unsortedData=r(this.data)),this.initSort()}}},{key:"initPagination",value:function(){var e=this,i=this.options;if(!i.pagination){return void this.$pagination.hide()}this.$pagination.show();var n,o,a,s,r,l,c,h=[],u=!1,d=this.getData({includeHiddenRows:!1}),f=i.pageList;if("string"==typeof f&&(f=f.replace(/\[|\]| /g,"").toLowerCase().split(",")),f=f.map(function(t){return"string"==typeof t?t.toLowerCase()===i.formatAllRows().toLowerCase()||["all","unlimited"].includes(t.toLowerCase())?i.formatAllRows():+t:t}),this.paginationParts=i.paginationParts,"string"==typeof this.paginationParts&&(this.paginationParts=this.paginationParts.replace(/\[|\]| |'/g,"").split(",")),"server"!==i.sidePagination&&(i.totalRows=d.length),this.totalPages=0,i.totalRows&&(i.pageSize===i.formatAllRows()&&(i.pageSize=i.totalRows,u=!0),this.totalPages=~~((i.totalRows-1)/i.pageSize)+1,i.totalPages=this.totalPages),this.totalPages>0&&i.pageNumber>this.totalPages&&(i.pageNumber=this.totalPages),this.pageFrom=(i.pageNumber-1)*i.pageSize+1,this.pageTo=i.pageNumber*i.pageSize,this.pageTo>i.totalRows&&(this.pageTo=i.totalRows),this.options.pagination&&"server"!==this.options.sidePagination&&(this.options.totalNotFiltered=this.options.data.length),this.options.showExtendedPagination||(this.options.totalNotFiltered=void 0),(this.paginationParts.includes("pageInfo")||this.paginationParts.includes("pageInfoShort")||this.paginationParts.includes("pageSize"))&&h.push('
    ')),this.paginationParts.includes("pageInfo")||this.paginationParts.includes("pageInfoShort")){var p=this.paginationParts.includes("pageInfoShort")?i.formatDetailPagination(i.totalRows):i.formatShowingRows(this.pageFrom,this.pageTo,i.totalRows,i.totalNotFiltered);h.push('\n '.concat(p,"\n "))}if(this.paginationParts.includes("pageSize")){h.push('
    ');var g=['
    \n \n ").concat(this.constants.html.pageDropdown[0])];f.forEach(function(t,n){if(!i.smartDisplay||0===n||f[n-1]")),h.push(i.formatRecordsPerPage(g.join("")))}if((this.paginationParts.includes("pageInfo")||this.paginationParts.includes("pageInfoShort")||this.paginationParts.includes("pageSize"))&&h.push("
    "),this.paginationParts.includes("pageList")){h.push('
    '),ss.sprintf(this.constants.html.pagination[0],ss.sprintf(" pagination-%s",i.iconSize)),ss.sprintf(this.constants.html.paginationItem," page-pre",i.formatSRPaginationPreText(),i.paginationPreText)),this.totalPagesthis.totalPages-o&&(o=o-(i.paginationSuccessivelySize-(this.totalPages-o))+1),1>o&&(o=1),a>this.totalPages&&(a=this.totalPages);var v=Math.round(i.paginationPagesBySide/2),b=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return ss.sprintf(e.constants.html.paginationItem,n+(t===i.pageNumber?" ".concat(e.constants.classes.paginationActive):""),i.formatSRPaginationPageText(t),t)};if(o>1){var m=i.paginationPagesBySide;for(m>=o&&(m=o-1),n=1;m>=n;n++){h.push(b(n))}o-1===m+1?(n=o-1,h.push(b(n))):o-1>m&&(o-2*i.paginationPagesBySide>i.paginationPagesBySide&&i.paginationUseIntermediate?(n=Math.round((o-v)/2+v),h.push(b(n," page-intermediate"))):h.push(ss.sprintf(this.constants.html.paginationItem," page-first-separator disabled","","...")))}for(n=o;a>=n;n++){h.push(b(n))}if(this.totalPages>a){var y=this.totalPages-(i.paginationPagesBySide-1);for(a>=y&&(y=a+1),a+1===y-1?(n=a+1,h.push(b(n))):y>a+1&&(this.totalPages-a>2*i.paginationPagesBySide&&i.paginationUseIntermediate?(n=Math.round((this.totalPages-v-a)/2+a),h.push(b(n," page-intermediate"))):h.push(ss.sprintf(this.constants.html.paginationItem," page-last-separator disabled","","..."))),n=y;n<=this.totalPages;n++){h.push(b(n))}}h.push(ss.sprintf(this.constants.html.paginationItem," page-next",i.formatSRPaginationNextText(),i.paginationNextText)),h.push(this.constants.html.pagination[1],"
    ")}this.$pagination.html(h.join(""));var w=["bottom","both"].includes(i.paginationVAlign)?" ".concat(this.constants.classes.dropup):"";if(this.$pagination.last().find(".page-list > div").addClass(w),!i.onlyInfoPagination&&(s=this.$pagination.find(".page-list a"),r=this.$pagination.find(".page-pre"),l=this.$pagination.find(".page-next"),c=this.$pagination.find(".page-item").not(".page-next, .page-pre, .page-last-separator, .page-first-separator"),this.totalPages<=1&&this.$pagination.find("div.pagination").hide(),i.smartDisplay&&(f.length<2||i.totalRows<=f[0])&&this.$pagination.find("div.page-list").hide(),this.$pagination[this.getData().length?"show":"hide"](),i.paginationLoop||(1===i.pageNumber&&r.addClass("disabled"),i.pageNumber===this.totalPages&&l.addClass("disabled")),u&&(i.pageSize=i.formatAllRows()),s.off("click").on("click",function(t){return e.onPageListChange(t)}),r.off("click").on("click",function(t){return e.onPagePre(t)}),l.off("click").on("click",function(t){return e.onPageNext(t)}),c.off("click").on("click",function(t){return e.onPageNumber(t)}),this.options.showPageGo)){var S=this,x=this.$pagination.find("ul.pagination"),k=x.find("li.pageGo");k.length||(k=t('
  • '+ss.sprintf('',this.options.pageNumber)+('
  • ").appendTo(x),k.find("button").click(function(){var t=parseInt(k.find("input").val())||1;(1>t||t>S.options.totalPages)&&(t=1),S.selectPage(t)}))}}},{key:"updatePagination",value:function(t){t&&y["default"](t.currentTarget).hasClass("disabled")||(this.options.maintainMetaData||this.resetRows(),this.initPagination(),this.trigger("page-change",this.options.pageNumber,this.options.pageSize),"server"===this.options.sidePagination?this.initServer():this.initBody())}},{key:"onPageListChange",value:function(t){t.preventDefault();var e=y["default"](t.currentTarget);return e.parent().addClass(this.constants.classes.dropdownActive).siblings().removeClass(this.constants.classes.dropdownActive),this.options.pageSize=e.text().toUpperCase()===this.options.formatAllRows().toUpperCase()?this.options.formatAllRows():+e.text(),this.$toolbar.find(".page-size").text(this.options.pageSize),this.updatePagination(t),!1}},{key:"onPagePre",value:function(t){return y["default"](t.target).hasClass("disabled")?void 0:(t.preventDefault(),this.options.pageNumber-1===0?this.options.pageNumber=this.options.totalPages:this.options.pageNumber--,this.updatePagination(t),!1)}},{key:"onPageNext",value:function(t){return y["default"](t.target).hasClass("disabled")?void 0:(t.preventDefault(),this.options.pageNumber+1>this.options.totalPages?this.options.pageNumber=1:this.options.pageNumber++,this.updatePagination(t),!1)}},{key:"onPageNumber",value:function(t){return t.preventDefault(),this.options.pageNumber!==+y["default"](t.currentTarget).text()?(this.options.pageNumber=+y["default"](t.currentTarget).text(),this.updatePagination(t),!1):void 0}},{key:"initRow",value:function(t,e,n,o){var a=this,r=[],l={},c=[],h="",u={},d=[];if(!(ss.findIndex(this.hiddenRows,t)>-1)){if(l=ss.calculateObjectValue(this.options,this.options.rowStyle,[t,e],l),l&&l.css){for(var f=0,p=Object.entries(l.css);f"),this.options.cardView&&r.push('
    '));var I="";return ss.hasDetailViewIcon(this.options)&&(I="",ss.calculateObjectValue(null,this.options.detailFilter,[e,t])&&(I+='\n \n '.concat(ss.sprintf(this.constants.html.icon,this.options.iconsPrefix,this.options.icons.detailOpen),"\n \n ")),I+=""),I&&"right"!==this.options.detailViewAlign&&r.push(I),this.header.fields.forEach(function(i,n){var o="",l=ss.getItemField(t,i,a.options.escape),h="",u="",d={},f="",p=a.header.classes[n],g="",v="",b="",m="",y="",w="",S=a.columns[n];if((!a.fromHtml&&!a.autoMergeCells||void 0!==l||S.checkbox||S.radio)&&S.visible&&(!a.options.cardView||S.cardVisible)){if(S.escape&&(l=ss.escapeHTML(l)),c.concat([a.header.styles[n]]).length&&(v+="".concat(c.concat([a.header.styles[n]]).join("; "))),t["_".concat(i,"_style")]&&(v+="".concat(t["_".concat(i,"_style")])),v&&(g=' style="'.concat(v,'"')),t["_".concat(i,"_id")]&&(f=ss.sprintf(' id="%s"',t["_".concat(i,"_id")])),t["_".concat(i,"_class")]&&(p=ss.sprintf(' class="%s"',t["_".concat(i,"_class")])),t["_".concat(i,"_rowspan")]&&(m=ss.sprintf(' rowspan="%s"',t["_".concat(i,"_rowspan")])),t["_".concat(i,"_colspan")]&&(y=ss.sprintf(' colspan="%s"',t["_".concat(i,"_colspan")])),t["_".concat(i,"_title")]&&(w=ss.sprintf(' title="%s"',t["_".concat(i,"_title")])),d=ss.calculateObjectValue(a.header,a.header.cellStyles[n],[l,t,e,i],d),d.classes&&(p=' class="'.concat(d.classes,'"')),d.css){for(var x=[],k=0,O=Object.entries(d.css);k$1",R=h&&/<(?=.*? .*?\/ ?>|br|hr|input|!--|wbr)[a-z]+.*?>|<([a-z]+).*?<\/\1>/i.test(h);if(R){var E=(new DOMParser).parseFromString(""+h,"text/html").documentElement.textContent,j=E.replace(A,$);E=E.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),I=h.replace(RegExp("(>\\s*)(".concat(E,")(\\s*)"),"gm"),"$1".concat(j,"$3"))}else{I=(""+h).replace(A,$)}h=ss.calculateObjectValue(S,S.searchHighlightFormatter,[h,a.searchText],I)}if(t["_".concat(i,"_data")]&&!ss.isEmptyObject(t["_".concat(i,"_data")])){for(var _=0,N=Object.entries(t["_".concat(i,"_data")]);_'):'"))+'")+(a.header.formatters[n]&&"string"==typeof h?h:"")+(a.options.cardView?"
    ":""),t[a.header.stateField]=h===!0||!!l||h&&h.checked}else{if(a.options.cardView){var M=a.options.showHeader?'").concat(ss.getFieldTitle(a.columns,i),""):"";o='
    '.concat(M,'").concat(h,"
    "),a.options.smartDisplay&&""===h&&(o='
    ')}else{o="").concat(h,"")}}r.push(o)}}),I&&"right"===this.options.detailViewAlign&&r.push(I),this.options.cardView&&r.push("
    "),r.push(""),r.join("")}}},{key:"initBody",value:function(t,e){var i=this,n=this.getData();this.trigger("pre-body",n),this.$body=this.$el.find(">tbody"),this.$body.length||(this.$body=y["default"]("").appendTo(this.$el)),this.options.pagination&&"server"!==this.options.sidePagination||(this.pageFrom=1,this.pageTo=n.length);var o=[],a=y["default"](document.createDocumentFragment()),s=!1,r=[];this.autoMergeCells=ss.checkAutoMergeCells(n.slice(this.pageFrom-1,this.pageTo));for(var l=this.pageFrom-1;l tr[data-uniqueid="%s"][data-has-detail-view]',d)),p=f.next();p.is("tr.detail-view")&&(r.push(l),e&&d===e||(h+=p[0].outerHTML))}this.options.virtualScroll?o.push(h):a.append(h)}}s?this.options.virtualScroll?(this.virtualScroll&&this.virtualScroll.destroy(),this.virtualScroll=new cs({rows:o,fixedScroll:t,scrollEl:this.$tableBody[0],contentEl:this.$body[0],itemHeight:this.options.virtualScrollItemHeight,callback:function(t,e){i.fitHeader(),i.initBodyEvent(),i.trigger("virtual-scroll",t,e)}})):this.$body.html(a):this.$body.html(''.concat(ss.sprintf('%s',this.getVisibleFields().length+ss.getDetailViewIndexOffset(this.options),this.options.formatNoMatches()),"")),r.forEach(function(t){i.expandRow(t)}),t||this.scrollTo(0),this.initBodyEvent(),this.initFooter(),this.resetView(),this.updateSelected(),"server"!==this.options.sidePagination&&(this.options.totalRows=n.length),this.trigger("post-body",n)}},{key:"initBodyEvent",value:function(){var t=this;this.$body.find("> tr[data-index] > td").off("click dblclick").on("click dblclick",function(e){var i=y["default"](e.currentTarget),n=i.parent(),o=y["default"](e.target).parents(".card-views").children(),a=y["default"](e.target).parents(".card-view"),s=n.data("index"),r=t.data[s],l=t.options.cardView?o.index(a):i[0].cellIndex,c=t.getVisibleFields(),h=c[l-ss.getDetailViewIndexOffset(t.options)],u=t.columns[t.fieldsColumnsIndex[h]],d=ss.getItemField(r,h,t.options.escape);if(!i.find(".detail-icon").length){if(t.trigger("click"===e.type?"click-cell":"dbl-click-cell",h,d,r,i),t.trigger("click"===e.type?"click-row":"dbl-click-row",r,n,h),"click"===e.type&&t.options.clickToSelect&&u.clickToSelect&&!ss.calculateObjectValue(t.options,t.options.ignoreClickToSelectOn,[e.target])){var f=n.find(ss.sprintf('[name="%s"]',t.options.selectItemName));f.length&&f[0].click()}"click"===e.type&&t.options.detailViewByClick&&t.toggleDetailView(s,t.header.detailFormatters[t.fieldsColumnsIndex[h]])}}).off("mousedown").on("mousedown",function(e){t.multipleSelectRowCtrlKey=e.ctrlKey||e.metaKey,t.multipleSelectRowShiftKey=e.shiftKey}),this.$body.find("> tr[data-index] > td > .detail-icon").off("click").on("click",function(e){return e.preventDefault(),t.toggleDetailView(y["default"](e.currentTarget).parent().parent().data("index")),!1}),this.$selectItem=this.$body.find(ss.sprintf('[name="%s"]',this.options.selectItemName)),this.$selectItem.off("click").on("click",function(e){e.stopImmediatePropagation();var i=y["default"](e.currentTarget);t._toggleCheck(i.prop("checked"),i.data("index"))}),this.header.events.forEach(function(e,i){var n=e;if(n){"string"==typeof n&&(n=ss.calculateObjectValue(null,n));var o=t.header.fields[i],a=t.getVisibleFields().indexOf(o);if(-1!==a){a+=ss.getDetailViewIndexOffset(t.options);var s=function(e){if(!n.hasOwnProperty(e)){return"continue"}var i=n[e];t.$body.find(">tr:not(.no-records-found)").each(function(n,s){var r=y["default"](s),l=r.find(t.options.cardView?".card-views>.card-view":">td").eq(a),c=e.indexOf(" "),h=e.substring(0,c),u=e.substring(c+1);l.find(u).off(h).on(h,function(e){var n=r.data("index"),a=t.data[n],s=a[o];i.apply(t,[e,s,a,n])})})};for(var r in n){s(r)}}}})}},{key:"initServer",value:function(t,e,i){var n=this,o={},a=this.header.fields.indexOf(this.options.sortName),s={searchText:this.searchText,sortName:this.options.sortName,sortOrder:this.options.sortOrder};if(this.header.sortNames[a]&&(s.sortName=this.header.sortNames[a]),this.options.pagination&&"server"===this.options.sidePagination&&(s.pageSize=this.options.pageSize===this.options.formatAllRows()?this.options.totalRows:this.options.pageSize,s.pageNumber=this.options.pageNumber),!this.options.firstLoad&&!firstLoadTable.includes(this.options.id)){return void firstLoadTable.push(this.options.id)}if(i||this.options.url||this.options.ajax){if("limit"===this.options.queryParamsType&&(s={search:s.searchText,sort:s.sortName,order:s.sortOrder},this.options.pagination&&"server"===this.options.sidePagination&&(s.offset=this.options.pageSize===this.options.formatAllRows()?0:this.options.pageSize*(this.options.pageNumber-1),s.limit=this.options.pageSize,(0===s.limit||this.options.pageSize===this.options.formatAllRows())&&delete s.limit)),this.options.search&&"server"===this.options.sidePagination&&this.columns.filter(function(t){return !t.searchable}).length){s.searchable=[];var r,l=v(this.columns);try{for(l.s();!(r=l.n()).done;){var c=r.value;!c.checkbox&&c.searchable&&(this.options.visibleSearch&&c.visible||!this.options.visibleSearch)&&s.searchable.push(c.field)}}catch(h){l.e(h)}finally{l.f()}}if(ss.isEmptyObject(this.filterColumnsPartial)||(s.filter=JSON.stringify(this.filterColumnsPartial,null)),y["default"].extend(s,e||{}),o=ss.calculateObjectValue(this.options,this.options.queryParams,[s],o),o!==!1){t||this.showLoading();var u=y["default"].extend({},ss.calculateObjectValue(null,this.options.ajaxOptions),{type:this.options.method,url:i||this.options.url,data:"application/json"===this.options.contentType&&"post"===this.options.method?JSON.stringify(o):o,cache:this.options.cache,contentType:this.options.contentType,dataType:this.options.dataType,success:function(e,i,o){var a=ss.calculateObjectValue(n.options,n.options.responseHandler,[e,o],e);n.load(a),n.trigger("load-success",a,o&&o.status,o),t||n.hideLoading(),"server"===n.options.sidePagination&&n.options.pageNumber>1&&a[n.options.totalField]>0&&!a[n.options.dataField].length&&n.updatePagination()},error:function(e){if(e&&0===e.status&&n._xhrAbort){return void (n._xhrAbort=!1)}var i=[];"server"===n.options.sidePagination&&(i={},i[n.options.totalField]=0,i[n.options.dataField]=[]),n.load(i),n.trigger("load-error",e&&e.status,e),t||n.$tableLoading.hide()}});return this.options.ajax?ss.calculateObjectValue(this,this.options.ajax,[u],null):(this._xhr&&4!==this._xhr.readyState&&(this._xhrAbort=!0,this._xhr.abort()),this._xhr=y["default"].ajax(u)),o}}}},{key:"initSearchText",value:function(){if(this.options.search&&(this.searchText="",""!==this.options.searchText)){var t=ss.getSearchInput(this);t.val(this.options.searchText),this.onSearch({currentTarget:t,firedByInitSearchText:!0})}}},{key:"getCaret",value:function(){var t=this;this.$header.find("th").each(function(e,i){y["default"](i).find(".sortable").removeClass("desc asc").addClass(y["default"](i).data("field")===t.options.sortName?t.options.sortOrder:"both")})}},{key:"updateSelected",value:function(){var t=this.$selectItem.filter(":enabled").length&&this.$selectItem.filter(":enabled").length===this.$selectItem.filter(":enabled").filter(":checked").length;this.$selectAll.add(this.$selectAll_).prop("checked",t),this.$selectItem.each(function(t,e){y["default"](e).closest("tr")[y["default"](e).prop("checked")?"addClass":"removeClass"]("selected")})}},{key:"updateRows",value:function(){var t=this;this.$selectItem.each(function(e,i){t.data[y["default"](i).data("index")][t.header.stateField]=y["default"](i).prop("checked")})}},{key:"resetRows",value:function(){var t,e=v(this.data);try{for(e.s();!(t=e.n()).done;){var i=t.value;this.$selectAll.prop("checked",!1),this.$selectItem.prop("checked",!1),this.header.stateField&&(i[this.header.stateField]=!1)}}catch(n){e.e(n)}finally{e.f()}this.initHiddenRows()}},{key:"trigger",value:function(t){for(var i,n,o="".concat(t,".bs.table"),a=arguments.length,s=Array(a>1?a-1:0),r=1;a>r;r++){s[r-1]=arguments[r]}(i=this.options)[e.EVENTS[o]].apply(i,[].concat(s,[this])),this.$el.trigger(y["default"].Event(o,{sender:this}),s),(n=this.options).onAll.apply(n,[o].concat([].concat(s,[this]))),this.$el.trigger(y["default"].Event("all.bs.table",{sender:this}),[o,s])}},{key:"resetHeader",value:function(){var t=this;clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(function(){return t.fitHeader()},this.$el.is(":hidden")?100:0)}},{key:"fitHeader",value:function(){var t=this;if(this.$el.is(":hidden")){return void (this.timeoutId_=setTimeout(function(){return t.fitHeader()},100))}var e=this.$tableBody.get(0),i=e.scrollWidth>e.clientWidth&&e.scrollHeight>e.clientHeight+this.$header.outerHeight()?ss.getScrollBarWidth():0;this.$el.css("margin-top",-this.$header.outerHeight());var n=y["default"](":focus");if(n.length>0){var o=n.parents("th");if(o.length>0){var a=o.attr("data-field");if(void 0!==a){var s=this.$header.find("[data-field='".concat(a,"']"));s.length>0&&s.find(":input").addClass("focus-temp")}}}this.$header_=this.$header.clone(!0,!0),this.$selectAll_=this.$header_.find('[name="btSelectAll"]'),this.$tableHeader.css("margin-right",i).find("table").css("width",this.$el.outerWidth()).html("").attr("class",this.$el.attr("class")).append(this.$header_),this.$tableLoading.css("width",this.$el.outerWidth());var r=y["default"](".focus-temp:visible:eq(0)");r.length>0&&(r.focus(),this.$header.find(".focus-temp").removeClass("focus-temp")),this.$header.find("th[data-field]").each(function(e,i){t.$header_.find(ss.sprintf('th[data-field="%s"]',y["default"](i).data("field"))).data(y["default"](i).data())});for(var l=this.getVisibleFields(),c=this.$header_.find("th"),h=this.$body.find(">tr:not(.no-records-found,.virtual-scroll-top)").eq(0);h.length&&h.find('>td[colspan]:not([colspan="1"])').length;){h=h.next()}var u=h.find("> *").length;h.find("> *").each(function(e,i){var n=y["default"](i);if(ss.hasDetailViewIcon(t.options)&&(0===e&&"right"!==t.options.detailViewAlign||e===u-1&&"right"===t.options.detailViewAlign)){var o=c.filter(".detail"),a=o.innerWidth()-o.find(".fht-cell").width();return void o.find(".fht-cell").width(n.innerWidth()-a)}var s=e-ss.getDetailViewIndexOffset(t.options),r=t.$header_.find(ss.sprintf('th[data-field="%s"]',l[s]));r.length>1&&(r=y["default"](c[n[0].cellIndex]));var h=r.innerWidth()-r.find(".fht-cell").width();r.find(".fht-cell").width(n.innerWidth()-h)}),this.horizontalScroll(),this.trigger("post-header")}},{key:"initFooter",value:function(){if(this.options.showFooter&&!this.options.cardView){var t=this.getData(),e=[],i="";ss.hasDetailViewIcon(this.options)&&(i='
    '),i&&"right"!==this.options.detailViewAlign&&e.push(i);var n,o=v(this.columns);try{for(o.s();!(n=o.n()).done;){var a=n.value,r="",l="",c=[],h={},u=ss.sprintf(' class="%s"',a["class"]);if(a.visible&&(!(this.footerData&&this.footerData.length>0)||a.field in this.footerData[0])){if(this.options.cardView&&!a.cardVisible){return}if(r=ss.sprintf("text-align: %s; ",a.falign?a.falign:a.align),l=ss.sprintf("vertical-align: %s; ",a.valign),h=ss.calculateObjectValue(null,this.options.footerStyle,[a]),h&&h.css){for(var d=0,f=Object.entries(h.css);d0&&(m=this.footerData[0]["_".concat(a.field,"_colspan")]||0),m&&e.push(' colspan="'.concat(m,'" ')),e.push(">"),e.push('
    ');var y="";this.footerData&&this.footerData.length>0&&(y=this.footerData[0][a.field]||""),e.push(ss.calculateObjectValue(a,a.footerFormatter,[t,y],y)),e.push("
    "),e.push('
    '),e.push("
    "),e.push("")}}}catch(w){o.e(w)}finally{o.f()}i&&"right"===this.options.detailViewAlign&&e.push(i),this.options.height||this.$tableFooter.length||(this.$el.append(""),this.$tableFooter=this.$el.find("tfoot")),this.$tableFooter.find("tr").length||this.$tableFooter.html("
    "),this.$tableFooter.find("tr").html(e.join("")),this.trigger("post-footer",this.$tableFooter)}}},{key:"fitFooter",value:function(){var t=this;if(this.$el.is(":hidden")){return void setTimeout(function(){return t.fitFooter()},100)}var e=this.$tableBody.get(0),i=e.scrollWidth>e.clientWidth&&e.scrollHeight>e.clientHeight+this.$header.outerHeight()?ss.getScrollBarWidth():0;this.$tableFooter.css("margin-right",i).find("table").css("width",this.$el.outerWidth()).attr("class",this.$el.attr("class"));var n=this.$tableFooter.find("th"),o=this.$body.find(">tr:first-child:not(.no-records-found)");for(n.find(".fht-cell").width("auto");o.length&&o.find('>td[colspan]:not([colspan="1"])').length;){o=o.next()}var a=o.find("> *").length;o.find("> *").each(function(e,i){var o=y["default"](i);if(ss.hasDetailViewIcon(t.options)&&(0===e&&"left"===t.options.detailViewAlign||e===a-1&&"right"===t.options.detailViewAlign)){var s=n.filter(".detail"),r=s.innerWidth()-s.find(".fht-cell").width();return void s.find(".fht-cell").width(o.innerWidth()-r)}var l=n.eq(e),c=l.innerWidth()-l.find(".fht-cell").width();l.find(".fht-cell").width(o.innerWidth()-c)}),this.horizontalScroll()}},{key:"horizontalScroll",value:function(){var t=this;this.$tableBody.off("scroll").on("scroll",function(){var e=t.$tableBody.scrollLeft();t.options.showHeader&&t.options.height&&t.$tableHeader.scrollLeft(e),t.options.showFooter&&!t.options.cardView&&t.$tableFooter.scrollLeft(e),t.trigger("scroll-body",t.$tableBody)})}},{key:"getVisibleFields",value:function(){var t,e=[],i=v(this.header.fields);try{for(i.s();!(t=i.n()).done;){var n=t.value,o=this.columns[this.fieldsColumnsIndex[n]];o&&o.visible&&e.push(n)}}catch(a){i.e(a)}finally{i.f()}return e}},{key:"initHiddenRows",value:function(){this.hiddenRows=[]}},{key:"getOptions",value:function(){var t=y["default"].extend({},this.options);return delete t.data,y["default"].extend(!0,{},t)}},{key:"refreshOptions",value:function(t){ss.compareObjects(this.options,t,!0)||(this.options=y["default"].extend(this.options,t),this.trigger("refresh-options",this.options),this.destroy(),this.init())}},{key:"getData",value:function(t){var e=this,i=this.options.data;if(!(this.searchText||this.options.customSearch||void 0!==this.options.sortName||this.enableCustomSort)&&ss.isEmptyObject(this.filterColumns)&&ss.isEmptyObject(this.filterColumnsPartial)||t&&t.unfiltered||(i=this.data),t&&t.useCurrentPage&&(i=i.slice(this.pageFrom-1,this.pageTo)),t&&!t.includeHiddenRows){var n=this.getHiddenRows();i=i.filter(function(t){return -1===ss.findIndex(n,t)})}return t&&t.formatted&&i.forEach(function(t){for(var i=0,n=Object.entries(t);i=0;i--){var n=this.options.data[i];(n.hasOwnProperty(t.field)||"$index"===t.field)&&(!n.hasOwnProperty(t.field)&&"$index"===t.field&&t.values.includes(i)||t.values.includes(n[t.field]))&&(e++,this.options.data.splice(i,1))}e&&("server"===this.options.sidePagination&&(this.options.totalRows-=e,this.data=r(this.options.data)),this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0))}},{key:"removeAll",value:function(){this.options.data.length>0&&(this.options.data.splice(0,this.options.data.length),this.initSearch(),this.initPagination(),this.initBody(!0))}},{key:"insertRow",value:function(t){t.hasOwnProperty("index")&&t.hasOwnProperty("row")&&(this.options.data.splice(t.index,0,t.row),this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0))}},{key:"updateRow",value:function(t){var e,i=Array.isArray(t)?t:[t],n=v(i);try{for(n.s();!(e=n.n()).done;){var o=e.value;o.hasOwnProperty("index")&&o.hasOwnProperty("row")&&(o.hasOwnProperty("replace")&&o.replace?this.options.data[o.index]=o.row:y["default"].extend(this.options.data[o.index],o.row))}}catch(a){n.e(a)}finally{n.f()}this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0)}},{key:"getRowByUniqueId",value:function(t){var e,i,n,o=this.options.uniqueId,a=this.options.data.length,s=t,r=null;for(e=a-1;e>=0;e--){if(i=this.options.data[e],i.hasOwnProperty(o)){n=i[o]}else{if(!i._data||!i._data.hasOwnProperty(o)){continue}n=i._data[o]}if("string"==typeof n?s=""+s:"number"==typeof n&&(+n===n&&n%1===0?s=parseInt(s,10):n===+n&&0!==n&&(s=parseFloat(s))),n===s){r=i;break}}return r}},{key:"updateByUniqueId",value:function(t){var e,i=Array.isArray(t)?t:[t],n=null,o=v(i);try{for(o.s();!(e=o.n()).done;){var a=e.value;if(a.hasOwnProperty("id")&&a.hasOwnProperty("row")){var s=this.options.data.indexOf(this.getRowByUniqueId(a.id));-1!==s&&(a.hasOwnProperty("replace")&&a.replace?this.options.data[s]=a.row:y["default"].extend(this.options.data[s],a.row),n=a.id)}}}catch(r){o.e(r)}finally{o.f()}this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0,n)}},{key:"removeByUniqueId",value:function(t){var e=this.options.data.length,i=this.getRowByUniqueId(t);i&&this.options.data.splice(this.options.data.indexOf(i),1),e!==this.options.data.length&&("server"===this.options.sidePagination&&(this.options.totalRows-=1,this.data=r(this.options.data)),this.initSearch(),this.initPagination(),this.initBody(!0))}},{key:"updateCell",value:function(t){t.hasOwnProperty("index")&&t.hasOwnProperty("field")&&t.hasOwnProperty("value")&&(this.data[t.index][t.field]=t.value,t.reinit!==!1&&(this.initSort(),this.initBody(!0)))}},{key:"updateCellByUniqueId",value:function(t){var e=this,i=Array.isArray(t)?t:[t];i.forEach(function(t){var i=t.id,n=t.field,o=t.value,a=e.options.data.indexOf(e.getRowByUniqueId(i));-1!==a&&(e.options.data[a][n]=o)}),t.reinit!==!1&&(this.initSort(),this.initBody(!0))}},{key:"showRow",value:function(t){this._toggleRow(t,!0)}},{key:"hideRow",value:function(t){this._toggleRow(t,!1)}},{key:"_toggleRow",value:function(t,e){var i;if(t.hasOwnProperty("index")?i=this.getData()[t.index]:t.hasOwnProperty("uniqueId")&&(i=this.getRowByUniqueId(t.uniqueId)),i){var n=ss.findIndex(this.hiddenRows,i);e||-1!==n?e&&n>-1&&this.hiddenRows.splice(n,1):this.hiddenRows.push(i),this.initBody(!0),this.initPagination()}}},{key:"getHiddenRows",value:function(t){if(t){return this.initHiddenRows(),this.initBody(!0),void this.initPagination()}var e,i=this.getData(),n=[],o=v(i);try{for(o.s();!(e=o.n()).done;){var a=e.value;this.hiddenRows.includes(a)&&n.push(a)}}catch(s){o.e(s)}finally{o.f()}return this.hiddenRows=n,n}},{key:"showColumn",value:function(t){var e=this,i=Array.isArray(t)?t:[t];i.forEach(function(t){e._toggleColumn(e.fieldsColumnsIndex[t],!0,!0)})}},{key:"hideColumn",value:function(t){var e=this,i=Array.isArray(t)?t:[t];i.forEach(function(t){e._toggleColumn(e.fieldsColumnsIndex[t],!1,!0)})}},{key:"_toggleColumn",value:function(t,e,i){if(-1!==t&&this.columns[t].visible!==e&&(this.columns[t].visible=e,this.initHeader(),this.initSearch(),this.initPagination(),this.initBody(),this.options.showColumns)){var n=this.$toolbar.find('.keep-open input:not(".toggle-all")').prop("disabled",!1);i&&n.filter(ss.sprintf('[value="%s"]',t)).prop("checked",e),n.filter(":checked").length<=this.options.minimumCountColumns&&n.filter(":checked").prop("disabled",!0)}}},{key:"getVisibleColumns",value:function(){var t=this;return this.columns.filter(function(e){return e.visible&&!t.isSelectionColumn(e)})}},{key:"getHiddenColumns",value:function(){return this.columns.filter(function(t){var e=t.visible;return !e})}},{key:"isSelectionColumn",value:function(t){return t.radio||t.checkbox}},{key:"showAllColumns",value:function(){this._toggleAllColumns(!0)}},{key:"hideAllColumns",value:function(){this._toggleAllColumns(!1)}},{key:"_toggleAllColumns",value:function(t){var e,i=this,n=v(this.columns.slice().reverse());try{for(n.s();!(e=n.n()).done;){var o=e.value;if(o.switchable){if(!t&&this.options.showColumns&&this.getVisibleColumns().length===this.options.minimumCountColumns){continue}o.visible=t}}}catch(a){n.e(a)}finally{n.f()}if(this.initHeader(),this.initSearch(),this.initPagination(),this.initBody(),this.options.showColumns){var s=this.$toolbar.find('.keep-open input[type="checkbox"]:not(".toggle-all")').prop("disabled",!1);t?s.prop("checked",t):s.get().reverse().forEach(function(e){s.filter(":checked").length>i.options.minimumCountColumns&&y["default"](e).prop("checked",t)}),s.filter(":checked").length<=this.options.minimumCountColumns&&s.filter(":checked").prop("disabled",!0)}}},{key:"mergeCells",value:function(t){var e,i,n=t.index,o=this.getVisibleFields().indexOf(t.field),a=t.rowspan||1,s=t.colspan||1,r=this.$body.find(">tr[data-index]");o+=ss.getDetailViewIndexOffset(this.options);var l=r.eq(n).find(">td").eq(o);if(!(0>n||0>o||n>=this.data.length)){for(e=n;n+a>e;e++){for(i=o;o+s>i;i++){r.eq(e).find(">td").eq(i).hide()}}l.attr("rowspan",a).attr("colspan",s).show()}}},{key:"checkAll",value:function(){this._toggleCheckAll(!0)}},{key:"uncheckAll",value:function(){this._toggleCheckAll(!1)}},{key:"_toggleCheckAll",value:function(t){var e=this.getSelections();this.$selectAll.add(this.$selectAll_).prop("checked",t),this.$selectItem.filter(":enabled").prop("checked",t),this.updateRows(),this.updateSelected();var i=this.getSelections();return t?void this.trigger("check-all",i,e):void this.trigger("uncheck-all",i,e)}},{key:"checkInvert",value:function(){var t=this.$selectItem.filter(":enabled"),e=t.filter(":checked");t.each(function(t,e){y["default"](e).prop("checked",!y["default"](e).prop("checked"))}),this.updateRows(),this.updateSelected(),this.trigger("uncheck-some",e),e=this.getSelections(),this.trigger("check-some",e)}},{key:"check",value:function(t){this._toggleCheck(!0,t)}},{key:"uncheck",value:function(t){this._toggleCheck(!1,t)}},{key:"_toggleCheck",value:function(t,e){var i=this.$selectItem.filter('[data-index="'.concat(e,'"]')),n=this.data[e];if(i.is(":radio")||this.options.singleSelect||this.options.multipleSelectRow&&!this.multipleSelectRowCtrlKey&&!this.multipleSelectRowShiftKey){var o,a=v(this.options.data);try{for(a.s();!(o=a.n()).done;){var r=o.value;r[this.header.stateField]=!1}}catch(l){a.e(l)}finally{a.f()}this.$selectItem.filter(":checked").not(i).prop("checked",!1)}if(n[this.header.stateField]=t,this.options.multipleSelectRow){if(this.multipleSelectRowShiftKey&&this.multipleSelectRowLastSelectedIndex>=0){for(var c=this.multipleSelectRowLastSelectedIndexf;f++){this.data[f][this.header.stateField]=!0,this.$selectItem.filter('[data-index="'.concat(f,'"]')).prop("checked",!0)}}this.multipleSelectRowCtrlKey=!1,this.multipleSelectRowShiftKey=!1,this.multipleSelectRowLastSelectedIndex=t?e:-1}i.prop("checked",t),this.updateSelected(),this.trigger(t?"check":"uncheck",this.data[e],i)}},{key:"checkBy",value:function(t){this._toggleCheckBy(!0,t)}},{key:"uncheckBy",value:function(t){this._toggleCheckBy(!1,t)}},{key:"_toggleCheckBy",value:function(t,e){var i=this;if(e.hasOwnProperty("field")&&e.hasOwnProperty("values")){var n=[];this.data.forEach(function(o,a){if(!o.hasOwnProperty(e.field)){return !1}if(e.values.includes(o[e.field])){var s=i.$selectItem.filter(":enabled").filter(ss.sprintf('[data-index="%s"]',a)),r=e.hasOwnProperty("onlyCurrentPage")?e.onlyCurrentPage:!1;if(s=t?s.not(":checked"):s.filter(":checked"),!s.length&&r){return}s.prop("checked",t),o[i.header.stateField]=t,n.push(o),i.trigger(t?"check":"uncheck",o,s)}}),this.updateSelected(),this.trigger(t?"check-some":"uncheck-some",n)}}},{key:"refresh",value:function(t){t&&t.url&&(this.options.url=t.url),t&&t.pageNumber&&(this.options.pageNumber=t.pageNumber),t&&t.pageSize&&(this.options.pageSize=t.pageSize),table.rememberSelecteds={},table.rememberSelectedIds={},this.trigger("refresh",this.initServer(t&&t.silent,t&&t.query,t&&t.url))}},{key:"destroy",value:function(){this.$el.insertBefore(this.$container),y["default"](this.options.toolbar).insertBefore(this.$el),this.$container.next().remove(),this.$container.remove(),this.$el.html(this.$el_.html()).css("margin-top","0").attr("class",this.$el_.attr("class")||"")}},{key:"resetView",value:function(t){var e=0;if(t&&t.height&&(this.options.height=t.height),this.$tableContainer.toggleClass("has-card-view",this.options.cardView),!this.options.cardView&&this.options.showHeader&&this.options.height?(this.$tableHeader.show(),this.resetHeader(),e+=this.$header.outerHeight(!0)+1):(this.$tableHeader.hide(),this.trigger("post-header")),!this.options.cardView&&this.options.showFooter&&(this.$tableFooter.show(),this.fitFooter(),this.options.height&&(e+=this.$tableFooter.outerHeight(!0))),this.$container.hasClass("fullscreen")){this.$tableContainer.css("height",""),this.$tableContainer.css("width","")}else{if(this.options.height){this.$tableBorder&&(this.$tableBorder.css("width",""),this.$tableBorder.css("height",""));var i=this.$toolbar.outerHeight(!0),n=this.$pagination.outerHeight(!0),o=this.options.height-i-n,a=this.$tableBody.find(">table"),s=a.outerHeight();if(this.$tableContainer.css("height","".concat(o,"px")),this.$tableBorder&&a.is(":visible")){var r=o-s-2;this.$tableBody[0].scrollWidth-this.$tableBody.innerWidth()&&(r-=ss.getScrollBarWidth()),this.$tableBorder.css("width","".concat(a.outerWidth(),"px")),this.$tableBorder.css("height","".concat(r,"px"))}}}this.options.cardView?(this.$el.css("margin-top","0"),this.$tableContainer.css("padding-bottom","0"),this.$tableFooter.hide()):(this.getCaret(),this.$tableContainer.css("padding-bottom","".concat(e,"px"))),this.trigger("reset-view")}},{key:"showLoading",value:function(){this.$tableLoading.toggleClass("open",!0);var t=this.options.loadingFontSize;"auto"===this.options.loadingFontSize&&(t=0.04*this.$tableLoading.width(),t=Math.max(12,t),t=Math.min(32,t),t="".concat(t,"px")),this.$tableLoading.find(".loading-text").css("font-size",t)}},{key:"hideLoading",value:function(){this.$tableLoading.toggleClass("open",!1)}},{key:"toggleShowSearch",value:function(){this.$el.parents(".select-table").siblings().slideToggle()}},{key:"togglePagination",value:function(){this.options.pagination=!this.options.pagination;var t=this.options.showButtonIcons?this.options.pagination?this.options.icons.paginationSwitchDown:this.options.icons.paginationSwitchUp:"",e=this.options.showButtonText?this.options.pagination?this.options.formatPaginationSwitchUp():this.options.formatPaginationSwitchDown():"";this.$toolbar.find('button[name="paginationSwitch"]').html("".concat(ss.sprintf(this.constants.html.icon,this.options.iconsPrefix,t)," ").concat(e)),this.updatePagination(),this.trigger("toggle-pagination",this.options.pagination)}},{key:"toggleFullscreen",value:function(){this.$el.closest(".bootstrap-table").toggleClass("fullscreen"),this.resetView()}},{key:"toggleView",value:function(){this.options.cardView=!this.options.cardView,this.initHeader();var t=this.options.showButtonIcons?this.options.cardView?this.options.icons.toggleOn:this.options.icons.toggleOff:"",e=this.options.showButtonText?this.options.cardView?this.options.formatToggleOff():this.options.formatToggleOn():"";this.$toolbar.find('button[name="toggle"]').html("".concat(ss.sprintf(this.constants.html.icon,this.options.iconsPrefix,t)," ").concat(e)),this.initBody(),this.trigger("toggle",this.options.cardView)}},{key:"resetSearch",value:function(t){var e=ss.getSearchInput(this);e.val(t||""),this.onSearch({currentTarget:e})}},{key:"filterBy",value:function(t,e){this.filterOptions=ss.isEmptyObject(e)?this.options.filterOptions:y["default"].extend(this.options.filterOptions,e),this.filterColumns=ss.isEmptyObject(t)?{}:t,this.options.pageNumber=1,this.initSearch(),this.updatePagination()}},{key:"scrollTo",value:function o(t){var e={unit:"px",value:0};"object"===i(t)?e=Object.assign(e,t):"string"==typeof t&&"bottom"===t?e.value=this.$tableBody[0].scrollHeight:("string"==typeof t||"number"==typeof t)&&(e.value=t);var o=e.value;"rows"===e.unit&&(o=0,this.$body.find("> tr:lt(".concat(e.value,")")).each(function(t,e){o+=y["default"](e).outerHeight(!0)})),this.$tableBody.scrollTop(o)}},{key:"getScrollPosition",value:function(){return this.$tableBody.scrollTop()}},{key:"selectPage",value:function(t){t>0&&t<=this.options.totalPages&&(this.options.pageNumber=t,this.updatePagination())}},{key:"prevPage",value:function(){this.options.pageNumber>1&&(this.options.pageNumber--,this.updatePagination())}},{key:"nextPage",value:function(){this.options.pageNumber tr[data-index="%s"]',t));i.next().is("tr.detail-view")?this.collapseRow(t):this.expandRow(t,e),this.resetView()}},{key:"expandRow",value:function(t,e){var i=this.data[t],n=this.$body.find(ss.sprintf('> tr[data-index="%s"][data-has-detail-view]',t));if(this.options.detailViewIcon&&n.find("a.detail-icon").html(ss.sprintf(this.constants.html.icon,this.options.iconsPrefix,this.options.icons.detailClose)),!n.next().is("tr.detail-view")){n.after(ss.sprintf('',n.children("td").length));var o=n.next().find("td"),a=e||this.options.detailFormatter,s=ss.calculateObjectValue(this.options,a,[t,i,o],"");1===o.length&&o.append(s),this.trigger("expand-row",t,i,o)}}},{key:"expandRowByUniqueId",value:function(t){var e=this.getRowByUniqueId(t);e&&this.expandRow(this.data.indexOf(e))}},{key:"collapseRow",value:function(t){var e=this.data[t],i=this.$body.find(ss.sprintf('> tr[data-index="%s"][data-has-detail-view]',t));i.next().is("tr.detail-view")&&(this.options.detailViewIcon&&i.find("a.detail-icon").html(ss.sprintf(this.constants.html.icon,this.options.iconsPrefix,this.options.icons.detailOpen)),this.trigger("collapse-row",t,e,i.next()),i.next().remove())}},{key:"collapseRowByUniqueId",value:function(t){var e=this.getRowByUniqueId(t);e&&this.collapseRow(this.data.indexOf(e))}},{key:"expandAllRows",value:function(){for(var t=this.$body.find("> tr[data-index][data-has-detail-view]"),e=0;e tr[data-index][data-has-detail-view]"),e=0;e1?e-1:0),o=1;e>o;o++){n[o-1]=arguments[o]}var a;return this.each(function(e,o){var s=y["default"](o).data("bootstrap.table"),r=y["default"].extend({},hs.DEFAULTS,y["default"](o).data(),"object"===i(t)&&t);if("string"==typeof t){var l;if(!Ka.METHODS.includes(t)){throw Error("Unknown method: ".concat(t))}if(!s){return}a=(l=s)[t].apply(l,n),"destroy"===t&&y["default"](o).removeData("bootstrap.table")}s||(s=new y["default"].BootstrapTable(o,r),y["default"](o).data("bootstrap.table",s),s.init())}),void 0===a?this:a},y["default"].fn.bootstrapTable.Constructor=hs,y["default"].fn.bootstrapTable.theme=Ka.THEME,y["default"].fn.bootstrapTable.VERSION=Ka.VERSION,y["default"].fn.bootstrapTable.defaults=hs.DEFAULTS,y["default"].fn.bootstrapTable.columnDefaults=hs.COLUMN_DEFAULTS,y["default"].fn.bootstrapTable.events=hs.EVENTS,y["default"].fn.bootstrapTable.locales=hs.LOCALES,y["default"].fn.bootstrapTable.methods=hs.METHODS,y["default"].fn.bootstrapTable.utils=ss,y["default"](function(){y["default"]('[data-toggle="table"]').bootstrapTable()}),hs});var TABLE_EVENTS="all.bs.table click-cell.bs.table dbl-click-cell.bs.table click-row.bs.table dbl-click-row.bs.table sort.bs.table check.bs.table uncheck.bs.table onUncheck check-all.bs.table uncheck-all.bs.table check-some.bs.table uncheck-some.bs.table load-success.bs.table load-error.bs.table column-switch.bs.table page-change.bs.table search.bs.table toggle.bs.table show-search.bs.table expand-row.bs.table collapse-row.bs.table refresh-options.bs.table reset-view.bs.table refresh.bs.table",firstLoadTable=[],union=function(t,e){return $.isPlainObject(e)?addRememberRow(t,e):$.isArray(e)?$.each(e,function(e,i){$.isPlainObject(i)?addRememberRow(t,i):-1==$.inArray(i,t)&&(t[t.length]=i)}):-1==$.inArray(e,t)&&(t[t.length]=e),t},difference=function(t,e){if($.isPlainObject(e)){removeRememberRow(t,e)}else{if($.isArray(e)){$.each(e,function(e,i){if($.isPlainObject(i)){removeRememberRow(t,i)}else{var n=$.inArray(i,t);-1!=n&&t.splice(n,1)}})}else{var i=$.inArray(e,t);-1!=i&&t.splice(i,1)}}return t},_={union:union,difference:difference}; \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ajax/libs/bootstrap-table/extensions/auto-refresh/bootstrap-table-auto-refresh.js b/alive-admin/src/main/resources/static/ajax/libs/bootstrap-table/extensions/auto-refresh/bootstrap-table-auto-refresh.js new file mode 100644 index 0000000..f142185 --- /dev/null +++ b/alive-admin/src/main/resources/static/ajax/libs/bootstrap-table/extensions/auto-refresh/bootstrap-table-auto-refresh.js @@ -0,0 +1,95 @@ +/** + * @author: Alec Fenichel + * @webSite: https://fenichelar.com + * @update: zhixin wen + */ + +var Utils = $.fn.bootstrapTable.utils + +$.extend($.fn.bootstrapTable.defaults, { + autoRefresh: false, + showAutoRefresh: true, + autoRefreshInterval: 60, + autoRefreshSilent: true, + autoRefreshStatus: true, + autoRefreshFunction: null +}) + +$.extend($.fn.bootstrapTable.defaults.icons, { + autoRefresh: { + bootstrap3: 'glyphicon-time icon-time', + bootstrap5: 'bi-clock', + materialize: 'access_time', + 'bootstrap-table': 'icon-clock' + }[$.fn.bootstrapTable.theme] || 'fa-clock' +}) + +$.extend($.fn.bootstrapTable.locales, { + formatAutoRefresh () { + return 'Auto Refresh' + } +}) + +$.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales) + +$.BootstrapTable = class extends $.BootstrapTable { + init (...args) { + super.init(...args) + + if (this.options.autoRefresh && this.options.autoRefreshStatus) { + this.setupRefreshInterval() + } + } + + initToolbar (...args) { + if (this.options.autoRefresh) { + this.buttons = Object.assign(this.buttons, { + autoRefresh: { + html: ` + + `, + event: this.toggleAutoRefresh + } + }) + } + + super.initToolbar(...args) + } + + toggleAutoRefresh () { + if (this.options.autoRefresh) { + if (this.options.autoRefreshStatus) { + clearInterval(this.options.autoRefreshFunction) + this.$toolbar.find('>.columns .auto-refresh') + .removeClass(this.constants.classes.buttonActive) + } else { + this.setupRefreshInterval() + this.$toolbar.find('>.columns .auto-refresh') + .addClass(this.constants.classes.buttonActive) + } + this.options.autoRefreshStatus = !this.options.autoRefreshStatus + } + } + + destroy () { + if (this.options.autoRefresh && this.options.autoRefreshStatus) { + clearInterval(this.options.autoRefreshFunction) + } + + super.destroy() + } + + setupRefreshInterval () { + this.options.autoRefreshFunction = setInterval(() => { + if (!this.options.autoRefresh || !this.options.autoRefreshStatus) { + return + } + this.refresh({ silent: this.options.autoRefreshSilent }) + }, this.options.autoRefreshInterval * 1000) + } +} diff --git a/alive-admin/src/main/resources/static/ajax/libs/bootstrap-table/extensions/auto-refresh/bootstrap-table-auto-refresh.min.js b/alive-admin/src/main/resources/static/ajax/libs/bootstrap-table/extensions/auto-refresh/bootstrap-table-auto-refresh.min.js new file mode 100644 index 0000000..2b72af7 --- /dev/null +++ b/alive-admin/src/main/resources/static/ajax/libs/bootstrap-table/extensions/auto-refresh/bootstrap-table-auto-refresh.min.js @@ -0,0 +1,10 @@ +/** + * bootstrap-table - An extended table to integration with some of the most widely used CSS frameworks. (Supports Bootstrap, Semantic UI, Bulma, Material Design, Foundation) + * + * @version v1.17.1 + * @homepage https://bootstrap-table.com + * @author wenzhixin (http://wenzhixin.net.cn/) + * @license MIT + */ + +!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],e):e((t=t||self).jQuery)}(this,(function(t){"use strict";t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t;var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(t,e){return t(e={exports:{}},e.exports),e.exports}var r=function(t){return t&&t.Math==Math&&t},o=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof e&&e)||Function("return this")(),i=function(t){try{return!!t()}catch(t){return!0}},u=!i((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})),c={}.propertyIsEnumerable,f=Object.getOwnPropertyDescriptor,a={f:f&&!c.call({1:2},1)?function(t){var e=f(this,t);return!!e&&e.enumerable}:c},s=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},l={}.toString,p=function(t){return l.call(t).slice(8,-1)},h="".split,y=i((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==p(t)?h.call(t,""):Object(t)}:Object,d=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},b=function(t){return y(d(t))},v=function(t){return"object"==typeof t?null!==t:"function"==typeof t},g=function(t,e){if(!v(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!v(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!v(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!v(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")},m={}.hasOwnProperty,w=function(t,e){return m.call(t,e)},O=o.document,j=v(O)&&v(O.createElement),S=function(t){return j?O.createElement(t):{}},R=!u&&!i((function(){return 7!=Object.defineProperty(S("div"),"a",{get:function(){return 7}}).a})),T=Object.getOwnPropertyDescriptor,P={f:u?T:function(t,e){if(t=b(t),e=g(e,!0),R)try{return T(t,e)}catch(t){}if(w(t,e))return s(!a.f.call(t,e),t[e])}},x=function(t){if(!v(t))throw TypeError(String(t)+" is not an object");return t},A=Object.defineProperty,E={f:u?A:function(t,e,n){if(x(t),e=g(e,!0),x(n),R)try{return A(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},_=u?function(t,e,n){return E.f(t,e,s(1,n))}:function(t,e,n){return t[e]=n,t},I=function(t,e){try{_(o,t,e)}catch(n){o[t]=e}return e},k=o["__core-js_shared__"]||I("__core-js_shared__",{}),M=Function.toString;"function"!=typeof k.inspectSource&&(k.inspectSource=function(t){return M.call(t)});var F,C,B,L=k.inspectSource,N=o.WeakMap,q="function"==typeof N&&/native code/.test(L(N)),z=n((function(t){(t.exports=function(t,e){return k[t]||(k[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.0",mode:"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})})),D=0,W=Math.random(),$=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++D+W).toString(36)},G=z("keys"),K=function(t){return G[t]||(G[t]=$(t))},Q={},V=o.WeakMap;if(q){var X=new V,Y=X.get,H=X.has,J=X.set;F=function(t,e){return J.call(X,t,e),e},C=function(t){return Y.call(X,t)||{}},B=function(t){return H.call(X,t)}}else{var U=K("state");Q[U]=!0,F=function(t,e){return _(t,U,e),e},C=function(t){return w(t,U)?t[U]:{}},B=function(t){return w(t,U)}}var Z,tt,et={set:F,get:C,has:B,enforce:function(t){return B(t)?C(t):F(t,{})},getterFor:function(t){return function(e){var n;if(!v(e)||(n=C(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}},nt=n((function(t){var e=et.get,n=et.enforce,r=String(String).split("String");(t.exports=function(t,e,i,u){var c=!!u&&!!u.unsafe,f=!!u&&!!u.enumerable,a=!!u&&!!u.noTargetGet;"function"==typeof i&&("string"!=typeof e||w(i,"name")||_(i,"name",e),n(i).source=r.join("string"==typeof e?e:"")),t!==o?(c?!a&&t[e]&&(f=!0):delete t[e],f?t[e]=i:_(t,e,i)):f?t[e]=i:I(e,i)})(Function.prototype,"toString",(function(){return"function"==typeof this&&e(this).source||L(this)}))})),rt=o,ot=function(t){return"function"==typeof t?t:void 0},it=function(t,e){return arguments.length<2?ot(rt[t])||ot(o[t]):rt[t]&&rt[t][e]||o[t]&&o[t][e]},ut=Math.ceil,ct=Math.floor,ft=function(t){return isNaN(t=+t)?0:(t>0?ct:ut)(t)},at=Math.min,st=function(t){return t>0?at(ft(t),9007199254740991):0},lt=Math.max,pt=Math.min,ht=function(t){return function(e,n,r){var o,i=b(e),u=st(i.length),c=function(t,e){var n=ft(t);return n<0?lt(n+e,0):pt(n,e)}(r,u);if(t&&n!=n){for(;u>c;)if((o=i[c++])!=o)return!0}else for(;u>c;c++)if((t||c in i)&&i[c]===n)return t||c||0;return!t&&-1}},yt={includes:ht(!0),indexOf:ht(!1)}.indexOf,dt=function(t,e){var n,r=b(t),o=0,i=[];for(n in r)!w(Q,n)&&w(r,n)&&i.push(n);for(;e.length>o;)w(r,n=e[o++])&&(~yt(i,n)||i.push(n));return i},bt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],vt=bt.concat("length","prototype"),gt={f:Object.getOwnPropertyNames||function(t){return dt(t,vt)}},mt={f:Object.getOwnPropertySymbols},wt=it("Reflect","ownKeys")||function(t){var e=gt.f(x(t)),n=mt.f;return n?e.concat(n(t)):e},Ot=function(t,e){for(var n=wt(e),r=E.f,o=P.f,i=0;i=74)&&(Z=Wt.match(/Chrome\/(\d+)/))&&(tt=Z[1]);var Qt,Vt=tt&&+tt,Xt=qt("species"),Yt=qt("isConcatSpreadable"),Ht=Vt>=51||!i((function(){var t=[];return t[Yt]=!1,t.concat()[0]!==t})),Jt=(Qt="concat",Vt>=51||!i((function(){var t=[];return(t.constructor={})[Xt]=function(){return{foo:1}},1!==t[Qt](Boolean).foo}))),Ut=function(t){if(!v(t))return!1;var e=t[Yt];return void 0!==e?!!e:It(t)};_t({target:"Array",proto:!0,forced:!Ht||!Jt},{concat:function(t){var e,n,r,o,i,u=kt(this),c=Dt(u,0),f=0;for(e=-1,r=arguments.length;e9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n=9007199254740991)throw TypeError("Maximum allowed index exceeded");Mt(c,f++,i)}return c.length=f,c}});var Zt,te=function(t,e,n){if(function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function")}(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}},ee=[].push,ne=function(t){var e=1==t,n=2==t,r=3==t,o=4==t,i=6==t,u=5==t||i;return function(c,f,a,s){for(var l,p,h=kt(c),d=y(h),b=te(f,a,3),v=st(d.length),g=0,m=s||Dt,w=e?m(c,v):n?m(c,0):void 0;v>g;g++)if((u||g in d)&&(p=b(l=d[g],g,h),t))if(e)w[g]=p;else if(p)switch(t){case 3:return!0;case 5:return l;case 6:return g;case 2:ee.call(w,l)}else if(o)return!1;return i?-1:r||o?o:w}},re={forEach:ne(0),map:ne(1),filter:ne(2),some:ne(3),every:ne(4),find:ne(5),findIndex:ne(6)},oe=Object.keys||function(t){return dt(t,bt)},ie=u?Object.defineProperties:function(t,e){x(t);for(var n,r=oe(e),o=r.length,i=0;o>i;)E.f(t,n=r[i++],e[n]);return t},ue=it("document","documentElement"),ce=K("IE_PROTO"),fe=function(){},ae=function(t){return" + + +
    + +
    +
    +
    + + +
    +
    +
    +
    • setting 配置详解
    +
      +
      +
      +
      • zTree 方法详解
      +
        +
        • treeNode 节点数据详解
        +
          +
          +
          +
          +
          +
          +
          + + +
          +
          +
          + + + +
          + +
          +
          +
          +
          + + + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/API_en.html b/alive-admin/src/main/resources/static/ztree/api/API_en.html new file mode 100644 index 0000000..e2a992f --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/API_en.html @@ -0,0 +1,102 @@ + + + + + API Document [zTree -- jQuery tree plug-ins.] + + + + + +
          + +
          +
          +
          + + +
          +
          +
          +
          • setting details
          +
            +
            +
            +
            • zTree method details
            +
              +
              • treeNode data details
              +
                +
                +
                +
                +
                +
                +
                + + +
                +
                +
                + + + +
                + +
                +
                +
                +
                + + + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/apiCss/api.js b/alive-admin/src/main/resources/static/ztree/api/apiCss/api.js new file mode 100644 index 0000000..bdfe22f --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/apiCss/api.js @@ -0,0 +1,589 @@ +var apiContent = { + zTree_Setting: null, + zTree_Node: null, + zTree_Function: null, + overlayDiv : null, + overlayContent : null, + overlayDetailDiv : null, + overlayCloseBtn: null, + overlayArrow: null, + contentBoxDiv : null, + settingDiv : null, + functionDiv : null, + overlaySearch: null, + searchKey: null, + searchResultInput: null, + searchPrevBtn: null, + searchNextBtn: null, + apiCache: {}, + lastValue: "", + searchNodes: [], + searchNodesCur: 0, + + _init: function() { + this.overlayDiv = $("#overlayDiv"); + this.overlayContent = $("#overlayContent"); + this.overlayDetailDiv = $("#overlayDetailDiv"); + this.overlayCloseBtn = $("#overlayDivCloseBtn"); + this.overlayArrow = $("#overlayDivArrow"); + this.contentBoxDiv = $("#contentBox"); + this.settingDiv = $("#api_setting"); + this.functionDiv = $("#api_function"); + this.searchKey = $(".searchKey"); + this.overlaySearch = $(".overlaySearch"); + this.searchResultInput = $(".searchResult"); + this.searchPrevBtn = $(".searchPrev"); + this.searchNextBtn = $(".searchNext"); + var setting = { + view: { + fontCss: this.getFontCss, + showLine: false, + showIcon: this.showIcon, + showTitle: this.getTitle, + selectedMulti: false, + dblClickExpand: false + }, + data: { + key: { + title: "tt" + }, + simpleData: { + enable:true, + idKey: "id", + pIdKey: "pId", + rootPId: "" + } + }, + callback: { + onNodeCreated: this.onNodeCreated, + beforeClick: this.beforeClick + } + } + var setting_nodes =[ + {id:1, pId:0, t: "setting", name:"var setting = {", open:true}, + {id:11, pId:1, t:"treeId", name:"treeId : \"\",", iconSkin:"core", showAPI:true}, + {id:12, pId:1, t:"treeObj", name:"treeObj : null,", iconSkin:"core", showAPI:true}, + {id:121, pId:1, name:""}, + + {id:20, pId:1, t:"async", name:"async : {", open:true}, + {id:201, pId:20, t:"autoParam", name:"autoParam : [],", iconSkin:"core", showAPI:true}, + {id:208, pId:20, t:"contentType", name:"contentType : \"application...\",", iconSkin:"core", showAPI:true}, + {id:202, pId:20, t:"dataFilter", name:"dataFilter : null,", iconSkin:"core", showAPI:true}, + {id:203, pId:20, t:"dataType", name:"dataType : \"text\",", iconSkin:"core", showAPI:true}, + {id:204, pId:20, t:"enable", name:"enable : false,", iconSkin:"core", showAPI:true}, + {id:205, pId:20, t:"otherParam", name:"otherParam : [],", iconSkin:"core", showAPI:true}, + {id:206, pId:20, t:"type", name:"type : \"post\",", iconSkin:"core", showAPI:true}, + {id:207, pId:20, t:"url", name:"url : \"\"", iconSkin:"core", showAPI:true}, + {id:21, pId:1, name:"},"}, + {id:22, pId:1, name:""}, + + {id:30, pId:1, t:"callback", name:"callback : {", open:true}, + {id:3001, pId:30, t:"beforeAsync", name:"beforeAsync : null,", iconSkin:"core", showAPI:true}, + {id:3002, pId:30, t:"beforeCheck", name:"beforeCheck : null,", iconSkin:"check", showAPI:true}, + {id:3003, pId:30, t:"beforeClick", name:"beforeClick : null,", iconSkin:"core", showAPI:true}, + {id:3004, pId:30, t:"beforeCollapse", name:"beforeCollapse : null,", iconSkin:"core", showAPI:true}, + {id:3004, pId:30, t:"beforeDblClick", name:"beforeDblClick : null,", iconSkin:"core", showAPI:true}, + {id:3005, pId:30, t:"beforeDrag", name:"beforeDrag : null,", iconSkin:"edit", showAPI:true}, + {id:3006, pId:30, t:"beforeDragOpen", name:"beforeDragOpen : null,", iconSkin:"edit", showAPI:true}, + {id:3007, pId:30, t:"beforeDrop", name:"beforeDrop : null,", iconSkin:"edit", showAPI:true}, + {id:3029, pId:30, t:"beforeEditName", name:"beforeEditName : null,", iconSkin:"edit", showAPI:true}, + {id:3008, pId:30, t:"beforeExpand", name:"beforeExpand : null,", iconSkin:"core", showAPI:true}, + {id:3009, pId:30, t:"beforeMouseDown", name:"beforeMouseDown : null,", iconSkin:"core", showAPI:true}, + {id:3010, pId:30, t:"beforeMouseUp", name:"beforeMouseUp : null,", iconSkin:"core", showAPI:true}, + {id:3011, pId:30, t:"beforeRemove", name:"beforeRemove : null,", iconSkin:"edit", showAPI:true}, + {id:3012, pId:30, t:"beforeRename", name:"beforeRename : null,", iconSkin:"edit", showAPI:true}, + {id:3013, pId:30, t:"beforeRightClick", name:"beforeRightClick : null,", iconSkin:"core", showAPI:true}, + {id:3014, pId:30, name:""}, + {id:3015, pId:30, t:"onAsyncError", name:"onAsyncError : null,", iconSkin:"core", showAPI:true}, + {id:3016, pId:30, t:"onAsyncSuccess", name:"onAsyncSuccess : null,", iconSkin:"core", showAPI:true}, + {id:3017, pId:30, t:"onCheck", name:"onCheck : null,", iconSkin:"check", showAPI:true}, + {id:3018, pId:30, t:"onClick", name:"onClick : null,", iconSkin:"core", showAPI:true}, + {id:3019, pId:30, t:"onCollapse", name:"onCollapse : null,", iconSkin:"core", showAPI:true}, + {id:3019, pId:30, t:"onDblClick", name:"onDblClick : null,", iconSkin:"core", showAPI:true}, + {id:3020, pId:30, t:"onDrag", name:"onDrag : null,", iconSkin:"edit", showAPI:true}, + {id:3021, pId:30, t:"onDrop", name:"onDrop : null,", iconSkin:"edit", showAPI:true}, + {id:3022, pId:30, t:"onExpand", name:"onExpand : null,", iconSkin:"core", showAPI:true}, + {id:3023, pId:30, t:"onMouseDown", name:"onMouseDown : null,", iconSkin:"core", showAPI:true}, + {id:3024, pId:30, t:"onMouseUp", name:"onMouseUp : null,", iconSkin:"core", showAPI:true}, + {id:3025, pId:30, t:"onNodeCreated", name:"onNodeCreated : null,", iconSkin:"core", showAPI:true}, + {id:3026, pId:30, t:"onRemove", name:"onRemove : null,", iconSkin:"edit", showAPI:true}, + {id:3027, pId:30, t:"onRename", name:"onRename : null,", iconSkin:"edit", showAPI:true}, + {id:3028, pId:30, t:"onRightClick", name:"onRightClick : null", iconSkin:"core", showAPI:true}, + {id:31, pId:1, name:"},"}, + {id:32, pId:1, name:""}, + + {id:40, pId:1, t:"check", name:"check : {", open:true}, + {id:405, pId:40, t:"autoCheckTrigger", name:"autoCheckTrigger : false,", iconSkin:"check", showAPI:true}, + {id:401, pId:40, t:"chkboxType", name:"chkboxType : {\"Y\": \"ps\", \"N\": \"ps\"},", iconSkin:"check", showAPI:true}, + {id:402, pId:40, t:"chkStyle", name:"chkStyle : \"checkbox\",", iconSkin:"check", showAPI:true}, + {id:403, pId:40, t:"enable", name:"enable : false,", iconSkin:"check", showAPI:true}, + {id:406, pId:40, t:"nocheckInherit", name:"nocheckInherit : false", iconSkin:"check", showAPI:true}, + {id:404, pId:40, t:"radioType", name:"radioType : \"level\"", iconSkin:"check", showAPI:true}, + {id:41, pId:1, name:"},"}, + {id:42, pId:1, name:""}, + + {id:50, pId:1, t:"data", name:"data : {", open:true}, + {id:500, pId:50, t:"keep", name:"keep : {", open:true}, + {id:5001, pId:500, t:"leaf", name:"leaf : false,", iconSkin:"core", showAPI:true}, + {id:5002, pId:500, t:"parent", name:"parent : false", iconSkin:"core", showAPI:true}, + {id:501, pId:50, name:"},"}, + + {id:510, pId:50, t:"key", name:"key : {", open:true}, + {id:5101, pId:510, t:"checked", name:"checked : \"checked\",", iconSkin:"check", showAPI:true}, + {id:5102, pId:510, t:"children", name:"children : \"children\",", iconSkin:"core", showAPI:true}, + {id:5103, pId:510, t:"name", name:"name : \"name\",", iconSkin:"core", showAPI:true}, + {id:5104, pId:510, t:"title", name:"title : \"\"", iconSkin:"core", showAPI:true}, + {id:5105, pId:510, t:"url", name:"url : \"url\"", iconSkin:"core", showAPI:true}, + {id:511, pId:50, name:"},"}, + + {id:520, pId:50, t:"simpleData", name:"simpleData : {", open:true}, + {id:5201, pId:520, t:"enable", name:"enable : false,", iconSkin:"core", showAPI:true}, + {id:5202, pId:520, t:"idKey", name:"idKey : \"id\",", iconSkin:"core", showAPI:true}, + {id:5203, pId:520, t:"pIdKey", name:"pIdKey : \"pId\",", iconSkin:"core", showAPI:true}, + {id:5204, pId:520, t:"rootPId", name:"rootPId : null", iconSkin:"core", showAPI:true}, + {id:521, pId:50, name:"}"}, + {id:51, pId:1, name:"},"}, + {id:52, pId:1, name:""}, + + {id:60, pId:1, t:"edit", name:"edit : {", open:true}, + {id:601, pId:60, t:"drag", name:"drag : {", open:true}, + {id:60111, pId:601, t:"autoExpandTrigger", name:"autoExpandTrigger : true,", iconSkin:"edit", showAPI:true}, + {id:60101, pId:601, t:"isCopy", name:"isCopy : true,", iconSkin:"edit", showAPI:true}, + {id:60102, pId:601, t:"isMove", name:"isMove : true,", iconSkin:"edit", showAPI:true}, + {id:60103, pId:601, t:"prev", name:"prev : true,", iconSkin:"edit", showAPI:true}, + {id:60104, pId:601, t:"next", name:"next : true,", iconSkin:"edit", showAPI:true}, + {id:60105, pId:601, t:"inner", name:"inner : true,", iconSkin:"edit", showAPI:true}, + {id:60107, pId:601, t:"borderMax", name:"borderMax : 10,", iconSkin:"edit", showAPI:true}, + {id:60108, pId:601, t:"borderMin", name:"borderMin : -5,", iconSkin:"edit", showAPI:true}, + {id:60106, pId:601, t:"minMoveSize", name:"minMoveSize : 5,", iconSkin:"edit", showAPI:true}, + {id:60109, pId:601, t:"maxShowNodeNum", name:"maxShowNodeNum : 5,", iconSkin:"edit", showAPI:true}, + {id:60110, pId:601, t:"autoOpenTime", name:"autoOpenTime : 500", iconSkin:"edit", showAPI:true}, + {id:602, pId:60, name:"},"}, + {id:608, pId:60, t:"editNameSelectAll", name:"editNameSelectAll : false,", iconSkin:"edit", showAPI:true}, + {id:603, pId:60, t:"enable", name:"enable : false,", iconSkin:"edit", showAPI:true}, + {id:604, pId:60, t:"removeTitle", name:"removeTitle : \"remove\",", iconSkin:"edit", showAPI:true}, + {id:605, pId:60, t:"renameTitle", name:"renameTitle : \"rename\",", iconSkin:"edit", showAPI:true}, + {id:606, pId:60, t:"showRemoveBtn", name:"showRemoveBtn : true,", iconSkin:"edit", showAPI:true}, + {id:607, pId:60, t:"showRenameBtn", name:"showRenameBtn : true", iconSkin:"edit", showAPI:true}, + {id:61, pId:1, name:"},"}, + {id:62, pId:1, name:""}, + + {id:70, pId:1, t:"view", name:"view : {", open:true}, + {id:7001, pId:70, t:"addDiyDom", name:"addDiyDom : null,", iconSkin:"core", showAPI:true}, + {id:7002, pId:70, t:"addHoverDom", name:"addHoverDom : null,", iconSkin:"edit", showAPI:true}, + {id:7003, pId:70, t:"autoCancelSelected", name:"autoCancelSelected : true,", iconSkin:"core", showAPI:true}, + {id:7004, pId:70, t:"dblClickExpand", name:"dblClickExpand : true,", iconSkin:"core", showAPI:true}, + {id:7005, pId:70, t:"expandSpeed", name:"expandSpeed : \"fast\",", iconSkin:"core", showAPI:true}, + {id:7006, pId:70, t:"fontCss", name:"fontCss : {},", iconSkin:"core", showAPI:true}, + {id:7012, pId:70, t:"nameIsHTML", name:"nameIsHTML : false,", iconSkin:"core", showAPI:true}, + {id:7007, pId:70, t:"removeHoverDom", name:"removeHoverDom : null,", iconSkin:"edit", showAPI:true}, + {id:7008, pId:70, t:"selectedMulti", name:"selectedMulti : true,", iconSkin:"core", showAPI:true}, + {id:7009, pId:70, t:"showIcon", name:"showIcon : true,", iconSkin:"core", showAPI:true}, + {id:7010, pId:70, t:"showLine", name:"showLine : true,", iconSkin:"core", showAPI:true}, + {id:7011, pId:70, t:"showTitle", name:"showTitle : true", iconSkin:"core", showAPI:true}, + {id:71, pId:1, name:"}"}, + + {id:2, pId:0, name:"}"} + ]; + + var treenode_nodes =[ + {id:1, pId:0, t:"treeNode", name:"treeNode : {", open:true}, + {id:101, pId:1, t:"checked", name:"checked", iconSkin:"check", showAPI:true}, + {id:102, pId:1, t:"children", name:"children", iconSkin:"core", showAPI:true}, + {id:128, pId:1, t:"chkDisabled", name:"chkDisabled", iconSkin:"check", showAPI:true}, + {id:127, pId:1, t:"click", name:"click", iconSkin:"core", showAPI:true}, + {id:103, pId:1, t:"getCheckStatus", name:"getCheckStatus ()", iconSkin:"check", showAPI:true}, + {id:104, pId:1, t:"getNextNode", name:"getNextNode ()", iconSkin:"core", showAPI:true}, + {id:105, pId:1, t:"getParentNode", name:"getParentNode ()", iconSkin:"core", showAPI:true}, + {id:106, pId:1, t:"getPreNode", name:"getPreNode ()", iconSkin:"core", showAPI:true}, + {id:129, pId:1, t:"halfCheck", name:"halfCheck", iconSkin:"check", showAPI:true}, + {id:107, pId:1, t:"icon", name:"icon", iconSkin:"core", showAPI:true}, + {id:108, pId:1, t:"iconClose", name:"iconClose", iconSkin:"core", showAPI:true}, + {id:109, pId:1, t:"iconOpen", name:"iconOpen", iconSkin:"core", showAPI:true}, + {id:110, pId:1, t:"iconSkin", name:"iconSkin", iconSkin:"core", showAPI:true}, + {id:131, pId:1, t:"isHidden", name:"isHidden", iconSkin:"hide", showAPI:true}, + {id:111, pId:1, t:"isParent", name:"isParent", iconSkin:"core", showAPI:true}, + {id:132, pId:1, t:"name", name:"name", iconSkin:"core", showAPI:true}, + {id:112, pId:1, t:"nocheck", name:"nocheck", iconSkin:"check", showAPI:true}, + {id:113, pId:1, t:"open", name:"open", iconSkin:"core", showAPI:true}, + {id:133, pId:1, t:"target", name:"target", iconSkin:"core", showAPI:true}, + {id:134, pId:1, t:"url", name:"url", iconSkin:"core", showAPI:true}, + {id:114, pId:1, t:"diy", name:"*DIY*", iconSkin:"core", showAPI:true}, + {id:115, pId:1, name:""}, + {id:116, pId:1, t:"check_Child_State", name:"[check_Child_State]", iconSkin:"check", showAPI:true}, + {id:117, pId:1, t:"check_Focus", name:"[check_Focus]", iconSkin:"check", showAPI:true}, + {id:118, pId:1, t:"checkedOld", name:"[checkedOld]", iconSkin:"check", showAPI:true}, + {id:119, pId:1, t:"editNameFlag", name:"[editNameFlag]", iconSkin:"edit", showAPI:true}, + {id:120, pId:1, t:"isAjaxing", name:"[isAjaxing]", iconSkin:"core", showAPI:true}, + {id:121, pId:1, t:"isFirstNode", name:"[isFirstNode]", iconSkin:"core", showAPI:true}, + {id:122, pId:1, t:"isHover", name:"[isHover]", iconSkin:"edit", showAPI:true}, + {id:123, pId:1, t:"isLastNode", name:"[isLastNode]", iconSkin:"core", showAPI:true}, + {id:124, pId:1, t:"level", name:"[level]", iconSkin:"core", showAPI:true}, + {id:125, pId:1, t:"parentTId", name:"[parentTId]", iconSkin:"core", showAPI:true}, + {id:126, pId:1, t:"tId", name:"[tId]", iconSkin:"core", showAPI:true}, + {id:130, pId:1, t:"zAsync", name:"[zAsync]", iconSkin:"core", showAPI:true}, + {id:2, pId:0, name:"}"} + ]; + + var function_nodes =[ + {id:1, pId:0, t:"$.fn.zTree", name:"$.fn.zTree : {", open:true}, + {id:11, pId:1, t:"init", name:"init (obj, zSetting, zNodes)", iconSkin:"core", showAPI:true}, + {id:12, pId:1, t:"getZTreeObj", name:"getZTreeObj (treeId)", iconSkin:"core", showAPI:true}, + {id:14, pId:1, t:"destroy", name:"destroy (treeId)", iconSkin:"core", showAPI:true}, + {id:13, pId:1, t:"_z", name:"_z : {tools, view, event, data}", iconSkin:"core", showAPI:true}, + {id:2, pId:0, name:"}"}, + {id:3, pId:0, name:""}, + {id:4, pId:0, t:"zTreeObj", name:"zTreeObj : {", open:true}, + {id:401, pId:4, t:"setting", name:"setting", iconSkin:"core", showAPI:true}, + {id:402, pId:4, t:"addNodes", name:"addNodes (parentNode, newNodes, isSilent)", iconSkin:"core", showAPI:true}, + {id:403, pId:4, t:"cancelEditName", name:"cancelEditName (newName)", iconSkin:"edit", showAPI:true}, + {id:404, pId:4, t:"cancelSelectedNode", name:"cancelSelectedNode (node)", iconSkin:"core", showAPI:true}, + {id:405, pId:4, t:"checkAllNodes", name:"checkAllNodes (checked)", iconSkin:"check", showAPI:true}, + {id:406, pId:4, t:"checkNode", name:"checkNode (node, checked, checkTypeFlag, callbackFlag)", iconSkin:"check", showAPI:true}, + {id:407, pId:4, t:"copyNode", name:"copyNode (targetNode, node, moveType, isSilent)", iconSkin:"edit", showAPI:true}, + {id:436, pId:4, t:"destroy", name:"destroy ()", iconSkin:"core", showAPI:true}, + {id:408, pId:4, t:"editName", name:"editName (node)", iconSkin:"edit", showAPI:true}, + {id:409, pId:4, t:"expandAll", name:"expandAll (expandFlag)", iconSkin:"core", showAPI:true}, + {id:410, pId:4, t:"expandNode", name:"expandNode (node, expandFlag, sonSign, focus, callbackFlag)", iconSkin:"core", showAPI:true}, + {id:411, pId:4, t:"getChangeCheckedNodes", name:"getChangeCheckedNodes ()", iconSkin:"check", showAPI:true}, + {id:412, pId:4, t:"getCheckedNodes", name:"getCheckedNodes (checked)", iconSkin:"check", showAPI:true}, + {id:413, pId:4, t:"getNodeByParam", name:"getNodeByParam (key, value, parentNode)", iconSkin:"core", showAPI:true}, + {id:414, pId:4, t:"getNodeByTId", name:"getNodeByTId (tId)", iconSkin:"core", showAPI:true}, + {id:415, pId:4, t:"getNodeIndex", name:"getNodeIndex (node)", iconSkin:"core", showAPI:true}, + {id:416, pId:4, t:"getNodes", name:"getNodes ()", iconSkin:"core", showAPI:true}, + {id:431, pId:4, t:"getNodesByFilter", name:"getNodesByFilter (filter, isSingle, parentNode, invokeParam)", iconSkin:"core", showAPI:true}, + {id:417, pId:4, t:"getNodesByParam", name:"getNodesByParam (key, value, parentNode)", iconSkin:"core", showAPI:true}, + {id:418, pId:4, t:"getNodesByParamFuzzy", name:"getNodesByParamFuzzy (key, value, parentNode)", iconSkin:"core", showAPI:true}, + {id:419, pId:4, t:"getSelectedNodes", name:"getSelectedNodes ()", iconSkin:"core", showAPI:true}, + {id:432, pId:4, t:"hideNode", name:"hideNode (node)", iconSkin:"hide", showAPI:true}, + {id:433, pId:4, t:"hideNodes", name:"hideNodes (nodes)", iconSkin:"hide", showAPI:true}, + {id:420, pId:4, t:"moveNode", name:"moveNode (targetNode, node, moveType, isSilent)", iconSkin:"edit", showAPI:true}, + {id:421, pId:4, t:"reAsyncChildNodes", name:"reAsyncChildNodes (parentNode, reloadType, isSilent)", iconSkin:"core", showAPI:true}, + {id:422, pId:4, t:"refresh", name:"refresh ()", iconSkin:"core", showAPI:true}, + {id:423, pId:4, t:"removeChildNodes", name:"removeChildNodes (parentNode)", iconSkin:"core", showAPI:true}, + {id:424, pId:4, t:"removeNode", name:"removeNode (node, callbackFlag)", iconSkin:"core", showAPI:true}, + {id:425, pId:4, t:"selectNode", name:"selectNode (node, addFlag)", iconSkin:"core", showAPI:true}, + {id:430, pId:4, t:"setChkDisabled", name:"setChkDisabled (node, disabled)", iconSkin:"check", showAPI:true}, + {id:426, pId:4, t:"setEditable", name:"setEditable (editable)", iconSkin:"edit", showAPI:true}, + {id:434, pId:4, t:"showNode", name:"showNode (node)", iconSkin:"hide", showAPI:true}, + {id:435, pId:4, t:"showNodes", name:"showNodes (nodes)", iconSkin:"hide", showAPI:true}, + {id:427, pId:4, t:"transformToArray", name:"transformToArray (nodes)", iconSkin:"core", showAPI:true}, + {id:428, pId:4, t:"transformTozTreeNodes", name:"transformTozTreeNodes (simpleNodes)", iconSkin:"core", showAPI:true}, + {id:429, pId:4, t:"updateNode", name:"updateNode (node, checkTypeFlag)", iconSkin:"core", showAPI:true}, + {id:5, pId:0, name:"}"} + ]; + + apiContent.zTree_Setting = $.fn.zTree.init($("#settingTree"), $.fn.zTree._z.tools.clone(setting), setting_nodes); + apiContent.zTree_Node = $.fn.zTree.init($("#treenodeTree"), $.fn.zTree._z.tools.clone(setting), treenode_nodes); + apiContent.zTree_Function = $.fn.zTree.init($("#functionTree"), $.fn.zTree._z.tools.clone(setting), function_nodes); + this.bindEvent(); + + }, + bindEvent: function() { + $(document).bind("keydown", this.listenKeyDown) + this.overlayCloseBtn.bind("click", apiContent.overlayClose); + this.searchResultInput.bind("click", function(e) { + $(this).prev().get(0).focus(); + this.blur(); + }).bind("focus", function(e) { + this.blur(); + }); + this.searchKey.bind("focus", this.focusKey) + .bind("blur", this.blurKey) + .bind("propertychange", this.searchNode) + .bind("input", this.searchNode); + this.searchPrevBtn.bind("click", this.searchPrev); + this.searchNextBtn.bind("click", this.searchNext); + }, + setSameKey: function(value) { + apiContent.searchKey.attr("value", value); + }, + focusKey: function(e) { + if (apiContent.searchKey.hasClass("empty")) { + apiContent.searchKey.removeClass("empty"); + } + }, + blurKey: function(e) { + apiContent.setSameKey(e.target.value); + if (e.target.value === "") { + apiContent.searchKey.addClass("empty"); + } + }, + listenKeyDown: function(e) { + if (e.keyCode=="13" && apiContent.overlayDiv.is(":hidden")) { + apiContent.openAPI(); + } else if (e.keyCode=="37") { + apiContent.searchPrev(); + } else if (e.keyCode=="13" || e.keyCode=="39") { + apiContent.searchNext(); + } + }, + openAPI: function() { + if (apiContent.searchNodes.length > 0) { + var setting_zTree = $.fn.zTree.getZTreeObj("settingTree"), + treenode_zTree = $.fn.zTree.getZTreeObj("treenodeTree"), + function_zTree = $.fn.zTree.getZTreeObj("functionTree"); + if (apiContent.searchNodesCur < 0 || apiContent.searchNodesCur > apiContent.searchNodes.length -1) { + apiContent.searchNodesCur = 0; + } + var node = apiContent.searchNodes[apiContent.searchNodesCur]; + + if (node.tId.indexOf("setting") > -1) { + setting_zTree.selectNode(node); + } else if (node.tId.indexOf("treenode") > -1) { + treenode_zTree.selectNode(node); + } else { + function_zTree.selectNode(node); + } + apiContent.beforeClick(node.tId.substring(0, node.tId.indexOf("_")), node, true); + apiContent.searchCur(); + } + }, + searchNode: function(e) { + var setting_zTree = $.fn.zTree.getZTreeObj("settingTree"), + treenode_zTree = $.fn.zTree.getZTreeObj("treenodeTree"), + function_zTree = $.fn.zTree.getZTreeObj("functionTree"); + if (apiContent.curKey == e.target.value) return; + apiContent.curKey = e.target.value; + var value = $.trim(apiContent.curKey); + apiContent.setSameKey(apiContent.curKey); + if (apiContent.searchKey.hasClass("empty")) { + value = ""; + apiContent.searchResultInput.removeClass("noResult").attr("value",""); + } + if (apiContent.lastValue === value) return; + + apiContent.updateNodes(false); + apiContent.lastValue = value; + if (value === "" || value.length < 2) { + apiContent.searchNodes = []; + apiContent.searchNodesCur = -1; + apiContent.searchCur(true); + return; + } + + var settingNodeList = setting_zTree.getNodesByFilter(apiContent.searchFilter); + var functionNodeList = function_zTree.getNodesByFilter(apiContent.searchFilter); + var treenodeNodeList = treenode_zTree.getNodesByFilter(apiContent.searchFilter); + apiContent.searchNodes = settingNodeList.concat(functionNodeList).concat(treenodeNodeList); + apiContent.searchNodesCur = -1; + apiContent.searchCur(); + apiContent.updateNodes(true); + }, + searchFilter: function(node) { + var value = $.trim(apiContent.searchKey.get(0).value).toLowerCase(); + return (node.showAPI && node.name.toLowerCase().indexOf(value) > -1); + }, + searchPrev: function(e) { + if (apiContent.searchPrevBtn.hasClass("disabled")) return; + apiContent.searchNodesCur--; + if (apiContent.searchNodesCur < 0 || apiContent.searchNodesCur > apiContent.searchNodes.length -1) { + apiContent.searchNodesCur = apiContent.searchNodes.length -1; + } + apiContent.openAPI(); + }, + searchNext: function(e) { + if (apiContent.searchNextBtn.hasClass("disabled")) return; + apiContent.searchNodesCur++; + apiContent.openAPI(); + }, + searchCur: function(init) { + var result = apiContent.searchNodes; + if (init) { + apiContent.searchResultInput.removeClass("noResult").attr("value",""); + } else if (result.length == 0) { + apiContent.searchResultInput.addClass("noResult").attr("value"," [ 0 / 0 ] "); + } else { + apiContent.searchResultInput.removeClass("noResult").attr("value"," [ " + (apiContent.searchNodesCur > -1 ? apiContent.searchNodesCur+1 : "?")+ " / " + result.length + " ] "); + } + if (result.length > 0) { + apiContent.searchPrevBtn.removeClass("disabled"); + apiContent.searchNextBtn.removeClass("disabled"); + } else { + apiContent.searchPrevBtn.addClass("disabled"); + apiContent.searchNextBtn.addClass("disabled"); + } + }, + updateNodes: function(highlight) { + var setting_zTree = $.fn.zTree.getZTreeObj("settingTree"), + treenode_zTree = $.fn.zTree.getZTreeObj("treenodeTree"), + function_zTree = $.fn.zTree.getZTreeObj("functionTree"), + node = null; + for( var i=0, l=apiContent.searchNodes.length; i 0) { + node.highlight = highlight; + if (node.tId.indexOf("setting") > -1) { + setting_zTree.updateNode(node); + } else if (node.tId.indexOf("treenode") > -1) { + treenode_zTree.updateNode(node); + } else { + function_zTree.updateNode(node); + } + } + } + }, + getFontCss: function(treeId, treeNode) { + return (!!treeNode.highlight) ? {color:"#A60000", "font-weight":"bold"} : {color:"#333", "font-weight":"normal"}; + }, + getTitle: function(treeId, node) { + var t = [], n = node; + while (n && !!n.t) { + t.push(n.t); + n = n.getParentNode(); + } + t = t.reverse(); + node.tt = t.join('.'); + return true; + }, + showIcon: function(treeId, node) { + return (!!node.iconSkin); + }, + onNodeCreated: function (e, treeId, node) { + var a = $("#" + node.tId + "_a"); + if (node.showAPI) { + a.attr("rel", "#overlayDiv"); + } else { + a.css({cursor: "default"}); + } + }, + beforeClick: function (treeId, node, noClear) { + if (!node.showAPI) return false; + var o = $("#" + node.tId + "_a"); + if (!!apiContent.apiCache[node.tId]) { + apiContent.tmpDiv.html(apiContent.apiCache[node.tId]); + apiContent.overlayShow(o, (apiContent.lastNode === node)); + } else { + apiContent.overlayAjax(treeId, node); + } + apiContent.lastNode = node; + if (node.tId.indexOf("settingTree")>-1) { + apiContent.settingDiv.removeClass("right").addClass("left"); + apiContent.functionDiv.removeClass("left").addClass("right"); + } else { + apiContent.settingDiv.removeClass("left").addClass("right"); + apiContent.functionDiv.removeClass("right").addClass("left"); + } + + if (!noClear) { + apiContent.clearSelectedNode(); + } + return true; + }, + clearSelectedNode: function() { + apiContent.zTree_Setting.cancelSelectedNode(); + apiContent.zTree_Node.cancelSelectedNode(); + apiContent.zTree_Function.cancelSelectedNode(); + }, + overlayAutoClose: function(e) { + var eId = e.target.id, eRel = e.target.getAttribute("rel"), eClass = e.target.className; + if (eId === "overlayDiv" || eId === "overlayDivArrow" || eClass.indexOf("searchPrev") > -1 || eClass.indexOf("searchNext") > -1 || !!eRel) return; + if (!$(e.target).parents("[rel]").length && !$(e.target).parents("#overlayDiv").length) { + apiContent.overlayClose(); + } + }, + overlayClose: function() { + var o = apiContent.overlayDiv; + o.stop(); + apiContent.clearSelectedNode(); + if (ie) { + o.hide(); + } else { + setTimeout(function() {o.fadeTo("fast", 0, function(){o.hide();})}, 200); + } + $(document).unbind("click", apiContent.overlayAutoClose); + }, + overlayShow: function(target, isSameNode) { + var w = $(window), o = apiContent.overlayDiv, a = apiContent.overlayArrow, + oc = apiContent.overlayContent, c = apiContent.contentBoxDiv, + t = target.offset().top - 30, + cMaxLeft = c.offset().left + c.outerWidth({margin:true}) - o.outerWidth({margin:true}) - 10, + l = Math.min(cMaxLeft, target.offset().left + target.width() + 40), + arrowT = target.offset().top + 16, + wMinTop = 100, footerHeight = 50, onlyFade = false, + wHeight = w.height(), wScrollTop=w.scrollTop(), wMaxTop = wHeight + wScrollTop - footerHeight; + if (!apiContent.overlayMaxTop) { + apiContent.overlayMaxTop = apiContent.contentBoxDiv.offset().top + apiContent.contentBoxDiv.height(); + } + o.stop(); + if (o.css("display") !== "block") { + o.css({top: t, left: l}); + a.css({top:arrowT - t}); + $(document).bind("click", apiContent.overlayAutoClose); + } + if (ie) { + onlyFade = true; + o.show(); + } else { + o.fadeTo("fast", 1); + } + + var h = apiContent.tmpDiv.outerHeight({margin:true}) + apiContent.overlaySearch.outerHeight(); + if ((t + h) > wMaxTop) { + t = wMaxTop - h; + } + if ((t + h) > apiContent.overlayMaxTop) { + t = apiContent.overlayMaxTop - h; + } + t = Math.max(t, wScrollTop, wMinTop); + if ((t + h) > ($("body").height()-footerHeight-20)) { + o.css("padding-bottom", footerHeight + "px"); + } else { + o.css("padding-bottom", "0"); + } + apiContent.overlayDetailDiv.empty(); + apiContent.overlayDetailDiv.append(apiContent.tmpDiv.children()); + if (!onlyFade) { + onlyFade = (isSameNode && t === parseInt(o.css("top").replace("px", ""))); + } + + a.removeClass("reverse"); + if ( (arrowT - t) > (h-55) ) { + a.addClass("reverse"); + arrowT -= 55; + } + + if (onlyFade) { + o.css({top: t, left: l}); + oc.css({height: h}); + a.css({top:arrowT - t}); + } else { + o.animate({top: t, left: l}, {duration: "normal",easing: "swing", complete:null}); + oc.animate({height: h}, {duration: "fast",easing: "swing", complete:null}); + a.animate({top:arrowT - t}, {duration: "normal",easing: "linear", complete:null}); + } + }, + overlayAjax: function(treeId, node) { + var o = $("#" + node.tId + "_a"); + if (node.isAjax) return; + node.isAjax = true; + $.ajax({ + type: "get", + url: "" + lang + "/" + node.tt.replace("$.", "") + ".html", + data: null, + dataType: "text", + success: function(msg) { + if (!apiContent.tmpDiv) { + var tmpDiv = $(document.createElement("div")); + tmpDiv.addClass("baby_overlay_tmp"); + $("body").append(tmpDiv) + apiContent.tmpDiv = $(document.createElement("div")); + apiContent.tmpDiv.addClass("details"); + tmpDiv.append(apiContent.tmpDiv); + + } else { + apiContent.tmpDiv.empty(); + } + apiContent.tmpDiv.html(msg); + apiContent.overlayShow(o, false); + apiContent.apiCache[node.tId] = msg; + node.isAjax = false; + }, + error: function(XMLHttpRequest, textStatus, errorThrown) { + alert(ajaxMsg) + if (apiContent.tmpDiv) apiContent.tmpDiv.empty(); + node.isAjax = false; + } + }); + } +} \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/apiCss/common.css b/alive-admin/src/main/resources/static/ztree/api/apiCss/common.css new file mode 100644 index 0000000..358edf8 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/apiCss/common.css @@ -0,0 +1,219 @@ +/* Resets */ +html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td { + margin: 0;padding: 0;border: 0;outline: 0;font-weight: inherit;font-style: inherit;font-size: 100%;font-family: inherit;vertical-align: baseline;} +:focus {outline: 0;} +body {color: #2f332a;font: 15px/21px Arial, Helvetica, simsun, sans-serif;background: #528036 url(img/background.jpg) no-repeat fixed 0 0;} +p {padding-bottom: 20px;} +ol, ul {list-style: none;} +table {border-collapse: separate;border-spacing: 0;} +caption, th, td {text-align: left;font-weight: normal;} +strong {font-weight: bold;} +em {font-style: italic;} +hr {display: none;} +.font1 {color: white;background-color: #528036;} +.right {float: right;} +.left {float: left;} +.hide {display: none;} +.round {-moz-border-radius: 15px;-webkit-border-radius: 15px;-khtml-border-radius: 15px;border-radius: 15px;} +.clear {clear: both;} +.clearfix {display: block;} +.clearfix:after {content: ".";display: block;clear: both;visibility: hidden;line-height: 0;height: 0;} +html[xmlns] .clearfix {display: block;} +* html .clearfix {height: 1%;} + +/* Link Styles */ +a {color: #528036;} +a:link, a:visited {text-decoration: none;} +a:hover {color: #000;text-decoration: none;} +a:active {text-decoration: none;} + +/* Headings */ +h1, h2, h3, h4, h5, h6 {color: #2f332a;font-weight: bold;font-family: Helvetica, Arial, simsun, sans-serif;padding-bottom: 5px;} +h1 {font-size: 36px;line-height: 44px;} +h2 {font-size: 20px;line-height: 20px;} +h3 {font-size: 14px;line-height: 14px;} +h4 {font-size: 14px;font-weight: normal;line-height: 25px;} + +/* Wraps */ +.header_wrap {position: relative;min-width: 940px;padding: 100px 30px 0 30px;} +.content_wrap {position: relative;min-width: 940px;padding: 0 30px 50px 30px;} +.footer_wrap {bottom: 0;height: 47px;width: 100%;background-color: #1b1b1b;border-top: 1px solid #749e58;} + +/* Header */ +.header {position: relative;width: 940px;margin: 0 auto;height: 160px;border: 1px solid white;background: transparent url(img/header-bg.png) repeat-x 0 -50px;} +.header-text {padding: 40px 75px 15px 130px;font-size: 18px;line-height: 24px;color: #747d67;font-family: Helvetica, sans-serif;} +.header-text img {padding-bottom: 5px;} +.shortcuts {white-space: nowrap;text-align: right;position: absolute;top: -45px;right: 5px;} +.shortcuts.language {top: -85px;right:0px;} +.shortcuts li {display: inline;font-size: 18px;line-height: 28px;font-family: Helvetica, Arial, simsun, sans-serif;padding-bottom: 5px;margin-left: 30px;cursor: pointer;} +.shortcuts li button {cursor: pointer;} +.shortcuts li span {border-bottom: 1px dotted white;} +.shortcuts li span.selected {padding: 2px;background-color: #528036;} +.shortcuts li a {color: #fff;} +.ieSuggest {display:none;font-size: 12px;color: silver;position: absolute;left: 10px;top: 2px;} +.google_plus {position: absolute;right: 10px; top:10px;} +.light-bulb {position: absolute;left: -20px;bottom: -35px;width:116px;height:180px;background-image:url(img/lightbulb.png);background-repeat: no-repeat;} + +/* Content */ +.content {position: relative;width: 940px;margin: 0 auto;} +.nav_section {position: relative;height: 20px;font-family: "Myriad Pro", "Trebuchet MS", sans-serif;font-size: 15px;color: #253;padding: 20px 0;} +.nav_section ul {position: absolute;right: 10px;} +.nav_section ul li {display: inline;line-height: 20px;margin: 0 5px 0 20px;border-bottom: 1px dotted white;} +.nav_section ul li.noline {border-bottom: 0;} +.nav_section ul li a {color: #fff;} +.nav_section ul li a.selected {padding: 2px;background-color: #528036;} +.nav_section ul li.first {border: none;} +.content .title {margin: 50px 30px 20px 70px;} +.content li {margin-bottom: 5px;} +.contentBox {position: relative;overflow: hidden;border: 1px solid white;min-height: 200px;line-height: 25px;background: transparent url(img/contact-bg.png) repeat-x 0 0;} + +.zTreeInfo {display:none;width: 940px;position: absolute;} +.zTreeInfo p {padding-bottom: 50px;} +.zTreeInfo-left {float: left;width: 280px;height:300px;padding: 0 50px 60px 75px;background:url(img/zTreeIntroduction.jpg) no-repeat 30px 30px;} +.zTreeInfo-right {position: relative;float: right;width: 475px;padding: 0 50px 60px 0;} +.zTreeInfo-right li {font-size: 12px;list-style-type: disc;} + +.license {display:none;width: 940px;position: absolute;} + +.donateInfo {display:block;width: 940px;position: absolute;} + +.links {display:none;width: 940px;position: absolute;} +.links .content {float: left;width: 160px;height:200px;padding: 0 10px 10px 2px;text-align: center;} +.links .content.first {margin-left: 30px;} + +.contact {display:none;width: 940px;position: absolute;} +.contact .myhome { position: absolute; top:10px; left:620px; width:300px; height:266px; background: transparent url(img/myhome.gif) scroll no-repeat 0 0;} + +.siteTag {position: absolute;left: -16px;top: 109px;z-index: 10;width: 65px;height: 46px;padding:0;margin:0 10px 0 0; + vertical-align:middle;border:0 none;background: transparent url(img/siteTag.png) scroll no-repeat 0 0;} +.siteTag.tag_zTreeInfo {background-position: 0 0} +.siteTag.tag_license {background-position: 0 -46px} +.siteTag.tag_donate {background-position: 0 -92px} +.siteTag.tag_contact {background-position: 0 -138px} + +.apiContent {width: 940px;} +.apiContent .right {float: right;padding-right: 100px;} +.apiContent .left {float: left;padding-right: 20px;border-right: 1px dotted silver;} +.api_setting {position: relative;margin:20px 0 20px 20px;} +.api_function {position: relative;margin:20px 0 20px 30px;padding-right: 10px;} +.api_content_title {text-align: center;font-weight: bold;} + +.demoContent {width: 940px;} +.demoContent .right {float: right;padding: 20px;width: 600px;} +.demoContent .left {float: left;padding: 20px;} +.demoContent iframe {width:600px;min-height: 530px;} + +.faqContent {width: 940px;} +.faqContent .right {float: right;padding: 20px;width: 600px;} +.faqContent .left {float: left;padding: 20px;} +.faqContent iframe {width:600px;min-height: 300px;} + +.baby_overlay_tmp {position: absolute;top:0; left:-5000px;display:block;visibility: hidden;width:640px;font-size:11px;} +.baby_overlay_tmp .details {padding: 20px;} +.baby_overlay {display:none;position:absolute;z-index:99;left:0; top:0;width:640px;color:#fff;font-size:11px;} +.baby_overlay .content {width:100%; height:100px;overflow: hidden;background: transparent url(img/overlay_bg.png) scroll repeat 0 0;} +.baby_overlay .details {padding:0 20px 20px 20px;} +.baby_overlay .close {background-image:url(img/close.png);position:absolute; right:5px; top:5px;cursor:pointer;height:36px;width:36px;} +.baby_overlay_arrow {background-image:url(img/overlay_arrow.png);background-position:0 0;position:absolute;height:40px;width:40px;left: -40px;} +.baby_overlay_arrow.reverse {background-position:0 -40px;} + +/* Footer */ +.footer {position: relative;min-width: 1000px;font: 14px/24px arial, helvetica, sans-serif;} +.footer ul {position:absolute;left: 0px;border:1px solid #393939;background:#262626;padding:12px 0px;line-height: 18px;display: none;list-style: none;} +.footer ul li a {display:block;padding: 2px 15px;color: #9c9c9c;text-indent: 0;} +.footer ul li a:hover {text-decoration:none;color: #fff;} +.footer-logo {position:absolute;margin: 10px 0 0 30px;width:122px; height:24px;top:0; left:0;background: transparent url(img/footer-logo.png) no-repeat 0 0;} +.footer_mii {position: absolute;right: 558px;top: 8px;z-index: 10;padding: 4px 0;} +.footer_mii a {font-size:10px;color:#649140} +.footer_mii a:hover {color:#B6D76F} +.footer_siteMap {position: absolute;right: 358px;top: 8px;width: 155px;z-index: 10;padding: 4px 0;} +.footer_siteMap .footer_siteMap_header {width:155px;text-indent: -9999px;background: transparent url(img/footer_siteMap.gif) no-repeat 0 0;} +.footer_siteMap ul {top:-202px;width:180px;} +.footer_siteMap:hover ul {left: 0} +.footer_contact {position: absolute;right: 193px;top: 8px;width: 155px;z-index: 10;padding: 4px 0;} +.footer_contact .footer_contact_header {width:155px;text-indent: -9999px;background: transparent url(img/footer_contact.gif) no-repeat 0px 0px;} +.footer_contact ul {top:-113px;width:153px;} +.footer_contact:hover ul {left: 0} +.footer_download {position: absolute;right: 60px;top: 8px;width: 123px;z-index: 10;padding: 4px 0;} +.footer_download .footer_download_header {width:123px;text-indent: -9999px;background: transparent url(img/footer_download.png) no-repeat 0px 0px;} +.footer_download ul {top:-113px;width:140px;} +.footer_download:hover ul {left: 0} + +/* button icon */ +button {vertical-align:middle;border:0 none;background: transparent no-repeat 0 0 scroll;} + +.shortcuts button.ico {width:24px; height:24px;padding:0; margin:0 10px 0 0;background-image:url(img/menuIcon.png)} +.shortcuts button.home {background-position: 0 0} +.shortcuts button.demo {background-position: 0 -24px} +.shortcuts button.api {background-position: 0 -48px} +.shortcuts button.faq {background-position: 0 -72px} +.shortcuts button.donate {background-position: 0 -144px} +.shortcuts button.download {background-position: 0 -96px} +.shortcuts button.face {background-position: 0 -120px} +.shortcuts button.cn {width:48px; height:24px;padding:0; margin:0 10px 0 0;background-image:url(img/chinese.png)} +.shortcuts button.en {width:48px; height:24px;padding:0; margin:0 10px 0 0;background-image:url(img/english.png)} + +.content button.ico {width:24px; height:24px;padding:0; margin:0 10px 0 0;} + +.content button.ico16 {width:16px; height:16px;padding:0; margin:0 5px 0 0;background-image:url("img/apiMenu.png");} +button.z_core {margin-top: -4px;background-position:0 0;} +button.z_check {margin-top: -4px;background-position:0 -16px;} +button.z_edit {margin-top: -4px;background-position:0 -32px;} +button.z_hide {margin-top: -4px;background-position:0 -64px;} +button.z_search {margin-top: -4px;background-position:0 -48px;} +button.searchPrev {margin-top: -4px;background-position:-16px 0;cursor:pointer} +button.searchNext {margin-top: -4px;background-position:-16px -16px;cursor:pointer} +button.searchPrev.disabled {margin-top: -4px;background-position:-16px -32px;cursor:auto} +button.searchNext.disabled {margin-top: -4px;background-position:-16px -48px;cursor:auto} +input.search {margin:0;padding:2px 0; border:0;} +input.searchKey {width:150px;} +input.searchResult {margin-left:-3px;width:65px;text-align:right;background-color:white;color:#707070} +input.searchResult.noResult {background-color:#ff6666;color:black} +.baby_overlay div.overlaySearch {text-align:right;padding-right:50px;padding-top:12px;} + +/* api overlay*/ +.apiDetail .topLine {border-top: 1px dashed #376B29;margin-top: 5px;padding-top: 5px;} +.apiDetail .highlight_red {color:#A60000;} +.apiDetail .highlight_green {color:#A7F43D;} +.apiDetail h1, .apiDetail h2, .apiDetail h3, .apiDetail h4, .apiDetail h5, .apiDetail h6 {color: white;padding: 0;} +.apiDetail h2 {color: #A7F43D;margin: 5px auto;padding: 5px;font-size: 20px;} +.apiDetail h2 span {font-size: 14px;float: right;font-weight: normal;margin: 2px 20px 0 0;vertical-align: bottom;} +.apiDetail h2 span.path {float: left;margin: 2px 0 0 0;vertical-align: bottom;} +.apiDetail h3 {margin: 5px auto;padding: 5px;font-size: 14px;font-weight: normal;} +.apiDetail h3 span.h3_info {margin-left: 20px;font-size: 12px;} +.apiDetail h4 {margin: 0 auto;padding: 0 5px;font-size: 12px;font-weight: normal;line-height: 16px;} +.apiDetail .desc h4 {color: black;} +.apiDetail h4 b{width: 150px;display:inline-block;} +.apiDetail h4 span{width: 230px;display:inline-block;} + +.apiDetail pre, .apiDetail .desc {background: #E8FCD6;color: black;margin: 10px;padding: 10px;display: block;} +.apiDetail pre {word-wrap: break-word;} +.apiDetail p{margin-left: 5px;padding: 0;} +.apiDetail .longdesc {margin-top: 5px;} +.apiDetail .longdesc p{font-size: 12px;line-height:1.5;margin:3px 0;} +.apiDetail .longdesc b{font-size: 14px;} +.apiDetail table {border-collapse:collapse;} +.apiDetail table td {border:1px solid silver;text-align: center;vertical-align: middle;} +.apiDetail table thead td {font-weight: bold} + +.apiDetail button {width:16px; height:16px; vertical-align:middle; border:0 none; cursor: pointer; + background-color:transparent; background-repeat:no-repeat; background-attachment: scroll; + background-image:url("zTreeStyle/img/zTreeStandard.png");} + +.apiDetail button.chk {width:13px; height:13px; margin:0 3px 2px 0; cursor: auto} +.apiDetail button.chk.checkbox_false_full {background-position:0 0} +.apiDetail button.chk.checkbox_false_full_focus {background-position:0 -14px} +.apiDetail button.chk.checkbox_false_part {background-position:0 -28px} +.apiDetail button.chk.checkbox_false_part_focus {background-position:0 -42px} +.apiDetail button.chk.checkbox_true_full {background-position:-14px 0} +.apiDetail button.chk.checkbox_true_full_focus {background-position:-14px -14px} +.apiDetail button.chk.checkbox_true_part {background-position:-14px -28px} +.apiDetail button.chk.checkbox_true_part_focus {background-position:-14px -42px} +.apiDetail button.chk.radio_false_full {background-position:-28px 0} +.apiDetail button.chk.radio_false_full_focus {background-position:-28px -14px} +.apiDetail button.chk.radio_false_part {background-position:-28px -28px} +.apiDetail button.chk.radio_false_part_focus {background-position:-28px -42px} +.apiDetail button.chk.radio_true_full {background-position:-42px 0} +.apiDetail button.chk.radio_true_full_focus {background-position:-42px -14px} +.apiDetail button.chk.radio_true_part {background-position:-42px -28px} +.apiDetail button.chk.radio_true_part_focus {background-position:-42px -42px} \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/apiCss/common_ie6.css b/alive-admin/src/main/resources/static/ztree/api/apiCss/common_ie6.css new file mode 100644 index 0000000..aacaf59 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/apiCss/common_ie6.css @@ -0,0 +1,23 @@ +* html{ +/* background-image:url(about:blank);*/ + background-attachment:fixed; +} +html pre {word-wrap: break-word} +.header {background-image: none;background-color: #F0F6E4;} + +.ieSuggest {display:block;} +.shortcuts button.cn {filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='apiCss/img/chinese.png');background-image: none;} +.shortcuts button.en {filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='apiCss/img/english.png');background-image: none;} + +.light-bulb {filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='apiCss/img/lightbulb.png');background-image: none;} +.contentBox {background-image: none;background-color: #F0F6E4;} +.zTreeInfo {background-image: none;background-color: #F0F6E4;} + +.content button.ico16 {*background-image:url("img/apiMenu.gif")} +.siteTag {background-image: none;} +.apiContent .right {float: right;padding-right: 50px;} + +div.baby_overlay {background-color: #3C6E31;background-image:none;color:#fff;} +div.baby_overlay .close {filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='apiCss/img/overlay_close_IE6.gif');background-image: none;} +.baby_overlay_arrow {background-image:url(img/overlay_arrow.gif);} +.apiDetail button {background-image:url("img/zTreeStandard.gif")} \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/apiCss/img/apiMenu.gif b/alive-admin/src/main/resources/static/ztree/api/apiCss/img/apiMenu.gif new file mode 100644 index 0000000..066fc8e Binary files /dev/null and b/alive-admin/src/main/resources/static/ztree/api/apiCss/img/apiMenu.gif differ diff --git a/alive-admin/src/main/resources/static/ztree/api/apiCss/img/apiMenu.png b/alive-admin/src/main/resources/static/ztree/api/apiCss/img/apiMenu.png new file mode 100644 index 0000000..9acec50 Binary files /dev/null and b/alive-admin/src/main/resources/static/ztree/api/apiCss/img/apiMenu.png differ diff --git a/alive-admin/src/main/resources/static/ztree/api/apiCss/img/background.jpg b/alive-admin/src/main/resources/static/ztree/api/apiCss/img/background.jpg new file mode 100644 index 0000000..003375f Binary files /dev/null and b/alive-admin/src/main/resources/static/ztree/api/apiCss/img/background.jpg differ diff --git a/alive-admin/src/main/resources/static/ztree/api/apiCss/img/chinese.png b/alive-admin/src/main/resources/static/ztree/api/apiCss/img/chinese.png new file mode 100644 index 0000000..d3b57fc Binary files /dev/null and b/alive-admin/src/main/resources/static/ztree/api/apiCss/img/chinese.png differ diff --git a/alive-admin/src/main/resources/static/ztree/api/apiCss/img/close.png b/alive-admin/src/main/resources/static/ztree/api/apiCss/img/close.png new file mode 100644 index 0000000..69e41e3 Binary files /dev/null and b/alive-admin/src/main/resources/static/ztree/api/apiCss/img/close.png differ diff --git a/alive-admin/src/main/resources/static/ztree/api/apiCss/img/contact-bg.png b/alive-admin/src/main/resources/static/ztree/api/apiCss/img/contact-bg.png new file mode 100644 index 0000000..a3d7a5f Binary files /dev/null and b/alive-admin/src/main/resources/static/ztree/api/apiCss/img/contact-bg.png differ diff --git a/alive-admin/src/main/resources/static/ztree/api/apiCss/img/english.png b/alive-admin/src/main/resources/static/ztree/api/apiCss/img/english.png new file mode 100644 index 0000000..2ad2d7d Binary files /dev/null and b/alive-admin/src/main/resources/static/ztree/api/apiCss/img/english.png differ diff --git a/alive-admin/src/main/resources/static/ztree/api/apiCss/img/header-bg.png b/alive-admin/src/main/resources/static/ztree/api/apiCss/img/header-bg.png new file mode 100644 index 0000000..a2baacf Binary files /dev/null and b/alive-admin/src/main/resources/static/ztree/api/apiCss/img/header-bg.png differ diff --git a/alive-admin/src/main/resources/static/ztree/api/apiCss/img/lightbulb.png b/alive-admin/src/main/resources/static/ztree/api/apiCss/img/lightbulb.png new file mode 100644 index 0000000..c99357a Binary files /dev/null and b/alive-admin/src/main/resources/static/ztree/api/apiCss/img/lightbulb.png differ diff --git a/alive-admin/src/main/resources/static/ztree/api/apiCss/img/overlay_arrow.gif b/alive-admin/src/main/resources/static/ztree/api/apiCss/img/overlay_arrow.gif new file mode 100644 index 0000000..e7c3e6d Binary files /dev/null and b/alive-admin/src/main/resources/static/ztree/api/apiCss/img/overlay_arrow.gif differ diff --git a/alive-admin/src/main/resources/static/ztree/api/apiCss/img/overlay_arrow.png b/alive-admin/src/main/resources/static/ztree/api/apiCss/img/overlay_arrow.png new file mode 100644 index 0000000..d790a11 Binary files /dev/null and b/alive-admin/src/main/resources/static/ztree/api/apiCss/img/overlay_arrow.png differ diff --git a/alive-admin/src/main/resources/static/ztree/api/apiCss/img/overlay_bg.png b/alive-admin/src/main/resources/static/ztree/api/apiCss/img/overlay_bg.png new file mode 100644 index 0000000..5f81ee6 Binary files /dev/null and b/alive-admin/src/main/resources/static/ztree/api/apiCss/img/overlay_bg.png differ diff --git a/alive-admin/src/main/resources/static/ztree/api/apiCss/img/overlay_close_IE6.gif b/alive-admin/src/main/resources/static/ztree/api/apiCss/img/overlay_close_IE6.gif new file mode 100644 index 0000000..42cb8d8 Binary files /dev/null and b/alive-admin/src/main/resources/static/ztree/api/apiCss/img/overlay_close_IE6.gif differ diff --git a/alive-admin/src/main/resources/static/ztree/api/apiCss/img/zTreeStandard.gif b/alive-admin/src/main/resources/static/ztree/api/apiCss/img/zTreeStandard.gif new file mode 100644 index 0000000..3f69a5b Binary files /dev/null and b/alive-admin/src/main/resources/static/ztree/api/apiCss/img/zTreeStandard.gif differ diff --git a/alive-admin/src/main/resources/static/ztree/api/apiCss/img/zTreeStandard.png b/alive-admin/src/main/resources/static/ztree/api/apiCss/img/zTreeStandard.png new file mode 100644 index 0000000..33c9e84 Binary files /dev/null and b/alive-admin/src/main/resources/static/ztree/api/apiCss/img/zTreeStandard.png differ diff --git a/alive-admin/src/main/resources/static/ztree/api/apiCss/jquery-1.6.2.min.js b/alive-admin/src/main/resources/static/ztree/api/apiCss/jquery-1.6.2.min.js new file mode 100644 index 0000000..8cdc80e --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/apiCss/jquery-1.6.2.min.js @@ -0,0 +1,18 @@ +/*! + * jQuery JavaScript Library v1.6.2 + * http://jquery.com/ + * + * Copyright 2011, John Resig + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * Includes Sizzle.js + * http://sizzlejs.com/ + * Copyright 2011, The Dojo Foundation + * Released under the MIT, BSD, and GPL Licenses. + * + * Date: Thu Jun 30 14:16:56 2011 -0400 + */ +(function(a,b){function cv(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cs(a){if(!cg[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ch||(ch=c.createElement("iframe"),ch.frameBorder=ch.width=ch.height=0),b.appendChild(ch);if(!ci||!ch.createElement)ci=(ch.contentWindow||ch.contentDocument).document,ci.write((c.compatMode==="CSS1Compat"?"":"")+""),ci.close();d=ci.createElement(a),ci.body.appendChild(d),e=f.css(d,"display"),b.removeChild(ch)}cg[a]=e}return cg[a]}function cr(a,b){var c={};f.each(cm.concat.apply([],cm.slice(0,b)),function(){c[this]=a});return c}function cq(){cn=b}function cp(){setTimeout(cq,0);return cn=f.now()}function cf(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function ce(){try{return new a.XMLHttpRequest}catch(b){}}function b$(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var d=a.dataTypes,e={},g,h,i=d.length,j,k=d[0],l,m,n,o,p;for(g=1;g0){c!=="border"&&f.each(e,function(){c||(d-=parseFloat(f.css(a,"padding"+this))||0),c==="margin"?d+=parseFloat(f.css(a,c+this))||0:d-=parseFloat(f.css(a,"border"+this+"Width"))||0});return d+"px"}d=bx(a,b,b);if(d<0||d==null)d=a.style[b]||0;d=parseFloat(d)||0,c&&f.each(e,function(){d+=parseFloat(f.css(a,"padding"+this))||0,c!=="padding"&&(d+=parseFloat(f.css(a,"border"+this+"Width"))||0),c==="margin"&&(d+=parseFloat(f.css(a,c+this))||0)});return d+"px"}function bm(a,b){b.src?f.ajax({url:b.src,async:!1,dataType:"script"}):f.globalEval((b.text||b.textContent||b.innerHTML||"").replace(be,"/*$0*/")),b.parentNode&&b.parentNode.removeChild(b)}function bl(a){f.nodeName(a,"input")?bk(a):"getElementsByTagName"in a&&f.grep(a.getElementsByTagName("input"),bk)}function bk(a){if(a.type==="checkbox"||a.type==="radio")a.defaultChecked=a.checked}function bj(a){return"getElementsByTagName"in a?a.getElementsByTagName("*"):"querySelectorAll"in a?a.querySelectorAll("*"):[]}function bi(a,b){var c;if(b.nodeType===1){b.clearAttributes&&b.clearAttributes(),b.mergeAttributes&&b.mergeAttributes(a),c=b.nodeName.toLowerCase();if(c==="object")b.outerHTML=a.outerHTML;else if(c!=="input"||a.type!=="checkbox"&&a.type!=="radio"){if(c==="option")b.selected=a.defaultSelected;else if(c==="input"||c==="textarea")b.defaultValue=a.defaultValue}else a.checked&&(b.defaultChecked=b.checked=a.checked),b.value!==a.value&&(b.value=a.value);b.removeAttribute(f.expando)}}function bh(a,b){if(b.nodeType===1&&!!f.hasData(a)){var c=f.expando,d=f.data(a),e=f.data(b,d);if(d=d[c]){var g=d.events;e=e[c]=f.extend({},d);if(g){delete e.handle,e.events={};for(var h in g)for(var i=0,j=g[h].length;i=0===c})}function V(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function N(a,b){return(a&&a!=="*"?a+".":"")+b.replace(z,"`").replace(A,"&")}function M(a){var b,c,d,e,g,h,i,j,k,l,m,n,o,p=[],q=[],r=f._data(this,"events");if(!(a.liveFired===this||!r||!r.live||a.target.disabled||a.button&&a.type==="click")){a.namespace&&(n=new RegExp("(^|\\.)"+a.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)")),a.liveFired=this;var s=r.live.slice(0);for(i=0;ic)break;a.currentTarget=e.elem,a.data=e.handleObj.data,a.handleObj=e.handleObj,o=e.handleObj.origHandler.apply(e.elem,arguments);if(o===!1||a.isPropagationStopped()){c=e.level,o===!1&&(b=!1);if(a.isImmediatePropagationStopped())break}}return b}}function K(a,c,d){var e=f.extend({},d[0]);e.type=a,e.originalEvent={},e.liveFired=b,f.event.handle.call(c,e),e.isDefaultPrevented()&&d[0].preventDefault()}function E(){return!0}function D(){return!1}function m(a,c,d){var e=c+"defer",g=c+"queue",h=c+"mark",i=f.data(a,e,b,!0);i&&(d==="queue"||!f.data(a,g,b,!0))&&(d==="mark"||!f.data(a,h,b,!0))&&setTimeout(function(){!f.data(a,g,b,!0)&&!f.data(a,h,b,!0)&&(f.removeData(a,e,!0),i.resolve())},0)}function l(a){for(var b in a)if(b!=="toJSON")return!1;return!0}function k(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(j,"$1-$2").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:f.isNaN(d)?i.test(d)?f.parseJSON(d):d:parseFloat(d)}catch(g){}f.data(a,c,d)}else d=b}return d}var c=a.document,d=a.navigator,e=a.location,f=function(){function J(){if(!e.isReady){try{c.documentElement.doScroll("left")}catch(a){setTimeout(J,1);return}e.ready()}}var e=function(a,b){return new e.fn.init(a,b,h)},f=a.jQuery,g=a.$,h,i=/^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,j=/\S/,k=/^\s+/,l=/\s+$/,m=/\d/,n=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,o=/^[\],:{}\s]*$/,p=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,q=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,r=/(?:^|:|,)(?:\s*\[)+/g,s=/(webkit)[ \/]([\w.]+)/,t=/(opera)(?:.*version)?[ \/]([\w.]+)/,u=/(msie) ([\w.]+)/,v=/(mozilla)(?:.*? rv:([\w.]+))?/,w=/-([a-z])/ig,x=function(a,b){return b.toUpperCase()},y=d.userAgent,z,A,B,C=Object.prototype.toString,D=Object.prototype.hasOwnProperty,E=Array.prototype.push,F=Array.prototype.slice,G=String.prototype.trim,H=Array.prototype.indexOf,I={};e.fn=e.prototype={constructor:e,init:function(a,d,f){var g,h,j,k;if(!a)return this;if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!d&&c.body){this.context=c,this[0]=c.body,this.selector=a,this.length=1;return this}if(typeof a=="string"){a.charAt(0)!=="<"||a.charAt(a.length-1)!==">"||a.length<3?g=i.exec(a):g=[null,a,null];if(g&&(g[1]||!d)){if(g[1]){d=d instanceof e?d[0]:d,k=d?d.ownerDocument||d:c,j=n.exec(a),j?e.isPlainObject(d)?(a=[c.createElement(j[1])],e.fn.attr.call(a,d,!0)):a=[k.createElement(j[1])]:(j=e.buildFragment([g[1]],[k]),a=(j.cacheable?e.clone(j.fragment):j.fragment).childNodes);return e.merge(this,a)}h=c.getElementById(g[2]);if(h&&h.parentNode){if(h.id!==g[2])return f.find(a);this.length=1,this[0]=h}this.context=c,this.selector=a;return this}return!d||d.jquery?(d||f).find(a):this.constructor(d).find(a)}if(e.isFunction(a))return f.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return e.makeArray(a,this)},selector:"",jquery:"1.6.2",length:0,size:function(){return this.length},toArray:function(){return F.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=this.constructor();e.isArray(a)?E.apply(d,a):e.merge(d,a),d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")");return d},each:function(a,b){return e.each(this,a,b)},ready:function(a){e.bindReady(),A.done(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(F.apply(this,arguments),"slice",F.call(arguments).join(","))},map:function(a){return this.pushStack(e.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:E,sort:[].sort,splice:[].splice},e.fn.init.prototype=e.fn,e.extend=e.fn.extend=function(){var a,c,d,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i=="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!="object"&&!e.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j0)return;A.resolveWith(c,[e]),e.fn.trigger&&e(c).trigger("ready").unbind("ready")}},bindReady:function(){if(!A){A=e._Deferred();if(c.readyState==="complete")return setTimeout(e.ready,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",B,!1),a.addEventListener("load",e.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",B),a.attachEvent("onload",e.ready);var b=!1;try{b=a.frameElement==null}catch(d){}c.documentElement.doScroll&&b&&J()}}},isFunction:function(a){return e.type(a)==="function"},isArray:Array.isArray||function(a){return e.type(a)==="array"},isWindow:function(a){return a&&typeof a=="object"&&"setInterval"in a},isNaN:function(a){return a==null||!m.test(a)||isNaN(a)},type:function(a){return a==null?String(a):I[C.call(a)]||"object"},isPlainObject:function(a){if(!a||e.type(a)!=="object"||a.nodeType||e.isWindow(a))return!1;if(a.constructor&&!D.call(a,"constructor")&&!D.call(a.constructor.prototype,"isPrototypeOf"))return!1;var c;for(c in a);return c===b||D.call(a,c)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw a},parseJSON:function(b){if(typeof b!="string"||!b)return null;b=e.trim(b);if(a.JSON&&a.JSON.parse)return a.JSON.parse(b);if(o.test(b.replace(p,"@").replace(q,"]").replace(r,"")))return(new Function("return "+b))();e.error("Invalid JSON: "+b)},parseXML:function(b,c,d){a.DOMParser?(d=new DOMParser,c=d.parseFromString(b,"text/xml")):(c=new ActiveXObject("Microsoft.XMLDOM"),c.async="false",c.loadXML(b)),d=c.documentElement,(!d||!d.nodeName||d.nodeName==="parsererror")&&e.error("Invalid XML: "+b);return c},noop:function(){},globalEval:function(b){b&&j.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(w,x)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var f,g=0,h=a.length,i=h===b||e.isFunction(a);if(d){if(i){for(f in a)if(c.apply(a[f],d)===!1)break}else for(;g0&&a[0]&&a[j-1]||j===0||e.isArray(a));if(k)for(;i1?h.call(arguments,0):c,--e||g.resolveWith(g,h.call(b,0))}}var b=arguments,c=0,d=b.length,e=d,g=d<=1&&a&&f.isFunction(a.promise)?a:f.Deferred();if(d>1){for(;c
                a",d=a.getElementsByTagName("*"),e=a.getElementsByTagName("a")[0];if(!d||!d.length||!e)return{};g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=a.getElementsByTagName("input")[0],k={leadingWhitespace:a.firstChild.nodeType===3,tbody:!a.getElementsByTagName("tbody").length,htmlSerialize:!!a.getElementsByTagName("link").length,style:/top/.test(e.getAttribute("style")),hrefNormalized:e.getAttribute("href")==="/a",opacity:/^0.55$/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected,getSetAttribute:a.className!=="t",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0},i.checked=!0,k.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,k.optDisabled=!h.disabled;try{delete a.test}catch(v){k.deleteExpando=!1}!a.addEventListener&&a.attachEvent&&a.fireEvent&&(a.attachEvent("onclick",function(){k.noCloneEvent=!1}),a.cloneNode(!0).fireEvent("onclick")),i=c.createElement("input"),i.value="t",i.setAttribute("type","radio"),k.radioValue=i.value==="t",i.setAttribute("checked","checked"),a.appendChild(i),l=c.createDocumentFragment(),l.appendChild(a.firstChild),k.checkClone=l.cloneNode(!0).cloneNode(!0).lastChild.checked,a.innerHTML="",a.style.width=a.style.paddingLeft="1px",m=c.getElementsByTagName("body")[0],o=c.createElement(m?"div":"body"),p={visibility:"hidden",width:0,height:0,border:0,margin:0},m&&f.extend(p,{position:"absolute",left:-1e3,top:-1e3});for(t in p)o.style[t]=p[t];o.appendChild(a),n=m||b,n.insertBefore(o,n.firstChild),k.appendChecked=i.checked,k.boxModel=a.offsetWidth===2,"zoom"in a.style&&(a.style.display="inline",a.style.zoom=1,k.inlineBlockNeedsLayout=a.offsetWidth===2,a.style.display="",a.innerHTML="
                ",k.shrinkWrapBlocks=a.offsetWidth!==2),a.innerHTML="
                t
                ",q=a.getElementsByTagName("td"),u=q[0].offsetHeight===0,q[0].style.display="",q[1].style.display="none",k.reliableHiddenOffsets=u&&q[0].offsetHeight===0,a.innerHTML="",c.defaultView&&c.defaultView.getComputedStyle&&(j=c.createElement("div"),j.style.width="0",j.style.marginRight="0",a.appendChild(j),k.reliableMarginRight=(parseInt((c.defaultView.getComputedStyle(j,null)||{marginRight:0}).marginRight,10)||0)===0),o.innerHTML="",n.removeChild(o);if(a.attachEvent)for(t in{submit:1,change:1,focusin:1})s="on"+t,u=s in a,u||(a.setAttribute(s,"return;"),u=typeof a[s]=="function"),k[t+"Bubbles"]=u;o=l=g=h=m=j=a=i=null;return k}(),f.boxModel=f.support.boxModel;var i=/^(?:\{.*\}|\[.*\])$/,j=/([a-z])([A-Z])/g;f.extend({cache:{},uuid:0,expando:"jQuery"+(f.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?f.cache[a[f.expando]]:a[f.expando];return!!a&&!l(a)},data:function(a,c,d,e){if(!!f.acceptData(a)){var g=f.expando,h=typeof c=="string",i,j=a.nodeType,k=j?f.cache:a,l=j?a[f.expando]:a[f.expando]&&f.expando;if((!l||e&&l&&!k[l][g])&&h&&d===b)return;l||(j?a[f.expando]=l=++f.uuid:l=f.expando),k[l]||(k[l]={},j||(k[l].toJSON=f.noop));if(typeof c=="object"||typeof c=="function")e?k[l][g]=f.extend(k[l][g],c):k[l]=f.extend(k[l],c);i=k[l],e&&(i[g]||(i[g]={}),i=i[g]),d!==b&&(i[f.camelCase(c)]=d);if(c==="events"&&!i[c])return i[g]&&i[g].events;return h?i[f.camelCase(c)]||i[c]:i}},removeData:function(b,c,d){if(!!f.acceptData(b)){var e=f.expando,g=b.nodeType,h=g?f.cache:b,i=g?b[f.expando]:f.expando;if(!h[i])return;if(c){var j=d?h[i][e]:h[i];if(j){delete j[c];if(!l(j))return}}if(d){delete h[i][e];if(!l(h[i]))return}var k=h[i][e];f.support.deleteExpando||h!=a?delete h[i]:h[i]=null,k?(h[i]={},g||(h[i].toJSON=f.noop),h[i][e]=k):g&&(f.support.deleteExpando?delete b[f.expando]:b.removeAttribute?b.removeAttribute(f.expando):b[f.expando]=null)}},_data:function(a,b,c){return f.data(a,b,c,!0)},acceptData:function(a){if(a.nodeName){var b=f.noData[a.nodeName.toLowerCase()];if(b)return b!==!0&&a.getAttribute("classid")===b}return!0}}),f.fn.extend({data:function(a,c){var d=null;if(typeof a=="undefined"){if(this.length){d=f.data(this[0]);if(this[0].nodeType===1){var e=this[0].attributes,g;for(var h=0,i=e.length;h-1)return!0;return!1},val:function(a){var c,d,e=this[0];if(!arguments.length){if(e){c=f.valHooks[e.nodeName.toLowerCase()]||f.valHooks[e.type];if(c&&"get"in c&&(d=c.get(e,"value"))!==b)return d;d=e.value;return typeof d=="string"?d.replace(p,""):d==null?"":d}return b}var g=f.isFunction(a);return this.each(function(d){var e=f(this),h;if(this.nodeType===1){g?h=a.call(this,d,e.val()):h=a,h==null?h="":typeof h=="number"?h+="":f.isArray(h)&&(h=f.map(h,function(a){return a==null?"":a+""})),c=f.valHooks[this.nodeName.toLowerCase()]||f.valHooks[this.type];if(!c||!("set"in c)||c.set(this,h,"value")===b)this.value=h}})}}),f.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,c=a.selectedIndex,d=[],e=a.options,g=a.type==="select-one";if(c<0)return null;for(var h=g?c:0,i=g?c+1:e.length;h=0}),c.length||(a.selectedIndex=-1);return c}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attrFix:{tabindex:"tabIndex"},attr:function(a,c,d,e){var g=a.nodeType;if(!a||g===3||g===8||g===2)return b;if(e&&c in f.attrFn)return f(a)[c](d);if(!("getAttribute"in a))return f.prop(a,c,d);var h,i,j=g!==1||!f.isXMLDoc(a);j&&(c=f.attrFix[c]||c,i=f.attrHooks[c],i||(t.test(c)?i=w:v&&c!=="className"&&(f.nodeName(a,"form")||u.test(c))&&(i=v)));if(d!==b){if(d===null){f.removeAttr(a,c);return b}if(i&&"set"in i&&j&&(h=i.set(a,d,c))!==b)return h;a.setAttribute(c,""+d);return d}if(i&&"get"in i&&j&&(h=i.get(a,c))!==null)return h;h=a.getAttribute(c);return h===null?b:h},removeAttr:function(a,b){var c;a.nodeType===1&&(b=f.attrFix[b]||b,f.support.getSetAttribute?a.removeAttribute(b):(f.attr(a,b,""),a.removeAttributeNode(a.getAttributeNode(b))),t.test(b)&&(c=f.propFix[b]||b)in a&&(a[c]=!1))},attrHooks:{type:{set:function(a,b){if(q.test(a.nodeName)&&a.parentNode)f.error("type property can't be changed");else if(!f.support.radioValue&&b==="radio"&&f.nodeName(a,"input")){var c=a.value;a.setAttribute("type",b),c&&(a.value=c);return b}}},tabIndex:{get:function(a){var c=a.getAttributeNode("tabIndex");return c&&c.specified?parseInt(c.value,10):r.test(a.nodeName)||s.test(a.nodeName)&&a.href?0:b}},value:{get:function(a,b){if(v&&f.nodeName(a,"button"))return v.get(a,b);return b in a?a.value:null},set:function(a,b,c){if(v&&f.nodeName(a,"button"))return v.set(a,b,c);a.value=b}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(a,c,d){var e=a.nodeType;if(!a||e===3||e===8||e===2)return b;var g,h,i=e!==1||!f.isXMLDoc(a);i&&(c=f.propFix[c]||c,h=f.propHooks[c]);return d!==b?h&&"set"in h&&(g=h.set(a,d,c))!==b?g:a[c]=d:h&&"get"in h&&(g=h.get(a,c))!==b?g:a[c]},propHooks:{}}),w={get:function(a,c){return f.prop(a,c)?c.toLowerCase():b},set:function(a,b,c){var d;b===!1?f.removeAttr(a,c):(d=f.propFix[c]||c,d in a&&(a[d]=!0),a.setAttribute(c,c.toLowerCase()));return c}},f.support.getSetAttribute||(f.attrFix=f.propFix,v=f.attrHooks.name=f.attrHooks.title=f.valHooks.button={get:function(a,c){var d;d=a.getAttributeNode(c);return d&&d.nodeValue!==""?d.nodeValue:b},set:function(a,b,c){var d=a.getAttributeNode(c);if(d){d.nodeValue=b;return b}}},f.each(["width","height"],function(a,b){f.attrHooks[b]=f.extend(f.attrHooks[b],{set:function(a,c){if(c===""){a.setAttribute(b,"auto");return c}}})})),f.support.hrefNormalized||f.each(["href","src","width","height"],function(a,c){f.attrHooks[c]=f.extend(f.attrHooks[c],{get:function(a){var d=a.getAttribute(c,2);return d===null?b:d}})}),f.support.style||(f.attrHooks.style={get:function(a){return a.style.cssText.toLowerCase()||b},set:function(a,b){return a.style.cssText=""+b}}),f.support.optSelected||(f.propHooks.selected=f.extend(f.propHooks.selected,{get:function(a){var b=a.parentNode;b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex)}})),f.support.checkOn||f.each(["radio","checkbox"],function(){f.valHooks[this]={get:function(a){return a.getAttribute("value")===null?"on":a.value}}}),f.each(["radio","checkbox"],function(){f.valHooks[this]=f.extend(f.valHooks[this],{set:function(a,b){if(f.isArray(b))return a.checked=f.inArray(f(a).val(),b)>=0}})});var x=/\.(.*)$/,y=/^(?:textarea|input|select)$/i,z=/\./g,A=/ /g,B=/[^\w\s.|`]/g,C=function(a){return a.replace(B,"\\$&")};f.event={add:function(a,c,d,e){if(a.nodeType!==3&&a.nodeType!==8){if(d===!1)d=D;else if(!d)return;var g,h;d.handler&&(g=d,d=g.handler),d.guid||(d.guid=f.guid++);var i=f._data(a);if(!i)return;var j=i.events,k=i.handle;j||(i.events=j={}),k||(i.handle=k=function(a){return typeof f!="undefined"&&(!a||f.event.triggered!==a.type)?f.event.handle.apply(k.elem,arguments):b}),k.elem=a,c=c.split(" ");var l,m=0,n;while(l=c[m++]){h=g?f.extend({},g):{handler:d,data:e},l.indexOf(".")>-1?(n=l.split("."),l=n.shift(),h.namespace=n.slice(0).sort().join(".")):(n=[],h.namespace=""),h.type=l,h.guid||(h.guid=d.guid);var o=j[l],p=f.event.special[l]||{};if(!o){o=j[l]=[];if(!p.setup||p.setup.call(a,e,n,k)===!1)a.addEventListener?a.addEventListener(l,k,!1):a.attachEvent&&a.attachEvent("on"+l,k)}p.add&&(p.add.call(a,h),h.handler.guid||(h.handler.guid=d.guid)),o.push(h),f.event.global[l]=!0}a=null}},global:{},remove:function(a,c,d,e){if(a.nodeType!==3&&a.nodeType!==8){d===!1&&(d=D);var g,h,i,j,k=0,l,m,n,o,p,q,r,s=f.hasData(a)&&f._data(a),t=s&&s.events;if(!s||!t)return;c&&c.type&&(d=c.handler,c=c.type);if(!c||typeof c=="string"&&c.charAt(0)==="."){c=c||"";for(h in t)f.event.remove(a,h+c);return}c=c.split(" ");while(h=c[k++]){r=h,q=null,l=h.indexOf(".")<0,m=[],l||(m=h.split("."),h=m.shift(),n=new RegExp("(^|\\.)"+f.map(m.slice(0).sort(),C).join("\\.(?:.*\\.)?")+"(\\.|$)")),p=t[h];if(!p)continue;if(!d){for(j=0;j=0&&(h=h.slice(0,-1),j=!0),h.indexOf(".")>=0&&(i=h.split("."),h=i. +shift(),i.sort());if(!!e&&!f.event.customEvent[h]||!!f.event.global[h]){c=typeof c=="object"?c[f.expando]?c:new f.Event(h,c):new f.Event(h),c.type=h,c.exclusive=j,c.namespace=i.join("."),c.namespace_re=new RegExp("(^|\\.)"+i.join("\\.(?:.*\\.)?")+"(\\.|$)");if(g||!e)c.preventDefault(),c.stopPropagation();if(!e){f.each(f.cache,function(){var a=f.expando,b=this[a];b&&b.events&&b.events[h]&&f.event.trigger(c,d,b.handle.elem)});return}if(e.nodeType===3||e.nodeType===8)return;c.result=b,c.target=e,d=d!=null?f.makeArray(d):[],d.unshift(c);var k=e,l=h.indexOf(":")<0?"on"+h:"";do{var m=f._data(k,"handle");c.currentTarget=k,m&&m.apply(k,d),l&&f.acceptData(k)&&k[l]&&k[l].apply(k,d)===!1&&(c.result=!1,c.preventDefault()),k=k.parentNode||k.ownerDocument||k===c.target.ownerDocument&&a}while(k&&!c.isPropagationStopped());if(!c.isDefaultPrevented()){var n,o=f.event.special[h]||{};if((!o._default||o._default.call(e.ownerDocument,c)===!1)&&(h!=="click"||!f.nodeName(e,"a"))&&f.acceptData(e)){try{l&&e[h]&&(n=e[l],n&&(e[l]=null),f.event.triggered=h,e[h]())}catch(p){}n&&(e[l]=n),f.event.triggered=b}}return c.result}},handle:function(c){c=f.event.fix(c||a.event);var d=((f._data(this,"events")||{})[c.type]||[]).slice(0),e=!c.exclusive&&!c.namespace,g=Array.prototype.slice.call(arguments,0);g[0]=c,c.currentTarget=this;for(var h=0,i=d.length;h-1?f.map(a.options,function(a){return a.selected}).join("-"):"":f.nodeName(a,"select")&&(c=a.selectedIndex);return c},J=function(c){var d=c.target,e,g;if(!!y.test(d.nodeName)&&!d.readOnly){e=f._data(d,"_change_data"),g=I(d),(c.type!=="focusout"||d.type!=="radio")&&f._data(d,"_change_data",g);if(e===b||g===e)return;if(e!=null||g)c.type="change",c.liveFired=b,f.event.trigger(c,arguments[1],d)}};f.event.special.change={filters:{focusout:J,beforedeactivate:J,click:function(a){var b=a.target,c=f.nodeName(b,"input")?b.type:"";(c==="radio"||c==="checkbox"||f.nodeName(b,"select"))&&J.call(this,a)},keydown:function(a){var b=a.target,c=f.nodeName(b,"input")?b.type:"";(a.keyCode===13&&!f.nodeName(b,"textarea")||a.keyCode===32&&(c==="checkbox"||c==="radio")||c==="select-multiple")&&J.call(this,a)},beforeactivate:function(a){var b=a.target;f._data(b,"_change_data",I(b))}},setup:function(a,b){if(this.type==="file")return!1;for(var c in H)f.event.add(this,c+".specialChange",H[c]);return y.test(this.nodeName)},teardown:function(a){f.event.remove(this,".specialChange");return y.test(this.nodeName)}},H=f.event.special.change.filters,H.focus=H.beforeactivate}f.support.focusinBubbles||f.each({focus:"focusin",blur:"focusout"},function(a,b){function e(a){var c=f.event.fix(a);c.type=b,c.originalEvent={},f.event.trigger(c,null,c.target),c.isDefaultPrevented()&&a.preventDefault()}var d=0;f.event.special[b]={setup:function(){d++===0&&c.addEventListener(a,e,!0)},teardown:function(){--d===0&&c.removeEventListener(a,e,!0)}}}),f.each(["bind","one"],function(a,c){f.fn[c]=function(a,d,e){var g;if(typeof a=="object"){for(var h in a)this[c](h,d,a[h],e);return this}if(arguments.length===2||d===!1)e=d,d=b;c==="one"?(g=function(a){f(this).unbind(a,g);return e.apply(this,arguments)},g.guid=e.guid||f.guid++):g=e;if(a==="unload"&&c!=="one")this.one(a,d,e);else for(var i=0,j=this.length;i0?this.bind(b,a,c):this.trigger(b)},f.attrFn&&(f.attrFn[b]=!0)}),function(){function u(a,b,c,d,e,f){for(var g=0,h=d.length;g0){j=i;break}}i=i[a]}d[g]=j}}}function t(a,b,c,d,e,f){for(var g=0,h=d.length;g+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,d=0,e=Object.prototype.toString,g=!1,h=!0,i=/\\/g,j=/\W/;[0,0].sort(function(){h=!1;return 0});var k=function(b,d,f,g){f=f||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!="string")return f;var i,j,n,o,q,r,s,t,u=!0,w=k.isXML(d),x=[],y=b;do{a.exec(""),i=a.exec(y);if(i){y=i[3],x.push(i[1]);if(i[2]){o=i[3];break}}}while(i);if(x.length>1&&m.exec(b))if(x.length===2&&l.relative[x[0]])j=v(x[0]+x[1],d);else{j=l.relative[x[0]]?[d]:k(x.shift(),d);while(x.length)b=x.shift(),l.relative[b]&&(b+=x.shift()),j=v(b,j)}else{!g&&x.length>1&&d.nodeType===9&&!w&&l.match.ID.test(x[0])&&!l.match.ID.test(x[x.length-1])&&(q=k.find(x.shift(),d,w),d=q.expr?k.filter(q.expr,q.set)[0]:q.set[0]);if(d){q=g?{expr:x.pop(),set:p(g)}:k.find(x.pop(),x.length===1&&(x[0]==="~"||x[0]==="+")&&d.parentNode?d.parentNode:d,w),j=q.expr?k.filter(q.expr,q.set):q.set,x.length>0?n=p(j):u=!1;while(x.length)r=x.pop(),s=r,l.relative[r]?s=x.pop():r="",s==null&&(s=d),l.relative[r](n,s,w)}else n=x=[]}n||(n=j),n||k.error(r||b);if(e.call(n)==="[object Array]")if(!u)f.push.apply(f,n);else if(d&&d.nodeType===1)for(t=0;n[t]!=null;t++)n[t]&&(n[t]===!0||n[t].nodeType===1&&k.contains(d,n[t]))&&f.push(j[t]);else for(t=0;n[t]!=null;t++)n[t]&&n[t].nodeType===1&&f.push(j[t]);else p(n,f);o&&(k(o,h,f,g),k.uniqueSort(f));return f};k.uniqueSort=function(a){if(r){g=h,a.sort(r);if(g)for(var b=1;b0},k.find=function(a,b,c){var d;if(!a)return[];for(var e=0,f=l.order.length;e":function(a,b){var c,d=typeof b=="string",e=0,f=a.length;if(d&&!j.test(b)){b=b.toLowerCase();for(;e=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].replace(i,"")},TAG:function(a,b){return a[1].replace(i,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||k.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else a[2]&&k.error(a[0]);a[0]=d++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(i,"");!f&&l.attrMap[g]&&(a[1]=l.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(i,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not")if((a.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[3]=k(b[3],null,null,c);else{var g=k.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return!1}else if(l.match.POS.test(b[0])||l.match.CHILD.test(b[0]))return!0;return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!k(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return a.nodeName.toLowerCase()==="input"&&"text"===c&&(b===c||b===null)},radio:function(a){return a.nodeName.toLowerCase()==="input"&&"radio"===a.type},checkbox:function(a){return a.nodeName.toLowerCase()==="input"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()==="input"&&"file"===a.type},password:function(a){return a.nodeName.toLowerCase()==="input"&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&"button"===a.type||b==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return bc[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=l.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||k.getText([a])||"").indexOf(b[3])>=0;if(e==="not"){var g=b[3];for(var h=0,i=g.length;h=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=l.attrHandle[c]?l.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=l.setFilters[e];if(f)return f(a,c,b,d)}}},m=l.match.POS,n=function(a,b){return"\\"+(b-0+1)};for(var o in l.match)l.match[o]=new RegExp(l.match[o].source+/(?![^\[]*\])(?![^\(]*\))/.source),l.leftMatch[o]=new RegExp(/(^(?:.|\r|\n)*?)/.source+l.match[o].source.replace(/\\(\d+)/g,n));var p=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(q){p=function(a,b){var c=0,d=b||[];if(e.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length=="number")for(var f=a.length;c",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(l.find.ID=function(a,c,d){if(typeof c.getElementById!="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},l.filter.ID=function(a,b){var c=typeof a.getAttributeNode!="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(l.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c}),a.innerHTML="",a.firstChild&&typeof a.firstChild.getAttribute!="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(l.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=k,b=c.createElement("div"),d="__sizzle__";b.innerHTML="

                ";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){k=function(b,e,f,g){e=e||c;if(!g&&!k.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])return p(e.getElementsByTagName(b),f);if(h[2]&&l.find.CLASS&&e.getElementsByClassName)return p(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"&&e.body)return p([e.body],f);if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode)return p([],f);if(i.id===h[3])return p([i],f)}try{return p(e.querySelectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var m=e,n=e.getAttribute("id"),o=n||d,q=e.parentNode,r=/^\s*[+~]/.test(b);n?o=o.replace(/'/g,"\\$&"):e.setAttribute("id",o),r&&q&&(e=e.parentNode);try{if(!r||q)return p(e.querySelectorAll("[id='"+o+"'] "+b),f)}catch(s){}finally{n||m.removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)k[e]=a[e];b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var d=!b.call(c.createElement("div"),"div"),e=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(f){e=!0}k.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!k.isXML(a))try{if(e||!l.match.PSEUDO.test(c)&&!/!=/.test(c)){var f=b.call(a,c);if(f||!d||a.document&&a.document.nodeType!==11)return f}}catch(g){}return k(c,null,null,[a]).length>0}}}(),function(){var a=c.createElement("div");a.innerHTML="
                ";if(!!a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;l.order.splice(1,0,"CLASS"),l.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}}(),c.documentElement.contains?k.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?k.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:k.contains=function(){return!1},k.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var v=function(a,b){var c,d=[],e="",f=b.nodeType?[b]:b;while(c=l.match.PSEUDO.exec(a))e+=c[0],a=a.replace(l.match.PSEUDO,"");a=l.relative[a]?a+"*":a;for(var g=0,h=f.length;g0)for(h=g;h0:this.filter(a).length>0)},closest:function(a,b){var c=[],d,e,g=this[0];if(f.isArray(a)){var h,i,j={},k=1;if(g&&a.length){for(d=0,e=a.length;d-1:f(g).is(h))&&c.push({selector:i,elem:g,level:k});g=g.parentNode,k++}}return c}var l=T.test(a)||typeof a!="string"?f(a,b||this.context):0;for(d=0,e=this.length;d-1:f.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b||g.nodeType===11)break}}c=c.length>1?f.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a||typeof a=="string")return f.inArray(this[0],a?f(a):this.parent().children());return f.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a=="string"?f(a,b):f.makeArray(a&&a.nodeType?[a]:a),d=f.merge(this.get(),c);return this.pushStack(V(c[0])||V(d[0])?d:f.unique(d))},andSelf:function(){return this.add(this.prevObject)}}),f.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return f.dir(a,"parentNode")},parentsUntil:function(a,b,c){return f.dir(a,"parentNode",c)},next:function(a){return f.nth(a,2,"nextSibling")},prev:function(a){return f.nth(a,2,"previousSibling")},nextAll:function(a){return f.dir(a,"nextSibling")},prevAll:function(a){return f.dir(a,"previousSibling")},nextUntil:function(a,b,c){return f.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return f.dir(a,"previousSibling",c)},siblings:function(a){return f.sibling(a.parentNode.firstChild,a)},children:function(a){return f.sibling(a.firstChild)},contents:function(a){return f.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:f.makeArray(a.childNodes)}},function(a,b){f.fn[a]=function(c,d){var e=f.map(this,b,c),g=S.call(arguments);O.test(a)||(d=c),d&&typeof d=="string"&&(e=f.filter(d,e)),e=this.length>1&&!U[a]?f.unique(e):e,(this.length>1||Q.test(d))&&P.test(a)&&(e=e.reverse());return this.pushStack(e,a,g.join(","))}}),f.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?f.find.matchesSelector(b[0],a)?[b[0]]:[]:f.find.matches(a,b)},dir:function(a,c,d){var e=[],g=a[c];while(g&&g.nodeType!==9&&(d===b||g.nodeType!==1||!f(g).is(d)))g.nodeType===1&&e.push(g),g=g[c];return e},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var X=/ jQuery\d+="(?:\d+|null)"/g,Y=/^\s+/,Z=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,$=/<([\w:]+)/,_=/",""],legend:[1,"
                ","
                "],thead:[1,"","
                "],tr:[2,"","
                "],td:[3,"","
                "],col:[2,"","
                "],area:[1,"",""],_default:[0,"",""]};bf.optgroup=bf.option,bf.tbody=bf.tfoot=bf.colgroup=bf.caption=bf.thead,bf.th=bf.td,f.support.htmlSerialize||(bf._default=[1,"div
                ","
                "]),f.fn.extend({text:function(a){if(f.isFunction(a))return this.each(function(b){var c=f(this);c.text(a.call(this,b,c.text()))});if(typeof a!="object"&&a!==b)return this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a));return f.text(this)},wrapAll:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapAll(a.call(this,b))});if(this[0]){var b=f(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapInner(a.call(this,b))});return this.each(function(){var b=f(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){f(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){f.nodeName(this,"body")||f(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=f(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,f(arguments[0]).toArray());return a}},remove:function(a,b){for(var c=0,d;(d=this[c])!=null;c++)if(!a||f.filter(a,[d]).length)!b&&d.nodeType===1&&(f.cleanData(d.getElementsByTagName("*")),f.cleanData([d])),d.parentNode&&d.parentNode.removeChild(d);return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&f.cleanData(b.getElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return f.clone(this,a,b)})},html:function(a){if(a===b)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(X,""):null;if(typeof a=="string"&&!bb.test(a)&&(f.support.leadingWhitespace||!Y.test(a))&&!bf[($.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Z,"<$1>");try{for(var c=0,d=this.length;c1&&l0?this.clone(!0):this).get();f(e[h])[b](j),d=d.concat(j +)}return this.pushStack(d,a,e.selector)}}),f.extend({clone:function(a,b,c){var d=a.cloneNode(!0),e,g,h;if((!f.support.noCloneEvent||!f.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!f.isXMLDoc(a)){bi(a,d),e=bj(a),g=bj(d);for(h=0;e[h];++h)bi(e[h],g[h])}if(b){bh(a,d);if(c){e=bj(a),g=bj(d);for(h=0;e[h];++h)bh(e[h],g[h])}}e=g=null;return d},clean:function(a,b,d,e){var g;b=b||c,typeof b.createElement=="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);var h=[],i;for(var j=0,k;(k=a[j])!=null;j++){typeof k=="number"&&(k+="");if(!k)continue;if(typeof k=="string")if(!ba.test(k))k=b.createTextNode(k);else{k=k.replace(Z,"<$1>");var l=($.exec(k)||["",""])[1].toLowerCase(),m=bf[l]||bf._default,n=m[0],o=b.createElement("div");o.innerHTML=m[1]+k+m[2];while(n--)o=o.lastChild;if(!f.support.tbody){var p=_.test(k),q=l==="table"&&!p?o.firstChild&&o.firstChild.childNodes:m[1]===""&&!p?o.childNodes:[];for(i=q.length-1;i>=0;--i)f.nodeName(q[i],"tbody")&&!q[i].childNodes.length&&q[i].parentNode.removeChild(q[i])}!f.support.leadingWhitespace&&Y.test(k)&&o.insertBefore(b.createTextNode(Y.exec(k)[0]),o.firstChild),k=o.childNodes}var r;if(!f.support.appendChecked)if(k[0]&&typeof (r=k.length)=="number")for(i=0;i=0)return b+"px"}}}),f.support.opacity||(f.cssHooks.opacity={get:function(a,b){return bo.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle;c.zoom=1;var e=f.isNaN(b)?"":"alpha(opacity="+b*100+")",g=d&&d.filter||c.filter||"";c.filter=bn.test(g)?g.replace(bn,e):g+" "+e}}),f(function(){f.support.reliableMarginRight||(f.cssHooks.marginRight={get:function(a,b){var c;f.swap(a,{display:"inline-block"},function(){b?c=bx(a,"margin-right","marginRight"):c=a.style.marginRight});return c}})}),c.defaultView&&c.defaultView.getComputedStyle&&(by=function(a,c){var d,e,g;c=c.replace(bp,"-$1").toLowerCase();if(!(e=a.ownerDocument.defaultView))return b;if(g=e.getComputedStyle(a,null))d=g.getPropertyValue(c),d===""&&!f.contains(a.ownerDocument.documentElement,a)&&(d=f.style(a,c));return d}),c.documentElement.currentStyle&&(bz=function(a,b){var c,d=a.currentStyle&&a.currentStyle[b],e=a.runtimeStyle&&a.runtimeStyle[b],f=a.style;!bq.test(d)&&br.test(d)&&(c=f.left,e&&(a.runtimeStyle.left=a.currentStyle.left),f.left=b==="fontSize"?"1em":d||0,d=f.pixelLeft+"px",f.left=c,e&&(a.runtimeStyle.left=e));return d===""?"auto":d}),bx=by||bz,f.expr&&f.expr.filters&&(f.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!f.support.reliableHiddenOffsets&&(a.style.display||f.css(a,"display"))==="none"},f.expr.filters.visible=function(a){return!f.expr.filters.hidden(a)});var bB=/%20/g,bC=/\[\]$/,bD=/\r?\n/g,bE=/#.*$/,bF=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bG=/^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bH=/^(?:about|app|app\-storage|.+\-extension|file|widget):$/,bI=/^(?:GET|HEAD)$/,bJ=/^\/\//,bK=/\?/,bL=/)<[^<]*)*<\/script>/gi,bM=/^(?:select|textarea)/i,bN=/\s+/,bO=/([?&])_=[^&]*/,bP=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,bQ=f.fn.load,bR={},bS={},bT,bU;try{bT=e.href}catch(bV){bT=c.createElement("a"),bT.href="",bT=bT.href}bU=bP.exec(bT.toLowerCase())||[],f.fn.extend({load:function(a,c,d){if(typeof a!="string"&&bQ)return bQ.apply(this,arguments);if(!this.length)return this;var e=a.indexOf(" ");if(e>=0){var g=a.slice(e,a.length);a=a.slice(0,e)}var h="GET";c&&(f.isFunction(c)?(d=c,c=b):typeof c=="object"&&(c=f.param(c,f.ajaxSettings.traditional),h="POST"));var i=this;f.ajax({url:a,type:h,dataType:"html",data:c,complete:function(a,b,c){c=a.responseText,a.isResolved()&&(a.done(function(a){c=a}),i.html(g?f("
                ").append(c.replace(bL,"")).find(g):c)),d&&i.each(d,[c,b,a])}});return this},serialize:function(){return f.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?f.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bM.test(this.nodeName)||bG.test(this.type))}).map(function(a,b){var c=f(this).val();return c==null?null:f.isArray(c)?f.map(c,function(a,c){return{name:b.name,value:a.replace(bD,"\r\n")}}):{name:b.name,value:c.replace(bD,"\r\n")}}).get()}}),f.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){f.fn[b]=function(a){return this.bind(b,a)}}),f.each(["get","post"],function(a,c){f[c]=function(a,d,e,g){f.isFunction(d)&&(g=g||e,e=d,d=b);return f.ajax({type:c,url:a,data:d,success:e,dataType:g})}}),f.extend({getScript:function(a,c){return f.get(a,b,c,"script")},getJSON:function(a,b,c){return f.get(a,b,c,"json")},ajaxSetup:function(a,b){b?f.extend(!0,a,f.ajaxSettings,b):(b=a,a=f.extend(!0,f.ajaxSettings,b));for(var c in{context:1,url:1})c in b?a[c]=b[c]:c in f.ajaxSettings&&(a[c]=f.ajaxSettings[c]);return a},ajaxSettings:{url:bT,isLocal:bH.test(bU[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":"*/*"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":f.parseJSON,"text xml":f.parseXML}},ajaxPrefilter:bW(bR),ajaxTransport:bW(bS),ajax:function(a,c){function w(a,c,l,m){if(s!==2){s=2,q&&clearTimeout(q),p=b,n=m||"",v.readyState=a?4:0;var o,r,u,w=l?bZ(d,v,l):b,x,y;if(a>=200&&a<300||a===304){if(d.ifModified){if(x=v.getResponseHeader("Last-Modified"))f.lastModified[k]=x;if(y=v.getResponseHeader("Etag"))f.etag[k]=y}if(a===304)c="notmodified",o=!0;else try{r=b$(d,w),c="success",o=!0}catch(z){c="parsererror",u=z}}else{u=c;if(!c||a)c="error",a<0&&(a=0)}v.status=a,v.statusText=c,o?h.resolveWith(e,[r,c,v]):h.rejectWith(e,[v,c,u]),v.statusCode(j),j=b,t&&g.trigger("ajax"+(o?"Success":"Error"),[v,d,o?r:u]),i.resolveWith(e,[v,c]),t&&(g.trigger("ajaxComplete",[v,d]),--f.active||f.event.trigger("ajaxStop"))}}typeof a=="object"&&(c=a,a=b),c=c||{};var d=f.ajaxSetup({},c),e=d.context||d,g=e!==d&&(e.nodeType||e instanceof f)?f(e):f.event,h=f.Deferred(),i=f._Deferred(),j=d.statusCode||{},k,l={},m={},n,o,p,q,r,s=0,t,u,v={readyState:0,setRequestHeader:function(a,b){if(!s){var c=a.toLowerCase();a=m[c]=m[c]||a,l[a]=b}return this},getAllResponseHeaders:function(){return s===2?n:null},getResponseHeader:function(a){var c;if(s===2){if(!o){o={};while(c=bF.exec(n))o[c[1].toLowerCase()]=c[2]}c=o[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){s||(d.mimeType=a);return this},abort:function(a){a=a||"abort",p&&p.abort(a),w(0,a);return this}};h.promise(v),v.success=v.done,v.error=v.fail,v.complete=i.done,v.statusCode=function(a){if(a){var b;if(s<2)for(b in a)j[b]=[j[b],a[b]];else b=a[v.status],v.then(b,b)}return this},d.url=((a||d.url)+"").replace(bE,"").replace(bJ,bU[1]+"//"),d.dataTypes=f.trim(d.dataType||"*").toLowerCase().split(bN),d.crossDomain==null&&(r=bP.exec(d.url.toLowerCase()),d.crossDomain=!(!r||r[1]==bU[1]&&r[2]==bU[2]&&(r[3]||(r[1]==="http:"?80:443))==(bU[3]||(bU[1]==="http:"?80:443)))),d.data&&d.processData&&typeof d.data!="string"&&(d.data=f.param(d.data,d.traditional)),bX(bR,d,c,v);if(s===2)return!1;t=d.global,d.type=d.type.toUpperCase(),d.hasContent=!bI.test(d.type),t&&f.active++===0&&f.event.trigger("ajaxStart");if(!d.hasContent){d.data&&(d.url+=(bK.test(d.url)?"&":"?")+d.data),k=d.url;if(d.cache===!1){var x=f.now(),y=d.url.replace(bO,"$1_="+x);d.url=y+(y===d.url?(bK.test(d.url)?"&":"?")+"_="+x:"")}}(d.data&&d.hasContent&&d.contentType!==!1||c.contentType)&&v.setRequestHeader("Content-Type",d.contentType),d.ifModified&&(k=k||d.url,f.lastModified[k]&&v.setRequestHeader("If-Modified-Since",f.lastModified[k]),f.etag[k]&&v.setRequestHeader("If-None-Match",f.etag[k])),v.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+(d.dataTypes[0]!=="*"?", */*; q=0.01":""):d.accepts["*"]);for(u in d.headers)v.setRequestHeader(u,d.headers[u]);if(d.beforeSend&&(d.beforeSend.call(e,v,d)===!1||s===2)){v.abort();return!1}for(u in{success:1,error:1,complete:1})v[u](d[u]);p=bX(bS,d,c,v);if(!p)w(-1,"No Transport");else{v.readyState=1,t&&g.trigger("ajaxSend",[v,d]),d.async&&d.timeout>0&&(q=setTimeout(function(){v.abort("timeout")},d.timeout));try{s=1,p.send(l,w)}catch(z){status<2?w(-1,z):f.error(z)}}return v},param:function(a,c){var d=[],e=function(a,b){b=f.isFunction(b)?b():b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=f.ajaxSettings.traditional);if(f.isArray(a)||a.jquery&&!f.isPlainObject(a))f.each(a,function(){e(this.name,this.value)});else for(var g in a)bY(g,a[g],c,e);return d.join("&").replace(bB,"+")}}),f.extend({active:0,lastModified:{},etag:{}});var b_=f.now(),ca=/(\=)\?(&|$)|\?\?/i;f.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return f.expando+"_"+b_++}}),f.ajaxPrefilter("json jsonp",function(b,c,d){var e=b.contentType==="application/x-www-form-urlencoded"&&typeof b.data=="string";if(b.dataTypes[0]==="jsonp"||b.jsonp!==!1&&(ca.test(b.url)||e&&ca.test(b.data))){var g,h=b.jsonpCallback=f.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],j=b.url,k=b.data,l="$1"+h+"$2";b.jsonp!==!1&&(j=j.replace(ca,l),b.url===j&&(e&&(k=k.replace(ca,l)),b.data===k&&(j+=(/\?/.test(j)?"&":"?")+b.jsonp+"="+h))),b.url=j,b.data=k,a[h]=function(a){g=[a]},d.always(function(){a[h]=i,g&&f.isFunction(i)&&a[h](g[0])}),b.converters["script json"]=function(){g||f.error(h+" was not called");return g[0]},b.dataTypes[0]="json";return"script"}}),f.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){f.globalEval(a);return a}}}),f.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),f.ajaxTransport("script",function(a){if(a.crossDomain){var d,e=c.head||c.getElementsByTagName("head")[0]||c.documentElement;return{send:function(f,g){d=c.createElement("script"),d.async="async",a.scriptCharset&&(d.charset=a.scriptCharset),d.src=a.url,d.onload=d.onreadystatechange=function(a,c){if(c||!d.readyState||/loaded|complete/.test(d.readyState))d.onload=d.onreadystatechange=null,e&&d.parentNode&&e.removeChild(d),d=b,c||g(200,"success")},e.insertBefore(d,e.firstChild)},abort:function(){d&&d.onload(0,1)}}}});var cb=a.ActiveXObject?function(){for(var a in cd)cd[a](0,1)}:!1,cc=0,cd;f.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&ce()||cf()}:ce,function(a){f.extend(f.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})}(f.ajaxSettings.xhr()),f.support.ajax&&f.ajaxTransport(function(c){if(!c.crossDomain||f.support.cors){var d;return{send:function(e,g){var h=c.xhr(),i,j;c.username?h.open(c.type,c.url,c.async,c.username,c.password):h.open(c.type,c.url,c.async);if(c.xhrFields)for(j in c.xhrFields)h[j]=c.xhrFields[j];c.mimeType&&h.overrideMimeType&&h.overrideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(j in e)h.setRequestHeader(j,e[j])}catch(k){}h.send(c.hasContent&&c.data||null),d=function(a,e){var j,k,l,m,n;try{if(d&&(e||h.readyState===4)){d=b,i&&(h.onreadystatechange=f.noop,cb&&delete cd[i]);if(e)h.readyState!==4&&h.abort();else{j=h.status,l=h.getAllResponseHeaders(),m={},n=h.responseXML,n&&n.documentElement&&(m.xml=n),m.text=h.responseText;try{k=h.statusText}catch(o){k=""}!j&&c.isLocal&&!c.crossDomain?j=m.text?200:404:j===1223&&(j=204)}}}catch(p){e||g(-1,p)}m&&g(j,k,m,l)},!c.async||h.readyState===4?d():(i=++cc,cb&&(cd||(cd={},f(a).unload(cb)),cd[i]=d),h.onreadystatechange=d)},abort:function(){d&&d(0,1)}}}});var cg={},ch,ci,cj=/^(?:toggle|show|hide)$/,ck=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,cl,cm=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],cn,co=a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame;f.fn.extend({show:function(a,b,c){var d,e;if(a||a===0)return this.animate(cr("show",3),a,b,c);for(var g=0,h=this.length;g=e.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),e.animatedProperties[this.prop]=!0;for(g in e.animatedProperties)e.animatedProperties[g]!==!0&&(c=!1);if(c){e.overflow!=null&&!f.support.shrinkWrapBlocks&&f.each(["","X","Y"],function(a,b){d.style["overflow"+b]=e.overflow[a]}),e.hide&&f(d).hide();if(e.hide||e.show)for(var i in e.animatedProperties)f.style(d,i,e.orig[i]);e.complete.call(d)}return!1}e.duration==Infinity?this.now=b:(h=b-this.startTime,this.state=h/e.duration,this.pos=f.easing[e.animatedProperties[this.prop]](this.state,h,0,1,e.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update();return!0}},f.extend(f.fx,{tick:function(){for(var a=f.timers,b=0;b
                ";f.extend(b.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"}),b.innerHTML=j,a.insertBefore(b,a.firstChild),d=b.firstChild,e=d.firstChild,h=d.nextSibling.firstChild.firstChild,this.doesNotAddBorder=e.offsetTop!==5,this.doesAddBorderForTableAndCells=h.offsetTop===5,e.style.position="fixed",e.style.top="20px",this.supportsFixedPosition=e.offsetTop===20||e.offsetTop===15,e.style.position=e.style.top="",d.style.overflow="hidden",d.style.position="relative",this.subtractsBorderForOverflowNotVisible=e.offsetTop===-5,this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==i,a.removeChild(b),f.offset.initialize=f.noop},bodyOffset:function(a){var b=a.offsetTop,c=a.offsetLeft;f.offset.initialize(),f.offset.doesNotIncludeMarginInBodyOffset&&(b+=parseFloat(f.css(a,"marginTop"))||0,c+=parseFloat(f.css(a,"marginLeft"))||0);return{top:b,left:c}},setOffset:function(a,b,c){var d=f.css(a,"position");d==="static"&&(a.style.position="relative");var e=f(a),g=e.offset(),h=f.css(a,"top"),i=f.css(a,"left"),j=(d==="absolute"||d==="fixed")&&f.inArray("auto",[h,i])>-1,k={},l={},m,n;j?(l=e.position(),m=l.top,n=l.left):(m=parseFloat(h)||0,n=parseFloat(i)||0),f.isFunction(b)&&(b=b.call(a,c,g)),b.top!=null&&(k.top=b.top-g.top+m),b.left!=null&&(k.left=b.left-g.left+n),"using"in b?b.using.call(a,k):e.css(k)}},f.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),d=cu.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(f.css(a,"marginTop"))||0,c.left-=parseFloat(f.css(a,"marginLeft"))||0,d.top+=parseFloat(f.css(b[0],"borderTopWidth"))||0,d.left+=parseFloat(f.css(b[0],"borderLeftWidth"))||0;return{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||c.body;while(a&&!cu.test(a.nodeName)&&f.css(a,"position")==="static")a=a.offsetParent;return a})}}),f.each(["Left","Top"],function(a,c){var d="scroll"+c;f.fn[d]=function(c){var e,g;if(c===b){e=this[0];if(!e)return null;g=cv(e);return g?"pageXOffset"in g?g[a?"pageYOffset":"pageXOffset"]:f.support.boxModel&&g.document.documentElement[d]||g.document.body[d]:e[d]}return this.each(function(){g=cv(this),g?g.scrollTo(a?f(g).scrollLeft():c,a?c:f(g).scrollTop()):this[d]=c})}}),f.each(["Height","Width"],function(a,c){var d=c.toLowerCase();f.fn["inner"+c]=function(){var a=this[0];return a&&a.style?parseFloat(f.css(a,d,"padding")):null},f.fn["outer"+c]=function(a){var b=this[0];return b&&b.style?parseFloat(f.css(b,d,a?"margin":"border")):null},f.fn[d]=function(a){var e=this[0];if(!e)return a==null?null:this;if(f.isFunction(a))return this.each(function(b){var c=f(this);c[d](a.call(this,b,c[d]()))});if(f.isWindow(e)){var g=e.document.documentElement["client"+c];return e.document.compatMode==="CSS1Compat"&&g||e.document.body["client"+c]||g}if(e.nodeType===9)return Math.max(e.documentElement["client"+c],e.body["scroll"+c],e.documentElement["scroll"+c],e.body["offset"+c],e.documentElement["offset"+c]);if(a===b){var h=f.css(e,d),i=parseFloat(h);return f.isNaN(i)?h:i}return this.css(d,typeof a=="string"?a:a+"px")}}),a.jQuery=a.$=f})(window); \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/apiCss/jquery.ztree.core-3.5.js b/alive-admin/src/main/resources/static/ztree/api/apiCss/jquery.ztree.core-3.5.js new file mode 100644 index 0000000..cd38985 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/apiCss/jquery.ztree.core-3.5.js @@ -0,0 +1,70 @@ +/* + * JQuery zTree core 3.5 + * http://zTree.me/ + * + * Copyright (c) 2010 Hunter.z + * + * Licensed same as jquery - MIT License + * http://www.opensource.org/licenses/mit-license.php + * + * email: hunter.z@263.net + * Date: 2012-11-20 + */ +(function(k){var E,F,G,H,I,J,r={},K={},s={},L={treeId:"",treeObj:null,view:{addDiyDom:null,autoCancelSelected:!0,dblClickExpand:!0,expandSpeed:"fast",fontCss:{},nameIsHTML:!1,selectedMulti:!0,showIcon:!0,showLine:!0,showTitle:!0},data:{key:{children:"children",name:"name",title:"",url:"url"},simpleData:{enable:!1,idKey:"id",pIdKey:"pId",rootPId:null},keep:{parent:!1,leaf:!1}},async:{enable:!1,contentType:"application/x-www-form-urlencoded",type:"post",dataType:"text",url:"",autoParam:[],otherParam:[], +dataFilter:null},callback:{beforeAsync:null,beforeClick:null,beforeDblClick:null,beforeRightClick:null,beforeMouseDown:null,beforeMouseUp:null,beforeExpand:null,beforeCollapse:null,beforeRemove:null,onAsyncError:null,onAsyncSuccess:null,onNodeCreated:null,onClick:null,onDblClick:null,onRightClick:null,onMouseDown:null,onMouseUp:null,onExpand:null,onCollapse:null,onRemove:null}},t=[function(b){var a=b.treeObj,c=e.event;a.bind(c.NODECREATED,function(a,c,h){j.apply(b.callback.onNodeCreated,[a,c,h])}); +a.bind(c.CLICK,function(a,c,h,l,g){j.apply(b.callback.onClick,[c,h,l,g])});a.bind(c.EXPAND,function(a,c,h){j.apply(b.callback.onExpand,[a,c,h])});a.bind(c.COLLAPSE,function(a,c,h){j.apply(b.callback.onCollapse,[a,c,h])});a.bind(c.ASYNC_SUCCESS,function(a,c,h,l){j.apply(b.callback.onAsyncSuccess,[a,c,h,l])});a.bind(c.ASYNC_ERROR,function(a,c,h,l,g,e){j.apply(b.callback.onAsyncError,[a,c,h,l,g,e])})}],u=[function(b){var a=e.event;b.treeObj.unbind(a.NODECREATED).unbind(a.CLICK).unbind(a.EXPAND).unbind(a.COLLAPSE).unbind(a.ASYNC_SUCCESS).unbind(a.ASYNC_ERROR)}], +v=[function(b){var a=g.getCache(b);a||(a={},g.setCache(b,a));a.nodes=[];a.doms=[]}],w=[function(b,a,c,d,f,h){if(c){var l=g.getRoot(b),e=b.data.key.children;c.level=a;c.tId=b.treeId+"_"+ ++l.zId;c.parentTId=d?d.tId:null;if(c[e]&&c[e].length>0){if(typeof c.open=="string")c.open=j.eqs(c.open,"true");c.open=!!c.open;c.isParent=!0;c.zAsync=!0}else{c.open=!1;if(typeof c.isParent=="string")c.isParent=j.eqs(c.isParent,"true");c.isParent=!!c.isParent;c.zAsync=!c.isParent}c.isFirstNode=f;c.isLastNode=h;c.getParentNode= +function(){return g.getNodeCache(b,c.parentTId)};c.getPreNode=function(){return g.getPreNode(b,c)};c.getNextNode=function(){return g.getNextNode(b,c)};c.isAjaxing=!1;g.fixPIdKeyValue(b,c)}}],x=[function(b){var a=b.target,c=g.getSetting(b.data.treeId),d="",f=null,h="",l="",i=null,n=null,q=null;if(j.eqs(b.type,"mousedown"))l="mousedown";else if(j.eqs(b.type,"mouseup"))l="mouseup";else if(j.eqs(b.type,"contextmenu"))l="contextmenu";else if(j.eqs(b.type,"click"))if(j.eqs(a.tagName,"span")&&a.getAttribute("treeNode"+ +e.id.SWITCH)!==null)d=(k(a).parent("li").get(0)||k(a).parentsUntil("li").parent().get(0)).id,h="switchNode";else{if(q=j.getMDom(c,a,[{tagName:"a",attrName:"treeNode"+e.id.A}]))d=(k(q).parent("li").get(0)||k(q).parentsUntil("li").parent().get(0)).id,h="clickNode"}else if(j.eqs(b.type,"dblclick")&&(l="dblclick",q=j.getMDom(c,a,[{tagName:"a",attrName:"treeNode"+e.id.A}])))d=(k(q).parent("li").get(0)||k(q).parentsUntil("li").parent().get(0)).id,h="switchNode";if(l.length>0&&d.length==0&&(q=j.getMDom(c, +a,[{tagName:"a",attrName:"treeNode"+e.id.A}])))d=(k(q).parent("li").get(0)||k(q).parentsUntil("li").parent().get(0)).id;if(d.length>0)switch(f=g.getNodeCache(c,d),h){case "switchNode":f.isParent?j.eqs(b.type,"click")||j.eqs(b.type,"dblclick")&&j.apply(c.view.dblClickExpand,[c.treeId,f],c.view.dblClickExpand)?i=E:h="":h="";break;case "clickNode":i=F}switch(l){case "mousedown":n=G;break;case "mouseup":n=H;break;case "dblclick":n=I;break;case "contextmenu":n=J}return{stop:!1,node:f,nodeEventType:h,nodeEventCallback:i, +treeEventType:l,treeEventCallback:n}}],y=[function(b){var a=g.getRoot(b);a||(a={},g.setRoot(b,a));a[b.data.key.children]=[];a.expandTriggerFlag=!1;a.curSelectedList=[];a.noSelection=!0;a.createdNodes=[];a.zId=0;a._ver=(new Date).getTime()}],z=[],A=[],B=[],C=[],D=[],g={addNodeCache:function(b,a){g.getCache(b).nodes[g.getNodeCacheId(a.tId)]=a},getNodeCacheId:function(b){return b.substring(b.lastIndexOf("_")+1)},addAfterA:function(b){A.push(b)},addBeforeA:function(b){z.push(b)},addInnerAfterA:function(b){C.push(b)}, +addInnerBeforeA:function(b){B.push(b)},addInitBind:function(b){t.push(b)},addInitUnBind:function(b){u.push(b)},addInitCache:function(b){v.push(b)},addInitNode:function(b){w.push(b)},addInitProxy:function(b){x.push(b)},addInitRoot:function(b){y.push(b)},addNodesData:function(b,a,c){var d=b.data.key.children;a[d]||(a[d]=[]);if(a[d].length>0)a[d][a[d].length-1].isLastNode=!1,i.setNodeLineIcos(b,a[d][a[d].length-1]);a.isParent=!0;a[d]=a[d].concat(c)},addSelectedNode:function(b,a){var c=g.getRoot(b);g.isSelectedNode(b, +a)||c.curSelectedList.push(a)},addCreatedNode:function(b,a){(b.callback.onNodeCreated||b.view.addDiyDom)&&g.getRoot(b).createdNodes.push(a)},addZTreeTools:function(b){D.push(b)},exSetting:function(b){k.extend(!0,L,b)},fixPIdKeyValue:function(b,a){b.data.simpleData.enable&&(a[b.data.simpleData.pIdKey]=a.parentTId?a.getParentNode()[b.data.simpleData.idKey]:b.data.simpleData.rootPId)},getAfterA:function(b,a,c){for(var d=0,f=A.length;d-1&&h.push(a[l]),h=h.concat(g.getNodesByParamFuzzy(b,a[l][f],c,d));return h},getNodesByFilter:function(b,a,c,d,f){if(!a)return d?null:[];for(var h=b.data.key.children,l=d?null: +[],e=0,i=a.length;e0)},clone:function(b){if(b===null)return null;var a=b.constructor===Array?[]:{},c;for(c in b)b.hasOwnProperty(c)&&(a[c]=typeof b[c]==="object"?arguments.callee(b[c]):b[c]);return a},eqs:function(b,a){return b.toLowerCase()===a.toLowerCase()},isArray:function(b){return Object.prototype.toString.apply(b)=== +"[object Array]"},getMDom:function(b,a,c){if(!a)return null;for(;a&&a.id!==b.treeId;){for(var d=0,f=c.length;a.tagName&&d0&&(m=i.appendNodes(b,a+1,o[j],o,f,h&&o.open));h&&(i.makeDOMNodeMainBefore(e,b,o),i.makeDOMNodeLine(e,b,o),g.getBeforeA(b,o,e),i.makeDOMNodeNameBefore(e,b,o),g.getInnerBeforeA(b,o,e),i.makeDOMNodeIcon(e,b,o),g.getInnerAfterA(b,o,e),i.makeDOMNodeNameAfter(e,b,o),g.getAfterA(b,o,e),o.isParent&&o.open&&i.makeUlHtml(b,o,e,m.join("")), +i.makeDOMNodeMainAfter(e,b,o),g.addCreatedNode(b,o))}return e},appendParentULDom:function(b,a){var c=[],d=k("#"+a.tId),f=k("#"+a.tId+e.id.UL),h=i.appendNodes(b,a.level+1,a[b.data.key.children],a,!1,!0);i.makeUlHtml(b,a,c,h.join(""));!d.get(0)&&a.parentTId&&(i.appendParentULDom(b,a.getParentNode()),d=k("#"+a.tId));f.get(0)&&f.remove();d.append(c.join(""))},asyncNode:function(b,a,c,d){var f,h;if(a&&!a.isParent)return j.apply(d),!1;else if(a&&a.isAjaxing)return!1;else if(j.apply(b.callback.beforeAsync, +[b.treeId,a],!0)==!1)return j.apply(d),!1;if(a)a.isAjaxing=!0,k("#"+a.tId+e.id.ICON).attr({style:"","class":"button ico_loading"});var l=b.async.contentType=="application/json",p=l?"{":"",n="";for(f=0,h=b.async.autoParam.length;a&&f1&&(o=m[1],m=m[0]);l?(n=typeof a[m]=="string"?'"':"",p+='"'+o+('":'+n+a[m]).replace(/'/g,"\\'")+n+","):p+=o+("="+a[m]).replace(/&/g,"%26")+"&"}if(j.isArray(b.async.otherParam))for(f=0,h=b.async.otherParam.length;f< +h;f+=2)l?(n=typeof b.async.otherParam[f+1]=="string"?'"':"",p+='"'+b.async.otherParam[f]+('":'+n+b.async.otherParam[f+1]).replace(/'/g,"\\'")+n+","):p+=b.async.otherParam[f]+("="+b.async.otherParam[f+1]).replace(/&/g,"%26")+"&";else for(var r in b.async.otherParam)l?(n=typeof b.async.otherParam[r]=="string"?'"':"",p+='"'+r+('":'+n+b.async.otherParam[r]).replace(/'/g,"\\'")+n+","):p+=r+("="+b.async.otherParam[r]).replace(/&/g,"%26")+"&";p.length>1&&(p=p.substring(0,p.length-1));l&&(p+="}");var s=g.getRoot(b)._ver; +k.ajax({contentType:b.async.contentType,type:b.async.type,url:j.apply(b.async.url,[b.treeId,a],b.async.url),data:p,dataType:b.async.dataType,success:function(f){if(s==g.getRoot(b)._ver){var h=[];try{h=!f||f.length==0?[]:typeof f=="string"?eval("("+f+")"):f}catch(l){h=f}if(a)a.isAjaxing=null,a.zAsync=!0;i.setNodeLineIcos(b,a);h&&h!==""?(h=j.apply(b.async.dataFilter,[b.treeId,a,h],h),i.addNodes(b,a,h?j.clone(h):[],!!c)):i.addNodes(b,a,[],!!c);b.treeObj.trigger(e.event.ASYNC_SUCCESS,[b.treeId,a,f]); +j.apply(d)}},error:function(c,d,f){if(s==g.getRoot(b)._ver){if(a)a.isAjaxing=null;i.setNodeLineIcos(b,a);b.treeObj.trigger(e.event.ASYNC_ERROR,[b.treeId,a,c,d,f])}}});return!0},cancelPreSelectedNode:function(b,a){for(var c=g.getRoot(b).curSelectedList,d=c.length-1;d>=0;d--)if(!a||a===c[d])if(k("#"+c[d].tId+e.id.A).removeClass(e.node.CURSELECTED),a){g.removeSelectedNode(b,a);break}if(!a)g.getRoot(b).curSelectedList=[]},createNodeCallback:function(b){if(b.callback.onNodeCreated||b.view.addDiyDom)for(var a= +g.getRoot(b);a.createdNodes.length>0;){var c=a.createdNodes.shift();j.apply(b.view.addDiyDom,[b.treeId,c]);b.callback.onNodeCreated&&b.treeObj.trigger(e.event.NODECREATED,[b.treeId,c])}},createNodes:function(b,a,c,d){if(c&&c.length!=0){var f=g.getRoot(b),h=b.data.key.children,h=!d||d.open||!!k("#"+d[h][0].tId).get(0);f.createdNodes=[];a=i.appendNodes(b,a,c,d,!0,h);d?(d=k("#"+d.tId+e.id.UL),d.get(0)&&d.append(a.join(""))):b.treeObj.append(a.join(""));i.createNodeCallback(b)}},destroy:function(b){b&& +(g.initCache(b),g.initRoot(b),m.unbindTree(b),m.unbindEvent(b),b.treeObj.empty())},expandCollapseNode:function(b,a,c,d,f){var h=g.getRoot(b),l=b.data.key.children;if(a){if(h.expandTriggerFlag){var p=f,f=function(){p&&p();a.open?b.treeObj.trigger(e.event.EXPAND,[b.treeId,a]):b.treeObj.trigger(e.event.COLLAPSE,[b.treeId,a])};h.expandTriggerFlag=!1}if(!a.open&&a.isParent&&(!k("#"+a.tId+e.id.UL).get(0)||a[l]&&a[l].length>0&&!k("#"+a[l][0].tId).get(0)))i.appendParentULDom(b,a),i.createNodeCallback(b); +if(a.open==c)j.apply(f,[]);else{var c=k("#"+a.tId+e.id.UL),h=k("#"+a.tId+e.id.SWITCH),n=k("#"+a.tId+e.id.ICON);a.isParent?(a.open=!a.open,a.iconOpen&&a.iconClose&&n.attr("style",i.makeNodeIcoStyle(b,a)),a.open?(i.replaceSwitchClass(a,h,e.folder.OPEN),i.replaceIcoClass(a,n,e.folder.OPEN),d==!1||b.view.expandSpeed==""?(c.show(),j.apply(f,[])):a[l]&&a[l].length>0?c.slideDown(b.view.expandSpeed,f):(c.show(),j.apply(f,[]))):(i.replaceSwitchClass(a,h,e.folder.CLOSE),i.replaceIcoClass(a,n,e.folder.CLOSE), +d==!1||b.view.expandSpeed==""||!(a[l]&&a[l].length>0)?(c.hide(),j.apply(f,[])):c.slideUp(b.view.expandSpeed,f))):j.apply(f,[])}}else j.apply(f,[])},expandCollapseParentNode:function(b,a,c,d,f){a&&(a.parentTId?(i.expandCollapseNode(b,a,c,d),a.parentTId&&i.expandCollapseParentNode(b,a.getParentNode(),c,d,f)):i.expandCollapseNode(b,a,c,d,f))},expandCollapseSonNode:function(b,a,c,d,f){var h=g.getRoot(b),e=b.data.key.children,h=a?a[e]:h[e],e=a?!1:d,j=g.getRoot(b).expandTriggerFlag;g.getRoot(b).expandTriggerFlag= +!1;if(h)for(var k=0,m=h.length;k/g,">");b.push("",d,"")},makeDOMNodeLine:function(b, +a,c){b.push("")},makeDOMNodeMainAfter:function(b){b.push("")},makeDOMNodeMainBefore:function(b,a,c){b.push("
              • ")},makeDOMNodeNameAfter:function(b){b.push("")},makeDOMNodeNameBefore:function(b,a,c){var d=g.getNodeTitle(a,c),f=i.makeNodeUrl(a,c),h=i.makeNodeFontCss(a,c),l=[],k;for(k in h)l.push(k,":",h[k], +";");b.push("0?"href='"+f+"'":""," target='",i.makeNodeTarget(c),"' style='",l.join(""),"'");j.apply(a.view.showTitle,[a.treeId,c],a.view.showTitle)&&d&&b.push("title='",d.replace(/'/g,"'").replace(//g,">"),"'");b.push(">")},makeNodeFontCss:function(b,a){var c=j.apply(b.view.fontCss,[b.treeId,a],b.view.fontCss);return c&&typeof c!="function"?c:{}},makeNodeIcoClass:function(b, +a){var c=["ico"];a.isAjaxing||(c[0]=(a.iconSkin?a.iconSkin+"_":"")+c[0],a.isParent?c.push(a.open?e.folder.OPEN:e.folder.CLOSE):c.push(e.folder.DOCU));return"button "+c.join("_")},makeNodeIcoStyle:function(b,a){var c=[];if(!a.isAjaxing){var d=a.isParent&&a.iconOpen&&a.iconClose?a.open?a.iconOpen:a.iconClose:a.icon;d&&c.push("background:url(",d,") 0 0 no-repeat;");(b.view.showIcon==!1||!j.apply(b.view.showIcon,[b.treeId,a],!0))&&c.push("width:0px;height:0px;")}return c.join("")},makeNodeLineClass:function(b, +a){var c=[];b.view.showLine?a.level==0&&a.isFirstNode&&a.isLastNode?c.push(e.line.ROOT):a.level==0&&a.isFirstNode?c.push(e.line.ROOTS):a.isLastNode?c.push(e.line.BOTTOM):c.push(e.line.CENTER):c.push(e.line.NOLINE);a.isParent?c.push(a.open?e.folder.OPEN:e.folder.CLOSE):c.push(e.folder.DOCU);return i.makeNodeLineClassEx(a)+c.join("_")},makeNodeLineClassEx:function(b){return"button level"+b.level+" switch "},makeNodeTarget:function(b){return b.target||"_blank"},makeNodeUrl:function(b,a){var c=b.data.key.url; +return a[c]?a[c]:null},makeUlHtml:function(b,a,c,d){c.push("
                  ");c.push(d);c.push("
                ")},makeUlLineClass:function(b,a){return b.view.showLine&&!a.isLastNode?e.line.LINE:""},removeChildNodes:function(b,a){if(a){var c=b.data.key.children,d=a[c];if(d){for(var f=0,h=d.length;f0)a[c][0].isFirstNode=!0},setLastNode:function(b,a){var c=b.data.key.children,d=a[c].length;if(d>0)a[c][d-1].isLastNode=!0},removeNode:function(b,a){var c=g.getRoot(b),d=b.data.key.children,f=a.parentTId?a.getParentNode():c;a.isFirstNode=!1;a.isLastNode= +!1;a.getPreNode=function(){return null};a.getNextNode=function(){return null};if(g.getNodeCache(b,a.tId)){k("#"+a.tId).remove();g.removeNodeCache(b,a);g.removeSelectedNode(b,a);for(var h=0,l=f[d].length;h0){var n=f[d][h-1],h=k("#"+n.tId+e.id.UL),l=k("#"+n.tId+e.id.SWITCH);j=k("#"+n.tId+e.id.ICON);f==c?f[d].length==1?i.replaceSwitchClass(n,l,e.line.ROOT):(c=k("#"+f[d][0].tId+e.id.SWITCH),i.replaceSwitchClass(f[d][0],c,e.line.ROOTS),i.replaceSwitchClass(n,l,e.line.BOTTOM)):i.replaceSwitchClass(n,l,e.line.BOTTOM);h.removeClass(e.line.LINE)}}},replaceIcoClass:function(b,a,c){if(a&&!b.isAjaxing&&(b=a.attr("class"),b!=void 0)){b=b.split("_"); +switch(c){case e.folder.OPEN:case e.folder.CLOSE:case e.folder.DOCU:b[b.length-1]=c}a.attr("class",b.join("_"))}},replaceSwitchClass:function(b,a,c){if(a){var d=a.attr("class");if(d!=void 0){d=d.split("_");switch(c){case e.line.ROOT:case e.line.ROOTS:case e.line.CENTER:case e.line.BOTTOM:case e.line.NOLINE:d[0]=i.makeNodeLineClassEx(b)+c;break;case e.folder.OPEN:case e.folder.CLOSE:case e.folder.DOCU:d[1]=c}a.attr("class",d.join("_"));c!==e.folder.DOCU?a.removeAttr("disabled"):a.attr("disabled","disabled")}}}, +selectNode:function(b,a,c){c||i.cancelPreSelectedNode(b);k("#"+a.tId+e.id.A).addClass(e.node.CURSELECTED);g.addSelectedNode(b,a)},setNodeFontCss:function(b,a){var c=k("#"+a.tId+e.id.A),d=i.makeNodeFontCss(b,a);d&&c.css(d)},setNodeLineIcos:function(b,a){if(a){var c=k("#"+a.tId+e.id.SWITCH),d=k("#"+a.tId+e.id.UL),f=k("#"+a.tId+e.id.ICON),h=i.makeUlLineClass(b,a);h.length==0?d.removeClass(e.line.LINE):d.addClass(h);c.attr("class",i.makeNodeLineClass(b,a));a.isParent?c.removeAttr("disabled"):c.attr("disabled", +"disabled");f.removeAttr("style");f.attr("style",i.makeNodeIcoStyle(b,a));f.attr("class",i.makeNodeIcoClass(b,a))}},setNodeName:function(b,a){var c=g.getNodeTitle(b,a),d=k("#"+a.tId+e.id.SPAN);d.empty();b.view.nameIsHTML?d.html(g.getNodeName(b,a)):d.text(g.getNodeName(b,a));j.apply(b.view.showTitle,[b.treeId,a],b.view.showTitle)&&k("#"+a.tId+e.id.A).attr("title",!c?"":c)},setNodeTarget:function(b){k("#"+b.tId+e.id.A).attr("target",i.makeNodeTarget(b))},setNodeUrl:function(b,a){var c=k("#"+a.tId+e.id.A), +d=i.makeNodeUrl(b,a);d==null||d.length==0?c.removeAttr("href"):c.attr("href",d)},switchNode:function(b,a){a.open||!j.canAsync(b,a)?i.expandCollapseNode(b,a,!a.open):b.async.enable?i.asyncNode(b,a)||i.expandCollapseNode(b,a,!a.open):a&&i.expandCollapseNode(b,a,!a.open)}};k.fn.zTree={consts:{event:{NODECREATED:"ztree_nodeCreated",CLICK:"ztree_click",EXPAND:"ztree_expand",COLLAPSE:"ztree_collapse",ASYNC_SUCCESS:"ztree_async_success",ASYNC_ERROR:"ztree_async_error"},id:{A:"_a",ICON:"_ico",SPAN:"_span", +SWITCH:"_switch",UL:"_ul"},line:{ROOT:"root",ROOTS:"roots",CENTER:"center",BOTTOM:"bottom",NOLINE:"noline",LINE:"line"},folder:{OPEN:"open",CLOSE:"close",DOCU:"docu"},node:{CURSELECTED:"curSelectedNode"}},_z:{tools:j,view:i,event:m,data:g},getZTreeObj:function(b){return(b=g.getZTreeTools(b))?b:null},destroy:function(b){if(b&&b.length>0)i.destroy(g.getSetting(b));else for(var a in r)i.destroy(r[a])},init:function(b,a,c){var d=j.clone(L);k.extend(!0,d,a);d.treeId=b.attr("id");d.treeObj=b;d.treeObj.empty(); +r[d.treeId]=d;if(k.browser.msie&&parseInt(k.browser.version)<7)d.view.expandSpeed="";g.initRoot(d);b=g.getRoot(d);a=d.data.key.children;c=c?j.clone(j.isArray(c)?c:[c]):[];b[a]=d.data.simpleData.enable?g.transformTozTreeFormat(d,c):c;g.initCache(d);m.unbindTree(d);m.bindTree(d);m.unbindEvent(d);m.bindEvent(d);c={setting:d,addNodes:function(a,b,c){function e(){i.addNodes(d,a,g,c==!0)}if(!b)return null;a||(a=null);if(a&&!a.isParent&&d.data.keep.leaf)return null;var g=j.clone(j.isArray(b)?b:[b]);j.canAsync(d, +a)?i.asyncNode(d,a,c,e):e();return g},cancelSelectedNode:function(a){i.cancelPreSelectedNode(this.setting,a)},destroy:function(){i.destroy(this.setting)},expandAll:function(a){a=!!a;i.expandCollapseSonNode(this.setting,null,a,!0);return a},expandNode:function(a,b,c,e,m){if(!a||!a.isParent)return null;b!==!0&&b!==!1&&(b=!a.open);if((m=!!m)&&b&&j.apply(d.callback.beforeExpand,[d.treeId,a],!0)==!1)return null;else if(m&&!b&&j.apply(d.callback.beforeCollapse,[d.treeId,a],!0)==!1)return null;b&&a.parentTId&& +i.expandCollapseParentNode(this.setting,a.getParentNode(),b,!1);if(b===a.open&&!c)return null;g.getRoot(d).expandTriggerFlag=m;if(c)i.expandCollapseSonNode(this.setting,a,b,!0,function(){if(e!==!1)try{k("#"+a.tId).focus().blur()}catch(b){}});else if(a.open=!b,i.switchNode(this.setting,a),e!==!1)try{k("#"+a.tId).focus().blur()}catch(q){}return b},getNodes:function(){return g.getNodes(this.setting)},getNodeByParam:function(a,b,c){return!a?null:g.getNodeByParam(this.setting,c?c[this.setting.data.key.children]: +g.getNodes(this.setting),a,b)},getNodeByTId:function(a){return g.getNodeCache(this.setting,a)},getNodesByParam:function(a,b,c){return!a?null:g.getNodesByParam(this.setting,c?c[this.setting.data.key.children]:g.getNodes(this.setting),a,b)},getNodesByParamFuzzy:function(a,b,c){return!a?null:g.getNodesByParamFuzzy(this.setting,c?c[this.setting.data.key.children]:g.getNodes(this.setting),a,b)},getNodesByFilter:function(a,b,c,d){b=!!b;return!a||typeof a!="function"?b?null:[]:g.getNodesByFilter(this.setting, +c?c[this.setting.data.key.children]:g.getNodes(this.setting),a,b,d)},getNodeIndex:function(a){if(!a)return null;for(var b=d.data.key.children,c=a.parentTId?a.getParentNode():g.getRoot(this.setting),e=0,i=c[b].length;e0?i.createNodes(d,0,b[a]):d.async.enable&&d.async.url&&d.async.url!==""&&i.asyncNode(d);return c}};var M=k.fn.zTree,e=M.consts})(jQuery); diff --git a/alive-admin/src/main/resources/static/ztree/api/apiCss/zTreeStyleForApi.css b/alive-admin/src/main/resources/static/ztree/api/apiCss/zTreeStyleForApi.css new file mode 100644 index 0000000..bb4717b --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/apiCss/zTreeStyleForApi.css @@ -0,0 +1,49 @@ +/*------------------------------------- +zTree Style + +version: 3.0 +author: Hunter.z +email: hunter.z@263.net +website: http://code.google.com/p/jquerytree/ + +-------------------------------------*/ + +.ztree * {padding:0; margin:0; font-size:12px; font-family: Verdana, Arial, Helvetica, AppleGothic, sans-serif} +.ztree {margin:0; padding:5px; color:#333} +.ztree li{padding:0; margin:0; list-style:none; line-height:14px; text-align:left; white-space:nowrap} +.ztree li ul{ margin:0; padding:0 0 0 18px} +.ztree li ul.line{ background:url(./img/line_conn.gif) 0 0 repeat-y;} + +.ztree li a {padding:1px 3px 0 0; margin:0; cursor:pointer; color:#333; height:17px; text-decoration:none; vertical-align:top; display: inline-block} +.ztree li a:hover {text-decoration:none} +.ztree li a.curSelectedNode {padding-top:0px; background-color:#FFE6B0; color:black; height:16px; border:1px #FFB951 solid;} +.ztree li a.curSelectedNode_Edit {padding-top:0px; background-color:#FFE6B0; color:black; height:16px; border:1px #FFB951 solid; opacity:0.8; filter:alpha(opacity=80)} +.ztree li a.tmpTargetNode_inner {padding-top:0px; background-color:#316AC5; color:white; height:16px; border:1px #316AC5 solid; opacity:0.8; filter:alpha(opacity=80)} +.ztree li a.tmpTargetNode_prev {} +.ztree li a.tmpTargetNode_next {} +.ztree li a input.rename {height:14px; width:80px; padding:0; margin:0; + font-size:12px; border:1px #7EC4CC solid; *border:0px} +.ztree li span {line-height:16px; margin-right: 2px} +.ztree li span.button {line-height:0; margin:0;width:16px; height:16px; display: inline-block; vertical-align:middle; + border:0 none; cursor: pointer; + background-color:transparent; background-repeat:no-repeat; background-attachment: scroll; + background-image:url("./img/zTreeStandard.png"); *background-image:url("./img/zTreeStandard.gif")} + +.ztree li span.button.switch {width:1px; height:18px; visibility: hidden} + +.zTreeDragUL {margin:0; padding:0; position:absolute; background-color:#cfcfcf; border:1px #00B83F dotted; opacity:0.8; filter:alpha(opacity=80)} +.zTreeMask {z-index:10000; background-color:#cfcfcf; opacity:0.0; filter:alpha(opacity=0); position:absolute} + +/* level 等级样式*/ +/*.ztree li button.level0 { + display:none; +} +.ztree li ul.level0 { + padding:0; + background:none; +}*/ + +.ztree li span.button.core_ico_docu{margin-right:2px; background-position:-126px 0; vertical-align:top; *vertical-align:middle} +.ztree li span.button.check_ico_docu{margin-right:2px; background-position:-126px -16px; vertical-align:top; *vertical-align:middle} +.ztree li span.button.edit_ico_docu{margin-right:2px; background-position:-126px -32px; vertical-align:top; *vertical-align:middle} +.ztree li span.button.hide_ico_docu{margin-right:2px; background-position:-160px 0; vertical-align:top; *vertical-align:middle} diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/fn.zTree._z.html b/alive-admin/src/main/resources/static/ztree/api/cn/fn.zTree._z.html new file mode 100644 index 0000000..7af3e40 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/fn.zTree._z.html @@ -0,0 +1,13 @@ +
                +
                +

                JSON$.fn.zTree._z

                +

                概述[ 依赖 jquery.ztree.core 核心 js ]

                +
                +

                +
                +

                zTree v3.x 内部的全部方法都可以通过 $.fn.zTree._z 进行调用,开放出来是为了更便于大家开发制作自己的 zTree 插件。

                +

                如无特殊需求请勿使用此对象,以及修改此对象内部的各个函数。

                +
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/fn.zTree.destroy.html b/alive-admin/src/main/resources/static/ztree/api/cn/fn.zTree.destroy.html new file mode 100644 index 0000000..7105807 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/fn.zTree.destroy.html @@ -0,0 +1,28 @@ +
                +
                +

                Function(treeId)$.fn.zTree.destroy

                +

                概述[ 依赖 jquery.ztree.core 核心 js ]

                +
                +

                +
                +

                从 zTree v3.4 开始提供销毁 zTree 的方法。

                +

                1、用此方法可以销毁指定 treeId 的 zTree,也可以销毁当前页面全部的 zTree。

                +

                2、销毁指定 treeId 的 zTree 也可以使用 zTreeObj.destroy() 方法。

                +

                3、重新使用已经被销毁的树,必须要使用 init 方法进行初始化。

                +
                +
                +

                Function 参数说明

                +
                +

                treeIdString

                +

                zTree 的 DOM 容器的 id

                +

                省略 treeId,表示销毁当前页面全部的 zTree

                +

                返回值

                +

                目前无任何返回值

                +
                +

                function 举例

                +

                1. 销毁 id 为 "treeDemo" 的 zTree

                +
                $.fn.zTree.destroy("treeDemo");
                +

                2. 销毁全部 的 zTree

                +
                $.fn.zTree.destroy();
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/fn.zTree.getZTreeObj.html b/alive-admin/src/main/resources/static/ztree/api/cn/fn.zTree.getZTreeObj.html new file mode 100644 index 0000000..b1d1db4 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/fn.zTree.getZTreeObj.html @@ -0,0 +1,24 @@ +
                +
                +

                Function(treeId)$.fn.zTree.getZTreeObj

                +

                概述[ 依赖 jquery.ztree.core 核心 js ]

                +
                +

                +
                +

                zTree v3.x 专门提供的根据 treeId 获取 zTree 对象的方法。

                +

                必须在初始化 zTree 以后才可以使用此方法。

                +

                有了这个方法,用户不再需要自己设定全局变量来保存 zTree 初始化后得到的对象了,而且在所有回调函数中全都会返回 treeId 属性,用户可以随时使用此方法获取需要进行操作的 zTree 对象

                +
                +
                +

                Function 参数说明

                +
                +

                treeIdString

                +

                zTree 的 DOM 容器的 id

                +

                返回值JSON

                +

                zTree 对象,提供操作 zTree 的各种方法,对于通过 js 操作 zTree 来说必须通过此对象

                +
                +

                function 举例

                +

                1. 获取 id 为 tree 的 zTree 对象

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/fn.zTree.init.html b/alive-admin/src/main/resources/static/ztree/api/cn/fn.zTree.init.html new file mode 100644 index 0000000..8db6d2c --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/fn.zTree.init.html @@ -0,0 +1,74 @@ +
                +
                +

                Function(obj, zSetting, zNodes)$.fn.zTree.init

                +

                概述[ 依赖 jquery.ztree.core 核心 js ]

                +
                +

                +
                +

                zTree 初始化方法,创建 zTree 必须使用此方法

                +

                1、页面需要进行 W3C 申明,例如:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">。

                +

                2、需要首先加载 jquery-1.4.2.js 或其他更高版本的 jQuery 。

                +

                3、需要加载 jquery-ztree.core-3.0.js,如果需要用到 编辑功能 或 checkbox / radio 还需要分别加载 jquery-ztree.exedit-3.0.js 和 jquery-ztree.excheck-3.0.js 。

                +

                4、需要加载 zTreeStyle.css 以及 zTreeStyle 目录下的 img 文件。

                +

                5、如果需要使用自定义图标请参考相应的Demo。

                +

                6、请注意设置 zTree 的容器样式 class="ztree",其中 "ztree" 这个 className,可以根据需要随意修改,别忘了修改 css 中对应名字就是了,对于容器如果需要增加其他特殊样式,可根据自己的需要进行修改。

                +
                +
                +

                Function 参数说明

                +
                +

                objjQuery Object

                +

                用于展现 zTree 的 DOM 容器

                +

                zSettingJSON

                +

                zTree 的配置数据,具体请参考 “setting 配置详解”中的各个属性详细说明

                +

                zNodesArray(JSON) / JSON

                +

                zTree 的节点数据,具体请参考 “treeNode 节点数据详解”中的各个属性详细说明

                +

                1、v3.x 支持单独添加一个节点,即如果只新增一个节点,不用必须包在数组中

                +

                2、如果需要异步加载根节点,可以设置为 null 或 [ ]

                +

                3、使用简单数据模式,请参考 setting.data.simpleData 内的属性说明

                +

                返回值JSON

                +

                zTree 对象,提供操作 zTree 的各种方法,对于通过 js 操作 zTree 来说必须通过此对象

                +

                如果不需要自行设定全局变量保存,可以利用 $.fn.zTree.getZTreeObj 方法随时获取

                +
                +

                setting & function 举例

                +

                1. 简单创建 zTree 演示

                +
                <!DOCTYPE html>
                +<HTML>
                + <HEAD>
                +  <TITLE> ZTREE DEMO </TITLE>
                +  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
                +  <link rel="stylesheet" href="zTreeStyle/zTreeStyle.css" type="text/css">
                +  <script type="text/javascript" src="jquery-1.4.2.js"></script>
                +  <script type="text/javascript" src="jquery.ztree.core-3.5.js"></script>
                +<!--
                +  <script type="text/javascript" src="jquery.ztree.excheck-3.5.js"></script>
                +  <script type="text/javascript" src="jquery.ztree.exedit-3.5.js"></script>
                +-->
                +  <SCRIPT type="text/javascript" >
                +	var zTreeObj,
                +	setting = {
                +		view: {
                +			selectedMulti: false
                +		}
                +	},
                +	zTreeNodes = [
                +		{"name":"网站导航", open:true, children: [
                +			{ "name":"google", "url":"http://g.cn", "target":"_blank"},
                +			{ "name":"baidu", "url":"http://baidu.com", "target":"_blank"},
                +			{ "name":"sina", "url":"http://www.sina.com.cn", "target":"_blank"}
                +			]
                +		}
                +	];
                +
                +	$(document).ready(function(){
                +		zTreeObj = $.fn.zTree.init($("#tree"), setting, zTreeNodes);
                +
                +	});
                +  </SCRIPT>
                + </HEAD>
                +
                +<BODY>
                +<ul id="tree" class="ztree" style="width:230px; overflow:auto;"></ul>
                + </BODY>
                +</HTML>
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/setting.async.autoParam.html b/alive-admin/src/main/resources/static/ztree/api/cn/setting.async.autoParam.html new file mode 100644 index 0000000..cf0f4d2 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/setting.async.autoParam.html @@ -0,0 +1,39 @@ +
                +
                +

                Array(String)setting.async.autoParam

                +

                概述[ 依赖 jquery.ztree.core 核心 js ]

                +
                +

                +
                +

                异步加载时需要自动提交父节点属性的参数。[setting.async.enable = true 时生效]

                +

                默认值:[ ]

                +
                +
                +

                Array(String) 格式说明

                +
                +

                1、将需要作为参数提交的属性名称,制作成 Array 即可,例如:["id", "name"]

                +

                2、可以设置提交时的参数名称,例如 server 只接受 zId : ["id=zId"]

                +
                +

                setting 举例

                +

                1. 设置 id 属性为自动提交的参数

                +
                var setting = {
                +	async: {
                +		enable: true,
                +		url: "http://host/getNode.php",
                +		autoParam: ["id"]
                +	}
                +};
                +假设 异步加载 父节点(node = {id:1, name:"test"}) 的子节点时,将提交参数 id=1
                +......
                +

                2. 设置 id 属性作为 zId 成为自动提交的参数

                +
                var setting = {
                +	async: {
                +		enable: true,
                +		url: "http://host/getNode.php",
                +		autoParam: ["id=zId"]
                +	}
                +};
                +假设 对父节点 node = {id:1, name:"test"},进行异步加载时,将提交参数 zId=1
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/setting.async.contentType.html b/alive-admin/src/main/resources/static/ztree/api/cn/setting.async.contentType.html new file mode 100644 index 0000000..db0c92f --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/setting.async.contentType.html @@ -0,0 +1,29 @@ +
                +
                +

                Stringsetting.async.contentType

                +

                概述[ 依赖 jquery.ztree.core 核心 js ]

                +
                +

                +
                +

                Ajax 提交参数的数据类型。[setting.async.enable = true 时生效]

                +

                默认值:"application/x-www-form-urlencoded"

                +
                +
                +

                String 格式说明

                +
                +

                contentType = "application/x-www-form-urlencoded" 可以满足绝大部分请求,按照标准的 Form 格式提交参数

                +

                contentType = "application/json" 可以满足 .Net 的编程需要,按照 JSON 格式提交参数

                +
                +

                setting 举例

                +

                1. 设置 Ajax 提交参数的数据类型为 JSON 格式

                +
                var setting = {
                +	async: {
                +		enable: true,
                +		contentType: "application/json",
                +		url: "http://host/getNode.php",
                +		autoParam: ["id", "name"]
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/setting.async.dataFilter.html b/alive-admin/src/main/resources/static/ztree/api/cn/setting.async.dataFilter.html new file mode 100644 index 0000000..f174bf0 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/setting.async.dataFilter.html @@ -0,0 +1,45 @@ +
                +
                +

                Function(treeId, parentNode, responseData)setting.async.dataFilter

                +

                概述[ 依赖 jquery.ztree.core 核心 js ]

                +
                +

                +
                +

                用于对 Ajax 返回数据进行预处理的函数。[setting.async.enable = true 时生效]

                +

                默认值:null

                +
                +
                +

                Function 参数说明

                +
                +

                treeIdString

                +

                对应 zTree 的 treeId,便于用户操控

                +

                parentNodeJSON

                +

                进行异步加载的父节点 JSON 数据对象

                +

                对根进行异步加载时,parentNode = null

                +

                responseDataArray(JSON) / JSON / String

                +

                异步加载获取到的数据转换后的 Array(JSON) / JSON / String 数据对象

                +

                v3.4开始 支持 XML 数据格式的 String

                +

                返回值Array(JSON) / JSON

                +

                返回值是 zTree 支持的JSON 数据结构即可。

                +

                v3.x 支持单个 JSON 节点数据进行加载

                +
                +

                setting & function 举例

                +

                1. 修改异步获取到的节点name属性

                +
                function ajaxDataFilter(treeId, parentNode, responseData) {
                +    if (responseData) {
                +      for(var i =0; i < responseData.length; i++) {
                +        responseData[i].name += "_filter";
                +      }
                +    }
                +    return responseData;
                +};
                +var setting = {
                +	async: {
                +		enable: true,
                +		url: "http://host/getNode.php",
                +		dataFilter: ajaxDataFilter
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/setting.async.dataType.html b/alive-admin/src/main/resources/static/ztree/api/cn/setting.async.dataType.html new file mode 100644 index 0000000..6d639b7 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/setting.async.dataType.html @@ -0,0 +1,29 @@ +
                +
                +

                Stringsetting.async.dataType

                +

                概述[ 依赖 jquery.ztree.core 核心 js ]

                +
                +

                +
                +

                Ajax 获取的数据类型。[setting.async.enable = true 时生效]

                +

                默认值:"text"

                +
                +
                +

                String 格式说明

                +
                +

                dataType = "text" 可以满足绝大部分请求

                +

                其余 dataType 类型请参考 jQuery ajax 中的 dataType 参数

                +
                +

                setting 举例

                +

                1. 设置 Ajax 获取的数据类型为 纯文本

                +
                var setting = {
                +	async: {
                +		enable: true,
                +		dataType: "text",
                +		url: "http://host/getNode.php",
                +		autoParam: ["id", "name"]
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/setting.async.enable.html b/alive-admin/src/main/resources/static/ztree/api/cn/setting.async.enable.html new file mode 100644 index 0000000..9079ae1 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/setting.async.enable.html @@ -0,0 +1,30 @@ +
                +
                +

                Booleansetting.async.enable

                +

                概述[ 依赖 jquery.ztree.core 核心 js ]

                +
                +

                +
                +

                设置 zTree 是否开启异步加载模式

                +

                默认值:false

                +
                +
                +

                Boolean 格式说明

                +
                +

                true 表示 开启 异步加载模式

                +

                false 表示 关闭 异步加载模式

                +

                如果设置为 true,请务必设置 setting.async 内的其它参数。

                +

                如果需要根节点也异步加载,初始化时 treeNodes 参数设置为 null 即可。

                +
                +

                setting 举例

                +

                1. 需要开启异步加载模式

                +
                var setting = {
                +	async: {
                +		enable: true,
                +		url: "http://host/getNode.php",
                +		autoParam: ["id", "name"]
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/setting.async.otherParam.html b/alive-admin/src/main/resources/static/ztree/api/cn/setting.async.otherParam.html new file mode 100644 index 0000000..981715f --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/setting.async.otherParam.html @@ -0,0 +1,40 @@ +
                +
                +

                Array(String) / JSONsetting.async.otherParam

                +

                概述[ 依赖 jquery.ztree.core 核心 js ]

                +
                +

                +
                +

                Ajax 请求提交的静态参数键值对。[setting.async.enable = true 时生效]

                +

                默认值:[ ]

                +
                +
                +

                Array(String) 格式说明

                +
                +

                可以为空[ ],如果有 key,则必须存在 value。 例如:[key, value]

                +
                +

                JSON 格式说明

                +
                +

                直接用 JSON 格式制作键值对,例如:{ key1:value1, key2:value2 }

                +
                +

                setting 举例

                +

                1. 设置 Array(String) 格式的参数

                +
                var setting = {
                +	async: {
                +		enable: true,
                +		url: "http://host/getNode.php",
                +		otherParam: ["id", "1", "name", "test"]
                +	}
                +};
                +进行异步加载时,将提交参数 id=1&name=test
                +

                2. 设置 JSON 格式的参数

                +
                var setting = {
                +	async: {
                +		enable: true,
                +		url: "http://host/getNode.php",
                +		otherParam: { "id":"1", "name":"test"}
                +	}
                +};
                +进行异步加载时,将提交参数 id=1&name=test
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/setting.async.type.html b/alive-admin/src/main/resources/static/ztree/api/cn/setting.async.type.html new file mode 100644 index 0000000..20d9a6b --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/setting.async.type.html @@ -0,0 +1,30 @@ +
                +
                +

                Stringsetting.async.type

                +

                概述[ 依赖 jquery.ztree.core 核心 js ]

                +
                +

                +
                +

                Ajax 的 http 请求模式。[setting.async.enable = true 时生效]

                +

                默认值:"post"

                +
                +
                +

                String 格式说明

                +
                +

                type = "post" 表示异步加载采用 post 方法请求

                +

                type = "get" 表示异步加载采用 get 方法请求

                +

                对应于 jQuery ajax 中的 type 参数

                +
                +

                setting 举例

                +

                1. 设置使用 get 方式请求数据

                +
                var setting = {
                +	async: {
                +		enable: true,
                +		type: "get",
                +		url: "http://host/getNode.php",
                +		autoParam: ["id", "name"]
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/setting.async.url.html b/alive-admin/src/main/resources/static/ztree/api/cn/setting.async.url.html new file mode 100644 index 0000000..a5209af --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/setting.async.url.html @@ -0,0 +1,50 @@ +
                +
                +

                String / Function(treeId, treeNode)setting.async.url

                +

                概述[ 依赖 jquery.ztree.core 核心 js ]

                +
                +

                +
                +

                Ajax 获取数据的 URL 地址。[setting.async.enable = true 时生效]

                +

                默认值:""

                +
                +
                +

                String 格式说明

                +
                +

                设置固定的异步加载 url 字符串,请注意地址的路径,确保页面能正常加载

                +

                url 内也可以带参数,这些参数就只能是通过 get 方式提交了,并且请注意进行转码

                +
                +

                Function 参数说明

                +
                +

                treeIdString

                +

                对应 zTree 的 treeId,便于用户操控

                +

                treeNodeJSON

                +

                需要异步加载子节点的的父节点 JSON 数据对象

                +

                针对根进行异步加载时,treeNode = null

                +

                返回值String

                +

                返回值同 String 格式的数据

                +
                +

                setting & function 举例

                +

                1. 设置异步获取节点的 URL 为 nodes.php

                +
                var setting = {
                +	async: {
                +		enable: true,
                +		url: "nodes.php",
                +		autoParam: ["id", "name"]
                +	}
                +};
                +......
                +

                2. 设置异步获取节点的 URL 为 function 动态获取

                +
                function getAsyncUrl(treeId, treeNode) {
                +    return treeNode.isParent ? "nodes1.php" : "nodes2.php";
                +};
                +var setting = {
                +	async: {
                +		enable: true,
                +		url: getAsyncUrl,
                +		autoParam: ["id", "name"]
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/setting.callback.beforeAsync.html b/alive-admin/src/main/resources/static/ztree/api/cn/setting.callback.beforeAsync.html new file mode 100644 index 0000000..70ba0fc --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/setting.callback.beforeAsync.html @@ -0,0 +1,35 @@ +
                +
                +

                Function(treeId, treeNode)setting.callback.beforeAsync

                +

                概述[ 依赖 jquery.ztree.core 核心 js ]

                +
                +

                +
                +

                用于捕获异步加载之前的事件回调函数,zTree 根据返回值确定是否允许进行异步加载

                +

                默认值:null

                +
                +
                +

                Function 参数说明

                +
                +

                treeIdString

                +

                对应 zTree 的 treeId,便于用户操控

                +

                treeNodeJSON

                +

                进行异步加载的父节点 JSON 数据对象

                +

                针对根进行异步加载时,treeNode = null

                +

                返回值Boolean

                +

                返回值是 true / false

                +

                如果返回 false,zTree 将不进行异步加载,也无法触发 onAsyncSuccess / onAsyncError 事件回调函数

                +
                +

                setting & function 举例

                +

                1. 禁止 id 为 1 的父节点进行异步加载操作

                +
                function zTreeBeforeAsync(treeId, treeNode) {
                +    return (treeNode.id !== 1);
                +};
                +var setting = {
                +	callback: {
                +		beforeAsync: zTreeBeforeAsync
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/setting.callback.beforeCheck.html b/alive-admin/src/main/resources/static/ztree/api/cn/setting.callback.beforeCheck.html new file mode 100644 index 0000000..a0e1f42 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/setting.callback.beforeCheck.html @@ -0,0 +1,34 @@ +
                +
                +

                Function(treeId, treeNode)setting.callback.beforeCheck

                +

                概述[ 依赖 jquery.ztree.excheck 扩展 js ]

                +
                +

                +
                +

                用于捕获 勾选 或 取消勾选 之前的事件回调函数,并且根据返回值确定是否允许 勾选 或 取消勾选

                +

                默认值:null

                +
                +
                +

                Function 参数说明

                +
                +

                treeIdString

                +

                对应 zTree 的 treeId,便于用户操控

                +

                treeNodeJSON

                +

                进行 勾选 或 取消勾选 的节点 JSON 数据对象

                +

                返回值Boolean

                +

                返回值是 true / false

                +

                如果返回 false,将不会改变勾选状态,并且无法触发 onCheck 事件回调函数

                +
                +

                setting & function 举例

                +

                1. 禁止所有勾选操作,保持初始化的勾选状态

                +
                function zTreeBeforeCheck(treeId, treeNode) {
                +    return false;
                +};
                +var setting = {
                +	callback: {
                +		beforeCheck: zTreeBeforeCheck
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/setting.callback.beforeClick.html b/alive-admin/src/main/resources/static/ztree/api/cn/setting.callback.beforeClick.html new file mode 100644 index 0000000..6d6e748 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/setting.callback.beforeClick.html @@ -0,0 +1,49 @@ +
                +
                +

                Function(treeId, treeNode, clickFlag)setting.callback.beforeClick

                +

                概述[ 依赖 jquery.ztree.core 核心 js ]

                +
                +

                +
                +

                用于捕获单击节点之前的事件回调函数,并且根据返回值确定是否允许单击操作

                +

                默认值:null

                +
                +
                +

                Function 参数说明

                +
                +

                treeIdString

                +

                对应 zTree 的 treeId,便于用户操控

                +

                treeNodeJSON

                +

                被单击的节点 JSON 数据对象

                +

                clickFlagNumber

                +

                节点被点击后的选中操作类型,详细看下表

                + + + + + + + + + + + + +
                clickFlagselectedMultiautoCancelSelected
                &&
                event.ctrlKey
                isSelected选中操作
                1truefalsefalse普通选中
                1truefalsetrue普通选中
                2truetruefalse追加选中
                0truetruetrue取消选中
                1falsefalsefalse普通选中
                1falsefalsetrue普通选中
                1falsetruefalse普通选中
                0falsetruetrue取消选中
                +

                返回值Boolean

                +

                返回值是 true / false

                +

                如果返回 false,zTree 将不会选中节点,也无法触发 onClick 事件回调函数

                +
                +

                setting & function 举例

                +

                1. 禁止节点被选中

                +
                function zTreeBeforeClick(treeId, treeNode, clickFlag) {
                +    return (treeNode.id !== 1);
                +};
                +var setting = {
                +	callback: {
                +		beforeClick: zTreeBeforeClick
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/setting.callback.beforeCollapse.html b/alive-admin/src/main/resources/static/ztree/api/cn/setting.callback.beforeCollapse.html new file mode 100644 index 0000000..d778e9c --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/setting.callback.beforeCollapse.html @@ -0,0 +1,34 @@ +
                +
                +

                Function(treeId, treeNode)setting.callback.beforeCollapse

                +

                概述[ 依赖 jquery.ztree.core 核心 js ]

                +
                +

                +
                +

                用于捕获父节点折叠之前的事件回调函数,并且根据返回值确定是否允许折叠操作

                +

                默认值:null

                +
                +
                +

                Function 参数说明

                +
                +

                treeIdString

                +

                对应 zTree 的 treeId,便于用户操控

                +

                treeNodeJSON

                +

                要折叠的父节点 JSON 数据对象

                +

                返回值Boolean

                +

                返回值是 true / false

                +

                如果返回 false,zTree 将不会折叠节点,也无法触发 onCollapse 事件回调函数

                +
                +

                setting & function 举例

                +

                1. 禁止所有已展开的父节点折叠

                +
                function zTreeBeforeCollapse(treeId, treeNode) {
                +    return false;
                +};
                +var setting = {
                +	callback: {
                +		beforeCollapse: zTreeBeforeCollapse
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/setting.callback.beforeDblClick.html b/alive-admin/src/main/resources/static/ztree/api/cn/setting.callback.beforeDblClick.html new file mode 100644 index 0000000..ed7e4dc --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/setting.callback.beforeDblClick.html @@ -0,0 +1,36 @@ +
                +
                +

                Function(treeId, treeNode)setting.callback.beforeDblClick

                +

                概述[ 依赖 jquery.ztree.core 核心 js ]

                +
                +

                +
                +

                用于捕获 zTree 上鼠标双击之前的事件回调函数,并且根据返回值确定触发 onDblClick 事件回调函数

                +

                默认值:null

                +
                +
                +

                Function 参数说明

                +
                +

                treeIdString

                +

                对应 zTree 的 treeId,便于用户操控

                +

                treeNodeJSON

                +

                鼠标双击时所在节点的 JSON 数据对象

                +

                如果不在节点上,则返回 null

                +

                返回值Boolean

                +

                返回值是 true / false

                +

                如果返回 false,将仅仅无法触发 onDblClick 事件回调函数,对其他操作无任何影响

                +

                此事件回调函数对双击节点展开功能无任何影响,如果需要设置请参考 setting.view.dblClickExpand 属性

                +
                +

                setting & function 举例

                +

                1. 禁止 onDblClick 事件

                +
                function zTreeBeforeDblClick(treeId, treeNode) {
                +    return false;
                +};
                +var setting = {
                +	callback: {
                +		beforeDblClick: zTreeBeforeDblClick
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/setting.callback.beforeDrag.html b/alive-admin/src/main/resources/static/ztree/api/cn/setting.callback.beforeDrag.html new file mode 100644 index 0000000..1e783a3 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/setting.callback.beforeDrag.html @@ -0,0 +1,39 @@ +
                +
                +

                Function(treeId, treeNodes)setting.callback.beforeDrag

                +

                概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                +
                +

                +
                +

                用于捕获节点被拖拽之前的事件回调函数,并且根据返回值确定是否允许开启拖拽操作

                +

                默认值:null

                +
                +
                +

                Function 参数说明

                +
                +

                treeIdString

                +

                被拖拽的节点 treeNodes 所在 zTree 的 treeId,便于用户操控

                +

                treeNodesArray(JSON)

                +

                要被拖拽的节点 JSON 数据集合

                +

                v3.x 允许多个同级节点同时被拖拽,因此将此参数修改为 Array(JSON)

                +

                如果拖拽时多个被选择的节点不是同级关系,则只能拖拽鼠标当前所在位置的节点

                +

                返回值Boolean

                +

                返回值是 true / false

                +

                如果返回 false,zTree 将终止拖拽,也无法触发 onDrag / beforeDrop / onDrop 事件回调函数

                +
                +

                setting & function 举例

                +

                1. 禁止全部拖拽操作

                +
                function zTreeBeforeDrag(treeId, treeNodes) {
                +    return false;
                +};
                +var setting = {
                +	edit: {
                +		enable: true
                +	},
                +	callback: {
                +		beforeDrag: zTreeBeforeDrag
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/setting.callback.beforeDragOpen.html b/alive-admin/src/main/resources/static/ztree/api/cn/setting.callback.beforeDragOpen.html new file mode 100644 index 0000000..ceab2d3 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/setting.callback.beforeDragOpen.html @@ -0,0 +1,37 @@ +
                +
                +

                Function(treeId, treeNode)setting.callback.beforeDragOpen

                +

                概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                +
                +

                +
                +

                用于捕获拖拽节点移动到折叠状态的父节点后,即将自动展开该父节点之前的事件回调函数,并且根据返回值确定是否允许自动展开操作

                +

                默认值:null

                +
                +
                +

                Function 参数说明

                +
                +

                treeIdString

                +

                需要被展开的父节点 treeNode 所在 zTree 的 treeId,便于用户操控

                +

                treeNodeJSON

                +

                要被自动展开的父节点 JSON 数据对象

                +

                返回值Boolean

                +

                返回值是 true / false

                +

                如果返回 false,zTree 将无法进行自动展开操作

                +
                +

                setting & function 举例

                +

                1. 禁止全部拖拽时的自动展开操作

                +
                function zTreeBeforeDragOpen(treeId, treeNode) {
                +    return false;
                +};
                +var setting = {
                +	edit: {
                +		enable: true
                +	},
                +	callback: {
                +		beforeDragOpen: zTreeBeforeDragOpen
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/setting.callback.beforeDrop.html b/alive-admin/src/main/resources/static/ztree/api/cn/setting.callback.beforeDrop.html new file mode 100644 index 0000000..4123743 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/setting.callback.beforeDrop.html @@ -0,0 +1,48 @@ +
                +
                +

                Function(treeId, treeNodes, targetNode, moveType, isCopy)setting.callback.beforeDrop

                +

                概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                +
                +

                +
                +

                用于捕获节点拖拽操作结束之前的事件回调函数,并且根据返回值确定是否允许此拖拽操作

                +

                默认值:null

                +

                如未拖拽到有效位置,则不触发此回调函数,直接将节点恢复原位置

                +
                +
                +

                Function 参数说明

                +
                +

                treeIdString

                +

                目标节点 targetNode 所在 zTree 的 treeId,便于用户操控

                +

                treeNodesArray(JSON)

                +

                被拖拽的节点 JSON 数据集合

                +

                无论拖拽操作为 复制 还是 移动,treeNodes 都是当前被拖拽节点的数据集合。

                +

                targetNodeJSON

                +

                treeNodes 被拖拽放开的目标节点 JSON 数据对象。

                +

                如果拖拽成为根节点,则 targetNode = null

                +

                moveTypeString

                +

                指定移动到目标节点的相对位置

                +

                "inner":成为子节点,"prev":成为同级前一个节点,"next":成为同级后一个节点

                +

                isCopyBoolean

                +

                拖拽节点操作是 复制 或 移动

                +

                true:复制;false:移动

                +

                返回值Boolean

                +

                返回值是 true / false

                +

                如果返回 false,zTree 将恢复被拖拽的节点,也无法触发 onDrop 事件回调函数

                +
                +

                setting & function 举例

                +

                1. 禁止将节点拖拽成为根节点

                +
                function zTreeBeforeDrop(treeId, treeNodes, targetNode, moveType) {
                +    return !(targetNode == null || (moveType != "inner" && !targetNode.parentTId));
                +};
                +var setting = {
                +	edit: {
                +		enable: true
                +	},
                +	callback: {
                +		beforeDrop: zTreeBeforeDrop
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/setting.callback.beforeEditName.html b/alive-admin/src/main/resources/static/ztree/api/cn/setting.callback.beforeEditName.html new file mode 100644 index 0000000..9df3ca2 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/setting.callback.beforeEditName.html @@ -0,0 +1,38 @@ +
                +
                +

                Function(treeId, treeNode)setting.callback.beforeEditName

                +

                概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                +
                +

                +
                +

                用于捕获节点编辑按钮的 click 事件,并且根据返回值确定是否允许进入名称编辑状态

                +

                此事件回调函数最主要是用于捕获编辑按钮的点击事件,然后触发自定义的编辑界面操作。

                +

                默认值:null

                +
                +
                +

                Function 参数说明

                +
                +

                treeIdString

                +

                对应 zTree 的 treeId,便于用户操控

                +

                treeNodeJSON

                +

                将要进入编辑名称状态的节点 JSON 数据对象

                +

                返回值Boolean

                +

                返回值是 true / false

                +

                如果返回 false,节点将无法进入 zTree 默认的编辑名称状态

                +
                +

                setting & function 举例

                +

                1. 禁止修改父节点的名称

                +
                function zTreeBeforeEditName(treeId, treeNode) {
                +	return !treeNode.isParent;
                +}
                +var setting = {
                +	edit: {
                +		enable: true
                +	},
                +	callback: {
                +		beforeEditName: zTreeBeforeEditName
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/setting.callback.beforeExpand.html b/alive-admin/src/main/resources/static/ztree/api/cn/setting.callback.beforeExpand.html new file mode 100644 index 0000000..350972b --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/setting.callback.beforeExpand.html @@ -0,0 +1,34 @@ +
                +
                +

                Function(treeId, treeNode)setting.callback.beforeExpand

                +

                概述[ 依赖 jquery.ztree.core 核心 js ]

                +
                +

                +
                +

                用于捕获父节点展开之前的事件回调函数,并且根据返回值确定是否允许展开操作

                +

                默认值:null

                +
                +
                +

                Function 参数说明

                +
                +

                treeIdString

                +

                对应 zTree 的 treeId,便于用户操控

                +

                treeNodeJSON

                +

                要展开的父节点 JSON 数据对象

                +

                返回值Boolean

                +

                返回值是 true / false

                +

                如果返回 false,zTree 将不会展开节点,也无法触发 onExpand 事件回调函数

                +
                +

                setting & function 举例

                +

                1. 禁止所有已折叠的父节点展开

                +
                function zTreeBeforeExpand(treeId, treeNode) {
                +    return false;
                +};
                +var setting = {
                +	callback: {
                +		beforeExpand: zTreeBeforeExpand
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/setting.callback.beforeMouseDown.html b/alive-admin/src/main/resources/static/ztree/api/cn/setting.callback.beforeMouseDown.html new file mode 100644 index 0000000..2c3f28d --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/setting.callback.beforeMouseDown.html @@ -0,0 +1,35 @@ +
                +
                +

                Function(treeId, treeNode)setting.callback.beforeMouseDown

                +

                概述[ 依赖 jquery.ztree.core 核心 js ]

                +
                +

                +
                +

                用于捕获 zTree 上鼠标按键按下之前的事件回调函数,并且根据返回值确定触发 onMouseDown 事件回调函数

                +

                默认值:null

                +
                +
                +

                Function 参数说明

                +
                +

                treeIdString

                +

                对应 zTree 的 treeId,便于用户操控

                +

                treeNodeJSON

                +

                鼠标按键按下时所在节点的 JSON 数据对象

                +

                如果不在节点上,则返回 null

                +

                返回值Boolean

                +

                返回值是 true / false

                +

                如果返回 false,将仅仅无法触发 onMouseDown 事件回调函数,对其他操作无任何影响

                +
                +

                setting & function 举例

                +

                1. 禁止 onMouseDown 事件

                +
                function zTreeBeforeMouseDown(treeId, treeNode) {
                +    return false;
                +};
                +var setting = {
                +	callback: {
                +		beforeMouseDown: zTreeBeforeMouseDown
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/setting.callback.beforeMouseUp.html b/alive-admin/src/main/resources/static/ztree/api/cn/setting.callback.beforeMouseUp.html new file mode 100644 index 0000000..f0b01b9 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/setting.callback.beforeMouseUp.html @@ -0,0 +1,35 @@ +
                +
                +

                Function(treeId, treeNode)setting.callback.beforeMouseUp

                +

                概述[ 依赖 jquery.ztree.core 核心 js ]

                +
                +

                +
                +

                用于捕获 zTree 上鼠标按键松开之前的事件回调函数,并且根据返回值确定触发 onMouseUp 事件回调函数

                +

                默认值:null

                +
                +
                +

                Function 参数说明

                +
                +

                treeIdString

                +

                对应 zTree 的 treeId,便于用户操控

                +

                treeNodeJSON

                +

                鼠标按键松开时所在节点的 JSON 数据对象

                +

                如果不在节点上,则返回 null

                +

                返回值Boolean

                +

                返回值是 true / false

                +

                如果返回 false,将仅仅无法触发 onMouseUp 事件回调函数,对其他操作无任何影响

                +
                +

                setting & function 举例

                +

                1. 禁止 onMouseUp 事件

                +
                function zTreeBeforeMouseUp(treeId, treeNode) {
                +    return false;
                +};
                +var setting = {
                +	callback: {
                +		beforeMouseUp: zTreeBeforeMouseUp
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/setting.callback.beforeRemove.html b/alive-admin/src/main/resources/static/ztree/api/cn/setting.callback.beforeRemove.html new file mode 100644 index 0000000..0edb3fd --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/setting.callback.beforeRemove.html @@ -0,0 +1,37 @@ +
                +
                +

                Function(treeId, treeNode)setting.callback.beforeRemove

                +

                概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                +
                +

                +
                +

                用于捕获节点被删除之前的事件回调函数,并且根据返回值确定是否允许删除操作

                +

                默认值:null

                +
                +
                +

                Function 参数说明

                +
                +

                treeIdString

                +

                对应 zTree 的 treeId,便于用户操控

                +

                treeNodeJSON

                +

                将要删除的节点 JSON 数据对象

                +

                返回值Boolean

                +

                返回值是 true / false

                +

                如果返回 false,zTree 将不删除节点,也无法触发 onRemove 事件回调函数

                +
                +

                setting & function 举例

                +

                1. 禁止全部删除操作

                +
                function zTreeBeforeRemove(treeId, treeNode) {
                +	return false;
                +}
                +var setting = {
                +	edit: {
                +		enable: true
                +	},
                +	callback: {
                +		beforeRemove: zTreeBeforeRemove
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/setting.callback.beforeRename.html b/alive-admin/src/main/resources/static/ztree/api/cn/setting.callback.beforeRename.html new file mode 100644 index 0000000..b130469 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/setting.callback.beforeRename.html @@ -0,0 +1,41 @@ +
                +
                +

                Function(treeId, treeNode, newName)setting.callback.beforeRename

                +

                概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                +
                +

                +
                +

                用于捕获节点编辑名称结束(Input 失去焦点 或 按下 Enter 键)之后,更新节点名称数据之前的事件回调函数,并且根据返回值确定是否允许更改名称的操作

                +

                节点进入编辑名称状态后,按 ESC 键可以放弃当前修改,恢复原名称,取消编辑名称状态

                +

                默认值:null

                +
                +
                +

                Function 参数说明

                +
                +

                treeIdString

                +

                对应 zTree 的 treeId,便于用户操控

                +

                treeNodeJSON

                +

                将要更改名称的节点 JSON 数据对象

                +

                newNameString

                +

                修改后的新名称

                +

                返回值Boolean

                +

                返回值是 true / false

                +

                如果返回 false,zTree 将保持名称编辑状态,无法触发 onRename 事件回调函数,并且会导致屏蔽其它事件,直到修改名称使得 beforeRename 返回 true

                +

                如果返回 false,不会让 input 输入框获取焦点,避免由于警告信息而导致反复触发 beforeRename。 请在关闭提示警告信息后,利用 editName 方法让 input 重新获取焦点。

                +
                +

                setting & function 举例

                +

                1. 禁止修改的名称的长度小于 5

                +
                function zTreeBeforeRename(treeId, treeNode, newName) {
                +	return newName.length > 5;
                +}
                +var setting = {
                +	edit: {
                +		enable: true
                +	},
                +	callback: {
                +		beforeRename: zTreeBeforeRename
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/setting.callback.beforeRightClick.html b/alive-admin/src/main/resources/static/ztree/api/cn/setting.callback.beforeRightClick.html new file mode 100644 index 0000000..1a5bdaa --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/setting.callback.beforeRightClick.html @@ -0,0 +1,35 @@ +
                +
                +

                Function(treeId, treeNode)setting.callback.beforeRightClick

                +

                概述[ 依赖 jquery.ztree.core 核心 js ]

                +
                +

                +
                +

                用于捕获 zTree 上鼠标右键点击之前的事件回调函数,并且根据返回值确定触发 onRightClick 事件回调函数

                +

                默认值:null

                +
                +
                +

                Function 参数说明

                +
                +

                treeIdString

                +

                对应 zTree 的 treeId,便于用户操控

                +

                treeNodeJSON

                +

                鼠标右键点击时所在节点的 JSON 数据对象

                +

                如果不在节点上,则返回 null

                +

                返回值Boolean

                +

                返回值是 true / false

                +

                如果返回 false,将仅仅无法触发 onRightClick 事件回调函数,对其他操作无任何影响

                +
                +

                setting & function 举例

                +

                1. 禁止 onRightClick 事件

                +
                function zTreeBeforeRightClick(treeId, treeNode) {
                +    return false;
                +};
                +var setting = {
                +	callback: {
                +		beforeRightClick: zTreeBeforeRightClick
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/setting.callback.onAsyncError.html b/alive-admin/src/main/resources/static/ztree/api/cn/setting.callback.onAsyncError.html new file mode 100644 index 0000000..c469e11 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/setting.callback.onAsyncError.html @@ -0,0 +1,42 @@ +
                +
                +

                setting.callback.onAsyncError

                +

                Function(event, treeId, treeNode, XMLHttpRequest, textStatus, errorThrown) 

                +

                概述[ 依赖 jquery.ztree.core 核心 js ]

                +
                +

                +
                +

                用于捕获异步加载出现异常错误的事件回调函数

                +

                如果设置了 setting.callback.beforeAsync 方法,且返回 false,将无法触发 onAsyncSuccess / onAsyncError 事件回调函数。

                +

                默认值:null

                +
                +
                +

                Function 参数说明

                +
                +

                eventjs event 对象

                +

                标准的 js event 对象

                +

                treeIdString

                +

                对应 zTree 的 treeId,便于用户操控

                +

                treeNodeJSON

                +

                进行异步加载的父节点 JSON 数据对象

                +

                针对根进行异步加载时,treeNode = null

                +

                XMLHttpRequestString

                +

                标准 XMLHttpRequest 对象,请参考 JQuery API 文档。

                +

                textStatusString

                +

                请求状态:success,error,请参考 JQuery API 文档。

                +

                errorThrownString

                +

                errorThrown 只有当异常发生时才会被传递,请参考 JQuery API 文档。

                +
                +

                setting & function 举例

                +

                1. 异步加载出现异常后,弹出错误信息

                +
                function zTreeOnAsyncError(event, treeId, treeNode, XMLHttpRequest, textStatus, errorThrown) {
                +    alert(XMLHttpRequest);
                +};
                +var setting = {
                +	callback: {
                +		onAsyncError: zTreeOnAsyncError
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/setting.callback.onAsyncSuccess.html b/alive-admin/src/main/resources/static/ztree/api/cn/setting.callback.onAsyncSuccess.html new file mode 100644 index 0000000..081e9d7 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/setting.callback.onAsyncSuccess.html @@ -0,0 +1,38 @@ +
                +
                +

                Function(event, treeId, treeNode, msg)setting.callback.onAsyncSuccess

                +

                概述[ 依赖 jquery.ztree.core 核心 js ]

                +
                +

                +
                +

                用于捕获异步加载正常结束的事件回调函数

                +

                如果设置了 setting.callback.beforeAsync 方法,且返回 false,将无法触发 onAsyncSuccess / onAsyncError 事件回调函数。

                +

                默认值:null

                +
                +
                +

                Function 参数说明

                +
                +

                eventjs event 对象

                +

                标准的 js event 对象

                +

                treeIdString

                +

                对应 zTree 的 treeId,便于用户操控

                +

                treeNodeJSON

                +

                进行异步加载的父节点 JSON 数据对象

                +

                针对根进行异步加载时,treeNode = null

                +

                msgString / Object

                +

                异步获取的节点数据字符串,主要便于用户调试使用。

                +

                实际数据类型会受 setting.async.dataType 的设置影响,请参考 JQuery API 文档。

                +
                +

                setting & function 举例

                +

                1. 异步加载成功后,弹出提示信息

                +
                function zTreeOnAsyncSuccess(event, treeId, treeNode, msg) {
                +    alert(msg);
                +};
                +var setting = {
                +	callback: {
                +		onAsyncSuccess: zTreeOnAsyncSuccess
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/setting.callback.onCheck.html b/alive-admin/src/main/resources/static/ztree/api/cn/setting.callback.onCheck.html new file mode 100644 index 0000000..113eee9 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/setting.callback.onCheck.html @@ -0,0 +1,34 @@ +
                +
                +

                Function(event, treeId, treeNode)setting.callback.onCheck

                +

                概述[ 依赖 jquery.ztree.excheck 扩展 js ]

                +
                +

                +
                +

                用于捕获 checkbox / radio 被勾选 或 取消勾选的事件回调函数

                +

                如果设置了 setting.callback.beforeCheck 方法,且返回 false,将无法触发 onCheck 事件回调函数。

                +

                默认值:null

                +
                +
                +

                Function 参数说明

                +
                +

                eventjs event 对象

                +

                标准的 js event 对象

                +

                treeIdString

                +

                对应 zTree 的 treeId,便于用户操控

                +

                treeNodeJSON

                +

                被勾选 或 取消勾选的节点 JSON 数据对象

                +
                +

                setting & function 举例

                +

                1. 每次点击 checkbox 或 radio 后, 弹出该节点的 tId、name 以及当前勾选状态的信息

                +
                function zTreeOnCheck(event, treeId, treeNode) {
                +    alert(treeNode.tId + ", " + treeNode.name + "," + treeNode.checked);
                +};
                +var setting = {
                +	callback: {
                +		onCheck: zTreeOnCheck
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/setting.callback.onClick.html b/alive-admin/src/main/resources/static/ztree/api/cn/setting.callback.onClick.html new file mode 100644 index 0000000..19d2948 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/setting.callback.onClick.html @@ -0,0 +1,49 @@ +
                +
                +

                Function(event, treeId, treeNode, clickFlag)setting.callback.onClick

                +

                概述[ 依赖 jquery.ztree.core 核心 js ]

                +
                +

                +
                +

                用于捕获节点被点击的事件回调函数

                +

                如果设置了 setting.callback.beforeClick 方法,且返回 false,将无法触发 onClick 事件回调函数。

                +

                默认值:null

                +
                +
                +

                Function 参数说明

                +
                +

                eventjs event 对象

                +

                标准的 js event 对象

                +

                treeIdString

                +

                对应 zTree 的 treeId,便于用户操控

                +

                treeNodeJSON

                +

                被点击的节点 JSON 数据对象

                +

                clickFlagNumber

                +

                节点被点击后的选中操作类型,详细看下表

                + + + + + + + + + + + + +
                clickFlagselectedMultiautoCancelSelected
                &&
                event.ctrlKey
                isSelected选中操作
                1truefalsefalse普通选中
                1truefalsetrue普通选中
                2truetruefalse追加选中
                0truetruetrue取消选中
                1falsefalsefalse普通选中
                1falsefalsetrue普通选中
                1falsetruefalse普通选中
                0falsetruetrue取消选中
                +
                +

                setting & function 举例

                +

                1. 每次点击节点后, 弹出该节点的 tId、name 的信息

                +
                function zTreeOnClick(event, treeId, treeNode) {
                +    alert(treeNode.tId + ", " + treeNode.name);
                +};
                +var setting = {
                +	callback: {
                +		onClick: zTreeOnClick
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/setting.callback.onCollapse.html b/alive-admin/src/main/resources/static/ztree/api/cn/setting.callback.onCollapse.html new file mode 100644 index 0000000..1c816c2 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/setting.callback.onCollapse.html @@ -0,0 +1,34 @@ +
                +
                +

                Function(event, treeId, treeNode)setting.callback.onCollapse

                +

                概述[ 依赖 jquery.ztree.core 核心 js ]

                +
                +

                +
                +

                用于捕获节点被折叠的事件回调函数

                +

                如果设置了 setting.callback.beforeCollapse 方法,且返回 false,将无法触发 onCollapse 事件回调函数。

                +

                默认值:null

                +
                +
                +

                Function 参数说明

                +
                +

                eventjs event 对象

                +

                标准的 js event 对象

                +

                treeIdString

                +

                对应 zTree 的 treeId,便于用户操控

                +

                treeNodeJSON

                +

                被折叠的节点 JSON 数据对象

                +
                +

                setting & function 举例

                +

                1. 每次折叠节点后, 弹出该节点的 tId、name 的信息

                +
                function zTreeOnCollapse(event, treeId, treeNode) {
                +    alert(treeNode.tId + ", " + treeNode.name);
                +};
                +var setting = {
                +	callback: {
                +		onCollapse: zTreeOnCollapse
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/setting.callback.onDblClick.html b/alive-admin/src/main/resources/static/ztree/api/cn/setting.callback.onDblClick.html new file mode 100644 index 0000000..deb8e62 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/setting.callback.onDblClick.html @@ -0,0 +1,35 @@ +
                +
                +

                Function(event, treeId, treeNode)setting.callback.onDblClick

                +

                概述[ 依赖 jquery.ztree.core 核心 js ]

                +
                +

                +
                +

                用于捕获 zTree 上鼠标双击之后的事件回调函数

                +

                如果设置了 setting.callback.beforeDblClick 方法,且返回 false,将无法触发 onDblClick 事件回调函数。

                +

                默认值:null

                +
                +
                +

                Function 参数说明

                +
                +

                eventjs event 对象

                +

                标准的 js event 对象

                +

                treeIdString

                +

                对应 zTree 的 treeId,便于用户操控

                +

                treeNodeJSON

                +

                鼠标双击时所在节点的 JSON 数据对象

                +

                如果不在节点上,则返回 null

                +
                +

                setting & function 举例

                +

                1. 每次鼠标双击后, 弹出鼠标所在节点的 tId、name 的信息

                +
                function zTreeOnDblClick(event, treeId, treeNode) {
                +    alert(treeNode ? treeNode.tId + ", " + treeNode.name : "isRoot");
                +};
                +var setting = {
                +	callback: {
                +		onDblClick: zTreeOnDblClick
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/setting.callback.onDrag.html b/alive-admin/src/main/resources/static/ztree/api/cn/setting.callback.onDrag.html new file mode 100644 index 0000000..176e694 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/setting.callback.onDrag.html @@ -0,0 +1,35 @@ +
                +
                +

                Function(event, treeId, treeNodes)setting.callback.onDrag

                +

                概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                +
                +

                +
                +

                用于捕获节点被拖拽的事件回调函数

                +

                如果设置了 setting.callback.beforeDrag 方法,且返回 false,将无法触发 onDrag 事件回调函数。

                +

                默认值:null

                +
                +
                +

                Function 参数说明

                +
                +

                eventjs event 对象

                +

                标准的 js event 对象

                +

                treeIdString

                +

                被拖拽的节点 treeNodes 所在 zTree 的 treeId,便于用户操控

                +

                treeNodesArray(JSON)

                +

                要被拖拽的节点 JSON 数据集合

                +
                +

                setting & function 举例

                +

                1. 每次开始进行拖拽节点后, 弹出被拖拽节点的个数信息

                +
                function zTreeOnDrag(event, treeId, treeNodes) {
                +    
                +		alert(100);
                +};
                +var setting = {
                +	callback: {
                +		onDrag: zTreeOnDrag
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/setting.callback.onDrop.html b/alive-admin/src/main/resources/static/ztree/api/cn/setting.callback.onDrop.html new file mode 100644 index 0000000..c6773a8 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/setting.callback.onDrop.html @@ -0,0 +1,46 @@ +
                +
                +

                Function(event, treeId, treeNodes, targetNode, moveType, isCopy)setting.callback.onDrop

                +

                概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                +
                +

                +
                +

                用于捕获节点拖拽操作结束的事件回调函数

                +

                如果设置了 setting.callback.beforeDrop 方法,且返回 false,将无法触发 onDrop 事件回调函数。

                +

                默认值:null

                +
                +
                +

                Function 参数说明

                +
                +

                eventjs event 对象

                +

                标准的 js event 对象

                +

                treeIdString

                +

                目标节点 targetNode 所在 zTree 的 treeId,便于用户操控

                +

                treeNodesArray(JSON)

                +

                被拖拽的节点 JSON 数据集合

                +

                如果拖拽操作为 移动,treeNodes 是当前被拖拽节点的数据集合。

                +

                如果拖拽操作为 复制,treeNodes 是复制后 clone 得到的新节点数据。

                +

                targetNodeJSON

                +

                成为 treeNodes 拖拽结束的目标节点 JSON 数据对象。

                +

                如果拖拽成为根节点,则 targetNode = null

                +

                moveTypeString

                +

                指定移动到目标节点的相对位置

                +

                "inner":成为子节点,"prev":成为同级前一个节点,"next":成为同级后一个节点

                +

                如果 moveType = null,表明拖拽无效

                +

                isCopyBoolean

                +

                拖拽节点操作是 复制 或 移动

                +

                true:复制;false:移动

                +
                +

                setting & function 举例

                +

                1. 每次拖拽操作结束后, 弹出该被拖拽节点的个数以及目标节点的 tId、name 的信息

                +
                function zTreeOnDrop(event, treeId, treeNodes, targetNode, moveType) {
                +    alert(treeNodes.length + "," + (targetNode ? (targetNode.tId + ", " + targetNode.name) : "isRoot" ));
                +};
                +var setting = {
                +	callback: {
                +		onDrop: zTreeOnDrop
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/setting.callback.onExpand.html b/alive-admin/src/main/resources/static/ztree/api/cn/setting.callback.onExpand.html new file mode 100644 index 0000000..791c5f6 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/setting.callback.onExpand.html @@ -0,0 +1,34 @@ +
                +
                +

                Function(event, treeId, treeNode)setting.callback.onExpand

                +

                概述[ 依赖 jquery.ztree.core 核心 js ]

                +
                +

                +
                +

                用于捕获节点被展开的事件回调函数

                +

                如果设置了 setting.callback.beforeExpand 方法,且返回 false,将无法触发 onExpand 事件回调函数。

                +

                默认值:null

                +
                +
                +

                Function 参数说明

                +
                +

                eventjs event 对象

                +

                标准的 js event 对象

                +

                treeIdString

                +

                对应 zTree 的 treeId,便于用户操控

                +

                treeNodeJSON

                +

                被展开的节点 JSON 数据对象

                +
                +

                setting & function 举例

                +

                1. 每次展开节点后, 弹出该节点的 tId、name 的信息

                +
                function zTreeOnExpand(event, treeId, treeNode) {
                +    alert(treeNode.tId + ", " + treeNode.name);
                +};
                +var setting = {
                +	callback: {
                +		onExpand: zTreeOnExpand
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/setting.callback.onMouseDown.html b/alive-admin/src/main/resources/static/ztree/api/cn/setting.callback.onMouseDown.html new file mode 100644 index 0000000..bc9d0ea --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/setting.callback.onMouseDown.html @@ -0,0 +1,35 @@ +
                +
                +

                Function(event, treeId, treeNode)setting.callback.onMouseDown

                +

                概述[ 依赖 jquery.ztree.core 核心 js ]

                +
                +

                +
                +

                用于捕获 zTree 上鼠标按键按下后的事件回调函数

                +

                如果设置了 setting.callback.beforeMouseDown 方法,且返回 false,将无法触发 onMouseDown 事件回调函数。

                +

                默认值:null

                +
                +
                +

                Function 参数说明

                +
                +

                eventjs event 对象

                +

                标准的 js event 对象

                +

                treeIdString

                +

                对应 zTree 的 treeId,便于用户操控

                +

                treeNodeJSON

                +

                鼠标按键按下时所在节点的 JSON 数据对象

                +

                如果不在节点上,则返回 null

                +
                +

                setting & function 举例

                +

                1. 每次鼠标按键按下后, 弹出鼠标所在节点的 tId、name 的信息

                +
                function zTreeOnMouseDown(event, treeId, treeNode) {
                +    alert(treeNode ? treeNode.tId + ", " + treeNode.name : "isRoot");
                +};
                +var setting = {
                +	callback: {
                +		onMouseDown: zTreeOnMouseDown
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/setting.callback.onMouseUp.html b/alive-admin/src/main/resources/static/ztree/api/cn/setting.callback.onMouseUp.html new file mode 100644 index 0000000..a969fef --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/setting.callback.onMouseUp.html @@ -0,0 +1,35 @@ +
                +
                +

                Function(event, treeId, treeNode)setting.callback.onMouseUp

                +

                概述[ 依赖 jquery.ztree.core 核心 js ]

                +
                +

                +
                +

                用于捕获 zTree 上鼠标按键松开后的事件回调函数

                +

                如果设置了 setting.callback.beforeMouseUp 方法,且返回 false,将无法触发 onMouseUp 事件回调函数。

                +

                默认值:null

                +
                +
                +

                Function 参数说明

                +
                +

                eventjs event 对象

                +

                标准的 js event 对象

                +

                treeIdString

                +

                对应 zTree 的 treeId,便于用户操控

                +

                treeNodeJSON

                +

                鼠标按键松开时所在节点的 JSON 数据对象

                +

                如果不在节点上,则返回 null

                +
                +

                setting & function 举例

                +

                1. 每次鼠标按键松开后, 弹出鼠标所在节点的 tId、name 的信息

                +
                function zTreeOnMouseUp(event, treeId, treeNode) {
                +    alert(treeNode ? treeNode.tId + ", " + treeNode.name : "isRoot");
                +};
                +var setting = {
                +	callback: {
                +		onMouseUp: zTreeOnMouseUp
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/setting.callback.onNodeCreated.html b/alive-admin/src/main/resources/static/ztree/api/cn/setting.callback.onNodeCreated.html new file mode 100644 index 0000000..2ebaee6 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/setting.callback.onNodeCreated.html @@ -0,0 +1,35 @@ +
                +
                +

                Function(event, treeId, treeNode)setting.callback.onNodeCreated

                +

                概述[ 依赖 jquery.ztree.core 核心 js ]

                +
                +

                +
                +

                用于捕获节点生成 DOM 后的事件回调函数

                +

                v3.x 采用了延迟加载技术,因此对于父节点未展开的子节点来说,初始化后是不会触发此回调函数,直到其父节点被展开

                +

                大数据量的节点加载请注意:不设置 onNodeCreated,可以提升一部分初始化性能

                +

                默认值:null

                +
                +
                +

                Function 参数说明

                +
                +

                eventjs event 对象

                +

                标准的 js event 对象

                +

                treeIdString

                +

                对应 zTree 的 treeId,便于用户操控

                +

                treeNodeJSON

                +

                生成 DOM 完毕的节点的 JSON 数据对象

                +
                +

                setting & function 举例

                +

                1. 创建节点 DOM 后, 弹出该节点的 tId、name 的信息

                +
                function zTreeOnNodeCreated(event, treeId, treeNode) {
                +    alert(treeNode.tId + ", " + treeNode.name);
                +};
                +var setting = {
                +	callback: {
                +		onNodeCreated: zTreeOnNodeCreated
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/setting.callback.onRemove.html b/alive-admin/src/main/resources/static/ztree/api/cn/setting.callback.onRemove.html new file mode 100644 index 0000000..e7e625d --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/setting.callback.onRemove.html @@ -0,0 +1,34 @@ +
                +
                +

                Function(event, treeId, treeNode)setting.callback.onRemove

                +

                概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                +
                +

                +
                +

                用于捕获删除节点之后的事件回调函数。

                +

                如果用户设置了 beforeRemove 回调函数,并返回 false,将无法触发 onRemove 事件回调函数。

                +

                默认值:null

                +
                +
                +

                Function 参数说明

                +
                +

                eventjs event 对象

                +

                标准的 js event 对象

                +

                treeIdString

                +

                对应 zTree 的 treeId,便于用户操控

                +

                treeNodeJSON

                +

                将要删除的节点 JSON 数据对象

                +
                +

                setting & function 举例

                +

                1. 删除节点时,弹出被删除的节点的 tId 以及 name 信息

                +
                function zTreeOnRemove(event, treeId, treeNode) {
                +	alert(treeNode.tId + ", " + treeNode.name);
                +}
                +var setting = {
                +	callback: {
                +		onRemove: zTreeOnRemove
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/setting.callback.onRename.html b/alive-admin/src/main/resources/static/ztree/api/cn/setting.callback.onRename.html new file mode 100644 index 0000000..6457716 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/setting.callback.onRename.html @@ -0,0 +1,35 @@ +
                +
                +

                Function(event, treeId, treeNode)setting.callback.onRename

                +

                概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                +
                +

                +
                +

                用于捕获节点编辑名称结束之后的事件回调函数。

                +

                1、节点进入编辑名称状态,并且修改节点名称后触发此回调函数。如果用户设置了 beforeRename 回调函数,并返回 false,将无法触发 onRename 事件回调函数。

                +

                2、如果通过直接修改 treeNode 的数据,并且利用 updateNode 方法更新,是不会触发此回调函数的。

                +

                默认值:null

                +
                +
                +

                Function 参数说明

                +
                +

                eventjs event 对象

                +

                标准的 js event 对象

                +

                treeIdString

                +

                对应 zTree 的 treeId,便于用户操控

                +

                treeNodeJSON

                +

                被修改名称的节点 JSON 数据对象

                +
                +

                setting & function 举例

                +

                1. 修改名称后,弹出被修改名称的节点的 tId 以及 name 信息

                +
                function zTreeOnRename(event, treeId, treeNode) {
                +	alert(treeNode.tId + ", " + treeNode.name);
                +}
                +var setting = {
                +	callback: {
                +		onRename: zTreeOnRename
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/setting.callback.onRightClick.html b/alive-admin/src/main/resources/static/ztree/api/cn/setting.callback.onRightClick.html new file mode 100644 index 0000000..d51c68d --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/setting.callback.onRightClick.html @@ -0,0 +1,36 @@ +
                +
                +

                Function(event, treeId, treeNode)setting.callback.onRightClick

                +

                概述[ 依赖 jquery.ztree.core 核心 js ]

                +
                +

                +
                +

                用于捕获 zTree 上鼠标右键点击之后的事件回调函数

                +

                1、如果设置了 setting.callback.beforeRightClick 方法,且返回 false,将无法触发 onRightClick 事件回调函数。

                +

                2、只要将 function 的引用赋给 onRightClick 属性,则右键点击 zTree 时,将屏蔽浏览器的右键菜单。

                +

                默认值:null

                +
                +
                +

                Function 参数说明

                +
                +

                eventjs event 对象

                +

                标准的 js event 对象

                +

                treeIdString

                +

                对应 zTree 的 treeId,便于用户操控

                +

                treeNodeJSON

                +

                鼠标右键点击时所在节点的 JSON 数据对象

                +

                如果不在节点上,则返回 null

                +
                +

                setting & function 举例

                +

                1. 每次鼠标右键点击后, 弹出鼠标所在节点的 tId、name 的信息

                +
                function zTreeOnRightClick(event, treeId, treeNode) {
                +    alert(treeNode ? treeNode.tId + ", " + treeNode.name : "isRoot");
                +};
                +var setting = {
                +	callback: {
                +		onRightClick: zTreeOnRightClick
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/setting.check.autoCheckTrigger.html b/alive-admin/src/main/resources/static/ztree/api/cn/setting.check.autoCheckTrigger.html new file mode 100644 index 0000000..d1efd77 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/setting.check.autoCheckTrigger.html @@ -0,0 +1,28 @@ +
                +
                +

                Booleansetting.check.autoCheckTrigger

                +

                概述[ 依赖 jquery.ztree.excheck 扩展 js ]

                +
                +

                +
                +

                设置自动关联勾选时是否触发 beforeCheck / onCheck 事件回调函数。[setting.check.enable = true 且 setting.check.chkStyle = "checkbox" 时生效]

                +

                1、如果设置 setting.check.chkboxType = { "Y": "", "N": "" },将不会有任何自动关联勾选的操作。

                +

                2、如果开启触发,对于节点较多的树将会影响性能,因为所有被联动勾选的操作都会触发事件回调函数,请根据需要决定是否使用此功能。

                +

                默认值: false

                +
                +
                +

                Boolean 格式说明

                +
                +

                true / false 分别表示 触发 / 不触发 事件回调函数

                +
                +

                setting 举例

                +

                1. 需要触发自动关联勾选操作

                +
                var setting = {
                +	check: {
                +		enable: true,
                +		autoCheckTrigger: true
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/setting.check.chkStyle.html b/alive-admin/src/main/resources/static/ztree/api/cn/setting.check.chkStyle.html new file mode 100644 index 0000000..9706c13 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/setting.check.chkStyle.html @@ -0,0 +1,48 @@ +
                +
                +

                Stringsetting.check.chkStyle

                +

                概述[ 依赖 jquery.ztree.excheck 扩展 js ]

                +
                +

                +
                +

                勾选框类型(checkbox 或 radio)[setting.check.enable = true 时生效]

                +

                默认值:"checkbox"

                +
                +
                +

                String 格式说明

                +
                +

                chkStyle = "checkbox" 时,显示 checkbox 选择框,setting.check.chkboxType 属性有效。 +
                chkStyle = "radio" 时,显示 radio 选择框, setting.check.radioType 属性有效。

                +

                请注意大小写,不要改变

                +
                +

                checkbox 状态说明

                +
                +

                +
                +

                未勾选;如果是父节点,则无子节点被勾选。鼠标移到该节点上显示为:

                +

                未勾选;(只有父节点存在此状态)存在被勾选的子节点。鼠标移到该节点上显示为:

                +

                被勾选;如果是父节点,则全部子节点都被勾选。鼠标移到该节点上显示为:

                +

                被勾选;(只有父节点存在此状态)且部分或无子节点被勾选。鼠标移到该节点上显示为:

                +
                +
                +

                radio 状态说明

                +
                +

                +
                +

                未勾选;如果是父节点,则没有子节点被勾选。鼠标移到该节点上显示为:

                +

                未勾选;(只有父节点存在此状态)且存在被勾选的子节点。鼠标移到该节点上显示为:

                +

                被勾选;如果是父节点,则没有子节点被勾选。鼠标移到该节点上显示为:

                +

                被勾选;(只有父节点存在此状态)且存在被勾选的子节点。鼠标移到该节点上显示为:

                +
                +
                +

                setting 举例

                +

                1. 设置选择框为 radio

                +
                var setting = {
                +	check: {
                +		enable: true,
                +		chkStyle: "radio"
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/setting.check.chkboxType.html b/alive-admin/src/main/resources/static/ztree/api/cn/setting.check.chkboxType.html new file mode 100644 index 0000000..da06b6c --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/setting.check.chkboxType.html @@ -0,0 +1,31 @@ +
                +
                +

                JSONsetting.check.chkboxType

                +

                概述[ 依赖 jquery.ztree.excheck 扩展 js ]

                +
                +

                +
                +

                勾选 checkbox 对于父子节点的关联关系。[setting.check.enable = true 且 setting.check.chkStyle = "checkbox" 时生效]

                +

                默认值:{ "Y": "ps", "N": "ps" }

                +
                +
                +

                JSON 格式说明

                +
                +

                Y 属性定义 checkbox 被勾选后的情况; +
                N 属性定义 checkbox 取消勾选后的情况; +
                "p" 表示操作会影响父级节点; +
                "s" 表示操作会影响子级节点。

                +

                请注意大小写,不要改变

                +
                +

                setting 举例

                +

                1. checkbox 勾选操作,只影响父级节点;取消勾选操作,只影响子级节点

                +
                var setting = {
                +	check: {
                +		enable: true,
                +		chkStyle: "checkbox",
                +		chkboxType: { "Y": "p", "N": "s" }
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/setting.check.enable.html b/alive-admin/src/main/resources/static/ztree/api/cn/setting.check.enable.html new file mode 100644 index 0000000..8b1387e --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/setting.check.enable.html @@ -0,0 +1,25 @@ +
                +
                +

                Booleansetting.check.enable

                +

                概述[ 依赖 jquery.ztree.excheck 扩展 js ]

                +
                +

                +
                +

                设置 zTree 的节点上是否显示 checkbox / radio

                +

                默认值: false

                +
                +
                +

                Boolean 格式说明

                +
                +

                true / false 分别表示 显示 / 不显示 复选框或单选框

                +
                +

                setting 举例

                +

                1. 需要显示 checkbox

                +
                var setting = {
                +	check: {
                +		enable: true
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/setting.check.nocheckInherit.html b/alive-admin/src/main/resources/static/ztree/api/cn/setting.check.nocheckInherit.html new file mode 100644 index 0000000..caf9902 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/setting.check.nocheckInherit.html @@ -0,0 +1,28 @@ +
                +
                +

                Booleansetting.check.nocheckInherit

                +

                概述[ 依赖 jquery.ztree.excheck 扩展 js ]

                +
                +

                +
                +

                当父节点设置 nocheck = true 时,设置子节点是否自动继承 nocheck = true 。[setting.check.enable = true 时生效]

                +

                1、只使用于初始化节点时,便于批量操作。 对于已存在的节点请利用 updateNode 方法单个节点设置。

                +

                默认值: false

                +
                +
                +

                Boolean 格式说明

                +
                +

                true 表示 新加入子节点时,自动继承父节点 nocheck = true 的属性。

                +

                false 表示 新加入子节点时,不继承父节点 nocheck 的属性。

                +
                +

                setting 举例

                +

                1. 需要子节点自动继承 nocheck = true

                +
                var setting = {
                +	check: {
                +		enable: true,
                +		nocheckInherit: true
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/setting.check.radioType.html b/alive-admin/src/main/resources/static/ztree/api/cn/setting.check.radioType.html new file mode 100644 index 0000000..19f84ca --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/setting.check.radioType.html @@ -0,0 +1,29 @@ +
                +
                +

                Stringsetting.check.radioType

                +

                概述[ 依赖 jquery.ztree.excheck 扩展 js ]

                +
                +

                +
                +

                radio 的分组范围。[setting.check.enable = true 且 setting.check.chkStyle = "radio" 时生效]

                +

                默认值:"level"

                +
                +
                +

                String 格式说明

                +
                +

                radioType = "level" 时,在每一级节点范围内当做一个分组。 +
                radioType = "all" 时,在整棵树范围内当做一个分组。

                +

                请注意大小写,不要改变

                +
                +

                setting 举例

                +

                1. 设置 radio 的判别规则为整棵树内

                +
                var setting = {
                +	check: {
                +		enable: true,
                +		chkStyle: "radio",
                +		radioType: "all"
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/setting.data.keep.leaf.html b/alive-admin/src/main/resources/static/ztree/api/cn/setting.data.keep.leaf.html new file mode 100644 index 0000000..af3a721 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/setting.data.keep.leaf.html @@ -0,0 +1,28 @@ +
                +
                +

                Booleansetting.data.keep.leaf

                +

                概述[ 依赖 jquery.ztree.core 核心 js ]

                +
                +

                +
                +

                zTree 的节点叶子节点属性锁,是否始终保持 isParent = false

                +

                默认值:false

                +
                +
                +

                Boolean 格式说明

                +
                +

                true / false 分别表示 锁定 / 不锁定 叶子节点属性

                +

                如果设置为 true,则所有 isParent = false 的节点,都无法添加子节点。

                +
                +

                setting 举例

                +

                1. 需要锁定叶子节点状态

                +
                var setting = {
                +	data: {
                +		keep: {
                +			leaf: true
                +		}
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/setting.data.keep.parent.html b/alive-admin/src/main/resources/static/ztree/api/cn/setting.data.keep.parent.html new file mode 100644 index 0000000..c4975df --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/setting.data.keep.parent.html @@ -0,0 +1,28 @@ +
                +
                +

                Booleansetting.data.keep.parent

                +

                概述[ 依赖 jquery.ztree.core 核心 js ]

                +
                +

                +
                +

                zTree 的节点父节点属性锁,是否始终保持 isParent = true

                +

                默认值:false

                +
                +
                +

                Boolean 格式说明

                +
                +

                true / false 分别表示 锁定 / 不锁定 父节点属性

                +

                如果设置为 true,则所有 isParent = true 的节点,即使该节点的子节点被全部删除或移走,依旧保持父节点状态。

                +
                +

                setting 举例

                +

                1. 需要锁定父节点状态

                +
                var setting = {
                +	data: {
                +		keep: {
                +			parent: true
                +		}
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/setting.data.key.checked.html b/alive-admin/src/main/resources/static/ztree/api/cn/setting.data.key.checked.html new file mode 100644 index 0000000..ac9fdc1 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/setting.data.key.checked.html @@ -0,0 +1,24 @@ +
                +
                +

                Stringsetting.data.key.checked

                +

                概述[ 依赖 jquery.ztree.excheck 扩展 js ]

                +
                +

                +
                +

                zTree 节点数据中保存 check 状态的属性名称。

                +

                默认值:"checked"

                +

                请勿与 zTree 节点数据的其他参数冲突,例如:checkedOld

                +
                +
                +

                setting 举例

                +

                1. 设置 zTree 显示节点时,将 treeNode 的 isChecked 属性当做节点名称

                +
                var setting = {
                +	data: {
                +		key: {
                +			checked: "isChecked"
                +		}
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/setting.data.key.children.html b/alive-admin/src/main/resources/static/ztree/api/cn/setting.data.key.children.html new file mode 100644 index 0000000..66a49a7 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/setting.data.key.children.html @@ -0,0 +1,23 @@ +
                +
                +

                Stringsetting.data.key.children

                +

                概述[ 依赖 jquery.ztree.core 核心 js ]

                +
                +

                +
                +

                zTree 节点数据中保存子节点数据的属性名称。

                +

                默认值:"children"

                +
                +
                +

                setting 举例

                +

                1. 设置 zTree 显示节点时,将 treeNode 的 nodes 属性当做节点名称

                +
                var setting = {
                +	data: {
                +		key: {
                +			children: "nodes"
                +		}
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/setting.data.key.name.html b/alive-admin/src/main/resources/static/ztree/api/cn/setting.data.key.name.html new file mode 100644 index 0000000..c25d250 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/setting.data.key.name.html @@ -0,0 +1,23 @@ +
                +
                +

                Stringsetting.data.key.name

                +

                概述[ 依赖 jquery.ztree.core 核心 js ]

                +
                +

                +
                +

                zTree 节点数据保存节点名称的属性名称。

                +

                默认值:"name"

                +
                +
                +

                setting 举例

                +

                1. 设置 zTree 显示节点时,将 treeNode 的 ename 属性当做节点名称

                +
                var setting = {
                +	data: {
                +		key: {
                +			name: "ename"
                +		}
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/setting.data.key.title.html b/alive-admin/src/main/resources/static/ztree/api/cn/setting.data.key.title.html new file mode 100644 index 0000000..43e6855 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/setting.data.key.title.html @@ -0,0 +1,24 @@ +
                +
                +

                Stringsetting.data.key.title

                +

                概述[ 依赖 jquery.ztree.core 核心 js ]

                +
                +

                +
                +

                zTree 节点数据保存节点提示信息的属性名称。[setting.view.showTitle = true 时生效]

                +

                如果设置为 "" ,则自动与 setting.data.key.name 保持一致,避免用户反复设置

                +

                默认值:""

                +
                +
                +

                setting 举例

                +

                1. 设置 zTree 显示节点时,将 treeNode 的 fullName 属性当做节点名称

                +
                var setting = {
                +	data: {
                +		key: {
                +			title: "fullName"
                +		}
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/setting.data.key.url.html b/alive-admin/src/main/resources/static/ztree/api/cn/setting.data.key.url.html new file mode 100644 index 0000000..e534d98 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/setting.data.key.url.html @@ -0,0 +1,24 @@ +
                +
                +

                Stringsetting.data.key.url

                +

                概述[ 依赖 jquery.ztree.core 核心 js ]

                +
                +

                +
                +

                zTree 节点数据保存节点链接的目标 URL 的属性名称。

                +

                特殊用途:当后台数据只能生成 url 属性,又不想实现点击节点跳转的功能时,可以直接修改此属性为其他不存在的属性名称

                +

                默认值:"url"

                +
                +
                +

                setting 举例

                +

                1. 设置 zTree 显示节点时,将 treeNode 的 xUrl 属性当做节点链接的目标 URL

                +
                var setting = {
                +	data: {
                +		key: {
                +			url: "xUrl"
                +		}
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/setting.data.simpleData.enable.html b/alive-admin/src/main/resources/static/ztree/api/cn/setting.data.simpleData.enable.html new file mode 100644 index 0000000..65bd407 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/setting.data.simpleData.enable.html @@ -0,0 +1,38 @@ +
                +
                +

                Booleansetting.data.simpleData.enable

                +

                概述[ 依赖 jquery.ztree.core 核心 js ]

                +
                +

                +
                +

                确定 zTree 初始化时的节点数据、异步加载时的节点数据、或 addNodes 方法中输入的 newNodes 数据是否采用简单数据模式 (Array)

                +

                不需要用户再把数据库中取出的 List 强行转换为复杂的 JSON 嵌套格式

                +

                默认值:false

                +
                +
                +

                Boolean 格式说明

                +
                +

                true / false 分别表示 使用 / 不使用 简单数据模式

                +

                如果设置为 true,请务必设置 setting.data.simpleData 内的其他参数: idKey / pIdKey / rootPId,并且让数据满足父子关系。

                +
                +

                setting 举例

                +

                1. 使用简单 Array 格式的数据

                +
                var setting = {
                +	data: {
                +		simpleData: {
                +			enable: true,
                +			idKey: "id",
                +			pIdKey: "pId",
                +			rootPId: 0,
                +		}
                +	}
                +};
                +var treeNodes = [
                +    {"id":1, "pId":0, "name":"test1"},
                +    {"id":11, "pId":1, "name":"test11"},
                +    {"id":12, "pId":1, "name":"test12"},
                +    {"id":111, "pId":11, "name":"test111"}
                +];
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/setting.data.simpleData.idKey.html b/alive-admin/src/main/resources/static/ztree/api/cn/setting.data.simpleData.idKey.html new file mode 100644 index 0000000..81129e9 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/setting.data.simpleData.idKey.html @@ -0,0 +1,32 @@ +
                +
                +

                Stringsetting.data.simpleData.idKey

                +

                概述[ 依赖 jquery.ztree.core 核心 js ]

                +
                +

                +
                +

                节点数据中保存唯一标识的属性名称。[setting.data.simpleData.enable = true 时生效]

                +

                默认值:"id"

                +
                +
                +

                setting 举例

                +

                1. 使用简单 Array 格式的数据

                +
                var setting = {
                +	data: {
                +		simpleData: {
                +			enable: true,
                +			idKey: "id",
                +			pIdKey: "pId",
                +			rootPId: 0,
                +		}
                +	}
                +};
                +var treeNodes = [
                +    {"id":1, "pId":0, "name":"test1"},
                +    {"id":11, "pId":1, "name":"test11"},
                +    {"id":12, "pId":1, "name":"test12"},
                +    {"id":111, "pId":11, "name":"test111"}
                +];
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/setting.data.simpleData.pIdKey.html b/alive-admin/src/main/resources/static/ztree/api/cn/setting.data.simpleData.pIdKey.html new file mode 100644 index 0000000..d434bc3 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/setting.data.simpleData.pIdKey.html @@ -0,0 +1,32 @@ +
                +
                +

                Stringsetting.data.simpleData.pIdKey

                +

                概述[ 依赖 jquery.ztree.core 核心 js ]

                +
                +

                +
                +

                节点数据中保存其父节点唯一标识的属性名称。[setting.data.simpleData.enable = true 时生效]

                +

                默认值:"pId"

                +
                +
                +

                setting 举例

                +

                1. 使用简单 Array 格式的数据

                +
                var setting = {
                +	data: {
                +		simpleData: {
                +			enable: true,
                +			idKey: "id",
                +			pIdKey: "pId",
                +			rootPId: 0
                +		}
                +	}
                +};
                +var treeNodes = [
                +    {"id":1, "pId":0, "name":"test1"},
                +    {"id":11, "pId":1, "name":"test11"},
                +    {"id":12, "pId":1, "name":"test12"},
                +    {"id":111, "pId":11, "name":"test111"}
                +];
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/setting.data.simpleData.rootPId.html b/alive-admin/src/main/resources/static/ztree/api/cn/setting.data.simpleData.rootPId.html new file mode 100644 index 0000000..8cff82d --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/setting.data.simpleData.rootPId.html @@ -0,0 +1,32 @@ +
                +
                +

                String / Numbersetting.data.simpleData.rootPId

                +

                概述[ 依赖 jquery.ztree.core 核心 js ]

                +
                +

                +
                +

                用于修正根节点父节点数据,即 pIdKey 指定的属性值。[setting.data.simpleData.enable = true 时生效]

                +

                默认值:null

                +
                +
                +

                setting 举例

                +

                1. 使用简单 Array 格式的数据

                +
                var setting = {
                +	data: {
                +		simpleData: {
                +			enable: true,
                +			idKey: "id",
                +			pIdKey: "pId",
                +			rootPId: 0
                +		}
                +	}
                +};
                +var treeNodes = [
                +    {"id":1, "pId":0, "name":"test1"},
                +    {"id":11, "pId":1, "name":"test11"},
                +    {"id":12, "pId":1, "name":"test12"},
                +    {"id":111, "pId":11, "name":"test111"}
                +];
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/setting.edit.drag.autoExpandTrigger.html b/alive-admin/src/main/resources/static/ztree/api/cn/setting.edit.drag.autoExpandTrigger.html new file mode 100644 index 0000000..126b8a8 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/setting.edit.drag.autoExpandTrigger.html @@ -0,0 +1,28 @@ +
                +
                +

                Booleansetting.edit.drag.autoExpandTrigger

                +

                概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                +
                +

                +
                +

                拖拽时父节点自动展开是否触发 onExpand 事件回调函数。[setting.edit.enable = true 时生效]

                +

                默认值:false

                +
                +
                +

                Boolean 格式说明

                +
                +

                true / false 分别表示 触发 / 不触发 onExpand 事件回调函数。

                +
                +

                setting 举例

                +

                1. 设置拖拽时父节点自动展开触发 onExpand 事件回调函数

                +
                var setting = {
                +	edit: {
                +		enable: true,
                +		drag: {
                +			autoExpandTrigger: true
                +		}
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/setting.edit.drag.autoOpenTime.html b/alive-admin/src/main/resources/static/ztree/api/cn/setting.edit.drag.autoOpenTime.html new file mode 100644 index 0000000..df78339 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/setting.edit.drag.autoOpenTime.html @@ -0,0 +1,25 @@ +
                +
                +

                Numbersetting.edit.drag.autoOpenTime

                +

                概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                +
                +

                +
                +

                拖拽时父节点自动展开的延时间隔。 (单位:ms)[setting.edit.enable = true 时生效]

                +

                默认值:500

                +

                请根据自己的需求适当调整此值

                +
                +
                +

                setting 举例

                +

                1. 设置拖拽到父节点上立刻自动展开

                +
                var setting = {
                +	edit: {
                +		enable: true,
                +		drag: {
                +			autoOpenTime: 0
                +		}
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/setting.edit.drag.borderMax.html b/alive-admin/src/main/resources/static/ztree/api/cn/setting.edit.drag.borderMax.html new file mode 100644 index 0000000..1d4dd68 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/setting.edit.drag.borderMax.html @@ -0,0 +1,25 @@ +
                +
                +

                Numbersetting.edit.drag.borderMax

                +

                概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                +
                +

                +
                +

                拖拽节点成为根节点时的 Tree 内边界范围 (单位:px)。[setting.edit.enable = true 时生效]

                +

                默认值:10

                +

                请根据自己的需求适当调整此值

                +
                +
                +

                setting 举例

                +

                1. 更改拖拽操作节点成为根节点时的 Tree 内边界范围为20px

                +
                var setting = {
                +	edit: {
                +		enable: true,
                +		drag: {
                +			borderMax: 20
                +		}
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/setting.edit.drag.borderMin.html b/alive-admin/src/main/resources/static/ztree/api/cn/setting.edit.drag.borderMin.html new file mode 100644 index 0000000..463eb2b --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/setting.edit.drag.borderMin.html @@ -0,0 +1,25 @@ +
                +
                +

                Numbersetting.edit.drag.borderMin

                +

                概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                +
                +

                +
                +

                拖拽节点成为根节点时的 Tree 外边界范围 (单位:px)。[setting.edit.enable = true 时生效]

                +

                默认值:-5

                +

                请根据自己的需求适当调整此值

                +
                +
                +

                setting 举例

                +

                1. 更改拖拽操作节点成为根节点时的 Tree 外边界范围为10px

                +
                var setting = {
                +	edit: {
                +		enable: true,
                +		drag: {
                +			borderMin: -10
                +		}
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/setting.edit.drag.inner.html b/alive-admin/src/main/resources/static/ztree/api/cn/setting.edit.drag.inner.html new file mode 100644 index 0000000..06679e1 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/setting.edit.drag.inner.html @@ -0,0 +1,59 @@ +
                +
                +

                Boolean / Function(treeId, treeNodes, targetNode)setting.edit.drag.inner

                +

                概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                +
                +

                +
                +

                拖拽到目标节点时,设置是否允许成为目标节点的子节点。[setting.edit.enable = true 时生效]

                +

                拖拽目标是 根 的时候,不触发 prev 和 next,只会触发 inner

                +

                此功能主要作用是对拖拽进行适当限制(辅助箭头),需要结合 prev、next 一起使用,才能实现完整功能。

                +

                默认值:true

                +
                +
                +

                Boolean 格式说明

                +
                +

                true / false 分别表示 允许 / 不允许 成为目标节点的子节点

                +
                +

                Function 参数说明

                +
                +

                treeIdString

                +

                对应 zTree 的 treeId,便于用户操控(多棵树拖拽时,是目标节点所在树的 treeId)

                +

                treeNodesArray(JSON)

                +

                被拖拽的节点 JSON 数据集合

                +

                targetNodeJSON

                +

                拖拽时的目标节点 JSON 数据对象

                +

                如果拖拽的节点要成为根节点,则 targetNode = null

                +

                返回值Boolean

                +

                返回值同 Boolean 格式的数据

                +
                +

                setting & function 举例

                +

                1. 禁止拖拽成为目标节点的子节点

                +
                var setting = {
                +	edit: {
                +		enable: true,
                +		drag: {
                +			prev: true,
                +			next: true,
                +			inner: false
                +		}
                +	}
                +};
                +......
                +

                2. 禁止拖拽成为根节点的子节点

                +
                function canInner(treeId, nodes, targetNode) {
                +	return !(targetNode && targetNode.level === 0);
                +}
                +var setting = {
                +	edit: {
                +		enable: true,
                +		drag: {
                +			prev: true,
                +			next: true,
                +			inner: canInner
                +		}
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/setting.edit.drag.isCopy.html b/alive-admin/src/main/resources/static/ztree/api/cn/setting.edit.drag.isCopy.html new file mode 100644 index 0000000..f77ead4 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/setting.edit.drag.isCopy.html @@ -0,0 +1,32 @@ +
                +
                +

                Booleansetting.edit.drag.isCopy

                +

                概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                +
                +

                +
                +

                拖拽时, 设置是否允许复制节点。[setting.edit.enable = true 时生效]

                +

                默认值:true

                +
                +
                +

                规则说明

                +
                +

                1、isCopy = true; isMove = true 时,拖拽节点按下 Ctrl 键表示 copy; 否则为 move

                +

                2、isCopy = true; isMove = false 时,所有拖拽操作都是 copy

                +

                3、isCopy = false; isMove = true 时,所有拖拽操作都是 move

                +

                4、isCopy = false; isMove = false 时,禁止拖拽操作

                +
                +

                setting 举例

                +

                1. 设置所有拖拽操作都是 copy

                +
                var setting = {
                +	edit: {
                +		enable: true,
                +		drag: {
                +			isCopy: true,
                +			isMove: false
                +		}
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/setting.edit.drag.isMove.html b/alive-admin/src/main/resources/static/ztree/api/cn/setting.edit.drag.isMove.html new file mode 100644 index 0000000..d860286 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/setting.edit.drag.isMove.html @@ -0,0 +1,32 @@ +
                +
                +

                Booleansetting.edit.drag.isMove

                +

                概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                +
                +

                +
                +

                拖拽时, 设置是否允许移动节点。[setting.edit.enable = true 时生效]

                +

                默认值:true

                +
                +
                +

                规则说明

                +
                +

                1、isCopy = true; isMove = true 时,拖拽节点按下 Ctrl 键表示 copy; 否则为 move

                +

                2、isCopy = true; isMove = false 时,所有拖拽操作都是 copy

                +

                3、isCopy = false; isMove = true 时,所有拖拽操作都是 move

                +

                4、isCopy = false; isMove = false 时,禁止拖拽操作

                +
                +

                setting 举例

                +

                1. 设置所有拖拽操作都是 move

                +
                var setting = {
                +	edit: {
                +		enable: true,
                +		drag: {
                +			isCopy: false,
                +			isMove: true
                +		}
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/setting.edit.drag.maxShowNodeNum.html b/alive-admin/src/main/resources/static/ztree/api/cn/setting.edit.drag.maxShowNodeNum.html new file mode 100644 index 0000000..3e7a3d2 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/setting.edit.drag.maxShowNodeNum.html @@ -0,0 +1,25 @@ +
                +
                +

                Numbersetting.edit.drag.maxShowNodeNum

                +

                概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                +
                +

                +
                +

                拖拽多个兄弟节点时,浮动图层中显示的最大节点数。 多余的节点用...代替。[setting.edit.enable = true 时生效]

                +

                默认值:5

                +

                请根据自己的需求适当调整此值

                +
                +
                +

                setting 举例

                +

                1. 设置拖拽时最多可显示10个节点

                +
                var setting = {
                +	edit: {
                +		enable: true,
                +		drag: {
                +			maxShowNodeNum: 10
                +		}
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/setting.edit.drag.minMoveSize.html b/alive-admin/src/main/resources/static/ztree/api/cn/setting.edit.drag.minMoveSize.html new file mode 100644 index 0000000..904be41 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/setting.edit.drag.minMoveSize.html @@ -0,0 +1,25 @@ +
                +
                +

                Numbersetting.edit.drag.minMoveSize

                +

                概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                +
                +

                +
                +

                判定是否拖拽操作的最小位移值 (单位:px)。[setting.edit.enable = true 时生效]

                +

                根据自己的需求可适当调整此值,如果太小容易导致点击鼠标时误操作进行拖拽

                +

                默认值:5

                +
                +
                +

                setting 举例

                +

                1. 更改拖拽操作启动位移值为10px

                +
                var setting = {
                +	edit: {
                +		enable: true,
                +		drag: {
                +			minMoveSize: 10
                +		}
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/setting.edit.drag.next.html b/alive-admin/src/main/resources/static/ztree/api/cn/setting.edit.drag.next.html new file mode 100644 index 0000000..ffc874a --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/setting.edit.drag.next.html @@ -0,0 +1,58 @@ +
                +
                +

                Boolean / Function(treeId, treeNodes, targetNode)setting.edit.drag.next

                +

                概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                +
                +

                +
                +

                拖拽到目标节点时,设置是否允许移动到目标节点后面的操作。[setting.edit.enable = true 时生效]

                +

                拖拽目标是 根 的时候,不触发 prev 和 next,只会触发 inner

                +

                此功能主要作用是对拖拽进行适当限制(辅助箭头),需要结合 prev、inner 一起使用,才能实现完整功能。

                +

                默认值:true

                +
                +
                +

                Boolean 格式说明

                +
                +

                true / false 分别表示 允许 / 不允许 移动到目标节点后面

                +
                +

                Function 参数说明

                +
                +

                treeIdString

                +

                对应 zTree 的 treeId,便于用户操控(多棵树拖拽时,是目标节点所在树的 treeId)

                +

                treeNodesArray(JSON)

                +

                被拖拽的节点 JSON 数据集合

                +

                targetNodeJSON

                +

                拖拽时的目标节点 JSON 数据对象

                +

                返回值Boolean

                +

                返回值同 Boolean 格式的数据

                +
                +

                setting & function 举例

                +

                1. 禁止拖拽到节点后面的操作

                +
                var setting = {
                +	edit: {
                +		enable: true,
                +		drag: {
                +			prev: true,
                +			next: false,
                +			inner: true
                +		}
                +	}
                +};
                +......
                +

                2. 禁止拖拽到父节点后面的操作

                +
                function canNext(treeId, nodes, targetNode) {
                +	return !targetNode.isParent;
                +}
                +var setting = {
                +	edit: {
                +		enable: true,
                +		drag: {
                +			prev: true,
                +			next: canNext,
                +			inner: true
                +		}
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/setting.edit.drag.prev.html b/alive-admin/src/main/resources/static/ztree/api/cn/setting.edit.drag.prev.html new file mode 100644 index 0000000..bd05361 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/setting.edit.drag.prev.html @@ -0,0 +1,58 @@ +
                +
                +

                Boolean / Function(treeId, treeNodes, targetNode)setting.edit.drag.prev

                +

                概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                +
                +

                +
                +

                拖拽到目标节点时,设置是否允许移动到目标节点前面的操作。[setting.edit.enable = true 时生效]

                +

                拖拽目标是 根 的时候,不触发 prev 和 next,只会触发 inner

                +

                此功能主要作用是对拖拽进行适当限制(辅助箭头),需要结合 next、inner 一起使用,才能实现完整功能。

                +

                默认值:true

                +
                +
                +

                Boolean 格式说明

                +
                +

                true / false 分别表示 允许 / 不允许 移动到目标节点前面

                +
                +

                Function 参数说明

                +
                +

                treeIdString

                +

                对应 zTree 的 treeId,便于用户操控(多棵树拖拽时,是目标节点所在树的 treeId)

                +

                treeNodesArray(JSON)

                +

                被拖拽的节点 JSON 数据集合

                +

                targetNodeJSON

                +

                拖拽时的目标节点 JSON 数据对象

                +

                返回值Boolean

                +

                返回值同 Boolean 格式的数据

                +
                +

                setting & function 举例

                +

                1. 禁止拖拽到节点前面的操作

                +
                var setting = {
                +	edit: {
                +		enable: true,
                +		drag: {
                +			prev: false,
                +			next: true,
                +			inner: true
                +		}
                +	}
                +};
                +......
                +

                2. 禁止拖拽到父节点前面的操作

                +
                function canPrev(treeId, nodes, targetNode) {
                +	return !targetNode.isParent;
                +}
                +var setting = {
                +	edit: {
                +		enable: true,
                +		drag: {
                +			prev: canPrev,
                +			next: true,
                +			inner: true
                +		}
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/setting.edit.editNameSelectAll.html b/alive-admin/src/main/resources/static/ztree/api/cn/setting.edit.editNameSelectAll.html new file mode 100644 index 0000000..30784f3 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/setting.edit.editNameSelectAll.html @@ -0,0 +1,27 @@ +
                +
                +

                Booleansetting.edit.editNameSelectAll

                +

                概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                +
                +

                +
                +

                节点编辑名称 input 初次显示时,设置 txt 内容是否为全选状态。 [setting.edit.enable = true 时生效]

                +

                默认值: false

                +
                +
                +

                Boolean 格式说明

                +
                +

                true 表示 全选状态

                +

                false 表示 不是全选状态,光标默认在最后

                +
                +

                setting 举例

                +

                1. 设置节点编辑名称 input 初次显示时,txt内容为全选状态

                +
                var setting = {
                +	edit: {
                +		enable: true,
                +		editNameSelectAll: true
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/setting.edit.enable.html b/alive-admin/src/main/resources/static/ztree/api/cn/setting.edit.enable.html new file mode 100644 index 0000000..de1afea --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/setting.edit.enable.html @@ -0,0 +1,38 @@ +
                +
                +

                Booleansetting.edit.enable

                +

                概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                +
                +

                +
                +

                设置 zTree 是否处于编辑状态

                +

                请在初始化之前设置,初始化后需要改变编辑状态请使用 zTreeObj.setEditable() 方法

                +

                默认值: false

                +
                +
                +

                Boolean 格式说明

                +
                +

                true / false 分别表示 可以 / 不可以 编辑

                +
                +

                编辑状态规则说明

                +
                +

                1、点击节点时,不会打开 node.url 指定的 URL。 +
                2、全面支持 编辑 与 异步加载 状态共存。 +
                3、可以对节点进行拖拽,且支持多棵树之间进行拖拽。 +
                4、支持拖拽时 复制/移动 节点。(参考: setting.edit.drag.isCopy / setting.edit.drag.isMove) +
                5、可以通过编辑按钮修改 name 属性。 +
                6、可以通过删除按钮删除节点。 +
                +

                +

                请注意大小写,不要改变

                +
                +

                setting 举例

                +

                1. 设置 zTree 进入编辑状态

                +
                var setting = {
                +	edit: {
                +		enable: true
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/setting.edit.removeTitle.html b/alive-admin/src/main/resources/static/ztree/api/cn/setting.edit.removeTitle.html new file mode 100644 index 0000000..55257da --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/setting.edit.removeTitle.html @@ -0,0 +1,48 @@ +
                +
                +

                String / Function(treeId, treeNode)setting.edit.removeTitle

                +

                概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                +
                +

                +
                +

                删除按钮的 Title 辅助信息。[setting.edit.enable = true & setting.edit.showRemoveBtn = true 时生效]

                +

                默认值:"remove"

                +
                +
                +

                String 格式说明

                +
                +

                鼠标移动到 删除按钮 上时,浏览器自动弹出的辅助信息内容,可根据用户需要自行修改

                +
                +

                Function 参数说明

                +
                +

                treeIdString

                +

                对应 zTree 的 treeId,便于用户操控

                +

                treeNodeJSON

                +

                需要设置删除按钮 Title 信息的节点 JSON 数据对象

                +

                返回值String

                +

                返回值同 String 格式的数据

                +
                +

                setting & function 举例

                +

                1. 设置删除按钮的 Title 辅助信息为: "删除节点"

                +
                var setting = {
                +	edit: {
                +		enable: true,
                +		showRemoveBtn: true,
                +		removeTitle: "删除节点"
                +	}
                +};
                +......
                +

                2. 设置父节点删除按钮的 Title 辅助信息为: "删除父节点"

                +
                function setRemoveTitle(treeId, treeNode) {
                +	return treeNode.isParent ? "删除父节点":"删除叶子节点";
                +}
                +var setting = {
                +	edit: {
                +		enable: true,
                +		showRemoveBtn: true,
                +		removeTitle: setRemoveTitle
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/setting.edit.renameTitle.html b/alive-admin/src/main/resources/static/ztree/api/cn/setting.edit.renameTitle.html new file mode 100644 index 0000000..2dfbcca --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/setting.edit.renameTitle.html @@ -0,0 +1,48 @@ +
                +
                +

                String / Function(treeId, treeNode)setting.edit.renameTitle

                +

                概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                +
                +

                +
                +

                编辑名称按钮的 Title 辅助信息。[setting.edit.enable = true & setting.edit.showRenameBtn = true 时生效]

                +

                默认值:"rename"

                +
                +
                +

                String 格式说明

                +
                +

                设置鼠标移动到 编辑名称按钮 上时,浏览器自动弹出的辅助信息内容,可根据用户需要自行修改

                +
                +

                Function 参数说明

                +
                +

                treeIdString

                +

                对应 zTree 的 treeId,便于用户操控

                +

                treeNodeJSON

                +

                需要设置编辑名称按钮 Title 信息的节点 JSON 数据对象

                +

                返回值String

                +

                返回值同 String 格式的数据

                +
                +

                setting & function 举例

                +

                1. 设置编辑名称按钮的 Title 辅助信息为: "编辑节点名称"

                +
                var setting = {
                +	edit: {
                +		enable: true,
                +		showRenameBtn: true,
                +		renameTitle: "编辑节点名称"
                +	}
                +};
                +......
                +

                2. 设置父节点编辑名称按钮的 Title 辅助信息为: "编辑父节点名称"

                +
                function setRenameTitle(treeId, treeNode) {
                +	return treeNode.isParent ? "编辑父节点名称":"编辑叶子节点名称";
                +}
                +var setting = {
                +	edit: {
                +		enable: true,
                +		showRenameBtn: true,
                +		renameTitle: setRenameTitle
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/setting.edit.showRemoveBtn.html b/alive-admin/src/main/resources/static/ztree/api/cn/setting.edit.showRemoveBtn.html new file mode 100644 index 0000000..db62053 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/setting.edit.showRemoveBtn.html @@ -0,0 +1,49 @@ +
                +
                +

                Boolean / Function(treeId, treeNode)setting.edit.showRemoveBtn

                +

                概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                +
                +

                +
                +

                设置是否显示删除按钮。[setting.edit.enable = true 时生效]

                +

                当点击某节点的删除按钮时:

                +

                1、首先触发 setting.callback.beforeRemove 回调函数,用户可判定是否进行删除操作。

                +

                2、如果未设置 beforeRemove 或 beforeRemove 返回 true,则删除节点并触发 setting.callback.onRemove 回调函数。

                +

                默认值:true

                +
                +
                +

                Boolean 格式说明

                +
                +

                true / false 分别表示 显示 / 隐藏 删除按钮

                +
                +

                Function 参数说明

                +
                +

                treeIdString

                +

                对应 zTree 的 treeId,便于用户操控

                +

                treeNodeJSON

                +

                需要设置是否显示删除按钮的节点 JSON 数据对象

                +

                返回值Boolean

                +

                返回值同 Boolean 格式的数据

                +
                +

                setting & function 举例

                +

                1. 不显示删除按钮

                +
                var setting = {
                +	edit: {
                +		enable: true,
                +		showRemoveBtn: false
                +	}
                +};
                +......
                +

                2. 设置所有的父节点不显示删除按钮

                +
                function setRemoveBtn(treeId, treeNode) {
                +	return !treeNode.isParent;
                +}
                +var setting = {
                +	edit: {
                +		enable: true,
                +		showRemoveBtn: setRemoveBtn
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/setting.edit.showRenameBtn.html b/alive-admin/src/main/resources/static/ztree/api/cn/setting.edit.showRenameBtn.html new file mode 100644 index 0000000..33dd37a --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/setting.edit.showRenameBtn.html @@ -0,0 +1,51 @@ +
                +
                +

                Boolean / Function(treeId, treeNode)setting.edit.showRenameBtn

                +

                概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                +
                +

                +
                +

                设置是否显示编辑名称按钮。[setting.edit.enable = true 时生效]

                +

                当点击某节点的编辑名称按钮时:

                +

                1、进入节点编辑名称状态。

                +

                2、编辑名称完毕(Input 失去焦点 或 按下 Enter 键),会触发 setting.callback.beforeRename 回调函数,用户可根据自己的规则判定是否允许修改名称。

                +

                3、如果 beforeRename 返回 false,则继续保持编辑名称状态,直到名称符合规则位置 (按下 ESC 键可取消编辑名称状态,恢复原名称)。

                +

                4、如果未设置 beforeRename 或 beforeRename 返回 true,则结束节点编辑名称状态,更新节点名称,并触发 setting.callback.onRename 回调函数。

                +

                默认值:true

                +
                +
                +

                Boolean 格式说明

                +
                +

                true / false 分别表示 显示 / 隐藏 编辑名称按钮

                +
                +

                Function 参数说明

                +
                +

                treeIdString

                +

                对应 zTree 的 treeId,便于用户操控

                +

                treeNodeJSON

                +

                需要设置是否显示编辑名称按钮的节点 JSON 数据对象

                +

                返回值Boolean

                +

                返回值同 Boolean 格式的数据

                +
                +

                setting & function 举例

                +

                1. 不显示编辑名称按钮

                +
                var setting = {
                +	edit: {
                +		enable: true,
                +		showRenameBtn: false
                +	}
                +};
                +......
                +

                2. 设置所有的父节点不显示编辑名称按钮

                +
                function setRenameBtn(treeId, treeNode) {
                +	return !treeNode.isParent;
                +}
                +var setting = {
                +	edit: {
                +		enable: true,
                +		showRenameBtn: setRenameBtn
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/setting.treeId.html b/alive-admin/src/main/resources/static/ztree/api/cn/setting.treeId.html new file mode 100644 index 0000000..819743e --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/setting.treeId.html @@ -0,0 +1,14 @@ +
                +
                +

                Stringsetting.treeId

                +

                概述[ 依赖 jquery.ztree.core 核心 js ]

                +
                +

                +
                +

                zTree 的唯一标识,初始化后,等于 用户定义的 zTree 容器的 id 属性值。

                +

                请勿进行初始化 或 修改,属于内部参数。

                +
                +
                + +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/setting.treeObj.html b/alive-admin/src/main/resources/static/ztree/api/cn/setting.treeObj.html new file mode 100644 index 0000000..37684a1 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/setting.treeObj.html @@ -0,0 +1,14 @@ +
                +
                +

                Objectsetting.treeObj

                +

                概述[ 依赖 jquery.ztree.core 核心 js ]

                +
                +

                +
                +

                zTree 容器的 jQuery 对象,主要功能:便于操作。

                +

                请勿进行初始化 或 修改,属于内部参数。

                +
                +
                + +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/setting.view.addDiyDom.html b/alive-admin/src/main/resources/static/ztree/api/cn/setting.view.addDiyDom.html new file mode 100644 index 0000000..0a508ac --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/setting.view.addDiyDom.html @@ -0,0 +1,40 @@ +
                +
                +

                Function(treeId, treeNode)setting.view.addDiyDom

                +

                概述[ 依赖 jquery.ztree.core 核心 js ]

                +
                +

                +
                +

                用于在节点上固定显示用户自定义控件

                +

                1. 大数据量的节点加载请注意:在 addDiyDom 中针对每个节点 查找 DOM 对象并且添加新 DOM 控件,肯定会影响初始化性能;如果不是必须使用,建议不使用此功能

                +

                2. 属于高级应用,使用时请确保对 zTree 比较了解。

                +

                默认值:null

                +
                +
                +

                Function 参数说明

                +
                +

                treeIdString

                +

                对应 zTree 的 treeId,便于用户操控

                +

                treeNodeJSON

                +

                需要显示自定义控件的节点 JSON 数据对象

                +
                +

                setting & function 举例

                +

                1. 设置节点后面显示一个按钮

                +
                var setting = {
                +	view: {
                +		addDiyDom: addDiyDom
                +	}
                +};
                +function addDiyDom(treeId, treeNode) {
                +	var aObj = $("#" + treeNode.tId + "_a");
                +	if ($("#diyBtn_"+treeNode.id).length>0) return;
                +	var editStr = "<span id='diyBtn_space_" +treeNode.id+ "' > </span>"
                +		+ "<button type='button' class='diyBtn1' id='diyBtn_" + treeNode.id
                +		+ "' title='"+treeNode.name+"' onfocus='this.blur();'></button>";
                +	aObj.append(editStr);
                +	var btn = $("#diyBtn_"+treeNode.id);
                +	if (btn) btn.bind("click", function(){alert("diy Button for " + treeNode.name);});
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/setting.view.addHoverDom.html b/alive-admin/src/main/resources/static/ztree/api/cn/setting.view.addHoverDom.html new file mode 100644 index 0000000..f073e79 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/setting.view.addHoverDom.html @@ -0,0 +1,45 @@ +
                +
                +

                Function(treeId, treeNode)setting.view.addHoverDom

                +

                概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                +
                +

                +
                +

                用于当鼠标移动到节点上时,显示用户自定义控件,显示隐藏状态同 zTree 内部的编辑、删除按钮

                +

                请务必与 setting.view.removeHoverDom 同时使用;属于高级应用,使用时请确保对 zTree 比较了解。

                +

                默认值:null

                +
                +
                +

                Function 参数说明

                +
                +

                treeIdString

                +

                对应 zTree 的 treeId,便于用户操控

                +

                treeNodeJSON

                +

                需要显示自定义控件的节点 JSON 数据对象

                +
                +

                setting & function 举例

                +

                1. 设置鼠标移到节点上,在后面显示一个按钮

                +
                var setting = {
                +	view: {
                +		addHoverDom: addHoverDom,
                +		removeHoverDom: removeHoverDom,
                +		......
                +	}
                +};
                +function addHoverDom(treeId, treeNode) {
                +	var aObj = $("#" + treeNode.tId + "_a");
                +	if ($("#diyBtn_"+treeNode.id).length>0) return;
                +	var editStr = "<span id='diyBtn_space_" +treeNode.id+ "' > </span>"
                +		+ "<button type='button' class='diyBtn1' id='diyBtn_" + treeNode.id
                +		+ "' title='"+treeNode.name+"' onfocus='this.blur();'></button>";
                +	aObj.append(editStr);
                +	var btn = $("#diyBtn_"+treeNode.id);
                +	if (btn) btn.bind("click", function(){alert("diy Button for " + treeNode.name);});
                +};
                +function removeHoverDom(treeId, treeNode) {
                +	$("#diyBtn_"+treeNode.id).unbind().remove();
                +	$("#diyBtn_space_" +treeNode.id).unbind().remove();
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/setting.view.autoCancelSelected.html b/alive-admin/src/main/resources/static/ztree/api/cn/setting.view.autoCancelSelected.html new file mode 100644 index 0000000..aff1078 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/setting.view.autoCancelSelected.html @@ -0,0 +1,26 @@ +
                +
                +

                Booleansetting.view.autoCancelSelected

                +

                概述[ 依赖 jquery.ztree.core 核心 js ]

                +
                +

                +
                +

                点击节点时,按下 Ctrl 键是否允许取消选择操作。

                +

                如果不需要此功能,请设置为 false。

                +

                默认值: true

                +
                +
                +

                Boolean 格式说明

                +
                +

                true / false 分别表示 支持 / 不支持 配合 Ctrl 键进行取消节点选择的操作

                +
                +

                setting 举例

                +

                1. 禁止配合 Ctrl 键进行取消节点选择的操作

                +
                var setting = {
                +	view: {
                +		autoCancelSelected: false
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/setting.view.dblClickExpand.html b/alive-admin/src/main/resources/static/ztree/api/cn/setting.view.dblClickExpand.html new file mode 100644 index 0000000..5f3db96 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/setting.view.dblClickExpand.html @@ -0,0 +1,44 @@ +
                +
                +

                Boolean / Function(treeId, treeNode)setting.view.dblClickExpand

                +

                概述[ 依赖 jquery.ztree.core 核心 js ]

                +
                +

                +
                +

                双击节点时,是否自动展开父节点的标识

                +

                默认值: true

                +
                +
                +

                Boolean 格式说明

                +
                +

                true / false 分别表示双击节点 切换 / 不切换 展开状态

                +
                +

                Function 参数说明

                +
                +

                treeIdString

                +

                对应 zTree 的 treeId,便于用户操控

                +

                treeNodeJSON

                +

                需要设置是否双击切换展开状态的节点 JSON 数据对象

                +

                返回值Boolean

                +

                返回值同 Boolean 格式的数据

                +
                +

                setting 举例

                +

                1. 取消默认双击展开父节点的功能

                +
                var setting = {
                +	view: {
                +		dblClickExpand: false
                +	}
                +};
                +......
                +

                2. 设置 zTree 仅仅 level=0 的父节点取消双击展开的功能

                +
                function dblClickExpand(treeId, treeNode) {
                +	return treeNode.level > 0;
                +};
                +var setting = {
                +	view: {
                +		dblClickExpand: dblClickExpand
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/setting.view.expandSpeed.html b/alive-admin/src/main/resources/static/ztree/api/cn/setting.view.expandSpeed.html new file mode 100644 index 0000000..3b799c3 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/setting.view.expandSpeed.html @@ -0,0 +1,31 @@ +
                +
                +

                String / Numbersetting.view.expandSpeed

                +

                概述[ 依赖 jquery.ztree.core 核心 js ]

                +
                +

                +
                +

                zTree 节点展开、折叠时的动画速度,设置方法同 JQuery 动画效果中 speed 参数。

                +

                IE6 下会自动关闭动画效果,以保证 zTree 的操作速度

                +

                默认值:"fast"

                +
                +
                +

                String 格式说明

                +
                +

                三种预定速度之一的字符串("slow", "normal", or "fast")

                +

                设置为 "" 时,不显示动画效果

                +
                +

                Number 格式说明

                +
                +

                表示动画时长的毫秒数值 (如:1000)

                +
                +

                setting 举例

                +

                1. 设置为慢速显示动画效果

                +
                var setting = {
                +	view: {
                +		expandSpeed: "slow"
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/setting.view.fontCss.html b/alive-admin/src/main/resources/static/ztree/api/cn/setting.view.fontCss.html new file mode 100644 index 0000000..54efb1b --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/setting.view.fontCss.html @@ -0,0 +1,42 @@ +
                +
                +

                JSON / Function(treeId, treeNode)setting.view.fontCss

                +

                概述[ 依赖 jquery.ztree.core 核心 js ]

                +
                +

                +
                +

                个性化文字样式,只针对 zTree 在节点上显示的<A>对象。

                +

                默认值:{}

                +
                +
                +

                JSON 格式说明

                +
                +

                JSON 格式为 JQuery css方法中的 JSON 对象格式,例如:{color:"#ff0011", background:"blue"}

                +
                +

                Function 参数说明

                +
                +

                treeIdString

                +

                对应 zTree 的 treeId,便于用户操控

                +

                treeNodeJSON

                +

                需要设置自定义样式的节点 JSON 数据对象

                +

                返回值JSON

                +

                返回值同 JSON 格式的数据,例如:{color:"#ff0011", background:"blue"}

                +
                +

                setting & function 举例

                +

                1. 不修改CSS,设置全部节点 name 显示为红色

                +
                var setting = {
                +	view: {
                +		fontCss : {color:"red"}
                +	}
                +};
                +

                2. 设置 level=0 的节点 name 显示为红色

                +
                function setFontCss(treeId, treeNode) {
                +	return treeNode.level == 0 ? {color:"red"} : {};
                +};
                +var setting = {
                +	view: {
                +		fontCss: setFontCss
                +	}
                +};
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/setting.view.nameIsHTML.html b/alive-admin/src/main/resources/static/ztree/api/cn/setting.view.nameIsHTML.html new file mode 100644 index 0000000..a1d916c --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/setting.view.nameIsHTML.html @@ -0,0 +1,27 @@ +
                +
                +

                Booleansetting.view.nameIsHTML

                +

                概述[ 依赖 jquery.ztree.core 核心 js ]

                +
                +

                +
                +

                设置 name 属性是否支持 HTML 脚本

                +

                如果允许 HTML 脚本,请根据自己的需求做校验,避免出现 js 注入等安全问题。

                +

                默认值: false

                +
                +
                +

                Boolean 格式说明

                +
                +

                true / false 分别表示 支持 / 不支持 HTML 脚本

                +
                +

                setting 举例

                +

                1. 设置 name 属性支持 HTML 脚本

                +
                var setting = {
                +	view: {
                +		nameIsHTML: true
                +	}
                +};
                +var node = {"name":"<font color='red'>test</font>"};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/setting.view.removeHoverDom.html b/alive-admin/src/main/resources/static/ztree/api/cn/setting.view.removeHoverDom.html new file mode 100644 index 0000000..bb1a9aa --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/setting.view.removeHoverDom.html @@ -0,0 +1,45 @@ +
                +
                +

                Function(treeId, treeNode)setting.view.removeHoverDom

                +

                概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                +
                +

                +
                +

                用于当鼠标移出节点时,隐藏用户自定义控件,显示隐藏状态同 zTree 内部的编辑、删除按钮

                +

                请务必与 addHoverDom 同时使用;属于高级应用,使用时请确保对 zTree 比较了解。

                +

                默认值:null

                +
                +
                +

                Function 参数说明

                +
                +

                treeIdString

                +

                对应 zTree 的 treeId,便于用户操控

                +

                treeNodeJSON

                +

                需要隐藏自定义控件的节点 JSON 数据对象

                +
                +

                setting & function 举例

                +

                1. 设置鼠标移到节点上,在后面显示一个按钮

                +
                var setting = {
                +	view: {
                +		addHoverDom: addHoverDom,
                +		removeHoverDom: removeHoverDom,
                +		......
                +	}
                +};
                +function addHoverDom(treeId, treeNode) {
                +	var aObj = $("#" + treeNode.tId + "_a");
                +	if ($("#diyBtn_"+treeNode.id).length>0) return;
                +	var editStr = "<span id='diyBtn_space_" +treeNode.id+ "' > </span>"
                +		+ "<button type='button' class='diyBtn1' id='diyBtn_" + treeNode.id
                +		+ "' title='"+treeNode.name+"' onfocus='this.blur();'></button>";
                +	aObj.append(editStr);
                +	var btn = $("#diyBtn_"+treeNode.id);
                +	if (btn) btn.bind("click", function(){alert("diy Button for " + treeNode.name);});
                +};
                +function removeHoverDom(treeId, treeNode) {
                +	$("#diyBtn_"+treeNode.id).unbind().remove();
                +	$("#diyBtn_space_" +treeNode.id).unbind().remove();
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/setting.view.selectedMulti.html b/alive-admin/src/main/resources/static/ztree/api/cn/setting.view.selectedMulti.html new file mode 100644 index 0000000..d73820d --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/setting.view.selectedMulti.html @@ -0,0 +1,27 @@ +
                +
                +

                Booleansetting.view.selectedMulti

                +

                概述[ 依赖 jquery.ztree.core 核心 js ]

                +
                +

                +
                +

                设置是否允许同时选中多个节点。

                +

                默认值: true

                +
                +
                +

                Boolean 格式说明

                +
                +

                true / false 分别表示 支持 / 不支持 同时选中多个节点

                +

                1、设置为 true时,按下 Ctrl 键可以选中多个节点

                +

                2、设置为 true / false 都不影响按下 Ctrl 键可以让已选中的节点取消选中状态( 取消选中状态可以参考 setting.view.autoCancelSelected )

                +
                +

                setting 举例

                +

                1. 禁止多点同时选中的功能

                +
                var setting = {
                +	view: {
                +		selectedMulti: false
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/setting.view.showIcon.html b/alive-admin/src/main/resources/static/ztree/api/cn/setting.view.showIcon.html new file mode 100644 index 0000000..ebe423c --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/setting.view.showIcon.html @@ -0,0 +1,44 @@ +
                +
                +

                Boolean / Function(treeId, treeNode)setting.view.showIcon

                +

                概述[ 依赖 jquery.ztree.core 核心 js ]

                +
                +

                +
                +

                设置 zTree 是否显示节点的图标。

                +

                默认值:true

                +
                +
                +

                Boolean 格式说明

                +
                +

                true / false 分别表示 显示 / 隐藏 图标

                +
                +

                Function 参数说明

                +
                +

                treeIdString

                +

                对应 zTree 的 treeId,便于用户操控

                +

                treeNodeJSON

                +

                需要设置是否显示图标的节点 JSON 数据对象

                +

                返回值Boolean

                +

                返回值同 Boolean 格式的数据

                +
                +

                setting & function 举例

                +

                1. 设置 zTree 不显示图标

                +
                var setting = {
                +	view: {
                +		showIcon: false
                +	}
                +};
                +......
                +

                2. 设置 zTree 仅仅 level=2 的节点不显示图标

                +
                function showIconForTree(treeId, treeNode) {
                +	return treeNode.level != 2;
                +};
                +var setting = {
                +	view: {
                +		showIcon: showIconForTree
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/setting.view.showLine.html b/alive-admin/src/main/resources/static/ztree/api/cn/setting.view.showLine.html new file mode 100644 index 0000000..02ab5eb --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/setting.view.showLine.html @@ -0,0 +1,25 @@ +
                +
                +

                Booleansetting.view.showLine

                +

                概述[ 依赖 jquery.ztree.core 核心 js ]

                +
                +

                +
                +

                设置 zTree 是否显示节点之间的连线。

                +

                默认值:true

                +
                +
                +

                Boolean 格式说明

                +
                +

                true / false 分别表示 显示 / 不显示 连线

                +
                +

                setting 举例

                +

                1. 设置 zTree 不显示节点之间的连线

                +
                var setting = {
                +	view: {
                +		showLine: false
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/setting.view.showTitle.html b/alive-admin/src/main/resources/static/ztree/api/cn/setting.view.showTitle.html new file mode 100644 index 0000000..5bcb860 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/setting.view.showTitle.html @@ -0,0 +1,46 @@ +
                +
                +

                Boolean / Function(treeId, treeNode)setting.view.showTitle

                +

                概述[ 依赖 jquery.ztree.core 核心 js ]

                +
                +

                +
                +

                设置 zTree 是否显示节点的 title 提示信息(即节点 DOM 的 title 属性)。

                +

                请务必与 setting.data.key.title 同时使用。

                +

                默认值:true

                +
                +
                +

                Boolean 格式说明

                +
                +

                true / false 分别表示 显示 / 隐藏 提示信息

                +

                如果 setting.view.showTitle = true & setting.data.key.title = '',zTree 会自动使用 setting.data.key.name 指定的节点名称当做 title

                +
                +

                Function 参数说明

                +
                +

                treeIdString

                +

                对应 zTree 的 treeId,便于用户操控

                +

                treeNodeJSON

                +

                需要设置是否显示提示信息的节点 JSON 数据对象

                +

                返回值Boolean

                +

                返回值同 Boolean 格式的数据

                +
                +

                setting & function 举例

                +

                1. 设置 zTree 不显示提示信息

                +
                var setting = {
                +	view: {
                +		showTitle: false
                +	}
                +};
                +......
                +

                2. 设置 zTree 仅仅 level=2 的节点不显示提示信息

                +
                function showTitleForTree(treeId, treeNode) {
                +	return treeNode.level != 2;
                +};
                +var setting = {
                +	view: {
                +		showTitle: showTitleForTree
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.check_Child_State.html b/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.check_Child_State.html new file mode 100644 index 0000000..fa37899 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.check_Child_State.html @@ -0,0 +1,43 @@ +
                +
                +

                NumbertreeNode.check_Child_State

                +

                概述[ 依赖 jquery.ztree.excheck 扩展 js ]

                +
                +

                +
                +

                用于设置节点的子节点的 checkBox / radio 的半选状态。[setting.check.enable = true 时有效]

                +

                v3.x 针对节点数据对象提供 treeNode.getCheckStatus() 方法获取标准的半选状态

                +

                zTree 内部使用,请勿进行初始化 或 随意修改

                +

                默认值:true

                +
                +
                +

                Number 格式说明

                +
                +

                规则如下:

                + + + + + + + + + + + +
                setting.check.checkType = "checkbox"
                treeNode.check_Child_State勾选状态说明
                -1不存在子节点 或 子节点全部设置为 nocheck = true
                0无 子节点被勾选
                1部分 子节点被勾选
                2全部 子节点被勾选
                +
                + + + + + + + + + + +
                setting.check.checkType = "radio"
                treeNode.check_Child_State勾选状态说明
                -1不存在子节点 或 子节点全部设置为 nocheck = true
                0无 子节点被勾选
                2有 子节点被勾选
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.check_Focus.html b/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.check_Focus.html new file mode 100644 index 0000000..785aec9 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.check_Focus.html @@ -0,0 +1,19 @@ +
                +
                +

                BooleantreeNode.check_Focus

                +

                概述[ 依赖 jquery.ztree.excheck 扩展 js ]

                +
                +

                +
                +

                用于设置节点的 checkBox / radio 的 focus 状态。[setting.check.enable = true 时有效]

                +

                zTree 内部使用,请勿进行初始化 或 随意修改

                +

                默认值:false

                +
                +
                +

                Boolean 格式说明

                +
                +

                true 表示当前鼠标移动到输入框内

                +

                false 表示当前鼠标移动到输入框外

                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.checked.html b/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.checked.html new file mode 100644 index 0000000..049d6ba --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.checked.html @@ -0,0 +1,32 @@ +
                +
                +

                BooleantreeNode.checked

                +

                概述[ 依赖 jquery.ztree.excheck 扩展 js ]

                +
                +

                +
                +

                节点的 checkBox / radio 的 勾选状态。[setting.check.enable = true & treeNode.nocheck = false 时有效]

                +

                1、如果不使用 checked 属性设置勾选状态,请修改 setting.data.key.checked

                +

                2、建立 treeNode 数据时设置 treeNode.checked = true 可以让节点的输入框默认为勾选状态

                +

                3、修改节点勾选状态,可以使用 treeObj.checkNode / checkAllNodes / updateNode 方法,具体使用哪种请根据自己的需求而定

                +

                4、为了解决部分朋友生成 json 数据出现的兼容问题, 支持 "false","true" 字符串格式的数据

                +

                默认值:false

                +
                +
                +

                Boolean 格式说明

                +
                +

                true 表示节点的输入框被勾选

                +

                false 表示节点的输入框未勾选

                +
                +

                treeNode 举例

                +

                1. 初始化的数据设置 默认为勾选状态

                +
                var nodes = [
                +{ "id":1, "name":"test1", checked:true },
                +{ "id":2, "name":"test2", checked:true }
                +]
                +

                2. 获取第一个根节点的勾选状态

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var checked = treeObj.getNodes()[0].checked;
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.checkedOld.html b/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.checkedOld.html new file mode 100644 index 0000000..cab717e --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.checkedOld.html @@ -0,0 +1,25 @@ +
                +
                +

                BooleantreeNode.checkedOld

                +

                概述[ 依赖 jquery.ztree.excheck 扩展 js ]

                +
                +

                +
                +

                节点的 checkBox / radio 在初始化时的 勾选状态。[setting.check.enable = true & treeNode.nocheck = false 时有效]

                +

                1、zTree 初始化节点数据时会对此属性进行赋值,因此请勿对此属性初始化

                +

                2、如需配合 zTreeObj.getChangeCheckedNodes 方法实现特殊功能,可以根据需求在使用中自行修改 checkedOld 数据

                +

                默认值:checked的初始化值

                +
                +
                +

                Boolean 格式说明

                +
                +

                true 表示节点初始化时 输入框被勾选

                +

                false 表示节点初始化时 输入框未勾选

                +
                +

                treeNode 举例

                +

                1. 获取第一个根节点的初始勾选状态

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var checkedOld = treeObj.getNodes()[0].checkedOld;
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.children.html b/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.children.html new file mode 100644 index 0000000..4bab835 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.children.html @@ -0,0 +1,35 @@ +
                +
                +

                Array(JSON)treeNode.children

                +

                概述[ 依赖 jquery.ztree.core 核心 js ]

                +
                +

                +
                +

                节点的子节点数据集合。

                +

                1、如果不使用 children 属性保存子节点数据,请修改 setting.data.key.children

                +

                2、异步加载时,对于设置了 isParent = true 的节点,在展开时将进行异步加载

                +

                默认值:无

                +
                +
                +

                Array(JSON) 格式说明

                +
                +

                标准的 JSON 数据对象

                +
                +

                treeNode 举例

                +

                1. 初始化的标准嵌套格式的 JSON 数据对象

                +
                var nodes = [
                +{ "id":1, "name":"test1",
                +	children: [
                +	{ "id":3, "name":"test3"},
                +	{ "id":4, "name":"test4"},
                +	{ "id":5, "name":"test5"}
                +	]
                +},
                +{ "id":2, "name":"test2"  }
                +]
                +

                2. 获取第一个根节点的子节点

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var nodes = treeObj.getNodes()[0].children;
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.chkDisabled.html b/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.chkDisabled.html new file mode 100644 index 0000000..84aaea2 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.chkDisabled.html @@ -0,0 +1,28 @@ +
                +
                +

                BooleantreeNode.chkDisabled

                +

                概述[ 依赖 jquery.ztree.excheck 扩展 js ]

                +
                +

                +
                +

                1、设置节点的 checkbox / radio 是否禁用 [setting.check.enable = true 时有效]

                +

                2、为了解决部分朋友生成 json 数据出现的兼容问题, 支持 "false","true" 字符串格式的数据

                +

                3、请勿对已加载的节点修改此属性,禁止 或 取消禁止 请使用 setChkDisabled() 方法

                +

                4、父节点被禁用后,其全部的子孙节点也会被禁用

                +

                默认值:false

                +
                +
                +

                Boolean 格式说明

                +
                +

                true 表示此节点的 checkbox / radio 被禁用。

                +

                false 表示此节点的 checkbox / radio 可以使用。

                +
                +

                treeNode 举例

                +

                1. 禁用节点 checkbox / radio

                +
                var nodes = [
                +	{ "id":1, "name":"test1", "checked":true, "chkDisabled":true},
                +	{ "id":2, "name":"test2", "chkDisabled":true},
                +	{ "id":3, "name":"test3"}
                +]
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.click.html b/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.click.html new file mode 100644 index 0000000..833c678 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.click.html @@ -0,0 +1,24 @@ +
                +
                +

                StringtreeNode.click

                +

                概述[ 依赖 jquery.ztree.core 核心 js ]

                +
                +

                +
                +

                最简单的 click 事件操作。相当于 onclick="..." 的内容。 如果操作较复杂,请使用 onClick 事件回调函数。

                +

                由于 IE 对于 onclick 和 click事件共存时的处理与其他浏览器不同,所以请不要利用此参数控制是否允许跳转的操作(例如:treeNode.click = "return false;")。如有类似需求,请不要使用 url 属性设置网址,同时利用 onClick 回调函数控制跳转。

                +

                默认值:无

                +
                +
                +

                String 格式说明

                +
                +

                标准 javascript 语法, 例如:alert("test"); 等

                +
                +

                treeNode 举例

                +

                1. 设置某节点点击时,弹出信息框

                +
                var nodes = [
                +	{ "id":1, "name":"Google CN", "url":"http://g.cn", "click":"alert('test');"},
                +	......
                +]
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.diy.html b/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.diy.html new file mode 100644 index 0000000..b2fb0d9 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.diy.html @@ -0,0 +1,15 @@ +
                +
                +

                ?treeNode.* DIY *

                +

                概述[ 依赖 jquery.ztree.core 核心 js ]

                +
                +

                +
                +

                用于保存节点的其他自定义数据信息,不要与 zTree 使用的属性相同即可,用户可随意设定。

                +
                +
                +

                treeNode 举例

                +

                1. 设置节点的备用英文名称

                +
                var node = { "id":1, "name":"test1", "ename":"test eName"};
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.editNameFlag.html b/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.editNameFlag.html new file mode 100644 index 0000000..51162b8 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.editNameFlag.html @@ -0,0 +1,19 @@ +
                +
                +

                BooleantreeNode.editNameFlag

                +

                概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                +
                +

                +
                +

                用于记录节点是否处于编辑名称状态。[setting.edit.enable = true 时有效]

                +

                zTree 内部使用,请勿进行初始化 或 随意修改

                +

                默认值:false

                +
                +
                +

                Boolean 格式说明

                +
                +

                true 表示节点处于编辑名称状态

                +

                false 表示节点未处于编辑名称状态

                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.getCheckStatus.html b/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.getCheckStatus.html new file mode 100644 index 0000000..fc20eac --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.getCheckStatus.html @@ -0,0 +1,63 @@ +
                +
                +

                Function()treeNode.getCheckStatus

                +

                概述[ 依赖 jquery.ztree.excheck 扩展 js ]

                +
                +

                +
                +

                获取节点 checkbox / radio 半勾选状态。[setting.check.enable = true 时有效]

                +

                初始化节点数据时,由 zTree 增加此属性,请勿提前赋值

                +
                +
                +

                Function 参数说明

                +
                +

                返回值JSON

                +
                {
                +	checked: true, //等同于 treeNode.checked
                +	half: true  //规则见下表
                +}
                + + + + + + + + + + + + + + + + + + +
                setting.check.checkType = "checkbox"
                treeNode.checkedtreeNode.check_Child_StatetreeNode.halfCheck half
                --truetrue
                 
                true-1falsefalse
                true0falsetrue
                true1falsetrue
                true2falsefalse
                 
                false-1falsefalse
                false0falsefalse
                false1falsetrue
                false2falsetrue
                +
                + + + + + + + + + + + + + + + + +
                setting.check.checkType = "radio"
                treeNode.checkedtreeNode.check_Child_StatetreeNode.halfCheck half
                --truetrue
                 
                true-1falsefalse
                true0falsefalse
                true2falsetrue
                 
                false-1falsefalse
                false0falsefalse
                false2falsetrue
                +
                +

                treeNode 举例

                +

                1. 获取第一个根节点的半选状态

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var halfCheck = treeObj.getNodes()[0].getCheckStatus();
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.getNextNode.html b/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.getNextNode.html new file mode 100644 index 0000000..7a0fa5c --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.getNextNode.html @@ -0,0 +1,27 @@ +
                +
                +

                Function()treeNode.getNextNode

                +

                概述[ 依赖 jquery.ztree.core 核心 js ]

                +
                +

                +
                +

                获取与 treeNode 节点相邻的后一个节点。

                +

                初始化节点数据时,由 zTree 增加此属性,请勿提前赋值

                +
                +
                +

                Function 参数说明

                +
                +

                返回值JSON

                +

                与 treeNode 节点相邻的后一个节点。

                +

                如果 treeNode 是最后一个节点,返回 null 。

                +
                +

                treeNode 举例

                +

                1. 获取当前被选中的节点的下一个节点

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var sNodes = treeObj.getSelectedNodes();
                +if (sNodes.length > 0) {
                +	var node = sNodes[0].getNextNode();
                +}
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.getParentNode.html b/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.getParentNode.html new file mode 100644 index 0000000..31309a6 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.getParentNode.html @@ -0,0 +1,27 @@ +
                +
                +

                Function()treeNode.getParentNode

                +

                概述[ 依赖 jquery.ztree.core 核心 js ]

                +
                +

                +
                +

                获取 treeNode 节点的父节点。

                +

                初始化节点数据时,由 zTree 增加此属性,请勿提前赋值

                +
                +
                +

                Function 参数说明

                +
                +

                返回值JSON

                +

                treeNode 节点的父节点 JSON 数据对象。

                +

                如果 treeNode 是根节点,返回 null 。

                +
                +

                treeNode 举例

                +

                1. 获取当前被选中的节点的父节点

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var sNodes = treeObj.getSelectedNodes();
                +if (sNodes.length > 0) {
                +	var node = sNodes[0].getParentNode();
                +}
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.getPreNode.html b/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.getPreNode.html new file mode 100644 index 0000000..9d84184 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.getPreNode.html @@ -0,0 +1,27 @@ +
                +
                +

                Function()treeNode.getPreNode

                +

                概述[ 依赖 jquery.ztree.core 核心 js ]

                +
                +

                +
                +

                获取与 treeNode 节点相邻的前一个节点。

                +

                初始化节点数据时,由 zTree 增加此属性,请勿提前赋值

                +
                +
                +

                Function 参数说明

                +
                +

                返回值JSON

                +

                与 treeNode 节点相邻的前一个节点。

                +

                如果 treeNode 是第一个节点,返回 null 。

                +
                +

                treeNode 举例

                +

                1. 获取当前被选中的节点的前一个节点

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var sNodes = treeObj.getSelectedNodes();
                +if (sNodes.length > 0) {
                +	var node = sNodes[0].getPreNode();
                +}
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.halfCheck.html b/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.halfCheck.html new file mode 100644 index 0000000..23ac744 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.halfCheck.html @@ -0,0 +1,29 @@ +
                +
                +

                BooleantreeNode.halfCheck

                +

                概述[ 依赖 jquery.ztree.excheck 扩展 js ]

                +
                +

                +
                +

                强制节点的 checkBox / radio 的 半勾选状态。[setting.check.enable = true & treeNode.nocheck = false 时有效]

                +

                1、强制为半勾选状态后,不再进行自动计算半勾选状态

                +

                2、设置 treeNode.halfCheck = false 或 null 才能恢复自动计算半勾选状态

                +

                3、为了解决部分朋友生成 json 数据出现的兼容问题, 支持 "false","true" 字符串格式的数据

                +

                默认值:false

                +
                +
                +

                Boolean 格式说明

                +
                +

                true 表示节点的输入框 强行设置为半勾选

                +

                false 表示节点的输入框 根据 zTree 的规则自动计算半勾选状态

                +
                +

                treeNode 举例

                +

                1. 初始化的数据设置 默认为半勾选状态

                +
                var nodes = [
                +{ "id":1, "name":"test1", isParent:true, checked:true, halfCheck:true },
                +{ "id":2, "name":"test2", isParent:true, checked:false, halfCheck:true },
                +{ "id":3, "name":"test3", isParent:true, checked:true },
                +{ "id":4, "name":"test4", isParent:true, checked:false }
                +]
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.icon.html b/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.icon.html new file mode 100644 index 0000000..69c5db1 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.icon.html @@ -0,0 +1,33 @@ +
                +
                +

                StringtreeNode.icon

                +

                概述[ 依赖 jquery.ztree.core 核心 js ]

                +
                +

                +
                +

                节点自定义图标的 URL 路径。

                +

                1、父节点如果只设置 icon ,会导致展开、折叠时都使用同一个图标

                +

                2、父节点展开、折叠使用不同的个性化图标需要同时设置 treeNode.iconOpen / treeNode.iconClose 两个属性

                +

                3、如果想利用 className 设置个性化图标,需要设置 treeNode.iconSkin 属性

                +

                默认值:无

                +
                +
                +

                String 格式说明

                +
                +

                图标图片的 url 可以是相对路径也可以是绝对路径

                +

                设置相对路径请注意页面与图片之间的关系,确保图片能够正常加载

                +
                +

                treeNode 举例

                +

                1. 设置节点的个性化图标

                +
                var nodes = [
                +	//父节点展开 折叠时使用相同的图标
                +	{ name:"父节点1", icon:"/img/parent.gif"},
                +
                +	//父节点展开 折叠时分别使用不同的图标
                +	{ name:"父节点2", iconOpen:"/img/open.gif", iconClose:"/img/close.gif"}, 
                +
                +	//叶子节点个性化图标
                +	{ name:"叶子节点", icon:"/img/leaf.gif"}
                +]
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.iconClose.html b/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.iconClose.html new file mode 100644 index 0000000..f51da9c --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.iconClose.html @@ -0,0 +1,33 @@ +
                +
                +

                StringtreeNode.iconClose

                +

                概述[ 依赖 jquery.ztree.core 核心 js ]

                +
                +

                +
                +

                父节点自定义折叠时图标的 URL 路径。

                +

                1、此属性只针对父节点有效

                +

                2、此属性必须与 iconOpen 同时使用

                +

                3、如果想利用 className 设置个性化图标,需要设置 treeNode.iconSkin 属性

                +

                默认值:无

                +
                +
                +

                String 格式说明

                +
                +

                图标图片的 url 可以是相对路径也可以是绝对路径

                +

                设置相对路径请注意页面与图片之间的关系,确保图片能够正常加载

                +
                +

                treeNode 举例

                +

                1. 设置节点的个性化图标

                +
                var nodes = [
                +	//父节点展开 折叠时使用相同的图标
                +	{ name:"父节点1", icon:"/img/parent.gif"},
                +
                +	//父节点展开 折叠时分别使用不同的图标
                +	{ name:"父节点2", iconOpen:"/img/open.gif", iconClose:"/img/close.gif"}, 
                +
                +	//叶子节点个性化图标
                +	{ name:"叶子节点", icon:"/img/leaf.gif"}
                +]
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.iconOpen.html b/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.iconOpen.html new file mode 100644 index 0000000..29c9baa --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.iconOpen.html @@ -0,0 +1,33 @@ +
                +
                +

                StringtreeNode.iconOpen

                +

                概述[ 依赖 jquery.ztree.core 核心 js ]

                +
                +

                +
                +

                父节点自定义展开时图标的 URL 路径。

                +

                1、此属性只针对父节点有效

                +

                2、此属性必须与 iconClose 同时使用

                +

                3、如果想利用 className 设置个性化图标,需要设置 treeNode.iconSkin 属性

                +

                默认值:无

                +
                +
                +

                String 格式说明

                +
                +

                图标图片的 url 可以是相对路径也可以是绝对路径

                +

                设置相对路径请注意页面与图片之间的关系,确保图片能够正常加载

                +
                +

                treeNode 举例

                +

                1. 设置节点的个性化图标

                +
                var nodes = [
                +	//父节点展开 折叠时使用相同的图标
                +	{ name:"父节点1", icon:"/img/parent.gif"},
                +
                +	//父节点展开 折叠时分别使用不同的图标
                +	{ name:"父节点2", iconOpen:"/img/open.gif", iconClose:"/img/close.gif"}, 
                +
                +	//叶子节点个性化图标
                +	{ name:"叶子节点", icon:"/img/leaf.gif"}
                +]
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.iconSkin.html b/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.iconSkin.html new file mode 100644 index 0000000..d5d9726 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.iconSkin.html @@ -0,0 +1,43 @@ +
                +
                +

                StringtreeNode.iconSkin

                +

                概述[ 依赖 jquery.ztree.core 核心 js ]

                +
                +

                +
                +

                节点自定义图标的 className

                +

                1、需要修改 css,增加相应 className 的设置

                +

                2、css 方式简单、方便,并且同时支持父节点展开、折叠状态切换图片

                +

                3、css 建议采用图片分割渲染的方式以减少反复加载图片,并且避免图片闪动

                +

                4、zTree v3.x 的 iconSkin 同样支持 IE6

                +

                5、如果想直接使用 图片的Url路径 设置节点的个性化图标,需要设置 treeNode.icon / treeNode.iconOpen / treeNode.iconClose 属性

                +

                默认值:无

                +
                +
                +

                String 格式说明

                +
                +

                设置个性图标的 className

                +
                +

                css & treeNode 举例

                +

                1. 设置节点的个性化图标

                +
                css 内容:
                +.ztree li span.button.diy01_ico_open, .ztree li span.button.diy01_ico_close{...}
                +
                +.ztree li span.button.diy02_ico_open{...}
                +.ztree li span.button.diy02_ico_close{...}
                +
                +.ztree li span.button.diy03_ico_docu{...}
                +
                +js中节点数据:
                +var nodes = [
                +	//父节点展开 折叠时使用相同的图标
                +	{ name:"父节点1", iconSkin:"diy01"},
                +
                +	//父节点展开 折叠时分别使用不同的图标
                +	{ name:"父节点2", iconSkin:"diy02"},
                +
                +	//叶子节点个性化图标
                +	{ name:"叶子节点", iconSkin:"diy03"}
                +]
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.isAjaxing.html b/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.isAjaxing.html new file mode 100644 index 0000000..330c120 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.isAjaxing.html @@ -0,0 +1,26 @@ +
                +
                +

                BooleantreeNode.isAjaxing

                +

                概述[ 依赖 jquery.ztree.core 核心 js ]

                +
                +

                +
                +

                记录 treeNode 节点是否正在进行异步加载。

                +

                初始化节点数据时,由 zTree 增加此属性,请勿提前赋值

                +
                +
                +

                Boolean 格式说明

                +
                +

                true 表示节点正在进行异步加载

                +

                false 表示节点没有进行异步加载

                +
                +

                treeNode 举例

                +

                1. 查看当前被选中的节点是否节点正在进行异步加载

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var sNodes = treeObj.getSelectedNodes();
                +if (sNodes.length > 0) {
                +	var isAjaxing = sNodes[0].isAjaxing;
                +}
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.isFirstNode.html b/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.isFirstNode.html new file mode 100644 index 0000000..83b80bd --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.isFirstNode.html @@ -0,0 +1,28 @@ +
                +
                +

                BooleantreeNode.isFirstNode

                +

                概述[ 依赖 jquery.ztree.core 核心 js ]

                +
                +

                +
                +

                记录 treeNode 节点是否为同级节点中的第一个节点。

                +

                使用 exhide 扩展后,只针对显示的节点设置此属性

                +

                初始化节点数据时,由 zTree 增加此属性,请勿提前赋值

                +
                +
                +

                Boolean 格式说明

                +
                +

                true 表示是同级节点中的第一个节点

                +

                false 表示不是同级节点中的第一个节点

                +

                节点被隐藏后,isFirstNode = false

                +
                +

                treeNode 举例

                +

                1. 查看当前被选中的节点是否是同级节点中的第一个节点

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var sNodes = treeObj.getSelectedNodes();
                +if (sNodes.length > 0) {
                +	var isFirstNode = sNodes[0].isFirstNode;
                +}
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.isHidden.html b/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.isHidden.html new file mode 100644 index 0000000..5fb388e --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.isHidden.html @@ -0,0 +1,27 @@ +
                +
                +

                BooleantreeNode.isHidden

                +

                概述[ 依赖 jquery.ztree.exhide 扩展 js ]

                +
                +

                +
                +

                判断 treeNode 节点是否被隐藏。

                +

                1、初始化 zTree 时,如果节点设置 isHidden = true,会被自动隐藏

                +

                2、请勿对已加载的节点修改此属性,隐藏 / 显示 请使用 hideNode() / hideNodes() / showNode() / showNodes() 方法

                +
                +
                +

                Boolean 格式说明

                +
                +

                true 表示被隐藏

                +

                false 表示被显示

                +
                +

                treeNode 举例

                +

                1. 查看第一个根节点是否被隐藏

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var sNodes = treeObj.getNodes();
                +if (sNodes.length > 0) {
                +	var isHidden = sNodes[0].isHidden;
                +}
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.isHover.html b/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.isHover.html new file mode 100644 index 0000000..dcef6eb --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.isHover.html @@ -0,0 +1,19 @@ +
                +
                +

                BooleantreeNode.isHover

                +

                概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                +
                +

                +
                +

                记录节点 的 hover 状态,主要用于 setting.view.addHoverDom / removeHoverDom 。

                +

                zTree 内部使用,请勿进行初始化 或 随意修改

                +

                默认值:false

                +
                +
                +

                Boolean 格式说明

                +
                +

                true 表示节点处于 hover 状态

                +

                false 表示节点未处于 hover 状态

                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.isLastNode.html b/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.isLastNode.html new file mode 100644 index 0000000..5d5ac82 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.isLastNode.html @@ -0,0 +1,28 @@ +
                +
                +

                BooleantreeNode.isLastNode

                +

                概述[ 依赖 jquery.ztree.core 核心 js ]

                +
                +

                +
                +

                记录 treeNode 节点是否为同级节点中的最后一个节点。

                +

                使用 exhide 扩展后,只针对显示的节点设置此属性

                +

                初始化节点数据时,由 zTree 增加此属性,请勿提前赋值

                +
                +
                +

                Boolean 格式说明

                +
                +

                true 表示是同级节点中的最后一个节点

                +

                false 表示不是同级节点中的最后一个节点

                +

                节点被隐藏后,isLastNode = false

                +
                +

                treeNode 举例

                +

                1. 查看当前被选中的节点是否是同级节点中的最后一个节点

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var sNodes = treeObj.getSelectedNodes();
                +if (sNodes.length > 0) {
                +	var isLastNode = sNodes[0].isLastNode;
                +}
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.isParent.html b/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.isParent.html new file mode 100644 index 0000000..bab887e --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.isParent.html @@ -0,0 +1,28 @@ +
                +
                +

                BooleantreeNode.isParent

                +

                概述[ 依赖 jquery.ztree.core 核心 js ]

                +
                +

                +
                +

                记录 treeNode 节点是否为父节点。

                +

                1、初始化节点数据时,根据 treeNode.children 属性判断,有子节点则设置为 true,否则为 false

                +

                2、初始化节点数据时,如果设定 treeNode.isParent = true,即使无子节点数据,也会设置为父节点

                +

                3、为了解决部分朋友生成 json 数据出现的兼容问题, 支持 "false","true" 字符串格式的数据

                +
                +
                +

                Boolean 格式说明

                +
                +

                true 表示是父节点

                +

                false 表示不是父节点

                +
                +

                treeNode 举例

                +

                1. 查看当前被选中的节点是否是父节点

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var sNodes = treeObj.getSelectedNodes();
                +if (sNodes.length > 0) {
                +	var isParent = sNodes[0].isParent;
                +}
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.level.html b/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.level.html new file mode 100644 index 0000000..aff3254 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.level.html @@ -0,0 +1,25 @@ +
                +
                +

                NumbertreeNode.level

                +

                概述[ 依赖 jquery.ztree.core 核心 js ]

                +
                +

                +
                +

                记录节点的层级

                +

                初始化节点数据时,由 zTree 增加此属性,请勿提前赋值

                +
                +
                +

                Number 格式说明

                +
                +

                根节点 level = 0,依次递增

                +
                +

                treeNode 举例

                +

                1. 查看当前被选中的节点的级数

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var sNodes = treeObj.getSelectedNodes();
                +if (sNodes.length > 0) {
                +	var level = sNodes[0].level;
                +}
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.name.html b/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.name.html new file mode 100644 index 0000000..918f2b4 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.name.html @@ -0,0 +1,25 @@ +
                +
                +

                StringtreeNode.name

                +

                概述[ 依赖 jquery.ztree.core 核心 js ]

                +
                +

                +
                +

                节点名称。

                +

                1、如果不使用 name 属性保存节点名称,请修改 setting.data.key.name

                +

                默认值:无

                +
                +
                +

                String 格式说明

                +
                +

                节点显示的名称字符串,标准 String 即可,所有特殊字符都会被自动转义

                +
                +

                treeNode 举例

                +

                1. 设置节点的名称为 test1、test2、test3

                +
                var nodes = [
                +	{ "id":1, "name":"test1"},
                +	{ "id":2, "name":"test2"},
                +	{ "id":3, "name":"test3"}
                +]
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.nocheck.html b/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.nocheck.html new file mode 100644 index 0000000..afaa62f --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.nocheck.html @@ -0,0 +1,26 @@ +
                +
                +

                BooleantreeNode.nocheck

                +

                概述[ 依赖 jquery.ztree.excheck 扩展 js ]

                +
                +

                +
                +

                1、设置节点是否隐藏 checkbox / radio [setting.check.enable = true 时有效]

                +

                2、为了解决部分朋友生成 json 数据出现的兼容问题, 支持 "false","true" 字符串格式的数据

                +

                默认值:false

                +
                +
                +

                Boolean 格式说明

                +
                +

                true 表示此节点不显示 checkbox / radio,不影响勾选的关联关系,不影响父节点的半选状态。

                +

                false 表示节点具有正常的勾选功能

                +
                +

                treeNode 举例

                +

                1. 不显示某个节点的 checkbox / radio

                +
                var nodes = [
                +	{ "id":1, "name":"test1", "nocheck":true},
                +	{ "id":2, "name":"test2"},
                +	{ "id":3, "name":"test3"}
                +]
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.open.html b/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.open.html new file mode 100644 index 0000000..953a551 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.open.html @@ -0,0 +1,29 @@ +
                +
                +

                BooleantreeNode.open

                +

                概述[ 依赖 jquery.ztree.core 核心 js ]

                +
                +

                +
                +

                记录 treeNode 节点的 展开 / 折叠 状态。

                +

                1、初始化节点数据时,如果设定 treeNode.open = true,则会直接展开此节点

                +

                2、叶子节点 treeNode.open = false

                +

                3、为了解决部分朋友生成 json 数据出现的兼容问题, 支持 "false","true" 字符串格式的数据

                +

                默认值:false

                +
                +
                +

                Boolean 格式说明

                +
                +

                true 表示节点为 展开 状态

                +

                false 表示节点为 折叠 状态

                +
                +

                treeNode 举例

                +

                1. 查看当前被选中的节点的 展开 / 折叠 状态

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var sNodes = treeObj.getSelectedNodes();
                +if (sNodes.length > 0) {
                +	var isOpen = sNodes[0].open;
                +}
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.parentTId.html b/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.parentTId.html new file mode 100644 index 0000000..d228a23 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.parentTId.html @@ -0,0 +1,27 @@ +
                +
                +

                StringtreeNode.parentTId

                +

                概述[ 依赖 jquery.ztree.core 核心 js ]

                +
                +

                +
                +

                treeNode 节点的父节点唯一标识 tId。

                +

                1、v3.x 用 parentTId 替换了原先的 parentNode 属性,同时增加了 getParentNode 方法,以避免原先 parentNode 造成的 clone 死循环

                +

                2、初始化节点数据时,由 zTree 增加此属性,请勿提前赋值

                +
                +
                +

                String 格式说明

                +
                +

                zTree 内部生成的节点唯一标识,请参考 treeNode.tId 的说明

                +

                如果 treeNode 是根节点,则 parentTId = null

                +
                +

                treeNode 举例

                +

                1. 查看当前被选中的节点的父节点 tId

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var sNodes = treeObj.getSelectedNodes();
                +if (sNodes.length > 0) {
                +	var parentTId = sNodes[0].parentTId;
                +}
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.tId.html b/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.tId.html new file mode 100644 index 0000000..c32285c --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.tId.html @@ -0,0 +1,25 @@ +
                +
                +

                StringtreeNode.tId

                +

                概述[ 依赖 jquery.ztree.core 核心 js ]

                +
                +

                +
                +

                treeNode 节点的唯一标识 tId。

                +

                初始化节点数据时,由 zTree 增加此属性,请勿提前赋值

                +
                +
                +

                String 格式说明

                +
                +

                生成规则:setting.treeId + "_" + 内部计数

                +
                +

                treeNode 举例

                +

                1. 查看当前被选中的节点的 tId

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var sNodes = treeObj.getSelectedNodes();
                +if (sNodes.length > 0) {
                +	var tId = sNodes[0].tId;
                +}
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.target.html b/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.target.html new file mode 100644 index 0000000..f7c1b6b --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.target.html @@ -0,0 +1,24 @@ +
                +
                +

                StringtreeNode.target

                +

                概述[ 依赖 jquery.ztree.core 核心 js ]

                +
                +

                +
                +

                设置点击节点后在何处打开 url。[treeNode.url 存在时有效]

                +

                默认值:无

                +
                +
                +

                String 格式说明

                +
                +

                同超链接 target 属性: "_blank", "_self" 或 其他指定窗口名称

                +

                省略此属性,则默认为 "_blank"

                +
                +

                treeNode 举例

                +

                1. 设置点击某节点时,弹出新页面

                +
                var nodes = [
                +	{ "id":1, "name":"test1", "url":"http://myTest.com", "target":"_blank"},
                +	......
                +]
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.url.html b/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.url.html new file mode 100644 index 0000000..0b2e007 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.url.html @@ -0,0 +1,25 @@ +
                +
                +

                StringtreeNode.url

                +

                概述[ 依赖 jquery.ztree.core 核心 js ]

                +
                +

                +
                +

                节点链接的目标 URL

                +

                1、编辑模式 (setting.edit.enable = true) 下此属性功能失效,如果必须使用类似功能,请利用 onClick 事件回调函数自行控制。

                +

                2、如果需要在 onClick 事件回调函数中进行跳转控制,那么请将 URL 地址保存在其他自定义的属性内,请勿使用 url

                +

                默认值:无

                +
                +
                +

                String 格式说明

                +
                +

                同超链接 href 属性

                +
                +

                treeNode 举例

                +

                1. 设置某节点点击时,跳转到 g.cn

                +
                var nodes = [
                +	{ "id":1, "name":"Google CN", "url":"http://g.cn"},
                +	......
                +]
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.zAsync.html b/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.zAsync.html new file mode 100644 index 0000000..00e48f3 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/treeNode.zAsync.html @@ -0,0 +1,28 @@ +
                +
                +

                BooleantreeNode.zAsync

                +

                概述[ 依赖 jquery.ztree.core 核心 js ]

                +
                +

                +
                +

                记录 treeNode 节点是否已经进行过异步加载,避免父节点反复异步加载数据。

                +

                初始化节点数据时,由 zTree 增加此属性,请勿提前赋值

                +

                默认值:false (无子节点的父节点); true (有子节点的父节点 & 叶子节点)

                +
                +
                +

                Boolean 格式说明

                +
                +

                true 表示父节点展开时不需要自动异步加载

                +

                false 表示父节点展开时需要自动异步加载

                +

                此参数不会对 reAsyncChildNodes 方法造成任何影响

                +
                +

                treeNode 举例

                +

                1. 查看当前被选中的节点是否节点是否需要自动异步加载

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var sNodes = treeObj.getSelectedNodes();
                +if (sNodes.length > 0) {
                +	var zAsync = sNodes[0].zAsync;
                +}
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.addNodes.html b/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.addNodes.html new file mode 100644 index 0000000..eac2152 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.addNodes.html @@ -0,0 +1,42 @@ +
                +
                +

                Function(parentNode, newNodes, isSilent)zTreeObj.addNodes

                +

                概述[ 依赖 jquery.ztree.core 扩展 js ]

                +
                +

                +
                +

                添加节点。

                +

                v3.x 为了避免原先反复初始化造成的数据重复问题,在 初始化 和 添加节点 时内部进行 clone 操作。如果需要获取数据在 zTree 内的对象,请获取此方法的返回值。

                +

                请通过 zTree 对象执行此方法。

                +
                +
                +

                Function 参数说明

                +
                +

                parentNodeJSON

                +

                指定的父节点,如果增加根节点,请设置 parentNode 为 null 即可。

                +

                请务必保证此节点数据对象 是 zTree 内部的数据对象

                +

                newNodesJSON / Array(JSON)

                +

                需要增加的节点数据 JSON 对象集合,数据只需要满足 zTree 的节点数据必需的属性即可,详细请参考“treeNode 节点数据详解”

                +

                1、v3.x 支持单独添加一个节点,即如果只新增一个节点,不用必须包在数组中

                +

                2、使用简单数据模式,请参考 setting.data.simpleData 内的属性说明

                +

                isSilentBoolean

                +

                设定增加节点后是否自动展开父节点。

                +

                isSilent = true 时,不展开父节点,其他值或缺省状态都自动展开。

                +

                返回值Array(JSON)

                +

                返回值是 zTree 最终添加的节点数据集合

                +

                如果 newNodes 是单个节点数据 JSON,返回值也是将其包在 Array 内

                +

                请务必记住:返回值中的数据对象 是 newNodes 被 clone 后的,所以绝对不相等!

                +
                +

                function 举例

                +

                1. 对于 id = "tree" 的 zTree 增加 1 个根节点

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var newNode = {name:"newNode1"};
                +newNode = treeObj.addNodes(null, newNode);
                +
                +

                2. 对于 id = "tree" 的 zTree 增加 3 个根节点

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var newNodes = [{name:"newNode1"}, {name:"newNode2"}, {name:"newNode3"}];
                +newNodes = treeObj.addNodes(null, newNodes);
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.cancelEditName.html b/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.cancelEditName.html new file mode 100644 index 0000000..9df098f --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.cancelEditName.html @@ -0,0 +1,30 @@ +
                +
                +

                Function(newName)zTreeObj.cancelEditName

                +

                概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                +
                +

                +
                +

                取消节点的编辑名称状态,可以恢复原名称,也可以强行赋给新的名称。

                +

                请通过 zTree 对象执行此方法。

                +
                +
                +

                Function 参数说明

                +
                +

                newNameString

                +

                重新给定的新名称。

                +

                如果省略此参数,则恢复原名称。

                +

                返回值

                +

                目前无任何返回值

                +
                +

                function 举例

                +

                1. 取消 zTree 的编辑名称状态,恢复该节点原有名称

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +treeObj.cancelEditName();
                +
                +

                2. 取消 zTree 的编辑名称状态,并且重新设定该节点名称

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +treeObj.cancelEditName("test_new_name");
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.cancelSelectedNode.html b/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.cancelSelectedNode.html new file mode 100644 index 0000000..26d5706 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.cancelSelectedNode.html @@ -0,0 +1,35 @@ +
                +
                +

                Function(treeNode)zTreeObj.cancelSelectedNode

                +

                概述[ 依赖 jquery.ztree.core 核心 js ]

                +
                +

                +
                +

                取消节点的选中状态。

                +

                v3.x 支持多点同时选中,因此取消选中状态可以全部取消,也可以单独取消某个节点的选中状态。

                +

                请通过 zTree 对象执行此方法。

                +
                +
                +

                Function 参数说明

                +
                +

                treeNodeJSON

                +

                需要取消选中状态的节点。

                +

                请务必保证此节点数据对象 是 zTree 内部的数据对象

                +

                如果省略此参数,则将取消全部被选中节点的选中状态。

                +

                返回值

                +

                目前无任何返回值

                +
                +

                function 举例

                +

                1. 取消当前所有被选中节点的选中状态

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +treeObj.cancelSelectedNode();
                +
                +

                2. 取消当前第一个被选中节点的选中状态

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var nodes = treeObj.getSelectedNode();
                +if (nodes.length>0) { 
                +	treeObj.cancelSelectedNode(nodes[0]);
                +}
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.checkAllNodes.html b/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.checkAllNodes.html new file mode 100644 index 0000000..d6eaadf --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.checkAllNodes.html @@ -0,0 +1,29 @@ +
                +
                +

                Function(checked)zTreeObj.checkAllNodes

                +

                概述[ 依赖 jquery.ztree.excheck 扩展 js ]

                +
                +

                +
                +

                勾选 或 取消勾选 全部节点。[setting.check.enable = true 且 setting.check.chkStyle = "checkbox" 时有效]

                +

                此方法不会触发 beforeCheck / onCheck 事件回调函数。

                +

                请通过 zTree 对象执行此方法。

                +
                +
                +

                Function 参数说明

                +
                +

                checkedBoolean

                +

                checked = true 表示勾选全部节点

                +

                checked = false 表示全部节点取消勾选

                +

                不会影响 treeNode.nochecked = true 的节点。

                +

                不会影响未加载的节点。

                +

                返回值

                +

                目前无任何返回值

                +
                +

                function 举例

                +

                1. 勾选全部节点

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +treeObj.checkAllNodes(true);
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.checkNode.html b/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.checkNode.html new file mode 100644 index 0000000..cb8bb7d --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.checkNode.html @@ -0,0 +1,44 @@ +
                +
                +

                Function(treeNode, checked, checkTypeFlag, callbackFlag)zTreeObj.checkNode

                +

                概述[ 依赖 jquery.ztree.excheck 扩展 js ]

                +
                +

                +
                +

                勾选 或 取消勾选 单个节点。[setting.check.enable = true 时有效]

                +

                v3.x 中 checkNode() 方法可以触发 beforeCheck / onCheck 事件回调函数。便于减少冗余代码

                +

                请通过 zTree 对象执行此方法。

                +
                +
                +

                Function 参数说明

                +
                +

                treeNodeJSON

                +

                需要勾选 或 取消勾选 的节点数据

                +

                请务必保证此节点数据对象 是 zTree 内部的数据对象

                +

                checkedBoolean

                +

                checked = true 表示勾选节点

                +

                checked = false 表示节点取消勾选

                +

                省略此参数,则根据对此节点的勾选状态进行 toggle 切换

                +

                不影响 treeNode.nochecked = true 的节点。

                +

                checkTypeFlagBoolean

                +

                checkTypeFlag = true 表示按照 setting.check.chkboxType 属性进行父子节点的勾选联动操作

                +

                checkTypeFlag = false 表示只修改此节点勾选状态,无任何勾选联动操作

                +

                checkTypeFlag = false 且 treeNode.checked = checked 时,不会触发回调函数,直接返回

                +

                不影响父子节点中 treeNode.nochecked = true 的节点。

                +

                callbackFlagBoolean

                +

                callbackFlag = true 表示执行此方法时触发 beforeCheck & onCheck 事件回调函数

                +

                callbackFlag = false 表示执行此方法时不触发事件回调函数

                +

                省略此参数,等同于 false

                +

                返回值

                +

                目前无任何返回值

                +
                +

                function 举例

                +

                1. 勾选当前选中的节点

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var nodes = treeObj.getSelectedNodes();
                +for (var i=0, l=nodes.length; i < l; i++) {
                +	treeObj.checkNode(nodes[i], true, true);
                +}
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.copyNode.html b/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.copyNode.html new file mode 100644 index 0000000..f1b624b --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.copyNode.html @@ -0,0 +1,44 @@ +
                +
                +

                Function(targetNode, treeNode, moveType, isSilent)zTreeObj.copyNode

                +

                概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                +
                +

                +
                +

                复制节点。

                +

                v3.x 复制节点时进行 clone 操作。如果需要获取数据在 zTree 内的对象,请获取此方法的返回值。

                +

                请通过 zTree 对象执行此方法。

                +
                +
                +

                Function 参数说明

                +
                +

                targetNodeJSON

                +

                要复制到的目标节点 JSON 数据

                +

                如果复制成为根节点,请设置 targetNode 为 null 即可

                +

                请务必保证此节点数据对象 是 zTree 内部的数据对象

                +

                treeNodeJSON

                +

                需要被复制的节点数据

                +

                请务必保证此节点数据对象 是 zTree 内部的数据对象

                +

                moveTypeString

                +

                复制到目标节点的相对位置

                +

                "inner":成为子节点,"prev":成为同级前一个节点,"next":成为同级后一个节点

                +

                isSilentBoolean

                +

                设定复制节点后是否自动展开父节点。

                +

                isSilent = true 时,不展开父节点,其他值或缺省状态都自动展开。

                +

                返回值JSON

                +

                返回值是最终加入到 zTree 内的节点数据

                +

                请务必记住:返回值中的数据对象 是 treeNode 被 clone 后的,所以绝对不相等!

                +
                +

                function 举例

                +

                1. 将根节点中第二个节点 复制成为 第一个节点的子节点

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var nodes = treeObj.getNodes();
                +treeObj.copyNode(nodes[0], nodes[1], "inner");
                +
                +

                2. 将根节点中第二个节点 复制成为 第一个节点的前一个节点

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var nodes = treeObj.getNodes();
                +treeObj.copyNode(nodes[0], nodes[1], "before");
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.destroy.html b/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.destroy.html new file mode 100644 index 0000000..d9f6da0 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.destroy.html @@ -0,0 +1,25 @@ +
                +
                +

                Function(treeId)zTreeObj.destroy

                +

                概述[ 依赖 jquery.ztree.core 核心 js ]

                +
                +

                +
                +

                从 zTree v3.4 开始提供销毁 zTree 的方法。

                +

                1、用此方法可以销毁 zTreeObj 代表的 zTree。

                +

                2、销毁当前页面全部的 zTree,也可以使用 $.fn.zTree.destroy() 方法。

                +

                3、重新使用已经被销毁的树,必须要使用 init 方法进行初始化。

                +
                +
                +

                Function Parameter Descriptions

                +
                +

                返回值

                +

                目前无任何返回值

                +
                +

                function 举例

                +

                1. 销毁 id 为 "treeDemo" 的 zTree

                +
                var zTreeObj = $.fn.zTree.getZTreeObj("treeDemo");
                +zTreeObj.destroy();
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.editName.html b/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.editName.html new file mode 100644 index 0000000..2d4eaf7 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.editName.html @@ -0,0 +1,29 @@ +
                +
                +

                Function(treeNode)zTreeObj.editName

                +

                概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                +
                +

                +
                +

                设置某节点进入编辑名称状态。

                +

                1、如果需要用 js 取消编辑名称状态,请使用 cancelEditName(newName) 方法。

                +

                2、可利用此方法让当前正编辑的节点 input 输入框获取焦点。

                +

                3、请通过 zTree 对象执行此方法。

                +
                +
                +

                Function 参数说明

                +
                +

                treeNodeJSON

                +

                指定进入编辑名称状态的节点 JSON 数据

                +

                请务必保证此节点数据对象 是 zTree 内部的数据对象

                +

                返回值

                +

                目前无任何返回值

                +
                +

                function 举例

                +

                1. 设置根节点第一个节点进入编辑名称状态

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var nodes = treeObj.getNodes();
                +treeObj.editName(nodes[0]);
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.expandAll.html b/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.expandAll.html new file mode 100644 index 0000000..aaa3e46 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.expandAll.html @@ -0,0 +1,30 @@ +
                +
                +

                Function(expandFlag)zTreeObj.expandAll

                +

                概述[ 依赖 jquery.ztree.core 核心 js ]

                +
                +

                +
                +

                展开 / 折叠 全部节点

                +

                此方法不会触发 beforeExpand / onExpand 和 beforeCollapse / onCollapse 事件回调函数。

                +

                请通过 zTree 对象执行此方法。

                +
                +
                +

                Function 参数说明

                +
                +

                expandFlagBoolean

                +

                expandFlag = true 表示 展开 全部节点

                +

                expandFlag = false 表示 折叠 全部节点

                +

                返回值Boolean

                +

                返回值表示最终实际操作情况

                +

                true 表示 展开 全部节点

                +

                false 表示 折叠 全部节点

                +

                null 表示 不存在任何父节点

                +
                +

                function 举例

                +

                1. 展开全部节点

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +treeObj.expandAll(true);
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.expandNode.html b/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.expandNode.html new file mode 100644 index 0000000..26f563a --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.expandNode.html @@ -0,0 +1,50 @@ +
                +
                +

                Function(treeNode, expandFlag, sonSign, focus, callbackFlag)zTreeObj.expandNode

                +

                概述[ 依赖 jquery.ztree.core 核心 js ]

                +
                +

                +
                +

                展开 / 折叠 指定的节点

                +

                v3.x 中执行此方法可以触发 beforeExpand / onExpand 或 beforeCollapse / onCollapse 事件回调函数。便于减少冗余代码

                +

                请通过 zTree 对象执行此方法。

                +
                +
                +

                Function 参数说明

                +
                +

                treeNodeJSON

                +

                需要 展开 / 折叠 的节点数据

                +

                请务必保证此节点数据对象 是 zTree 内部的数据对象

                +

                expandFlagBoolean

                +

                expandFlag = true 表示 展开 节点

                +

                expandFlag = false 表示 折叠 节点

                +

                省略此参数,则根据对此节点的展开状态进行 toggle 切换

                +

                sonSignBoolean

                +

                sonSign = true 表示 全部子孙节点 进行与 expandFlag 相同的操作

                +

                sonSign = false 表示 只影响此节点,对于其 子孙节点无任何影响

                +

                sonSign = false 且 treeNode.open = expandFlag 时,不会触发回调函数,直接返回

                +

                省略此参数,等同于 false

                +

                focusBoolean

                +

                focus = true 表示 展开 / 折叠 操作后,通过设置焦点保证此焦点进入可视区域内

                +

                focus = false 表示 展开 / 折叠 操作后,不设置任何焦点

                +

                省略此参数,等同于 true

                +

                callbackFlagBoolean

                +

                callbackFlag = true 表示执行此方法时触发 beforeExpand / onExpand 或 beforeCollapse / onCollapse 事件回调函数

                +

                callbackFlag = false 表示执行此方法时不触发事件回调函数

                +

                省略此参数,等同于 false

                +

                返回值Boolean

                +

                返回值表示最终实际操作情况

                +

                true 表示 展开 节点

                +

                false 表示 折叠 节点

                +

                null 表示 不是父节点

                +
                +

                function 举例

                +

                1. 展开当前选择的第一个节点(包括其全部子节点)

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var nodes = treeObj.getSelectedNode();
                +if (nodes.length>0) {
                +	treeObj.expandNode(nodes[0], true, true, true);
                +}
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.getChangeCheckedNodes.html b/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.getChangeCheckedNodes.html new file mode 100644 index 0000000..ba86534 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.getChangeCheckedNodes.html @@ -0,0 +1,24 @@ +
                +
                +

                Function()zTreeObj.getChangeCheckedNodes

                +

                概述[ 依赖 jquery.ztree.excheck 扩展 js ]

                +
                +

                +
                +

                获取输入框勾选状态被改变的节点集合(与原始数据 checkedOld 对比)。[setting.check.enable = true 时有效]

                +

                请通过 zTree 对象执行此方法。

                +
                +
                +

                Function 参数说明

                +
                +

                返回值Array(JSON)

                +

                返回全部勾选状态被改变的节点集合 Array

                +

                如果需要获取每次操作后全部被改变勾选状态的节点数据,请在每次勾选操作后,遍历所有被改变勾选状态的节点数据,让其 checkedOld = checked 就可以了。

                +
                +

                function 举例

                +

                1. 获取当前勾选状态被改变的节点集合

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var nodes = treeObj.getChangeCheckedNodes();
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.getCheckedNodes.html b/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.getCheckedNodes.html new file mode 100644 index 0000000..85f4ba0 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.getCheckedNodes.html @@ -0,0 +1,28 @@ +
                +
                +

                Function(checked)zTreeObj.getCheckedNodes

                +

                概述[ 依赖 jquery.ztree.excheck 扩展 js ]

                +
                +

                +
                +

                获取输入框被勾选 或 未勾选的节点集合。[setting.check.enable = true 时有效]

                +

                请通过 zTree 对象执行此方法。

                +
                +
                +

                Function 参数说明

                +
                +

                checkedBoolean

                +

                checked = true 表示获取 被勾选 的节点集合

                +

                checked = false 表示获取 未勾选 的节点集合

                +

                省略此参数,等同于 true。

                +

                对于 treeNode.nochecked = true 的节点不进行获取。

                +

                返回值Array(JSON)

                +

                返回全部符合要求的节点集合 Array

                +
                +

                function 举例

                +

                1. 获取当前被勾选的节点集合

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var nodes = treeObj.getCheckedNodes(true);
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.getNodeByParam.html b/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.getNodeByParam.html new file mode 100644 index 0000000..89e72c7 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.getNodeByParam.html @@ -0,0 +1,32 @@ +
                +
                +

                Function(key, value, parentNode)zTreeObj.getNodeByParam

                +

                概述[ 依赖 jquery.ztree.core 核心 js ]

                +
                +

                +
                +

                根据节点数据的属性搜索,获取条件完全匹配的节点数据 JSON 对象

                +

                请通过 zTree 对象执行此方法。

                +
                +
                +

                Function 参数说明

                +
                +

                keyString

                +

                需要精确匹配的属性名称

                +

                value?

                +

                需要精确匹配的属性值,可以是任何类型,只要保证与 key 指定的属性值保持一致即可

                +

                parentNodeJSON

                +

                搜索范围,指定在某个父节点下的子节点中进行搜索

                +

                忽略此参数,表示在全部节点中搜索

                +

                返回值JSON

                +

                匹配精确搜索的节点数据

                +

                1、如无结果,返回 null

                +

                2、如有多个节点满足查询条件,只返回第一个匹配到的节点

                +
                +

                function 举例

                +

                1. 查找 id = 1 的节点数据

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var node = treeObj.getNodeByParam("id", 1, null);
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.getNodeByTId.html b/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.getNodeByTId.html new file mode 100644 index 0000000..76fcc48 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.getNodeByTId.html @@ -0,0 +1,27 @@ +
                +
                +

                Function(tId)zTreeObj.getNodeByTId

                +

                概述[ 依赖 jquery.ztree.core 核心 js ]

                +
                +

                +
                +

                根据 zTree 的唯一标识 tId 快速获取节点 JSON 数据对象

                +

                通过内部的 cache 获取,不需要遍历节点。

                +

                请通过 zTree 对象执行此方法。

                +
                +
                +

                Function 参数说明

                +
                +

                tIdString

                +

                节点在 zTree 内的唯一标识 tId

                +

                返回值JSON

                +

                tId 对应的节点 JSON 数据对象

                +

                如无结果,返回 null

                +
                +

                function 举例

                +

                1. 获取 tId = "tree_10" 的节点数据

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var node = treeObj.getNodeByTId("tree_10");
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.getNodeIndex.html b/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.getNodeIndex.html new file mode 100644 index 0000000..b2c757d --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.getNodeIndex.html @@ -0,0 +1,30 @@ +
                +
                +

                Function(treeNode)zTreeObj.getNodeIndex

                +

                概述[ 依赖 jquery.ztree.core 核心 js ]

                +
                +

                +
                +

                获取某节点在同级节点中的序号(从0开始)

                +

                请通过 zTree 对象执行此方法。

                +
                +
                +

                Function 参数说明

                +
                +

                treeNodeJSON

                +

                需要查询顺序的节点 JSON 数据对象

                +

                请务必保证此节点数据对象 是 zTree 内部的数据对象

                +

                返回值Number

                +

                返回值从 0 开始计数

                +

                如果不存在该节点数据,返回 -1

                +
                +

                function 举例

                +

                1. 获取当前选中的第一个节点在同级节点中的序号

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var nodes = treeObj.getSelectedNodes();
                +if (nodes.length>0) {
                +	var index = treeObj.getNodeIndex(nodes[0]);
                +}
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.getNodes.html b/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.getNodes.html new file mode 100644 index 0000000..b368535 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.getNodes.html @@ -0,0 +1,26 @@ +
                +
                +

                Function()zTreeObj.getNodes

                +

                概述[ 依赖 jquery.ztree.core 核心 js ]

                +
                +

                +
                +

                获取 zTree 的全部节点数据

                +

                请通过 zTree 对象执行此方法。

                +
                +
                +

                Function 参数说明

                +
                +

                返回值Array(JSON)

                +

                全部节点数据

                +

                1、Array 仅仅是根节点的集合(默认情况子节点都处于 children 属性下);

                +

                2、如需遍历全部节点需要利用递归,或利用 transformToArray 方法 将数据变成简单的 Array 集合

                +

                3、对于异步加载模式下,尚未加载的子节点是无法通过此方法获取的。

                +
                +

                function 举例

                +

                1. 获取全部节点数据

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var nodes = treeObj.getNodes();
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.getNodesByFilter.html b/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.getNodesByFilter.html new file mode 100644 index 0000000..6917425 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.getNodesByFilter.html @@ -0,0 +1,43 @@ +
                +
                +

                Function(filter, isSingle, parentNode, invokeParam)zTreeObj.getNodesByFilter

                +

                概述[ 依赖 jquery.ztree.core 核心 js ]

                +
                +

                +
                +

                根据自定义规则搜索节点数据 JSON 对象集合 或 单个节点数据

                +

                可自定义复杂的搜索规则

                +

                请通过 zTree 对象执行此方法。

                +
                +
                +

                Function 参数说明

                +
                +

                filterFunction

                +

                自定义过滤器函数 function filter(node) {...}

                +

                filter 参数:node (节点数据 JSON)

                +

                filter 返回值:boolean (true 表示符合搜索条件;false 表示不符合搜索条件)

                +

                isSingleBoolean

                +

                isSingle = true 表示只查找单个节点

                +

                isSingle = false 表示查找节点集合

                +

                忽略此参数,表示查找节点集合

                +

                parentNodeJSON

                +

                可以指定在某个父节点下的子节点中搜索

                +

                忽略此参数,表示在全部节点中搜索

                +

                invokeParam任意类型

                +

                用户自定义的数据对象,用于 filter 中进行计算

                +

                返回值Array(JSON) / JSON

                +

                isSingle = true 返回 第一个找到的节点数据 JSON,无结果时返回 null

                +

                isSingle = false 返回 节点数据集合 Array(JSON),无结果时返回 [ ]

                +
                +

                function 举例

                +

                1. 查找 level = 2 & name 中包含 "test" 的节点数据

                +
                function filter(node) {
                +    return (node.level == 2 && node.name.indexOf("test")>-1);
                +}
                +......
                +var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var node = treeObj.getNodesByFilter(filter, true); // 仅查找一个节点
                +var nodes = treeObj.getNodesByFilter(filter); // 查找节点集合
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.getNodesByParam.html b/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.getNodesByParam.html new file mode 100644 index 0000000..cf45939 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.getNodesByParam.html @@ -0,0 +1,31 @@ +
                +
                +

                Function(key, value, parentNode)zTreeObj.getNodesByParam

                +

                概述[ 依赖 jquery.ztree.core 核心 js ]

                +
                +

                +
                +

                根据节点数据的属性搜索,获取条件完全匹配的节点数据 JSON 对象集合

                +

                请通过 zTree 对象执行此方法。

                +
                +
                +

                Function 参数说明

                +
                +

                keyString

                +

                需要精确匹配的属性名称

                +

                value?

                +

                需要精确匹配的属性值,可以是任何类型,只要保证与 key 指定的属性值保持一致即可

                +

                parentNodeJSON

                +

                可以指定在某个父节点下的子节点中搜索

                +

                忽略此参数,表示在全部节点中搜索

                +

                返回值Array(JSON)

                +

                匹配精确搜索的节点数据集合

                +

                如无结果,返回 [ ]

                +
                +

                function 举例

                +

                1. 查找 name = "test" 的节点数据

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var nodes = treeObj.getNodesByParam("name", "test", null);
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.getNodesByParamFuzzy.html b/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.getNodesByParamFuzzy.html new file mode 100644 index 0000000..04d183f --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.getNodesByParamFuzzy.html @@ -0,0 +1,32 @@ +
                +
                +

                Function(key, value, parentNode)zTreeObj.getNodesByParamFuzzy

                +

                概述[ 依赖 jquery.ztree.core 核心 js ]

                +
                +

                +
                +

                根据节点数据的属性搜索,获取条件模糊匹配的节点数据 JSON 对象集合

                +

                请通过 zTree 对象执行此方法。

                +
                +
                +

                Function 参数说明

                +
                +

                keyString

                +

                需要模糊匹配的属性名称

                +

                valueString

                +

                需要模糊匹配的属性值

                +

                模糊匹配只能针对 String 类型的数据

                +

                parentNodeJSON

                +

                可以指定在某个父节点下的子节点中搜索

                +

                忽略此参数,表示在全部节点中搜索

                +

                返回值Array(JSON)

                +

                匹配模糊搜索的节点数据集合

                +

                如无结果,返回 [ ]

                +
                +

                function 举例

                +

                1. 查找 name 包含 "test" 的节点数据

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var nodes = treeObj.getNodesByParamFuzzy("name", "test", null);
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.getSelectedNodes.html b/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.getSelectedNodes.html new file mode 100644 index 0000000..ab36f8e --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.getSelectedNodes.html @@ -0,0 +1,23 @@ +
                +
                +

                Function()zTreeObj.getSelectedNodes

                +

                概述[ 依赖 jquery.ztree.core 核心 js ]

                +
                +

                +
                +

                获取 zTree 当前被选中的节点数据集合

                +

                请通过 zTree 对象执行此方法。

                +
                +
                +

                Function 参数说明

                +
                +

                返回值Array(JSON)

                +

                当前被选中的节点数据集合

                +
                +

                function 举例

                +

                1. 获取当前被选中的节点数据集合

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var nodes = treeObj.getSelectedNodes();
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.hideNode.html b/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.hideNode.html new file mode 100644 index 0000000..a1996b8 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.hideNode.html @@ -0,0 +1,29 @@ +
                +
                +

                Function(treeNode)zTreeObj.hideNode

                +

                概述[ 依赖 jquery.ztree.exhide 扩展 js ]

                +
                +

                +
                +

                隐藏某个节点。

                +

                1、此功能不支持 exedit 扩展,因此不要在编辑状态时使用隐藏节点的方法。

                +

                2、隐藏/显示节点,会影响节点的 isFirstNode 和 isLastNode 属性。

                +

                3、请通过 zTree 对象执行此方法。

                +
                +
                +

                Function 参数说明

                +
                +

                treeNodeJSON

                +

                指定被隐藏的节点 JSON 数据

                +

                请务必保证此节点数据对象 是 zTree 内部的数据对象

                +

                返回值

                +

                目前无任何返回值

                +
                +

                function 举例

                +

                1. 隐藏根节点第一个节点

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var nodes = treeObj.getNodes();
                +treeObj.hideNode(nodes[0]);
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.hideNodes.html b/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.hideNodes.html new file mode 100644 index 0000000..cf752b5 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.hideNodes.html @@ -0,0 +1,29 @@ +
                +
                +

                Function(treeNodes)zTreeObj.hideNodes

                +

                概述[ 依赖 jquery.ztree.exhide 扩展 js ]

                +
                +

                +
                +

                隐藏一批节点。

                +

                1、此功能不支持 exedit 扩展,因此不要在编辑状态时使用隐藏节点的方法。

                +

                2、隐藏/显示节点,会影响节点的 isFirstNode 和 isLastNode 属性。

                +

                3、请通过 zTree 对象执行此方法。

                +
                +
                +

                Function 参数说明

                +
                +

                treeNodesArray(JSON)

                +

                指定被隐藏的节点 JSON 数据集合

                +

                请务必保证这些节点数据对象 是 zTree 内部的数据对象

                +

                返回值

                +

                目前无任何返回值

                +
                +

                function 举例

                +

                1. 隐藏根节点第一个节点的子节点

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var nodes = treeObj.getNodes();
                +treeObj.hideNodes(nodes[0].children);
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.moveNode.html b/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.moveNode.html new file mode 100644 index 0000000..27f225a --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.moveNode.html @@ -0,0 +1,46 @@ +
                +
                +

                Function(targetNode, treeNode, moveType, isSilent)zTreeObj.moveNode

                +

                概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                +
                +

                +
                +

                移动节点。

                +

                请通过 zTree 对象执行此方法。

                +
                +
                +

                Function 参数说明

                +
                +

                targetNodeJSON

                +

                要移动到的目标节点 JSON 数据

                +

                如果移动成为根节点,请设置 targetNode 为 null 即可

                +

                请务必保证此节点数据对象 是 zTree 内部的数据对象

                +

                treeNodeJSON

                +

                需要被移动的节点数据

                +

                请务必保证此节点数据对象 是 zTree 内部的数据对象

                +

                moveTypeString

                +

                指定移动到目标节点的相对位置

                +

                "inner":成为子节点,"prev":成为同级前一个节点,"next":成为同级后一个节点

                +

                isSilentBoolean

                +

                设定移动节点后是否自动展开父节点。

                +

                isSilent = true 时,不展开父节点,其他值或缺省状态都自动展开。

                +

                返回值JSON

                +

                返回值是最终被移动的节点数据,正常情况下与 treeNode 参数完全相同

                +

                如果 返回值 为 null,说明 移动失败,主要原因有:
                +  1、targetNode 是 treeNode 父节点,且 moveType = "inner"
                +  2、targetNode 是 treeNode 子孙节点 +

                +
                +

                function 举例

                +

                1. 将根节点中第二个节点 移动成为 第一个节点的子节点

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var nodes = treeObj.getNodes();
                +treeObj.moveNode(nodes[0], nodes[1], "inner");
                +
                +

                2. 将根节点中第二个节点 移动成为 第一个节点的前一个节点

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var nodes = treeObj.getNodes();
                +treeObj.moveNode(nodes[0], nodes[1], "before");
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.reAsyncChildNodes.html b/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.reAsyncChildNodes.html new file mode 100644 index 0000000..4a354e2 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.reAsyncChildNodes.html @@ -0,0 +1,42 @@ +
                +
                +

                Function(parentNode, reloadType, isSilent)zTreeObj.reAsyncChildNodes

                +

                概述[ 依赖 jquery.ztree.core 核心 js ]

                +
                +

                +
                +

                强行异步加载父节点的子节点。[setting.async.enable = true 时有效]

                +

                已经加载过的父节点可反复使用此方法重新加载。

                +

                请通过 zTree 对象执行此方法。

                +
                +
                +

                Function 参数说明

                +
                +

                parentNodeJSON

                +

                指定需要异步加载的父节点 JSON 数据

                +

                1、parentNode = null 时,相当于从根节点 Root 进行异步加载

                +

                2、parentNode.isParent = false 时,不进行异步加载

                +

                3、请务必保证此节点数据对象 是 zTree 内部的数据对象

                +

                reloadTypeString

                +

                reloadType = "refresh" 表示清空后重新加载。

                +

                reloadType != "refresh" 时,表示追加子节点处理。

                +

                isSilentBoolean

                +

                设定异步加载后是否自动展开父节点。

                +

                isSilent = true 时,不展开父节点,其他值或缺省状态都自动展开。

                +

                返回值

                +

                目前无任何返回值

                +
                +

                function 举例

                +

                1. 重新异步加载 zTree

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +treeObj.reAsyncChildNodes(null, "refresh");
                +
                +

                2. 重新异步加载当前选中的第一个节点

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var nodes = treeObj.getSelectedNodes();
                +if (nodes.length>0) {
                +	treeObj.reAsyncChildNodes(nodes[0], "refresh");
                +}
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.refresh.html b/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.refresh.html new file mode 100644 index 0000000..09a74ca --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.refresh.html @@ -0,0 +1,24 @@ +
                +
                +

                Function()zTreeObj.refresh

                +

                概述[ 依赖 jquery.ztree.core 核心 js ]

                +
                +

                +
                +

                刷新 zTree 。

                +

                没有特殊必要,尽量不要使用此方法。单个节点更新请使用 updateNode 方法,异步加载模式下请使用 reAsyncChildNodes 方法。

                +

                请通过 zTree 对象执行此方法。

                +
                +
                +

                Function 参数说明

                +
                +

                返回值

                +

                目前无任何返回值

                +
                +

                function 举例

                +

                1. 刷新 zTree

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +treeObj.refresh();
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.removeChildNodes.html b/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.removeChildNodes.html new file mode 100644 index 0000000..588639f --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.removeChildNodes.html @@ -0,0 +1,32 @@ +
                +
                +

                Function(parentNode)zTreeObj.removeChildNodes

                +

                概述[ 依赖 jquery.ztree.core 扩展 js ]

                +
                +

                +
                +

                清空某父节点的子节点。

                +

                1、清空子节点后,父节点会自动变为叶子节点,如需要父节点保持父节点状态,请设置 setting.data.keep.parent 属性。

                +

                2、请勿用此方法清空根节点,如果需要清空根节点,直接初始化 zTree,并且设置初始节点为 null 即可。

                +

                3、此方法不会触发任何事件回调函数。

                +

                请通过 zTree 对象执行此方法。

                +
                +
                +

                Function 参数说明

                +
                +

                parentNodeJSON

                +

                需要清空子节点的父节点数据

                +

                请务必保证此节点数据对象 是 zTree 内部的数据对象

                +

                返回值Array(JSON)

                +

                将该父节点的子节点数据返回,如果不存在则返回 null

                +
                +

                function 举例

                +

                1. 清空选中的第一个节点的子节点

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var nodes = treeObj.getSelectedNodes();
                +if (nodes && nodes.length>0) {
                +	treeObj.removeChildNodes(nodes[0]);
                +}
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.removeNode.html b/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.removeNode.html new file mode 100644 index 0000000..d28e017 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.removeNode.html @@ -0,0 +1,34 @@ +
                +
                +

                Function(treeNode, callbackFlag)zTreeObj.removeNode

                +

                概述[ 依赖 jquery.ztree.core 扩展 js ]

                +
                +

                +
                +

                删除节点。

                +

                v3.x 中删除节点可以触发 beforeRemove / onRemove 事件回调函数。便于减少冗余代码

                +

                请通过 zTree 对象执行此方法。

                +
                +
                +

                Function 参数说明

                +
                +

                treeNodeJSON

                +

                需要被删除的节点数据

                +

                请务必保证此节点数据对象 是 zTree 内部的数据对象

                +

                callbackFlagBoolean

                +

                callbackFlag = true 表示执行此方法时触发 beforeCheck & onCheck 事件回调函数

                +

                callbackFlag = false 表示执行此方法时不触发事件回调函数

                +

                省略此参数,等同于 false

                +

                返回值

                +

                目前无任何返回值

                +
                +

                function 举例

                +

                1. 删除所有选中的节点

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var nodes = treeObj.getSelectedNodes();
                +for (var i=0, l=nodes.length; i < l; i++) {
                +	treeObj.removeNode(nodes[i]);
                +}
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.selectNode.html b/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.selectNode.html new file mode 100644 index 0000000..6e80d81 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.selectNode.html @@ -0,0 +1,34 @@ +
                +
                +

                Function(treeNode, addFlag)zTreeObj.selectNode

                +

                概述[ 依赖 jquery.ztree.core 核心 js ]

                +
                +

                +
                +

                选中指定节点

                +

                v3.x 支持同时选中多个节点。

                +

                请通过 zTree 对象执行此方法。

                +
                +
                +

                Function 参数说明

                +
                +

                treeNodeJSON

                +

                需要被选中的节点数据

                +

                请务必保证此节点数据对象 是 zTree 内部的数据对象

                +

                addFlagBoolean

                +

                addFlag = true 表示追加选中,会出现多点同时被选中的情况

                +

                addFlag = false 表示单独选中,原先被选中的节点会被取消选中状态

                +

                setting.view.selectedMulti = false 时,此参数无效,始终进行单独选中

                +

                返回值

                +

                目前无任何返回值

                +
                +

                function 举例

                +

                1. 单独选中根节点中第一个节点

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var nodes = treeObj.getNodes();
                +if (nodes.length>0) {
                +	treeObj.selectNode(nodes[0]);
                +}
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.setChkDisabled.html b/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.setChkDisabled.html new file mode 100644 index 0000000..f6c7d06 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.setChkDisabled.html @@ -0,0 +1,36 @@ +
                +
                +

                Function(node, disabled)zTreeObj.setChkDisabled

                +

                概述[ 依赖 jquery.ztree.excheck 扩展 js ]

                +
                +

                +
                +

                禁用 或 解禁 某个节点的 checkbox / radio [setting.check.enable = true 时有效]

                +

                1、节点的 checkbox / radio 被禁用后,无法勾选或取消勾选,但能够影响父节点的半选状态

                +

                2、请不要直接修改已加载节点的 treeNode.chkDisabled 属性。

                +

                3、请通过 zTree 对象执行此方法。

                +
                +
                +

                Function 参数说明

                +
                +

                treeNodeJSON

                +

                需要禁用 或 解禁 checkbox / radio 的节点数据

                +

                请务必保证此节点数据对象 是 zTree 内部的数据对象

                +

                disabledBoolean

                +

                disabled = true 表示禁用 checkbox / radio

                +

                disabled = false 表示解禁 checkbox / radio

                +

                省略此参数,等同于 disabled = false

                +

                不影响 treeNode.nochecked = true 的节点。

                +

                返回值

                +

                目前无任何返回值

                +
                +

                function 举例

                +

                1. 禁用当前选中的节点的 checkbox / radio

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var nodes = treeObj.getSelectedNodes();
                +for (var i=0, l=nodes.length; i < l; i++) {
                +	treeObj.setChkDisabled(nodes[i], true);
                +}
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.setEditable.html b/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.setEditable.html new file mode 100644 index 0000000..c90c8de --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.setEditable.html @@ -0,0 +1,27 @@ +
                +
                +

                Function(editable)zTreeObj.setEditable

                +

                概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                +
                +

                +
                +

                设置 zTree 进入 / 取消 编辑状态。

                +

                对于编辑状态的各种功能需要提前设置对应 setting 中的不同属性

                +

                请通过 zTree 对象执行此方法。

                +
                +
                +

                Function 参数说明

                +
                +

                editableBoolean

                +

                true 表示进入 编辑状态

                +

                false 表示取消 编辑状态

                +

                返回值

                +

                目前无任何返回值

                +
                +

                function 举例

                +

                1. 设置 zTree 进入编辑状态

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +treeObj.setEditable(true);
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.setting.html b/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.setting.html new file mode 100644 index 0000000..61abd53 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.setting.html @@ -0,0 +1,13 @@ +
                +
                +

                JSONzTreeObj.setting

                +

                概述[ 依赖 jquery.ztree.core 核心 js ]

                +
                +

                +
                +

                zTree 对象使用的 setting 配置数据,详细请参考 “setting 配置详解”中的各个属性详细说明

                +

                v3.x 取消了原先操作 setting 的方法,让用户可以较自由的修改参数,但请注意,对于 zTree 初始化有影响的参数后期修改是不会起作用的,请对各个属性有较深入的了解以后再考虑进行修改。

                +
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.showNode.html b/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.showNode.html new file mode 100644 index 0000000..ed22d51 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.showNode.html @@ -0,0 +1,31 @@ +
                +
                +

                Function(treeNode)zTreeObj.showNode

                +

                概述[ 依赖 jquery.ztree.exhide 扩展 js ]

                +
                +

                +
                +

                显示某个被隐藏的节点。

                +

                1、此功能不支持 exedit 扩展,因此不要在编辑状态时使用隐藏节点的方法。

                +

                2、隐藏/显示节点,会影响节点的 isFirstNode 和 isLastNode 属性。

                +

                3、请通过 zTree 对象执行此方法。

                +
                +
                +

                Function 参数说明

                +
                +

                treeNodeJSON

                +

                指定被显示的节点 JSON 数据

                +

                请务必保证此节点数据对象 是 zTree 内部的数据对象

                +

                返回值

                +

                目前无任何返回值

                +
                +

                function 举例

                +

                1. 显示某个隐藏的节点

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var node = treeObj.getNodeByParam("isHidden", true);
                +if (node) {
                +  treeObj.showNode(node);
                +}
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.showNodes.html b/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.showNodes.html new file mode 100644 index 0000000..b090657 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.showNodes.html @@ -0,0 +1,29 @@ +
                +
                +

                Function(treeNodes)zTreeObj.showNodes

                +

                概述[ 依赖 jquery.ztree.exhide 扩展 js ]

                +
                +

                +
                +

                显示一批已经被隐藏的节点。

                +

                1、此功能不支持 exedit 扩展,因此不要在编辑状态时使用隐藏节点的方法。

                +

                2、隐藏/显示节点,会影响节点的 isFirstNode 和 isLastNode 属性。

                +

                3、请通过 zTree 对象执行此方法。

                +
                +
                +

                Function 参数说明

                +
                +

                treeNodesArray(JSON)

                +

                指定被显示的节点 JSON 数据集合

                +

                请务必保证这些节点数据对象 是 zTree 内部的数据对象

                +

                返回值

                +

                目前无任何返回值

                +
                +

                function 举例

                +

                1. 显示全部隐藏的节点

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var nodes = treeObj.getNodesByParam("isHidden", true);
                +treeObj.showNodes(nodes);
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.transformToArray.html b/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.transformToArray.html new file mode 100644 index 0000000..a46dc61 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.transformToArray.html @@ -0,0 +1,25 @@ +
                +
                +

                Function(treeNodes)zTreeObj.transformToArray

                +

                概述[ 依赖 jquery.ztree.core 核心 js ]

                +
                +

                +
                +

                将 zTree 使用的标准 JSON 嵌套格式的数据转换为简单 Array 格式。(免去用户自行编写递归遍历全部节点的麻烦)

                +

                请通过 zTree 对象执行此方法。

                +
                +
                +

                Function 参数说明

                +
                +

                treeNodesArray(JSON) / JSON

                +

                需要被转换的 zTree 节点数据对象集合 或 某个单独节点的数据对象

                +

                返回值Array(JSON)

                +

                转换后的简单 Array 数据格式

                +
                +

                function 举例

                +

                1. 将 zTree 节点数据转换为简单 Array 格式

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var nodes = treeObj.transformToArray(treeObj.getNodes());
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.transformTozTreeNodes.html b/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.transformTozTreeNodes.html new file mode 100644 index 0000000..8a52770 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.transformTozTreeNodes.html @@ -0,0 +1,43 @@ +
                +
                +

                Function(simpleNodes)zTreeObj.transformTozTreeNodes

                +

                概述[ 依赖 jquery.ztree.core 核心 js ]

                +
                +

                +
                +

                将简单 Array 格式数据转换为 zTree 使用的标准 JSON 嵌套数据格式。

                +

                使用此方法,请务必设置节点唯一标识属性名称 setting.data.simpleData.idKey 和 父节点唯一标识属性名称 setting.data.simpleData.pIdKey,并且让数据满足父子关系。

                +

                请通过 zTree 对象执行此方法。

                +
                +
                +

                Function 参数说明

                +
                +

                simpleNodesArray(JSON) / JSON

                +

                需要被转换的简单 Array 格式数据 或 某个单独的数据对象

                +

                返回值Array(JSON)

                +

                zTree 使用的标准数据,子节点都存在于父节点数据的 children 属性中

                +

                如果 simpleNodes 是一个 JSON 对象,则被简单封装成长度为 1 的数组。

                +
                +

                function 举例

                +

                1. 将简单 Array 格式转换为zTree使用的标准格式

                +
                var setting = {
                +	data: {
                +		simpleData: {
                +			enable: true,
                +			idKey: "id",
                +			pIdKey: "pId",
                +			rootPId: 0,
                +		}
                +	}
                +};
                +var simpleNodes = [
                +    {"id":1, "pId":0, "name":"test1"},
                +    {"id":11, "pId":1, "name":"test11"},
                +    {"id":12, "pId":1, "name":"test12"},
                +    {"id":111, "pId":11, "name":"test111"}
                +];
                +var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var nodes = treeObj.transformTozTreeNodes(simpleNodes);
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.updateNode.html b/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.updateNode.html new file mode 100644 index 0000000..847fa6e --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/cn/zTreeObj.updateNode.html @@ -0,0 +1,37 @@ +
                +
                +

                Function(treeNode, checkTypeFlag)zTreeObj.updateNode

                +

                概述[ 依赖 jquery.ztree.core 核心 js ]

                +
                +

                +
                +

                更新某节点数据,主要用于该节点显示属性的更新。

                +

                1、可针对 name、target、 url、icon、 iconSkin、checked、nocheck 等这几个用于显示效果的参数进行更新,其他用于 zTreeNodes 的参数请不要随意更新,对于展开节点,还请调用 expandNode方法,因此请勿随意修改 open 属性。

                +

                2、用此方法修改 checked 勾选状态不会触发 beforeCheck / onCheck 事件回调函数。

                +

                请通过 zTree 对象执行此方法。

                +
                +
                +

                Function 参数说明

                +
                +

                treeNodeJSON

                +

                指定需要更新的节点 JSON 数据

                +

                请务必保证此节点数据对象 是 zTree 内部的数据对象

                +

                checkTypeFlagBoolean

                +

                checkTypeFlag = true 表示按照 setting.check.chkboxType 属性进行父子节点的勾选联动操作

                +

                checkTypeFlag = false 表示只修改此节点勾选状态,无任何勾选联动操作

                +

                当 setting.check.enable = true 且 setting.check.chkStyle = "checkbox" 时才有效

                +

                不影响父子节点中 treeNode.nochecked = true 的节点。

                +

                返回值

                +

                目前无任何返回值

                +
                +

                function 举例

                +

                1. 更新根节点中第一个节点的名称

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var nodes = treeObj.getNodes();
                +if (nodes.length>0) {
                +	nodes[0].name = "test";
                +	treeObj.updateNode(nodes[0]);
                +}
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/fn.zTree._z.html b/alive-admin/src/main/resources/static/ztree/api/en/fn.zTree._z.html new file mode 100644 index 0000000..61da261 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/fn.zTree._z.html @@ -0,0 +1,13 @@ +
                +
                +

                JSON$.fn.zTree._z

                +

                Overview[ depends on jquery.ztree.core js ]

                +
                +

                +
                +

                All of the methods in zTree v3.x are available through the '$. fn.zTree._z' calls, open it for you to develop your own zTree plug-ins.

                +

                If you have no special requirements, please don't use this object, and don't modify the methods in this object.

                +
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/fn.zTree.destroy.html b/alive-admin/src/main/resources/static/ztree/api/en/fn.zTree.destroy.html new file mode 100644 index 0000000..3a31699 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/fn.zTree.destroy.html @@ -0,0 +1,28 @@ +
                +
                +

                Function(treeId)$.fn.zTree.destroy

                +

                Overview[ depends on jquery.ztree.core js ]

                +
                +

                +
                +

                From zTree v3.4, zTree support the method for destruction.

                +

                1. This method can destroy the zTree with specify treeId, and can destroy all of the zTrees.

                +

                2. If you want to destory some one zTree, you can use the 'zTreeObj.destroy()' method.

                +

                3. If you want to use the tree which has been destroyed, you must use the 'init()' method at first.

                +
                +
                +

                Function Parameter Descriptions

                +
                +

                treeIdString

                +

                zTree unique identifier

                +

                If this parameter is omitted, then will destroy all of the zTrees.

                +

                Return none

                +

                no return value

                +
                +

                Examples of function

                +

                1. destroy the zTree which its id is 'treeDemo'

                +
                $.fn.zTree.destroy("treeDemo");
                +

                2. destroy all of the zTrees

                +
                $.fn.zTree.destroy();
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/fn.zTree.getZTreeObj.html b/alive-admin/src/main/resources/static/ztree/api/en/fn.zTree.getZTreeObj.html new file mode 100644 index 0000000..2bc0447 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/fn.zTree.getZTreeObj.html @@ -0,0 +1,25 @@ +
                +
                +

                Function(treeId)$.fn.zTree.getZTreeObj

                +

                Overview[ depends on jquery.ztree.core js ]

                +
                +

                +
                +

                zTree v3.x specifically provide the method which can use the tree's Id to get zTree object.

                +

                Please initialize zTree first, then you can use this method.

                +

                Users don't need to set the global variable to hold the zTree object, and all of the callback will return 'treeId' parameters, the user can always use this method to get the zTree object.

                +
                +
                +

                Function Parameter Descriptions

                +
                +

                treeIdString

                +

                zTree unique identifier

                +

                Return JSON

                +

                zTree object

                +

                This object can provide the methods of operate the zTree

                +
                +

                Examples of function

                +

                1. Get the zTree object which id is 'tree'

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/fn.zTree.init.html b/alive-admin/src/main/resources/static/ztree/api/en/fn.zTree.init.html new file mode 100644 index 0000000..cf97d2b --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/fn.zTree.init.html @@ -0,0 +1,75 @@ +
                +
                +

                Function(obj, zSetting, zNodes)$.fn.zTree.init

                +

                Overview[ depends on jquery.ztree.core js ]

                +
                +

                +
                +

                The method which used to create zTree.

                +

                1. The web page need to use W3C markup. For example: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

                +

                2. Need to load jquery-1.4.2.js or other higher versions.

                +

                3. Need to load jquery-ztree.core-3.0.js. If you need to use the edit mode or checkbox / radio mode, you need to load jquery-ztree.exedit-3.0.js and jquery-ztree.excheck-3.0.js.

                +

                4. Need to load zTreeStyle.css and image files

                +

                5. If you need to use custom icons, please refer to the appropriate Demo.

                +

                6. Note: You need to set zTree container's class name to "ztree". If you need to change, don't forget to modify the css file. If you need other special styles, can modify the css file to their own needs.

                +
                +
                +

                Function Parameter Descriptions

                +
                +

                objectjQuery Object

                +

                DOM Container for zTree

                +

                zSettingJSON

                +

                zTree's configuration data, please refer to "setting details" in the API Document.

                +

                zNodesArray(JSON) / JSON

                +

                zTree's node data, please refer to "treeNode data details" in the API Document.

                +

                1. zTree v3.x support to add single node, that is, if only to add one node, you can use JSON without using Array.

                +

                2. If you need asynchronous load root nodes, can be set to null or [ ]

                +

                3. If you use simple data mode, please refer to "setting.data.simpleData" in the API Document.

                +

                Return JSON

                +

                zTree object

                +

                This object can provide the methods of operate the zTree

                +

                You can use $.fn.zTree.getZTreeObj method at any time to obtain.

                +
                +

                Examples of setting & function

                +

                1. create a simple tree

                +
                <!DOCTYPE html>
                +<HTML>
                + <HEAD>
                +  <TITLE> ZTREE DEMO </TITLE>
                +  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
                +  <link rel="stylesheet" href="zTreeStyle/zTreeStyle.css" type="text/css">
                +  <script type="text/javascript" src="jquery-1.4.2.js"></script>
                +  <script type="text/javascript" src="jquery.ztree.core-3.5.js"></script>
                +<!--
                +  <script type="text/javascript" src="jquery.ztree.excheck-3.5.js"></script>
                +  <script type="text/javascript" src="jquery.ztree.exedit-3.5.js"></script>
                +-->
                +  <SCRIPT type="text/javascript" >
                +	var zTreeObj,
                +	setting = {
                +		view: {
                +			selectedMulti: false
                +		}
                +	},
                +	zTreeNodes = [
                +		{"name":"Site Map", open:true, children: [
                +			{ "name":"google", "url":"http://www.google.com", "target":"_blank"},
                +			{ "name":"baidu", "url":"http://baidu.com", "target":"_blank"},
                +			{ "name":"sina", "url":"http://www.sina.com.cn", "target":"_blank"}
                +			]
                +		}
                +	];
                +
                +	$(document).ready(function(){
                +		zTreeObj = $.fn.zTree.init($("#tree"), setting, zTreeNodes);
                +
                +	});
                +  </SCRIPT>
                + </HEAD>
                +
                +<BODY>
                +<ul id="tree" class="ztree" style="width:230px; overflow:auto;"></ul>
                + </BODY>
                +</HTML>
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/setting.async.autoParam.html b/alive-admin/src/main/resources/static/ztree/api/en/setting.async.autoParam.html new file mode 100644 index 0000000..85cd469 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/setting.async.autoParam.html @@ -0,0 +1,39 @@ +
                +
                +

                Array(String)setting.async.autoParam

                +

                Overview[ depends on jquery.ztree.core js ]

                +
                +

                +
                +

                Required automatically submit the parameters about the properties of the parent node, when the asynchronous load. It is valid when [setting.async.enable = true]

                +

                Default:[ ]

                +
                +
                +

                Array(String) Format

                +
                +

                1. Just save the attribute name of node to the array. For example: ["id", "name"]

                +

                2. You can change the parameter name. For example: server only accepts "zId" -- ["id=zId"]

                +
                +

                Examples of setting

                +

                1. set auto commit 'id' attribute

                +
                var setting = {
                +	async: {
                +		enable: true,
                +		url: "http://host/getNode.php",
                +		autoParam: ["id"]
                +	}
                +};
                +If have the parent node: {id:1, name:"test"}, When asynchronously load this parent node's child nodes, will be submitted parameters: id=1
                +......
                +

                2. set auto commit 'id' attribute, but parameter name is 'zId'

                +
                var setting = {
                +	async: {
                +		enable: true,
                +		url: "http://host/getNode.php",
                +		autoParam: ["id=zId"]
                +	}
                +};
                +If have the parent node: {id:1, name:"test"}, When asynchronously load this parent node's child nodes, will be submitted parameters: zId=1
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/setting.async.contentType.html b/alive-admin/src/main/resources/static/ztree/api/en/setting.async.contentType.html new file mode 100644 index 0000000..cc9bfcd --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/setting.async.contentType.html @@ -0,0 +1,29 @@ +
                +
                +

                Stringsetting.async.contentType

                +

                Overview[ depends on jquery.ztree.core js ]

                +
                +

                +
                +

                When Ajax sending data to the server, use this content-type. It is valid when [setting.async.enable = true]

                +

                Default:"application/x-www-form-urlencoded"

                +
                +
                +

                String Format

                +
                +

                contentType = "application/x-www-form-urlencoded", means: the sending data format is "form" format.

                +

                contentType = "application/json", means: the sending data format is "json" format. (for .Net)

                +
                +

                Examples of setting

                +

                1. set the sending data format to "json" format.

                +
                var setting = {
                +	async: {
                +		enable: true,
                +		contentType: "application/json",
                +		url: "http://host/getNode.php",
                +		autoParam: ["id", "name"]
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/setting.async.dataFilter.html b/alive-admin/src/main/resources/static/ztree/api/en/setting.async.dataFilter.html new file mode 100644 index 0000000..34733e4 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/setting.async.dataFilter.html @@ -0,0 +1,45 @@ +
                +
                +

                Function(treeId, parentNode, responseData)setting.async.dataFilter

                +

                Overview[ depends on jquery.ztree.core js ]

                +
                +

                +
                +

                Function used to pre-process for the return data of Ajax. It is valid when [setting.async.enable = true]

                +

                Default: null

                +
                +
                +

                Function Parameter Descriptions

                +
                +

                treeIdString

                +

                zTree unique identifier: treeId, easy for users to control.

                +

                parentNodeJSON

                +

                Parent node's JSON data object

                +

                When asynchronously loading the root, the parentNode = null

                +

                responseDataArray(JSON) / JSON / String

                +

                Ajax got Array (JSON) / JSON / String data objects

                +

                From v3.4, support the string with XML format.

                +

                Return Array(JSON) / JSON

                +

                The return value should be the JSON data structure which is supported by the zTree.

                +

                v3.x supports to load single node JSON data object.

                +
                +

                Examples of setting & function

                +

                1. Modify the node name attribute which is ajax got.

                +
                function ajaxDataFilter(treeId, parentNode, responseData) {
                +    if (responseData) {
                +      for(var i =0; i < responseData.length; i++) {
                +        responseData[i].name += "_filter";
                +      }
                +    }
                +    return responseData;
                +};
                +var setting = {
                +	async: {
                +		enable: true,
                +		url: "http://host/getNode.php",
                +		dataFilter: ajaxDataFilter
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/setting.async.dataType.html b/alive-admin/src/main/resources/static/ztree/api/en/setting.async.dataType.html new file mode 100644 index 0000000..e6672e9 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/setting.async.dataType.html @@ -0,0 +1,29 @@ +
                +
                +

                Stringsetting.async.dataType

                +

                Overview[ depends on jquery.ztree.core js ]

                +
                +

                +
                +

                The data type of Ajax. It is valid when [setting.async.enable = true]

                +

                Default:"text"

                +
                +
                +

                String Format

                +
                +

                dataType = "text", It can meet most of the needs.

                +

                The 'dataType' in zTree and jQuery's ajax is same.

                +
                +

                Examples of setting

                +

                1. Set the dataType which ajax got is text.

                +
                var setting = {
                +	async: {
                +		enable: true,
                +		dataType: "text",
                +		url: "http://host/getNode.php",
                +		autoParam: ["id", "name"]
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/setting.async.enable.html b/alive-admin/src/main/resources/static/ztree/api/en/setting.async.enable.html new file mode 100644 index 0000000..806ba6c --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/setting.async.enable.html @@ -0,0 +1,30 @@ +
                +
                +

                Booleansetting.async.enable

                +

                Overview[ depends on jquery.ztree.core js ]

                +
                +

                +
                +

                Set zTree asynchronous loading mode is turned on or off.

                +

                Default: false

                +
                +
                +

                Boolean Format

                +
                +

                true - turn on asynchronous loading mode

                +

                false - turn off asynchronous loading mode

                +

                If set it is true, you must set attributes in setting.async

                +

                If you don't pass 'treeNodes' parameter when initialize zTree, the root nodes will get by ajax.

                +
                +

                Examples of setting

                +

                1. Turn on asynchronous loading mode

                +
                var setting = {
                +	async: {
                +		enable: true,
                +		url: "http://host/getNode.php",
                +		autoParam: ["id", "name"]
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/setting.async.otherParam.html b/alive-admin/src/main/resources/static/ztree/api/en/setting.async.otherParam.html new file mode 100644 index 0000000..2e37390 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/setting.async.otherParam.html @@ -0,0 +1,40 @@ +
                +
                +

                Array(String) / JSONsetting.async.otherParam

                +

                Overview[ depends on jquery.ztree.core js ]

                +
                +

                +
                +

                The static parameters of the Ajax request. (key - value) It is valid when [setting.async.enable = true]

                +

                Default: [ ]

                +
                +
                +

                Array(String) Format

                +
                +

                Can be empty array. e.g. [ ]. If set key, you must set value, e.g. [key, value]. ([key] or [key, value, key] is wrong!!)

                +
                +

                JSON Format

                +
                +

                Use JSON data format set the key-value. e.g. { key1:value1, key2:value2 }

                +
                +

                Examples of setting

                +

                1. Use Array(String) Format

                +
                var setting = {
                +	async: {
                +		enable: true,
                +		url: "http://host/getNode.php",
                +		otherParam: ["id", "1", "name", "test"]
                +	}
                +};
                +when zTree send ajax, the parameters will has: id=1&name=test
                +

                2. Use JSON data Format

                +
                var setting = {
                +	async: {
                +		enable: true,
                +		url: "http://host/getNode.php",
                +		otherParam: { "id":"1", "name":"test"}
                +	}
                +};
                +when zTree send ajax, the parameters will has: id=1&name=test
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/setting.async.type.html b/alive-admin/src/main/resources/static/ztree/api/en/setting.async.type.html new file mode 100644 index 0000000..ae54338 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/setting.async.type.html @@ -0,0 +1,30 @@ +
                +
                +

                Stringsetting.async.type

                +

                Overview[ depends on jquery.ztree.core js ]

                +
                +

                +
                +

                Http request mode in ajax. It is valid when [setting.async.enable = true]

                +

                Defalut: "post"

                +
                +
                +

                String Format

                +
                +

                "post" - http request mode

                +

                "get" - http request mode

                +

                The 'type' in zTree and jQuery's ajax is same.

                +
                +

                Examples of setting

                +

                1. Set http request mode is 'get'

                +
                var setting = {
                +	async: {
                +		enable: true,
                +		type: "get",
                +		url: "http://host/getNode.php",
                +		autoParam: ["id", "name"]
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/setting.async.url.html b/alive-admin/src/main/resources/static/ztree/api/en/setting.async.url.html new file mode 100644 index 0000000..5587f29 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/setting.async.url.html @@ -0,0 +1,50 @@ +
                +
                +

                String / Function(treeId, treeNode)setting.async.url

                +

                Overview[ depends on jquery.ztree.core js ]

                +
                +

                +
                +

                The URL to which the ajax request is sent. It is valid when [setting.async.enable = true]

                +

                Default: ""

                +
                +
                +

                String Format

                +
                +

                A url string(e.g. "http://www.domain.com"). Note: please ensure that the url can be loaded

                +

                Url can also take parameters, please note that transcode.

                +
                +

                Function Parameter Descriptions

                +
                +

                treeIdString

                +

                zTree unique identifier: treeId, easy for users to control.

                +

                treeNodeJSON

                +

                Parent node's JSON data object

                +

                When asynchronously loading the root, the treeNode = null

                +

                Return String

                +

                Return value is same as 'String Format'

                +
                +

                Examples of setting & function

                +

                1. set ajax url is "nodes.php"

                +
                var setting = {
                +	async: {
                +		enable: true,
                +		url: "nodes.php",
                +		autoParam: ["id", "name"]
                +	}
                +};
                +......
                +

                2. set ajax url is "function"

                +
                function getAsyncUrl(treeId, treeNode) {
                +    return treeNode.isParent ? "nodes1.php" : "nodes2.php";
                +};
                +var setting = {
                +	async: {
                +		enable: true,
                +		url: getAsyncUrl,
                +		autoParam: ["id", "name"]
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/setting.callback.beforeAsync.html b/alive-admin/src/main/resources/static/ztree/api/en/setting.callback.beforeAsync.html new file mode 100644 index 0000000..6563ff2 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/setting.callback.beforeAsync.html @@ -0,0 +1,35 @@ +
                +
                +

                Function(treeId, treeNode)setting.callback.beforeAsync

                +

                Overview[ depends on jquery.ztree.core js ]

                +
                +

                +
                +

                Used to capture the event before zTree execute ajax, zTree based on return value to determine whether to execute ajax.

                +

                Default: null

                +
                +
                +

                Function Parameter Descriptions

                +
                +

                treeIdString

                +

                zTree unique identifier: treeId, easy for users to control.

                +

                treeNodeJSON

                +

                JSON data object of the parent node

                +

                When asynchronously loading the root, the treeNode = null

                +

                Return Boolean

                +

                return true or false

                +

                If return false, zTree will not execute ajax, and will not trigger the 'onAsyncSuccess / onAsyncError' callback.

                +
                +

                Examples of setting & function

                +

                1. If the parent node's attribute 'id' is 1, zTree will not execute ajax.

                +
                function zTreeBeforeAsync(treeId, treeNode) {
                +    return (treeNode.id !== 1);
                +};
                +var setting = {
                +	callback: {
                +		beforeAsync: zTreeBeforeAsync
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/setting.callback.beforeCheck.html b/alive-admin/src/main/resources/static/ztree/api/en/setting.callback.beforeCheck.html new file mode 100644 index 0000000..5260412 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/setting.callback.beforeCheck.html @@ -0,0 +1,34 @@ +
                +
                +

                Function(treeId, treeNode)setting.callback.beforeCheck

                +

                Overview[ depends on jquery.ztree.excheck js ]

                +
                +

                +
                +

                Used to capture the event before check or uncheck node, zTree based on return value to determine whether to change check state.

                +

                Default: null

                +
                +
                +

                Function Parameter Descriptions

                +
                +

                treeIdString

                +

                zTree unique identifier: treeId, easy for users to control.

                +

                treeNodeJSON

                +

                JSON data object of the node which is checked or unchecked

                +

                Return Boolean

                +

                return true or false

                +

                If return false, zTree will not change check state, and will not trigger the 'onCheck' callback.

                +
                +

                Examples of setting & function

                +

                1. disable to change check state of all nodes, and keep the check state initialization

                +
                function zTreeBeforeCheck(treeId, treeNode) {
                +    return false;
                +};
                +var setting = {
                +	callback: {
                +		beforeCheck: zTreeBeforeCheck
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/setting.callback.beforeClick.html b/alive-admin/src/main/resources/static/ztree/api/en/setting.callback.beforeClick.html new file mode 100644 index 0000000..8a65448 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/setting.callback.beforeClick.html @@ -0,0 +1,49 @@ +
                +
                +

                Function(treeId, treeNode, clickFlag)setting.callback.beforeClick

                +

                Overview[ depends on jquery.ztree.core js ]

                +
                +

                +
                +

                Used to capture the event before click node, zTree based on return value to determine whether to trigger the 'onClick' callback.

                +

                Default: null

                +
                +
                +

                Function Parameter Descriptions

                +
                +

                treeIdString

                +

                zTree unique identifier: treeId, easy for users to control.

                +

                treeNodeJSON

                +

                JSON data object of the node which is clicked

                +

                clickFlagNumber

                +

                Node is selected or deselected state, please see table below for details

                + + + + + + + + + + + + +
                clickFlagselectedMultiautoCancelSelected
                &&
                event.ctrlKey
                isSelectedoperate for selected
                1truefalsefalsenode is selected (single)
                1truefalsetruenode is selected (single)
                2truetruefalsenode is selected (multi)
                0truetruetruenode is deselected
                1falsefalsefalsenode is selected (single)
                1falsefalsetruenode is selected (single)
                1falsetruefalsenode is selected (single)
                0falsetruetruenode is deselected
                +

                Return Boolean

                +

                return true or false

                +

                If return false, zTree will not change selected state, and will not trigger the 'onClick' callback.

                +
                +

                Examples of setting & function

                +

                1. disabled to click the node

                +
                function zTreeBeforeClick(treeId, treeNode, clickFlag) {
                +    return (treeNode.id !== 1);
                +};
                +var setting = {
                +	callback: {
                +		beforeClick: zTreeBeforeClick
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/setting.callback.beforeCollapse.html b/alive-admin/src/main/resources/static/ztree/api/en/setting.callback.beforeCollapse.html new file mode 100644 index 0000000..b2713e8 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/setting.callback.beforeCollapse.html @@ -0,0 +1,34 @@ +
                +
                +

                Function(treeId, treeNode)setting.callback.beforeCollapse

                +

                Overview[ depends on jquery.ztree.core js ]

                +
                +

                +
                +

                Used to capture the event before collapse node, zTree based on return value to determine whether to collapse node.

                +

                Default: null

                +
                +
                +

                Function Parameter Descriptions

                +
                +

                treeIdString

                +

                zTree unique identifier: treeId, easy for users to control.

                +

                treeNodeJSON

                +

                JSON data object of the node which will be collapsed

                +

                Return Boolean

                +

                return true or false

                +

                If return false, zTree will not collapse node, and will not trigger the 'onCollapse' callback.

                +
                +

                Examples of setting & function

                +

                1. disabled to collapse node which is expanded

                +
                function zTreeBeforeCollapse(treeId, treeNode) {
                +    return false;
                +};
                +var setting = {
                +	callback: {
                +		beforeCollapse: zTreeBeforeCollapse
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/setting.callback.beforeDblClick.html b/alive-admin/src/main/resources/static/ztree/api/en/setting.callback.beforeDblClick.html new file mode 100644 index 0000000..6f1c743 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/setting.callback.beforeDblClick.html @@ -0,0 +1,36 @@ +
                +
                +

                Function(treeId, treeNode)setting.callback.beforeDblClick

                +

                Overview[ depends on jquery.ztree.core js ]

                +
                +

                +
                +

                Used to capture the dblclick event before the 'onDblClick' callback, zTree based on return value to determine whether to trigger the 'onDblClick' callback.

                +

                Default: null

                +
                +
                +

                Function Parameter Descriptions

                +
                +

                treeIdString

                +

                zTree unique identifier: treeId, easy for users to control.

                +

                treeNodeJSON

                +

                JSON data object of the node which is double clicked

                +

                If the DOM which dblclicked isn't a node, it will return null.

                +

                Return Boolean

                +

                return true or false

                +

                If return false, ztree will not trigger the 'onDblClick' callback, no effect on other operations.

                +

                This callback function does not affect the dblclick the parent node to auto expand, please refer to setting.view.dblClickExpand properties.

                +
                +

                Examples of setting & function

                +

                1. disable to trigger the 'onDblClick' callback

                +
                function zTreeBeforeDblClick(treeId, treeNode) {
                +    return false;
                +};
                +var setting = {
                +	callback: {
                +		beforeDblClick: zTreeBeforeDblClick
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/setting.callback.beforeDrag.html b/alive-admin/src/main/resources/static/ztree/api/en/setting.callback.beforeDrag.html new file mode 100644 index 0000000..5175244 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/setting.callback.beforeDrag.html @@ -0,0 +1,39 @@ +
                +
                +

                Function(treeId, treeNodes)setting.callback.beforeDrag

                +

                Overview[ depends on jquery.ztree.exedit js ]

                +
                +

                +
                +

                Used to capture the event before drag node, zTree based on return value to determine whether to start to drag node.

                +

                Default: null

                +
                +
                +

                Function Parameter Descriptions

                +
                +

                treeIdString

                +

                zTree unique identifier: treeId, the tree is what the treeNodes are belong to, easy for users to control.

                +

                treeNodesArray(JSON)

                +

                A collection of the nodes which will be dragged

                +

                v3.x allows drag and drop multiple sibling nodes, so this parameter is modified to Array(JSON).

                +

                If the selected nodes aren't the sibling nodes, you can only drag one node which mouse over.

                +

                Return Boolean

                +

                return true or false

                +

                If return false, zTree will stop drag, and will not trigger the 'onDrag / beforeDrop / onDrop' callback.

                +
                +

                Examples of setting & function

                +

                1. disable to drag all node

                +
                function zTreeBeforeDrag(treeId, treeNodes) {
                +    return false;
                +};
                +var setting = {
                +	edit: {
                +		enable: true
                +	},
                +	callback: {
                +		beforeDrag: zTreeBeforeDrag
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/setting.callback.beforeDragOpen.html b/alive-admin/src/main/resources/static/ztree/api/en/setting.callback.beforeDragOpen.html new file mode 100644 index 0000000..ed1ae97 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/setting.callback.beforeDragOpen.html @@ -0,0 +1,37 @@ +
                +
                +

                Function(treeId, treeNode)setting.callback.beforeDragOpen

                +

                Overview[ depends on jquery.ztree.exedit js ]

                +
                +

                +
                +

                Used to capture the event when drag node to collapsed parent node, zTree based on return value to determine whether to auto expand parent node.

                +

                Default: null

                +
                +
                +

                Function Parameter Descriptions

                +
                +

                treeIdString

                +

                zTree unique identifier: treeId, the tree is what the treeNode(parent node) is belong to, easy for users to control.

                +

                treeNodeJSON

                +

                JSON data object of the parent node which will be auto expanded

                +

                Return Boolean

                +

                return true or false

                +

                If return false, zTree will not auto expand parent node.

                +
                +

                Examples of setting & function

                +

                1. disable to auto expand parent node.

                +
                function zTreeBeforeDragOpen(treeId, treeNode) {
                +    return false;
                +};
                +var setting = {
                +	edit: {
                +		enable: true
                +	},
                +	callback: {
                +		beforeDragOpen: zTreeBeforeDragOpen
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/setting.callback.beforeDrop.html b/alive-admin/src/main/resources/static/ztree/api/en/setting.callback.beforeDrop.html new file mode 100644 index 0000000..7014321 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/setting.callback.beforeDrop.html @@ -0,0 +1,50 @@ +
                +
                +

                Function(treeId, treeNodes, targetNode, moveType, isCopy)setting.callback.beforeDrop

                +

                Overview[ depends on jquery.ztree.exedit js ]

                +
                +

                +
                +

                Used to capture the event before drag-drop node, zTree based on return value to determine whether to allow drag-drop node.

                +

                Default: null

                +

                When drop the nodes, if the dragged nodes is not in a valid location, this callback will not triggered, and will restore the original position.

                +
                +
                +

                Function Parameter Descriptions

                +
                +

                treeIdString

                +

                zTree unique identifier: treeId, the tree is what the targetNode is belong to, easy for users to control.

                +

                treeNodesArray(JSON)

                +

                A collection of the nodes which has been dragged

                +

                The treeNodes are the data of the nodes which has been dragged, when copy nodes or move nodes.

                +

                targetNodeJSON

                +

                JSON data object of the target node which treeNodes are drag-dropped.

                +

                If the treeNodes will be root node, the targetNode = null

                +

                moveTypeString

                +

                the relative position of move to the target node

                +

                "inner": will be child of targetNode

                +

                "prev": will be sibling node, and be in front of targetNode

                +

                "next": will be sibling node, and be behind targetNode

                +

                isCopyBoolean

                +

                the flag used to judge copy node or move node

                +

                true: copy node; false: move node

                +

                Return Boolean

                +

                return true or false

                +

                If return false, zTree will restore the dragged nodes, and will not trigger the 'onDrop' callback.

                +
                +

                Examples of setting & function

                +

                1. disable to drag nodes to root

                +
                function zTreeBeforeDrop(treeId, treeNodes, targetNode, moveType) {
                +    return !(targetNode == null || (moveType != "inner" && !targetNode.parentTId));
                +};
                +var setting = {
                +	edit: {
                +		enable: true
                +	},
                +	callback: {
                +		beforeDrop: zTreeBeforeDrop
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/setting.callback.beforeEditName.html b/alive-admin/src/main/resources/static/ztree/api/en/setting.callback.beforeEditName.html new file mode 100644 index 0000000..8772a3e --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/setting.callback.beforeEditName.html @@ -0,0 +1,38 @@ +
                +
                +

                Function(treeId, treeNode)setting.callback.beforeEditName

                +

                Overview[ depends on jquery.ztree.exedit js ]

                +
                +

                +
                +

                Used to capture the event before click edit button, zTree based on return value to determine whether to allow to edit the name.

                +

                This callback is used to capture the event which edit button is clicked, then trigger the custom editing operation.

                +

                Default: null

                +
                +
                +

                Function Parameter Descriptions

                +
                +

                treeIdString

                +

                zTree unique identifier: treeId, easy for users to control.

                +

                treeNodeJSON

                +

                JSON data object of the node which will be edited name.

                +

                Return Boolean

                +

                return true or false

                +

                If return false, the node will not be able to edit the name.

                +
                +

                Examples of setting & function

                +

                1. disable to edit the parent node's name

                +
                function zTreeBeforeEditName(treeId, treeNode) {
                +	return !treeNode.isParent;
                +}
                +var setting = {
                +	edit: {
                +		enable: true
                +	},
                +	callback: {
                +		beforeEditName: zTreeBeforeEditName
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/setting.callback.beforeExpand.html b/alive-admin/src/main/resources/static/ztree/api/en/setting.callback.beforeExpand.html new file mode 100644 index 0000000..73cf55a --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/setting.callback.beforeExpand.html @@ -0,0 +1,34 @@ +
                +
                +

                Function(treeId, treeNode)setting.callback.beforeExpand

                +

                Overview[ depends on jquery.ztree.core js ]

                +
                +

                +
                +

                Used to capture the event before expand node, zTree based on return value to determine whether to expand node.

                +

                Default: null

                +
                +
                +

                Function Parameter Descriptions

                +
                +

                treeIdString

                +

                zTree unique identifier: treeId, easy for users to control.

                +

                treeNodeJSON

                +

                JSON data object of the node which will be expanded

                +

                Return Boolean

                +

                return true or false

                +

                If return false, zTree will not expand node, and will not trigger the 'onExpand' callback.

                +
                +

                Examples of setting & function

                +

                1. disabled to expand node which is collapsed

                +
                function zTreeBeforeExpand(treeId, treeNode) {
                +    return false;
                +};
                +var setting = {
                +	callback: {
                +		beforeExpand: zTreeBeforeExpand
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/setting.callback.beforeMouseDown.html b/alive-admin/src/main/resources/static/ztree/api/en/setting.callback.beforeMouseDown.html new file mode 100644 index 0000000..4af0818 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/setting.callback.beforeMouseDown.html @@ -0,0 +1,35 @@ +
                +
                +

                Function(treeId, treeNode)setting.callback.beforeMouseDown

                +

                Overview[ depends on jquery.ztree.core js ]

                +
                +

                +
                +

                Used to capture the mousedown event before the 'onMouseDown' callback, zTree based on return value to determine whether to trigger the 'onMouseDown' callback.

                +

                Default: null

                +
                +
                +

                Function Parameter Descriptions

                +
                +

                treeIdString

                +

                zTree unique identifier: treeId, easy for users to control.

                +

                treeNodeJSON

                +

                JSON data object of the node which mouse over

                +

                If the DOM which mouse over isn't a node, it will return null.

                +

                Return Boolean

                +

                return true or false

                +

                If return false, zTree will not trigger the 'onMouseDown' callback, no effect on other operations.

                +
                +

                Examples of setting & function

                +

                1. disable to trigger the 'onMouseDown' callback

                +
                function zTreeBeforeMouseDown(treeId, treeNode) {
                +    return false;
                +};
                +var setting = {
                +	callback: {
                +		beforeMouseDown: zTreeBeforeMouseDown
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/setting.callback.beforeMouseUp.html b/alive-admin/src/main/resources/static/ztree/api/en/setting.callback.beforeMouseUp.html new file mode 100644 index 0000000..0c008fc --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/setting.callback.beforeMouseUp.html @@ -0,0 +1,35 @@ +
                +
                +

                Function(treeId, treeNode)setting.callback.beforeMouseUp

                +

                Overview[ depends on jquery.ztree.core js ]

                +
                +

                +
                +

                Used to capture the mouseup event before the 'onMouseUp' callback, zTree based on return value to determine whether to trigger the 'onMouseUp' callback.

                +

                Default: null

                +
                +
                +

                Function Parameter Descriptions

                +
                +

                treeIdString

                +

                zTree unique identifier: treeId, easy for users to control.

                +

                treeNodeJSON

                +

                JSON data object of the node which mouse over

                +

                If the DOM which mouse over isn't a node, it will return null.

                +

                Return Boolean

                +

                return true or false

                +

                If return false, zTree will not trigger the 'onMouseUp' callback, no effect on other operations.

                +
                +

                Examples of setting & function

                +

                1. disable to trigger the 'onMouseUp' callback

                +
                function zTreeBeforeMouseUp(treeId, treeNode) {
                +    return false;
                +};
                +var setting = {
                +	callback: {
                +		beforeMouseUp: zTreeBeforeMouseUp
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/setting.callback.beforeRemove.html b/alive-admin/src/main/resources/static/ztree/api/en/setting.callback.beforeRemove.html new file mode 100644 index 0000000..38e14c1 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/setting.callback.beforeRemove.html @@ -0,0 +1,37 @@ +
                +
                +

                Function(treeId, treeNode)setting.callback.beforeRemove

                +

                Overview[ depends on jquery.ztree.exedit js ]

                +
                +

                +
                +

                Used to capture the event before remove node, zTree based on return value to determine whether to allow to remove node.

                +

                Default: null

                +
                +
                +

                Function Parameter Descriptions

                +
                +

                treeIdString

                +

                zTree unique identifier: treeId, easy for users to control.

                +

                treeNodeJSON

                +

                JSON data object of the node which will be removed.

                +

                Return Boolean

                +

                return true or false

                +

                If return false, zTree will not remove node, and will not trigger the 'onRemove' callback.

                +
                +

                Examples of setting & function

                +

                1. disable to remove node

                +
                function zTreeBeforeRemove(treeId, treeNode) {
                +	return false;
                +}
                +var setting = {
                +	edit: {
                +		enable: true
                +	},
                +	callback: {
                +		beforeRemove: zTreeBeforeRemove
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/setting.callback.beforeRename.html b/alive-admin/src/main/resources/static/ztree/api/en/setting.callback.beforeRename.html new file mode 100644 index 0000000..0a51283 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/setting.callback.beforeRename.html @@ -0,0 +1,41 @@ +
                +
                +

                Function(treeId, treeNode, newName)setting.callback.beforeRename

                +

                Overview[ depends on jquery.ztree.exedit js ]

                +
                +

                +
                +

                Used to capture the event before rename(when input DOM blur or press Enter Key), zTree based on return value to determine whether to allow to rename node.

                +

                When node is editing name, press the ESC key to restore the original name and stop edit name.

                +

                Default: null

                +
                +
                +

                Function Parameter Descriptions

                +
                +

                treeIdString

                +

                zTree unique identifier: treeId, easy for users to control.

                +

                treeNodeJSON

                +

                JSON data object of the node which will be rename.

                +

                newNameString

                +

                the new name

                +

                Return Boolean

                +

                return true or false

                +

                If return false, the treeNode will keep the editing name, don't trigger the 'onRename' callback, and will ignore other enents, until the callback return true.

                +

                If returns false, zTree will not set the input box to get focus to avoid the warning message which led to repeated triggering ‘beforeRename’ callback. Please use editName() method to set the input box to get focus when user close the warning message.

                +
                +

                Examples of setting & function

                +

                1. the length of the new name can't less than 5

                +
                function zTreeBeforeRename(treeId, treeNode, newName) {
                +	return newName.length > 5;
                +}
                +var setting = {
                +	edit: {
                +		enable: true
                +	},
                +	callback: {
                +		beforeRename: zTreeBeforeRename
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/setting.callback.beforeRightClick.html b/alive-admin/src/main/resources/static/ztree/api/en/setting.callback.beforeRightClick.html new file mode 100644 index 0000000..15c38cd --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/setting.callback.beforeRightClick.html @@ -0,0 +1,35 @@ +
                +
                +

                Function(treeId, treeNode)setting.callback.beforeRightClick

                +

                Overview[ depends on jquery.ztree.core js ]

                +
                +

                +
                +

                Used to capture the right click event before the 'onRightClick' callback, zTree based on return value to determine whether to trigger the 'onRightClick' callback.

                +

                Default: null

                +
                +
                +

                Function Parameter Descriptions

                +
                +

                treeIdString

                +

                zTree unique identifier: treeId, easy for users to control.

                +

                treeNodeJSON

                +

                JSON data object of the node which is mouse right clicked

                +

                If the DOM which mouse right clicked isn't a node, it will return null.

                +

                ReturnBoolean

                +

                return true or false

                +

                If return false, ztree will not trigger the 'onRightClick' callback, no effect on other operations.

                +
                +

                Examples of setting & function

                +

                1. disable to trigger the 'onRightClick' callback

                +
                function zTreeBeforeRightClick(treeId, treeNode) {
                +    return false;
                +};
                +var setting = {
                +	callback: {
                +		beforeRightClick: zTreeBeforeRightClick
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/setting.callback.onAsyncError.html b/alive-admin/src/main/resources/static/ztree/api/en/setting.callback.onAsyncError.html new file mode 100644 index 0000000..785c8d8 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/setting.callback.onAsyncError.html @@ -0,0 +1,42 @@ +
                +
                +

                setting.callback.onAsyncError

                +

                Function(event, treeId, treeNode, XMLHttpRequest, textStatus, errorThrown) 

                +

                Overview[ depends on jquery.ztree.core js ]

                +
                +

                +
                +

                Used to capture the error event when execute ajax.

                +

                If you set 'setting.callback.beforeAsync',and return false, zTree will not execute ajax, and will not trigger the 'onAsyncSuccess / onAsyncError' callback.

                +

                Default: null

                +
                +
                +

                Function Parameter Descriptions

                +
                +

                eventjs event Object

                +

                event Object

                +

                treeIdString

                +

                zTree unique identifier: treeId, easy for users to control.

                +

                treeNodeJSON

                +

                JSON data object of the parent node

                +

                When load root nodes, treeNode = null

                +

                XMLHttpRequestString

                +

                XMLHttpRequest Object, please refer to JQuery API documentation.

                +

                textStatusString

                +

                a string categorizing the status of the request("success", "error"...), please refer to JQuery API documentation.

                +

                errorThrownString

                +

                eWhen an HTTP error occurs, errorThrown receives the textual portion of the HTTP status, please refer to JQuery API documentation.

                +
                +

                Examples of setting & function

                +

                1. When execute ajax make error, alert message.

                +
                function zTreeOnAsyncError(event, treeId, treeNode, XMLHttpRequest, textStatus, errorThrown) {
                +    alert(XMLHttpRequest);
                +};
                +var setting = {
                +	callback: {
                +		onAsyncError: zTreeOnAsyncError
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/setting.callback.onAsyncSuccess.html b/alive-admin/src/main/resources/static/ztree/api/en/setting.callback.onAsyncSuccess.html new file mode 100644 index 0000000..2722691 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/setting.callback.onAsyncSuccess.html @@ -0,0 +1,38 @@ +
                +
                +

                Function(event, treeId, treeNode, msg)setting.callback.onAsyncSuccess

                +

                Overview[ depends on jquery.ztree.core js ]

                +
                +

                +
                +

                Used to capture the complete success event when execute ajax.

                +

                If you set 'setting.callback.beforeAsync',and return false, zTree will not execute ajax, and will not trigger the 'onAsyncSuccess / onAsyncError' callback.

                +

                Default: null

                +
                +
                +

                Function Parameter Descriptions

                +
                +

                eventjs event Object

                +

                event Object

                +

                treeIdString

                +

                zTree unique identifier: treeId, easy for users to control.

                +

                treeNodeJSON

                +

                JSON data object of the parent node

                +

                When load root nodes, treeNode = null

                +

                msgString / Object

                +

                The actualnode data which got by ajax. User-friendly debugging.

                +

                The actual data's type of msg is affected by 'setting.async.dataType', please refer to JQuery API documentation.

                +
                +

                Examples of setting & function

                +

                1. When execute ajax complete success, alert message.

                +
                function zTreeOnAsyncSuccess(event, treeId, treeNode, msg) {
                +    alert(msg);
                +};
                +var setting = {
                +	callback: {
                +		onAsyncSuccess: zTreeOnAsyncSuccess
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/setting.callback.onCheck.html b/alive-admin/src/main/resources/static/ztree/api/en/setting.callback.onCheck.html new file mode 100644 index 0000000..ed33f8d --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/setting.callback.onCheck.html @@ -0,0 +1,34 @@ +
                +
                +

                Function(event, treeId, treeNode)setting.callback.onCheck

                +

                Overview[ depends on jquery.ztree.excheck js ]

                +
                +

                +
                +

                Used to capture the check or uncheck event when check or uncheck the checkbox and radio.

                +

                If you set 'setting.callback.beforeCheck',and return false, zTree will not change check state, and will not trigger the 'onCheck' callback.

                +

                Default: null

                +
                +
                +

                Function Parameter Descriptions

                +
                +

                eventjs event Object

                +

                event Object

                +

                treeIdString

                +

                zTree unique identifier: treeId, easy for users to control.

                +

                treeNodeJSON

                +

                JSON data object of the node which is checked or unchecked

                +
                +

                Examples of setting & function

                +

                1. When check or uncheck the checkbox and radio, alert info about 'tId' and 'name' and 'checked'.

                +
                function zTreeOnCheck(event, treeId, treeNode) {
                +    alert(treeNode.tId + ", " + treeNode.name + "," + treeNode.checked);
                +};
                +var setting = {
                +	callback: {
                +		onCheck: zTreeOnCheck
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/setting.callback.onClick.html b/alive-admin/src/main/resources/static/ztree/api/en/setting.callback.onClick.html new file mode 100644 index 0000000..a6ba29a --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/setting.callback.onClick.html @@ -0,0 +1,49 @@ +
                +
                +

                Function(event, treeId, treeNode, clickFlag)setting.callback.onClick

                +

                Overview[ depends on jquery.ztree.core js ]

                +
                +

                +
                +

                Used to capture the click event when click node.

                +

                If you set 'setting.callback.beforeClick',and return false, zTree will not change selected state, and will not trigger the 'onClick' callback.

                +

                Default: null

                +
                +
                +

                Function Parameter Descriptions

                +
                +

                eventjs event Object

                +

                event Object

                +

                treeIdString

                +

                zTree unique identifier: treeId, easy for users to control.

                +

                treeNodeJSON

                +

                JSON data object of the node which is clicked

                +

                clickFlagNumber

                +

                Node is selected or deselected state, please see table below for details

                + + + + + + + + + + + + +
                clickFlagselectedMultiautoCancelSelected
                &&
                event.ctrlKey
                isSelectedoperate for selected
                1truefalsefalsenode is selected (single)
                1truefalsetruenode is selected (single)
                2truetruefalsenode is selected (multi)
                0truetruetruenode is deselected
                1falsefalsefalsenode is selected (single)
                1falsefalsetruenode is selected (single)
                1falsetruefalsenode is selected (single)
                0falsetruetruenode is deselected
                +
                +

                Examples of setting & function

                +

                1. When click node, alert info about 'tId' and 'name'.

                +
                function zTreeOnClick(event, treeId, treeNode) {
                +    alert(treeNode.tId + ", " + treeNode.name);
                +};
                +var setting = {
                +	callback: {
                +		onClick: zTreeOnClick
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/setting.callback.onCollapse.html b/alive-admin/src/main/resources/static/ztree/api/en/setting.callback.onCollapse.html new file mode 100644 index 0000000..d605dc8 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/setting.callback.onCollapse.html @@ -0,0 +1,34 @@ +
                +
                +

                Function(event, treeId, treeNode)setting.callback.onCollapse

                +

                Overview[ depends on jquery.ztree.core js ]

                +
                +

                +
                +

                Used to capture the event when collapse node.

                +

                If you set 'setting.callback.beforeCollapse',and return false, zTree will not collapse node, and will not trigger the 'onCollapse' callback.

                +

                Default: null

                +
                +
                +

                Function Parameter Descriptions

                +
                +

                eventjs event Object

                +

                event Object

                +

                treeIdString

                +

                zTree unique identifier: treeId, easy for users to control.

                +

                treeNodeJSON

                +

                JSON data object of the node which will be collapsed

                +
                +

                Examples of setting & function

                +

                1. When collapse node, alert info about 'tId' and 'name'.

                +
                function zTreeOnCollapse(event, treeId, treeNode) {
                +    alert(treeNode.tId + ", " + treeNode.name);
                +};
                +var setting = {
                +	callback: {
                +		onCollapse: zTreeOnCollapse
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/setting.callback.onDblClick.html b/alive-admin/src/main/resources/static/ztree/api/en/setting.callback.onDblClick.html new file mode 100644 index 0000000..fbd47e8 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/setting.callback.onDblClick.html @@ -0,0 +1,35 @@ +
                +
                +

                Function(event, treeId, treeNode)setting.callback.onDblClick

                +

                Overview[ depends on jquery.ztree.core js ]

                +
                +

                +
                +

                Used to capture the dblclick event when double click node.

                +

                If you set 'setting.callback.beforeDblClick',and return false, zTree will not trigger the 'onDblClick' callback.

                +

                Default: null

                +
                +
                +

                Function Parameter Descriptions

                +
                +

                eventjs event Object

                +

                event Object

                +

                treeIdString

                +

                zTree unique identifier: treeId, easy for users to control.

                +

                treeNodeJSON

                +

                JSON data object of the node which is double clicked

                +

                If the DOM which dblclicked isn't a node, it will return null.

                +
                +

                Examples of setting & function

                +

                1. When double click node, alert info about 'tId' and 'name'.

                +
                function zTreeOnDblClick(event, treeId, treeNode) {
                +    alert(treeNode ? treeNode.tId + ", " + treeNode.name : "isRoot");
                +};
                +var setting = {
                +	callback: {
                +		onDblClick: zTreeOnDblClick
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/setting.callback.onDrag.html b/alive-admin/src/main/resources/static/ztree/api/en/setting.callback.onDrag.html new file mode 100644 index 0000000..30c738d --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/setting.callback.onDrag.html @@ -0,0 +1,34 @@ +
                +
                +

                Function(event, treeId, treeNodes)setting.callback.onDrag

                +

                Overview[ depends on jquery.ztree.exedit js ]

                +
                +

                +
                +

                Used to capture the drag event when drag node.

                +

                If you set 'setting.callback.beforeDrag',and return false, zTree will stop drag, and will not trigger the 'onDrag' callback.

                +

                Default: null

                +
                +
                +

                Function Parameter Descriptions

                +
                +

                eventjs event Object

                +

                event Object

                +

                treeIdString

                +

                zTree unique identifier: treeId, the tree is what the treeNodes are belong to, easy for users to control.

                +

                treeNodesArray(JSON)

                +

                A collection of the nodes which will be dragged

                +
                +

                Examples of setting & function

                +

                1. When drag nodes, alert the number of dragged nodes.

                +
                function zTreeOnDrag(event, treeId, treeNodes) {
                +    alert(treeNodes.length);
                +};
                +var setting = {
                +	callback: {
                +		onDrag: zTreeOnDrag
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/setting.callback.onDrop.html b/alive-admin/src/main/resources/static/ztree/api/en/setting.callback.onDrop.html new file mode 100644 index 0000000..6362463 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/setting.callback.onDrop.html @@ -0,0 +1,48 @@ +
                +
                +

                Function(event, treeId, treeNodes, targetNode, moveType, isCopy)setting.callback.onDrop

                +

                Overview[ depends on jquery.ztree.exedit js ]

                +
                +

                +
                +

                Used to capture the drop event when drag-drop node.

                +

                If you set 'setting.callback.beforeDrop',and return false, zTree will restore the dragged nodes, and will not trigger the 'onDrop' callback.

                +

                Default: null

                +
                +
                +

                Function Parameter Descriptions

                +
                +

                eventjs event Object

                +

                event Object

                +

                treeIdString

                +

                zTree unique identifier: treeId, the tree is what the targetNode is belong to, easy for users to control.

                +

                treeNodesArray(JSON)

                +

                A collection of the nodes which has been dragged

                +

                The treeNodes are the data of the nodes which be dragged, when move nodes.

                +

                The treeNodes are the clone data of the nodes which be dragged, when copy nodes.

                +

                targetNodeJSON

                +

                JSON data object of the target node which treeNodes are drag-dropped.

                +

                If the treeNodes will be root node, the targetNode = null

                +

                moveTypeString

                +

                the relative position of move to the target node

                +

                "inner": will be child of targetNode

                +

                "prev": will be sibling node, and be in front of targetNode

                +

                "next": will be sibling node, and be behind targetNode

                +

                If moveType is null, means drag & drop is cancel.

                +

                isCopyBoolean

                +

                the flag used to judge copy node or move node

                +

                true: copy node; false: move node

                +
                +

                Examples of setting & function

                +

                1. When drag-drop nodes complete, alert the number of dragged nodes and info about targetNode.

                +
                function zTreeOnDrop(event, treeId, treeNodes, targetNode, moveType) {
                +    alert(treeNodes.length + "," + (targetNode ? (targetNode.tId + ", " + targetNode.name) : "isRoot" ));
                +};
                +var setting = {
                +	callback: {
                +		onDrop: zTreeOnDrop
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/setting.callback.onExpand.html b/alive-admin/src/main/resources/static/ztree/api/en/setting.callback.onExpand.html new file mode 100644 index 0000000..7b9d8d5 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/setting.callback.onExpand.html @@ -0,0 +1,34 @@ +
                +
                +

                Function(event, treeId, treeNode)setting.callback.onExpand

                +

                Overview[ depends on jquery.ztree.core js ]

                +
                +

                +
                +

                Used to capture the event when expand node.

                +

                If you set 'setting.callback.beforeExpand',and return false, zTree will not expand node, and will not trigger the 'onExpand' callback.

                +

                Default: null

                +
                +
                +

                Function Parameter Descriptions

                +
                +

                eventjs event Object

                +

                event Object

                +

                treeIdString

                +

                zTree unique identifier: treeId, easy for users to control.

                +

                treeNodeJSON

                +

                JSON data object of the node which will be expanded

                +
                +

                Examples of setting & function

                +

                1. When expand node, alert info about 'tId' and 'name'.

                +
                function zTreeOnExpand(event, treeId, treeNode) {
                +    alert(treeNode.tId + ", " + treeNode.name);
                +};
                +var setting = {
                +	callback: {
                +		onExpand: zTreeOnExpand
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/setting.callback.onMouseDown.html b/alive-admin/src/main/resources/static/ztree/api/en/setting.callback.onMouseDown.html new file mode 100644 index 0000000..bfd714c --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/setting.callback.onMouseDown.html @@ -0,0 +1,35 @@ +
                +
                +

                Function(event, treeId, treeNode)setting.callback.onMouseDown

                +

                Overview[ depends on jquery.ztree.core js ]

                +
                +

                +
                +

                Used to capture the event when mouse down.

                +

                If you set 'setting.callback.beforeMouseDown',and return false, zTree will not trigger the 'onMouseDown' callback.

                +

                Default: null

                +
                +
                +

                Function Parameter Descriptions

                +
                +

                eventjs event Object

                +

                event Object

                +

                treeIdString

                +

                zTree unique identifier: treeId, easy for users to control.

                +

                treeNodeJSON

                +

                JSON data object of the node which mouse over

                +

                If the DOM which mouse over isn't a node, it will return null.

                +
                +

                Examples of setting & function

                +

                1. When mouse down, alert info about 'tId' and 'name'.

                +
                function zTreeOnMouseDown(event, treeId, treeNode) {
                +    alert(treeNode ? treeNode.tId + ", " + treeNode.name : "isRoot");
                +};
                +var setting = {
                +	callback: {
                +		onMouseDown: zTreeOnMouseDown
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/setting.callback.onMouseUp.html b/alive-admin/src/main/resources/static/ztree/api/en/setting.callback.onMouseUp.html new file mode 100644 index 0000000..93edf31 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/setting.callback.onMouseUp.html @@ -0,0 +1,35 @@ +
                +
                +

                Function(event, treeId, treeNode)setting.callback.onMouseUp

                +

                Overview[ depends on jquery.ztree.core js ]

                +
                +

                +
                +

                Used to capture the event when mouse up.

                +

                If you set 'setting.callback.beforeMouseUp',and return false, zTree will not trigger the 'onMouseUp' callback.

                +

                Default: null

                +
                +
                +

                Function Parameter Descriptions

                +
                +

                eventjs event Object

                +

                event Object

                +

                treeIdString

                +

                zTree unique identifier: treeId, easy for users to control.

                +

                treeNodeJSON

                +

                JSON data object of the node which mouse over

                +

                If the DOM which mouse over isn't a node, it will return null.

                +
                +

                Examples of setting & function

                +

                1. When mouse up, alert info about 'tId' and 'name'.

                +
                function zTreeOnMouseUp(event, treeId, treeNode) {
                +    alert(treeNode ? treeNode.tId + ", " + treeNode.name : "isRoot");
                +};
                +var setting = {
                +	callback: {
                +		onMouseUp: zTreeOnMouseUp
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/setting.callback.onNodeCreated.html b/alive-admin/src/main/resources/static/ztree/api/en/setting.callback.onNodeCreated.html new file mode 100644 index 0000000..a98b572 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/setting.callback.onNodeCreated.html @@ -0,0 +1,35 @@ +
                +
                +

                Function(event, treeId, treeNode)setting.callback.onNodeCreated

                +

                Overview[ depends on jquery.ztree.core js ]

                +
                +

                +
                +

                Used to capture the event when node's DOM is created.

                +

                Because v3.x uses lazy loading technology, so the nodes which doesn't create DOM when initialized will not trigger this callback, until its parent node is expanded.

                +

                Large amount of data to load, please note: do not set onNodeCreated, can improve performance as when initialized.

                +

                Default: null

                +
                +
                +

                Function Parameter Descriptions

                +
                +

                eventjs event Object

                +

                event Object

                +

                treeIdString

                +

                zTree unique identifier: treeId, easy for users to control.

                +

                treeNodeJSON

                +

                JSON data object of the node which DOM is created

                +
                +

                Examples of setting & function

                +

                1. When node's DOM is created, alert info about 'tId' and 'name'.

                +
                function zTreeOnNodeCreated(event, treeId, treeNode) {
                +    alert(treeNode.tId + ", " + treeNode.name);
                +};
                +var setting = {
                +	callback: {
                +		onNodeCreated: zTreeOnNodeCreated
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/setting.callback.onRemove.html b/alive-admin/src/main/resources/static/ztree/api/en/setting.callback.onRemove.html new file mode 100644 index 0000000..ce29413 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/setting.callback.onRemove.html @@ -0,0 +1,34 @@ +
                +
                +

                Function(event, treeId, treeNode)setting.callback.onRemove

                +

                Overview[ depends on jquery.ztree.exedit js ]

                +
                +

                +
                +

                Used to capture the event when remove node.

                +

                If you set 'setting.callback.beforeRemove',and return false, zTree will not remove node, and will not trigger the 'onRemove' callback.

                +

                Default: null

                +
                +
                +

                Function Parameter Descriptions

                +
                +

                eventjs event Object

                +

                event Object

                +

                treeIdString

                +

                zTree unique identifier: treeId, easy for users to control.

                +

                treeNodeJSON

                +

                JSON data object of the node which was removed.

                +
                +

                Examples of setting & function

                +

                1. When remove node, alert info about 'tId' and 'name'.

                +
                function zTreeOnRemove(event, treeId, treeNode) {
                +	alert(treeNode.tId + ", " + treeNode.name);
                +}
                +var setting = {
                +	callback: {
                +		onRemove: zTreeOnRemove
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/setting.callback.onRename.html b/alive-admin/src/main/resources/static/ztree/api/en/setting.callback.onRename.html new file mode 100644 index 0000000..f1659eb --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/setting.callback.onRename.html @@ -0,0 +1,35 @@ +
                +
                +

                Function(event, treeId, treeNode)setting.callback.onRename

                +

                Overview[ depends on jquery.ztree.exedit js ]

                +
                +

                +
                +

                Used to capture the event when remove node.

                +

                1. If you set 'setting.callback.beforeRename',and return false, zTree will keep the editing name, and will not trigger the 'onRename' callback.

                +

                2. If you modity treeNode data, and use 'updateNode' function, zTree will not trigger the 'onRename' callback.

                +

                Default: null

                +
                +
                +

                Function Parameter Descriptions

                +
                +

                eventjs event Object

                +

                event Object

                +

                treeIdString

                +

                zTree unique identifier: treeId, easy for users to control.

                +

                treeNodeJSON

                +

                JSON data object of the node which was rename.

                +
                +

                Examples of setting & function

                +

                1. When rename node, alert info about 'tId' and 'name'.

                +
                function zTreeOnRename(event, treeId, treeNode) {
                +	alert(treeNode.tId + ", " + treeNode.name);
                +}
                +var setting = {
                +	callback: {
                +		onRename: zTreeOnRename
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/setting.callback.onRightClick.html b/alive-admin/src/main/resources/static/ztree/api/en/setting.callback.onRightClick.html new file mode 100644 index 0000000..86b4b01 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/setting.callback.onRightClick.html @@ -0,0 +1,36 @@ +
                +
                +

                Function(event, treeId, treeNode)setting.callback.onRightClick

                +

                Overview[ depends on jquery.ztree.core js ]

                +
                +

                +
                +

                Used to capture the event when mouse right click node.

                +

                If you set 'setting.callback.beforeRightClick',and return false, zTree will not trigger the 'onRightClick' callback.

                +

                If you set 'setting.callback.onRightClick', zTree will shield the browser context menu when mouse right click on zTree.

                +

                Default: null

                +
                +
                +

                Function Parameter Descriptions

                +
                +

                eventjs event Object

                +

                event Object

                +

                treeIdString

                +

                zTree unique identifier: treeId, easy for users to control.

                +

                treeNodeJSON

                +

                JSON data object of the node which is mouse right clicked

                +

                If the DOM which mouse right clicked isn't a node, it will return null.

                +
                +

                Examples of setting & function

                +

                1. When mouse right click node, alert info about 'tId' and 'name'.

                +
                function zTreeOnRightClick(event, treeId, treeNode) {
                +    alert(treeNode ? treeNode.tId + ", " + treeNode.name : "isRoot");
                +};
                +var setting = {
                +	callback: {
                +		onRightClick: zTreeOnRightClick
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/setting.check.autoCheckTrigger.html b/alive-admin/src/main/resources/static/ztree/api/en/setting.check.autoCheckTrigger.html new file mode 100644 index 0000000..b8b04cc --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/setting.check.autoCheckTrigger.html @@ -0,0 +1,29 @@ +
                +
                +

                Booleansetting.check.autoCheckTrigger

                +

                Overview[ depends on jquery.ztree.excheck js ]

                +
                +

                +
                +

                When node is automatically checked or unchecked, this parameter used to set to trigger 'beforeCheck / onCheck' callback. It is valid when [setting.check.enable = true & setting.check.chkStyle = "checkbox"]

                +

                1. If you set 'setting.check.chkboxType' to { "Y": "", "N": "" }, will not automatically checked or unchecked.

                +

                2. If you turn on the trigger and there are many more nodes, will affect the performance, because the check or uncheck node can cause many nodes to be automatically checked or unchecked, it will trigger a lot of callbacks, according to the need to decide whether to use this feature.

                +

                Default: false

                +
                +
                +

                Boolean Format

                +
                +

                true means: trigger callback

                +

                false means: don't trigger callback

                +
                +

                Examples of setting

                +

                1. When node is automatically checked or unchecked, zTree trigger 'beforeCheck / onCheck' callback.

                +
                var setting = {
                +	check: {
                +		enable: true,
                +		autoCheckTrigger: true
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/setting.check.chkStyle.html b/alive-admin/src/main/resources/static/ztree/api/en/setting.check.chkStyle.html new file mode 100644 index 0000000..d42e757 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/setting.check.chkStyle.html @@ -0,0 +1,48 @@ +
                +
                +

                Stringsetting.check.chkStyle

                +

                Overview[ depends on jquery.ztree.excheck js ]

                +
                +

                +
                +

                Use the checkbox or radio. It is valid when [setting.check.enable = true]

                +

                Default: "checkbox"

                +
                +
                +

                String Format

                +
                +

                When chkStyle = "checkbox", zTree show checkbox, and 'setting.check.chkboxType' attribute is valid. +
                When chkStyle = "radio", zTree show radio, and 'setting.check.radioType' attribute is valid.

                +

                Please note that letter case, do not change.

                +
                +

                checkbox States Descriptions

                +
                +

                +
                +

                not checked; If node is parent, so its child nodes have been not checked. when mouse over:

                +

                not checked; (only parent node) some of its child nodes have been checked. when mouse over:

                +

                be checked; If node is parent, so its all child nodes have been checked. when mouse over:

                +

                be checked; (only parent node) some of its child nodes or all have been not checked. when mouse over:

                +
                +
                +

                radio States Descriptions

                +
                +

                +
                +

                not checked; If node is parent, so its child have been not checked. when mouse over:

                +

                not checked; (only parent node) some of its child have been checked. when mouse over:

                +

                be checked; If node is parent, so its child have been not checked. when mouse over:

                +

                be checked; (only parent node) some of its child have been checked. when mouse over:

                +
                +
                +

                Examples of setting

                +

                1. use radio

                +
                var setting = {
                +	check: {
                +		enable: true,
                +		chkStyle: "radio"
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/setting.check.chkboxType.html b/alive-admin/src/main/resources/static/ztree/api/en/setting.check.chkboxType.html new file mode 100644 index 0000000..5cecc9e --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/setting.check.chkboxType.html @@ -0,0 +1,31 @@ +
                +
                +

                JSONsetting.check.chkboxType

                +

                Overview[ depends on jquery.ztree.excheck js ]

                +
                +

                +
                +

                When one node is checked or unchecked, control its parent node and its child node auto checked or unchecked. It is valid when [setting.check.enable = true & setting.check.chkStyle = "checkbox"]

                +

                Default: { "Y": "ps", "N": "ps" }

                +
                +
                +

                JSON Format

                +
                +

                "Y" attribute use to set auto check after checkbox was checked. +
                "N" attribute use to set auto uncheck after checkbox was unchecked. +
                If value has "p", so parent nodes will be checked or unchecked. +
                If value has "s", so child nodes will be checked or unchecked.

                +

                Please note that letter case, do not change.

                +
                +

                Examples of setting

                +

                1. If check the node, so only auto check parent nodes; If uncheck the node, so only auto uncheck child nodes;

                +
                var setting = {
                +	check: {
                +		enable: true,
                +		chkStyle: "checkbox",
                +		chkboxType: { "Y": "p", "N": "s" }
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/setting.check.enable.html b/alive-admin/src/main/resources/static/ztree/api/en/setting.check.enable.html new file mode 100644 index 0000000..0236b5f --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/setting.check.enable.html @@ -0,0 +1,26 @@ +
                +
                +

                Booleansetting.check.enable

                +

                Overview[ depends on jquery.ztree.excheck js ]

                +
                +

                +
                +

                Set to use checkbox or radio in zTree

                +

                Default: false

                +
                +
                +

                Boolean Format

                +
                +

                true means: use the checkbox or radio

                +

                false means: don't use the checkbox or radio

                +
                +

                Examples of setting

                +

                1. use the checkbox

                +
                var setting = {
                +	check: {
                +		enable: true
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/setting.check.nocheckInherit.html b/alive-admin/src/main/resources/static/ztree/api/en/setting.check.nocheckInherit.html new file mode 100644 index 0000000..758b437 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/setting.check.nocheckInherit.html @@ -0,0 +1,28 @@ +
                +
                +

                Booleansetting.check.nocheckInherit

                +

                Overview[ depends on jquery.ztree.excheck js ]

                +
                +

                +
                +

                When the parent node's 'nocheck' attribute is true, set the child nodes automatically inherit the 'nocheck' attribute. It is valid when [setting.check.enable = true]

                +

                1. Only be used to initialize the nodes, easy batch operations. Please use the 'updateNode' method modify existing node.

                +

                Default: false

                +
                +
                +

                Boolean Format

                +
                +

                true means: When add new child nodes, if parent node's 'nocheck' attribute is true, the child nodes automatically inherit the 'nocheck' attribute.

                +

                false means: When add new child nodes, the child nodes don't inherit the 'nocheck' attribute from parent node.

                +
                +

                Examples of setting

                +

                1. When add new child nodes, the child nodes automatically inherit the 'nocheck' attribute from parent node.

                +
                var setting = {
                +	check: {
                +		enable: true,
                +		nocheckInherit: true
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/setting.check.radioType.html b/alive-admin/src/main/resources/static/ztree/api/en/setting.check.radioType.html new file mode 100644 index 0000000..be867d7 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/setting.check.radioType.html @@ -0,0 +1,29 @@ +
                +
                +

                Stringsetting.check.radioType

                +

                Overview[ depends on jquery.ztree.excheck js ]

                +
                +

                +
                +

                The group about radio. It is valid when [setting.check.enable = true & setting.check.chkStyle = "radio"]

                +

                Default: "level"

                +
                +
                +

                String Format

                +
                +

                When radioType = "level", will be grouped with same level nodes which have the same parent node. +
                When radioType = "all", will be grouped with all nodes.

                +

                Please note that letter case, do not change.

                +
                +

                Examples of setting

                +

                1. Set the group about radio is all nodes.

                +
                var setting = {
                +	check: {
                +		enable: true,
                +		chkStyle: "radio",
                +		radioType: "all"
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/setting.data.keep.leaf.html b/alive-admin/src/main/resources/static/ztree/api/en/setting.data.keep.leaf.html new file mode 100644 index 0000000..71c573e --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/setting.data.keep.leaf.html @@ -0,0 +1,28 @@ +
                +
                +

                Booleansetting.data.keep.leaf

                +

                Overview[ depends on jquery.ztree.core js ]

                +
                +

                +
                +

                The leaf node's lock, the leaf node will lock the 'isParent' attribute to false.

                +

                Default: false

                +
                +
                +

                Boolean Format

                +
                +

                true means: lock the leaf node, and the node which 'isParent' attribute is false can't add child nodes.

                +

                false means: don't lock the leaf node, and the node which 'isParent' attribute is false can add child nodes.

                +
                +

                Examples of setting

                +

                1. lock the leaf node

                +
                var setting = {
                +	data: {
                +		keep: {
                +			leaf: true
                +		}
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/setting.data.keep.parent.html b/alive-admin/src/main/resources/static/ztree/api/en/setting.data.keep.parent.html new file mode 100644 index 0000000..5bab2f1 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/setting.data.keep.parent.html @@ -0,0 +1,28 @@ +
                +
                +

                Booleansetting.data.keep.parent

                +

                Overview[ depends on jquery.ztree.core js ]

                +
                +

                +
                +

                The parent node's lock, the parent node will lock 'isParent' attribute to true.

                +

                Default: false

                +
                +
                +

                Boolean Format

                +
                +

                true means: lock the parent node, and if remove all of the parent node's child nodes, its 'isParent' attribute still keep to be true..

                +

                false means: don't lock the parent node, and if remove all of the parent node's child nodes, its 'isParent' attribute will change to be false..

                +
                +

                Examples of setting

                +

                1. lock the parent node

                +
                var setting = {
                +	data: {
                +		keep: {
                +			parent: true
                +		}
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/setting.data.key.checked.html b/alive-admin/src/main/resources/static/ztree/api/en/setting.data.key.checked.html new file mode 100644 index 0000000..2678cf2 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/setting.data.key.checked.html @@ -0,0 +1,24 @@ +
                +
                +

                Stringsetting.data.key.checked

                +

                Overview[ depends on jquery.ztree.excheck js ]

                +
                +

                +
                +

                The node data's attribute to save the checked state.

                +

                Default: "checked"

                +

                Please don't set the other node attribute which zTree used. (e.g., checkedOld)

                +
                +
                +

                Examples of setting

                +

                1. set the 'isChecked' attribute to save the checked state.

                +
                var setting = {
                +	data: {
                +		key: {
                +			checked: "isChecked"
                +		}
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/setting.data.key.children.html b/alive-admin/src/main/resources/static/ztree/api/en/setting.data.key.children.html new file mode 100644 index 0000000..321a1a7 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/setting.data.key.children.html @@ -0,0 +1,23 @@ +
                +
                +

                Stringsetting.data.key.children

                +

                Overview[ depends on jquery.ztree.core js ]

                +
                +

                +
                +

                The node data's attribute to save the child nodes.

                +

                Default: "children"

                +
                +
                +

                Examples of setting

                +

                1. Set the 'nodes' attribute to save the child nodes.

                +
                var setting = {
                +	data: {
                +		key: {
                +			children: "nodes"
                +		}
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/setting.data.key.name.html b/alive-admin/src/main/resources/static/ztree/api/en/setting.data.key.name.html new file mode 100644 index 0000000..0208c55 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/setting.data.key.name.html @@ -0,0 +1,23 @@ +
                +
                +

                Stringsetting.data.key.name

                +

                Overview[ depends on jquery.ztree.core js ]

                +
                +

                +
                +

                The node data's attribute to save the node name.

                +

                Default: "name"

                +
                +
                +

                Examples of setting

                +

                1. Set the 'ename' attribute to save the node name.

                +
                var setting = {
                +	data: {
                +		key: {
                +			name: "ename"
                +		}
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/setting.data.key.title.html b/alive-admin/src/main/resources/static/ztree/api/en/setting.data.key.title.html new file mode 100644 index 0000000..96540eb --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/setting.data.key.title.html @@ -0,0 +1,24 @@ +
                +
                +

                Stringsetting.data.key.title

                +

                Overview[ depends on jquery.ztree.core js ]

                +
                +

                +
                +

                The node data's attribute to save the 'title' attribute of node DOM. It is valid when [setting.view.showTitle = true]

                +

                If set it to "", the title of node DOM will be same as 'setting.data.key.name' attribute.

                +

                Default: ""

                +
                +
                +

                Examples of setting

                +

                1. Set the 'fullName' attribute to save the title of node DOM.

                +
                var setting = {
                +	data: {
                +		key: {
                +			title: "fullName"
                +		}
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/setting.data.key.url.html b/alive-admin/src/main/resources/static/ztree/api/en/setting.data.key.url.html new file mode 100644 index 0000000..e9a08ce --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/setting.data.key.url.html @@ -0,0 +1,24 @@ +
                +
                +

                Stringsetting.data.key.url

                +

                Overview[ depends on jquery.ztree.core js ]

                +
                +

                +
                +

                The node data's attribute to save the node link's url.

                +

                Special: If the nodes's data can only use the 'url' attribute, and don't use the link to jump feature, you can modify this attribute to any nonexistent attribute.

                +

                Default: "url"

                +
                +
                +

                Examples of setting

                +

                1. Set the 'xUrl' attribute to save the node link's url.

                +
                var setting = {
                +	data: {
                +		key: {
                +			url: "xUrl"
                +		}
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/setting.data.simpleData.enable.html b/alive-admin/src/main/resources/static/ztree/api/en/setting.data.simpleData.enable.html new file mode 100644 index 0000000..7ea21db --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/setting.data.simpleData.enable.html @@ -0,0 +1,39 @@ +
                +
                +

                Booleansetting.data.simpleData.enable

                +

                Overview[ depends on jquery.ztree.core js ]

                +
                +

                +
                +

                Set zTree's node to accept the simple data format, when zTree is initialized or when ajax get / or when use addNodes method.

                +

                Don't have to generate the complex nested data.

                +

                Default: false

                +
                +
                +

                Boolean Format

                +
                +

                true means: zTree's node accept the simple data format.

                +

                false means: zTree's node only accept the nested data format.

                +

                If set it is true, you must set the other attributes in 'setting.data.simpleData'. (e.g., idKey, pIdKey, rootPId) And let the data satisfy the parent-child relationship.

                +
                +

                Examples of setting

                +

                1. use the simple data format

                +
                var setting = {
                +	data: {
                +		simpleData: {
                +			enable: true,
                +			idKey: "id",
                +			pIdKey: "pId",
                +			rootPId: 0,
                +		}
                +	}
                +};
                +var treeNodes = [
                +    {"id":1, "pId":0, "name":"test1"},
                +    {"id":11, "pId":1, "name":"test11"},
                +    {"id":12, "pId":1, "name":"test12"},
                +    {"id":111, "pId":11, "name":"test111"}
                +];
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/setting.data.simpleData.idKey.html b/alive-admin/src/main/resources/static/ztree/api/en/setting.data.simpleData.idKey.html new file mode 100644 index 0000000..43df260 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/setting.data.simpleData.idKey.html @@ -0,0 +1,32 @@ +
                +
                +

                Stringsetting.data.simpleData.idKey

                +

                Overview[ depends on jquery.ztree.core js ]

                +
                +

                +
                +

                The node data's attribute to save node data's unique identifier. It is valid when [setting.data.simpleData.enable = true]

                +

                Default: "id"

                +
                +
                +

                Examples of setting

                +

                1. use the simple data format

                +
                var setting = {
                +	data: {
                +		simpleData: {
                +			enable: true,
                +			idKey: "id",
                +			pIdKey: "pId",
                +			rootPId: 0,
                +		}
                +	}
                +};
                +var treeNodes = [
                +    {"id":1, "pId":0, "name":"test1"},
                +    {"id":11, "pId":1, "name":"test11"},
                +    {"id":12, "pId":1, "name":"test12"},
                +    {"id":111, "pId":11, "name":"test111"}
                +];
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/setting.data.simpleData.pIdKey.html b/alive-admin/src/main/resources/static/ztree/api/en/setting.data.simpleData.pIdKey.html new file mode 100644 index 0000000..8378c6e --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/setting.data.simpleData.pIdKey.html @@ -0,0 +1,32 @@ +
                +
                +

                Stringsetting.data.simpleData.pIdKey

                +

                Overview[ depends on jquery.ztree.core js ]

                +
                +

                +
                +

                The node data's attribute to save its parent node data's unique identifier. It is valid when [setting.data.simpleData.enable = true]

                +

                Default: "pId"

                +
                +
                +

                Examples of setting

                +

                1. use the simple data format

                +
                var setting = {
                +	data: {
                +		simpleData: {
                +			enable: true,
                +			idKey: "id",
                +			pIdKey: "pId",
                +			rootPId: 0
                +		}
                +	}
                +};
                +var treeNodes = [
                +    {"id":1, "pId":0, "name":"test1"},
                +    {"id":11, "pId":1, "name":"test11"},
                +    {"id":12, "pId":1, "name":"test12"},
                +    {"id":111, "pId":11, "name":"test111"}
                +];
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/setting.data.simpleData.rootPId.html b/alive-admin/src/main/resources/static/ztree/api/en/setting.data.simpleData.rootPId.html new file mode 100644 index 0000000..61c9bbd --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/setting.data.simpleData.rootPId.html @@ -0,0 +1,32 @@ +
                +
                +

                String / Numbersetting.data.simpleData.rootPId

                +

                Overview[ depends on jquery.ztree.core js ]

                +
                +

                +
                +

                Set the default value of root's 'pIdKey' specified attribute values​​. It is valid when [setting.data.simpleData.enable = true]

                +

                Default: null

                +
                +
                +

                Examples of setting

                +

                1. use the simple data format

                +
                var setting = {
                +	data: {
                +		simpleData: {
                +			enable: true,
                +			idKey: "id",
                +			pIdKey: "pId",
                +			rootPId: 0
                +		}
                +	}
                +};
                +var treeNodes = [
                +    {"id":1, "pId":0, "name":"test1"},
                +    {"id":11, "pId":1, "name":"test11"},
                +    {"id":12, "pId":1, "name":"test12"},
                +    {"id":111, "pId":11, "name":"test111"}
                +];
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/setting.edit.drag.autoExpandTrigger.html b/alive-admin/src/main/resources/static/ztree/api/en/setting.edit.drag.autoExpandTrigger.html new file mode 100644 index 0000000..804ee66 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/setting.edit.drag.autoExpandTrigger.html @@ -0,0 +1,29 @@ +
                +
                +

                Booleansetting.edit.drag.autoExpandTrigger

                +

                Overview[ depends on jquery.ztree.exedit js ]

                +
                +

                +
                +

                When drag node cause the parent node is automatically expanded, set whether to allow to trigger the 'onExpand' callback. It is valid when [setting.edit.enable = true]

                +

                Default: false

                +
                +
                +

                Boolean Format

                +
                +

                true means: trigger the 'onExpand' callback.

                +

                false means: don't trigger the 'onExpand' callback.

                +
                +

                Examples of setting

                +

                1. Set to allow to trigger the 'onExpand' callback

                +
                var setting = {
                +	edit: {
                +		enable: true,
                +		drag: {
                +			autoExpandTrigger: true
                +		}
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/setting.edit.drag.autoOpenTime.html b/alive-admin/src/main/resources/static/ztree/api/en/setting.edit.drag.autoOpenTime.html new file mode 100644 index 0000000..74982af --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/setting.edit.drag.autoOpenTime.html @@ -0,0 +1,25 @@ +
                +
                +

                Numbersetting.edit.drag.autoOpenTime

                +

                Overview[ depends on jquery.ztree.exedit js ]

                +
                +

                +
                +

                Drag to the parent node, the parent node auto expand time interval. (Unit: ms) It is valid when [setting.edit.enable = true]

                +

                Default: 500

                +

                Please adjust the value according to needs.

                +
                +
                +

                Examples of setting

                +

                1. When drag node to other parent node, expand it at once.

                +
                var setting = {
                +	edit: {
                +		enable: true,
                +		drag: {
                +			autoOpenTime: 0
                +		}
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/setting.edit.drag.borderMax.html b/alive-admin/src/main/resources/static/ztree/api/en/setting.edit.drag.borderMax.html new file mode 100644 index 0000000..edbb752 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/setting.edit.drag.borderMax.html @@ -0,0 +1,25 @@ +
                +
                +

                Numbersetting.edit.drag.borderMax

                +

                Overview[ depends on jquery.ztree.exedit js ]

                +
                +

                +
                +

                When drag a node to root, the zTree's inner border width. (Unit: px) It is valid when [setting.edit.enable = true]

                +

                Default: 10

                +

                Please adjust the value according to needs.

                +
                +
                +

                Examples of setting

                +

                1. adjust the inner border width is 20px

                +
                var setting = {
                +	edit: {
                +		enable: true,
                +		drag: {
                +			borderMax: 20
                +		}
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/setting.edit.drag.borderMin.html b/alive-admin/src/main/resources/static/ztree/api/en/setting.edit.drag.borderMin.html new file mode 100644 index 0000000..e845853 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/setting.edit.drag.borderMin.html @@ -0,0 +1,25 @@ +
                +
                +

                Numbersetting.edit.drag.borderMin

                +

                Overview[ depends on jquery.ztree.exedit js ]

                +
                +

                +
                +

                When drag a node to root, the zTree's outer border width. (Unit: px) It is valid when [setting.edit.enable = true]

                +

                Default: -5

                +

                Please adjust the value according to needs.

                +
                +
                +

                Examples of setting

                +

                1. adjust the outer border width is 10px

                +
                var setting = {
                +	edit: {
                +		enable: true,
                +		drag: {
                +			borderMin: -10
                +		}
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/setting.edit.drag.inner.html b/alive-admin/src/main/resources/static/ztree/api/en/setting.edit.drag.inner.html new file mode 100644 index 0000000..1065df3 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/setting.edit.drag.inner.html @@ -0,0 +1,60 @@ +
                +
                +

                Boolean / Function(treeId, treeNodes, targetNode)setting.edit.drag.inner

                +

                Overview[ depends on jquery.ztree.exedit js ]

                +
                +

                +
                +

                When drag one node to the target node, set whether to allow the node to be the target node's child. It is valid when [setting.edit.enable = true]

                +

                If the target node is root, so zTree will only trigger 'inner' and not trigger 'prev / next'.

                +

                This function mainly for the appropriate limit drag and drop (auxiliary arrow), it requires a combination of 'prev, next' together, to achieve full functionality.

                +

                Default: true

                +
                +
                +

                Boolean Format

                +
                +

                true means: allow the node to be the target node's child.

                +

                false means: don't allow the node to be the target node's child.

                +
                +

                Function Parameter Descriptions

                +
                +

                treeIdString

                +

                zTree unique identifier: treeId, easy for users to control.

                +

                treeNodesArray(JSON)

                +

                A collection of the nodes which has been dragged

                +

                targetNodeJSON

                +

                JSON data object of the target node which treeNodes are draged over.

                +

                If the treeNodes will be root node, the targetNode = null

                +

                Return Boolean

                +

                return true or false

                +
                +

                Examples of setting & function

                +

                1. disable to drag the node to the target node's inner.

                +
                var setting = {
                +	edit: {
                +		enable: true,
                +		drag: {
                +			prev: true,
                +			next: true,
                +			inner: false
                +		}
                +	}
                +};
                +......
                +

                2. disable to drag the node to be root node's child.

                +
                function canInner(treeId, nodes, targetNode) {
                +	return !(targetNode && targetNode.level === 0);
                +}
                +var setting = {
                +	edit: {
                +		enable: true,
                +		drag: {
                +			prev: true,
                +			next: true,
                +			inner: canInner
                +		}
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/setting.edit.drag.isCopy.html b/alive-admin/src/main/resources/static/ztree/api/en/setting.edit.drag.isCopy.html new file mode 100644 index 0000000..df39a8a --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/setting.edit.drag.isCopy.html @@ -0,0 +1,32 @@ +
                +
                +

                Booleansetting.edit.drag.isCopy

                +

                Overview[ depends on jquery.ztree.exedit js ]

                +
                +

                +
                +

                When drag-drop node, set whether to allow to copy node. It is valid when [setting.edit.enable = true]

                +

                Default: true

                +
                +
                +

                Rules Description

                +
                +

                1. If isCopy = true and isMove = true, when drag-drop node, press Ctrl-Key can copy node, don't press Ctrl-Key can move node.

                +

                2. If isCopy = true and isMove = false, when drag-drop node, will copy node.

                +

                3. If isCopy = false and isMove = true, when drag-drop node, will move node.

                +

                4. If isCopy = false and isMove = false, so disable to drag-drop node.

                +
                +

                Examples of setting

                +

                1. all of the drag-drop operation will copy node.

                +
                var setting = {
                +	edit: {
                +		enable: true,
                +		drag: {
                +			isCopy: true,
                +			isMove: false
                +		}
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/setting.edit.drag.isMove.html b/alive-admin/src/main/resources/static/ztree/api/en/setting.edit.drag.isMove.html new file mode 100644 index 0000000..78cd8d3 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/setting.edit.drag.isMove.html @@ -0,0 +1,32 @@ +
                +
                +

                Booleansetting.edit.drag.isMove

                +

                Overview[ depends on jquery.ztree.exedit js ]

                +
                +

                +
                +

                When drag-drop node, set whether to allow to move node. It is valid when [setting.edit.enable = true]

                +

                Default: true

                +
                +
                +

                Rules Description

                +
                +

                1. If isCopy = true and isMove = true, when drag-drop node, press Ctrl-Key can copy node, don't press Ctrl-Key can move node.

                +

                2. If isCopy = true and isMove = false, when drag-drop node, will copy node.

                +

                3. If isCopy = false and isMove = true, when drag-drop node, will move node.

                +

                4. If isCopy = false and isMove = false, so disable to drag-drop node.

                +
                +

                Examples of setting

                +

                1. all of the drag-drop operation will move node.

                +
                var setting = {
                +	edit: {
                +		enable: true,
                +		drag: {
                +			isCopy: false,
                +			isMove: true
                +		}
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/setting.edit.drag.maxShowNodeNum.html b/alive-admin/src/main/resources/static/ztree/api/en/setting.edit.drag.maxShowNodeNum.html new file mode 100644 index 0000000..dbc3ae4 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/setting.edit.drag.maxShowNodeNum.html @@ -0,0 +1,25 @@ +
                +
                +

                Numbersetting.edit.drag.maxShowNodeNum

                +

                Overview[ depends on jquery.ztree.exedit js ]

                +
                +

                +
                +

                When dragging more than one sibling node, the floating layer shows the maximum number of nodes. zTree using '...' instead of redundant nodes. It is valid when [setting.edit.enable = true]

                +

                Default: 5

                +

                Please adjust the value according to needs.

                +
                +
                +

                Examples of setting

                +

                1. Set the maximum number is 10

                +
                var setting = {
                +	edit: {
                +		enable: true,
                +		drag: {
                +			maxShowNodeNum: 10
                +		}
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/setting.edit.drag.minMoveSize.html b/alive-admin/src/main/resources/static/ztree/api/en/setting.edit.drag.minMoveSize.html new file mode 100644 index 0000000..8270a99 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/setting.edit.drag.minMoveSize.html @@ -0,0 +1,25 @@ +
                +
                +

                Numbersetting.edit.drag.minMoveSize

                +

                Overview[ depends on jquery.ztree.exedit js ]

                +
                +

                +
                +

                The minimum offset which used to determine the drag operator start. (Unit: px) It is valid when [setting.edit.enable = true]

                +

                Please adjust the value according to needs. Note: If it is too small, will easily lead to misoperation when you click mouse.

                +

                Default: 5

                +
                +
                +

                Examples of setting

                +

                1. Set the minimum offset is 10px.

                +
                var setting = {
                +	edit: {
                +		enable: true,
                +		drag: {
                +			minMoveSize: 10
                +		}
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/setting.edit.drag.next.html b/alive-admin/src/main/resources/static/ztree/api/en/setting.edit.drag.next.html new file mode 100644 index 0000000..82eb6fb --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/setting.edit.drag.next.html @@ -0,0 +1,59 @@ +
                +
                +

                Boolean / Function(treeId, treeNodes, targetNode)setting.edit.drag.next

                +

                Overview[ depends on jquery.ztree.exedit js ]

                +
                +

                +
                +

                When drag one node to the target node, set whether to allow the node to be the target node's next sibling. It is valid when [setting.edit.enable = true]

                +

                If the target node is root, so zTree will only trigger 'inner' and not trigger 'prev / next'.

                +

                This function mainly for the appropriate limit drag and drop (auxiliary arrow), it requires a combination of 'prev, inner' together, to achieve full functionality.

                +

                Default: true

                +
                +
                +

                Boolean Format

                +
                +

                true means: allow the node to be the target node's next sibling.

                +

                false means: don't allow the node to be the target node's next sibling.

                +
                +

                Function Parameter Descriptions

                +
                +

                treeIdString

                +

                zTree unique identifier: treeId, easy for users to control.

                +

                treeNodesArray(JSON)

                +

                A collection of the nodes which has been dragged

                +

                targetNodeJSON

                +

                JSON data object of the target node which treeNodes are draged over.

                +

                Return Boolean

                +

                return true or false

                +
                +

                Examples of setting & function

                +

                1. disable to drag the node to the target node's next sibling.

                +
                var setting = {
                +	edit: {
                +		enable: true,
                +		drag: {
                +			prev: true,
                +			next: false,
                +			inner: true
                +		}
                +	}
                +};
                +......
                +

                2. disable to drag the node to be all of the parent nodes's next sibling.

                +
                function canNext(treeId, nodes, targetNode) {
                +	return !targetNode.isParent;
                +}
                +var setting = {
                +	edit: {
                +		enable: true,
                +		drag: {
                +			prev: true,
                +			next: canNext,
                +			inner: true
                +		}
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/setting.edit.drag.prev.html b/alive-admin/src/main/resources/static/ztree/api/en/setting.edit.drag.prev.html new file mode 100644 index 0000000..de6f0c8 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/setting.edit.drag.prev.html @@ -0,0 +1,59 @@ +
                +
                +

                Boolean / Function(treeId, treeNodes, targetNode)setting.edit.drag.prev

                +

                Overview[ depends on jquery.ztree.exedit js ]

                +
                +

                +
                +

                When drag one node to the target node, set whether to allow the node to be the target node's previous sibling. It is valid when [setting.edit.enable = true]

                +

                If the target node is root, so zTree will only trigger 'inner' and not trigger 'prev / next'.

                +

                This function mainly for the appropriate limit drag and drop (auxiliary arrow), it requires a combination of 'next, inner' together, to achieve full functionality.

                +

                Default: true

                +
                +
                +

                Boolean Format

                +
                +

                true means: allow the node to be the target node's previous sibling.

                +

                false means: don't allow the node to be the target node's previous sibling.

                +
                +

                Function Parameter Descriptions

                +
                +

                treeIdString

                +

                zTree unique identifier: treeId, easy for users to control.

                +

                treeNodesArray(JSON)

                +

                A collection of the nodes which has been dragged

                +

                targetNodeJSON

                +

                JSON data object of the target node which treeNodes are draged over.

                +

                Return Boolean

                +

                return true or false

                +
                +

                Examples of setting & function

                +

                1. disable to drag the node to the target node's previous sibling.

                +
                var setting = {
                +	edit: {
                +		enable: true,
                +		drag: {
                +			prev: false,
                +			next: true,
                +			inner: true
                +		}
                +	}
                +};
                +......
                +

                2. disable to drag the node to be all of the parent nodes's previous sibling.

                +
                function canPrev(treeId, nodes, targetNode) {
                +	return !targetNode.isParent;
                +}
                +var setting = {
                +	edit: {
                +		enable: true,
                +		drag: {
                +			prev: canPrev,
                +			next: true,
                +			inner: true
                +		}
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/setting.edit.editNameSelectAll.html b/alive-admin/src/main/resources/static/ztree/api/en/setting.edit.editNameSelectAll.html new file mode 100644 index 0000000..a030359 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/setting.edit.editNameSelectAll.html @@ -0,0 +1,27 @@ +
                +
                +

                Booleansetting.edit.editNameSelectAll

                +

                Overview[ depends on jquery.ztree.exedit js ]

                +
                +

                +
                +

                When edit node's name, the text in input is selected or unselected. It is valid when [setting.edit.enable = true]

                +

                Default: false

                +
                +
                +

                Boolean Format

                +
                +

                true means: when show the input, the text in input is selected

                +

                false means: when show the input, the text in input is not selected

                +
                +

                Examples of setting

                +

                1. When edit node's name, the text in input is selected.

                +
                var setting = {
                +	edit: {
                +		enable: true,
                +		editNameSelectAll: true
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/setting.edit.enable.html b/alive-admin/src/main/resources/static/ztree/api/en/setting.edit.enable.html new file mode 100644 index 0000000..ec9d2b3 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/setting.edit.enable.html @@ -0,0 +1,39 @@ +
                +
                +

                Booleansetting.edit.enable

                +

                Overview[ depends on jquery.ztree.exedit js ]

                +
                +

                +
                +

                Set zTree is in edit mode

                +

                Please set this attribute before zTree initialization. If you need to change the edit mode after the initialization, please use zTreeObj.setEditable() method.

                +

                Default: false

                +
                +
                +

                Boolean Format

                +
                +

                true means: zTree is in edit mode.

                +

                false means: zTree is not in edit mode.

                +
                +

                Editing Rules Description

                +
                +

                1. When click the node, it will not open 'node.url' specified URL. +
                2. Support for dynamic tree editing. +
                3. You can drag-drop nodes, and support drag-drop nodes between multiple trees. +
                4. Support use drag-drop to copy or move the node. (Reference: setting.edit.drag.isCopy / setting.edit.drag.isMove) +
                5. You can use the Edit button to modify the name attribute. +
                6. You can use the Remove button to remove the node. +
                +

                +

                Please note that letter case, do not change.

                +
                +

                Examples of setting

                +

                1. edit the tree

                +
                var setting = {
                +	edit: {
                +		enable: true
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/setting.edit.removeTitle.html b/alive-admin/src/main/resources/static/ztree/api/en/setting.edit.removeTitle.html new file mode 100644 index 0000000..e217527 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/setting.edit.removeTitle.html @@ -0,0 +1,48 @@ +
                +
                +

                String / Function(treeId, treeNode)setting.edit.removeTitle

                +

                Overview[ depends on jquery.ztree.exedit js ]

                +
                +

                +
                +

                the title of the remove button DOM. It is valid when [setting.edit.enable = true & setting.edit.showRemoveBtn = true]

                +

                Default: "remove"

                +
                +
                +

                String Format

                +
                +

                When the mouse over the remove button, the browser auto pop-up message content.

                +
                +

                Function Parameter Descriptions

                +
                +

                treeIdString

                +

                zTree unique identifier: treeId, easy for users to control.

                +

                treeNodeJSON

                +

                JSON data object of the node which show the remove button

                +

                Return String

                +

                Return value is same as 'String Format'

                +
                +

                Examples of setting & function

                +

                1. Set title is 'remove the node' about all the remove button

                +
                var setting = {
                +	edit: {
                +		enable: true,
                +		showRemoveBtn: true,
                +		removeTitle: "remove the node"
                +	}
                +};
                +......
                +

                2. Set title is 'remove the parent node' about the parent node, and is 'remove the leaf node' about the leaf node

                +
                function setRemoveTitle(treeId, treeNode) {
                +	return treeNode.isParent ? "remove the parent node":"remove the leaf node";
                +}
                +var setting = {
                +	edit: {
                +		enable: true,
                +		showRemoveBtn: true,
                +		removeTitle: setRemoveTitle
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/setting.edit.renameTitle.html b/alive-admin/src/main/resources/static/ztree/api/en/setting.edit.renameTitle.html new file mode 100644 index 0000000..b8ce5a6 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/setting.edit.renameTitle.html @@ -0,0 +1,48 @@ +
                +
                +

                String / Function(treeId, treeNode)setting.edit.renameTitle

                +

                Overview[ depends on jquery.ztree.exedit js ]

                +
                +

                +
                +

                the title of the rename button DOM. It is valid when [setting.edit.enable = true & setting.edit.showRenameBtn = true]

                +

                Default: "rename"

                +
                +
                +

                String Format

                +
                +

                When the mouse over the rename button, the browser auto pop-up message content.

                +
                +

                Function Parameter Descriptions

                +
                +

                treeIdString

                +

                zTree unique identifier: treeId, easy for users to control.

                +

                treeNodeJSON

                +

                JSON data object of the node which show the rename button

                +

                Return String

                +

                return value is same as 'String Format'

                +
                +

                Examples of setting & function

                +

                1. Set title is 'rename the node' about all the rename button

                +
                var setting = {
                +	edit: {
                +		enable: true,
                +		showRenameBtn: true,
                +		renameTitle: "rename the node"
                +	}
                +};
                +......
                +

                2. Set title is 'rename the parent node' about the parent node, and is 'rename the leaf node' about the leaf node

                +
                function setRenameTitle(treeId, treeNode) {
                +	return treeNode.isParent ? "rename the parent node":"rename the leaf node";
                +}
                +var setting = {
                +	edit: {
                +		enable: true,
                +		showRenameBtn: true,
                +		renameTitle: setRenameTitle
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/setting.edit.showRemoveBtn.html b/alive-admin/src/main/resources/static/ztree/api/en/setting.edit.showRemoveBtn.html new file mode 100644 index 0000000..f0f1fe1 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/setting.edit.showRemoveBtn.html @@ -0,0 +1,50 @@ +
                +
                +

                Boolean / Function(treeId, treeNode)setting.edit.showRemoveBtn

                +

                Overview[ depends on jquery.ztree.exedit js ]

                +
                +

                +
                +

                Set to show or hide the remove button. It is valid when [setting.edit.enable = true]

                +

                When you click the remove button:

                +

                1. zTree will trigger the setting.callback.beforeRemove callback, and you can decide whether to allow delete.

                +

                2. If you don't set the 'beforeRemove' or the 'beforeRemove' callback return true, so zTree will trigger the setting.callback.onRemove callback after remove the node.

                +

                Default: true

                +
                +
                +

                Boolean Format

                +
                +

                true means: show the remove button

                +

                false means: hide the remove button

                +
                +

                Function Parameter Descriptions

                +
                +

                treeIdString

                +

                zTree unique identifier: treeId, easy for users to control.

                +

                treeNodeJSON

                +

                JSON data object of the node which show the remove button

                +

                Return Boolean

                +

                Return value is same as 'Boolean Format'

                +
                +

                Examples of setting & function

                +

                1. Hide the remove button

                +
                var setting = {
                +	edit: {
                +		enable: true,
                +		showRemoveBtn: false
                +	}
                +};
                +......
                +

                2. Hide the remove button of parent node

                +
                function setRemoveBtn(treeId, treeNode) {
                +	return !treeNode.isParent;
                +}
                +var setting = {
                +	edit: {
                +		enable: true,
                +		showRemoveBtn: setRemoveBtn
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/setting.edit.showRenameBtn.html b/alive-admin/src/main/resources/static/ztree/api/en/setting.edit.showRenameBtn.html new file mode 100644 index 0000000..4fe2f58 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/setting.edit.showRenameBtn.html @@ -0,0 +1,52 @@ +
                +
                +

                Boolean / Function(treeId, treeNode)setting.edit.showRenameBtn

                +

                Overview[ depends on jquery.ztree.exedit js ]

                +
                +

                +
                +

                Set to show or hide the rename button. It is valid when [setting.edit.enable = true]

                +

                When you click the rename button:

                +

                1. Click the rename button, you can rename the node.

                +

                2. After rename operation (the input DOM blur or press the Enter Key), zTree will trigger the setting.callback.beforeRename callback, and you can decide whether to allow rename.

                +

                3. If the 'beforeRename' callback return false, so zTree will keep the edit status. (Press the ESC key, can be restored to the original state.

                +

                4. If you don't set the 'beforeRename' or the 'beforeRename' callback return true, so zTree will trigger the setting.callback.onRename callback after rename the node.

                +

                Default: true

                +
                +
                +

                Boolean Format

                +
                +

                true means: show the rename button

                +

                false means: hide the rename button

                +
                +

                Function Parameter Descriptions

                +
                +

                treeIdString

                +

                zTree unique identifier: treeId, easy for users to control.

                +

                treeNodeJSON

                +

                JSON data object of the node which show the rename button

                +

                Return Boolean

                +

                Return value is same as 'Boolean Format'

                +
                +

                Examples of setting & function

                +

                1. Hide the rename button

                +
                var setting = {
                +	edit: {
                +		enable: true,
                +		showRenameBtn: false
                +	}
                +};
                +......
                +

                2. Hide the rename button of parent node

                +
                function setRenameBtn(treeId, treeNode) {
                +	return !treeNode.isParent;
                +}
                +var setting = {
                +	edit: {
                +		enable: true,
                +		showRenameBtn: setRenameBtn
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/setting.treeId.html b/alive-admin/src/main/resources/static/ztree/api/en/setting.treeId.html new file mode 100644 index 0000000..e4b04b3 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/setting.treeId.html @@ -0,0 +1,14 @@ +
                +
                +

                Stringsetting.treeId

                +

                Overview[ depends on jquery.ztree.core js ]

                +
                +

                +
                +

                zTree unique identifier. After the initialization, it equals to the id attribute value of the user-defined zTree container.

                +

                Do not initialize or modify it, it is an internal argument.

                +
                +
                + +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/setting.treeObj.html b/alive-admin/src/main/resources/static/ztree/api/en/setting.treeObj.html new file mode 100644 index 0000000..30eb66c --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/setting.treeObj.html @@ -0,0 +1,14 @@ +
                +
                +

                Objectsetting.treeObj

                +

                Overview[ depends on jquery.ztree.core js ]

                +
                +

                +
                +

                zTree DOM's jQuery object, the main function: easy to internal operations.

                +

                Do not initialize or modify it, it is an internal argument.

                +
                +
                + +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/setting.view.addDiyDom.html b/alive-admin/src/main/resources/static/ztree/api/en/setting.view.addDiyDom.html new file mode 100644 index 0000000..fa22bef --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/setting.view.addDiyDom.html @@ -0,0 +1,40 @@ +
                +
                +

                Function(treeId, treeNode)setting.view.addDiyDom

                +

                Overview[ depends on jquery.ztree.core js ]

                +
                +

                +
                +

                This function used to display the custom control on the node.

                +

                1. If you have huge node data, please note: this function will affect the initialization performance. If not required, it is recommended not to use this function.

                +

                2. This function is an advanced application, please make sure that a better understanding of zTree before you use it.

                +

                Default: null

                +
                +
                +

                Function Parameter Descriptions

                +
                +

                treeIdString

                +

                zTree unique identifier: treeId, easy for users to control.

                +

                treeNodeJSON

                +

                JSON data object of the node which display the custom control.

                +
                +

                Examples of setting & function

                +

                1. Display button in all nodes.

                +
                var setting = {
                +	view: {
                +		addDiyDom: addDiyDom
                +	}
                +};
                +function addDiyDom(treeId, treeNode) {
                +	var aObj = $("#" + treeNode.tId + "_a");
                +	if ($("#diyBtn_"+treeNode.id).length>0) return;
                +	var editStr = "<span id='diyBtn_space_" +treeNode.id+ "' > </span>"
                +		+ "<button type='button' class='diyBtn1' id='diyBtn_" + treeNode.id
                +		+ "' title='"+treeNode.name+"' onfocus='this.blur();'></button>";
                +	aObj.append(editStr);
                +	var btn = $("#diyBtn_"+treeNode.id);
                +	if (btn) btn.bind("click", function(){alert("diy Button for " + treeNode.name);});
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/setting.view.addHoverDom.html b/alive-admin/src/main/resources/static/ztree/api/en/setting.view.addHoverDom.html new file mode 100644 index 0000000..1ea8b6d --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/setting.view.addHoverDom.html @@ -0,0 +1,45 @@ +
                +
                +

                Function(treeId, treeNode)setting.view.addHoverDom

                +

                Overview[ depends on jquery.ztree.exedit js ]

                +
                +

                +
                +

                Used to display custom control when mouse move over the node. (e.g. the rename and remove button)

                +

                If you use this function, so must set setting.view.removeHoverDom, please make sure that a better understanding of zTree before you use it.

                +

                Default: null

                +
                +
                +

                Function Parameter Descriptions

                +
                +

                treeIdString

                +

                zTree unique identifier: treeId, easy for users to control.

                +

                treeNodeJSON

                +

                JSON data object of the node which need to display the custom control.

                +
                +

                Examples of setting & function

                +

                1. Display a button when mouse move over the node, and hide the button when mouse move out.

                +
                var setting = {
                +	view: {
                +		addHoverDom: addHoverDom,
                +		removeHoverDom: removeHoverDom,
                +		......
                +	}
                +};
                +function addHoverDom(treeId, treeNode) {
                +	var aObj = $("#" + treeNode.tId + "_a");
                +	if ($("#diyBtn_"+treeNode.id).length>0) return;
                +	var editStr = "<span id='diyBtn_space_" +treeNode.id+ "' > </span>"
                +		+ "<button type='button' class='diyBtn1' id='diyBtn_" + treeNode.id
                +		+ "' title='"+treeNode.name+"' onfocus='this.blur();'></button>";
                +	aObj.append(editStr);
                +	var btn = $("#diyBtn_"+treeNode.id);
                +	if (btn) btn.bind("click", function(){alert("diy Button for " + treeNode.name);});
                +};
                +function removeHoverDom(treeId, treeNode) {
                +	$("#diyBtn_"+treeNode.id).unbind().remove();
                +	$("#diyBtn_space_" +treeNode.id).unbind().remove();
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/setting.view.autoCancelSelected.html b/alive-admin/src/main/resources/static/ztree/api/en/setting.view.autoCancelSelected.html new file mode 100644 index 0000000..8cc2fbb --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/setting.view.autoCancelSelected.html @@ -0,0 +1,27 @@ +
                +
                +

                Booleansetting.view.autoCancelSelected

                +

                Overview[ depends on jquery.ztree.core js ]

                +
                +

                +
                +

                When click the selected node while pressing the Ctrl key, allow to cancel selected the node.

                +

                If you don't need this function, please set to false.

                +

                Default: true

                +
                +
                +

                Boolean Format

                +
                +

                true means: press the Ctrl key, can cancel selected node.

                +

                false means: press the Ctrl key, can't cancel selected node.

                +
                +

                Examples of setting

                +

                1. Press the Ctrl key, can't cancel selected node.

                +
                var setting = {
                +	view: {
                +		autoCancelSelected: false
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/setting.view.dblClickExpand.html b/alive-admin/src/main/resources/static/ztree/api/en/setting.view.dblClickExpand.html new file mode 100644 index 0000000..2517624 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/setting.view.dblClickExpand.html @@ -0,0 +1,45 @@ +
                +
                +

                Boolean / Function(treeId, treeNode)setting.view.dblClickExpand

                +

                Overview[ depends on jquery.ztree.core js ]

                +
                +

                +
                +

                When double-click the parent node, 'dblClickExpand' is used to decide whether to expand the parent node.

                +

                Default: true

                +
                +
                +

                Boolean Format

                +
                +

                true means: When double-click the parent node, zTree will expand the parent node.

                +

                false means: When double-click the parent node, zTree will not expand the parent node.

                +
                +

                Function Pamameter Descriptions

                +
                +

                treeIdString

                +

                zTree unique identifier: treeId, easy for users to control.

                +

                treeNodeJSON

                +

                JSON data object of the node which be double-clicked.

                +

                Return Boolean

                +

                Return value is same as 'Boolean Format'

                +
                +

                Example of setting

                +

                1. When double-click the parent node, zTree will not expand the parent node.

                +
                var setting = {
                +	view: {
                +		dblClickExpand: false
                +	}
                +};
                +......
                +

                2. When double-click the parent node, zTree will expand the parent node which level>0.

                +
                function dblClickExpand(treeId, treeNode) {
                +	return treeNode.level > 0;
                +};
                +var setting = {
                +	view: {
                +		dblClickExpand: dblClickExpand
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/setting.view.expandSpeed.html b/alive-admin/src/main/resources/static/ztree/api/en/setting.view.expandSpeed.html new file mode 100644 index 0000000..1911e74 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/setting.view.expandSpeed.html @@ -0,0 +1,31 @@ +
                +
                +

                String / Numbersetting.view.expandSpeed

                +

                Overview[ depends on jquery.ztree.core js ]

                +
                +

                +
                +

                The animation speed of expand or collapse node. As same as 'speed' parameter in jQuery

                +

                In order to ensure zTree operating speed, if use the IE6, zTree will not use animation.

                +

                Default: "fast"

                +
                +
                +

                String Format

                +
                +

                e.g. "slow", "normal", or "fast"

                +

                If set to "", zTree will not use animation.

                +
                +

                Number Format

                +
                +

                How long the animation will run. [Unit: ms] (e.g. 1000)

                +
                +

                Examples of setting

                +

                1. Set the animation speed to slow

                +
                var setting = {
                +	view: {
                +		expandSpeed: "slow"
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/setting.view.fontCss.html b/alive-admin/src/main/resources/static/ztree/api/en/setting.view.fontCss.html new file mode 100644 index 0000000..1ad5f51 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/setting.view.fontCss.html @@ -0,0 +1,42 @@ +
                +
                +

                JSON / Function(treeId, treeNode)setting.view.fontCss

                +

                Overview[ depends on jquery.ztree.core js ]

                +
                +

                +
                +

                Personalized text style, only applies to <A> object in the node DOM

                +

                Default: {}

                +
                +
                +

                JSON Format

                +
                +

                As same as .css() method in jQuery. e.g. {color:"#ff0011", background:"blue"}

                +
                +

                Function Parameter Descriptions

                +
                +

                treeIdString

                +

                zTree unique identifier: treeId, easy for users to control.

                +

                treeNodeJSON

                +

                JSON data object of the node which use the personalized text style

                +

                Return JSON

                +

                Return value is same as 'JSON Format'. e.g. {color:"#ff0011", background:"blue"}

                +
                +

                Examples of setting & function

                +

                1. Don't modify css file, and set the node name's color to red

                +
                var setting = {
                +	view: {
                +		fontCss : {color:"red"}
                +	}
                +};
                +

                2. Don't modify css file, and set the root node name's color to red

                +
                function setFontCss(treeId, treeNode) {
                +	return treeNode.level == 0 ? {color:"red"} : {};
                +};
                +var setting = {
                +	view: {
                +		fontCss: setFontCss
                +	}
                +};
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/setting.view.nameIsHTML.html b/alive-admin/src/main/resources/static/ztree/api/en/setting.view.nameIsHTML.html new file mode 100644 index 0000000..4fe19ad --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/setting.view.nameIsHTML.html @@ -0,0 +1,28 @@ +
                +
                +

                Booleansetting.view.nameIsHTML

                +

                Overview[ depends on jquery.ztree.core js ]

                +
                +

                +
                +

                Set to use HTML in 'name' attribute.

                +

                If allow HTML, please do check to avoid security issues, e.g. JavaScript Injection...

                +

                Default: false

                +
                +
                +

                Boolean Format

                +
                +

                true means: 'name' attribute can be HTML.

                +

                false means: 'name' attribute is only TEXT.

                +
                +

                Examples of setting

                +

                1. Set to allow HTML

                +
                var setting = {
                +	view: {
                +		nameIsHTML: true
                +	}
                +};
                +var node = {"name":"<font color='red'>test</font>"};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/setting.view.removeHoverDom.html b/alive-admin/src/main/resources/static/ztree/api/en/setting.view.removeHoverDom.html new file mode 100644 index 0000000..0c70aff --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/setting.view.removeHoverDom.html @@ -0,0 +1,45 @@ +
                +
                +

                Function(treeId, treeNode)setting.view.removeHoverDom

                +

                Overview[ depends on jquery.ztree.exedit js ]

                +
                +

                +
                +

                Used to hide custom control when mouse move out the node. (e.g. the rename and remove button)

                +

                If you use this function, so must set setting.view.addHoverDom, please make sure that a better understanding of zTree before you use it.

                +

                Default: null

                +
                +
                +

                Function Parameter Descriptions

                +
                +

                treeIdString

                +

                zTree unique identifier: treeId, easy for users to control.

                +

                treeNodeJSON

                +

                JSON data object of the node which need to hide the custom control.

                +
                +

                Examples of setting & function

                +

                1. Display a button when mouse move over the node, and hide the button when mouse move out.

                +
                var setting = {
                +	view: {
                +		addHoverDom: addHoverDom,
                +		removeHoverDom: removeHoverDom,
                +		......
                +	}
                +};
                +function addHoverDom(treeId, treeNode) {
                +	var aObj = $("#" + treeNode.tId + "_a");
                +	if ($("#diyBtn_"+treeNode.id).length>0) return;
                +	var editStr = "<span id='diyBtn_space_" +treeNode.id+ "' > </span>"
                +		+ "<button type='button' class='diyBtn1' id='diyBtn_" + treeNode.id
                +		+ "' title='"+treeNode.name+"' onfocus='this.blur();'></button>";
                +	aObj.append(editStr);
                +	var btn = $("#diyBtn_"+treeNode.id);
                +	if (btn) btn.bind("click", function(){alert("diy Button for " + treeNode.name);});
                +};
                +function removeHoverDom(treeId, treeNode) {
                +	$("#diyBtn_"+treeNode.id).unbind().remove();
                +	$("#diyBtn_space_" +treeNode.id).unbind().remove();
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/setting.view.selectedMulti.html b/alive-admin/src/main/resources/static/ztree/api/en/setting.view.selectedMulti.html new file mode 100644 index 0000000..ffa129d --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/setting.view.selectedMulti.html @@ -0,0 +1,28 @@ +
                +
                +

                Booleansetting.view.selectedMulti

                +

                Overview[ depends on jquery.ztree.core js ]

                +
                +

                +
                +

                Set whether to allow select multiple nodes.

                +

                Default: true

                +
                +
                +

                Boolean Format

                +
                +

                true mean: you can select multiple nodes.

                +

                false mean: you can only select one node.

                +

                1. Press Ctrl key, you can select multiple nodes.

                +

                2、This attribute don't affect the feature of cancel select node. ( please see setting.view.autoCancelSelected )

                +
                +

                Examples of setting

                +

                1. Only select one node.

                +
                var setting = {
                +	view: {
                +		selectedMulti: false
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/setting.view.showIcon.html b/alive-admin/src/main/resources/static/ztree/api/en/setting.view.showIcon.html new file mode 100644 index 0000000..9adf003 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/setting.view.showIcon.html @@ -0,0 +1,45 @@ +
                +
                +

                Boolean / Function(treeId, treeNode)setting.view.showIcon

                +

                Overview[ depends on jquery.ztree.core js ]

                +
                +

                +
                +

                Set to show or hide node icon.

                +

                Default: true

                +
                +
                +

                Boolean Format

                +
                +

                true means: show node icon.

                +

                false means: hide node icon.

                +
                +

                Function Parameter Descriptions

                +
                +

                treeIdString

                +

                zTree unique identifier: treeId, easy for users to control.

                +

                treeNodeJSON

                +

                JSON data object of the node which need to show icon.

                +

                Return Boolean

                +

                Return value is same as 'Boolean Format'

                +
                +

                Examples of setting & function

                +

                1. Hide node icon

                +
                var setting = {
                +	view: {
                +		showIcon: false
                +	}
                +};
                +......
                +

                2. Hide node icon which level=2

                +
                function showIconForTree(treeId, treeNode) {
                +	return treeNode.level != 2;
                +};
                +var setting = {
                +	view: {
                +		showIcon: showIconForTree
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/setting.view.showLine.html b/alive-admin/src/main/resources/static/ztree/api/en/setting.view.showLine.html new file mode 100644 index 0000000..a554014 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/setting.view.showLine.html @@ -0,0 +1,26 @@ +
                +
                +

                Booleansetting.view.showLine

                +

                Overview[ depends on jquery.ztree.core js ]

                +
                +

                +
                +

                Set to show or hide line.

                +

                Default: true

                +
                +
                +

                Boolean Format

                +
                +

                true means: show line.

                +

                false means: hide line.

                +
                +

                Examples of setting

                +

                1. Hide line

                +
                var setting = {
                +	view: {
                +		showLine: false
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/setting.view.showTitle.html b/alive-admin/src/main/resources/static/ztree/api/en/setting.view.showTitle.html new file mode 100644 index 0000000..66bb26e --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/setting.view.showTitle.html @@ -0,0 +1,47 @@ +
                +
                +

                Boolean / Function(treeId, treeNode)setting.view.showTitle

                +

                Overview[ depends on jquery.ztree.core js ]

                +
                +

                +
                +

                Set to show or hide the 'title' attribute of node DOM.

                +

                Please see the setting.data.key.title attribute

                +

                Default: true

                +
                +
                +

                Boolean Format

                +
                +

                true means: show the 'title' attribute of node DOM.

                +

                false means: hide the 'title' attribute of node DOM.

                +

                When setting.view.showTitle = true & setting.data.key.title = '', zTree will set the 'setting.data.key.name' attribute to the 'setting.data.key.title'.

                +
                +

                Function Parameter Descriptions

                +
                +

                treeIdString

                +

                zTree unique identifier: treeId, easy for users to control.

                +

                treeNodeJSON

                +

                JSON data object of the node which need to show title.

                +

                Return Boolean

                +

                Return value is same as 'Boolean Format'

                +
                +

                Examples of setting & function

                +

                1. Hide the 'title' attribute of node DOM.

                +
                var setting = {
                +	view: {
                +		showTitle: false
                +	}
                +};
                +......
                +

                2. Hide the 'title' attribute of node DOM which level=2.

                +
                function showTitleForTree(treeId, treeNode) {
                +	return treeNode.level != 2;
                +};
                +var setting = {
                +	view: {
                +		showTitle: showTitleForTree
                +	}
                +};
                +......
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/treeNode.check_Child_State.html b/alive-admin/src/main/resources/static/ztree/api/en/treeNode.check_Child_State.html new file mode 100644 index 0000000..48efb79 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/treeNode.check_Child_State.html @@ -0,0 +1,43 @@ +
                +
                +

                NumbertreeNode.check_Child_State

                +

                Overview[ depends on jquery.ztree.excheck js ]

                +
                +

                +
                +

                Used to record the node's half-checked state about its all child nodes's checkbox or radio. It is valid when [setting.check.enable = true]

                +

                zTree v3.x provides treeNode.getCheckStatus () method to get an accurate the half-checked status.

                +

                Do not initialize or modify it, it is an internal argument.

                +

                Default: true

                +
                +
                +

                Number Format

                +
                +

                Rules:

                + + + + + + + + + + + +
                setting.check.checkType = "checkbox"
                treeNode.check_Child_StateChecked Status Description
                -1Has no child nodes or all child nodes's 'nocheck' attribute is true.
                0All of the child nodes has not been checked.
                1Some of the child nodes has been checked.
                2All of the child nodes has been checked.
                +
                + + + + + + + + + + +
                setting.check.checkType = "radio"
                treeNode.check_Child_StateChecked Status Description
                -1Has no child nodes or all child nodes's 'nocheck' attribute is true.
                0All of the child nodes has not been checked.
                2Some of the child nodes has been checked.
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/treeNode.check_Focus.html b/alive-admin/src/main/resources/static/ztree/api/en/treeNode.check_Focus.html new file mode 100644 index 0000000..77b7359 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/treeNode.check_Focus.html @@ -0,0 +1,19 @@ +
                +
                +

                BooleantreeNode.check_Focus

                +

                Overview[ depends on jquery.ztree.excheck js ]

                +
                +

                +
                +

                Used to record the status which the checkbox or radio get focus. It is valid when [setting.check.enable = true]

                +

                Do not initialize or modify it, it is an internal argument.

                +

                Default: false

                +
                +
                +

                Boolean Format

                +
                +

                true means: mouse move over the checkbox

                +

                false means: mouse move out the checkbox

                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/treeNode.checked.html b/alive-admin/src/main/resources/static/ztree/api/en/treeNode.checked.html new file mode 100644 index 0000000..8a55f3d --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/treeNode.checked.html @@ -0,0 +1,32 @@ +
                +
                +

                BooleantreeNode.checked

                +

                Overview[ depends on jquery.ztree.excheck js ]

                +
                +

                +
                +

                The checked status about node's checkbox or radio. It is valid when [setting.check.enable = true & treeNode.nocheck = false]

                +

                1. If change the 'checked' to other attribute, please set the 'setting.data.key.checked' attribute.

                +

                2. If you create node data, and set 'checked' attribute to true, zTree will check this node's checkbox or radio when zTree is initialized.

                +

                3. Use the treeObj.checkNode or checkAllNodes or updateNode method, you can check or uncheck the node. Please see the API about these methods.

                +

                4. zTree support identification string 'true' & 'false'.

                +

                Default: false

                +
                +
                +

                Boolean Format

                +
                +

                true means: check the checkbox or radio when zTree is initialized.

                +

                false means: uncheck the checkbox or radio when zTree is initialized.

                +
                +

                Examples of treeNode

                +

                1. check the checkbox when zTree is initialized

                +
                var nodes = [
                +{ "id":1, "name":"test1", checked:true },
                +{ "id":2, "name":"test2", checked:true }
                +]
                +

                2. Get the checked status of the first root node

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var checked = treeObj.getNodes()[0].checked;
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/treeNode.checkedOld.html b/alive-admin/src/main/resources/static/ztree/api/en/treeNode.checkedOld.html new file mode 100644 index 0000000..ee51626 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/treeNode.checkedOld.html @@ -0,0 +1,25 @@ +
                +
                +

                BooleantreeNode.checkedOld

                +

                Overview[ depends on jquery.ztree.excheck js ]

                +
                +

                +
                +

                The checked status about node's checkbox or radio when zTree was initialized. It is valid when [setting.check.enable = true & treeNode.nocheck = false]

                +

                1. Do not initialize it, it will be initialized when the node is initialized.

                +

                2. If you need to achieve special features, you can use the zTreeObj.getChangeCheckedNodes method and modify the value of 'checkedOld' attribute.

                +

                Default: the value of 'checked' attribute when zTree is initialized

                +
                +
                +

                Boolean Format

                +
                +

                true means: the checkbox or radio is checked when zTree is initialized.

                +

                false means: the checkbox or radio is not checked when zTree is initialized.

                +
                +

                Examples of treeNode

                +

                1. Get the original checked status of the first root node

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var checkedOld = treeObj.getNodes()[0].checkedOld;
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/treeNode.children.html b/alive-admin/src/main/resources/static/ztree/api/en/treeNode.children.html new file mode 100644 index 0000000..d765bb9 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/treeNode.children.html @@ -0,0 +1,35 @@ +
                +
                +

                Array(JSON)treeNode.children

                +

                Overview[ depends on jquery.ztree.core js ]

                +
                +

                +
                +

                The data collections of node's child nodes.

                +

                1. If change the 'children' to other attribute, please set the 'setting.data.key.children' attribute.

                +

                2. If you set to use dynamic tree, when a node is expanded which 'isParent' attribute is true and which has no child nodes, zTree will use ajax to get its child nodes.

                +

                Default: undefined

                +
                +
                +

                Array(JSON) Format

                +
                +

                Standard JSON Data object

                +
                +

                Examples of treeNode

                +

                1. Use the standard JSON data object.

                +
                var nodes = [
                +{ "id":1, "name":"test1",
                +	children: [
                +	{ "id":3, "name":"test3"},
                +	{ "id":4, "name":"test4"},
                +	{ "id":5, "name":"test5"}
                +	]
                +},
                +{ "id":2, "name":"test2"  }
                +]
                +

                2. Get the first root node's child nodes

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var nodes = treeObj.getNodes()[0].children;
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/treeNode.chkDisabled.html b/alive-admin/src/main/resources/static/ztree/api/en/treeNode.chkDisabled.html new file mode 100644 index 0000000..f831775 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/treeNode.chkDisabled.html @@ -0,0 +1,28 @@ +
                +
                +

                BooleantreeNode.chkDisabled

                +

                Overview[ depends on jquery.ztree.excheck js ]

                +
                +

                +
                +

                1. Set node's checkbox / radio to disabled. It is valid when [setting.check.enable = true]

                +

                2. zTree support identification string 'true' & 'false'.

                +

                3. Please don't change this attribute of the nodes which have been created. If you want to disable or undisable the nodes, please use 'setChkDisabled()' methods.

                +

                4. If you set the parent node's checkbox / radio to disabled, its child nodes will be disabled too.

                +

                Default: false

                +
                +
                +

                Boolean Format

                +
                +

                true means: this node's checkbox / radio is disabled.

                +

                false means: this node's checkbox / radio is able.

                +
                +

                Examples of treeNode

                +

                1. disable some node's checkbox / radio

                +
                var nodes = [
                +	{ "id":1, "name":"test1", "checked":true, "chkDisabled":true},
                +	{ "id":2, "name":"test2", "chkDisabled":true},
                +	{ "id":3, "name":"test3"}
                +]
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/treeNode.click.html b/alive-admin/src/main/resources/static/ztree/api/en/treeNode.click.html new file mode 100644 index 0000000..1f9db62 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/treeNode.click.html @@ -0,0 +1,24 @@ +
                +
                +

                StringtreeNode.click

                +

                Overview[ depends on jquery.ztree.core js ]

                +
                +

                +
                +

                Simple click event operations. As same as : (onclick ="...") the code. If the operation is more complex, please use the onClick callback.

                +

                Because IE is different to other browsers in operating the event of ‘onclick’ and ‘click’ coexistence, please do not use this parameter to control whether to allow the redirection operation (for example: treeNode.click = "return false;"). If there is similar requirements, please do not use the 'url' attribute to save the website address, but use the 'onClick' callback to control jumps.

                +

                Default: undefined

                +
                +
                +

                String Format

                +
                +

                Standard javascript syntax, for example: alert ("test"); etc.

                +
                +

                Examples of treeNode

                +

                1. When click this node, will alert msg.

                +
                var nodes = [
                +	{ "id":1, "name":"Google CN", "url":"http://g.cn", "click":"alert('test');"},
                +	......
                +]
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/treeNode.diy.html b/alive-admin/src/main/resources/static/ztree/api/en/treeNode.diy.html new file mode 100644 index 0000000..68c39ba --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/treeNode.diy.html @@ -0,0 +1,15 @@ +
                +
                +

                ?treeNode.* DIY *

                +

                Overview[ depends on jquery.ztree.core js ]

                +
                +

                +
                +

                Used to save other custom data of node, do not use the same attribute name with ztree used, the user can freely set.

                +
                +
                +

                Examples of treeNode

                +

                1. Use 'ename' attribute to save more info

                +
                var node = { "id":1, "name":"test1", "ename":"test eName"};
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/treeNode.editNameFlag.html b/alive-admin/src/main/resources/static/ztree/api/en/treeNode.editNameFlag.html new file mode 100644 index 0000000..f60ef2a --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/treeNode.editNameFlag.html @@ -0,0 +1,19 @@ +
                +
                +

                BooleantreeNode.editNameFlag

                +

                Overview[ depends on jquery.ztree.exedit js ]

                +
                +

                +
                +

                Used to save the node editing name status. It is valid when [setting.edit.enable = true]

                +

                Do not initialize or modify it, it is an internal argument.

                +

                Default: false

                +
                +
                +

                Boolean Format

                +
                +

                true means: node is being edited.

                +

                false means: node is not being edited.

                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/treeNode.getCheckStatus.html b/alive-admin/src/main/resources/static/ztree/api/en/treeNode.getCheckStatus.html new file mode 100644 index 0000000..3c9a2e6 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/treeNode.getCheckStatus.html @@ -0,0 +1,63 @@ +
                +
                +

                Function()treeNode.getCheckStatus

                +

                Overview[ depends on jquery.ztree.excheck js ]

                +
                +

                +
                +

                Get the node's half-checked status of checkbox or radio. It is valid when [setting.check.enable = true]

                +

                Do not initialize or modify it, it is created by the zTree.

                +
                +
                +

                Function Parameter Descriptions

                +
                +

                ReturnJSON

                +
                {
                +	checked: true, //As same as 'treeNode.checked'
                +	half: true  //Rule the table below
                +}
                + + + + + + + + + + + + + + + + + + +
                setting.check.checkType = "checkbox"
                treeNode.checkedtreeNode.check_Child_StatetreeNode.halfCheck half
                --truetrue
                 
                true-1falsefalse
                true0falsetrue
                true1falsetrue
                true2falsefalse
                 
                false-1falsefalse
                false0falsefalse
                false1falsetrue
                false2falsetrue
                +
                + + + + + + + + + + + + + + + + +
                setting.check.checkType = "radio"
                treeNode.checkedtreeNode.check_Child_StatetreeNode.halfCheck half
                --truetrue
                 
                true-1falsefalse
                true0falsefalse
                true2falsetrue
                 
                false-1falsefalse
                false0falsefalse
                false2falsetrue
                +
                +

                Examples of treeNode

                +

                1. Get the first root node's half-checked status

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var halfCheck = treeObj.getNodes()[0].getCheckStatus();
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/treeNode.getNextNode.html b/alive-admin/src/main/resources/static/ztree/api/en/treeNode.getNextNode.html new file mode 100644 index 0000000..755aa6e --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/treeNode.getNextNode.html @@ -0,0 +1,27 @@ +
                +
                +

                Function()treeNode.getNextNode

                +

                Overview[ depends on jquery.ztree.core js ]

                +
                +

                +
                +

                Get the treeNode's next sibling node.

                +

                Do not initialize or modify it, it is created by the zTree.

                +
                +
                +

                Function Parameter Descriptions

                +
                +

                ReturnJSON

                +

                JSON data object of the treeNode's next sibling node

                +

                If have not the next node, return null.

                +
                +

                Examples of treeNode

                +

                1. Get the first selected node's next sibling node.

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var sNodes = treeObj.getSelectedNodes();
                +if (sNodes.length > 0) {
                +	var node = sNodes[0].getNextNode();
                +}
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/treeNode.getParentNode.html b/alive-admin/src/main/resources/static/ztree/api/en/treeNode.getParentNode.html new file mode 100644 index 0000000..16bab30 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/treeNode.getParentNode.html @@ -0,0 +1,27 @@ +
                +
                +

                Function()treeNode.getParentNode

                +

                Overview[ depends on jquery.ztree.core js ]

                +
                +

                +
                +

                Get the treeNode's parent node.

                +

                Do not initialize or modify it, it is created by the zTree.

                +
                +
                +

                Function Parameter Descriptions

                +
                +

                ReturnJSON

                +

                JSON data object of treeNode's parent node.

                +

                If treeNode is root, return null.

                +
                +

                Examples of treeNode

                +

                1. Get the first selected node's parent node.

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var sNodes = treeObj.getSelectedNodes();
                +if (sNodes.length > 0) {
                +	var node = sNodes[0].getParentNode();
                +}
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/treeNode.getPreNode.html b/alive-admin/src/main/resources/static/ztree/api/en/treeNode.getPreNode.html new file mode 100644 index 0000000..f6745b1 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/treeNode.getPreNode.html @@ -0,0 +1,27 @@ +
                +
                +

                Function()treeNode.getPreNode

                +

                Overview[ depends on jquery.ztree.core js ]

                +
                +

                +
                +

                Get the treeNode's previous sibling node.

                +

                Do not initialize or modify it, it is created by the zTree.

                +
                +
                +

                Function Parameter Descriptions

                +
                +

                ReturnJSON

                +

                JSON data object of the treeNode's previous sibling node

                +

                If have not the previous node, return null.

                +
                +

                Examples of treeNode

                +

                1. Get the first selected node's previous sibling node.

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var sNodes = treeObj.getSelectedNodes();
                +if (sNodes.length > 0) {
                +	var node = sNodes[0].getPreNode();
                +}
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/treeNode.halfCheck.html b/alive-admin/src/main/resources/static/ztree/api/en/treeNode.halfCheck.html new file mode 100644 index 0000000..8375326 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/treeNode.halfCheck.html @@ -0,0 +1,29 @@ +
                +
                +

                BooleantreeNode.halfCheck

                +

                Overview[ depends on jquery.ztree.excheck js ]

                +
                +

                +
                +

                Force node checkBox / radio to the half-checked status. It is valid when [setting.check.enable = true & treeNode.nocheck = false]

                +

                1. If you force to the half-checked status, zTree will not automatically calculated the half-checked status about this node.

                +

                2. Until you set treeNode.halfCheck to false or null, zTree will automatically calculated the half-checked status about this node.

                +

                3. zTree support identification string 'true' & 'false'.

                +

                Defaul: false

                +
                +
                +

                Boolean Format

                +
                +

                true means: the checkbox or radio is half-checked when zTree is initialized.

                +

                false means: the half-checked status will be automatically calculated

                +
                +

                Examples of treeNode

                +

                1. set the half-checked status when zTree is initialized

                +
                var nodes = [
                +{ "id":1, "name":"test1", isParent:true, checked:true, halfCheck:true },
                +{ "id":2, "name":"test2", isParent:true, checked:false, halfCheck:true },
                +{ "id":3, "name":"test3", isParent:true, checked:true },
                +{ "id":4, "name":"test4", isParent:true, checked:false }
                +]
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/treeNode.icon.html b/alive-admin/src/main/resources/static/ztree/api/en/treeNode.icon.html new file mode 100644 index 0000000..4e1c99f --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/treeNode.icon.html @@ -0,0 +1,33 @@ +
                +
                +

                StringtreeNode.icon

                +

                Overview[ depends on jquery.ztree.core js ]

                +
                +

                +
                +

                URL path of node's custom icon.

                +

                1. If you only set the 'icon' attribute to parent node, the parent node will only show one icon when it is expanded or collapsed.

                +

                2. If you need to show two icons when it is expanded or collapsed, please set the 'treeNode.iconOpen' and 'treeNode.iconClose' attribute.

                +

                3. If you need to use css to set the custom icon, please set the 'treeNode.iconSkin' attribute.

                +

                Default: undefined

                +
                +
                +

                String Format

                +
                +

                Icon image url can be a relative path or absolute path.

                +

                If use a relative path, please note the relationship between icon image and the page, ensure the correct image path.

                +
                +

                Examples of treeNode

                +

                1. Set the custom icon

                +
                var nodes = [
                +	//Only show one icon when it is expanded or collapsed.
                +	{ name:"Parent Node 1", icon:"/img/parent.gif"},
                +
                +	//Show two icons when it is expanded or collapsed.
                +	{ name:"Parent Node 2", iconOpen:"/img/open.gif", iconClose:"/img/close.gif"},
                +
                +	//the custom icon for leaf node
                +	{ name:"Leaf Node", icon:"/img/leaf.gif"}
                +]
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/treeNode.iconClose.html b/alive-admin/src/main/resources/static/ztree/api/en/treeNode.iconClose.html new file mode 100644 index 0000000..2259e8f --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/treeNode.iconClose.html @@ -0,0 +1,33 @@ +
                +
                +

                StringtreeNode.iconClose

                +

                Overview[ depends on jquery.ztree.core js ]

                +
                +

                +
                +

                URL path of parent node's custom icon when it is collapsed.

                +

                1. Only parent node support this attribute.

                +

                2. This attribute must be used simultaneously with 'iconOpen' attribute.

                +

                3. If you need to use css to set the custom icon, please set the 'treeNode.iconSkin' attribute.

                +

                Default: undefined

                +
                +
                +

                String Format

                +
                +

                Icon image url can be a relative path or absolute path.

                +

                If use a relative path, please note the relationship between icon image and the page, ensure the correct image path.

                +
                +

                Examples of treeNode

                +

                1. Set the custom icon

                +
                var nodes = [
                +	//Only show one icon when it is expanded or collapsed.
                +	{ name:"Parent Node 1", icon:"/img/parent.gif"},
                +
                +	//Show two icons when it is expanded or collapsed.
                +	{ name:"Parent Node 2", iconOpen:"/img/open.gif", iconClose:"/img/close.gif"},
                +
                +	//the custom icon for leaf node
                +	{ name:"Leaf Node", icon:"/img/leaf.gif"}
                +]
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/treeNode.iconOpen.html b/alive-admin/src/main/resources/static/ztree/api/en/treeNode.iconOpen.html new file mode 100644 index 0000000..3203615 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/treeNode.iconOpen.html @@ -0,0 +1,33 @@ +
                +
                +

                StringtreeNode.iconOpen

                +

                Overview[ depends on jquery.ztree.core js ]

                +
                +

                +
                +

                URL path of parent node's custom icon when it is expanded.

                +

                1. Only parent node support this attribute.

                +

                2. This attribute must be used simultaneously with 'iconClose' attribute.

                +

                3. If you need to use css to set the custom icon, please set the 'treeNode.iconSkin' attribute.

                +

                Default: undefined

                +
                +
                +

                String Format

                +
                +

                Icon image url can be a relative path or absolute path.

                +

                If use a relative path, please note the relationship between icon image and the page, ensure the correct image path.

                +
                +

                Examples of treeNode

                +

                1. Set the custom icon

                +
                var nodes = [
                +	//Only show one icon when it is expanded or collapsed.
                +	{ name:"Parent Node 1", icon:"/img/parent.gif"},
                +
                +	//Show two icons when it is expanded or collapsed.
                +	{ name:"Parent Node 2", iconOpen:"/img/open.gif", iconClose:"/img/close.gif"},
                +
                +	//the custom icon for leaf node
                +	{ name:"Leaf Node", icon:"/img/leaf.gif"}
                +]
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/treeNode.iconSkin.html b/alive-admin/src/main/resources/static/ztree/api/en/treeNode.iconSkin.html new file mode 100644 index 0000000..fca7fbf --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/treeNode.iconSkin.html @@ -0,0 +1,43 @@ +
                +
                +

                StringtreeNode.iconSkin

                +

                Overview[ depends on jquery.ztree.core js ]

                +
                +

                +
                +

                The className of node's custom icon.

                +

                1. You need to modify the css, add the definition of className.

                +

                2. The css is simple, convenient, and support the parent node to switch icons when it is expanded or collapsed.

                +

                3. Recommend the use of CSS Sprites, can reduce repeating load the image, to avoid image flicker.

                +

                4. The 'iconSkin' support IE6 in zTree v3.x.

                +

                5. If you need to use image's URL to set the custom icon, please set the 'treeNode.icon' or 'treeNode.iconOpen' or 'treeNode.iconClose' attribute.

                +

                Default: undefined

                +
                +
                +

                String Format

                +
                +

                The string about custom icon's className.

                +
                +

                Examples of css & treeNode

                +

                1. Set the custom icon

                +
                css example:
                +.ztree li span.button.diy01_ico_open, .ztree li span.button.diy01_ico_close{...}
                +
                +.ztree li span.button.diy02_ico_open{...}
                +.ztree li span.button.diy02_ico_close{...}
                +
                +.ztree li span.button.diy03_ico_docu{...}
                +
                +node's data example:
                +var nodes = [
                +	//Only show one icon when it is expanded or collapsed.
                +	{ name:"Parent Node 1", iconSkin:"diy01"},
                +
                +	//Show two icons when it is expanded or collapsed.
                +	{ name:"Parent Node 2", iconSkin:"diy02"},
                +
                +	//the custom icon for leaf node
                +	{ name:"Leaf Node", iconSkin:"diy03"}
                +]
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/treeNode.isAjaxing.html b/alive-admin/src/main/resources/static/ztree/api/en/treeNode.isAjaxing.html new file mode 100644 index 0000000..ddadf41 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/treeNode.isAjaxing.html @@ -0,0 +1,26 @@ +
                +
                +

                BooleantreeNode.isAjaxing

                +

                Overview[ depends on jquery.ztree.core js ]

                +
                +

                +
                +

                Judge whether the node's child nodes being loaded asynchronously.

                +

                Do not initialize or modify it, it is created by the zTree.

                +
                +
                +

                Boolean Format

                +
                +

                true means: the node's child nodes is being loaded asynchronously

                +

                false means: the node's child nodes is not being loaded asynchronously

                +
                +

                Examples of treeNode

                +

                1. Judge whether the first selected node's child nodes being loaded asynchronously

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var sNodes = treeObj.getSelectedNodes();
                +if (sNodes.length > 0) {
                +	var isAjaxing = sNodes[0].isAjaxing;
                +}
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/treeNode.isFirstNode.html b/alive-admin/src/main/resources/static/ztree/api/en/treeNode.isFirstNode.html new file mode 100644 index 0000000..a8ee61c --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/treeNode.isFirstNode.html @@ -0,0 +1,28 @@ +
                +
                +

                BooleantreeNode.isFirstNode

                +

                Overview[ depends on jquery.ztree.core js ]

                +
                +

                +
                +

                Judge whether the node is the sibling nodes's first node.

                +

                If you use the 'exhide' pack, so this attribute will only support the node which be shown.

                +

                Do not initialize or modify it, it is created by the zTree.

                +
                +
                +

                Boolean Format

                +
                +

                true means: the node is first node.

                +

                false means: the node is not first node.

                +

                If the node has been hidden, isFirstNode = false

                +
                +

                Examples of treeNode

                +

                1. Judge whether the first selected node is the sibling nodes's first node.

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var sNodes = treeObj.getSelectedNodes();
                +if (sNodes.length > 0) {
                +	var isFirstNode = sNodes[0].isFirstNode;
                +}
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/treeNode.isHidden.html b/alive-admin/src/main/resources/static/ztree/api/en/treeNode.isHidden.html new file mode 100644 index 0000000..3a07b94 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/treeNode.isHidden.html @@ -0,0 +1,28 @@ +
                +
                +

                BooleantreeNode.isHidden

                +

                Overview[ depends on jquery.ztree.exhide js ]

                +
                +

                +
                +

                Judge whether the node has been hidden.

                +

                1. When initialize zTree, the nodes which be set 'isHidden = true' will be hidden.

                +

                +

                2. Please don't change this attribute of the nodes which have been created. If you want to hide or show nodes, please use 'hideNode() / hideNodes() / showNode() / showNodes()' methods.

                +
                +
                +

                Boolean Format

                +
                +

                true means: this node is hidden.

                +

                false means: this node is shown.

                +
                +

                Examples of treeNode

                +

                1. Judge whether the first root node has been hidden.

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var sNodes = treeObj.getNodes();
                +if (sNodes.length > 0) {
                +	var isHidden = sNodes[0].isHidden;
                +}
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/treeNode.isHover.html b/alive-admin/src/main/resources/static/ztree/api/en/treeNode.isHover.html new file mode 100644 index 0000000..e18ed0c --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/treeNode.isHover.html @@ -0,0 +1,19 @@ +
                +
                +

                BooleantreeNode.isHover

                +

                Overview[ depends on jquery.ztree.exedit js ]

                +
                +

                +
                +

                Used to record the hover status of node's DOM. For 'setting.view.addHoverDom / removeHoverDom'.

                +

                Do not initialize or modify it, it is an internal argument.

                +

                Default: false

                +
                +
                +

                Boolean Format

                +
                +

                true means: the node's DOM is in hover.

                +

                false means: the node's DOM is not in hover.

                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/treeNode.isLastNode.html b/alive-admin/src/main/resources/static/ztree/api/en/treeNode.isLastNode.html new file mode 100644 index 0000000..cd2ca26 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/treeNode.isLastNode.html @@ -0,0 +1,28 @@ +
                +
                +

                BooleantreeNode.isLastNode

                +

                Overview[ depends on jquery.ztree.core js ]

                +
                +

                +
                +

                Judge whether the node is the sibling nodes's last node.

                +

                If you use the 'exhide' pack, so this attribute will only support the node which be shown.

                +

                Do not initialize or modify it, it is created by the zTree.

                +
                +
                +

                Boolean Format

                +
                +

                true means: the node is last node.

                +

                false means: the node is not last node.

                +

                If the node has been hidden, isLastNode = false

                +
                +

                Examples of treeNode

                +

                1. Judge whether the first selected node is the sibling nodes's last node.

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var sNodes = treeObj.getSelectedNodes();
                +if (sNodes.length > 0) {
                +	var isLastNode = sNodes[0].isLastNode;
                +}
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/treeNode.isParent.html b/alive-admin/src/main/resources/static/ztree/api/en/treeNode.isParent.html new file mode 100644 index 0000000..dad4b81 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/treeNode.isParent.html @@ -0,0 +1,28 @@ +
                +
                +

                BooleantreeNode.isParent

                +

                Overview[ depends on jquery.ztree.core js ]

                +
                +

                +
                +

                Judge whether the node is the parent node.

                +

                1. When zTree initialize the node data, the node which has children is set to true, otherwise false.

                +

                2. When zTree initialize the node data, if set treeNode.isParent to true, the node will be set to be parent node.

                +

                3. In order to solve the problem of someone make json data, supporting "false", "true" format of the data string.

                +
                +
                +

                Boolean Format

                +
                +

                true means: the node is parent node.

                +

                false means: the node is not parent node.

                +
                +

                Examples of treeNode

                +

                1. Judge whether the first selected node is the parent node.

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var sNodes = treeObj.getSelectedNodes();
                +if (sNodes.length > 0) {
                +	var isParent = sNodes[0].isParent;
                +}
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/treeNode.level.html b/alive-admin/src/main/resources/static/ztree/api/en/treeNode.level.html new file mode 100644 index 0000000..d151162 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/treeNode.level.html @@ -0,0 +1,25 @@ +
                +
                +

                NumbertreeNode.level

                +

                Overview[ depends on jquery.ztree.core js ]

                +
                +

                +
                +

                The level of node

                +

                Do not initialize or modify it, it is created by the zTree.

                +
                +
                +

                Number Format

                +
                +

                The root node's level = 0, and next level = 1, ...

                +
                +

                Examples of treeNode

                +

                1. Get the first selected node's level

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var sNodes = treeObj.getSelectedNodes();
                +if (sNodes.length > 0) {
                +	var level = sNodes[0].level;
                +}
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/treeNode.name.html b/alive-admin/src/main/resources/static/ztree/api/en/treeNode.name.html new file mode 100644 index 0000000..fa508cc --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/treeNode.name.html @@ -0,0 +1,25 @@ +
                +
                +

                StringtreeNode.name

                +

                Overview[ depends on jquery.ztree.core js ]

                +
                +

                +
                +

                The node's name

                +

                1. If you want to change 'name' attribute, please modify the 'setting.data.key.name' attribute.

                +

                Default: undenfined

                +
                +
                +

                String Format

                +
                +

                String object. The HTML special characters are escaped

                +
                +

                Examples of treeNode

                +

                1. Set node's name to 'test1', 'test2', 'test3'

                +
                var nodes = [
                +	{ "id":1, "name":"test1"},
                +	{ "id":2, "name":"test2"},
                +	{ "id":3, "name":"test3"}
                +]
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/treeNode.nocheck.html b/alive-admin/src/main/resources/static/ztree/api/en/treeNode.nocheck.html new file mode 100644 index 0000000..6c4880c --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/treeNode.nocheck.html @@ -0,0 +1,26 @@ +
                +
                +

                BooleantreeNode.nocheck

                +

                Overview[ depends on jquery.ztree.excheck js ]

                +
                +

                +
                +

                1. Set node to hide the checkbox or radio. It is valid when [setting.check.enable = true]

                +

                2. zTree support identification string 'true' & 'false'.

                +

                Default: false

                +
                +
                +

                Boolean Format

                +
                +

                true means: the node hide the checkbox or radio, and don't affect the checked association, and don't affect its parent node's half-checked status.

                +

                false means: the node show the checkbox or radio.

                +
                +

                Examples of treeNode

                +

                1. Hide some node's checkbox / radio

                +
                var nodes = [
                +	{ "id":1, "name":"test1", "nocheck":true},
                +	{ "id":2, "name":"test2"},
                +	{ "id":3, "name":"test3"}
                +]
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/treeNode.open.html b/alive-admin/src/main/resources/static/ztree/api/en/treeNode.open.html new file mode 100644 index 0000000..f9d7972 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/treeNode.open.html @@ -0,0 +1,29 @@ +
                +
                +

                BooleantreeNode.open

                +

                Overview[ depends on jquery.ztree.core js ]

                +
                +

                +
                +

                Used to record the parent node's expand status.

                +

                1. When zTree initialize the node data, if you set treeNode.open = true, zTree will default expand this parent node.

                +

                2. Leaf node's 'open' attribute is false.

                +

                3. In order to solve the problem of someone make json data, supporting "false", "true" format of the data string.

                +

                Default: false

                +
                +
                +

                Boolean Format

                +
                +

                true means: the parent node is expanded.

                +

                false means: the parent node is collapsed.

                +
                +

                Examples of treeNode

                +

                1. Get the first selected node's expand status.

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var sNodes = treeObj.getSelectedNodes();
                +if (sNodes.length > 0) {
                +	var isOpen = sNodes[0].open;
                +}
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/treeNode.parentTId.html b/alive-admin/src/main/resources/static/ztree/api/en/treeNode.parentTId.html new file mode 100644 index 0000000..0bc2a6d --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/treeNode.parentTId.html @@ -0,0 +1,27 @@ +
                +
                +

                StringtreeNode.parentTId

                +

                Overview[ depends on jquery.ztree.core js ]

                +
                +

                +
                +

                The unique identifier of node's parent node.

                +

                1. zTree v3.x using 'parentTId' replaced the original 'parentNode' attribute, and increased getParentNode () method, in order to avoid the original 'parentNode' cause the clone () method infinite loop.

                +

                2. Do not initialize or modify it, it is created by the zTree.

                +
                +
                +

                String Format

                +
                +

                String object of node's parent node's tId. please see API about 'treeNode.tId'

                +

                If treeNode is root node, parentTId is null.

                +
                +

                Examples of treeNode

                +

                1. Get the first selected node's parent node's tId

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var sNodes = treeObj.getSelectedNodes();
                +if (sNodes.length > 0) {
                +	var parentTId = sNodes[0].parentTId;
                +}
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/treeNode.tId.html b/alive-admin/src/main/resources/static/ztree/api/en/treeNode.tId.html new file mode 100644 index 0000000..18c2855 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/treeNode.tId.html @@ -0,0 +1,25 @@ +
                +
                +

                StringtreeNode.tId

                +

                Overview[ depends on jquery.ztree.core js ]

                +
                +

                +
                +

                The unique identifier of node.

                +

                Do not initialize or modify it, it is created by the zTree.

                +
                +
                +

                String Format

                +
                +

                tId rules: setting.treeId + "_" + zTree counter

                +
                +

                Examples of treeNode

                +

                1. Get the first selected node's tId

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var sNodes = treeObj.getSelectedNodes();
                +if (sNodes.length > 0) {
                +	var tId = sNodes[0].tId;
                +}
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/treeNode.target.html b/alive-admin/src/main/resources/static/ztree/api/en/treeNode.target.html new file mode 100644 index 0000000..176a7a3 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/treeNode.target.html @@ -0,0 +1,24 @@ +
                +
                +

                StringtreeNode.target

                +

                Overview[ depends on jquery.ztree.core js ]

                +
                +

                +
                +

                Used to set the target where the node is clicked to open url. It is valid when [treeNode.url exists]

                +

                Default: undefined

                +
                +
                +

                String Format

                +
                +

                As same as <a> tag's 'target' attribute. e.g. '_blank', '_self' or other window name.

                +

                if this attribute is omitted, zTree default set it to '_blank'

                +
                +

                Exmaples of treeNode

                +

                1. Set target is '_blank'

                +
                var nodes = [
                +	{ "id":1, "name":"test1", "url":"http://myTest.com", "target":"_blank"},
                +	......
                +]
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/treeNode.url.html b/alive-admin/src/main/resources/static/ztree/api/en/treeNode.url.html new file mode 100644 index 0000000..5552445 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/treeNode.url.html @@ -0,0 +1,25 @@ +
                +
                +

                StringtreeNode.url

                +

                Overview[ depends on jquery.ztree.core js ]

                +
                +

                +
                +

                The URL of node link

                +

                1. In edit mode (setting.edit.enable = true) , this feature fails. If you must use a similar feature, please use the 'onClick' callback for their own control.

                +

                2. If you use the 'onClick' callback function to control opening URL , then set the URL in the other custom attribute, do not use the 'url' attribute.

                +

                Default: undefined

                +
                +
                +

                String Format

                +
                +

                As same as <a> tag's 'href' attribute.

                +
                +

                Examples of treeNode

                +

                1. Set the URL is 'g.cn'

                +
                var nodes = [
                +	{ "id":1, "name":"Google CN", "url":"http://g.cn"},
                +	......
                +]
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/treeNode.zAsync.html b/alive-admin/src/main/resources/static/ztree/api/en/treeNode.zAsync.html new file mode 100644 index 0000000..b3ff414 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/treeNode.zAsync.html @@ -0,0 +1,28 @@ +
                +
                +

                BooleantreeNode.zAsync

                +

                Overview[ depends on jquery.ztree.core js ]

                +
                +

                +
                +

                Judge whether the parent node's child nodes will be loaded asynchronously when the parent node is expanded.

                +

                Do not initialize or modify it, it is created by the zTree.

                +

                Default:false (the parent node which have no child nodes); true (the parent node which have child nodes or the leaf node)

                +
                +
                +

                Boolean Format

                +
                +

                true means: the node's child nodes will not be loaded asynchronously when the parent node is expanded.

                +

                false means: the node's child nodes will be loaded asynchronously when the parent node is expanded.

                +

                This attribute will not effect to 'reAsyncChildNodes()' method

                +
                +

                Examples of treeNode

                +

                1. Judge whether the first selected node's child nodes has been loaded asynchronously

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var sNodes = treeObj.getSelectedNodes();
                +if (sNodes.length > 0) {
                +	var zAsync = sNodes[0].zAsync;
                +}
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.addNodes.html b/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.addNodes.html new file mode 100644 index 0000000..680ccc4 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.addNodes.html @@ -0,0 +1,42 @@ +
                +
                +

                Function(parentNode, newNodes, isSilent)zTreeObj.addNodes

                +

                Overview[ depends on jquery.ztree.core js ]

                +
                +

                +
                +

                Add nodes

                +

                In order to avoid duplication data resulting from repeated initialization, zTree v3.x will automatically clone node data when zTree initialized or add nodes. If you need to get the data objects within the zTree, please get the return value of this method.

                +

                Please use zTree object to executing the method.

                +
                +
                +

                Function Parameter Descriptions

                +
                +

                parentNodeJSON

                +

                The additional node's parent node. If additional node is root node, please the parentNode is null.

                +

                Please ensure this node data object is a data object within zTree.

                +

                newNodesJSON / Array(JSON)

                +

                The node data's JSON object collection which need to increase, refer to 'treeNode treeNode data details'

                +

                1. zTree v3.x support to add single node, that is, if you only add a node, you can don't use the array.

                +

                2. If you use simple data model, please refer to the attributes within the 'setting.data.simpleData'.

                +

                isSilentBoolean

                +

                Set whether to automatically expand the parent node, after add nodes.

                +

                isSilent = true means: don't auto expand the parent node. Otherwise auto expand.

                +

                Return Array(JSON)

                +

                return the new nodes in zTree

                +

                If the newNodes is single data object, the return value is a array with length is 1.

                +

                Note: the node data JSON object in the return value is not equal to the JSON object in the 'newNodes'.

                +
                +

                Examples of function

                +

                1. Add one root node to zTree which id is 'tree'

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var newNode = {name:"newNode1"};
                +newNode = treeObj.addNodes(null, newNode);
                +
                +

                2. Add three root nodes to zTree which id is 'tree'

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var newNodes = [{name:"newNode1"}, {name:"newNode2"}, {name:"newNode3"}];
                +newNodes = treeObj.addNodes(null, newNodes);
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.cancelEditName.html b/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.cancelEditName.html new file mode 100644 index 0000000..8afdae0 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.cancelEditName.html @@ -0,0 +1,30 @@ +
                +
                +

                Function(newName)zTreeObj.cancelEditName

                +

                Overview[ depends on jquery.ztree.exedit js ]

                +
                +

                +
                +

                Cancel the edit name status. Can restore the original name, and can also force assigned to a new name.

                +

                Please use zTree object to executing the method.

                +
                +
                +

                Function Parameter Descriptions

                +
                +

                newNameString

                +

                Re given a new name

                +

                If this parameter is omitted, then restore the original name.

                +

                Return none

                +

                no return value

                +
                +

                Examples of function

                +

                1. Cancel edit name, and restore the original name.

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +treeObj.cancelEditName();
                +
                +

                2. Cancel edit name , and set the new name.

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +treeObj.cancelEditName("test_new_name");
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.cancelSelectedNode.html b/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.cancelSelectedNode.html new file mode 100644 index 0000000..581c2d2 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.cancelSelectedNode.html @@ -0,0 +1,35 @@ +
                +
                +

                Function(treeNode)zTreeObj.cancelSelectedNode

                +

                Overview[ depends on jquery.ztree.core js ]

                +
                +

                +
                +

                To cancel the selected node.

                +

                zTree v3.x support to select multiple nodes, so you can cancel a single selected node, and you can cancel all of the selected nodes too.

                +

                Please use zTree object to executing the method.

                +
                +
                +

                Function Parameter Descriptions

                +
                +

                treeNodeJSON

                +

                JSON data object of the node which need to cancel selected.

                +

                Please ensure that this data object is an internal node data object in zTree.

                +

                If you omit this parameter, zTree will cancel all of the selected nodes.

                +

                Return none

                +

                no return value

                +
                +

                Examples of function

                +

                1. Cancel all of the selected nodes

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +treeObj.cancelSelectedNode();
                +
                +

                2. Cancel the first node of the selected nodes

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var nodes = treeObj.getSelectedNode();
                +if (nodes.length>0) { 
                +	treeObj.cancelSelectedNode(nodes[0]);
                +}
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.checkAllNodes.html b/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.checkAllNodes.html new file mode 100644 index 0000000..276b629 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.checkAllNodes.html @@ -0,0 +1,29 @@ +
                +
                +

                Function(checked)zTreeObj.checkAllNodes

                +

                Overview[ depends on jquery.ztree.excheck js ]

                +
                +

                +
                +

                Check or unCheck all nodes which have been initialized. It is valid when [setting.check.enable = true & setting.check.chkStyle = "checkbox"]

                +

                This method does not trigger 'beforeCheck' or 'onCheck' callback function.

                +

                Please use zTree object to executing the method.

                +
                +
                +

                Function Parameter Descriptions

                +
                +

                checkedBoolean

                +

                checked = true means: check all nodes.

                +

                checked = false means: uncheck all nodes.

                +

                Don't affect the node which 'nochecked' attribute is true.

                +

                Don't affect the node is not loaded.

                +

                Return none

                +

                no return value

                +
                +

                Examples of function

                +

                1. check all nodes

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +treeObj.checkAllNodes(true);
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.checkNode.html b/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.checkNode.html new file mode 100644 index 0000000..7411ef8 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.checkNode.html @@ -0,0 +1,44 @@ +
                +
                +

                Function(treeNode, checked, checkTypeFlag, callbackFlag)zTreeObj.checkNode

                +

                Overview[ depends on jquery.ztree.excheck js ]

                +
                +

                +
                +

                Check or unCheck a single node. It is valid when [setting.check.enable = true]

                +

                Use checkNode() method of zTree v3.x can trigger 'beforeCheck' or 'onCheck' callback function. for reduce redundant code.

                +

                Please use zTree object to executing the method.

                +
                +
                +

                Function Parameter Descriptions

                +
                +

                treeNodeJSON

                +

                JSON data object of the node which need to be checked or unchecked.

                +

                Please ensure that this data object is an internal node data object in zTree.

                +

                checkedBoolean

                +

                checked = true means: check node.

                +

                checked = false means: uncheck node.

                +

                If this parameter is omitted, then toggle check or uncheck depend this node's expanded state.

                +

                Don't affect the node which 'nochecked' attribute is true.

                +

                checkTypeFlagBoolean

                +

                checkTypeFlag = true means: According to 'setting.check.chkboxType' attribute automatically check or uncheck the parent and child nodes.

                +

                checkTypeFlag = false means: only check or uncheck this node, don't affect its parent and child nodes.

                +

                When checkTypeFlag = false and treeNode.checked = checked, will not trigger callback function.

                +

                Don't affect the parent and child nodes which 'nochecked' attribute is true.

                +

                callbackFlagBoolean

                +

                callbackFlag = true means: call this method, will trigger 'beforeCheck' & 'onCheck' callback.

                +

                callbackFlag = false means: call this method, will not trigger callback.

                +

                If this parameter is omitted, it is same as 'callbackFlag = false'

                +

                Return none

                +

                no return value

                +
                +

                Examples of function

                +

                1. check the selected nodes

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var nodes = treeObj.getSelectedNodes();
                +for (var i=0, l=nodes.length; i < l; i++) {
                +	treeObj.checkNode(nodes[i], true, true);
                +}
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.copyNode.html b/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.copyNode.html new file mode 100644 index 0000000..a98e84d --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.copyNode.html @@ -0,0 +1,47 @@ +
                +
                +

                Function(targetNode, treeNode, moveType, isSilent)zTreeObj.copyNode

                +

                Overview[ depends on jquery.ztree.exedit js ]

                +
                +

                +
                +

                Copy the node

                +

                When copy nodes, zTree v3.x will clone nodes. If you need to get the data object in zTree, please get the return value of this method.

                +

                Please use zTree object to executing the method.

                +
                +
                +

                Function Parameter Descriptions

                +
                +

                targetNodeJSON

                +

                JSON data object of the node which will be target.

                +

                If copy the node to root node, please set the 'targetNode' to null.

                +

                Please ensure that this data object is an internal node data object in zTree.

                +

                treeNodeJSON

                +

                JSON data object of the node which will be copied.

                +

                Please ensure that this data object is an internal node data object in zTree.

                +

                moveTypeString

                +

                Copied to the target node's relative position.

                +

                "inner" means: to be taregetNode's child node.

                +

                "prev" means: to be taregetNode's previous sibling node.

                +

                "next" means: to be taregetNode's next sibling node.

                +

                isSilentBoolean

                +

                After copy the node, whether to automatically expand its parent node.

                +

                isSilent = true means: don't expand its parent node.

                +

                isSilent = false or omit this parameter means: expand its parent node.

                +

                Return JSON

                +

                return the new node in zTree

                +

                Note: the node data JSON object in the return value is not equal to the treeNode.

                +
                +

                Examples of function

                +

                1. Copy the second root node to the first root node's child node.

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var nodes = treeObj.getNodes();
                +treeObj.copyNode(nodes[0], nodes[1], "inner");
                +
                +

                2. Copy the second root node to the first root node's previous sibling node.

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var nodes = treeObj.getNodes();
                +treeObj.copyNode(nodes[0], nodes[1], "before");
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.destroy.html b/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.destroy.html new file mode 100644 index 0000000..80c5281 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.destroy.html @@ -0,0 +1,25 @@ +
                +
                +

                Function(treeId)zTreeObj.destroy

                +

                Overview[ depends on jquery.ztree.core js ]

                +
                +

                +
                +

                From zTree v3.4, zTree support the method for destruction.

                +

                1. This method can destroy the zTreeObj's zTree.

                +

                2. If you want to destory all of the zTrees, you can use the '$.fn.zTree.destroy()' method.

                +

                3. If you want to use the tree which has been destroyed, you must use the 'init()' method at first.

                +
                +
                +

                Function Parameter Descriptions

                +
                +

                Return none

                +

                no return value

                +
                +

                Examples of function

                +

                1. destroy the zTree which its id is 'treeDemo'

                +
                var zTreeObj = $.fn.zTree.getZTreeObj("treeDemo");
                +zTreeObj.destroy();
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.editName.html b/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.editName.html new file mode 100644 index 0000000..92ac5c1 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.editName.html @@ -0,0 +1,29 @@ +
                +
                +

                Function(treeNode)zTreeObj.editName

                +

                Overview[ depends on jquery.ztree.exedit js ]

                +
                +

                +
                +

                Start editing the node's name.

                +

                1. If need to cancel editing the node's name, please use cancelEditName(newName) method.

                +

                2. This method can be used to set the editing node‘s input box to get focus.

                +

                3. Please use zTree object to executing the method.

                +
                +
                +

                Function Parameter Descriptions

                +
                +

                treeNodeJSON

                +

                JSON data object of the node which will be editing name

                +

                Please ensure that this data object is an internal node data object in zTree.

                +

                Retrun none

                +

                no return value

                +
                +

                Examples of function

                +

                1. Start editing the first selected node's name.

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var nodes = treeObj.getNodes();
                +treeObj.editName(nodes[0]);
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.expandAll.html b/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.expandAll.html new file mode 100644 index 0000000..ef28a31 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.expandAll.html @@ -0,0 +1,30 @@ +
                +
                +

                Function(expandFlag)zTreeObj.expandAll

                +

                Overview[ depends on jquery.ztree.core js ]

                +
                +

                +
                +

                Expand or collapse all nodes.

                +

                This method does not trigger 'beforeExpand / onExpand' or 'beforeCollapse / onCollapse' callback function.

                +

                Please use zTree object to executing the method.

                +
                +
                +

                Function Parameter Descriptions

                +
                +

                expandFlagBoolean

                +

                expandFlag = true means: expand all nodes.

                +

                expandFlag = false means: collapse all nodes.

                +

                Return Boolean

                +

                return the result of expand or collapse.

                +

                true means: expand all nodes

                +

                false means: collapse all nodes

                +

                null means: have no parent node to expand or collapse.

                +
                +

                Examples of function

                +

                1. Expand all nodes

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +treeObj.expandAll(true);
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.expandNode.html b/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.expandNode.html new file mode 100644 index 0000000..2f2aac2 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.expandNode.html @@ -0,0 +1,50 @@ +
                +
                +

                Function(treeNode, expandFlag, sonSign, focus, callbackFlag)zTreeObj.expandNode

                +

                Overview[ depends on jquery.ztree.core js ]

                +
                +

                +
                +

                Expand or collapse single node.

                +

                Use expandNode() method of zTree v3.x can trigger 'beforeExpand / onExpand' or 'beforeCollapse / onCollapse' callback function. for reduce redundant code.

                +

                Please use zTree object to executing the method.

                +
                +
                +

                Function Parameter Descriptions

                +
                +

                treeNodeJSON

                +

                JSON data object of the node which will be expanded or collapsed

                +

                Please ensure that this data object is an internal node data object in zTree.

                +

                expandFlagBoolean

                +

                expandFlag = true means: expand the node.

                +

                expandFlag = false means: collapse the node.

                +

                If this parameter is omitted, then toggle expand or collapse depend this node's expanded state.

                +

                sonSignBoolean

                +

                sonSign = true means: expand or collapse all of the child nodes depend the 'expandFlag' parameter.

                +

                sonSign = false means: only expand or collapse this node.

                +

                When sonSign = false and treeNode.open = expandFlag, will not trigger the callback.

                +

                If this parameter is omitted, it is same as 'sonSign = false'.

                +

                focusBoolean

                +

                focus = true means: after expand or collapse, set the focus of this node for view.

                +

                focus = false means: after expand or coolapse, don't set the focus of this node.

                +

                If this parameter is omitted, it is same as 'focus = true'.

                +

                callbackFlagBoolean

                +

                callbackFlag = true means: call this method, will trigger 'beforeExpand / onExpand' or 'beforeCollapse / onCollapse' callback.

                +

                callbackFlag = false means: call this method, will not trigger callback.

                +

                If this parameter is omitted, it is same as 'callbackFlag = false'

                +

                Return Boolean

                +

                return the result of expand or collapse.

                +

                true means: expand node

                +

                false means: collapse node

                +

                null means: the node is not parent node.

                +
                +

                Examples of function

                +

                1. Expand the first selected node. (and expand this node's child nodes)

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var nodes = treeObj.getSelectedNode();
                +if (nodes.length>0) {
                +	treeObj.expandNode(nodes[0], true, true, true);
                +}
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.getChangeCheckedNodes.html b/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.getChangeCheckedNodes.html new file mode 100644 index 0000000..d0f9cf3 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.getChangeCheckedNodes.html @@ -0,0 +1,24 @@ +
                +
                +

                Function()zTreeObj.getChangeCheckedNodes

                +

                Overview[ depends on jquery.ztree.excheck js ]

                +
                +

                +
                +

                Get the collection of nodes which be changed checked status. (Compared with the original data checkedOld) It is valid when [setting.check.enable = true]

                +

                Please use zTree object to executing the method.

                +
                +
                +

                Function Parameter Descriptions

                +
                +

                Return Array(JSON)

                +

                return the collection of nodes which be changed checked status (Array)

                +

                If you need to get the collection of nodes which changed the checked status, when nodes be checked or unchecked, so please set treeNode.checkedOld = treeNode.checked ( for all of the be changed checked status nodes ).

                +
                +

                Examples of function

                +

                1. Get the collection of nodes which be changed checked status

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var nodes = treeObj.getChangeCheckedNodes();
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.getCheckedNodes.html b/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.getCheckedNodes.html new file mode 100644 index 0000000..7a7c3b9 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.getCheckedNodes.html @@ -0,0 +1,28 @@ +
                +
                +

                Function(checked)zTreeObj.getCheckedNodes

                +

                Overview[ depends on jquery.ztree.excheck js ]

                +
                +

                +
                +

                Get the collection of nodes which be checked or unchecked. It is valid when [setting.check.enable = true]

                +

                Please use zTree object to executing the method.

                +
                +
                +

                Function Parameter Descriptions

                +
                +

                checkedBoolean

                +

                checked = true means: get the collection of nodes which be checked

                +

                checked = false means: get the collection of nodes which be unchecked

                +

                If this parameter is omitted, it is same as 'checked = true'

                +

                Don't get the nodes which 'nochecked' attribute is true.

                +

                Return Array(JSON)

                +

                return the collection of nodes which be checked or unchecked. (Array)

                +
                +

                Examples of function

                +

                1. Get the collection of nodes which be checked.

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var nodes = treeObj.getCheckedNodes(true);
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.getNodeByParam.html b/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.getNodeByParam.html new file mode 100644 index 0000000..05572e7 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.getNodeByParam.html @@ -0,0 +1,32 @@ +
                +
                +

                Function(key, value, parentNode)zTreeObj.getNodeByParam

                +

                Overview[ depends on jquery.ztree.core js ]

                +
                +

                +
                +

                According to the node data attribute, search the node which exactly matches, and get the JSON object of node.

                +

                Please use zTree object to executing the method.

                +
                +
                +

                Function Parameter Descriptions

                +
                +

                keyString

                +

                The name of attribute which need to exactly match

                +

                value?

                +

                The value which need to exactly match, can be any type, please ensure its type consistent with the attribute values.

                +

                parentNodeJSON

                +

                The search range, you can search node from a parent node's child nodes.

                +

                If this parameter is omitted, zTree will search node from all nodes.

                +

                Return JSON

                +

                JSON data object of the node which be searched.

                +

                1. If search none node, return null.

                +

                2. If there are many nodes can be searched, return the first node.

                +
                +

                Examples of function

                +

                1. Search the node which its 'id' attribute is 1.

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var node = treeObj.getNodeByParam("id", 1, null);
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.getNodeByTId.html b/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.getNodeByTId.html new file mode 100644 index 0000000..8fd26ea --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.getNodeByTId.html @@ -0,0 +1,27 @@ +
                +
                +

                Function(tId)zTreeObj.getNodeByTId

                +

                Overview[ depends on jquery.ztree.core js ]

                +
                +

                +
                +

                According the unique identifier tId of zTree, quick get the node's JSON data object.

                +

                Get the node from the cache, don't need to search from all nodes.

                +

                Please use zTree object to executing the method.

                +
                +
                +

                Function Parameter Descriptions

                +
                +

                tIdString

                +

                The unique identifier of node.

                +

                Return JSON

                +

                JSON data object of the node which be searched.

                +

                If no result, return null.

                +
                +

                Examples of function

                +

                1. 1. Search the node which its 'tId' attribute is 'tree_10'

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var node = treeObj.getNodeByTId("tree_10");
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.getNodeIndex.html b/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.getNodeIndex.html new file mode 100644 index 0000000..ad828e7 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.getNodeIndex.html @@ -0,0 +1,30 @@ +
                +
                +

                Function(treeNode)zTreeObj.getNodeIndex

                +

                Overview[ depends on jquery.ztree.core js ]

                +
                +

                +
                +

                Get the node's index in the same level nodes. (start from 0)

                +

                Please use zTree object to executing the method.

                +
                +
                +

                Function Parameter Descriptions

                +
                +

                treeNodeJSON

                +

                JSON data object of the node which need to get index.

                +

                Please ensure that this data object is an internal node data object in zTree.

                +

                Return Number

                +

                return the index. (start from 0)

                +

                If there is no this node, return -1.

                +
                +

                Examples of function

                +

                1. Get the first selected node's index in the same level nodes.

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var nodes = treeObj.getSelectedNodes();
                +if (nodes.length>0) {
                +	var index = treeObj.getNodeIndex(nodes[0]);
                +}
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.getNodes.html b/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.getNodes.html new file mode 100644 index 0000000..5906a43 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.getNodes.html @@ -0,0 +1,26 @@ +
                +
                +

                Function()zTreeObj.getNodes

                +

                Overview[ depends on jquery.ztree.core js ]

                +
                +

                +
                +

                Get all of the nodes in zTree

                +

                Please use zTree object to executing the method.

                +
                +
                +

                Function Parameter Descriptions

                +
                +

                Return Array(JSON)

                +

                return all of the nodes

                +

                1. This array is a collection of the root nodes (the default child nodes are in the 'children' attributes);

                +

                2. Traverse all the nodes need to use recursion, or the use of transformToArray() method make the nodes to be a simple array.

                +

                3. For the asynchronous loading mode, can't get the nodes which are yet loaded.

                +
                +

                Examples of function

                +

                1. Get all of the nodes

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var nodes = treeObj.getNodes();
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.getNodesByFilter.html b/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.getNodesByFilter.html new file mode 100644 index 0000000..2cd6baa --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.getNodesByFilter.html @@ -0,0 +1,43 @@ +
                +
                +

                Function(filter, isSingle, parentNode, invokeParam)zTreeObj.getNodesByFilter

                +

                Overview[ depends on jquery.ztree.core js ]

                +
                +

                +
                +

                Search the single node's data or collection of nodes's data by custom rules.

                +

                Can be customized complex search rules.

                +

                Please use zTree object to executing the method.

                +
                +
                +

                Function Parameter Descriptions

                +
                +

                filterFunction

                +

                Custom search function. e.g. function filter(node) {...}

                +

                filter's parameter: node (node's data -- JSON)

                +

                filter's return: boolean (true means: match the rules; false means: don't match the rules)

                +

                isSingleBoolean

                +

                isSingle = true means: search only one node

                +

                isSingle = false means: search the array of the nodes

                +

                If this parameter is omitted, as same as false

                +

                parentNodeJSON

                +

                The search range, you can search node from a parent node's child nodes.

                +

                If this parameter is omitted, zTree will search node from all nodes.

                +

                invokeParamanything

                +

                Custom data object by user, used to calculate in the filter function.

                +

                Return Array(JSON) / JSON

                +

                If isSingle = true, will return the first node's data (JSON) what be matched. If no match, return null.

                +

                If isSingle = false, will return the array of all nodes's data what be matched. if no match, return [ ].

                +
                +

                Examples of function

                +

                1. Search the nodes which their 'name' contains 'test' and 'level' is 2.

                +
                function filter(node) {
                +    return (node.level == 2 && node.name.indexOf("test")>-1);
                +}
                +......
                +var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var node = treeObj.getNodesByFilter(filter, true); // search only one node
                +var nodes = treeObj.getNodesByFilter(filter); // search the array of the nodes
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.getNodesByParam.html b/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.getNodesByParam.html new file mode 100644 index 0000000..3173af4 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.getNodesByParam.html @@ -0,0 +1,31 @@ +
                +
                +

                Function(key, value, parentNode)zTreeObj.getNodesByParam

                +

                Overview[ depends on jquery.ztree.core js ]

                +
                +

                +
                +

                According to the node data attribute, search the nodes which exactly matches, and get the JSON objects collection of nodes.

                +

                Please use zTree object to executing the method.

                +
                +
                +

                Function Parameter Descriptions

                +
                +

                keyString

                +

                The name of attribute which need to exactly match

                +

                value?

                +

                The value which need to exactly match, can be any type, please ensure its type consistent with the attribute values.

                +

                parentNodeJSON

                +

                The search range, you can search node from a parent node's child nodes.

                +

                If this parameter is omitted, zTree will search node from all nodes.

                +

                Return Array(JSON)

                +

                The JSON data objects collection of the nodes which be searched.

                +

                If search none node, return [ ].

                +
                +

                Examples of function

                +

                1. Search the nodes which their 'name' attribute is 'test'.

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var nodes = treeObj.getNodesByParam("name", "test", null);
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.getNodesByParamFuzzy.html b/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.getNodesByParamFuzzy.html new file mode 100644 index 0000000..14b6c29 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.getNodesByParamFuzzy.html @@ -0,0 +1,32 @@ +
                +
                +

                Function(key, value, parentNode)zTreeObj.getNodesByParamFuzzy

                +

                Overview[ depends on jquery.ztree.core js ]

                +
                +

                +
                +

                According to the node data attribute, search the nodes which fuzzy matches, and get the JSON objects collection of nodes.

                +

                Please use zTree object to executing the method.

                +
                +
                +

                Function Parameter Descriptions

                +
                +

                keyString

                +

                The name of attribute which need to fuzzy match

                +

                valueString

                +

                The value which need to fuzzy match.

                +

                The type of value can only be String

                +

                parentNodeJSON

                +

                The search range, you can search node from a parent node's child nodes.

                +

                If this parameter is omitted, zTree will search node from all nodes.

                +

                Return Array(JSON)

                +

                The JSON data objects collection of the nodes which be searched.

                +

                If search none node, return [ ].

                +
                +

                Examples of function

                +

                1. Search the nodes which their 'name' attribute contains the string 'test'.

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var nodes = treeObj.getNodesByParamFuzzy("name", "test", null);
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.getSelectedNodes.html b/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.getSelectedNodes.html new file mode 100644 index 0000000..4a0f060 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.getSelectedNodes.html @@ -0,0 +1,23 @@ +
                +
                +

                Function()zTreeObj.getSelectedNodes

                +

                Overview[ depends on jquery.ztree.core js ]

                +
                +

                +
                +

                Get the JSON data objects collection of the selected nodes in zTree.

                +

                Please use zTree object to executing the method.

                +
                +
                +

                Function Parameter Descriptions

                +
                +

                Return Array(JSON)

                +

                The JSON data objects collection of the selected nodes.

                +
                +

                Examples of function

                +

                1. get the selected nodes

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var nodes = treeObj.getSelectedNodes();
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.hideNode.html b/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.hideNode.html new file mode 100644 index 0000000..f02f523 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.hideNode.html @@ -0,0 +1,29 @@ +
                +
                +

                Function(treeNode)zTreeObj.hideNode

                +

                Overview[ depends on jquery.ztree.exhide js ]

                +
                +

                +
                +

                To hide any node.

                +

                1. This feature can't support the 'exedit' feature, so please don't use this feature in edit mode.

                +

                2. If you hide or show the nodes, it will effect the 'isFirstNode' and 'isLastNode' attribute.

                +

                3. Please use zTree object to executing the method.

                +
                +
                +

                Function Parameter Descriptions

                +
                +

                treeNodeJSON

                +

                JSON data object of the node which will be hidden

                +

                Please ensure that this data object is an internal node data object in zTree.

                +

                Retrun none

                +

                no return value

                +
                +

                Examples of function

                +

                1. hide the first root node.

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var nodes = treeObj.getNodes();
                +treeObj.hideNode(nodes[0]);
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.hideNodes.html b/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.hideNodes.html new file mode 100644 index 0000000..9bf8e6b --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.hideNodes.html @@ -0,0 +1,29 @@ +
                +
                +

                Function(treeNodes)zTreeObj.hideNodes

                +

                Overview[ depends on jquery.ztree.exhide js ]

                +
                +

                +
                +

                To hide a group of nodes.

                +

                1. This feature can't support the 'exedit' feature, so please don't use this feature in edit mode.

                +

                2. If you hide or show the nodes, it will effect the 'isFirstNode' and 'isLastNode' attribute.

                +

                3. Please use zTree object to executing the method.

                +
                +
                +

                Function Parameter Descriptions

                +
                +

                treeNodesArray(JSON)

                +

                the array of the nodes which will be hidden

                +

                Please ensure that this data object is an internal node data object in zTree.

                +

                Retrun none

                +

                no return value

                +
                +

                Examples of function

                +

                1. hide the first root node's children.

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var nodes = treeObj.getNodes();
                +treeObj.hideNodes(nodes[0].children);
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.moveNode.html b/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.moveNode.html new file mode 100644 index 0000000..cb1e4df --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.moveNode.html @@ -0,0 +1,49 @@ +
                +
                +

                Function(targetNode, treeNode, moveType, isSilent)zTreeObj.moveNode

                +

                Overview[ depends on jquery.ztree.exedit js ]

                +
                +

                +
                +

                Move the node

                +

                Please use zTree object to executing the method.

                +
                +
                +

                Function Parameter Descriptions

                +
                +

                targetNodeJSON

                +

                JSON data object of the node which will be target.

                +

                If move the node to root node, please set the 'targetNode' to null.

                +

                Please ensure that this data object is an internal node data object in zTree.

                +

                treeNodeJSON

                +

                JSON data object of the node which will be moved.

                +

                Please ensure that this data object is an internal node data object in zTree.

                +

                moveTypeString

                +

                Moved to the target node's relative position.

                +

                "inner" means: to be taregetNode's child node.

                +

                "prev" means: to be taregetNode's previous sibling node.

                +

                "next" means: to be taregetNode's next sibling node.

                +

                isSilentBoolean

                +

                After move the node, whether to automatically expand its parent node.

                +

                isSilent = true means: don't expand its parent node.

                +

                isSilent = false or omit this parameter means: expand its parent node.

                +

                Return JSON

                +

                return the node which be moved, it is same as the 'treeNode' parameter.

                +

                Return null means: move node has failed. The cause:
                +  1. the targetNode is the treeNode's parent node, and moveType = "inner"
                +  2. the targetNode is the treeNode's child node. +

                +
                +

                Examples of function

                +

                1. Move the second root node to the first root node's child node.

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var nodes = treeObj.getNodes();
                +treeObj.moveNode(nodes[0], nodes[1], "inner");
                +
                +

                2. Move the second root node to the first root node's previous sibling node.

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var nodes = treeObj.getNodes();
                +treeObj.moveNode(nodes[0], nodes[1], "before");
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.reAsyncChildNodes.html b/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.reAsyncChildNodes.html new file mode 100644 index 0000000..63a0896 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.reAsyncChildNodes.html @@ -0,0 +1,42 @@ +
                +
                +

                Function(parentNode, reloadType, isSilent)zTreeObj.reAsyncChildNodes

                +

                Overview[ depends on jquery.ztree.core js ]

                +
                +

                +
                +

                Forced asynchronous loading child nodes of parent node. It is valid when [setting.async.enable = true]

                +

                You can use this method to reload child nodes.

                +

                Please use zTree object to executing the method.

                +
                +
                +

                Function Parameter Descriptions

                +
                +

                parentNodeJSON

                +

                The parent node which will asynchronous loading child nodes.

                +

                1. If parentNode = null, it is same as reload root nodes.

                +

                2. If parentNode.isParent = false, don't load nodes.

                +

                3. Please ensure that this data object is an internal node data object in zTree.

                +

                reloadTypeString

                +

                reloadType = "refresh" means: reload child nodes.

                +

                reloadType != "refresh" means: append to load child nodes.

                +

                isSilentBoolean

                +

                Set whether to automatically expand the parent node, after load nodes.

                +

                isSilent = true means: don't auto expand the parent node. Otherwise auto expand.

                +

                Return none

                +

                no return value

                +
                +

                Examples of function

                +

                1. reload root nodes

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +treeObj.reAsyncChildNodes(null, "refresh");
                +
                +

                2. reload the first selected node's child nodes.

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var nodes = treeObj.getSelectedNodes();
                +if (nodes.length>0) {
                +	treeObj.reAsyncChildNodes(nodes[0], "refresh");
                +}
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.refresh.html b/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.refresh.html new file mode 100644 index 0000000..8316192 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.refresh.html @@ -0,0 +1,24 @@ +
                +
                +

                Function()zTreeObj.refresh

                +

                Overview[ depends on jquery.ztree.core js ]

                +
                +

                +
                +

                Refresh zTree

                +

                If you have no special need, try not to use this method. If you refresh single node, please use updateNode() method. If you refresh child nodes in dynamic mode, please use the reAsyncChildNodes() method.

                +

                Please use zTree object to executing the method.

                +
                +
                +

                Function Parameter Descriptions

                +
                +

                Return none

                +

                no return value

                +
                +

                Examples of function

                +

                1. refresh zTree

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +treeObj.refresh();
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.removeChildNodes.html b/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.removeChildNodes.html new file mode 100644 index 0000000..c249e17 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.removeChildNodes.html @@ -0,0 +1,32 @@ +
                +
                +

                Function(parentNode)zTreeObj.removeChildNodes

                +

                Overview[ depends on jquery.ztree.core js ]

                +
                +

                +
                +

                Remove a parent node's child nodes

                +

                1. After remove child nodes, the parent node will become a leaf node. Such as the need to maintain the parent node is still a parent node, set 'setting.data.keep.parent' attribute.

                +

                2. Do not use this method to empty the root. If you need to empty the root, you can initialization zTree, and set the initial nodes is null.

                +

                3. This method does not trigger any callback function.

                +

                Please use zTree object to executing the method.

                +
                +
                +

                Function Parameter Descriptions

                +
                +

                parentNodeJSON

                +

                The parent node which need to clear its child nodes.

                +

                Please ensure that this data object is an internal node data object in zTree.

                +

                Return Array(JSON)

                +

                Return the parent node's child nodes which have been removed. If has no child nodes, return null.

                +
                +

                Examples of function

                +

                1. Remove the first selected node's child nodes

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var nodes = treeObj.getSelectedNodes();
                +if (nodes && nodes.length>0) {
                +	treeObj.removeChildNodes(nodes[0]);
                +}
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.removeNode.html b/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.removeNode.html new file mode 100644 index 0000000..0f187c7 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.removeNode.html @@ -0,0 +1,34 @@ +
                +
                +

                Function(treeNode, callbackFlag)zTreeObj.removeNode

                +

                Overview[ depends on jquery.ztree.core js ]

                +
                +

                +
                +

                Remove a node

                +

                Use removeNode() method of zTree v3.x can trigger 'beforeRemove / onRemove' callback function. for reduce redundant code.

                +

                Please use zTree object to executing the method.

                +
                +
                +

                Function Parameter Descriptions

                +
                +

                treeNodeJSON

                +

                JSON data object of the node which will be removed.

                +

                Please ensure that this data object is an internal node data object in zTree.

                +

                callbackFlagBoolean

                +

                callbackFlag = true means: call this method, will trigger 'beforeCheck' & 'onCheck' callback.

                +

                callbackFlag = false means: call this method, will not trigger callback.

                +

                If this parameter is omitted, it is same as 'callbackFlag = false'

                +

                Return none

                +

                no return value

                +
                +

                Examples of function

                +

                1. Remove all of the selected nodes.

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var nodes = treeObj.getSelectedNodes();
                +for (var i=0, l=nodes.length; i < l; i++) {
                +	treeObj.removeNode(nodes[i]);
                +}
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.selectNode.html b/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.selectNode.html new file mode 100644 index 0000000..237f199 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.selectNode.html @@ -0,0 +1,34 @@ +
                +
                +

                Function(treeNode, addFlag)zTreeObj.selectNode

                +

                Overview[ depends on jquery.ztree.core js ]

                +
                +

                +
                +

                Select a node

                +

                zTree v3.x supports select multiple nodes.

                +

                Please use zTree object to executing the method.

                +
                +
                +

                Function Parameter Descriptions

                +
                +

                treeNodeJSON

                +

                JSON data object of the node which will be selected.

                +

                Please ensure that this data object is an internal node data object in zTree.

                +

                addFlagBoolean

                +

                addFlag = true means: append to select node, don't affect the previously selected node, can select multiple nodes.

                +

                addFlag = false means: select single node, prior the selected node is deselected.

                +

                If setting.view.selectedMulti = false, this para, this parameter is not valid, always select single node

                +

                Return none

                +

                no return value

                +
                +

                Exampleso of function

                +

                1. Select single node which be first selected.

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var nodes = treeObj.getNodes();
                +if (nodes.length>0) {
                +	treeObj.selectNode(nodes[0]);
                +}
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.setChkDisabled.html b/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.setChkDisabled.html new file mode 100644 index 0000000..a196e40 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.setChkDisabled.html @@ -0,0 +1,36 @@ +
                +
                +

                Function(node, disabled)zTreeObj.setChkDisabled

                +

                Overview[ depends on jquery.ztree.excheck js ]

                +
                +

                +
                +

                Set the node's checkbox or radio is disabled or remove disabled. It is valid when [setting.check.enable = true]

                +

                1. After the node's checkbox / radio is disabled, it can not be checked or unchecked, but it can affect the half-checked status of the parent node.

                +

                2. Please do not directly modify the 'chkDisabled' attribute of the loaded node.

                +

                3. Please use zTree object to executing the method.

                +
                +
                +

                Function Parameter Descriptions

                +
                +

                treeNodeJSON

                +

                JSON data object of the node which need to be checked or unchecked.

                +

                Please ensure that this data object is an internal node data object in zTree.

                +

                disabledBoolean

                +

                disabled = true means: the node's checkbox / radio is disabled.

                +

                disabled = false means: the node's checkbox / radio is removed disabled.

                +

                If this parameter is omitted, it is same as disabled = false

                +

                Don't affect the node which 'nochecked' attribute is true.

                +

                Return none

                +

                no return value

                +
                +

                Examples of function

                +

                1. Set the selected nodes's checkbox / radio to be disabled.

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var nodes = treeObj.getSelectedNodes();
                +for (var i=0, l=nodes.length; i < l; i++) {
                +	treeObj.setChkDisabled(nodes[i], true);
                +}
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.setEditable.html b/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.setEditable.html new file mode 100644 index 0000000..a44b0ff --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.setEditable.html @@ -0,0 +1,27 @@ +
                +
                +

                Function(editable)zTreeObj.setEditable

                +

                Overview[ depends on jquery.ztree.exedit js ]

                +
                +

                +
                +

                Edit mode and normal mode switch.

                +

                To use edit mode, please set the attributes in 'setting.edit'

                +

                Please use zTree object to executing the method.

                +
                +
                +

                Function Parameter Descriptions

                +
                +

                editableBoolean

                +

                true means: set zTree to edit mode.

                +

                false means: set zTree to normal mode.

                +

                Return none

                +

                no return value

                +
                +

                Examples of function

                +

                1. set zTree to edit mode

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +treeObj.setEditable(true);
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.setting.html b/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.setting.html new file mode 100644 index 0000000..d80c139 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.setting.html @@ -0,0 +1,14 @@ +
                +
                +

                JSONzTreeObj.setting

                +

                Overview[ depends on jquery.ztree.core js ]

                +
                +

                +
                +

                The configuration data of zTree, refer to "setting details"

                +

                zTree v3.x to cancel the original operation setting method, so users can modify.

                +

                Note: Modify the parameters which affect zTree initialization will not work, please first understand the different attributes.

                +
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.showNode.html b/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.showNode.html new file mode 100644 index 0000000..53b5cbd --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.showNode.html @@ -0,0 +1,31 @@ +
                +
                +

                Function(treeNode)zTreeObj.showNode

                +

                Overview[ depends on jquery.ztree.exhide js ]

                +
                +

                +
                +

                To hide any node which be hidden.

                +

                1. This feature can't support the 'exedit' feature, so please don't use this feature in edit mode.

                +

                2. If you hide or show the nodes, it will effect the 'isFirstNode' and 'isLastNode' attribute.

                +

                3. Please use zTree object to executing the method.

                +
                +
                +

                Function Parameter Descriptions

                +
                +

                treeNodesArray(JSON)

                +

                JSON data object of the node which will be shown

                +

                Please ensure that this data object is an internal node data object in zTree.

                +

                Retrun none

                +

                no return value

                +
                +

                Examples of function

                +

                1. show someone node which be hidden.

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var node = treeObj.getNodeByParam("isHidden", true);
                +if (node) {
                +  treeObj.showNode(node);
                +}
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.showNodes.html b/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.showNodes.html new file mode 100644 index 0000000..c0c926c --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.showNodes.html @@ -0,0 +1,29 @@ +
                +
                +

                Function(treeNodes)zTreeObj.showNodes

                +

                Overview[ depends on jquery.ztree.exhide js ]

                +
                +

                +
                +

                To show a group of nodes which be hidden.

                +

                1. This feature can't support the 'exedit' feature, so please don't use this feature in edit mode.

                +

                2. If you hide or show the nodes, it will effect the 'isFirstNode' and 'isLastNode' attribute.

                +

                3. Please use zTree object to executing the method.

                +
                +
                +

                Function Parameter Descriptions

                +
                +

                treeNodesArray(JSON)

                +

                the array of the nodes which will be shown

                +

                Please ensure that this data object is an internal node data object in zTree.

                +

                Retrun none

                +

                no return value

                +
                +

                Examples of function

                +

                1. show all of the nodes which be hidden.

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var nodes = treeObj.getNodesByParam("isHidden", true);
                +treeObj.showNodes(nodes);
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.transformToArray.html b/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.transformToArray.html new file mode 100644 index 0000000..4b2296d --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.transformToArray.html @@ -0,0 +1,27 @@ +
                +
                +

                Function(treeNodes)zTreeObj.transformToArray

                +

                Overview[ depends on jquery.ztree.core js ]

                +
                +

                +
                +

                +

                Transform the zTree nodes data into simple array. (To avoid the user to write code to traverse all nodes)

                +

                Please use zTree object to executing the method.

                +
                +
                +

                Function Parameter Descriptions

                +
                +

                treeNodesArray(JSON) / JSON

                +

                JSON data object of the node which need to be transformed.

                +

                or JSON data objects collection of the nodes which need to be transformed.

                +

                Return Array(JSON)

                +

                The JSON data objects array of the nodes which be transformed.

                +
                +

                Examples of function

                +

                1. Transform the zTree nodes data into simple array.

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var nodes = treeObj.transformToArray(treeObj.getNodes());
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.transformTozTreeNodes.html b/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.transformTozTreeNodes.html new file mode 100644 index 0000000..51d4a62 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.transformTozTreeNodes.html @@ -0,0 +1,44 @@ +
                +
                +

                Function(simpleNodes)zTreeObj.transformTozTreeNodes

                +

                Overview[ depends on jquery.ztree.core js ]

                +
                +

                +
                +

                Transform the simple array into zTree nodes data.

                +

                If you use this method, you must set 'setting.data.simpleData.idKey' and 'setting.data.simpleData.pIdKey' attribute, and let the data are consistent with parent-child relationship.

                +

                Please use zTree object to executing the method.

                +
                +
                +

                Function Parameter Descriptions

                +
                +

                simpleNodesArray(JSON) / JSON

                +

                JSON data object of the node which need to be transformed.

                +

                or JSON data objects array of the nodes which need to be transformed.

                +

                Return Array(JSON)

                +

                Standard data which zTree use. The child nodes are stored in the parent node's 'children' attribute.

                +

                If simpleNodes is a single JSON, so the return array's length is 1.

                +
                +

                Examples of function

                +

                1. Transform the simple array data into zTree nodes format.

                +
                var setting = {
                +	data: {
                +		simpleData: {
                +			enable: true,
                +			idKey: "id",
                +			pIdKey: "pId",
                +			rootPId: 0,
                +		}
                +	}
                +};
                +var simpleNodes = [
                +    {"id":1, "pId":0, "name":"test1"},
                +    {"id":11, "pId":1, "name":"test11"},
                +    {"id":12, "pId":1, "name":"test12"},
                +    {"id":111, "pId":11, "name":"test111"}
                +];
                +var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var nodes = treeObj.transformTozTreeNodes(simpleNodes);
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.updateNode.html b/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.updateNode.html new file mode 100644 index 0000000..7639ff4 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/api/en/zTreeObj.updateNode.html @@ -0,0 +1,37 @@ +
                +
                +

                Function(treeNode, checkTypeFlag)zTreeObj.updateNode

                +

                Overview[ depends on jquery.ztree.core js ]

                +
                +

                +
                +

                Update node data. Primarily used to update the node's DOM.

                +

                1. Can update the attributes for display (e.g. 'name', 'target', 'url', 'icon', 'iconSkin', 'checked', 'nocheck'), do not update the other attributes. For example: If you need to expand the node, please use expandNode() method, do not modify the 'open' attribute.

                +

                2. Use updateNode() method of zTree can't trigger 'beforeCheck' or 'onCheck' callback function.

                +

                Please use zTree object to executing the method.

                +
                +
                +

                Function Parameter Descriptions

                +
                +

                treeNodeJSON

                +

                JSON data object of the node which need to update.

                +

                Please ensure that this data object is an internal node data object in zTree.

                +

                checkTypeFlagBoolean

                +

                checkTypeFlag = true means: According to 'setting.check.chkboxType' attribute automatically check or uncheck the parent and child nodes.

                +

                checkTypeFlag = false means: only check or uncheck this node, don't affect its parent and child nodes.

                +

                This parameter is valid when 'setting.check.enable = true' and 'setting.check.chkStyle = "checkbox"'

                +

                Don't affect the parent and child nodes which 'nochecked' attribute is true.

                +

                Return none

                +

                no return value

                +
                +

                Examples of function

                +

                1. Modify the first selected node's name, and update it.

                +
                var treeObj = $.fn.zTree.getZTreeObj("tree");
                +var nodes = treeObj.getNodes();
                +if (nodes.length>0) {
                +	nodes[0].name = "test";
                +	treeObj.updateNode(nodes[0]);
                +}
                +
                +
                +
                \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/css/demo.css b/alive-admin/src/main/resources/static/ztree/css/demo.css new file mode 100644 index 0000000..f6dba0d --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/css/demo.css @@ -0,0 +1,33 @@ +html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td { + margin: 0;padding: 0;border: 0;outline: 0;font-weight: inherit;font-style: inherit;font-size: 100%;font-family: inherit;vertical-align: baseline;} +body {color: #2f332a;font: 15px/21px Arial, Helvetica, simsun, sans-serif;background: #f0f6e4 \9;} +h1, h2, h3, h4, h5, h6 {color: #2f332a;font-weight: bold;font-family: Helvetica, Arial, sans-serif;padding-bottom: 5px;} +h1 {font-size: 24px;line-height: 34px;text-align: center;} +h2 {font-size: 14px;line-height: 24px;padding-top: 5px;} +h6 {font-weight: normal;font-size: 12px;letter-spacing: 1px;line-height: 24px;text-align: center;} +a {color:#3C6E31;text-decoration: underline;} +a:hover {background-color:#3C6E31;color:white;} +input.radio {margin: 0 2px 0 8px;} +input.radio.first {margin-left:0;} +input.empty {color: lightgray;} +code {color: #2f332a;} +.highlight_red {color:#A60000;} +.highlight_green {color:#A7F43D;} +li {list-style: circle;font-size: 12px;} +li.title {list-style: none;} +ul.list {margin-left: 17px;} + +div.content_wrap {width: 600px;height:380px;} +div.content_wrap div.left{float: left;width: 250px;} +div.content_wrap div.right{float: right;width: 340px;} +div.zTreeDemoBackground {width:250px;height:362px;text-align:left;} + +ul.ztree {margin-top: 10px;border: 1px solid #617775;background: #f0f6e4;width:220px;height:360px;overflow-y:scroll;overflow-x:auto;} +ul.log {border: 1px solid #617775;background: #f0f6e4;width:300px;height:170px;overflow: hidden;} +ul.log.small {height:45px;} +ul.log li {color: #666666;list-style: none;padding-left: 10px;} +ul.log li.dark {background-color: #E3E3E3;} + +/* ruler */ +div.ruler {height:20px; width:220px; background-color:#f0f6e4;border: 1px solid #333; margin-bottom: 5px; cursor: pointer} +div.ruler div.cursor {height:20px; width:30px; background-color:#3C6E31; color:white; text-align: right; padding-right: 5px; cursor: pointer} \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/css/zTreeStyle/img/diy/1_close.png b/alive-admin/src/main/resources/static/ztree/css/zTreeStyle/img/diy/1_close.png new file mode 100644 index 0000000..68ccb3c Binary files /dev/null and b/alive-admin/src/main/resources/static/ztree/css/zTreeStyle/img/diy/1_close.png differ diff --git a/alive-admin/src/main/resources/static/ztree/css/zTreeStyle/img/diy/1_open.png b/alive-admin/src/main/resources/static/ztree/css/zTreeStyle/img/diy/1_open.png new file mode 100644 index 0000000..d6ff36d Binary files /dev/null and b/alive-admin/src/main/resources/static/ztree/css/zTreeStyle/img/diy/1_open.png differ diff --git a/alive-admin/src/main/resources/static/ztree/css/zTreeStyle/img/diy/2.png b/alive-admin/src/main/resources/static/ztree/css/zTreeStyle/img/diy/2.png new file mode 100644 index 0000000..9eff506 Binary files /dev/null and b/alive-admin/src/main/resources/static/ztree/css/zTreeStyle/img/diy/2.png differ diff --git a/alive-admin/src/main/resources/static/ztree/css/zTreeStyle/img/diy/3.png b/alive-admin/src/main/resources/static/ztree/css/zTreeStyle/img/diy/3.png new file mode 100644 index 0000000..d7ba6d0 Binary files /dev/null and b/alive-admin/src/main/resources/static/ztree/css/zTreeStyle/img/diy/3.png differ diff --git a/alive-admin/src/main/resources/static/ztree/css/zTreeStyle/img/diy/4.png b/alive-admin/src/main/resources/static/ztree/css/zTreeStyle/img/diy/4.png new file mode 100644 index 0000000..753e2bf Binary files /dev/null and b/alive-admin/src/main/resources/static/ztree/css/zTreeStyle/img/diy/4.png differ diff --git a/alive-admin/src/main/resources/static/ztree/css/zTreeStyle/img/diy/5.png b/alive-admin/src/main/resources/static/ztree/css/zTreeStyle/img/diy/5.png new file mode 100644 index 0000000..0c5eccd Binary files /dev/null and b/alive-admin/src/main/resources/static/ztree/css/zTreeStyle/img/diy/5.png differ diff --git a/alive-admin/src/main/resources/static/ztree/css/zTreeStyle/img/diy/6.png b/alive-admin/src/main/resources/static/ztree/css/zTreeStyle/img/diy/6.png new file mode 100644 index 0000000..070b835 Binary files /dev/null and b/alive-admin/src/main/resources/static/ztree/css/zTreeStyle/img/diy/6.png differ diff --git a/alive-admin/src/main/resources/static/ztree/css/zTreeStyle/img/diy/7.png b/alive-admin/src/main/resources/static/ztree/css/zTreeStyle/img/diy/7.png new file mode 100644 index 0000000..532b037 Binary files /dev/null and b/alive-admin/src/main/resources/static/ztree/css/zTreeStyle/img/diy/7.png differ diff --git a/alive-admin/src/main/resources/static/ztree/css/zTreeStyle/img/diy/8.png b/alive-admin/src/main/resources/static/ztree/css/zTreeStyle/img/diy/8.png new file mode 100644 index 0000000..a8f3a86 Binary files /dev/null and b/alive-admin/src/main/resources/static/ztree/css/zTreeStyle/img/diy/8.png differ diff --git a/alive-admin/src/main/resources/static/ztree/css/zTreeStyle/img/diy/9.png b/alive-admin/src/main/resources/static/ztree/css/zTreeStyle/img/diy/9.png new file mode 100644 index 0000000..4db73cd Binary files /dev/null and b/alive-admin/src/main/resources/static/ztree/css/zTreeStyle/img/diy/9.png differ diff --git a/alive-admin/src/main/resources/static/ztree/css/zTreeStyle/img/line_conn.gif b/alive-admin/src/main/resources/static/ztree/css/zTreeStyle/img/line_conn.gif new file mode 100644 index 0000000..d561d36 Binary files /dev/null and b/alive-admin/src/main/resources/static/ztree/css/zTreeStyle/img/line_conn.gif differ diff --git a/alive-admin/src/main/resources/static/ztree/css/zTreeStyle/img/loading.gif b/alive-admin/src/main/resources/static/ztree/css/zTreeStyle/img/loading.gif new file mode 100644 index 0000000..e8c2892 Binary files /dev/null and b/alive-admin/src/main/resources/static/ztree/css/zTreeStyle/img/loading.gif differ diff --git a/alive-admin/src/main/resources/static/ztree/css/zTreeStyle/img/zTreeStandard.gif b/alive-admin/src/main/resources/static/ztree/css/zTreeStyle/img/zTreeStandard.gif new file mode 100644 index 0000000..50c94fd Binary files /dev/null and b/alive-admin/src/main/resources/static/ztree/css/zTreeStyle/img/zTreeStandard.gif differ diff --git a/alive-admin/src/main/resources/static/ztree/css/zTreeStyle/img/zTreeStandard.png b/alive-admin/src/main/resources/static/ztree/css/zTreeStyle/img/zTreeStandard.png new file mode 100644 index 0000000..ffda01e Binary files /dev/null and b/alive-admin/src/main/resources/static/ztree/css/zTreeStyle/img/zTreeStandard.png differ diff --git a/alive-admin/src/main/resources/static/ztree/css/zTreeStyle/zTreeStyle.css b/alive-admin/src/main/resources/static/ztree/css/zTreeStyle/zTreeStyle.css new file mode 100644 index 0000000..f06554e --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/css/zTreeStyle/zTreeStyle.css @@ -0,0 +1,97 @@ +/*------------------------------------- +zTree Style + +version: 3.4 +author: Hunter.z +email: hunter.z@263.net +website: http://code.google.com/p/jquerytree/ + +-------------------------------------*/ + +.ztree * {padding:0; margin:0; font-size:12px; font-family: Verdana, Arial, Helvetica, AppleGothic, sans-serif} +.ztree {margin:0; padding:5px; color:#333} +.ztree li{padding:0; margin:0; list-style:none; line-height:14px; text-align:left; white-space:nowrap; outline:0} +.ztree li ul{ margin:0; padding:0 0 0 18px} +.ztree li ul.line{ background:url(./img/line_conn.gif) 0 0 repeat-y;} + +.ztree li a {padding:1px 3px 0 0; margin:0; cursor:pointer; height:17px; color:#333; background-color: transparent; + text-decoration:none; vertical-align:top; display: inline-block} +.ztree li a:hover {text-decoration:underline} +.ztree li a.curSelectedNode {padding-top:0px; background-color:#FFE6B0; color:black; height:16px; border:1px #FFB951 solid; opacity:0.8;} +.ztree li a.curSelectedNode_Edit {padding-top:0px; background-color:#FFE6B0; color:black; height:16px; border:1px #FFB951 solid; opacity:0.8;} +.ztree li a.tmpTargetNode_inner {padding-top:0px; background-color:#316AC5; color:white; height:16px; border:1px #316AC5 solid; + opacity:0.8; filter:alpha(opacity=80)} +.ztree li a.tmpTargetNode_prev {} +.ztree li a.tmpTargetNode_next {} +.ztree li a input.rename {height:14px; width:80px; padding:0; margin:0; + font-size:12px; border:1px #7EC4CC solid; *border:0px} +.ztree li span {line-height:16px; margin-right:2px} +.ztree li span.button {line-height:0; margin:0; width:16px; height:16px; display: inline-block; vertical-align:middle; + border:0 none; cursor: pointer;outline:none; + background-color:transparent; background-repeat:no-repeat; background-attachment: scroll; + background-image:url("./img/zTreeStandard.png"); *background-image:url("./img/zTreeStandard.gif")} + +.ztree li span.button.chk {width:13px; height:13px; margin:0 3px 0 0; cursor: auto} +.ztree li span.button.chk.checkbox_false_full {background-position:0 0} +.ztree li span.button.chk.checkbox_false_full_focus {background-position:0 -14px} +.ztree li span.button.chk.checkbox_false_part {background-position:0 -28px} +.ztree li span.button.chk.checkbox_false_part_focus {background-position:0 -42px} +.ztree li span.button.chk.checkbox_false_disable {background-position:0 -56px} +.ztree li span.button.chk.checkbox_true_full {background-position:-14px 0} +.ztree li span.button.chk.checkbox_true_full_focus {background-position:-14px -14px} +.ztree li span.button.chk.checkbox_true_part {background-position:-14px -28px} +.ztree li span.button.chk.checkbox_true_part_focus {background-position:-14px -42px} +.ztree li span.button.chk.checkbox_true_disable {background-position:-14px -56px} +.ztree li span.button.chk.radio_false_full {background-position:-28px 0} +.ztree li span.button.chk.radio_false_full_focus {background-position:-28px -14px} +.ztree li span.button.chk.radio_false_part {background-position:-28px -28px} +.ztree li span.button.chk.radio_false_part_focus {background-position:-28px -42px} +.ztree li span.button.chk.radio_false_disable {background-position:-28px -56px} +.ztree li span.button.chk.radio_true_full {background-position:-42px 0} +.ztree li span.button.chk.radio_true_full_focus {background-position:-42px -14px} +.ztree li span.button.chk.radio_true_part {background-position:-42px -28px} +.ztree li span.button.chk.radio_true_part_focus {background-position:-42px -42px} +.ztree li span.button.chk.radio_true_disable {background-position:-42px -56px} + +.ztree li span.button.switch {width:18px; height:18px} +.ztree li span.button.root_open{background-position:-92px -54px} +.ztree li span.button.root_close{background-position:-74px -54px} +.ztree li span.button.roots_open{background-position:-92px 0} +.ztree li span.button.roots_close{background-position:-74px 0} +.ztree li span.button.center_open{background-position:-92px -18px} +.ztree li span.button.center_close{background-position:-74px -18px} +.ztree li span.button.bottom_open{background-position:-92px -36px} +.ztree li span.button.bottom_close{background-position:-74px -36px} +.ztree li span.button.noline_open{background-position:-92px -72px} +.ztree li span.button.noline_close{background-position:-74px -72px} +.ztree li span.button.root_docu{ background:none;} +.ztree li span.button.roots_docu{background-position:-56px 0} +.ztree li span.button.center_docu{background-position:-56px -18px} +.ztree li span.button.bottom_docu{background-position:-56px -36px} +.ztree li span.button.noline_docu{ background:none;} + +.ztree li span.button.ico_open{margin-right:2px; background-position:-110px -16px; vertical-align:top; *vertical-align:middle} +.ztree li span.button.ico_close{margin-right:2px; background-position:-110px 0; vertical-align:top; *vertical-align:middle} +.ztree li span.button.ico_docu{margin-right:2px; background-position:-110px -32px; vertical-align:top; *vertical-align:middle} +.ztree li span.button.edit {margin-right:2px; background-position:-110px -48px; vertical-align:top; *vertical-align:middle} +.ztree li span.button.remove {margin-right:2px; background-position:-110px -64px; vertical-align:top; *vertical-align:middle} + +.ztree li span.button.ico_loading{margin-right:2px; background:url(./img/loading.gif) no-repeat scroll 0 0 transparent; vertical-align:top; *vertical-align:middle} + +ul.tmpTargetzTree {background-color:#FFE6B0; opacity:0.8; filter:alpha(opacity=80)} + +span.tmpzTreeMove_arrow {width:16px; height:16px; display: inline-block; padding:0; margin:2px 0 0 1px; border:0 none; position:absolute; + background-color:transparent; background-repeat:no-repeat; background-attachment: scroll; + background-position:-110px -80px; background-image:url("./img/zTreeStandard.png"); *background-image:url("./img/zTreeStandard.gif")} + +ul.ztree.zTreeDragUL {margin:0; padding:0; position:absolute; width:auto; height:auto;overflow:hidden; background-color:#cfcfcf; border:1px #00B83F dotted; opacity:0.8; filter:alpha(opacity=80)} +.zTreeMask {z-index:10000; background-color:#cfcfcf; opacity:0.0; filter:alpha(opacity=0); position:absolute} + +/* level style*/ +/*.ztree li span.button.level0 { + display:none; +} +.ztree li ul.level0 { + padding:0; + background:none; +}*/ \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/cn/asyncData/getNodes.php b/alive-admin/src/main/resources/static/ztree/demo/cn/asyncData/getNodes.php new file mode 100644 index 0000000..3294d9a --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/cn/asyncData/getNodes.php @@ -0,0 +1,38 @@ + +[] diff --git a/alive-admin/src/main/resources/static/ztree/demo/cn/asyncData/getNodesForBigData.php b/alive-admin/src/main/resources/static/ztree/demo/cn/asyncData/getNodesForBigData.php new file mode 100644 index 0000000..91d002e --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/cn/asyncData/getNodesForBigData.php @@ -0,0 +1,24 @@ + +[] \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/cn/bigdata/common.html b/alive-admin/src/main/resources/static/ztree/demo/cn/bigdata/common.html new file mode 100644 index 0000000..ded4358 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/cn/bigdata/common.html @@ -0,0 +1,190 @@ + + + + ZTREE DEMO - big data common + + + + + + + + + + + +

                一次性加载大数据量

                +
                [ 文件路径: bigdata/common.html ]
                +
                + +
                +
                  +
                • 1、大数据量加载说明

                  +
                    +
                  • 1)、zTree v3.x 针对大数据量一次性加载进行了更深入的优化,实现了延迟加载功能,即不展开的节点不创建子节点的 DOM。
                  • +
                  • 2)、对于每级节点最多一百左右,但总节点数几千甚至几万,且不是全部展开的数据,一次性加载的效果最明显,速度非常快。
                  • +
                  • 3)、对于某一级节点数就多达几千的情况 延迟加载无效,这种情况建议考虑分页异步加载。
                  • +
                  • 4)、对于全部节点都展开显示的情况,延迟加载无效,这种情况建议不要全部展开。
                  • +
                  • 5)、显示 checkbox / radio 会造成一定程度的性能下降。
                  • +
                  • 6)、利用 addDiyDom 功能增加自定义控件会影响速度,影响程度受节点数量而定。
                  • +
                  • 7)、利用 onNodeCreated 事件回调函数对节点 DOM 进行操作会影响速度,影响程度受节点数量而定。
                  • +
                  +
                • +
                • 2、setting 配置信息说明

                  +
                    +
                  • 不需要进行特殊的配置
                  • +
                  +
                • +
                • 3、treeNode 节点数据说明

                  +
                    +
                  • 对 节点数据 没有特殊要求,用户可以根据自己的需求添加自定义属性
                  • +
                  +
                • +
                +
                +
                + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/cn/bigdata/diy_async.html b/alive-admin/src/main/resources/static/ztree/demo/cn/bigdata/diy_async.html new file mode 100644 index 0000000..36a4d48 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/cn/bigdata/diy_async.html @@ -0,0 +1,157 @@ + + + + ZTREE DEMO - big data async + + + + + + + + + + + +

                分批异步加载大数据量

                +
                [ 文件路径: bigdata/diy_async.html ]
                +
                +
                +
                  +
                •     此 Demo 专门用于测试分批异步加载,每次展开节点都要重新进行异步加载。
                • +
                +
                  +
                  +
                  +
                    +
                  • 1、大数据量加载说明

                    +
                      +
                    • 1)、对于某一级节点数多达几千个的时候,zTree 默认的延迟加载是无效的,此 Demo 演示了一种原先 zTree v2.6 时的分批加载节点的方法。
                    • +
                    • 2)、此方法适用于1、2千个节点必须全部显示的需求。
                    • +
                    • 3)、此方法并不能解决加载慢的问题,相反只会让最终结果出现的更慢,只是可以有限度的避免浏览器假死,而且显示的节点越多就越慢。
                    • +
                    • 4)、对于某一级节点数至少几千个的情况,另一个解决方案是:分页异步加载。
                      + async load log:
                      +
                      • +
                      +
                    • +
                    • 2、setting 配置信息说明

                      +
                        +
                      • 需要设置 setting.async 异步加载部分的参数
                      • +
                      • 建议关闭动画效果 setting.view.expandSpeed = "";
                      • +
                      • 其他不需要进行特殊的配置,根据自己的需求自行设置
                      • +
                      +
                    • +
                    • 3、treeNode 节点数据说明

                      +
                        +
                      • 对 节点数据 没有特殊要求,用户可以根据自己的需求添加自定义属性
                      • +
                      +
                    • +
                    +
                    +
                    + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/cn/bigdata/page.html b/alive-admin/src/main/resources/static/ztree/demo/cn/bigdata/page.html new file mode 100644 index 0000000..ef3c763 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/cn/bigdata/page.html @@ -0,0 +1,150 @@ + + + + ZTREE DEMO - big data page + + + + + + + + + + + + +

                    分页加载大数据量

                    +
                    [ 文件路径: bigdata/page.html ]
                    +
                    +
                    +
                      +
                      +
                      +
                        +
                      • 1、大数据量加载说明

                        +
                          +
                        • 1)、分页方案可以有效解决某一级节点数据超大的情况。
                        • +
                        • 2)、分页按钮通过自定义控件的方法实现。
                        • +
                        • 3)、分页方案对于 checkbox 的关联关系无能为力,只能每次翻页后进行修正。由于时间关系,Demo 中不对 checkbox 的关联进行任何修正处理。
                        • +
                        • 4)、分页方案中,从 zTree 得到的节点数据只有当前页的节点数据,可以在每次翻页后自行保存每页的数据,作为缓存,具体情况要根据实际需求来决定。
                        • + +
                        • 2、setting 配置信息说明

                          +
                            +
                          • 需要设置 setting.async 异步加载部分的参数
                          • +
                          • 其他不需要进行特殊的配置,根据自己的需求自行设置
                          • +
                          +
                        • +
                        • 3、treeNode 节点数据说明

                          +
                            +
                          • 对 节点数据 没有特殊要求,用户可以根据自己的需求添加自定义属性
                          • +
                          +
                        • +
                        +
                      +
                      + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/cn/core/async.html b/alive-admin/src/main/resources/static/ztree/demo/cn/core/async.html new file mode 100644 index 0000000..3f2a0d9 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/cn/core/async.html @@ -0,0 +1,70 @@ + + + + ZTREE DEMO - Async + + + + + + + + + + +

                      异步加载节点数据的树

                      +
                      [ 文件路径: core/async.html ]
                      +
                      +
                      +
                        +
                        +
                        +
                          +
                        • 1、setting 配置信息说明

                          +
                            +
                          • 使用异步加载,必须设置 setting.async 中的各个属性,详细请参见 API 文档中的相关内容
                          • +
                          +
                        • +
                        • 2、treeNode 节点数据说明

                          +
                            +
                          • 异步加载功能对于 treeNode 节点数据没有特别要求,如果采用简单 JSON 数据,请设置 setting.data.simple 中的属性
                          • +
                          • 如果异步加载每次都只返回单层的节点数据,那么可以不设置简单 JSON 数据模式
                          • +
                          +
                        • +
                        • 3、其他说明

                          +
                            +
                          • 观察 autoParam 和 otherParam 请使用 firebug 或 浏览器的开发人员工具
                          • +
                          • 此 Demo 只能加载到第 4 级节点(level=3)
                          • +
                          • 此 Demo 利用 dataFilter 对节点的 name 进行了修改
                          • +
                          +
                        • +
                        +
                        +
                        + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/cn/core/async_fun.html b/alive-admin/src/main/resources/static/ztree/demo/cn/core/async_fun.html new file mode 100644 index 0000000..3571b24 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/cn/core/async_fun.html @@ -0,0 +1,144 @@ + + + + ZTREE DEMO - reAsyncChildNodes + + + + + + + + + + + +

                        用 zTree 方法异步加载节点数据

                        +
                        [ 文件路径: core/async_fun.html ]
                        +
                        +
                        +
                          +
                          +
                          +
                            +
                          • 1、reAsyncChildNodes 方法操作说明

                            +
                              +
                            • 使用 zTreeObj.reAsyncChildNodes 方法,详细请参见 API 文档中的相关内容
                            • +
                            • 此 Demo 只能同时选中一个父节点
                              + 试试看:[ 重新加载 ]    [ 追加 ]

                              +
                            • +
                            • “悄悄地”操作只能针对 折叠状态 的父节点
                              + 试试看:[ 悄悄地 重新加载 ]    [ 悄悄地 追加 ]
                              + async log:
                              +

                                +
                              • +
                              +
                            • +
                            • 2、setting 配置信息说明

                              +
                                +
                              • 使用 zTree 提供的 reAsyncChildNodes 方法也必须设置 setting.async 中的各个属性,详细请参见 API 文档中的相关内容
                              • +
                              +
                            • +
                            • 3、treeNode 节点数据说明

                              +
                                +
                              • 同 "异步加载 节点数据" 中的说明
                              • +
                              +
                            • +
                            • 4、其他说明

                              +
                                +
                              • 同 "异步加载 节点数据" 中的说明
                              • +
                              +
                            • +
                            +
                            +
                            + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/cn/core/click.html b/alive-admin/src/main/resources/static/ztree/demo/cn/core/click.html new file mode 100644 index 0000000..50367d9 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/cn/core/click.html @@ -0,0 +1,107 @@ + + + + ZTREE DEMO - beforeClick / onClick + + + + + + + + + + +

                            单击节点控制

                            +
                            [ 文件路径: core/click.html ]
                            +
                            +
                            +
                              +
                              +
                              +
                                +
                              • 1、beforeClick / onClick 事件回调函数控制

                                +
                                  +
                                • 利用 click 事件回调函数 可以进行各种其他的附加操作,这里简单演示如何监控此事件
                                • +
                                • 请尝试按下 Ctrl 键进行 多节点选择 和 取消选择
                                  + click log:
                                  +

                                    +
                                  • +
                                  +
                                • +
                                • 2、setting 配置信息说明

                                  +
                                    +
                                  • 需要设置 setting.callback.beforeClick 和 setting.callback.onClick 属性, 详细请参见 API 文档中的相关内容
                                  • +
                                  +
                                • +
                                • 3、treeNode 节点数据说明

                                  +
                                    +
                                  • 对 节点数据 没有特殊要求,用户可以根据自己的需求添加自定义属性
                                  • +
                                  +
                                • +
                                +
                                +
                                + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/cn/core/custom_font.html b/alive-admin/src/main/resources/static/ztree/demo/cn/core/custom_font.html new file mode 100644 index 0000000..e9f901e --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/cn/core/custom_font.html @@ -0,0 +1,67 @@ + + + + ZTREE DEMO - Custom Font + + + + + + + + + + +

                                显示自定义字体的树

                                +
                                [ 文件路径: core/custom_font.html ]
                                +
                                +
                                +
                                  +
                                  +
                                  +
                                    +
                                  • 1、setting 配置信息说明

                                    +
                                      +
                                    • 1、节点自定义字体请设置 setting.view.fontCss 属性,详细请参见 API 文档中的相关内容
                                    • +
                                    • 2、setting.view.nameIsHTML 属性可以允许节点名称支持 HTML 内容,详细请参见 API 文档中的相关内容
                                    • +
                                    +
                                  • +
                                  • 2、treeNode 节点数据说明

                                    +
                                      +
                                    • 设置字体不需要 treeNode 设置特殊数据,但如果用于为了区别不同类型的节点,设置不同的样式,可以对相应的数据设置自定义属性
                                    • +
                                    • 此 Demo 利用 treeNode 保存样式定义
                                    • +
                                    +
                                  • +
                                  +
                                  +
                                  + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/cn/core/custom_icon.html b/alive-admin/src/main/resources/static/ztree/demo/cn/core/custom_icon.html new file mode 100644 index 0000000..7c8de18 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/cn/core/custom_icon.html @@ -0,0 +1,74 @@ + + + + ZTREE DEMO - Custom Icon + + + + + + + + + + +

                                  自定义图标 -- icon 属性

                                  +
                                  [ 文件路径: core/custom_icon.html ]
                                  +
                                  +
                                  +
                                    +
                                    +
                                    +
                                      +
                                    • 1、setting 配置信息说明

                                      +
                                        +
                                      • 自定义图标不需要对 setting 进行特殊配置
                                      • +
                                      +
                                    • +
                                    • 2、treeNode 节点数据说明

                                      +
                                        +
                                      • 利用 节点数据的 icon / iconOpen / iconClose 属性实现自定义图标
                                      • +
                                      • 详细请参见 API 文档中的相关内容
                                      • +
                                      +
                                    • +
                                    • 3、其他说明

                                      +
                                        +
                                      • 由于时间关系,例子直接采用 png 图片,如果需要解决 ie6 下 png 图片的透明问题,请针对 ie6 制作特殊的 gif 图片或者利用 css filter 解决
                                      • +
                                      +
                                    • +
                                    +
                                    +
                                    + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/cn/core/custom_iconSkin.html b/alive-admin/src/main/resources/static/ztree/demo/cn/core/custom_iconSkin.html new file mode 100644 index 0000000..cde753a --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/cn/core/custom_iconSkin.html @@ -0,0 +1,84 @@ + + + + ZTREE DEMO - Custom Icon Skin + + + + + + + + + + + +

                                    自定义图标 -- iconSkin 属性

                                    +
                                    [ 文件路径: core/custom_iconSkin.html ]
                                    +
                                    +
                                    +
                                      +
                                      +
                                      +
                                        +
                                      • 1、setting 配置信息说明

                                        +
                                          +
                                        • 自定义图标不需要对 setting 进行特殊配置
                                        • +
                                        +
                                      • +
                                      • 2、treeNode 节点数据说明

                                        +
                                          +
                                        • 利用 节点数据的 iconSkin 属性 配合 css 实现自定义图标
                                        • +
                                        • 详细请参见 API 文档中的相关内容
                                        • +
                                        +
                                      • +
                                      • 3、其他说明

                                        +
                                          +
                                        • 由于时间关系,例子直接采用 png 图片,如果需要解决 ie6 下 png 图片的透明问题,请针对 ie6 制作特殊的 gif 图片或者利用 css filter 解决
                                        • +
                                        +
                                      • +
                                      +
                                      +
                                      + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/cn/core/expand.html b/alive-admin/src/main/resources/static/ztree/demo/cn/core/expand.html new file mode 100644 index 0000000..0b1b0c9 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/cn/core/expand.html @@ -0,0 +1,182 @@ + + + + ZTREE DEMO - beforeExpand / onExpand && beforeCollapse / onCollapse + + + + + + + + + + +

                                      展开 / 折叠父节点控制

                                      +
                                      [ 文件路径: core/expand.html ]
                                      +
                                      +
                                      +
                                        +
                                        +
                                        +
                                          +
                                        • 1、beforeCollapse / onCollapse
                                            beforeExpand / onExpand 事件回调函数控制

                                          +
                                            +
                                          • 利用 collapse / expand 事件回调函数 可以控制父节点是否允许 展开 / 折叠,这里简单演示如何监控此事件
                                          • +
                                          • 试试看:
                                            +      expandNode 方法是否触发 callback
                                            +     单个节点--[ 展开 ] +     [ 折叠 ] +     [ 展开 / 折叠 切换 ]
                                            +     单个节点(包括子节点)--[ 展开 ] +     [ 折叠 ]
                                            +     全部节点--[ 展开 ] +     [ 折叠 ]

                                            +
                                          • 使用 zTreeObj.expandNode 方法,详细请参见 API 文档中的相关内容
                                            + collapse / expand log:
                                            +

                                              +
                                            • +
                                            +
                                          • +
                                          • 2、setting 配置信息说明

                                            +
                                              +
                                            • 事件回调函数的使用,详细请参见 API 文档中 setting.callback 的相关内容
                                            • +
                                            • 如果需要调整 展开 / 折叠 的动画效果, 详细请参见 API 文档中 setting.view.expandSpeed 的相关内容
                                            • +
                                            +
                                          • +
                                          • 3、treeNode 节点数据说明

                                            +
                                              +
                                            • 对 节点数据 没有特殊要求,用户可以根据自己的需求添加自定义属性
                                            • +
                                            +
                                          • +
                                          +
                                          +
                                          + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/cn/core/noicon.html b/alive-admin/src/main/resources/static/ztree/demo/cn/core/noicon.html new file mode 100644 index 0000000..9562163 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/cn/core/noicon.html @@ -0,0 +1,93 @@ + + + + ZTREE DEMO - noIcon + + + + + + + + + + + +

                                          不显示节点图标的树

                                          +
                                          [ 文件路径: core/noicon.html ]
                                          +
                                          +
                                          +
                                            +
                                            +
                                            +
                                              +
                                            • 1、setting 配置信息说明

                                              +
                                                +
                                              • 此 Demo 利用 Function 设置了使父节点不显示图标的规则
                                              • +
                                              • 是否显示节点图标请设置 setting.view.showIcon 属性,详细请参见 API 文档中的相关内容
                                              • +
                                              +
                                            • +
                                            • 2、treeNode 节点数据说明

                                              +
                                                +
                                              • 是否显示图标,不需要 treeNode 节点数据提供特殊设置,但如果用户需要根据不同节点动态设置,可以对节点数据增加特殊属性,用于判别
                                              • +
                                              +
                                            • +
                                            +
                                            +
                                            + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/cn/core/noline.html b/alive-admin/src/main/resources/static/ztree/demo/cn/core/noline.html new file mode 100644 index 0000000..212d97b --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/cn/core/noline.html @@ -0,0 +1,88 @@ + + + + ZTREE DEMO - noLine + + + + + + + + + + + +

                                            不显示连接线的树

                                            +
                                            [ 文件路径: core/noline.html ]
                                            +
                                            +
                                            +
                                              +
                                              +
                                              +
                                                +
                                              • 1、setting 配置信息说明

                                                +
                                                  +
                                                • 是否显示连接线请设置 setting.view.showLine 属性,详细请参见 API 文档中的相关内容
                                                • +
                                                +
                                              • +
                                              • 2、treeNode 节点数据说明

                                                +
                                                  +
                                                • 是否显示连线,不需要 treeNode 节点数据提供特殊设置
                                                • +
                                                +
                                              • +
                                              +
                                              +
                                              + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/cn/core/otherMouse.html b/alive-admin/src/main/resources/static/ztree/demo/cn/core/otherMouse.html new file mode 100644 index 0000000..2dff4e4 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/cn/core/otherMouse.html @@ -0,0 +1,132 @@ + + + + ZTREE DEMO - Other Mouse Event + + + + + + + + + + +

                                              其他鼠标事件监听

                                              +
                                              [ 文件路径: core/otherMouse.html ]
                                              +
                                              +
                                              +
                                                +
                                                +
                                                +
                                                  +
                                                • 1、mousedown / mouseup / rightClick 事件回调函数控制

                                                  +
                                                    +
                                                  • zTree 提供 这几种鼠标事件响应,主要是为了便于用户针对一些特殊需求进行扩展开发,不会对 zTree 造成任何影响,这里简单演示如何监控此事件
                                                  • +
                                                  • 请尝试鼠标在 zTree 上胡乱点击(左键、右键)吧,顺便看看 log
                                                    + mousedown event log:
                                                    +

                                                      + mouseup event log:
                                                      +
                                                        + rightClick event log:
                                                        +

                                                          +
                                                        • +
                                                        +
                                                      • +
                                                      • 2、setting 配置信息说明

                                                        +
                                                          +
                                                        • 事件回调函数的使用,详细请参见 API 文档中 setting.callback 的相关内容
                                                        • +
                                                        +
                                                      • +
                                                      • 3、treeNode 节点数据说明

                                                        +
                                                          +
                                                        • 对 节点数据 没有特殊要求,用户可以根据自己的需求添加自定义属性
                                                        • +
                                                        +
                                                      • +
                                                      +
                                                      +
                                                      + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/cn/core/searchNodes.html b/alive-admin/src/main/resources/static/ztree/demo/cn/core/searchNodes.html new file mode 100644 index 0000000..28c2e3b --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/cn/core/searchNodes.html @@ -0,0 +1,173 @@ + + + + ZTREE DEMO - getNodeByParam / getNodesByParam / getNodesByParamFuzzy + + + + + + + + + + +

                                                      根据参数查找节点

                                                      +
                                                      [ 文件路径: core/searchNodes.html ]
                                                      +
                                                      +
                                                      +
                                                        +
                                                        +
                                                        +
                                                          +
                                                        • 1、getNodeByParam / getNodesByParam / getNodesByParamFuzzy 方法操作说明

                                                          +
                                                            +
                                                          • 使用 zTreeObj.getNodeByParam / getNodesByParam / getNodesByParamFuzzy / getNodeByTId 方法,详细请参见 API 文档中的相关内容
                                                          • +
                                                          • 搜索试试看:
                                                            + 属性值( value ):
                                                            + 属性( key ):name (string)
                                                            + level (number) ... 根节点 level = 0
                                                            + id (number)
                                                            + 方法:getNodeByParam
                                                            + getNodesByParam
                                                            + getNodesByParamFuzzy (only string)
                                                            + getNodesByFilter (参考本页源码中 function filter)
                                                            +

                                                            +
                                                          • +
                                                          +
                                                        • +
                                                        • 2、setting 配置信息说明

                                                          +
                                                            +
                                                          • 不需要对 setting 进行特殊设置
                                                          • +
                                                          +
                                                        • +
                                                        • 3、treeNode 节点数据说明

                                                          +
                                                            +
                                                          • 请注意各个方法使用时保证传入查找的参数类型与设定要查找的属性的类型一致
                                                          • +
                                                          +
                                                        • +
                                                        +
                                                        +
                                                        + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/cn/core/simpleData.html b/alive-admin/src/main/resources/static/ztree/demo/cn/core/simpleData.html new file mode 100644 index 0000000..19f7ca5 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/cn/core/simpleData.html @@ -0,0 +1,100 @@ + + + + ZTREE DEMO - Simple Data + + + + + + + + + + +

                                                        最简单的树 -- 简单 JSON 数据

                                                        +
                                                        [ 文件路径: core/simpleData.html ]
                                                        +
                                                        +
                                                        +
                                                          +
                                                          +
                                                          +
                                                            +
                                                          • 1、setting 配置信息说明

                                                            +
                                                              +
                                                            • 必须设置 setting.data.simple 内的属性,详细请参见 API 文档中的相关内容
                                                            • +
                                                            • 与显示相关的内容请参考 API 文档中 setting.view 内的配置信息
                                                            • +
                                                            • name、children、title 等属性定义更改请参考 API 文档中 setting.data.key 内的配置信息
                                                            • +
                                                            +
                                                          • +
                                                          • 2、treeNode 节点数据说明

                                                            +
                                                              +
                                                            • 简单模式的 JSON 数据需要使用 id / pId 表示节点的父子包含关系,如使用其他属性设置父子关联关系请参考 setting.data.simple 内各项说明 +
                                                              例如:
                                                              +var nodes = [
                                                              +	{id:1, pId:0, name: "父节点1"},
                                                              +	{id:11, pId:1, name: "子节点1"},
                                                              +	{id:12, pId:1, name: "子节点2"}
                                                              +];
                                                            • +
                                                            • 默认展开的节点,请设置 treeNode.open 属性
                                                            • +
                                                            • 无子节点的父节点,请设置 treeNode.isParent 属性
                                                            • +
                                                            • 其他属性说明请参考 API 文档中 "treeNode 节点数据详解"
                                                            • +
                                                            +
                                                          • +
                                                          • 3、其他说明

                                                            +
                                                              +
                                                            • Demo 中绝大部分都采用简单 JSON 数据模式,以便于大家学习
                                                            • +
                                                            +
                                                          • +
                                                          +
                                                          +
                                                          + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/cn/core/standardData.html b/alive-admin/src/main/resources/static/ztree/demo/cn/core/standardData.html new file mode 100644 index 0000000..582a6e1 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/cn/core/standardData.html @@ -0,0 +1,106 @@ + + + + ZTREE DEMO - Standard Data + + + + + + + + + + +

                                                          最简单的树 -- 标准 JSON 数据

                                                          +
                                                          [ 文件路径: core/standardData.html ]
                                                          +
                                                          +
                                                          +
                                                            +
                                                            +
                                                            +
                                                              +
                                                            • 1、setting 配置信息说明

                                                              +
                                                                +
                                                              • 普通使用,无必须设置的参数
                                                              • +
                                                              • 与显示相关的内容请参考 API 文档中 setting.view 内的配置信息
                                                              • +
                                                              • name、children、title 等属性定义更改请参考 API 文档中 setting.data.key 内的配置信息
                                                              • +
                                                              +
                                                            • +
                                                            • 2、treeNode 节点数据说明

                                                              +
                                                                +
                                                              • 标准的 JSON 数据需要嵌套表示节点的父子包含关系 +
                                                                例如:
                                                                +var nodes = [
                                                                +	{name: "父节点1", children: [
                                                                +		{name: "子节点1"},
                                                                +		{name: "子节点2"}
                                                                +	]}
                                                                +];
                                                                +
                                                              • +
                                                              • 默认展开的节点,请设置 treeNode.open 属性
                                                              • +
                                                              • 无子节点的父节点,请设置 treeNode.isParent 属性
                                                              • +
                                                              • 其他属性说明请参考 API 文档中 "treeNode 节点数据详解"
                                                              • +
                                                              +
                                                            • +
                                                            +
                                                            +
                                                            + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/cn/core/update_fun.html b/alive-admin/src/main/resources/static/ztree/demo/cn/core/update_fun.html new file mode 100644 index 0000000..918ed82 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/cn/core/update_fun.html @@ -0,0 +1,143 @@ + + + + ZTREE DEMO - updateNode + + + + + + + + + + + +

                                                            用 zTree 方法 更新 节点数据

                                                            +
                                                            [ 文件路径: core/update_fun.html ]
                                                            +
                                                            +
                                                            +
                                                              +
                                                              +
                                                              +
                                                                +
                                                              • 1、updateNode 方法操作说明

                                                                +
                                                                  +
                                                                • 使用 zTreeObj.updateNode 方法,详细请参见 API 文档中的相关内容
                                                                • +
                                                                • 此 Demo 只能同时选中一个节点
                                                                  + 试试看:[ 换名字 ] +     [ 换图标 ] +     [ 换颜色 ] +     [ 斜体 ]

                                                                  +
                                                                • +
                                                                +
                                                              • +
                                                              • 2、setting 配置信息说明

                                                                +
                                                                  +
                                                                • 不需要对 setting 进行特殊设置
                                                                • +
                                                                • 配合 setting.view.fontCss 可以修改节点文字样式
                                                                • +
                                                                +
                                                              • +
                                                              • 3、treeNode 节点数据说明

                                                                +
                                                                  +
                                                                • zTreeObj.updateNode 方法的 API 文档中有详细说明
                                                                • +
                                                                +
                                                              • +
                                                              • 4、其他说明

                                                                +
                                                                  +
                                                                • 此 Demo 是针对 核心 js 包 core 制作的,因此不包括 checkbox 的更新操作
                                                                • +
                                                                +
                                                              • +
                                                              +
                                                              +
                                                              + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/cn/core/url.html b/alive-admin/src/main/resources/static/ztree/demo/cn/core/url.html new file mode 100644 index 0000000..8550d28 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/cn/core/url.html @@ -0,0 +1,63 @@ + + + + ZTREE DEMO - url + + + + + + + + + + +

                                                              超链接演示

                                                              +
                                                              [ 文件路径: core/url.html ]
                                                              +
                                                              +
                                                              +
                                                                +
                                                                +
                                                                +
                                                                  +
                                                                • 1、setting 配置信息说明

                                                                  +
                                                                    +
                                                                  • 普通使用,无必须设置的参数
                                                                  • +
                                                                  • 如果需要灵活控制超链接跳转,请利用 onClick 事件回调函数进行控制,详细请参见 API 文档中的相关内容
                                                                  • +
                                                                  +
                                                                • +
                                                                • 2、treeNode 节点数据说明

                                                                  +
                                                                    +
                                                                  • 1、url 属性用于设置 页面跳转的路径
                                                                  • +
                                                                  • 2、target 属性用于设置 页面跳转的窗口目标
                                                                  • +
                                                                  • 3、click 属性用于设置简单的 onClick 事件
                                                                  • +
                                                                  • 其他属性说明请参考 API 文档中 "treeNode 节点数据详解"
                                                                  • +
                                                                  +
                                                                • +
                                                                +
                                                                +
                                                                + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/cn/excheck/checkbox.html b/alive-admin/src/main/resources/static/ztree/demo/cn/excheck/checkbox.html new file mode 100644 index 0000000..01c5d5c --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/cn/excheck/checkbox.html @@ -0,0 +1,107 @@ + + + + ZTREE DEMO - checkbox + + + + + + + + + + + +

                                                                Checkbox 勾选操作

                                                                +
                                                                [ 文件路径: excheck/checkbox.html ]
                                                                +
                                                                +
                                                                +
                                                                  +
                                                                  +
                                                                  +
                                                                    +
                                                                  • 1、setting 配置信息说明

                                                                    +
                                                                      +
                                                                    • 使用 checkbox,必须设置 setting.check 中的各个属性,详细请参见 API 文档中的相关内容
                                                                    • +
                                                                    • 父子关联关系:
                                                                      + 被勾选时:关联父 + 关联子
                                                                      + 取消勾选时:关联父 + 关联子
                                                                      +

                                                                        +
                                                                      • +
                                                                      +
                                                                    • +
                                                                    • 2、treeNode 节点数据说明

                                                                      +
                                                                        +
                                                                      • 1)、如果需要初始化默认节点被勾选,请设置 treeNode.checked 属性,详细请参见 API 文档中的相关内容
                                                                      • +
                                                                      • 2)、如果某节点禁用 checkbox,请设置 treeNode.chkDisabled 属性,详细请参见 API 文档中的相关内容 和 'chkDisabled 演示'
                                                                      • +
                                                                      • 3)、如果某节点不显示 checkbox,请设置 treeNode.nocheck 属性,详细请参见 API 文档中的相关内容 和 'nocheck 演示'
                                                                      • +
                                                                      • 4)、如果更换 checked 属性,请参考 API 文档中 setting.data.key.checked 的详细说明
                                                                      • +
                                                                      • 5)、其他请参考 API 文档中 treeNode.checkedOld / getCheckStatus / check_Child_State / check_Focus 的详细说明
                                                                      • +
                                                                      +
                                                                    • +
                                                                    +
                                                                    +
                                                                    + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/cn/excheck/checkbox_chkDisabled.html b/alive-admin/src/main/resources/static/ztree/demo/cn/excheck/checkbox_chkDisabled.html new file mode 100644 index 0000000..5d08d1c --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/cn/excheck/checkbox_chkDisabled.html @@ -0,0 +1,99 @@ + + + + ZTREE DEMO - Checkbox chkDisabled + + + + + + + + + + + +

                                                                    Checkbox chkDisabled 演示

                                                                    +
                                                                    [ 文件路径: excheck/checkbox_chkDisabled.html ]
                                                                    +
                                                                    +
                                                                    +
                                                                      +
                                                                      +
                                                                      +
                                                                        +
                                                                      • 1、setChkDisabled 方法操作说明

                                                                        +
                                                                          +
                                                                        • setChkDisabled 方法可以设置节点 checkbox / radio 禁用 或 取消禁用,详细请参见 API 文档中的相关内容
                                                                        • +
                                                                        • 试试看:
                                                                          +     [ 禁用 ] +     [ 取消禁用 ]

                                                                          +
                                                                        • +
                                                                        +
                                                                      • +
                                                                      • 2、setting 配置信息说明

                                                                        +
                                                                          +
                                                                        • 这个 Demo 只简单演示 chkDisabled 的使用方法,详细配置信息请参考 ‘Checkbox 勾选操作’
                                                                        • +
                                                                        +
                                                                      • +
                                                                      • 3、treeNode 节点数据说明

                                                                        +
                                                                          +
                                                                        • 1)、如果某节点禁用 checkbox,请设置 treeNode.chkDisabled 属性,详细请参见 API 文档中的相关内容
                                                                        • +
                                                                        • 2)、其他请参考 ‘Checkbox 勾选操作’
                                                                        • +
                                                                        +
                                                                      • +
                                                                      +
                                                                      +
                                                                      + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/cn/excheck/checkbox_count.html b/alive-admin/src/main/resources/static/ztree/demo/cn/excheck/checkbox_count.html new file mode 100644 index 0000000..c0d84ba --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/cn/excheck/checkbox_count.html @@ -0,0 +1,126 @@ + + + + ZTREE DEMO - getChangeCheckedNodes / getCheckedNodes + + + + + + + + + + + +

                                                                      checkbox 勾选统计

                                                                      +
                                                                      [ 文件路径: excheck/checkbox_count.html ]
                                                                      +
                                                                      +
                                                                      +
                                                                        +
                                                                        +
                                                                        +
                                                                          +
                                                                        • 1、getChangeCheckedNodes / getCheckedNodes 方法操作说明

                                                                          +
                                                                            +
                                                                          • 使用 zTreeObj.getChangeCheckedNodes / getCheckedNodes 方法,详细请参见 API 文档中的相关内容
                                                                          • +
                                                                          • 去勾选 checkbox 比较下面的数字变化:
                                                                            +

                                                                              +
                                                                            • 当前被勾选的节点共
                                                                            • +
                                                                            • 当前未被勾选的节点共
                                                                            • +
                                                                            • 勾选状态对比规则:与 zTree 初始化时对比
                                                                              + 与上一次勾选后对比
                                                                            • +
                                                                            • 当前被修改勾选状态的节点共
                                                                            • +

                                                                            +
                                                                          • +
                                                                          +
                                                                        • +
                                                                        • 2、setting 配置信息说明

                                                                          +
                                                                            +
                                                                          • 同 "checkbox 勾选操作" 中的说明
                                                                          • +
                                                                          +
                                                                        • +
                                                                        • 3、treeNode 节点数据说明

                                                                          +
                                                                            +
                                                                          • 同 "checkbox 勾选操作" 中的说明
                                                                          • +
                                                                          +
                                                                        • +
                                                                        +
                                                                        +
                                                                        + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/cn/excheck/checkbox_fun.html b/alive-admin/src/main/resources/static/ztree/demo/cn/excheck/checkbox_fun.html new file mode 100644 index 0000000..c8a0b12 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/cn/excheck/checkbox_fun.html @@ -0,0 +1,172 @@ + + + + ZTREE DEMO - beforeCheck / onCheck + + + + + + + + + + + +

                                                                        用 zTree 方法 勾选 checkbox

                                                                        +
                                                                        [ 文件路径: excheck/checkbox_fun.html ]
                                                                        +
                                                                        +
                                                                        +
                                                                          +
                                                                          +
                                                                          +
                                                                            +
                                                                          • 1、beforeCheck / onCheck 事件回调函数控制

                                                                            +
                                                                              +
                                                                            • 利用 beforeCheck / onCheck 事件回调函数 可以控制是否允许 更改 节点勾选状态,这里简单演示如何监控此事件
                                                                            • +
                                                                            • 这里还演示了 checkNode / checkAllNodes 方法触发 beforeCheck / onCheck 事件回调函数的情况,试试看:
                                                                              +      setting.check.autoCheckTrigger: false
                                                                              +      执行勾选方法是否触发 callback
                                                                              +     单节点--[ 勾选 ] +     [ 取消勾选 ] +     [ 勾选 切换 ]
                                                                              +     单节点 ( 影响父子 )--[ 勾选 ] +     [ 取消勾选 ] +     [ 勾选 切换 ]
                                                                              +     全部节点--[ 勾选 ] +     [ 取消勾选 ]

                                                                              +
                                                                            • +
                                                                            • 使用 zTreeObj.checkNode / checkAllNodes 方法,详细请参见 API 文档中的相关内容
                                                                              + beforeCheck / onCheck log:
                                                                              +

                                                                                +
                                                                              • +
                                                                              +
                                                                            • +
                                                                            • 2、setting 配置信息说明

                                                                              +
                                                                                +
                                                                              • 同 "checkbox 勾选操作" 中的说明
                                                                              • +
                                                                              +
                                                                            • +
                                                                            • 3、treeNode 节点数据说明

                                                                              +
                                                                                +
                                                                              • 同 "checkbox 勾选操作" 中的说明
                                                                              • +
                                                                              +
                                                                            • +
                                                                            +
                                                                            +
                                                                            + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/cn/excheck/checkbox_halfCheck.html b/alive-admin/src/main/resources/static/ztree/demo/cn/excheck/checkbox_halfCheck.html new file mode 100644 index 0000000..21de1e0 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/cn/excheck/checkbox_halfCheck.html @@ -0,0 +1,108 @@ + + + + ZTREE DEMO - Checkbox halfCheck + + + + + + + + + + + +

                                                                            Checkbox halfCheck 演示

                                                                            +
                                                                            [ 文件路径: excheck/checkbox_halfCheck.html ]
                                                                            +
                                                                            +
                                                                            +
                                                                              +
                                                                              +
                                                                              +
                                                                                +
                                                                              • 1、演示说明

                                                                                +
                                                                                  +
                                                                                • 这个演示式实现了 异步加载模式 下简单的勾选操作
                                                                                • +
                                                                                • 1)、加载子节点后,父节点的 halfCheck 立刻失效
                                                                                • +
                                                                                • 2)、勾选父节点,可以影响之后加载的子节点的勾选状态
                                                                                • +
                                                                                • 3)、勾选父节点,可以让其子节点的 halfCheck 属性失效
                                                                                • +
                                                                                +
                                                                              • +
                                                                              • 2、setting 配置信息说明

                                                                                +
                                                                                  +
                                                                                • 实现半勾选功能,不需要配置任何参数。但半勾选功能属于辅助功能,无法单独使用,因此也需要根据自己的需求配置特定参数。
                                                                                • +
                                                                                +
                                                                              • +
                                                                              • 3、treeNode 节点数据说明

                                                                                +
                                                                                  +
                                                                                • 1)、请在节点初始化之前,设置 treeNode.halfCheck 属性,详细请参见 API 文档中的相关内容
                                                                                • +
                                                                                • 2)、其他请参考 ‘Checkbox 勾选操作’
                                                                                • +
                                                                                +
                                                                              • +
                                                                              +
                                                                              +
                                                                              + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/cn/excheck/checkbox_nocheck.html b/alive-admin/src/main/resources/static/ztree/demo/cn/excheck/checkbox_nocheck.html new file mode 100644 index 0000000..b6d3fa7 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/cn/excheck/checkbox_nocheck.html @@ -0,0 +1,76 @@ + + + + ZTREE DEMO - no checkbox + + + + + + + + + + + +

                                                                              Checkbox nocheck 演示

                                                                              +
                                                                              [ 文件路径: excheck/checkbox_nocheck.html ]
                                                                              +
                                                                              +
                                                                              +
                                                                                +
                                                                                +
                                                                                +
                                                                                  +
                                                                                • 1、setting 配置信息说明

                                                                                  +
                                                                                    +
                                                                                  • 这个 Demo 只简单演示 nocheck 的使用方法,详细配置信息请参考 ‘Checkbox 勾选操作’
                                                                                  • +
                                                                                  • setting.check.nocheckInherit 可以设置子节点自动继承父节点的 nocheck 属性,详细请参见 API 文档中的相关内容
                                                                                  • +
                                                                                  +
                                                                                • +
                                                                                • 2、treeNode 节点数据说明

                                                                                  +
                                                                                    +
                                                                                  • 1)、如果某节点不显示 checkbox,请设置 treeNode.nocheck 属性,详细请参见 API 文档中的相关内容
                                                                                  • +
                                                                                  • 2)、其他请参考 ‘Checkbox 勾选操作’
                                                                                  • +
                                                                                  +
                                                                                • +
                                                                                +
                                                                                +
                                                                                + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/cn/excheck/radio.html b/alive-admin/src/main/resources/static/ztree/demo/cn/excheck/radio.html new file mode 100644 index 0000000..9cd589a --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/cn/excheck/radio.html @@ -0,0 +1,97 @@ + + + + ZTREE DEMO - radio + + + + + + + + + + + +

                                                                                Radio 勾选操作

                                                                                +
                                                                                [ 文件路径: excheck/radio.html ]
                                                                                +
                                                                                +
                                                                                +
                                                                                  +
                                                                                  +
                                                                                  +
                                                                                    +
                                                                                  • 1、setting 配置信息说明

                                                                                    +
                                                                                      +
                                                                                    • 使用 radio,必须设置 setting.check 中的各个属性,详细请参见 API 文档中的相关内容
                                                                                    • +
                                                                                    • radio 分组范围:同一级内 + 整棵树内
                                                                                      +

                                                                                        +
                                                                                      • +
                                                                                      +
                                                                                    • +
                                                                                    • 2、treeNode 节点数据说明

                                                                                      +
                                                                                        +
                                                                                      • 1)、如果需要初始化默认节点被勾选,请设置 treeNode.checked 属性,详细请参见 API 文档中的相关内容
                                                                                      • +
                                                                                      • 2)、如果某节点不显示 radio,请设置 treeNode.nocheck 属性,详细请参见 API 文档中的相关内容
                                                                                      • +
                                                                                      • 3)、如果更换 checked 属性,请参考 API 文档中 setting.data.key.checked 的详细说明
                                                                                      • +
                                                                                      • 4)、其他请参考 API 文档中 treeNode.checkedOld / getCheckStatus / check_Child_State / check_Focus 的详细说明
                                                                                      • +
                                                                                      +
                                                                                    • +
                                                                                    +
                                                                                    +
                                                                                    + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/cn/excheck/radio_chkDisabled.html b/alive-admin/src/main/resources/static/ztree/demo/cn/excheck/radio_chkDisabled.html new file mode 100644 index 0000000..6d330f3 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/cn/excheck/radio_chkDisabled.html @@ -0,0 +1,101 @@ + + + + ZTREE DEMO - Radio chkDisabled + + + + + + + + + + + +

                                                                                    Radio chkDisabled 演示

                                                                                    +
                                                                                    [ 文件路径: excheck/radio_chkDisabled.html ]
                                                                                    +
                                                                                    +
                                                                                    +
                                                                                      +
                                                                                      +
                                                                                      +
                                                                                        +
                                                                                      • 1、setChkDisabled 方法操作说明

                                                                                        +
                                                                                          +
                                                                                        • setChkDisabled 方法可以设置节点 checkbox / radio 禁用 或 取消禁用,详细请参见 API 文档中的相关内容
                                                                                        • +
                                                                                        • 试试看:
                                                                                          +     [ 禁用 ] +     [ 取消禁用 ]

                                                                                          +
                                                                                        • +
                                                                                        +
                                                                                      • +
                                                                                      • 2、setting 配置信息说明

                                                                                        +
                                                                                          +
                                                                                        • 这个 Demo 只简单演示 chkDisabled 的使用方法,详细配置信息请参考 ‘Radio 勾选操作’
                                                                                        • +
                                                                                        +
                                                                                      • +
                                                                                      • 3、treeNode 节点数据说明

                                                                                        +
                                                                                          +
                                                                                        • 1)、如果某节点不显示 radio,请设置 treeNode.chkDisabled 属性,详细请参见 API 文档中的相关内容
                                                                                        • +
                                                                                        • 2)、其他请参考 ‘Radio 勾选操作’
                                                                                        • +
                                                                                        +
                                                                                      • +
                                                                                      +
                                                                                      +
                                                                                      + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/cn/excheck/radio_fun.html b/alive-admin/src/main/resources/static/ztree/demo/cn/excheck/radio_fun.html new file mode 100644 index 0000000..b9b5240 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/cn/excheck/radio_fun.html @@ -0,0 +1,151 @@ + + + + ZTREE DEMO - beforeCheck / onCheck + + + + + + + + + + + +

                                                                                      用 zTree 方法 勾选 radio

                                                                                      +
                                                                                      [ 文件路径: excheck/radio_fun.html ]
                                                                                      +
                                                                                      +
                                                                                      +
                                                                                        +
                                                                                        +
                                                                                        +
                                                                                          +
                                                                                        • 1、beforeCheck / onCheck 事件回调函数控制

                                                                                          +
                                                                                            +
                                                                                          • 利用 beforeCheck / onCheck 事件回调函数 可以控制是否允许 更改 节点勾选状态,这里简单演示如何监控此事件
                                                                                          • +
                                                                                          • 试试看:
                                                                                            +      checkNode 方法是否触发 callback
                                                                                            +     [ 勾选 ] +     [ 取消勾选 ]

                                                                                            +
                                                                                          • 使用 zTreeObj.checkNode 方法,详细请参见 API 文档中的相关内容
                                                                                            + beforeCheck / onCheck log:
                                                                                            +

                                                                                              +
                                                                                            • +
                                                                                            +
                                                                                          • +
                                                                                          • 2、setting 配置信息说明

                                                                                            +
                                                                                              +
                                                                                            • 同 "radio 勾选操作" 中的说明
                                                                                            • +
                                                                                            +
                                                                                          • +
                                                                                          • 3、treeNode 节点数据说明

                                                                                            +
                                                                                              +
                                                                                            • 同 "radio 勾选操作" 中的说明
                                                                                            • +
                                                                                            +
                                                                                          • +
                                                                                          +
                                                                                          +
                                                                                          + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/cn/excheck/radio_halfCheck.html b/alive-admin/src/main/resources/static/ztree/demo/cn/excheck/radio_halfCheck.html new file mode 100644 index 0000000..91f25cf --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/cn/excheck/radio_halfCheck.html @@ -0,0 +1,93 @@ + + + + ZTREE DEMO - Radio halfCheck + + + + + + + + + + + +

                                                                                          Radio halfCheck 演示

                                                                                          +
                                                                                          [ 文件路径: excheck/radio_halfCheck.html ]
                                                                                          +
                                                                                          +
                                                                                          +
                                                                                            +
                                                                                            +
                                                                                            +
                                                                                              +
                                                                                            • 1、演示说明

                                                                                              +
                                                                                                +
                                                                                              • 这个演示式实现了 异步加载模式 下简单的勾选操作
                                                                                              • +
                                                                                              • 1)、加载子节点后,父节点的 halfCheck 立刻失效
                                                                                              • +
                                                                                              • 2)、勾选父节点,不会影响子节点的勾选状态
                                                                                              • +
                                                                                              • 3)、勾选父节点,不会让其子节点的 halfCheck 属性失效
                                                                                              • +
                                                                                              +
                                                                                            • +
                                                                                            • 2、setting 配置信息说明

                                                                                              +
                                                                                                +
                                                                                              • 实现半勾选功能,不需要配置任何参数。但半勾选功能属于辅助功能,无法单独使用,因此也需要根据自己的需求配置特定参数。
                                                                                              • +
                                                                                              +
                                                                                            • +
                                                                                            • 3、treeNode 节点数据说明

                                                                                              +
                                                                                                +
                                                                                              • 1)、请在节点初始化之前,设置 treeNode.halfCheck 属性,详细请参见 API 文档中的相关内容
                                                                                              • +
                                                                                              • 2)、其他请参考 ‘Radio 勾选操作’
                                                                                              • +
                                                                                              +
                                                                                            • +
                                                                                            +
                                                                                            +
                                                                                            + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/cn/excheck/radio_nocheck.html b/alive-admin/src/main/resources/static/ztree/demo/cn/excheck/radio_nocheck.html new file mode 100644 index 0000000..cc648c1 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/cn/excheck/radio_nocheck.html @@ -0,0 +1,77 @@ + + + + ZTREE DEMO - no radio + + + + + + + + + + + +

                                                                                            Radio nocheck 演示

                                                                                            +
                                                                                            [ 文件路径: excheck/radio_nocheck.html ]
                                                                                            +
                                                                                            +
                                                                                            +
                                                                                              +
                                                                                              +
                                                                                              +
                                                                                                +
                                                                                              • 1、setting 配置信息说明

                                                                                                +
                                                                                                  +
                                                                                                • 这个 Demo 只简单演示 nocheck 的使用方法,详细配置信息请参考 ‘Radio 勾选操作’
                                                                                                • +
                                                                                                • setting.check.nocheckInherit 可以设置子节点自动继承父节点的 nocheck 属性,详细请参见 API 文档中的相关内容
                                                                                                • +
                                                                                                +
                                                                                              • +
                                                                                              • 2、treeNode 节点数据说明

                                                                                                +
                                                                                                  +
                                                                                                • 1)、如果某节点不显示 radio,请设置 treeNode.nocheck 属性,详细请参见 API 文档中的相关内容
                                                                                                • +
                                                                                                • 2)、其他请参考 ‘Radio 勾选操作’
                                                                                                • +
                                                                                                +
                                                                                              • +
                                                                                              +
                                                                                              +
                                                                                              + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/cn/exedit/async_edit.html b/alive-admin/src/main/resources/static/ztree/demo/cn/exedit/async_edit.html new file mode 100644 index 0000000..b6de26a --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/cn/exedit/async_edit.html @@ -0,0 +1,119 @@ + + + + ZTREE DEMO - async & edit + + + + + + + + + + + + +

                                                                                              异步加载 & 编辑功能 共存

                                                                                              +
                                                                                              [ 文件路径: exedit/async_edit.html ]
                                                                                              +
                                                                                              +
                                                                                              +
                                                                                                +
                                                                                                +
                                                                                                +
                                                                                                  +
                                                                                                • 1、异步加载 & 编辑功能 共存说明

                                                                                                  +
                                                                                                    +
                                                                                                  • 1)、此 Demo 是基于 "高级 增 / 删 / 改 节点" 修改的,并且开放了拖拽功能,可与其进行对比
                                                                                                  • +
                                                                                                  • 2)、只需要同时开启编辑模式和异步加载模式即可实现共存
                                                                                                  • +
                                                                                                  • 3)、zTree 完善了异步加载模式下的编辑功能,对于未加载子节点的父节点,增加子节点时,会首先进行异步加载。
                                                                                                  • +
                                                                                                  +
                                                                                                • +
                                                                                                • 2、setting 配置信息说明

                                                                                                  +
                                                                                                    +
                                                                                                  • 1)、使用 编辑功能,请参考 "拖拽节点基本控制" 和 "基本 增 / 删 / 改 节点" Demo 中关于 setting 的配置要求
                                                                                                  • +
                                                                                                  • 2)、使用 异步加载功能,请参考 "异步加载 节点数据" Demo 中关于 setting 的配置要求
                                                                                                  • +
                                                                                                  +
                                                                                                • +
                                                                                                • 3、treeNode 节点数据说明

                                                                                                  +
                                                                                                    +
                                                                                                  • 两种模式共存,对数据无特殊要求,请分别参考 "异步加载 节点数据" & "拖拽 节点 基本控制" & "基本 增 / 删 / 改 节点" 中的相关说明
                                                                                                  • +
                                                                                                  +
                                                                                                • +
                                                                                                +
                                                                                                +
                                                                                                + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/cn/exedit/drag.html b/alive-admin/src/main/resources/static/ztree/demo/cn/exedit/drag.html new file mode 100644 index 0000000..a19da79 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/cn/exedit/drag.html @@ -0,0 +1,136 @@ + + + + ZTREE DEMO - drag & drop + + + + + + + + + + + +

                                                                                                拖拽节点基本控制

                                                                                                +
                                                                                                [ 文件路径: exedit/drag.html ]
                                                                                                +
                                                                                                +
                                                                                                +
                                                                                                  +
                                                                                                  +
                                                                                                  +
                                                                                                    +
                                                                                                  • 1、setting 配置信息说明

                                                                                                    +
                                                                                                      +
                                                                                                    • 此 Demo 仅从功能上演示实现拖拽的基本方法和配置参数
                                                                                                    • +
                                                                                                    • 1)、使用 拖拽功能,必须设置 setting.edit 中的各个属性,详细请参见 API 文档中的相关内容
                                                                                                    • +
                                                                                                    • 2)、使用 拖拽功能的事件回调函数,必须设置 setting.callback.beforeDrag / onDrag / beforeDrop / onDrop 等属性,详细请参见 API 文档中的相关内容
                                                                                                    • +
                                                                                                    • 基本拖拽设置:
                                                                                                      + 允许复制 + 允许移动
                                                                                                      +

                                                                                                        +
                                                                                                      • +
                                                                                                      • 拖拽相对位置设置:
                                                                                                        + prev + inner + next
                                                                                                        +

                                                                                                          +
                                                                                                        • +
                                                                                                        +
                                                                                                      • +
                                                                                                      • 2、treeNode 节点数据说明

                                                                                                        +
                                                                                                          +
                                                                                                        • 对 节点数据 没有特殊要求,用户可以根据自己的需求添加自定义属性
                                                                                                        • +
                                                                                                        +
                                                                                                      • +
                                                                                                      +
                                                                                                      +
                                                                                                      + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/cn/exedit/drag_fun.html b/alive-admin/src/main/resources/static/ztree/demo/cn/exedit/drag_fun.html new file mode 100644 index 0000000..963068d --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/cn/exedit/drag_fun.html @@ -0,0 +1,180 @@ + + + + ZTREE DEMO - copyNode / moveNode + + + + + + + + + + + + +

                                                                                                      用 zTree 方法 移动 / 复制节点

                                                                                                      +
                                                                                                      [ 文件路径: exedit/drag_fun.html ]
                                                                                                      +
                                                                                                      +
                                                                                                      +
                                                                                                        +
                                                                                                        +
                                                                                                        +
                                                                                                          +
                                                                                                        • 1、copyNode / moveNode 方法操作说明

                                                                                                          +
                                                                                                            +
                                                                                                          • 利用 copyNode / moveNode 方法也可以实现 复制 / 移动 节点的目的,这里简单演示使用方法
                                                                                                          • +
                                                                                                          • 对节点进行 复制 / 剪切,试试看:
                                                                                                            +     [ 复制 ] +     [ 剪切 ] +     [ 粘贴 ]

                                                                                                            +
                                                                                                          • 使用 zTreeObj.copyNode / moveNode 方法,详细请参见 API 文档中的相关内容
                                                                                                          • +
                                                                                                          +
                                                                                                        • +
                                                                                                        • 2、setting 配置信息说明

                                                                                                          +
                                                                                                            +
                                                                                                          • 同 "拖拽 节点 基本控制"
                                                                                                          • +
                                                                                                          +
                                                                                                        • +
                                                                                                        • 3、treeNode 节点数据说明

                                                                                                          +
                                                                                                            +
                                                                                                          • 同 "拖拽 节点 基本控制"
                                                                                                          • +
                                                                                                          +
                                                                                                        • +
                                                                                                        +
                                                                                                        +
                                                                                                        + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/cn/exedit/drag_super.html b/alive-admin/src/main/resources/static/ztree/demo/cn/exedit/drag_super.html new file mode 100644 index 0000000..668746f --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/cn/exedit/drag_super.html @@ -0,0 +1,210 @@ + + + + ZTREE DEMO - beforeDrag / onDrag / beforeDrop / onDrop + + + + + + + + + + + +

                                                                                                        拖拽节点高级控制

                                                                                                        +
                                                                                                        [ 文件路径: exedit/drag_super.html ]
                                                                                                        +
                                                                                                        +
                                                                                                        +
                                                                                                          +
                                                                                                          +
                                                                                                          +
                                                                                                            +
                                                                                                          • 1、beforeDrag / onDrag
                                                                                                              beforeDrop / onDrop 事件回调函数控制

                                                                                                            +
                                                                                                              +
                                                                                                            • 此 Demo 演示合理利用配置参数实现更加灵活、更加合理的拖拽规则,操作时可以对比"基本控制"的例子
                                                                                                            • +
                                                                                                            • 此 Demo 默认 允许复制 / 移动
                                                                                                            • +
                                                                                                            • 此 Demo 中拖拽相对位置设置为 function,可以根据节点动态设定,从而可以放弃使用 beforeDrop 回调函数,拖拽时的效果会更好
                                                                                                            • +
                                                                                                            • 在对这些灵活的配置熟悉以后,相信你能够做出更加合理的拖拽规则!
                                                                                                              +      拖拽节点时自动展开父节点是否触发 callback
                                                                                                              + drag / drop log:
                                                                                                              +

                                                                                                              • +
                                                                                                              +
                                                                                                            • +
                                                                                                            • 2、setting 配置信息说明

                                                                                                              +
                                                                                                                +
                                                                                                              • 同 "拖拽 节点 基本控制"
                                                                                                              • +
                                                                                                              +
                                                                                                            • +
                                                                                                            • 3、treeNode 节点数据说明

                                                                                                              +
                                                                                                                +
                                                                                                              • 同 "拖拽 节点 基本控制"
                                                                                                              • +
                                                                                                              +
                                                                                                            • +
                                                                                                            +
                                                                                                            +
                                                                                                            + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/cn/exedit/edit.html b/alive-admin/src/main/resources/static/ztree/demo/cn/exedit/edit.html new file mode 100644 index 0000000..ed787d7 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/cn/exedit/edit.html @@ -0,0 +1,115 @@ + + + + ZTREE DEMO - edit + + + + + + + + + + + +

                                                                                                            基本 增 / 删 / 改 节点

                                                                                                            +
                                                                                                            [ 文件路径: exedit/edit.html ]
                                                                                                            +
                                                                                                            +
                                                                                                            +
                                                                                                              +
                                                                                                              +
                                                                                                              +
                                                                                                                +
                                                                                                              • 1、setting 配置信息说明

                                                                                                                +
                                                                                                                  +
                                                                                                                • 此 Demo 仅从功能上演示编辑节点的基本方法和配置参数
                                                                                                                • +
                                                                                                                • 1)、使用 编辑功能,必须设置 setting.edit 中的各个属性,详细请参见 API 文档中的相关内容
                                                                                                                • +
                                                                                                                • 2)、使用 编辑功能的事件回调函数,必须设置 setting.callback.beforeRemove / onRemove / beforeRename / onRename 等属性,详细请参见 API 文档中的相关内容
                                                                                                                • +
                                                                                                                • 3)、zTree 不提供默认的增加按钮,如需实现请利用自定义控件的方法 addHoverDom / removeHoverDom ,详细请参见 API 文档中的相关内容;另外也可以参考 "高级 增 / 删 / 改 节点" 的 Demo
                                                                                                                • +
                                                                                                                • 基本编辑按钮设置:
                                                                                                                  + 显示删除按钮 + 显示编辑按钮
                                                                                                                  + remove 按钮的 title:
                                                                                                                  + rename 按钮的 title: +

                                                                                                                    +
                                                                                                                  • +
                                                                                                                  +
                                                                                                                • +
                                                                                                                • 2、treeNode 节点数据说明

                                                                                                                  +
                                                                                                                    +
                                                                                                                  • 对 节点数据 没有特殊要求,用户可以根据自己的需求添加自定义属性
                                                                                                                  • +
                                                                                                                  +
                                                                                                                • +
                                                                                                                +
                                                                                                                +
                                                                                                                + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/cn/exedit/edit_fun.html b/alive-admin/src/main/resources/static/ztree/demo/cn/exedit/edit_fun.html new file mode 100644 index 0000000..6201683 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/cn/exedit/edit_fun.html @@ -0,0 +1,194 @@ + + + + ZTREE DEMO - addNodes / editName / removeNode / removeChildNodes + + + + + + + + + + + +

                                                                                                                用 zTree 方法 增 / 删 / 改 节点

                                                                                                                +
                                                                                                                [ 文件路径: exedit/edit_fun.html ]
                                                                                                                +
                                                                                                                +
                                                                                                                +
                                                                                                                  +
                                                                                                                  +
                                                                                                                  +
                                                                                                                    +
                                                                                                                  • 1、addNodes / editName / removeNode / removeChildNodes 方法操作说明

                                                                                                                    +
                                                                                                                      +
                                                                                                                    • 利用 addNodes / editName / removeNode / removeChildNodes 方法也可以实现 增 / 删 / 改 节点的目的,这里简单演示使用方法
                                                                                                                    • +
                                                                                                                    • cancelEditName 方法仅仅是在节点进入名称编辑状态时有效,请在必要时使用,Demo 不进行此方法的演示
                                                                                                                    • +
                                                                                                                    • 利用 setting.data.keep.parent / leaf 属性 实现了父节点、叶子节点的状态锁定
                                                                                                                    • +
                                                                                                                    • 对节点进行 增 / 删 / 改,试试看:
                                                                                                                      +      removeNode 方法是否触发 callback
                                                                                                                      +     [ 增加父节点 ] +     [ 增加叶子节点 ] +     [ 编辑名称 ]
                                                                                                                      +     [ 删除节点 ] +     [ 清空子节点 ]
                                                                                                                      + remove log:
                                                                                                                      +

                                                                                                                        +
                                                                                                                      • +
                                                                                                                      • 使用 zTreeObj.addNodes / cancelEditName / editName / removeNode / removeChildNodes 方法,详细请参见 API 文档中的相关内容
                                                                                                                      • +
                                                                                                                      +
                                                                                                                    • +
                                                                                                                    • 2、setting 配置信息说明

                                                                                                                      +
                                                                                                                        +
                                                                                                                      • 同 "基本 增 / 删 / 改 节点"
                                                                                                                      • +
                                                                                                                      • 保持 父 / 叶子 节点状态,需要设置 setting.data.keep.parent / leaf 属性,详细请参见 API 文档中的相关内容
                                                                                                                      • +
                                                                                                                      +
                                                                                                                    • +
                                                                                                                    • 3、treeNode 节点数据说明

                                                                                                                      +
                                                                                                                        +
                                                                                                                      • 同 "基本 增 / 删 / 改 节点"
                                                                                                                      • +
                                                                                                                      +
                                                                                                                    • +
                                                                                                                    +
                                                                                                                    +
                                                                                                                    + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/cn/exedit/edit_super.html b/alive-admin/src/main/resources/static/ztree/demo/cn/exedit/edit_super.html new file mode 100644 index 0000000..d7389aa --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/cn/exedit/edit_super.html @@ -0,0 +1,173 @@ + + + + ZTREE DEMO - beforeEditName / beforeRemove / onRemove / beforeRename / onRename + + + + + + + + + + + + +

                                                                                                                    高级 增 / 删 / 改 节点

                                                                                                                    +
                                                                                                                    [ 文件路径: exedit/edit_super.html ]
                                                                                                                    +
                                                                                                                    +
                                                                                                                    +
                                                                                                                      +
                                                                                                                      +
                                                                                                                      +
                                                                                                                        +
                                                                                                                      • 1、beforeEditName
                                                                                                                          beforeRemove / onRemove
                                                                                                                          beforeRename / onRename 事件回调函数控制

                                                                                                                        +
                                                                                                                          +
                                                                                                                        • 此 Demo 演示合理利用自定义控件、事件回调函数配合以增强用户体验,操作时可以对比"基本 增 / 删 / 改 节点"的 Demo
                                                                                                                        • +
                                                                                                                        • 此 Demo 实现增加节点按钮
                                                                                                                        • +
                                                                                                                        • 此 Demo 实现删除节点时进行确认
                                                                                                                        • +
                                                                                                                        • 可以利用 beforeEditName 触发自定义的编辑操作
                                                                                                                        • +
                                                                                                                        • 在对这些灵活的配置熟悉以后,相信你能够做出更加合理的编辑界面!
                                                                                                                          +      编辑名称时是否全选 text
                                                                                                                          + remove / rename log:
                                                                                                                          +

                                                                                                                            +
                                                                                                                          • +
                                                                                                                          +
                                                                                                                        • +
                                                                                                                        • 2、setting 配置信息说明

                                                                                                                          +
                                                                                                                            +
                                                                                                                          • 同 "基本 增 / 删 / 改 节点"
                                                                                                                          • +
                                                                                                                          +
                                                                                                                        • +
                                                                                                                        • 3、treeNode 节点数据说明

                                                                                                                          +
                                                                                                                            +
                                                                                                                          • 同 "基本 增 / 删 / 改 节点"
                                                                                                                          • +
                                                                                                                          +
                                                                                                                        • +
                                                                                                                        +
                                                                                                                        +
                                                                                                                        + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/cn/exedit/multiTree.html b/alive-admin/src/main/resources/static/ztree/demo/cn/exedit/multiTree.html new file mode 100644 index 0000000..a4736a2 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/cn/exedit/multiTree.html @@ -0,0 +1,94 @@ + + + + ZTREE DEMO - multiTree + + + + + + + + + + + +

                                                                                                                        多棵树之间 的 数据交互

                                                                                                                        +
                                                                                                                        [ 文件路径: exedit/multiTree.html ]
                                                                                                                        +
                                                                                                                        +
                                                                                                                        +
                                                                                                                          +
                                                                                                                        • 1、setting 配置信息说明

                                                                                                                          +
                                                                                                                            +
                                                                                                                          • zTree 对于多棵树之间拖拽的操作非常简单,只需要创建两棵可拖拽的树即可,同时可根据 各种事件回调函数 以及 zTree 的方法配合实现较复杂的操作规则,这里只是基本演示。
                                                                                                                          • +
                                                                                                                          • 关于配置信息请参考拖拽、编辑等 Demo 的详细说明
                                                                                                                          • +
                                                                                                                          +
                                                                                                                        • +
                                                                                                                        • 2、treeNode 节点数据说明

                                                                                                                          +
                                                                                                                            +
                                                                                                                          • 对 节点数据 没有特殊要求,用户可以根据自己的需求添加自定义属性
                                                                                                                          • +
                                                                                                                          +
                                                                                                                        • +
                                                                                                                        +
                                                                                                                        +
                                                                                                                        +
                                                                                                                          +
                                                                                                                          +
                                                                                                                          +
                                                                                                                            +
                                                                                                                            +
                                                                                                                            + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/cn/exhide/checkbox.html b/alive-admin/src/main/resources/static/ztree/demo/cn/exhide/checkbox.html new file mode 100644 index 0000000..bf73081 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/cn/exhide/checkbox.html @@ -0,0 +1,161 @@ + + + + ZTREE DEMO - Hide With Checkbox Mode + + + + + + + + + + + + +

                                                                                                                            配合 checkbox 的隐藏

                                                                                                                            +
                                                                                                                            [ 文件路径: exhide/checkbox.html ]
                                                                                                                            +
                                                                                                                            +
                                                                                                                            +
                                                                                                                              +
                                                                                                                              +
                                                                                                                              +
                                                                                                                                +
                                                                                                                              • 1、setting 配置信息说明

                                                                                                                                +
                                                                                                                                  +
                                                                                                                                • 使用隐藏功能,无需设置任何参数
                                                                                                                                • +
                                                                                                                                +
                                                                                                                              • +
                                                                                                                              • 2、treeNode 节点数据说明

                                                                                                                                +
                                                                                                                                  +
                                                                                                                                • 初始化时,设置 treeNode.isHidden = true; 可以让节点隐藏
                                                                                                                                • +
                                                                                                                                • 隐藏、显示节点,看看树的变化:

                                                                                                                                  + 试试看:[ 隐藏选中的节点 ] +     [ 显示全部被隐藏的节点 ]

                                                                                                                                  +

                                                                                                                                    +
                                                                                                                                  • isHidden = true 的节点共
                                                                                                                                  • +
                                                                                                                                  • 被隐藏的节点共
                                                                                                                                  • +
                                                                                                                                  • 当前被勾选的节点共
                                                                                                                                  • +
                                                                                                                                  • 当前未被勾选的节点共
                                                                                                                                  • +
                                                                                                                                  • 隐藏节点后,可以看看仍显示节点的 isFirstNode 和 isLastNode 属性
                                                                                                                                  • +

                                                                                                                                  +
                                                                                                                                • +
                                                                                                                                +
                                                                                                                              • +
                                                                                                                              • 3、其他说明

                                                                                                                                +
                                                                                                                                  +
                                                                                                                                • 隐藏节点操作,会影响 isFirstNode 和 isLastNode 属性,但是对于 getPreNode() 和 getNextNode() 方法无影响
                                                                                                                                • +
                                                                                                                                +
                                                                                                                              • +
                                                                                                                              +
                                                                                                                              +
                                                                                                                              + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/cn/exhide/common.html b/alive-admin/src/main/resources/static/ztree/demo/cn/exhide/common.html new file mode 100644 index 0000000..600d1c0 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/cn/exhide/common.html @@ -0,0 +1,126 @@ + + + + ZTREE DEMO - Hide Ordinary Node + + + + + + + + + + + +

                                                                                                                              隐藏普通节点

                                                                                                                              +
                                                                                                                              [ 文件路径: exhide/common.html ]
                                                                                                                              +
                                                                                                                              +
                                                                                                                              +
                                                                                                                                +
                                                                                                                                +
                                                                                                                                +
                                                                                                                                  +
                                                                                                                                • 1、setting 配置信息说明

                                                                                                                                  +
                                                                                                                                    +
                                                                                                                                  • 使用此功能,无需设置任何参数
                                                                                                                                  • +
                                                                                                                                  +
                                                                                                                                • +
                                                                                                                                • 2、treeNode 节点数据说明

                                                                                                                                  +
                                                                                                                                    +
                                                                                                                                  • 初始化时,设置 treeNode.isHidden = true; 可以让节点隐藏
                                                                                                                                  • +
                                                                                                                                  • 隐藏、显示节点,看看树的变化:

                                                                                                                                    + 试试看:[ 隐藏选中的节点 ] +     [ 显示全部被隐藏的节点 ]

                                                                                                                                    +

                                                                                                                                      +
                                                                                                                                    • isHidden = true 的节点共
                                                                                                                                    • +
                                                                                                                                    • 隐藏节点后,可以看看仍显示节点的 isFirstNode 和 isLastNode 属性
                                                                                                                                    • +

                                                                                                                                    +
                                                                                                                                  • +
                                                                                                                                  +
                                                                                                                                • +
                                                                                                                                • 3、其他说明

                                                                                                                                  +
                                                                                                                                    +
                                                                                                                                  • 隐藏节点操作,会影响 isFirstNode 和 isLastNode 属性,但是对于 getPreNode() 和 getNextNode() 方法无影响
                                                                                                                                  • +
                                                                                                                                  +
                                                                                                                                • +
                                                                                                                                +
                                                                                                                                +
                                                                                                                                + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/cn/exhide/radio.html b/alive-admin/src/main/resources/static/ztree/demo/cn/exhide/radio.html new file mode 100644 index 0000000..5273b73 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/cn/exhide/radio.html @@ -0,0 +1,162 @@ + + + + ZTREE DEMO - Hide With Radio Mode + + + + + + + + + + + + +

                                                                                                                                配合 radio 的隐藏

                                                                                                                                +
                                                                                                                                [ 文件路径: exhide/radio.html ]
                                                                                                                                +
                                                                                                                                +
                                                                                                                                +
                                                                                                                                  +
                                                                                                                                  +
                                                                                                                                  +
                                                                                                                                    +
                                                                                                                                  • 1、setting 配置信息说明

                                                                                                                                    +
                                                                                                                                      +
                                                                                                                                    • 使用隐藏功能,无需设置任何参数
                                                                                                                                    • +
                                                                                                                                    +
                                                                                                                                  • +
                                                                                                                                  • 2、treeNode 节点数据说明

                                                                                                                                    +
                                                                                                                                      +
                                                                                                                                    • 初始化时,设置 treeNode.isHidden = true; 可以让节点隐藏
                                                                                                                                    • +
                                                                                                                                    • 隐藏、显示节点,看看树的变化:

                                                                                                                                      + 试试看:[ 隐藏选中的节点 ] +     [ 显示全部被隐藏的节点 ]

                                                                                                                                      +

                                                                                                                                        +
                                                                                                                                      • isHidden = true 的节点共
                                                                                                                                      • +
                                                                                                                                      • 被隐藏的节点共
                                                                                                                                      • +
                                                                                                                                      • 当前被勾选的节点共
                                                                                                                                      • +
                                                                                                                                      • 当前未被勾选的节点共
                                                                                                                                      • +
                                                                                                                                      • 隐藏节点后,可以看看仍显示节点的 isFirstNode 和 isLastNode 属性
                                                                                                                                      • +

                                                                                                                                      +
                                                                                                                                    • +
                                                                                                                                    +
                                                                                                                                  • +
                                                                                                                                  • 3、其他说明

                                                                                                                                    +
                                                                                                                                      +
                                                                                                                                    • 隐藏节点操作,会影响 isFirstNode 和 isLastNode 属性,但是对于 getPreNode() 和 getNextNode() 方法无影响
                                                                                                                                    • +
                                                                                                                                    +
                                                                                                                                  • +
                                                                                                                                  +
                                                                                                                                  +
                                                                                                                                  + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/cn/index.html b/alive-admin/src/main/resources/static/ztree/demo/cn/index.html new file mode 100644 index 0000000..850d701 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/cn/index.html @@ -0,0 +1,158 @@ + + + + ZTREE DEMO + + + + + + + + + + + + + + +
                                                                                                                                  +
                                                                                                                                    +
                                                                                                                                    + + + diff --git a/alive-admin/src/main/resources/static/ztree/demo/cn/super/asyncForAll.html b/alive-admin/src/main/resources/static/ztree/demo/cn/super/asyncForAll.html new file mode 100644 index 0000000..d0a400c --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/cn/super/asyncForAll.html @@ -0,0 +1,190 @@ + + + + ZTREE DEMO - async for All + + + + + + + + + + +

                                                                                                                                    异步加载模式下全部展开

                                                                                                                                    +
                                                                                                                                    [ 文件路径: super/asyncForAll.html ]
                                                                                                                                    +
                                                                                                                                    +
                                                                                                                                    +
                                                                                                                                      +
                                                                                                                                      +
                                                                                                                                      +
                                                                                                                                        +
                                                                                                                                      • 实现方法说明

                                                                                                                                        +
                                                                                                                                          +
                                                                                                                                        • 利用 onAsyncSuccess / onAsyncError 回调函数 和 reAsyncChildNodes 或 expandNode 方法可以实现全部功能。
                                                                                                                                        • +
                                                                                                                                        • 如果父节点数量很大,请注意利用延时进行控制,避免异步进程过多。
                                                                                                                                        • +
                                                                                                                                        • 建议:演示时请利用调试工具查看 network 的 ajax 加载过程。
                                                                                                                                        • +
                                                                                                                                        • 演示操作 +

                                                                                                                                          + [ 全部展开 ]        + [ 后台自动全部加载 ]

                                                                                                                                          + [ Reset zTree ]

                                                                                                                                          +

                                                                                                                                          +
                                                                                                                                        • +
                                                                                                                                        +
                                                                                                                                      • +
                                                                                                                                      +
                                                                                                                                      +
                                                                                                                                      + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/cn/super/checkbox_radio.html b/alive-admin/src/main/resources/static/ztree/demo/cn/super/checkbox_radio.html new file mode 100644 index 0000000..66a3b03 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/cn/super/checkbox_radio.html @@ -0,0 +1,116 @@ + + + + ZTREE DEMO - checkbox & radio + + + + + + + + + + + +

                                                                                                                                      checkbox / radio 共存

                                                                                                                                      +
                                                                                                                                      [ 文件路径: super/checkbox_radio.html ]
                                                                                                                                      +
                                                                                                                                      +
                                                                                                                                      +
                                                                                                                                        +
                                                                                                                                        +
                                                                                                                                        +
                                                                                                                                          +
                                                                                                                                        • 实现方法说明

                                                                                                                                          +
                                                                                                                                            +
                                                                                                                                          • zTree 默认的 checkbox 和 radio 是无法共存的,但可以利用 自定义控件 的功能实现此需求,具体需求可以参考 "添加 自定义控件" 的详细说明
                                                                                                                                          • +
                                                                                                                                          • 对于 checkbox / radio 的联动规则,请根据需求制定自己的规则
                                                                                                                                          • +
                                                                                                                                          +
                                                                                                                                        • +
                                                                                                                                        +
                                                                                                                                        +
                                                                                                                                        + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/cn/super/diydom.html b/alive-admin/src/main/resources/static/ztree/demo/cn/super/diydom.html new file mode 100644 index 0000000..1980ff9 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/cn/super/diydom.html @@ -0,0 +1,177 @@ + + + + ZTREE DEMO - addHoverDom / removeHoverDom / addDiyDom + + + + + + + + + + + + +

                                                                                                                                        添加自定义控件

                                                                                                                                        +
                                                                                                                                        [ 文件路径: super/diydom.html ]
                                                                                                                                        +
                                                                                                                                        +
                                                                                                                                        +
                                                                                                                                          +
                                                                                                                                          +
                                                                                                                                          +
                                                                                                                                            +
                                                                                                                                          • 1、实现方法说明

                                                                                                                                            +
                                                                                                                                              +
                                                                                                                                            • 利用 setting.view.addHoverDom / removeHoverDom / addDiyDom 这几个参数的配置可以很容易的实现自定义控件的功能
                                                                                                                                            • +
                                                                                                                                            • 添加自定义控件,请务必掌握 zTree 节点对象的命名规则,以保证正常添加 DOM 控件
                                                                                                                                            • +
                                                                                                                                            • 如果添加标准的 select / checkbox / radio 等,请注意适当调整 zTree 的布局 css,保证 zTree 能正常显示
                                                                                                                                            • +
                                                                                                                                            +
                                                                                                                                          • +
                                                                                                                                          • 2、setting 配置信息说明

                                                                                                                                            +
                                                                                                                                              +
                                                                                                                                            • 使用 setting.view.addHoverDom / removeHoverDom / addDiyDom 属性,详细请参见 API 文档中的相关内容
                                                                                                                                            • +
                                                                                                                                            +
                                                                                                                                          • +
                                                                                                                                          • 3、treeNode 节点数据说明

                                                                                                                                            +
                                                                                                                                              +
                                                                                                                                            • 对 节点数据 没有特殊要求,用户可以根据自己的需求添加自定义属性
                                                                                                                                            • +
                                                                                                                                            +
                                                                                                                                          • +
                                                                                                                                          +
                                                                                                                                          +
                                                                                                                                          + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/cn/super/dragWithOther.html b/alive-admin/src/main/resources/static/ztree/demo/cn/super/dragWithOther.html new file mode 100644 index 0000000..04a5b7c --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/cn/super/dragWithOther.html @@ -0,0 +1,235 @@ + + + + ZTREE DEMO - drag with other DOM + + + + + + + + + + + + +

                                                                                                                                          与其他 DOM 拖拽互动

                                                                                                                                          +
                                                                                                                                          [ 文件路径: super/dragWithOther.html ]
                                                                                                                                          +
                                                                                                                                          +
                                                                                                                                          +
                                                                                                                                            +
                                                                                                                                            +
                                                                                                                                            +
                                                                                                                                              +
                                                                                                                                            • 实现方法说明

                                                                                                                                              +
                                                                                                                                                +
                                                                                                                                              • zTree v3.2 版本修正了 onDrag/onDrop 中的 event 对象,因此可以较容易的控制将节点拖拽到其他 DOM
                                                                                                                                              • +
                                                                                                                                              • 将其他 DOM 拖拽到 zTree 需要自己制作相关的拖拽代码
                                                                                                                                              • +
                                                                                                                                              • 这仅仅是一个最简单的演示,如果需要更炫的效果,需要制作更复杂的代码
                                                                                                                                              • +
                                                                                                                                              +
                                                                                                                                            • +
                                                                                                                                            • 请拖拽下面内容到 树节点上

                                                                                                                                              +
                                                                                                                                              +
                                                                                                                                              大树小草花朵
                                                                                                                                              +
                                                                                                                                              +
                                                                                                                                              老虎狗熊狮子
                                                                                                                                              +
                                                                                                                                              + 也可以把二级节点拖拽到以上图层 +
                                                                                                                                            • +
                                                                                                                                            +
                                                                                                                                            +
                                                                                                                                            + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/cn/super/left_menu.html b/alive-admin/src/main/resources/static/ztree/demo/cn/super/left_menu.html new file mode 100644 index 0000000..4b9941a --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/cn/super/left_menu.html @@ -0,0 +1,152 @@ + + + + ZTREE DEMO - left_menu + + + + + + + + + + + +

                                                                                                                                            左侧菜单

                                                                                                                                            +
                                                                                                                                            [ 文件路径: super/left_menu.html ]
                                                                                                                                            +
                                                                                                                                            +
                                                                                                                                            +
                                                                                                                                              +
                                                                                                                                              +
                                                                                                                                              +
                                                                                                                                                +
                                                                                                                                              • 实现方法说明

                                                                                                                                                +
                                                                                                                                                  +
                                                                                                                                                • 在 “Demo 演示”中的左侧菜单就是用 zTree 实现的,主要是靠 css 样式负责排版,利用 setting 中的配置进行功能制作,本 Demo 对实现 左侧菜单进行简单的介绍,你也可以通过查看 “Demo 演示”页面的源码深入了解。
                                                                                                                                                • +
                                                                                                                                                • 1、关于 css 完全可以根据自己的需要进行个性化调整,例如:此 Demo 的菜单样式 就 与 “Demo 演示”页面的不一样,仅供对比参考
                                                                                                                                                • +
                                                                                                                                                • 2、主要用到的配置有:
                                                                                                                                                  +     setting.view.showIcon / showLine / selectedMulti / dblClickExpand
                                                                                                                                                  +     setting.callback.onNodeCreated / beforeClick / onClick +
                                                                                                                                                • +
                                                                                                                                                • 3、是否需要限制单一路径展开,完全由你的需求而定,实现代码可参考 "保持展开单一路径"
                                                                                                                                                • +
                                                                                                                                                • 4、其他辅助规则,请根据实际情况自行编写
                                                                                                                                                • +
                                                                                                                                                +
                                                                                                                                              • +
                                                                                                                                              +
                                                                                                                                              +
                                                                                                                                              + + diff --git a/alive-admin/src/main/resources/static/ztree/demo/cn/super/left_menuForOutLook.gif b/alive-admin/src/main/resources/static/ztree/demo/cn/super/left_menuForOutLook.gif new file mode 100644 index 0000000..c252f0f Binary files /dev/null and b/alive-admin/src/main/resources/static/ztree/demo/cn/super/left_menuForOutLook.gif differ diff --git a/alive-admin/src/main/resources/static/ztree/demo/cn/super/left_menuForOutLook.html b/alive-admin/src/main/resources/static/ztree/demo/cn/super/left_menuForOutLook.html new file mode 100644 index 0000000..bf6eb30 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/cn/super/left_menuForOutLook.html @@ -0,0 +1,136 @@ + + + + ZTREE DEMO - left_menu for Outlook + + + + + + + + + + +

                                                                                                                                              OutLook 样式的左侧菜单

                                                                                                                                              +
                                                                                                                                              [ 文件路径: super/left_menuForOutLook.html ]
                                                                                                                                              +
                                                                                                                                              +
                                                                                                                                              +
                                                                                                                                                +
                                                                                                                                                +
                                                                                                                                                +
                                                                                                                                                  +
                                                                                                                                                • 实现方法说明

                                                                                                                                                  +
                                                                                                                                                    +
                                                                                                                                                  • 帮朋友用 zTree 实现了一个貌似 Outlook.com 的菜单,特拿出来分享给大家
                                                                                                                                                  • +
                                                                                                                                                  • 1、请注意本页面源码中的 css 部分
                                                                                                                                                  • +
                                                                                                                                                  • 2、请查看源码中 js 的使用,特别是利用 addDiyDom 回调将 展开按钮 转移到 <a> 标签内
                                                                                                                                                  • +
                                                                                                                                                  • 3、利用添加 zTree 的 class 实现展开按钮的隐藏、显示
                                                                                                                                                  • +
                                                                                                                                                  • 4、其他辅助规则,请根据实际情况自行编写
                                                                                                                                                  • +
                                                                                                                                                  • 5、当前规则说明:
                                                                                                                                                    +   单击根节点可以展开、折叠;
                                                                                                                                                    +   非根节点只有点击 箭头 图标才可以展开、折叠;
                                                                                                                                                    +
                                                                                                                                                  • +
                                                                                                                                                  +
                                                                                                                                                • +
                                                                                                                                                +
                                                                                                                                                +
                                                                                                                                                + + diff --git a/alive-admin/src/main/resources/static/ztree/demo/cn/super/left_menuForOutLook.png b/alive-admin/src/main/resources/static/ztree/demo/cn/super/left_menuForOutLook.png new file mode 100644 index 0000000..36e8acf Binary files /dev/null and b/alive-admin/src/main/resources/static/ztree/demo/cn/super/left_menuForOutLook.png differ diff --git a/alive-admin/src/main/resources/static/ztree/demo/cn/super/oneclick.html b/alive-admin/src/main/resources/static/ztree/demo/cn/super/oneclick.html new file mode 100644 index 0000000..93e32a4 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/cn/super/oneclick.html @@ -0,0 +1,87 @@ + + + + ZTREE DEMO - one click + + + + + + + + + + + +

                                                                                                                                                单击展开/折叠节点

                                                                                                                                                +
                                                                                                                                                [ 文件路径: super/oneclick.html ]
                                                                                                                                                +
                                                                                                                                                +
                                                                                                                                                +
                                                                                                                                                  +
                                                                                                                                                  +
                                                                                                                                                  +
                                                                                                                                                    +
                                                                                                                                                  • 实现方法说明

                                                                                                                                                    +
                                                                                                                                                      +
                                                                                                                                                    • zTree 默认不提供单击展开节点的功能,但可以利用 onClick 事件回调函数轻松实现此功能
                                                                                                                                                    • +
                                                                                                                                                    • 为了避免与双击功能冲突,建议关闭双击展开节点的功能,请设置 setting.view.dblClickExpand = false
                                                                                                                                                    • +
                                                                                                                                                    • 可以将所有的 +/- 开关隐藏,请查看本页面源码,查看 css 设置
                                                                                                                                                    • +
                                                                                                                                                    • 由于 +/- 开关与 节点连接线是配套的,所以如果不显示 +/- 开关的话,那么请设置 setting.view.showLine = false 隐藏连接线
                                                                                                                                                    • +
                                                                                                                                                    +
                                                                                                                                                  • +
                                                                                                                                                  +
                                                                                                                                                  +
                                                                                                                                                  + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/cn/super/oneroot.html b/alive-admin/src/main/resources/static/ztree/demo/cn/super/oneroot.html new file mode 100644 index 0000000..6624e7b --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/cn/super/oneroot.html @@ -0,0 +1,79 @@ + + + + ZTREE DEMO - one root + + + + + + + + + + + +

                                                                                                                                                  冻结根节点

                                                                                                                                                  +
                                                                                                                                                  [ 文件路径: super/oneroot.html ]
                                                                                                                                                  +
                                                                                                                                                  +
                                                                                                                                                  +
                                                                                                                                                    +
                                                                                                                                                    +
                                                                                                                                                    +
                                                                                                                                                      +
                                                                                                                                                    • 实现方法说明

                                                                                                                                                      +
                                                                                                                                                        +
                                                                                                                                                      • 对于这种只有一个根节点,且不显示 +/- 开关的需求,需要利用 css、setting 配合使用
                                                                                                                                                      • +
                                                                                                                                                      • zTree v3.x 可以针对指定的 level,进行样式设定,请查看本页面源码,查看 css 设置
                                                                                                                                                      • +
                                                                                                                                                      • 设置 setting.view.dblClickExpand 指向 Function,可以只针对根节点关闭双击展开的操作
                                                                                                                                                      • +
                                                                                                                                                      +
                                                                                                                                                    • +
                                                                                                                                                    +
                                                                                                                                                    +
                                                                                                                                                    + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/cn/super/rightClickMenu.html b/alive-admin/src/main/resources/static/ztree/demo/cn/super/rightClickMenu.html new file mode 100644 index 0000000..9e5b404 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/cn/super/rightClickMenu.html @@ -0,0 +1,168 @@ + + + + ZTREE DEMO - select menu + + + + + + + + + + + + +

                                                                                                                                                    右键菜单的实现

                                                                                                                                                    +
                                                                                                                                                    [ 文件路径: super/rightClickMenu.html ]
                                                                                                                                                    +
                                                                                                                                                    +
                                                                                                                                                    +
                                                                                                                                                      +
                                                                                                                                                      +
                                                                                                                                                      +
                                                                                                                                                        +
                                                                                                                                                      • 实现方法说明

                                                                                                                                                        +
                                                                                                                                                          +
                                                                                                                                                        • 利用 beforeRightClick / onRightClick 事件回调函数简单实现的右键菜单
                                                                                                                                                        • +
                                                                                                                                                        • Demo 中的菜单比较简陋,你完全可以配合其他自定义样式的菜单图层混合使用
                                                                                                                                                        • +
                                                                                                                                                        +
                                                                                                                                                      • +
                                                                                                                                                      +
                                                                                                                                                      +
                                                                                                                                                      +
                                                                                                                                                      +
                                                                                                                                                        +
                                                                                                                                                      • 增加节点
                                                                                                                                                      • +
                                                                                                                                                      • 删除节点
                                                                                                                                                      • +
                                                                                                                                                      • Check节点
                                                                                                                                                      • +
                                                                                                                                                      • unCheck节点
                                                                                                                                                      • +
                                                                                                                                                      • 恢复zTree
                                                                                                                                                      • +
                                                                                                                                                      +
                                                                                                                                                      + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/cn/super/select_menu.html b/alive-admin/src/main/resources/static/ztree/demo/cn/super/select_menu.html new file mode 100644 index 0000000..67787c6 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/cn/super/select_menu.html @@ -0,0 +1,124 @@ + + + + ZTREE DEMO - select menu + + + + + + + + + + + +

                                                                                                                                                      下拉菜单

                                                                                                                                                      +
                                                                                                                                                      [ 文件路径: super/select_menu.html ]
                                                                                                                                                      +
                                                                                                                                                      +
                                                                                                                                                      +
                                                                                                                                                        +
                                                                                                                                                      •   选择城市时,按下 Ctrl 键可以进行多选
                                                                                                                                                      • +
                                                                                                                                                      •   城市: +  选择
                                                                                                                                                      • +
                                                                                                                                                      +
                                                                                                                                                      +
                                                                                                                                                      +
                                                                                                                                                        +
                                                                                                                                                      • 实现方法说明

                                                                                                                                                        +
                                                                                                                                                          +
                                                                                                                                                        • 用 zTree 实现这种下拉菜单,应该说是比较容易的,你只需要控制 zTree 所在容器的隐藏/显示,以及位置即可。
                                                                                                                                                        • +
                                                                                                                                                        • zTree v3.x 实现了多点选中功能,因此对于需要多选的下拉菜单也易如反掌。
                                                                                                                                                        • +
                                                                                                                                                        • 利用 setting 的各项配置参数,完全可以满足大部分的功能需求。
                                                                                                                                                        • +
                                                                                                                                                        +
                                                                                                                                                      • +
                                                                                                                                                      +
                                                                                                                                                      +
                                                                                                                                                      + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/cn/super/select_menu_checkbox.html b/alive-admin/src/main/resources/static/ztree/demo/cn/super/select_menu_checkbox.html new file mode 100644 index 0000000..529b01d --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/cn/super/select_menu_checkbox.html @@ -0,0 +1,126 @@ + + + + ZTREE DEMO - checkbox select menu + + + + + + + + + + + + +

                                                                                                                                                      带 checkbox 的多选下拉菜单 -- zTree

                                                                                                                                                      +
                                                                                                                                                      [ 文件路径: super/select_menu_checkbox.html ]
                                                                                                                                                      +
                                                                                                                                                      +
                                                                                                                                                      +
                                                                                                                                                        +
                                                                                                                                                      •   勾选 checkbox 或者 点击节点 进行选择
                                                                                                                                                      • +
                                                                                                                                                      •   Test: +  select
                                                                                                                                                      • +
                                                                                                                                                      +
                                                                                                                                                      +
                                                                                                                                                      +
                                                                                                                                                        +
                                                                                                                                                      • 实现方法说明

                                                                                                                                                        +
                                                                                                                                                          +
                                                                                                                                                        • 用 checkbox 也可以轻松实现多选的下拉菜单
                                                                                                                                                        • +
                                                                                                                                                        • 此 Demo 主要用于 和 其他下拉菜单进行对比
                                                                                                                                                        • +
                                                                                                                                                        +
                                                                                                                                                      • +
                                                                                                                                                      +
                                                                                                                                                      +
                                                                                                                                                      + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/cn/super/select_menu_radio.html b/alive-admin/src/main/resources/static/ztree/demo/cn/super/select_menu_radio.html new file mode 100644 index 0000000..cc1d439 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/cn/super/select_menu_radio.html @@ -0,0 +1,127 @@ + + + + ZTREE DEMO - radio select menu + + + + + + + + + + + + +

                                                                                                                                                      带 radio 的单选下拉菜单 -- zTree

                                                                                                                                                      +
                                                                                                                                                      [ 文件路径: super/select_menu_radio.html ]
                                                                                                                                                      +
                                                                                                                                                      +
                                                                                                                                                      +
                                                                                                                                                        +
                                                                                                                                                      •   勾选 radio 或者 点击节点 进行选择
                                                                                                                                                      • +
                                                                                                                                                      •   Test: +  select
                                                                                                                                                      • +
                                                                                                                                                      +
                                                                                                                                                      +
                                                                                                                                                      +
                                                                                                                                                        +
                                                                                                                                                      • 实现方法说明

                                                                                                                                                        +
                                                                                                                                                          +
                                                                                                                                                        • 用 radio 也可以轻松实现单选的下拉菜单
                                                                                                                                                        • +
                                                                                                                                                        • 单选其实没有必要使用 radio, 此 Demo 主要用于 和 其他下拉菜单进行对比
                                                                                                                                                        • +
                                                                                                                                                        +
                                                                                                                                                      • +
                                                                                                                                                      +
                                                                                                                                                      +
                                                                                                                                                      + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/cn/super/singlepath.html b/alive-admin/src/main/resources/static/ztree/demo/cn/super/singlepath.html new file mode 100644 index 0000000..f2a49d9 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/cn/super/singlepath.html @@ -0,0 +1,172 @@ + + + + ZTREE DEMO - single path + + + + + + + + + + + +

                                                                                                                                                      保持展开单一路径

                                                                                                                                                      +
                                                                                                                                                      [ 文件路径: super/singlepath.html ]
                                                                                                                                                      +
                                                                                                                                                      +
                                                                                                                                                      +
                                                                                                                                                        +
                                                                                                                                                        +
                                                                                                                                                        +
                                                                                                                                                          +
                                                                                                                                                        • 实现方法说明

                                                                                                                                                          +
                                                                                                                                                            +
                                                                                                                                                          • 此 Demo 是在 "单击展开/折叠节点" 基础上改造而来,树节点保持始终只展开一条路径。
                                                                                                                                                          • +
                                                                                                                                                          • 利用 setting.callback.beforeExpand / onExpand 事件回调函数实现展开规则
                                                                                                                                                          • +
                                                                                                                                                          +
                                                                                                                                                        • +
                                                                                                                                                        +
                                                                                                                                                        +
                                                                                                                                                        + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/en/asyncData/getNodes.php b/alive-admin/src/main/resources/static/ztree/demo/en/asyncData/getNodes.php new file mode 100644 index 0000000..3294d9a --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/en/asyncData/getNodes.php @@ -0,0 +1,38 @@ + +[] diff --git a/alive-admin/src/main/resources/static/ztree/demo/en/asyncData/getNodesForBigData.php b/alive-admin/src/main/resources/static/ztree/demo/en/asyncData/getNodesForBigData.php new file mode 100644 index 0000000..91d002e --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/en/asyncData/getNodesForBigData.php @@ -0,0 +1,24 @@ + +[] \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/en/bigdata/common.html b/alive-admin/src/main/resources/static/ztree/demo/en/bigdata/common.html new file mode 100644 index 0000000..6e1728d --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/en/bigdata/common.html @@ -0,0 +1,190 @@ + + + + ZTREE DEMO - big data common + + + + + + + + + + + +

                                                                                                                                                        One-time Large Data Loading

                                                                                                                                                        +
                                                                                                                                                        [ File Path: bigdata/common.html ]
                                                                                                                                                        +
                                                                                                                                                        +
                                                                                                                                                        +
                                                                                                                                                          +
                                                                                                                                                        • Adjust the total number of nodes to the test load speed: +
                                                                                                                                                          +
                                                                                                                                                          5000
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          + checkbox     + [ Initialize zTree ] +
                                                                                                                                                          +
                                                                                                                                                        • +
                                                                                                                                                        +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                            +
                                                                                                                                                          • 1, Explanation of large data load

                                                                                                                                                            +
                                                                                                                                                              +
                                                                                                                                                            • 1) zTree v3.x optimized for one-time large data loading capacity, using a lazy loading technique, which does not expand the node does not create child nodes of the DOM.
                                                                                                                                                            • +
                                                                                                                                                            • 2) If a maximum of 100 nodes each, but a total number of several thousand or even tens of thousands of nodes, and the parent node is collapsed by default to optimize the most obvious effect, very fast.
                                                                                                                                                            • +
                                                                                                                                                            • 3) For the next level there are thousands of sub-node case, the optimization of lazy loading is invalid, proposal to consider asynchronous page loading.
                                                                                                                                                            • +
                                                                                                                                                            • 4) if you set the data to all the parent nodes are expanded, the optimization of lazy loading is invalid, proposal to not expand all parent node when you initialize zTree.
                                                                                                                                                            • +
                                                                                                                                                            • 5) set the display checkbox / radio will affect some of the performance.
                                                                                                                                                            • +
                                                                                                                                                            • 6) DOM generated using addDiyDom function will affect the speed, the number of nodes determines the number of impact situations.
                                                                                                                                                            • +
                                                                                                                                                            • 7) Using 'onNodeCreated' callback function to manipulate nodes object will affect the speed, the degree of influence determined by the number of nodes.
                                                                                                                                                            • +
                                                                                                                                                            +
                                                                                                                                                          • +
                                                                                                                                                          • 2, Explanation of setting

                                                                                                                                                            +
                                                                                                                                                              +
                                                                                                                                                            • No special configuration.
                                                                                                                                                            • +
                                                                                                                                                            +
                                                                                                                                                          • +
                                                                                                                                                          • 3, Explanation of treeNode

                                                                                                                                                            +
                                                                                                                                                              +
                                                                                                                                                            • No special requirements on the node data, the user can add custom attributes.
                                                                                                                                                            • +
                                                                                                                                                            +
                                                                                                                                                          • +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/en/bigdata/diy_async.html b/alive-admin/src/main/resources/static/ztree/demo/en/bigdata/diy_async.html new file mode 100644 index 0000000..f8b90e2 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/en/bigdata/diy_async.html @@ -0,0 +1,157 @@ + + + + ZTREE DEMO - big data async + + + + + + + + + + + +

                                                                                                                                                          Loading Data in Batches

                                                                                                                                                          +
                                                                                                                                                          [ File Path: bigdata/diy_async.html ]
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                            +
                                                                                                                                                          •     Demo for testing load data in batches, each node needs to re-start to load.
                                                                                                                                                          • +
                                                                                                                                                          +
                                                                                                                                                            +
                                                                                                                                                            +
                                                                                                                                                            +
                                                                                                                                                              +
                                                                                                                                                            • 1, Explanation of large data load

                                                                                                                                                              +
                                                                                                                                                                +
                                                                                                                                                              • 1) If has nodes for as many as thousands in one level, lazy loading is invalid, this demo shows how to load data in batches.
                                                                                                                                                              • +
                                                                                                                                                              • 2) This method applies to thousands of nodes must all display needs.
                                                                                                                                                              • +
                                                                                                                                                              • 3) This method doesn't solve the problem of slow loading, it will only make the final result appear more slowly, but can be limited to avoid browser suspended animation, and more nodes displayed slower.
                                                                                                                                                              • +
                                                                                                                                                              • 4) For at least several thousand nodes in one level case, another solution is to: pagination loading.
                                                                                                                                                                + async load log:
                                                                                                                                                                +
                                                                                                                                                                • +
                                                                                                                                                                +
                                                                                                                                                              • +
                                                                                                                                                              • 2, Explanation of setting

                                                                                                                                                                +
                                                                                                                                                                  +
                                                                                                                                                                • Need to set the parameters in setting.async
                                                                                                                                                                • +
                                                                                                                                                                • Advised to turn off animation effects: setting.view.expandSpeed = "";
                                                                                                                                                                • +
                                                                                                                                                                • No other special configuration, the user can set their own requirements.
                                                                                                                                                                • +
                                                                                                                                                                +
                                                                                                                                                              • +
                                                                                                                                                              • 3, Explanation of treeNode

                                                                                                                                                                +
                                                                                                                                                                  +
                                                                                                                                                                • No special requirements on the node data, the user can add custom attributes.
                                                                                                                                                                • +
                                                                                                                                                                +
                                                                                                                                                              • +
                                                                                                                                                              +
                                                                                                                                                              +
                                                                                                                                                              + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/en/bigdata/page.html b/alive-admin/src/main/resources/static/ztree/demo/en/bigdata/page.html new file mode 100644 index 0000000..f8a4963 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/en/bigdata/page.html @@ -0,0 +1,150 @@ + + + + ZTREE DEMO - big data page + + + + + + + + + + + + +

                                                                                                                                                              Loading Data By Pagination

                                                                                                                                                              +
                                                                                                                                                              [ File Path: bigdata/page.html ]
                                                                                                                                                              +
                                                                                                                                                              +
                                                                                                                                                              +
                                                                                                                                                                +
                                                                                                                                                                +
                                                                                                                                                                +
                                                                                                                                                                  +
                                                                                                                                                                • 1, Explanation of large data load

                                                                                                                                                                  +
                                                                                                                                                                    +
                                                                                                                                                                  • 1) Pagination can be an effective solution to the large number of child nodes of the situation.
                                                                                                                                                                  • +
                                                                                                                                                                  • 2) Using custom method to display the pagination button.
                                                                                                                                                                  • +
                                                                                                                                                                  • 3) Pagination lead to the association of checkbox can not be achieved, only correction after show each page . Because of the time limitation, Demo does not deal with association of checkbox.
                                                                                                                                                                  • +
                                                                                                                                                                  • 4) The use of pagination, you can only get the current page node data from zTree. You can save the data after each page loading as the cache, according to the demand to determine the specific methods.
                                                                                                                                                                  • + +
                                                                                                                                                                  • 2, Explanation of setting

                                                                                                                                                                    +
                                                                                                                                                                      +
                                                                                                                                                                    • Need to set the parameters in setting.async
                                                                                                                                                                    • +
                                                                                                                                                                    • No other special configuration, the user can set their own requirements.
                                                                                                                                                                    • +
                                                                                                                                                                    +
                                                                                                                                                                  • +
                                                                                                                                                                  • 3, Explanation of treeNode

                                                                                                                                                                    +
                                                                                                                                                                      +
                                                                                                                                                                    • No special requirements on the node data, the user can add custom attributes.
                                                                                                                                                                    • +
                                                                                                                                                                    +
                                                                                                                                                                  • +
                                                                                                                                                                  +
                                                                                                                                                                +
                                                                                                                                                                + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/en/core/async.html b/alive-admin/src/main/resources/static/ztree/demo/en/core/async.html new file mode 100644 index 0000000..9668fe6 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/en/core/async.html @@ -0,0 +1,70 @@ + + + + ZTREE DEMO - Async + + + + + + + + + + +

                                                                                                                                                                Dynamic Tree with Ajax

                                                                                                                                                                +
                                                                                                                                                                [ File Path: core/async.html ]
                                                                                                                                                                +
                                                                                                                                                                +
                                                                                                                                                                +
                                                                                                                                                                  +
                                                                                                                                                                  +
                                                                                                                                                                  +
                                                                                                                                                                    +
                                                                                                                                                                  • 1, Explanation of setting

                                                                                                                                                                    +
                                                                                                                                                                      +
                                                                                                                                                                    • For create dynamic tree with ajax, you need to set attributes in setting.async, see the API documentation for more related contents.
                                                                                                                                                                    • +
                                                                                                                                                                    +
                                                                                                                                                                  • +
                                                                                                                                                                  • 2, Explanation of treeNode

                                                                                                                                                                    +
                                                                                                                                                                      +
                                                                                                                                                                    • Dynamic tree with ajax doesn't need to make special treeNode node data, if use simple JSON data model, please set the attributes in setting.data.simple.
                                                                                                                                                                    • +
                                                                                                                                                                    • If ajax only to return node data in single level, you don't need to use simple JSON data model.
                                                                                                                                                                    • +
                                                                                                                                                                    +
                                                                                                                                                                  • +
                                                                                                                                                                  • 3、Other explanation

                                                                                                                                                                    +
                                                                                                                                                                      +
                                                                                                                                                                    • Monitoring autoParam and otherParam use firebug or the developer tools in browser.
                                                                                                                                                                    • +
                                                                                                                                                                    • This Demo only loading 4 level nodes (level = 3).
                                                                                                                                                                    • +
                                                                                                                                                                    • This Demo use 'dataFilter' to modify the name of the node.
                                                                                                                                                                    • +
                                                                                                                                                                    +
                                                                                                                                                                  • +
                                                                                                                                                                  +
                                                                                                                                                                  +
                                                                                                                                                                  + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/en/core/async_fun.html b/alive-admin/src/main/resources/static/ztree/demo/en/core/async_fun.html new file mode 100644 index 0000000..37aea06 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/en/core/async_fun.html @@ -0,0 +1,144 @@ + + + + ZTREE DEMO - reAsyncChildNodes + + + + + + + + + + + +

                                                                                                                                                                  Dynamic Tree - zTree methods

                                                                                                                                                                  +
                                                                                                                                                                  [ File Path: core/async_fun.html ]
                                                                                                                                                                  +
                                                                                                                                                                  +
                                                                                                                                                                  +
                                                                                                                                                                    +
                                                                                                                                                                    +
                                                                                                                                                                    +
                                                                                                                                                                      +
                                                                                                                                                                    • 1, Explanation of reAsyncChildNodes

                                                                                                                                                                      +
                                                                                                                                                                        +
                                                                                                                                                                      • How to use zTreeObj.reAsyncChildNodes method, please see the API documentation.
                                                                                                                                                                      • +
                                                                                                                                                                      • This Demo can only select one parent node
                                                                                                                                                                        + Try: [ reload ]    [ append ]

                                                                                                                                                                        +
                                                                                                                                                                      • +
                                                                                                                                                                      • 'isSilent' parameter is only for the collapsed state of the parent node.
                                                                                                                                                                        + Try: [ Quietly reloaded ]    [ Quietly append ]
                                                                                                                                                                        + async log:
                                                                                                                                                                        +

                                                                                                                                                                          +
                                                                                                                                                                        • +
                                                                                                                                                                        +
                                                                                                                                                                      • +
                                                                                                                                                                      • 2, Explanation of setting

                                                                                                                                                                        +
                                                                                                                                                                          +
                                                                                                                                                                        • For useing reAsyncChildNodes method, you need to set attributes in setting.async, see the API documentation for more related contents.
                                                                                                                                                                        • +
                                                                                                                                                                        +
                                                                                                                                                                      • +
                                                                                                                                                                      • 3, Explanation of treeNode

                                                                                                                                                                        +
                                                                                                                                                                          +
                                                                                                                                                                        • Same as 'Dynamic Tree with Ajax'
                                                                                                                                                                        • +
                                                                                                                                                                        +
                                                                                                                                                                      • +
                                                                                                                                                                      • 4、Other explanation

                                                                                                                                                                        +
                                                                                                                                                                          +
                                                                                                                                                                        • Same as 'Dynamic Tree with Ajax'
                                                                                                                                                                        • +
                                                                                                                                                                        +
                                                                                                                                                                      • +
                                                                                                                                                                      +
                                                                                                                                                                      +
                                                                                                                                                                      + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/en/core/click.html b/alive-admin/src/main/resources/static/ztree/demo/en/core/click.html new file mode 100644 index 0000000..4f0fa80 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/en/core/click.html @@ -0,0 +1,107 @@ + + + + ZTREE DEMO - beforeClick / onClick + + + + + + + + + + +

                                                                                                                                                                      Control of Click Node

                                                                                                                                                                      +
                                                                                                                                                                      [ File Path: core/click.html ]
                                                                                                                                                                      +
                                                                                                                                                                      +
                                                                                                                                                                      +
                                                                                                                                                                        +
                                                                                                                                                                        +
                                                                                                                                                                        +
                                                                                                                                                                          +
                                                                                                                                                                        • 1, 'beforeClick / onClick' callback function

                                                                                                                                                                          +
                                                                                                                                                                            +
                                                                                                                                                                          • Use 'beforeClick / onClick' callback function can be achieved with the click on the various functions. This simple demo shows how to monitor the click event.
                                                                                                                                                                          • +
                                                                                                                                                                          • Try pressing the Ctrl key for multi-node selection and deselection.
                                                                                                                                                                            + click log:
                                                                                                                                                                            +

                                                                                                                                                                              +
                                                                                                                                                                            • +
                                                                                                                                                                            +
                                                                                                                                                                          • +
                                                                                                                                                                          • 2, Explanation of setting

                                                                                                                                                                            +
                                                                                                                                                                              +
                                                                                                                                                                            • You need to set attributes about setting.callback.beforeClick and setting.callback.onClick, see the API documentation for more related contents.
                                                                                                                                                                            • +
                                                                                                                                                                            +
                                                                                                                                                                          • +
                                                                                                                                                                          • 3, Explanation of treeNode

                                                                                                                                                                            +
                                                                                                                                                                              +
                                                                                                                                                                            • No special requirements on the node data, the user can add custom attributes.
                                                                                                                                                                            • +
                                                                                                                                                                            +
                                                                                                                                                                          • +
                                                                                                                                                                          +
                                                                                                                                                                          +
                                                                                                                                                                          + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/en/core/custom_font.html b/alive-admin/src/main/resources/static/ztree/demo/en/core/custom_font.html new file mode 100644 index 0000000..e00253b --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/en/core/custom_font.html @@ -0,0 +1,67 @@ + + + + ZTREE DEMO - Custom Font + + + + + + + + + + +

                                                                                                                                                                          Custom Fonts

                                                                                                                                                                          +
                                                                                                                                                                          [ File Path: core/custom_font.html ]
                                                                                                                                                                          +
                                                                                                                                                                          +
                                                                                                                                                                          +
                                                                                                                                                                            +
                                                                                                                                                                            +
                                                                                                                                                                            +
                                                                                                                                                                              +
                                                                                                                                                                            • 1, Explanation of setting

                                                                                                                                                                              +
                                                                                                                                                                                +
                                                                                                                                                                              • 1. For display custom fonts, you need to set setting.view.fontCss attribute, see the API documentation for more related contents.
                                                                                                                                                                              • +
                                                                                                                                                                              • 2. If you need the node name support the HTML, please set the 'setting.view.nameIsHTML' attribute, see the API documentation for more related contents.
                                                                                                                                                                              • +
                                                                                                                                                                              +
                                                                                                                                                                            • +
                                                                                                                                                                            • 2, Explanation of treeNode

                                                                                                                                                                              +
                                                                                                                                                                                +
                                                                                                                                                                              • Set the font does not require to special node data , but if used to differentiate between different types of nodes, the corresponding data can set custom attributes.
                                                                                                                                                                              • +
                                                                                                                                                                              • The css style of data stored in the nodes within this demo
                                                                                                                                                                              • +
                                                                                                                                                                              +
                                                                                                                                                                            • +
                                                                                                                                                                            +
                                                                                                                                                                            +
                                                                                                                                                                            + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/en/core/custom_icon.html b/alive-admin/src/main/resources/static/ztree/demo/en/core/custom_icon.html new file mode 100644 index 0000000..17084e5 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/en/core/custom_icon.html @@ -0,0 +1,74 @@ + + + + ZTREE DEMO - Custom Icon + + + + + + + + + + +

                                                                                                                                                                            Custom Icon - icon

                                                                                                                                                                            +
                                                                                                                                                                            [ File Path: core/custom_icon.html ]
                                                                                                                                                                            +
                                                                                                                                                                            +
                                                                                                                                                                            +
                                                                                                                                                                              +
                                                                                                                                                                              +
                                                                                                                                                                              +
                                                                                                                                                                                +
                                                                                                                                                                              • 1, Explanation of setting

                                                                                                                                                                                +
                                                                                                                                                                                  +
                                                                                                                                                                                • Custom icon does not require special configuration setting.
                                                                                                                                                                                • +
                                                                                                                                                                                +
                                                                                                                                                                              • +
                                                                                                                                                                              • 2, Explanation of treeNode

                                                                                                                                                                                +
                                                                                                                                                                                  +
                                                                                                                                                                                • Use node data’s icon / iconOpen / iconClose attribute show custom icon.
                                                                                                                                                                                • +
                                                                                                                                                                                • See the API documentation for more related contents.
                                                                                                                                                                                • +
                                                                                                                                                                                +
                                                                                                                                                                              • +
                                                                                                                                                                              • 3、Other explanation

                                                                                                                                                                                +
                                                                                                                                                                                  +
                                                                                                                                                                                • Because of the time limitation, demo uses png images, if you need transparent images in IE6 browser, make a gif image, or use a special 'css filter' on ie6 browser.
                                                                                                                                                                                • +
                                                                                                                                                                                +
                                                                                                                                                                              • +
                                                                                                                                                                              +
                                                                                                                                                                              +
                                                                                                                                                                              + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/en/core/custom_iconSkin.html b/alive-admin/src/main/resources/static/ztree/demo/en/core/custom_iconSkin.html new file mode 100644 index 0000000..3e09930 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/en/core/custom_iconSkin.html @@ -0,0 +1,85 @@ + + + + ZTREE DEMO - Custom Icon Skin + + + + + + + + + + + +

                                                                                                                                                                              Custom Icon - iconSkin

                                                                                                                                                                              +
                                                                                                                                                                              [ File Path: core/custom_iconSkin.html ]
                                                                                                                                                                              +
                                                                                                                                                                              +
                                                                                                                                                                              +
                                                                                                                                                                                +
                                                                                                                                                                                +
                                                                                                                                                                                +
                                                                                                                                                                                  +
                                                                                                                                                                                • 1, Explanation of setting

                                                                                                                                                                                  +
                                                                                                                                                                                    +
                                                                                                                                                                                  • Custom icon does not require special configuration setting.
                                                                                                                                                                                  • +
                                                                                                                                                                                  +
                                                                                                                                                                                • +
                                                                                                                                                                                • 2, Explanation of treeNode

                                                                                                                                                                                  +
                                                                                                                                                                                    +
                                                                                                                                                                                  • Use the node data iconSkin attributes and css show custom icon.
                                                                                                                                                                                  • +
                                                                                                                                                                                  • See the API documentation for more related contents.
                                                                                                                                                                                  • +
                                                                                                                                                                                  +
                                                                                                                                                                                • +
                                                                                                                                                                                • 3、Other explanation

                                                                                                                                                                                  +
                                                                                                                                                                                    +
                                                                                                                                                                                  • Because of the time limitation, demo uses png images, if you need transparent images in IE6 browser, make a gif image, or use a special 'css filter' on ie6 browser.
                                                                                                                                                                                  • +
                                                                                                                                                                                  +
                                                                                                                                                                                • +
                                                                                                                                                                                +
                                                                                                                                                                                +
                                                                                                                                                                                + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/en/core/expand.html b/alive-admin/src/main/resources/static/ztree/demo/en/core/expand.html new file mode 100644 index 0000000..5df840a --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/en/core/expand.html @@ -0,0 +1,183 @@ + + + + ZTREE DEMO - beforeExpand / onExpand && beforeCollapse / onCollapse + + + + + + + + + + +

                                                                                                                                                                                Control of Expand Node

                                                                                                                                                                                +
                                                                                                                                                                                [ File Path: core/expand.html ]
                                                                                                                                                                                +
                                                                                                                                                                                +
                                                                                                                                                                                +
                                                                                                                                                                                  +
                                                                                                                                                                                  +
                                                                                                                                                                                  +
                                                                                                                                                                                    +
                                                                                                                                                                                  • 1, 'beforeCollapse / onCollapse'
                                                                                                                                                                                      'beforeExpand / onExpand' callback function

                                                                                                                                                                                    +
                                                                                                                                                                                      +
                                                                                                                                                                                    • Use 'beforeCollapse / onCollapse' and 'beforeExpand / onExpand' callback function can control whether to allow expand or collapse the parent node + . This simple demo shows how to monitor the collapse and expand event.
                                                                                                                                                                                    • +
                                                                                                                                                                                    • Try:
                                                                                                                                                                                      +      Whether trigger the callback when execution expandNode() method.
                                                                                                                                                                                      +     Single Node --[ expand ] +     [ collapse ] +     [ toggle ]
                                                                                                                                                                                      +     Single Node (including child) --[ expand ] +     [ collapse ]
                                                                                                                                                                                      +     All Nodes --[ expand All ] +     [ collapse All ]

                                                                                                                                                                                      +
                                                                                                                                                                                    • How to use zTreeObj.updateNode method, please see the API documentation.
                                                                                                                                                                                      + collapse / expand log:
                                                                                                                                                                                      +

                                                                                                                                                                                        +
                                                                                                                                                                                      • +
                                                                                                                                                                                      +
                                                                                                                                                                                    • +
                                                                                                                                                                                    • 2, Explanation of setting

                                                                                                                                                                                      +
                                                                                                                                                                                        +
                                                                                                                                                                                      • Set attributes about 'setting.callback.beforeCollapse / onCollapse / beforeExpand / onExpand', please see the API documentation for more related contents.
                                                                                                                                                                                      • +
                                                                                                                                                                                      • If you need to adjust the expand / collapse animation effects, please see the API documentation about setting.view.expandSpeed.
                                                                                                                                                                                      • +
                                                                                                                                                                                      +
                                                                                                                                                                                    • +
                                                                                                                                                                                    • 3, Explanation of treeNode

                                                                                                                                                                                      +
                                                                                                                                                                                        +
                                                                                                                                                                                      • No special requirements on the node data, the user can add custom attributes.
                                                                                                                                                                                      • +
                                                                                                                                                                                      +
                                                                                                                                                                                    • +
                                                                                                                                                                                    +
                                                                                                                                                                                    +
                                                                                                                                                                                    + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/en/core/noicon.html b/alive-admin/src/main/resources/static/ztree/demo/en/core/noicon.html new file mode 100644 index 0000000..19a6664 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/en/core/noicon.html @@ -0,0 +1,93 @@ + + + + ZTREE DEMO - noIcon + + + + + + + + + + + +

                                                                                                                                                                                    Don't Show Icon

                                                                                                                                                                                    +
                                                                                                                                                                                    [ File Path: core/noicon.html ]
                                                                                                                                                                                    +
                                                                                                                                                                                    +
                                                                                                                                                                                    +
                                                                                                                                                                                      +
                                                                                                                                                                                      +
                                                                                                                                                                                      +
                                                                                                                                                                                        +
                                                                                                                                                                                      • 1, Explanation of setting

                                                                                                                                                                                        +
                                                                                                                                                                                          +
                                                                                                                                                                                        • This Demo using Function set to the parent node does not display the icon.
                                                                                                                                                                                        • +
                                                                                                                                                                                        • Whether to display the icon, you need to set setting.view.showIcon attribute, see the API documentation for more related contents.
                                                                                                                                                                                        • +
                                                                                                                                                                                        +
                                                                                                                                                                                      • +
                                                                                                                                                                                      • 2, Explanation of treeNode

                                                                                                                                                                                        +
                                                                                                                                                                                          +
                                                                                                                                                                                        • TreeNode data does not require special settings. If you need some node display icon, and some nodes are not displayed, you can add special attributes to the node data for identification.
                                                                                                                                                                                        • +
                                                                                                                                                                                        +
                                                                                                                                                                                      • +
                                                                                                                                                                                      +
                                                                                                                                                                                      +
                                                                                                                                                                                      + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/en/core/noline.html b/alive-admin/src/main/resources/static/ztree/demo/en/core/noline.html new file mode 100644 index 0000000..d61792f --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/en/core/noline.html @@ -0,0 +1,88 @@ + + + + ZTREE DEMO - noLine + + + + + + + + + + + +

                                                                                                                                                                                      Don't Show Line

                                                                                                                                                                                      +
                                                                                                                                                                                      [ File Path: core/noline.html ]
                                                                                                                                                                                      +
                                                                                                                                                                                      +
                                                                                                                                                                                      +
                                                                                                                                                                                        +
                                                                                                                                                                                        +
                                                                                                                                                                                        +
                                                                                                                                                                                          +
                                                                                                                                                                                        • 1, Explanation of setting

                                                                                                                                                                                          +
                                                                                                                                                                                            +
                                                                                                                                                                                          • Whether to display the line, you need to set setting.view.showLine attribute, see the API documentation for more related contents.
                                                                                                                                                                                          • +
                                                                                                                                                                                          +
                                                                                                                                                                                        • +
                                                                                                                                                                                        • 2, Explanation of treeNode

                                                                                                                                                                                          +
                                                                                                                                                                                            +
                                                                                                                                                                                          • TreeNode data does not require special settings
                                                                                                                                                                                          • +
                                                                                                                                                                                          +
                                                                                                                                                                                        • +
                                                                                                                                                                                        +
                                                                                                                                                                                        +
                                                                                                                                                                                        + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/en/core/otherMouse.html b/alive-admin/src/main/resources/static/ztree/demo/en/core/otherMouse.html new file mode 100644 index 0000000..0e18a0c --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/en/core/otherMouse.html @@ -0,0 +1,132 @@ + + + + ZTREE DEMO - Other Mouse Event + + + + + + + + + + +

                                                                                                                                                                                        Other Mouse Events for zTree

                                                                                                                                                                                        +
                                                                                                                                                                                        [ File Path: core/otherMouse.html ]
                                                                                                                                                                                        +
                                                                                                                                                                                        +
                                                                                                                                                                                        +
                                                                                                                                                                                          +
                                                                                                                                                                                          +
                                                                                                                                                                                          +
                                                                                                                                                                                            +
                                                                                                                                                                                          • 1, 'beforeMousedown / onMousedown / beforeMouseup / onMouseup / beforeRightClick / onRightClick' callback function

                                                                                                                                                                                            +
                                                                                                                                                                                              +
                                                                                                                                                                                            • zTree provide these types of mouse event callbacks, in order to facilitate the user to extend the functionality. And doesn't affect zTree normal function, This simple demo shows how to monitor the mousedown/mouseup/rightClick event.
                                                                                                                                                                                            • +
                                                                                                                                                                                            • Try clicking with the mouse on the zTree (left or right), by the way to see log.
                                                                                                                                                                                              + mousedown event log:
                                                                                                                                                                                              +

                                                                                                                                                                                                + mouseup event log:
                                                                                                                                                                                                +
                                                                                                                                                                                                  + rightClick event log:
                                                                                                                                                                                                  +

                                                                                                                                                                                                    +
                                                                                                                                                                                                  • +
                                                                                                                                                                                                  +
                                                                                                                                                                                                • +
                                                                                                                                                                                                • 2, Explanation of setting

                                                                                                                                                                                                  +
                                                                                                                                                                                                    +
                                                                                                                                                                                                  • Set attributes about 'setting.callback.beforeMousedown / onMousedown / beforeMouseup / onMouseup / beforeRightClick / onRightClick', please see the API documentation for more related contents.
                                                                                                                                                                                                  • +
                                                                                                                                                                                                  +
                                                                                                                                                                                                • +
                                                                                                                                                                                                • 3, Explanation of treeNode

                                                                                                                                                                                                  +
                                                                                                                                                                                                    +
                                                                                                                                                                                                  • No special requirements on the node data, the user can add custom attributes.
                                                                                                                                                                                                  • +
                                                                                                                                                                                                  +
                                                                                                                                                                                                • +
                                                                                                                                                                                                +
                                                                                                                                                                                                +
                                                                                                                                                                                                + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/en/core/searchNodes.html b/alive-admin/src/main/resources/static/ztree/demo/en/core/searchNodes.html new file mode 100644 index 0000000..1d0695a --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/en/core/searchNodes.html @@ -0,0 +1,173 @@ + + + + ZTREE DEMO - getNodeByParam / getNodesByParam / getNodesByParamFuzzy + + + + + + + + + + +

                                                                                                                                                                                                Search Nodes

                                                                                                                                                                                                +
                                                                                                                                                                                                [ File Path: core/searchNodes.html ]
                                                                                                                                                                                                +
                                                                                                                                                                                                +
                                                                                                                                                                                                +
                                                                                                                                                                                                  +
                                                                                                                                                                                                  +
                                                                                                                                                                                                  +
                                                                                                                                                                                                    +
                                                                                                                                                                                                  • 1, Explanation of getNodeByParam / getNodesByParam / getNodesByParamFuzzy

                                                                                                                                                                                                    +
                                                                                                                                                                                                      +
                                                                                                                                                                                                    • How to use ’zTreeObj.getNodeByParam / getNodesByParam / getNodesByParamFuzzy / getNodeByTId‘ method, please see the API documentation.
                                                                                                                                                                                                    • +
                                                                                                                                                                                                    • Try to search:
                                                                                                                                                                                                      + attribute( value ):
                                                                                                                                                                                                      + attribute( key ): name (string)
                                                                                                                                                                                                      + level (number) ... root node's level is 0
                                                                                                                                                                                                      + id (number)
                                                                                                                                                                                                      + method: getNodeByParam
                                                                                                                                                                                                      + getNodesByParam
                                                                                                                                                                                                      + getNodesByParamFuzzy (only string)
                                                                                                                                                                                                      + getNodesByFilter (see source: function filter)
                                                                                                                                                                                                      +

                                                                                                                                                                                                      +
                                                                                                                                                                                                    • +
                                                                                                                                                                                                    +
                                                                                                                                                                                                  • +
                                                                                                                                                                                                  • 2, Explanation of setting

                                                                                                                                                                                                    +
                                                                                                                                                                                                      +
                                                                                                                                                                                                    • Do not need to set the setting.
                                                                                                                                                                                                    • +
                                                                                                                                                                                                    +
                                                                                                                                                                                                  • +
                                                                                                                                                                                                  • 3, Explanation of treeNode

                                                                                                                                                                                                    +
                                                                                                                                                                                                      +
                                                                                                                                                                                                    • Note: Please ensure that the incoming value type is the same as type of attribute.
                                                                                                                                                                                                    • +
                                                                                                                                                                                                    +
                                                                                                                                                                                                  • +
                                                                                                                                                                                                  +
                                                                                                                                                                                                  +
                                                                                                                                                                                                  + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/en/core/simpleData.html b/alive-admin/src/main/resources/static/ztree/demo/en/core/simpleData.html new file mode 100644 index 0000000..bf07831 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/en/core/simpleData.html @@ -0,0 +1,100 @@ + + + + ZTREE DEMO - Simple Data + + + + + + + + + + +

                                                                                                                                                                                                  Simple JSON Data

                                                                                                                                                                                                  +
                                                                                                                                                                                                  [ File Path: core/simpleData.html ]
                                                                                                                                                                                                  +
                                                                                                                                                                                                  +
                                                                                                                                                                                                  +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    +
                                                                                                                                                                                                      +
                                                                                                                                                                                                    • 1, Explanation of setting

                                                                                                                                                                                                      +
                                                                                                                                                                                                        +
                                                                                                                                                                                                      • Must set setting.data.simple attributes, see the API documentation for more related contents.
                                                                                                                                                                                                      • +
                                                                                                                                                                                                      • The setting.view in API documentation is associated with the display of the zTree.
                                                                                                                                                                                                      • +
                                                                                                                                                                                                      • To change the 'name', 'children', 'title' attribute, please refer to the API documentation about 'setting.data.key'.
                                                                                                                                                                                                      • +
                                                                                                                                                                                                      +
                                                                                                                                                                                                    • +
                                                                                                                                                                                                    • 2, Explanation of treeNode

                                                                                                                                                                                                      +
                                                                                                                                                                                                        +
                                                                                                                                                                                                      • Id / pId that include parent-child relationship between nodes is needed if you use Simple model of the JSON data, and other attributes please refer to the instructions within setting.data.simple. +
                                                                                                                                                                                                        For example:
                                                                                                                                                                                                        +var nodes = [
                                                                                                                                                                                                        +	{id:1, pId:0, name: "pNode 01"},
                                                                                                                                                                                                        +	{id:11, pId:1, name: "child 01"},
                                                                                                                                                                                                        +	{id:12, pId:1, name: "child 02"}
                                                                                                                                                                                                        +];
                                                                                                                                                                                                      • +
                                                                                                                                                                                                      • To set nodes expanded by default, set treeNode.open attribute.
                                                                                                                                                                                                      • +
                                                                                                                                                                                                      • To get parent node which has no child node, set treeNode.isParent attribute.
                                                                                                                                                                                                      • +
                                                                                                                                                                                                      • Please refer to the API documentation "treeNode data details" to view other attributes description.
                                                                                                                                                                                                      • +
                                                                                                                                                                                                      +
                                                                                                                                                                                                    • +
                                                                                                                                                                                                    • 3、Other explanation

                                                                                                                                                                                                      +
                                                                                                                                                                                                        +
                                                                                                                                                                                                      • The simple JSON data model has been used almost everywhere, which can be learned easily.
                                                                                                                                                                                                      • +
                                                                                                                                                                                                      +
                                                                                                                                                                                                    • +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/en/core/standardData.html b/alive-admin/src/main/resources/static/ztree/demo/en/core/standardData.html new file mode 100644 index 0000000..909a63b --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/en/core/standardData.html @@ -0,0 +1,106 @@ + + + + ZTREE DEMO - Standard Data + + + + + + + + + + +

                                                                                                                                                                                                    Standard JSON Data

                                                                                                                                                                                                    +
                                                                                                                                                                                                    [ File Path: core/standardData.html ]
                                                                                                                                                                                                    +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      +
                                                                                                                                                                                                        +
                                                                                                                                                                                                      • 1, Explanation of setting

                                                                                                                                                                                                        +
                                                                                                                                                                                                          +
                                                                                                                                                                                                        • No extrally setting needed for basic functions.
                                                                                                                                                                                                        • +
                                                                                                                                                                                                        • The setting.view in API documentation is associated with the display of the zTree.
                                                                                                                                                                                                        • +
                                                                                                                                                                                                        • To change the 'name', 'children', 'title' attribute, please refer to the API documentation about 'setting.data.key'.
                                                                                                                                                                                                        • +
                                                                                                                                                                                                        +
                                                                                                                                                                                                      • +
                                                                                                                                                                                                      • 2, Explanation of treeNode

                                                                                                                                                                                                        +
                                                                                                                                                                                                          +
                                                                                                                                                                                                        • Need to use nested JSON data that include parent-child relationship between nodes +
                                                                                                                                                                                                          For example:
                                                                                                                                                                                                          +var nodes = [
                                                                                                                                                                                                          +	{name: "pNode 01", children: [
                                                                                                                                                                                                          +		{name: "child 01"},
                                                                                                                                                                                                          +		{name: "child 02"}
                                                                                                                                                                                                          +	]}
                                                                                                                                                                                                          +];
                                                                                                                                                                                                          +
                                                                                                                                                                                                        • +
                                                                                                                                                                                                        • To set nodes expanded by default, set treeNode.open attribute.
                                                                                                                                                                                                        • +
                                                                                                                                                                                                        • No child nodes of parent node, set treeNode.isParent attribute.
                                                                                                                                                                                                        • +
                                                                                                                                                                                                        • Please refer to the API documentation "treeNode data details" to view other attributes description.
                                                                                                                                                                                                        • +
                                                                                                                                                                                                        +
                                                                                                                                                                                                      • +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/en/core/update_fun.html b/alive-admin/src/main/resources/static/ztree/demo/en/core/update_fun.html new file mode 100644 index 0000000..0909a34 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/en/core/update_fun.html @@ -0,0 +1,143 @@ + + + + ZTREE DEMO - updateNode + + + + + + + + + + + +

                                                                                                                                                                                                      Update Node - zTree methods

                                                                                                                                                                                                      +
                                                                                                                                                                                                      [ File Path: core/update_fun.html ]
                                                                                                                                                                                                      +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        +
                                                                                                                                                                                                          +
                                                                                                                                                                                                        • 1, Explanation of updateNode

                                                                                                                                                                                                          + +
                                                                                                                                                                                                        • +
                                                                                                                                                                                                        • 2, Explanation of setting

                                                                                                                                                                                                          +
                                                                                                                                                                                                            +
                                                                                                                                                                                                          • Do not need to set the setting.
                                                                                                                                                                                                          • +
                                                                                                                                                                                                          • You can modify the node style with setting.view.fontCss.
                                                                                                                                                                                                          • +
                                                                                                                                                                                                          +
                                                                                                                                                                                                        • +
                                                                                                                                                                                                        • 3, Explanation of treeNode

                                                                                                                                                                                                          +
                                                                                                                                                                                                            +
                                                                                                                                                                                                          • In the API documentation has detail description about the 'zTreeObj.updateNode method'.
                                                                                                                                                                                                          • +
                                                                                                                                                                                                          +
                                                                                                                                                                                                        • +
                                                                                                                                                                                                        • 4、Other explanation

                                                                                                                                                                                                          +
                                                                                                                                                                                                            +
                                                                                                                                                                                                          • This demo only made ​by the core js, so does not include the checkbox update.
                                                                                                                                                                                                          • +
                                                                                                                                                                                                          +
                                                                                                                                                                                                        • +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/en/core/url.html b/alive-admin/src/main/resources/static/ztree/demo/en/core/url.html new file mode 100644 index 0000000..788b03f --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/en/core/url.html @@ -0,0 +1,63 @@ + + + + ZTREE DEMO - url + + + + + + + + + + +

                                                                                                                                                                                                        Hyperlinks Demo

                                                                                                                                                                                                        +
                                                                                                                                                                                                        [ File Path: core/url.html ]
                                                                                                                                                                                                        +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          +
                                                                                                                                                                                                            +
                                                                                                                                                                                                          • 1, Explanation of setting

                                                                                                                                                                                                            +
                                                                                                                                                                                                              +
                                                                                                                                                                                                            • No extrally setting needed for basic functions.
                                                                                                                                                                                                            • +
                                                                                                                                                                                                            • If you need flexible control of hyperlinks to jump, please use the 'onClick' callback. See the API documentation for more related contents.
                                                                                                                                                                                                            • +
                                                                                                                                                                                                            +
                                                                                                                                                                                                          • +
                                                                                                                                                                                                          • 2, Explanation of treeNode

                                                                                                                                                                                                            +
                                                                                                                                                                                                              +
                                                                                                                                                                                                            • 1. the 'url' attribute is used to save the hyperlink's path.
                                                                                                                                                                                                            • +
                                                                                                                                                                                                            • 2. the 'target' attribute is used to save the hyperlink's target.
                                                                                                                                                                                                            • +
                                                                                                                                                                                                            • 3. the 'click' attribute is used to save the hyperlink's 'onclick' attribute.
                                                                                                                                                                                                            • +
                                                                                                                                                                                                            • Please refer to the API documentation "treeNode data details" to view other attributes description.
                                                                                                                                                                                                            • +
                                                                                                                                                                                                            +
                                                                                                                                                                                                          • +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/en/excheck/checkbox.html b/alive-admin/src/main/resources/static/ztree/demo/en/excheck/checkbox.html new file mode 100644 index 0000000..f2a1408 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/en/excheck/checkbox.html @@ -0,0 +1,107 @@ + + + + ZTREE DEMO - checkbox + + + + + + + + + + + +

                                                                                                                                                                                                          Checkbox Operation

                                                                                                                                                                                                          +
                                                                                                                                                                                                          [ File Path: excheck/checkbox.html ]
                                                                                                                                                                                                          +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          +
                                                                                                                                                                                                            +
                                                                                                                                                                                                            +
                                                                                                                                                                                                            +
                                                                                                                                                                                                              +
                                                                                                                                                                                                            • 1, Explanation of setting

                                                                                                                                                                                                              +
                                                                                                                                                                                                                +
                                                                                                                                                                                                              • Must set setting.check attributes, see the API documentation for more related contents.
                                                                                                                                                                                                              • +
                                                                                                                                                                                                              • Linkage relationship between parent and child nodes:
                                                                                                                                                                                                                + check: affect the parent + affect the child
                                                                                                                                                                                                                + uncheck: affect the parent + affect the child
                                                                                                                                                                                                                +

                                                                                                                                                                                                                  +
                                                                                                                                                                                                                • +
                                                                                                                                                                                                                +
                                                                                                                                                                                                              • +
                                                                                                                                                                                                              • 2, Explanation of treeNode

                                                                                                                                                                                                                +
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                • 1), If you need to initialize the node is checked, please set treeNode.checked attribute. See the API documentation for more related contents.
                                                                                                                                                                                                                • +
                                                                                                                                                                                                                • 2), If you need to initialize the node's checkbox is disabled, please set treeNode.chkDisabled attribute. See the API documentation for more related contents and 'chkDisabled Demo'.
                                                                                                                                                                                                                • +
                                                                                                                                                                                                                • 3), If you need to initialize the node don't show checkbox, please set treeNode.nocheck attribute. See the API documentation for more related contents and 'nocheck Demo'.
                                                                                                                                                                                                                • +
                                                                                                                                                                                                                • 4), If you need to change 'checked' to other attribute, please set setting.data.key.checked attribute. See the API documentation for more related contents.
                                                                                                                                                                                                                • +
                                                                                                                                                                                                                • 5), By the way, please see the API documentation for 'treeNode.checkedOld / getCheckStatus / check_Child_State / check_Focus'.
                                                                                                                                                                                                                • +
                                                                                                                                                                                                                +
                                                                                                                                                                                                              • +
                                                                                                                                                                                                              +
                                                                                                                                                                                                              +
                                                                                                                                                                                                              + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/en/excheck/checkbox_chkDisabled.html b/alive-admin/src/main/resources/static/ztree/demo/en/excheck/checkbox_chkDisabled.html new file mode 100644 index 0000000..4205366 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/en/excheck/checkbox_chkDisabled.html @@ -0,0 +1,99 @@ + + + + ZTREE DEMO - Checkbox chkDisabled + + + + + + + + + + + +

                                                                                                                                                                                                              Checkbox chkDisabled Demo

                                                                                                                                                                                                              +
                                                                                                                                                                                                              [ File Path: excheck/checkbox_chkDisabled.html ]
                                                                                                                                                                                                              +
                                                                                                                                                                                                              +
                                                                                                                                                                                                              +
                                                                                                                                                                                                                +
                                                                                                                                                                                                                +
                                                                                                                                                                                                                +
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                • 1, Explanation of 'setChkDisabled' method

                                                                                                                                                                                                                  +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                  • 'setChkDisabled' method can set the node's checkbox / radio to be disabled or abled. See the API documentation for more related contents.
                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                  • Try:
                                                                                                                                                                                                                    +     [ be disabled ] +     [ be abled ]

                                                                                                                                                                                                                    +
                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                • +
                                                                                                                                                                                                                • 2, Explanation of setting

                                                                                                                                                                                                                  +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                  • This Demo only shows how use the ‘chkDisabled’ attribute, detailed configuration information, please refer to 'Checkbox Operation'
                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                • +
                                                                                                                                                                                                                • 3, Explanation of treeNode

                                                                                                                                                                                                                  +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                  • 1), If you need to initialize the node's checkbox is disabled, please set treeNode.chkDisabled attribute. See the API documentation for more related contents.
                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                  • 2), By the way, please see the 'Checkbox Operation' Demo.
                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                • +
                                                                                                                                                                                                                +
                                                                                                                                                                                                                +
                                                                                                                                                                                                                + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/en/excheck/checkbox_count.html b/alive-admin/src/main/resources/static/ztree/demo/en/excheck/checkbox_count.html new file mode 100644 index 0000000..ae44390 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/en/excheck/checkbox_count.html @@ -0,0 +1,127 @@ + + + + ZTREE DEMO - getChangeCheckedNodes / getCheckedNodes + + + + + + + + + + + +

                                                                                                                                                                                                                Statistics Checkbox is Checked

                                                                                                                                                                                                                +
                                                                                                                                                                                                                [ File Path: excheck/checkbox_count.html ]
                                                                                                                                                                                                                +
                                                                                                                                                                                                                +
                                                                                                                                                                                                                +
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                  • 1, Explanation of getChangeCheckedNodes / getCheckedNodes

                                                                                                                                                                                                                    +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                    • How to use zTreeObj.getChangeCheckedNodes / getCheckedNodes method, please see the API documentation.
                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                    • Check the checkbox, observe the number of changes:
                                                                                                                                                                                                                      +

                                                                                                                                                                                                                        +
                                                                                                                                                                                                                      • Total check node:
                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                      • Total uncheck node:
                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                      • Modify the state of checkbox:
                                                                                                                                                                                                                        + Compared with zTree initialization
                                                                                                                                                                                                                        + Compared with the last check
                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                      • Total change the checkbox state of node:
                                                                                                                                                                                                                      • +

                                                                                                                                                                                                                      +
                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                  • 2, Explanation of setting

                                                                                                                                                                                                                    +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                    • Same as 'Checkbox Operation'
                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                  • 3, Explanation of treeNode

                                                                                                                                                                                                                    +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                    • Same as 'Checkbox Operation'
                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/en/excheck/checkbox_fun.html b/alive-admin/src/main/resources/static/ztree/demo/en/excheck/checkbox_fun.html new file mode 100644 index 0000000..0562fe6 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/en/excheck/checkbox_fun.html @@ -0,0 +1,172 @@ + + + + ZTREE DEMO - beforeCheck / onCheck + + + + + + + + + + + +

                                                                                                                                                                                                                  Checkbox - zTree methods

                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  [ File Path: excheck/checkbox_fun.html ]
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                    • 1, 'beforeCheck / onCheck' callback function

                                                                                                                                                                                                                      +
                                                                                                                                                                                                                        +
                                                                                                                                                                                                                      • Use 'beforeCheck / onCheck' callback function can control whether to allow changes to the node check state. This simple demo shows how to monitor the check event.
                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                      • By the way also demonstrates how to use the 'checkNode / checkAllNodes' method triggers 'beforeCheck / onCheck' callback, Try:
                                                                                                                                                                                                                        +      setting.check.autoCheckTrigger: false
                                                                                                                                                                                                                        +      Whether trigger the callback when execution checkNode() method.
                                                                                                                                                                                                                        +     Node --[ check ] +     [ uncheck ] +     [ toggle ]
                                                                                                                                                                                                                        +     Node (relationships) --[ check ] +     [ uncheck ] +     [ toggle ]
                                                                                                                                                                                                                        +     All Nodes --[ check ] +     [ uncheck ]

                                                                                                                                                                                                                        +
                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                      • How to use 'zTreeObj.checkNode / checkAllNodes' method, please see the API documentation.
                                                                                                                                                                                                                        + beforeCheck / onCheck log:
                                                                                                                                                                                                                        +

                                                                                                                                                                                                                          +
                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                        +
                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                      • 2, Explanation of setting

                                                                                                                                                                                                                        +
                                                                                                                                                                                                                          +
                                                                                                                                                                                                                        • Same as 'Checkbox Operation'
                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                        +
                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                      • 3, Explanation of treeNode

                                                                                                                                                                                                                        +
                                                                                                                                                                                                                          +
                                                                                                                                                                                                                        • Same as 'Checkbox Operation'
                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                        +
                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/en/excheck/checkbox_halfCheck.html b/alive-admin/src/main/resources/static/ztree/demo/en/excheck/checkbox_halfCheck.html new file mode 100644 index 0000000..368cd5a --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/en/excheck/checkbox_halfCheck.html @@ -0,0 +1,108 @@ + + + + ZTREE DEMO - Checkbox halfCheck + + + + + + + + + + + +

                                                                                                                                                                                                                      Checkbox halfCheck Demo

                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      [ File Path: excheck/checkbox_halfCheck.html ]
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                        +
                                                                                                                                                                                                                        +
                                                                                                                                                                                                                        +
                                                                                                                                                                                                                          +
                                                                                                                                                                                                                        • 1, Explanation of Demo

                                                                                                                                                                                                                          +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                          • This demo implements the check operation of the dynamic tree
                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                          • 1). After loaded child nodes, the parent node's 'halfCheck' attribute will be invalid immediately.
                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                          • 2). If you check the parent node, so will effect the child nodes's check status.
                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                          • 3). If you check the parent node, it's child node's 'halfCheck' attribute will be invalid.
                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                          +
                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                        • 2, Explanation of setting

                                                                                                                                                                                                                          +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                          • Half-checked functional don't need to configure any parameter. But it is accessibility, can not used alone. So please configure the parameters which you need.
                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                          +
                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                        • 3, Explanation of treeNode

                                                                                                                                                                                                                          +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                          • 1), Please set treeNode.halfCheck attribute, before zTree initialize. See the API documentation for more related contents.
                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                          • 2), By the way, please see the 'Checkbox Operation' Demo.
                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                          +
                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                        +
                                                                                                                                                                                                                        +
                                                                                                                                                                                                                        + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/en/excheck/checkbox_nocheck.html b/alive-admin/src/main/resources/static/ztree/demo/en/excheck/checkbox_nocheck.html new file mode 100644 index 0000000..650c9be --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/en/excheck/checkbox_nocheck.html @@ -0,0 +1,76 @@ + + + + ZTREE DEMO - no checkbox + + + + + + + + + + + +

                                                                                                                                                                                                                        Checkbox nocheck Demo

                                                                                                                                                                                                                        +
                                                                                                                                                                                                                        [ File Path: excheck/checkbox_nocheck.html ]
                                                                                                                                                                                                                        +
                                                                                                                                                                                                                        +
                                                                                                                                                                                                                        +
                                                                                                                                                                                                                          +
                                                                                                                                                                                                                          +
                                                                                                                                                                                                                          +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                          • 1, Explanation of setting

                                                                                                                                                                                                                            +
                                                                                                                                                                                                                              +
                                                                                                                                                                                                                            • This Demo only shows how use the ‘nocheck’ attribute, detailed configuration information, please refer to 'Checkbox Operation'
                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                            • setting.check.nocheckInherit can set the child nodes to automatically inherit the parent node's 'nocheck' attribute. See the API documentation for more related contents.
                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                          • 2, Explanation of treeNode

                                                                                                                                                                                                                            +
                                                                                                                                                                                                                              +
                                                                                                                                                                                                                            • 1), If you need to initialize the node don't show checkbox, please set treeNode.nocheck attribute. See the API documentation for more related contents.
                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                            • 2), By the way, please see the 'Checkbox Operation' Demo.
                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                          +
                                                                                                                                                                                                                          +
                                                                                                                                                                                                                          + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/en/excheck/radio.html b/alive-admin/src/main/resources/static/ztree/demo/en/excheck/radio.html new file mode 100644 index 0000000..f21c5bc --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/en/excheck/radio.html @@ -0,0 +1,97 @@ + + + + ZTREE DEMO - radio + + + + + + + + + + + +

                                                                                                                                                                                                                          Radio Operation

                                                                                                                                                                                                                          +
                                                                                                                                                                                                                          [ File Path: excheck/radio.html ]
                                                                                                                                                                                                                          +
                                                                                                                                                                                                                          +
                                                                                                                                                                                                                          +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                              +
                                                                                                                                                                                                                            • 1, Explanation of setting

                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                +
                                                                                                                                                                                                                              • Must set setting.check attributes, see the API documentation for more related contents.
                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                              • group range of radio:
                                                                                                                                                                                                                                within the same level + within the whole tree
                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                +
                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                              • 2, Explanation of treeNode

                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                • 1), If you need to initialize the node is checked, please set treeNode.checked attribute. See the API documentation for more related contents.
                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                • 2), If you need to initialize the node don't show radio, please set treeNode.nocheck attribute. See the API documentation for more related contents.
                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                • 3), If you need to change 'checked' to other attribute, please set setting.data.key.checked attribute. See the API documentation for more related contents.
                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                • 4), By the way, please see the API documentation for 'treeNode.checkedOld / getCheckStatus / check_Child_State / check_Focus'.
                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                +
                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                              +
                                                                                                                                                                                                                              +
                                                                                                                                                                                                                              + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/en/excheck/radio_chkDisabled.html b/alive-admin/src/main/resources/static/ztree/demo/en/excheck/radio_chkDisabled.html new file mode 100644 index 0000000..08282d7 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/en/excheck/radio_chkDisabled.html @@ -0,0 +1,101 @@ + + + + ZTREE DEMO - Radio chkDisabled + + + + + + + + + + + +

                                                                                                                                                                                                                              Radio chkDisabled Demo

                                                                                                                                                                                                                              +
                                                                                                                                                                                                                              [ File Path: excheck/radio_chkDisabled.html ]
                                                                                                                                                                                                                              +
                                                                                                                                                                                                                              +
                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                • 1, Explanation of 'setChkDisabled' method

                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                  • 'setChkDisabled' method can set the node's checkbox / radio to be disabled or abled. See the API documentation for more related contents.
                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                  • Try:
                                                                                                                                                                                                                                    +     [ be disabled ] +     [ be abled ]

                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                • 2, Explanation of setting

                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                  • This Demo only shows how use the ‘nocheck’ attribute, detailed configuration information, please refer to 'Radio Operation'
                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                • 3, Explanation of treeNode

                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                  • 1), If you need to initialize the node don't show radio, please set treeNode.chkDisabled attribute. See the API documentation for more related contents.
                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                  • 2), By the way, please see the 'Radio Operation' Demo.
                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/en/excheck/radio_fun.html b/alive-admin/src/main/resources/static/ztree/demo/en/excheck/radio_fun.html new file mode 100644 index 0000000..9a32fc3 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/en/excheck/radio_fun.html @@ -0,0 +1,151 @@ + + + + ZTREE DEMO - beforeCheck / onCheck + + + + + + + + + + + +

                                                                                                                                                                                                                                Radio - zTree methods

                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                [ File Path: excheck/radio_fun.html ]
                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                  • 1, 'beforeCheck / onCheck' callback function

                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                    • Use 'beforeCheck / onCheck' callback function can control whether to allow changes to the node check state. This simple demo shows how to monitor the check event.
                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                    • By the way also demonstrates how to use the 'checkNode' method triggers 'beforeCheck / onCheck' callback, Try:
                                                                                                                                                                                                                                      +      Whether trigger the callback when execution checkNode() method.
                                                                                                                                                                                                                                      +     [ check ] +     [ uncheck ]

                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                    • How to use 'zTreeObj.checkNode' method, please see the API documentation.
                                                                                                                                                                                                                                      + beforeCheck / onCheck log:
                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                    • 2, Explanation of setting

                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                      • Same as 'Radio Operation'
                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                    • 3, Explanation of treeNode

                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                      • Same as 'Radio Operation'
                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                    + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/en/excheck/radio_halfCheck.html b/alive-admin/src/main/resources/static/ztree/demo/en/excheck/radio_halfCheck.html new file mode 100644 index 0000000..932e837 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/en/excheck/radio_halfCheck.html @@ -0,0 +1,93 @@ + + + + ZTREE DEMO - Radio halfCheck + + + + + + + + + + + +

                                                                                                                                                                                                                                    Radio halfCheck Demo

                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                    [ File Path: excheck/radio_halfCheck.html ]
                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                      • 1, Explanation of Demo

                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                        • This demo implements the check operation of the dynamic tree
                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                        • 1). After loaded child nodes, the parent node's 'halfCheck' attribute will be invalid immediately.
                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                        • 2). If you check the parent node, will not effect the child nodes's check status.
                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                        • 3). If you check the parent node, it's child node's 'halfCheck' attribute will still be valid.
                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                      • 2, Explanation of setting

                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                        • Half-checked functional don't need to configure any parameter. But it is accessibility, can not used alone. So please configure the parameters which you need.
                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                      • 3, Explanation of treeNode

                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                        • 1), Please set treeNode.halfCheck attribute, before zTree initialize. See the API documentation for more related contents.
                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                        • 2), By the way, please see the 'Radio Operation' Demo.
                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                      + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/en/excheck/radio_nocheck.html b/alive-admin/src/main/resources/static/ztree/demo/en/excheck/radio_nocheck.html new file mode 100644 index 0000000..e9e3b48 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/en/excheck/radio_nocheck.html @@ -0,0 +1,77 @@ + + + + ZTREE DEMO - no radio + + + + + + + + + + + +

                                                                                                                                                                                                                                      Radio nocheck Demo

                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                      [ File Path: excheck/radio_nocheck.html ]
                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                        • 1, Explanation of setting

                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                          • This Demo only shows how use the ‘nocheck’ attribute, detailed configuration information, please refer to 'Radio Operation'
                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                          • setting.check.nocheckInherit can set the child nodes to automatically inherit the parent node's 'nocheck' attribute. See the API documentation for more related contents.
                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                        • 2, Explanation of treeNode

                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                          • 1), If you need to initialize the node don't show radio, please set treeNode.nocheck attribute. See the API documentation for more related contents.
                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                          • 2), By the way, please see the 'Radio Operation' Demo.
                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                        + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/en/exedit/async_edit.html b/alive-admin/src/main/resources/static/ztree/demo/en/exedit/async_edit.html new file mode 100644 index 0000000..5430d3d --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/en/exedit/async_edit.html @@ -0,0 +1,119 @@ + + + + ZTREE DEMO - async & edit + + + + + + + + + + + + +

                                                                                                                                                                                                                                        Editing Dynamic Tree

                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                        [ File Path: exedit/async_edit.html ]
                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                          • 1, Explanation of editing dynamic tree

                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                            • 1) This Demo is based on the "Advanced Edit Nodes" to modify, and open to drag and drop functionality, can be compared with that demo.
                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                            • 2) At the same time set the editing mode and dynamic mode can be achieved editing dynamic tree.
                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                            • 3) zTree improved editing capabilities in dynamic mode, if the parent node hasn‘t loaded the child nodes, it will first load the child nodes before it add child node.
                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                          • 2, Explanation of setting

                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                            • 1) Use editing features, please refer to "Normal Drag Node Operation" & "Basic Edit Nodes" demo of the instructions.
                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                            • 2) Use dynamic loading, please refer to "Dynamic Tree with Ajax" demo of the instructions.
                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                          • 3, Explanation of treeNode

                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                            • No special requirements on the node data, please refer to "Dynamic Tree with Ajax" & "Normal Drag Node Operation" & "Basic Edit Nodes" demo of the instructions
                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                          + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/en/exedit/drag.html b/alive-admin/src/main/resources/static/ztree/demo/en/exedit/drag.html new file mode 100644 index 0000000..30aff42 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/en/exedit/drag.html @@ -0,0 +1,136 @@ + + + + ZTREE DEMO - drag & drop + + + + + + + + + + + +

                                                                                                                                                                                                                                          Normal Drag Node Operation

                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                          [ File Path: exedit/drag.html ]
                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                            • 1, Explanation of setting

                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                              • This Demo only shows how to drag & drop nodes using the basic method and configure parameters.
                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                              • 1) Must set 'setting.edit' attributes, see the API documentation for more related contents.
                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                              • 2) If you want to use drag & drop callback, muse to set 'setting.callback.beforeDrag / onDrag / beforeDrop / onDrop' attributes, see the API documentation for more related contents.
                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                              • Basic settings:
                                                                                                                                                                                                                                                + can Copy + can Move
                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                • Position settings:
                                                                                                                                                                                                                                                  + prev + inner + next
                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                • 2, Explanation of treeNode

                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                  • No special requirements on the node data, the user can add custom attributes.
                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/en/exedit/drag_fun.html b/alive-admin/src/main/resources/static/ztree/demo/en/exedit/drag_fun.html new file mode 100644 index 0000000..1215ba2 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/en/exedit/drag_fun.html @@ -0,0 +1,180 @@ + + + + ZTREE DEMO - copyNode / moveNode + + + + + + + + + + + + +

                                                                                                                                                                                                                                                Move / Copy - zTree methods

                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                [ File Path: exedit/drag_fun.html ]
                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                  • 1, Explanation of 'copyNode / moveNode' method

                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                    • Use 'copyNode / moveNode' method can also be achieved copy / move nodes.
                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                    • Try to copy or cut node:
                                                                                                                                                                                                                                                      +     [ copy ] +     [ cut ] +     [ paste ]

                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                    • How to use 'zTreeObj.copyNode / moveNode' method, please see the API documentation.
                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                  • 2, Explanation of setting

                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                    • Same as 'Normal Drag Node Operation'
                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                  • 3, Explanation of treeNode

                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                    • Same as 'Normal Drag Node Operation'
                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/en/exedit/drag_super.html b/alive-admin/src/main/resources/static/ztree/demo/en/exedit/drag_super.html new file mode 100644 index 0000000..559f1ff --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/en/exedit/drag_super.html @@ -0,0 +1,210 @@ + + + + ZTREE DEMO - beforeDrag / onDrag / beforeDrop / onDrop + + + + + + + + + + + +

                                                                                                                                                                                                                                                  Advanced Drag Node Operation

                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  [ File Path: exedit/drag_super.html ]
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                    • 1, 'beforeDrag / onDrag'
                                                                                                                                                                                                                                                        'beforeDrop / onDrop' callback function

                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                      • This Demo shows the configuration parameters to achieve a more flexible use of drag and drop rules, the operation can be compared with "Normal Drag Node Operation" example.
                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                      • This Demo default allows copy & move.
                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                      • This Demo set 'setting.edit.drag.prev / inner / next' as 'function', you can dynamically set according to the node, which can not use beforeDrop callback function, the effect of drag and drop will be better.
                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                      • After be familiar with these configurations, I think you can design a more flexible and rational rules!
                                                                                                                                                                                                                                                        +      拖拽节点时自动展开父节点是否触发 callback
                                                                                                                                                                                                                                                        + drag / drop log:
                                                                                                                                                                                                                                                        +

                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                      • 2, Explanation of setting

                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                        • Same as 'Normal Drag Node Operation'
                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                      • 3, Explanation of treeNode

                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                        • Same as 'Normal Drag Node Operation'
                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                      + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/en/exedit/edit.html b/alive-admin/src/main/resources/static/ztree/demo/en/exedit/edit.html new file mode 100644 index 0000000..fd60f05 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/en/exedit/edit.html @@ -0,0 +1,115 @@ + + + + ZTREE DEMO - edit + + + + + + + + + + + +

                                                                                                                                                                                                                                                      Basic Edit Nodes

                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                      [ File Path: exedit/edit.html ]
                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                        • 1, Explanation of setting

                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                          • This Demo only shows how to edit nodes using the basic method and configure parameters.
                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                          • 1) Must set 'setting.edit' attributes, see the API documentation for more related contents.
                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                          • 2) If you want to use remove / rename callback, muse to set 'setting.callback.beforeRemove / onRemove / beforeRename / onRename' attributes, see the API documentation for more related contents.
                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                          • 3) zTree do not provide buttons for add nodes, please use the custom control methods 'addHoverDom / removeHoverDom' to achieve added functionality, see the API documentation for more related contents. Another way, you can see the demo named 'Advanced Edit Nodes'.
                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                          • Edit button setting:
                                                                                                                                                                                                                                                            + show remove button + show edit button
                                                                                                                                                                                                                                                            + title for remove:
                                                                                                                                                                                                                                                            + title for rename: +

                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                          • 2, Explanation of treeNode

                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                            • No special requirements on the node data, the user can add custom attributes.
                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                          + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/en/exedit/edit_fun.html b/alive-admin/src/main/resources/static/ztree/demo/en/exedit/edit_fun.html new file mode 100644 index 0000000..09c471e --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/en/exedit/edit_fun.html @@ -0,0 +1,194 @@ + + + + ZTREE DEMO - addNodes / editName / removeNode / removeChildNodes + + + + + + + + + + + +

                                                                                                                                                                                                                                                          Edit Nodes - zTree methods

                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                          [ File Path: exedit/edit_fun.html ]
                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                            • 1, Explanation of 'addNodes / editName / removeNode / removeChildNodes' method

                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                              • Use 'addNodes / editName / removeNode / removeChildNodes' method can also be achieved copy / move nodes.
                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                              • Method 'cancelEditName' is effective, only when edit the node name. Please use it when necessary, this demo doesn't show how to use the method.
                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                              • Use setting.data.keep.parent / leaf attribute, you can lock the parent node and leaf node.
                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                              • Try to edit node:
                                                                                                                                                                                                                                                                +      Whether trigger the callback when execution removeNode() method.
                                                                                                                                                                                                                                                                +     [ add parent node ] +     [ add leaf node ] +     [ edit name ]
                                                                                                                                                                                                                                                                +     [ remove node ] +     [ make child nodes to empty ]
                                                                                                                                                                                                                                                                + remove log:
                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                • How to use 'zTreeObj.addNodes / cancelEditName / editName / removeNode / removeChildNodes' method, please see the API documentation.
                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                              • 2, Explanation of setting

                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                • Same as 'Basic Edit Nodes'
                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                • Lock the parent / leaf node status, need to set setting.data.keep.parent / leaf attribute, see the API documentation for more related contents
                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                              • 3, Explanation of treeNode

                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                • Same as 'Basic Edit Nodes'
                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                              + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/en/exedit/edit_super.html b/alive-admin/src/main/resources/static/ztree/demo/en/exedit/edit_super.html new file mode 100644 index 0000000..be5c019 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/en/exedit/edit_super.html @@ -0,0 +1,173 @@ + + + + ZTREE DEMO - beforeEditName / beforeRemove / onRemove / beforeRename / onRename + + + + + + + + + + + + +

                                                                                                                                                                                                                                                              Advanced Edit Nodes

                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                              [ File Path: exedit/edit_super.html ]
                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                • 1, 'beforeDrag / onDrag'
                                                                                                                                                                                                                                                                    'beforeEditName'
                                                                                                                                                                                                                                                                    'beforeRemove / onRemove'
                                                                                                                                                                                                                                                                    'beforeRename / onRename' callback function

                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                  • This demo shows the use of custom controls, the callback function to enhance the user experience, the operation can be compared with "Basic Edit Nodes" example.
                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                  • This demo achieve the Add nodes button.
                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                  • This demo achieve the confirmation when deleting node.
                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                  • Can use 'beforeEditName' callback trigger custom editing.
                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                  • After be familiar with these configurations, I think you can design a more flexible and rational rules!
                                                                                                                                                                                                                                                                    +      Whether select all text, when edit node's name.
                                                                                                                                                                                                                                                                    + remove / rename log:
                                                                                                                                                                                                                                                                    +

                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                  • 2, Explanation of setting

                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                    • Same as 'Basic Edit Nodes'
                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                  • 3, Explanation of treeNode

                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                    • Same as 'Basic Edit Nodes'
                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                  + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/en/exedit/multiTree.html b/alive-admin/src/main/resources/static/ztree/demo/en/exedit/multiTree.html new file mode 100644 index 0000000..b078f1b --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/en/exedit/multiTree.html @@ -0,0 +1,94 @@ + + + + ZTREE DEMO - multiTree + + + + + + + + + + + +

                                                                                                                                                                                                                                                                  Multiple Trees

                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                  [ File Path: exedit/multiTree.html ]
                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                  • 1, Explanation of setting

                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                    • zTree enables drag and drop nodes between multiple trees, only need to create two draggable tree can be. And you can use the callback function and zTree method achieve a more complex operating rules, here is only the basic demo.
                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                    • On the 'setting' configuration information please refer to drag and drop, edit, etc. demo's instructions
                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                  • 2, Explanation of treeNode

                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                    • No special requirements on the node data, the user can add custom attributes.
                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                      + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/en/exhide/checkbox.html b/alive-admin/src/main/resources/static/ztree/demo/en/exhide/checkbox.html new file mode 100644 index 0000000..759701a --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/en/exhide/checkbox.html @@ -0,0 +1,161 @@ + + + + ZTREE DEMO - Hide With Checkbox Mode + + + + + + + + + + + + +

                                                                                                                                                                                                                                                                      Hide With Checkbox Mode

                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                      [ File Path: exhide/checkbox.html ]
                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                        • 1, Explanation of setting

                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                          • Use the freature which to hide nodes, you don't need to set any attributes.
                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                        • 2, Explanation of treeNode

                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                          • Before you init zTree, set treeNode.isHidden = true, and you can hide the node.
                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                          • Hide or show the nodes:
                                                                                                                                                                                                                                                                            + Try: [ Hide the nodes which be selected ]
                                                                                                                                                                                                                                                                            +     [ Show all of the nodes which be hidden ]
                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                            • Total nodes which 'isHidden' attribute is true:
                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                            • Total hidden nodes:
                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                            • Total check nodes: +   Total uncheck nodes:
                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                            • After hide nodes, you can see the 'isFirstNode' and 'isLastNode' attributes on the nodes which still be shown.
                                                                                                                                                                                                                                                                            • +

                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                        • 3、Other explanation

                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                          • Hide nodes will effect the 'isFirstNode' and 'isLastNode' attributes, but will not effect the 'getPreNode()' and 'getNextNode()' method.
                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                        + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/en/exhide/common.html b/alive-admin/src/main/resources/static/ztree/demo/en/exhide/common.html new file mode 100644 index 0000000..9d660a9 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/en/exhide/common.html @@ -0,0 +1,126 @@ + + + + ZTREE DEMO - Hide Ordinary Node + + + + + + + + + + + +

                                                                                                                                                                                                                                                                        Hide Ordinary Node

                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                        [ File Path: exhide/common.html ]
                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                          • 1, Explanation of setting

                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                            • Use this freature, you don't need to set any attributes.
                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                          • 2, Explanation of treeNode

                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                            • Before you init zTree, set treeNode.isHidden = true, and you can hide the node.
                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                            • Hide or show the nodes:

                                                                                                                                                                                                                                                                              + Try: [ Hide the nodes which be selected ]
                                                                                                                                                                                                                                                                              +     [ Show all of the nodes which be hidden ]

                                                                                                                                                                                                                                                                              +

                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                              • Total hidden nodes ('isHidden' is true):
                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                              • After hide nodes, you can see the 'isFirstNode' and 'isLastNode' attributes on the nodes which still be shown.
                                                                                                                                                                                                                                                                              • +

                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                          • 3、Other explanation

                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                            • Hide nodes will effect the 'isFirstNode' and 'isLastNode' attributes, but will not effect the 'getPreNode()' and 'getNextNode()' method.
                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                          + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/en/exhide/radio.html b/alive-admin/src/main/resources/static/ztree/demo/en/exhide/radio.html new file mode 100644 index 0000000..639d69c --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/en/exhide/radio.html @@ -0,0 +1,162 @@ + + + + ZTREE DEMO - Hide With Radio Mode + + + + + + + + + + + + +

                                                                                                                                                                                                                                                                          Hide With Radio Mode

                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                          [ File Path: exhide/radio.html ]
                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                            • 1, Explanation of setting

                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                              • Use the freature which to hide nodes, you don't need to set any attributes.
                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                            • 2, Explanation of treeNode

                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                              • Before you init zTree, set treeNode.isHidden = true, and you can hide the node.
                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                              • Hide or show the nodes:
                                                                                                                                                                                                                                                                                + Try: [ Hide the nodes which be selected ]
                                                                                                                                                                                                                                                                                +     [ Show all of the nodes which be hidden ]
                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                • Total nodes which 'isHidden' attribute is true:
                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                • Total hidden nodes:
                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                • Total check nodes: +   Total uncheck nodes:
                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                • After hide nodes, you can see the 'isFirstNode' and 'isLastNode' attributes on the nodes which still be shown.
                                                                                                                                                                                                                                                                                • +

                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                            • 3、Other explanation

                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                              • Hide nodes will effect the 'isFirstNode' and 'isLastNode' attributes, but will not effect the 'getPreNode()' and 'getNextNode()' method.
                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                            + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/en/index.html b/alive-admin/src/main/resources/static/ztree/demo/en/index.html new file mode 100644 index 0000000..8eeeaf4 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/en/index.html @@ -0,0 +1,158 @@ + + + + ZTREE DEMO + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                              + + + diff --git a/alive-admin/src/main/resources/static/ztree/demo/en/super/asyncForAll.html b/alive-admin/src/main/resources/static/ztree/demo/en/super/asyncForAll.html new file mode 100644 index 0000000..bda0ba1 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/en/super/asyncForAll.html @@ -0,0 +1,191 @@ + + + + ZTREE DEMO - async for All + + + + + + + + + + +

                                                                                                                                                                                                                                                                              Expand All Nodes with Async

                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                              [ File Path: super/asyncForAll.html ]
                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                • Explanation of implementation method

                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                  • Using 'onAsyncSuccess' / 'onAsyncError' callback and 'reAsyncChildNodes' or 'expandNode' method, you will achieve all functionalities.
                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                  • Note: If there are large amount parent nodes, please use delay to avoid excessive asynchronous process.
                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                  • Recommendation: please use the debugging tools to view the ajax loading process with network.
                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                  • Demonstrate operation +

                                                                                                                                                                                                                                                                                    + [ Expand All Nodes ]        + [ Load all nodes (don't expand) ]

                                                                                                                                                                                                                                                                                    + [ Reset zTree ]

                                                                                                                                                                                                                                                                                    +

                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/en/super/checkbox_radio.html b/alive-admin/src/main/resources/static/ztree/demo/en/super/checkbox_radio.html new file mode 100644 index 0000000..87ce15d --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/en/super/checkbox_radio.html @@ -0,0 +1,116 @@ + + + + ZTREE DEMO - checkbox & radio + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                Checkbox / Radio Coexistence

                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                [ File Path: super/checkbox_radio.html ]
                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                  • Explanation of implementation method

                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                    • zTree default checkbox and radio can not coexist, but can be used the custom DOM features to achieve this requirement, refer to the "Adding Custom DOM".
                                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                                    • For checkbox / radio association rules of the parent nodes and child nodes, according to the needs to develop its own rules.
                                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                  + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/en/super/diydom.html b/alive-admin/src/main/resources/static/ztree/demo/en/super/diydom.html new file mode 100644 index 0000000..07649d2 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/en/super/diydom.html @@ -0,0 +1,177 @@ + + + + ZTREE DEMO - addHoverDom / removeHoverDom / addDiyDom + + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                  Adding Custom DOM

                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                  [ File Path: super/diydom.html ]
                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                    • 1, Explanation of implementation method

                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                      • Use 'setting.view.addHoverDom / removeHoverDom / addDiyDom' attributes can easily display custom DOM.
                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                      • Adding custom DOM, is important to understand zTree node object naming rules to ensure the normal controls add DOM.
                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                      • If you add the browser's default ’select / checkbox / radio‘ DOM, please adjust the css, to ensure correctly display zTree.
                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                                    • 2, Explanation of setting

                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                      • Set 'setting.view.addHoverDom / removeHoverDom / addDiyDom' attributes, see the API documentation for more related contents.
                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                                    • 3, Explanation of treeNode

                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                      • No special requirements on the node data, the user can add custom attributes.
                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                    + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/en/super/dragWithOther.html b/alive-admin/src/main/resources/static/ztree/demo/en/super/dragWithOther.html new file mode 100644 index 0000000..31426c3 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/en/super/dragWithOther.html @@ -0,0 +1,234 @@ + + + + ZTREE DEMO - drag with other DOM + + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                    Drag With Other DOMs

                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                    [ File Path: super/dragWithOther.html ]
                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                      • Explanation of implementation method

                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                        • zTree v3.2 modified the event object in onDrag/onDrop, thus the nodes can be draged to other DOMs easily.
                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                        • To drag other DOMS to zTree, you need to build the drag codes by yourself.
                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                        • This is just a simple Demo. If you need more features, please build more complicated codes.
                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                      • Please drag and drop the following content to the tree node

                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                        TreeGrassFlower
                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                        TigerBearLion
                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                        + You can drag the nodes of level 2 to the above layer. +
                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                      + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/en/super/left_menu.html b/alive-admin/src/main/resources/static/ztree/demo/en/super/left_menu.html new file mode 100644 index 0000000..7dfe588 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/en/super/left_menu.html @@ -0,0 +1,152 @@ + + + + ZTREE DEMO - left_menu + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                      Left Menu

                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                      [ File Path: super/left_menu.html ]
                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                        • Explanation of implementation method

                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                          • The menu in the Demo's Web page is to use zTree to achieve, is to use css set interface, use the configuration 'setting' to achieve features, this demo achieve a simple example of the left menu, you can view the source code of Demo's Web Page for in-depth study.
                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                          • 1. According to your needs to modify the css, for example: the menu style on this Demo and Demo's Web page not the same.
                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                          • 2. Main configuration:
                                                                                                                                                                                                                                                                                            +     setting.view.showIcon / showLine / selectedMulti / dblClickExpand
                                                                                                                                                                                                                                                                                            +     setting.callback.onNodeCreated / beforeClick / onClick +
                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                          • 3. If need to keep single path, please refer to the source code of "Keep Single Path" Demo.
                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                          • 4. Other auxiliary rules, please write code based on your needs.
                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                        + + diff --git a/alive-admin/src/main/resources/static/ztree/demo/en/super/left_menuForOutLook.gif b/alive-admin/src/main/resources/static/ztree/demo/en/super/left_menuForOutLook.gif new file mode 100644 index 0000000..c252f0f Binary files /dev/null and b/alive-admin/src/main/resources/static/ztree/demo/en/super/left_menuForOutLook.gif differ diff --git a/alive-admin/src/main/resources/static/ztree/demo/en/super/left_menuForOutLook.html b/alive-admin/src/main/resources/static/ztree/demo/en/super/left_menuForOutLook.html new file mode 100644 index 0000000..8f7ddff --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/en/super/left_menuForOutLook.html @@ -0,0 +1,136 @@ + + + + ZTREE DEMO - left_menu for Outlook + + + + + + + + + + +

                                                                                                                                                                                                                                                                                        Left Menu Like OutLook Style

                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                        [ File Path: super/left_menuForOutLook.html ]
                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                          • Explanation of implementation method

                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                            • I make one left menu which resembles outlook.com, so share to everyone.
                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                            • 1. Please note that the css code of the source of this page.
                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                            • 2. Please note that the javascript code of the source of this page, especially the switch button is moved into the <a> tag when 'addDiyDom' callback be called
                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                            • 3. Use the method of add zTree class name to implement the switch button be hidden or showing.
                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                            • 4. Other auxiliary rules, please write code based on your needs.
                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                            • 5. The current rule description:
                                                                                                                                                                                                                                                                                              +   Click the root node can control the parent node be expanded or collapsed;
                                                                                                                                                                                                                                                                                              +   The parent nodes without root only are only clicked the arrow icon can control be expanded or collapsed;br/> +
                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                          + + diff --git a/alive-admin/src/main/resources/static/ztree/demo/en/super/left_menuForOutLook.png b/alive-admin/src/main/resources/static/ztree/demo/en/super/left_menuForOutLook.png new file mode 100644 index 0000000..36e8acf Binary files /dev/null and b/alive-admin/src/main/resources/static/ztree/demo/en/super/left_menuForOutLook.png differ diff --git a/alive-admin/src/main/resources/static/ztree/demo/en/super/oneclick.html b/alive-admin/src/main/resources/static/ztree/demo/en/super/oneclick.html new file mode 100644 index 0000000..9679ec3 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/en/super/oneclick.html @@ -0,0 +1,87 @@ + + + + ZTREE DEMO - one click + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                          Click to Expand Node

                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                          [ File Path: super/oneclick.html ]
                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                            • Explanation of implementation method

                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                              • zTree not provide a default click to expand node feature, but can use the onClick callback functions to easily implement this feature.
                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                              • In order to avoid conflict with the double-clicking, I recommended to turn off double-clicking expand node function, please set setting.view.dblClickExpand = false
                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                              • You can hide all the +/- switch, please see the page source, see the css.
                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                              • If you do not show + / - switch, then please set 'setting.view.showLine = false' to hide line.
                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                            + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/en/super/oneroot.html b/alive-admin/src/main/resources/static/ztree/demo/en/super/oneroot.html new file mode 100644 index 0000000..9d7eb53 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/en/super/oneroot.html @@ -0,0 +1,79 @@ + + + + ZTREE DEMO - one root + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                            Freeze the Root Node

                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                            [ File Path: demo/super/oneroot.html ]
                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                              • Explanation of implementation method

                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                • For only one root, and do not show +/- switch needs need to modify the css, and set the setting.
                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                • zTree v3.x can be for a given level, set the style, check out the page source, see the css.
                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                • Set setting.view.dblClickExpand to Function, you can turn off double-clicking for expand the root node.
                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                              + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/en/super/rightClickMenu.html b/alive-admin/src/main/resources/static/ztree/demo/en/super/rightClickMenu.html new file mode 100644 index 0000000..06e640c --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/en/super/rightClickMenu.html @@ -0,0 +1,168 @@ + + + + ZTREE DEMO - select menu + + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                              Right-click Menu

                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                              [ File Path: super/rightClickMenu.html ]
                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                • Explanation of implementation method

                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                  • Use 'beforeRightClick / onRightClick' callback function achieve right-click menu.
                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                  • Demo's menu is ugly, you can use a custom menu fine style.
                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                • Add Node
                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                • Delete Node
                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                • Check Node
                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                • Uncheck Node
                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                • Resume zTree
                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/en/super/select_menu.html b/alive-admin/src/main/resources/static/ztree/demo/en/super/select_menu.html new file mode 100644 index 0000000..6423f6e --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/en/super/select_menu.html @@ -0,0 +1,124 @@ + + + + ZTREE DEMO - select menu + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                Drop-down Menu

                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                [ File Path: super/select_menu.html ]
                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                •   Press Ctrl key to select multiple cities
                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                •   city: +  select
                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                • Explanation of implementation method

                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                  • Achieve this drop-down menu, it is relatively easy, you only need to control zTree Hide / Show, and location.
                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                  • Use zTree v3.x, you can select multiple nodes, so the multi-selection is also easy.
                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                  • Use the configuration parameters setting, fully meet the needs of most of the functionality.
                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/en/super/select_menu_checkbox.html b/alive-admin/src/main/resources/static/ztree/demo/en/super/select_menu_checkbox.html new file mode 100644 index 0000000..06b50d2 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/en/super/select_menu_checkbox.html @@ -0,0 +1,126 @@ + + + + ZTREE DEMO - checkbox select menu + + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                Drop-down Menu with checkbox

                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                [ File Path: super/select_menu_checkbox.html ]
                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                •   Check the checkbox to select or click the node
                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                •   Test: +  select
                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                • Explanation of implementation method

                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                  • You can achieve multi-selected drop-down menu with checkbox.
                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                  • This Demo is mainly used for compare with other drop-down menu.
                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/en/super/select_menu_radio.html b/alive-admin/src/main/resources/static/ztree/demo/en/super/select_menu_radio.html new file mode 100644 index 0000000..7e9e9d1 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/en/super/select_menu_radio.html @@ -0,0 +1,127 @@ + + + + ZTREE DEMO - radio select menu + + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                Drop-down Menu with radio

                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                [ File Path: super/select_menu_radio.html ]
                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                •   Check the radio to select or click the node
                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                •   Test: +  select
                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                • Explanation of implementation method

                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                  • You can achieve single-selected drop-down menu with radio.
                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                  • This Demo is mainly used for compare with other drop-down menu.
                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/demo/en/super/singlepath.html b/alive-admin/src/main/resources/static/ztree/demo/en/super/singlepath.html new file mode 100644 index 0000000..315eaf1 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/demo/en/super/singlepath.html @@ -0,0 +1,172 @@ + + + + ZTREE DEMO - single path + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                Keep Single Path

                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                [ File Path: super/singlepath.html ]
                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                  • Explanation of implementation method

                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                    • This Demo is the transformation from "Click to Expand Node" demo​​, tree only expand single path.
                                                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                                                    • Use 'setting.callback.beforeExpand / onExpand' callback function to achieve rules about expand
                                                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                  + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/js/jquery-1.4.4.min.js b/alive-admin/src/main/resources/static/ztree/js/jquery-1.4.4.min.js new file mode 100644 index 0000000..8f3ca2e --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/js/jquery-1.4.4.min.js @@ -0,0 +1,167 @@ +/*! + * jQuery JavaScript Library v1.4.4 + * http://jquery.com/ + * + * Copyright 2010, John Resig + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * Includes Sizzle.js + * http://sizzlejs.com/ + * Copyright 2010, The Dojo Foundation + * Released under the MIT, BSD, and GPL Licenses. + * + * Date: Thu Nov 11 19:04:53 2010 -0500 + */ +(function(E,B){function ka(a,b,d){if(d===B&&a.nodeType===1){d=a.getAttribute("data-"+b);if(typeof d==="string"){try{d=d==="true"?true:d==="false"?false:d==="null"?null:!c.isNaN(d)?parseFloat(d):Ja.test(d)?c.parseJSON(d):d}catch(e){}c.data(a,b,d)}else d=B}return d}function U(){return false}function ca(){return true}function la(a,b,d){d[0].type=a;return c.event.handle.apply(b,d)}function Ka(a){var b,d,e,f,h,l,k,o,x,r,A,C=[];f=[];h=c.data(this,this.nodeType?"events":"__events__");if(typeof h==="function")h= +h.events;if(!(a.liveFired===this||!h||!h.live||a.button&&a.type==="click")){if(a.namespace)A=RegExp("(^|\\.)"+a.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)");a.liveFired=this;var J=h.live.slice(0);for(k=0;kd)break;a.currentTarget=f.elem;a.data=f.handleObj.data;a.handleObj=f.handleObj;A=f.handleObj.origHandler.apply(f.elem,arguments);if(A===false||a.isPropagationStopped()){d=f.level;if(A===false)b=false;if(a.isImmediatePropagationStopped())break}}return b}}function Y(a,b){return(a&&a!=="*"?a+".":"")+b.replace(La, +"`").replace(Ma,"&")}function ma(a,b,d){if(c.isFunction(b))return c.grep(a,function(f,h){return!!b.call(f,h,f)===d});else if(b.nodeType)return c.grep(a,function(f){return f===b===d});else if(typeof b==="string"){var e=c.grep(a,function(f){return f.nodeType===1});if(Na.test(b))return c.filter(b,e,!d);else b=c.filter(b,e)}return c.grep(a,function(f){return c.inArray(f,b)>=0===d})}function na(a,b){var d=0;b.each(function(){if(this.nodeName===(a[d]&&a[d].nodeName)){var e=c.data(a[d++]),f=c.data(this, +e);if(e=e&&e.events){delete f.handle;f.events={};for(var h in e)for(var l in e[h])c.event.add(this,h,e[h][l],e[h][l].data)}}})}function Oa(a,b){b.src?c.ajax({url:b.src,async:false,dataType:"script"}):c.globalEval(b.text||b.textContent||b.innerHTML||"");b.parentNode&&b.parentNode.removeChild(b)}function oa(a,b,d){var e=b==="width"?a.offsetWidth:a.offsetHeight;if(d==="border")return e;c.each(b==="width"?Pa:Qa,function(){d||(e-=parseFloat(c.css(a,"padding"+this))||0);if(d==="margin")e+=parseFloat(c.css(a, +"margin"+this))||0;else e-=parseFloat(c.css(a,"border"+this+"Width"))||0});return e}function da(a,b,d,e){if(c.isArray(b)&&b.length)c.each(b,function(f,h){d||Ra.test(a)?e(a,h):da(a+"["+(typeof h==="object"||c.isArray(h)?f:"")+"]",h,d,e)});else if(!d&&b!=null&&typeof b==="object")c.isEmptyObject(b)?e(a,""):c.each(b,function(f,h){da(a+"["+f+"]",h,d,e)});else e(a,b)}function S(a,b){var d={};c.each(pa.concat.apply([],pa.slice(0,b)),function(){d[this]=a});return d}function qa(a){if(!ea[a]){var b=c("<"+ +a+">").appendTo("body"),d=b.css("display");b.remove();if(d==="none"||d==="")d="block";ea[a]=d}return ea[a]}function fa(a){return c.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:false}var t=E.document,c=function(){function a(){if(!b.isReady){try{t.documentElement.doScroll("left")}catch(j){setTimeout(a,1);return}b.ready()}}var b=function(j,s){return new b.fn.init(j,s)},d=E.jQuery,e=E.$,f,h=/^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]+)$)/,l=/\S/,k=/^\s+/,o=/\s+$/,x=/\W/,r=/\d/,A=/^<(\w+)\s*\/?>(?:<\/\1>)?$/, +C=/^[\],:{}\s]*$/,J=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,w=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,I=/(?:^|:|,)(?:\s*\[)+/g,L=/(webkit)[ \/]([\w.]+)/,g=/(opera)(?:.*version)?[ \/]([\w.]+)/,i=/(msie) ([\w.]+)/,n=/(mozilla)(?:.*? rv:([\w.]+))?/,m=navigator.userAgent,p=false,q=[],u,y=Object.prototype.toString,F=Object.prototype.hasOwnProperty,M=Array.prototype.push,N=Array.prototype.slice,O=String.prototype.trim,D=Array.prototype.indexOf,R={};b.fn=b.prototype={init:function(j, +s){var v,z,H;if(!j)return this;if(j.nodeType){this.context=this[0]=j;this.length=1;return this}if(j==="body"&&!s&&t.body){this.context=t;this[0]=t.body;this.selector="body";this.length=1;return this}if(typeof j==="string")if((v=h.exec(j))&&(v[1]||!s))if(v[1]){H=s?s.ownerDocument||s:t;if(z=A.exec(j))if(b.isPlainObject(s)){j=[t.createElement(z[1])];b.fn.attr.call(j,s,true)}else j=[H.createElement(z[1])];else{z=b.buildFragment([v[1]],[H]);j=(z.cacheable?z.fragment.cloneNode(true):z.fragment).childNodes}return b.merge(this, +j)}else{if((z=t.getElementById(v[2]))&&z.parentNode){if(z.id!==v[2])return f.find(j);this.length=1;this[0]=z}this.context=t;this.selector=j;return this}else if(!s&&!x.test(j)){this.selector=j;this.context=t;j=t.getElementsByTagName(j);return b.merge(this,j)}else return!s||s.jquery?(s||f).find(j):b(s).find(j);else if(b.isFunction(j))return f.ready(j);if(j.selector!==B){this.selector=j.selector;this.context=j.context}return b.makeArray(j,this)},selector:"",jquery:"1.4.4",length:0,size:function(){return this.length}, +toArray:function(){return N.call(this,0)},get:function(j){return j==null?this.toArray():j<0?this.slice(j)[0]:this[j]},pushStack:function(j,s,v){var z=b();b.isArray(j)?M.apply(z,j):b.merge(z,j);z.prevObject=this;z.context=this.context;if(s==="find")z.selector=this.selector+(this.selector?" ":"")+v;else if(s)z.selector=this.selector+"."+s+"("+v+")";return z},each:function(j,s){return b.each(this,j,s)},ready:function(j){b.bindReady();if(b.isReady)j.call(t,b);else q&&q.push(j);return this},eq:function(j){return j=== +-1?this.slice(j):this.slice(j,+j+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(N.apply(this,arguments),"slice",N.call(arguments).join(","))},map:function(j){return this.pushStack(b.map(this,function(s,v){return j.call(s,v,s)}))},end:function(){return this.prevObject||b(null)},push:M,sort:[].sort,splice:[].splice};b.fn.init.prototype=b.fn;b.extend=b.fn.extend=function(){var j,s,v,z,H,G=arguments[0]||{},K=1,Q=arguments.length,ga=false; +if(typeof G==="boolean"){ga=G;G=arguments[1]||{};K=2}if(typeof G!=="object"&&!b.isFunction(G))G={};if(Q===K){G=this;--K}for(;K0))if(q){var s=0,v=q;for(q=null;j=v[s++];)j.call(t,b);b.fn.trigger&&b(t).trigger("ready").unbind("ready")}}},bindReady:function(){if(!p){p=true;if(t.readyState==="complete")return setTimeout(b.ready,1);if(t.addEventListener){t.addEventListener("DOMContentLoaded",u,false);E.addEventListener("load",b.ready,false)}else if(t.attachEvent){t.attachEvent("onreadystatechange",u);E.attachEvent("onload", +b.ready);var j=false;try{j=E.frameElement==null}catch(s){}t.documentElement.doScroll&&j&&a()}}},isFunction:function(j){return b.type(j)==="function"},isArray:Array.isArray||function(j){return b.type(j)==="array"},isWindow:function(j){return j&&typeof j==="object"&&"setInterval"in j},isNaN:function(j){return j==null||!r.test(j)||isNaN(j)},type:function(j){return j==null?String(j):R[y.call(j)]||"object"},isPlainObject:function(j){if(!j||b.type(j)!=="object"||j.nodeType||b.isWindow(j))return false;if(j.constructor&& +!F.call(j,"constructor")&&!F.call(j.constructor.prototype,"isPrototypeOf"))return false;for(var s in j);return s===B||F.call(j,s)},isEmptyObject:function(j){for(var s in j)return false;return true},error:function(j){throw j;},parseJSON:function(j){if(typeof j!=="string"||!j)return null;j=b.trim(j);if(C.test(j.replace(J,"@").replace(w,"]").replace(I,"")))return E.JSON&&E.JSON.parse?E.JSON.parse(j):(new Function("return "+j))();else b.error("Invalid JSON: "+j)},noop:function(){},globalEval:function(j){if(j&& +l.test(j)){var s=t.getElementsByTagName("head")[0]||t.documentElement,v=t.createElement("script");v.type="text/javascript";if(b.support.scriptEval)v.appendChild(t.createTextNode(j));else v.text=j;s.insertBefore(v,s.firstChild);s.removeChild(v)}},nodeName:function(j,s){return j.nodeName&&j.nodeName.toUpperCase()===s.toUpperCase()},each:function(j,s,v){var z,H=0,G=j.length,K=G===B||b.isFunction(j);if(v)if(K)for(z in j){if(s.apply(j[z],v)===false)break}else for(;H
                                                                                                                                                                                                                                                                                                  a";var f=d.getElementsByTagName("*"),h=d.getElementsByTagName("a")[0],l=t.createElement("select"), +k=l.appendChild(t.createElement("option"));if(!(!f||!f.length||!h)){c.support={leadingWhitespace:d.firstChild.nodeType===3,tbody:!d.getElementsByTagName("tbody").length,htmlSerialize:!!d.getElementsByTagName("link").length,style:/red/.test(h.getAttribute("style")),hrefNormalized:h.getAttribute("href")==="/a",opacity:/^0.55$/.test(h.style.opacity),cssFloat:!!h.style.cssFloat,checkOn:d.getElementsByTagName("input")[0].value==="on",optSelected:k.selected,deleteExpando:true,optDisabled:false,checkClone:false, +scriptEval:false,noCloneEvent:true,boxModel:null,inlineBlockNeedsLayout:false,shrinkWrapBlocks:false,reliableHiddenOffsets:true};l.disabled=true;c.support.optDisabled=!k.disabled;b.type="text/javascript";try{b.appendChild(t.createTextNode("window."+e+"=1;"))}catch(o){}a.insertBefore(b,a.firstChild);if(E[e]){c.support.scriptEval=true;delete E[e]}try{delete b.test}catch(x){c.support.deleteExpando=false}a.removeChild(b);if(d.attachEvent&&d.fireEvent){d.attachEvent("onclick",function r(){c.support.noCloneEvent= +false;d.detachEvent("onclick",r)});d.cloneNode(true).fireEvent("onclick")}d=t.createElement("div");d.innerHTML="";a=t.createDocumentFragment();a.appendChild(d.firstChild);c.support.checkClone=a.cloneNode(true).cloneNode(true).lastChild.checked;c(function(){var r=t.createElement("div");r.style.width=r.style.paddingLeft="1px";t.body.appendChild(r);c.boxModel=c.support.boxModel=r.offsetWidth===2;if("zoom"in r.style){r.style.display="inline";r.style.zoom= +1;c.support.inlineBlockNeedsLayout=r.offsetWidth===2;r.style.display="";r.innerHTML="
                                                                                                                                                                                                                                                                                                  ";c.support.shrinkWrapBlocks=r.offsetWidth!==2}r.innerHTML="
                                                                                                                                                                                                                                                                                                  t
                                                                                                                                                                                                                                                                                                  ";var A=r.getElementsByTagName("td");c.support.reliableHiddenOffsets=A[0].offsetHeight===0;A[0].style.display="";A[1].style.display="none";c.support.reliableHiddenOffsets=c.support.reliableHiddenOffsets&&A[0].offsetHeight===0;r.innerHTML="";t.body.removeChild(r).style.display= +"none"});a=function(r){var A=t.createElement("div");r="on"+r;var C=r in A;if(!C){A.setAttribute(r,"return;");C=typeof A[r]==="function"}return C};c.support.submitBubbles=a("submit");c.support.changeBubbles=a("change");a=b=d=f=h=null}})();var ra={},Ja=/^(?:\{.*\}|\[.*\])$/;c.extend({cache:{},uuid:0,expando:"jQuery"+c.now(),noData:{embed:true,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:true},data:function(a,b,d){if(c.acceptData(a)){a=a==E?ra:a;var e=a.nodeType,f=e?a[c.expando]:null,h= +c.cache;if(!(e&&!f&&typeof b==="string"&&d===B)){if(e)f||(a[c.expando]=f=++c.uuid);else h=a;if(typeof b==="object")if(e)h[f]=c.extend(h[f],b);else c.extend(h,b);else if(e&&!h[f])h[f]={};a=e?h[f]:h;if(d!==B)a[b]=d;return typeof b==="string"?a[b]:a}}},removeData:function(a,b){if(c.acceptData(a)){a=a==E?ra:a;var d=a.nodeType,e=d?a[c.expando]:a,f=c.cache,h=d?f[e]:e;if(b){if(h){delete h[b];d&&c.isEmptyObject(h)&&c.removeData(a)}}else if(d&&c.support.deleteExpando)delete a[c.expando];else if(a.removeAttribute)a.removeAttribute(c.expando); +else if(d)delete f[e];else for(var l in a)delete a[l]}},acceptData:function(a){if(a.nodeName){var b=c.noData[a.nodeName.toLowerCase()];if(b)return!(b===true||a.getAttribute("classid")!==b)}return true}});c.fn.extend({data:function(a,b){var d=null;if(typeof a==="undefined"){if(this.length){var e=this[0].attributes,f;d=c.data(this[0]);for(var h=0,l=e.length;h-1)return true;return false},val:function(a){if(!arguments.length){var b=this[0];if(b){if(c.nodeName(b,"option")){var d=b.attributes.value;return!d||d.specified?b.value:b.text}if(c.nodeName(b,"select")){var e=b.selectedIndex;d=[];var f=b.options;b=b.type==="select-one"; +if(e<0)return null;var h=b?e:0;for(e=b?e+1:f.length;h=0;else if(c.nodeName(this,"select")){var A=c.makeArray(r);c("option",this).each(function(){this.selected=c.inArray(c(this).val(),A)>=0});if(!A.length)this.selectedIndex=-1}else this.value=r}})}});c.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true}, +attr:function(a,b,d,e){if(!a||a.nodeType===3||a.nodeType===8)return B;if(e&&b in c.attrFn)return c(a)[b](d);e=a.nodeType!==1||!c.isXMLDoc(a);var f=d!==B;b=e&&c.props[b]||b;var h=Ta.test(b);if((b in a||a[b]!==B)&&e&&!h){if(f){b==="type"&&Ua.test(a.nodeName)&&a.parentNode&&c.error("type property can't be changed");if(d===null)a.nodeType===1&&a.removeAttribute(b);else a[b]=d}if(c.nodeName(a,"form")&&a.getAttributeNode(b))return a.getAttributeNode(b).nodeValue;if(b==="tabIndex")return(b=a.getAttributeNode("tabIndex"))&& +b.specified?b.value:Va.test(a.nodeName)||Wa.test(a.nodeName)&&a.href?0:B;return a[b]}if(!c.support.style&&e&&b==="style"){if(f)a.style.cssText=""+d;return a.style.cssText}f&&a.setAttribute(b,""+d);if(!a.attributes[b]&&a.hasAttribute&&!a.hasAttribute(b))return B;a=!c.support.hrefNormalized&&e&&h?a.getAttribute(b,2):a.getAttribute(b);return a===null?B:a}});var X=/\.(.*)$/,ia=/^(?:textarea|input|select)$/i,La=/\./g,Ma=/ /g,Xa=/[^\w\s.|`]/g,Ya=function(a){return a.replace(Xa,"\\$&")},ua={focusin:0,focusout:0}; +c.event={add:function(a,b,d,e){if(!(a.nodeType===3||a.nodeType===8)){if(c.isWindow(a)&&a!==E&&!a.frameElement)a=E;if(d===false)d=U;else if(!d)return;var f,h;if(d.handler){f=d;d=f.handler}if(!d.guid)d.guid=c.guid++;if(h=c.data(a)){var l=a.nodeType?"events":"__events__",k=h[l],o=h.handle;if(typeof k==="function"){o=k.handle;k=k.events}else if(!k){a.nodeType||(h[l]=h=function(){});h.events=k={}}if(!o)h.handle=o=function(){return typeof c!=="undefined"&&!c.event.triggered?c.event.handle.apply(o.elem, +arguments):B};o.elem=a;b=b.split(" ");for(var x=0,r;l=b[x++];){h=f?c.extend({},f):{handler:d,data:e};if(l.indexOf(".")>-1){r=l.split(".");l=r.shift();h.namespace=r.slice(0).sort().join(".")}else{r=[];h.namespace=""}h.type=l;if(!h.guid)h.guid=d.guid;var A=k[l],C=c.event.special[l]||{};if(!A){A=k[l]=[];if(!C.setup||C.setup.call(a,e,r,o)===false)if(a.addEventListener)a.addEventListener(l,o,false);else a.attachEvent&&a.attachEvent("on"+l,o)}if(C.add){C.add.call(a,h);if(!h.handler.guid)h.handler.guid= +d.guid}A.push(h);c.event.global[l]=true}a=null}}},global:{},remove:function(a,b,d,e){if(!(a.nodeType===3||a.nodeType===8)){if(d===false)d=U;var f,h,l=0,k,o,x,r,A,C,J=a.nodeType?"events":"__events__",w=c.data(a),I=w&&w[J];if(w&&I){if(typeof I==="function"){w=I;I=I.events}if(b&&b.type){d=b.handler;b=b.type}if(!b||typeof b==="string"&&b.charAt(0)==="."){b=b||"";for(f in I)c.event.remove(a,f+b)}else{for(b=b.split(" ");f=b[l++];){r=f;k=f.indexOf(".")<0;o=[];if(!k){o=f.split(".");f=o.shift();x=RegExp("(^|\\.)"+ +c.map(o.slice(0).sort(),Ya).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(A=I[f])if(d){r=c.event.special[f]||{};for(h=e||0;h=0){a.type=f=f.slice(0,-1);a.exclusive=true}if(!d){a.stopPropagation();c.event.global[f]&&c.each(c.cache,function(){this.events&&this.events[f]&&c.event.trigger(a,b,this.handle.elem)})}if(!d||d.nodeType===3||d.nodeType=== +8)return B;a.result=B;a.target=d;b=c.makeArray(b);b.unshift(a)}a.currentTarget=d;(e=d.nodeType?c.data(d,"handle"):(c.data(d,"__events__")||{}).handle)&&e.apply(d,b);e=d.parentNode||d.ownerDocument;try{if(!(d&&d.nodeName&&c.noData[d.nodeName.toLowerCase()]))if(d["on"+f]&&d["on"+f].apply(d,b)===false){a.result=false;a.preventDefault()}}catch(h){}if(!a.isPropagationStopped()&&e)c.event.trigger(a,b,e,true);else if(!a.isDefaultPrevented()){var l;e=a.target;var k=f.replace(X,""),o=c.nodeName(e,"a")&&k=== +"click",x=c.event.special[k]||{};if((!x._default||x._default.call(d,a)===false)&&!o&&!(e&&e.nodeName&&c.noData[e.nodeName.toLowerCase()])){try{if(e[k]){if(l=e["on"+k])e["on"+k]=null;c.event.triggered=true;e[k]()}}catch(r){}if(l)e["on"+k]=l;c.event.triggered=false}}},handle:function(a){var b,d,e,f;d=[];var h=c.makeArray(arguments);a=h[0]=c.event.fix(a||E.event);a.currentTarget=this;b=a.type.indexOf(".")<0&&!a.exclusive;if(!b){e=a.type.split(".");a.type=e.shift();d=e.slice(0).sort();e=RegExp("(^|\\.)"+ +d.join("\\.(?:.*\\.)?")+"(\\.|$)")}a.namespace=a.namespace||d.join(".");f=c.data(this,this.nodeType?"events":"__events__");if(typeof f==="function")f=f.events;d=(f||{})[a.type];if(f&&d){d=d.slice(0);f=0;for(var l=d.length;f-1?c.map(a.options,function(e){return e.selected}).join("-"):"";else if(a.nodeName.toLowerCase()==="select")d=a.selectedIndex;return d},Z=function(a,b){var d=a.target,e,f;if(!(!ia.test(d.nodeName)||d.readOnly)){e=c.data(d,"_change_data");f=xa(d);if(a.type!=="focusout"||d.type!=="radio")c.data(d,"_change_data",f);if(!(e===B||f===e))if(e!=null||f){a.type="change";a.liveFired= +B;return c.event.trigger(a,b,d)}}};c.event.special.change={filters:{focusout:Z,beforedeactivate:Z,click:function(a){var b=a.target,d=b.type;if(d==="radio"||d==="checkbox"||b.nodeName.toLowerCase()==="select")return Z.call(this,a)},keydown:function(a){var b=a.target,d=b.type;if(a.keyCode===13&&b.nodeName.toLowerCase()!=="textarea"||a.keyCode===32&&(d==="checkbox"||d==="radio")||d==="select-multiple")return Z.call(this,a)},beforeactivate:function(a){a=a.target;c.data(a,"_change_data",xa(a))}},setup:function(){if(this.type=== +"file")return false;for(var a in V)c.event.add(this,a+".specialChange",V[a]);return ia.test(this.nodeName)},teardown:function(){c.event.remove(this,".specialChange");return ia.test(this.nodeName)}};V=c.event.special.change.filters;V.focus=V.beforeactivate}t.addEventListener&&c.each({focus:"focusin",blur:"focusout"},function(a,b){function d(e){e=c.event.fix(e);e.type=b;return c.event.trigger(e,null,e.target)}c.event.special[b]={setup:function(){ua[b]++===0&&t.addEventListener(a,d,true)},teardown:function(){--ua[b]=== +0&&t.removeEventListener(a,d,true)}}});c.each(["bind","one"],function(a,b){c.fn[b]=function(d,e,f){if(typeof d==="object"){for(var h in d)this[b](h,e,d[h],f);return this}if(c.isFunction(e)||e===false){f=e;e=B}var l=b==="one"?c.proxy(f,function(o){c(this).unbind(o,l);return f.apply(this,arguments)}):f;if(d==="unload"&&b!=="one")this.one(d,e,f);else{h=0;for(var k=this.length;h0?this.bind(b,d,e):this.trigger(b)};if(c.attrFn)c.attrFn[b]=true});E.attachEvent&&!E.addEventListener&&c(E).bind("unload",function(){for(var a in c.cache)if(c.cache[a].handle)try{c.event.remove(c.cache[a].handle.elem)}catch(b){}}); +(function(){function a(g,i,n,m,p,q){p=0;for(var u=m.length;p0){F=y;break}}y=y[g]}m[p]=F}}}var d=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,e=0,f=Object.prototype.toString,h=false,l=true;[0,0].sort(function(){l=false;return 0});var k=function(g,i,n,m){n=n||[];var p=i=i||t;if(i.nodeType!==1&&i.nodeType!==9)return[];if(!g||typeof g!=="string")return n;var q,u,y,F,M,N=true,O=k.isXML(i),D=[],R=g;do{d.exec("");if(q=d.exec(R)){R=q[3];D.push(q[1]);if(q[2]){F=q[3]; +break}}}while(q);if(D.length>1&&x.exec(g))if(D.length===2&&o.relative[D[0]])u=L(D[0]+D[1],i);else for(u=o.relative[D[0]]?[i]:k(D.shift(),i);D.length;){g=D.shift();if(o.relative[g])g+=D.shift();u=L(g,u)}else{if(!m&&D.length>1&&i.nodeType===9&&!O&&o.match.ID.test(D[0])&&!o.match.ID.test(D[D.length-1])){q=k.find(D.shift(),i,O);i=q.expr?k.filter(q.expr,q.set)[0]:q.set[0]}if(i){q=m?{expr:D.pop(),set:C(m)}:k.find(D.pop(),D.length===1&&(D[0]==="~"||D[0]==="+")&&i.parentNode?i.parentNode:i,O);u=q.expr?k.filter(q.expr, +q.set):q.set;if(D.length>0)y=C(u);else N=false;for(;D.length;){q=M=D.pop();if(o.relative[M])q=D.pop();else M="";if(q==null)q=i;o.relative[M](y,q,O)}}else y=[]}y||(y=u);y||k.error(M||g);if(f.call(y)==="[object Array]")if(N)if(i&&i.nodeType===1)for(g=0;y[g]!=null;g++){if(y[g]&&(y[g]===true||y[g].nodeType===1&&k.contains(i,y[g])))n.push(u[g])}else for(g=0;y[g]!=null;g++)y[g]&&y[g].nodeType===1&&n.push(u[g]);else n.push.apply(n,y);else C(y,n);if(F){k(F,p,n,m);k.uniqueSort(n)}return n};k.uniqueSort=function(g){if(w){h= +l;g.sort(w);if(h)for(var i=1;i0};k.find=function(g,i,n){var m;if(!g)return[];for(var p=0,q=o.order.length;p":function(g,i){var n,m=typeof i==="string",p=0,q=g.length;if(m&&!/\W/.test(i))for(i=i.toLowerCase();p=0))n||m.push(u);else if(n)i[q]=false;return false},ID:function(g){return g[1].replace(/\\/g,"")},TAG:function(g){return g[1].toLowerCase()},CHILD:function(g){if(g[1]==="nth"){var i=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(g[2]==="even"&&"2n"||g[2]==="odd"&&"2n+1"||!/\D/.test(g[2])&&"0n+"+g[2]||g[2]);g[2]=i[1]+(i[2]||1)-0;g[3]=i[3]-0}g[0]=e++;return g},ATTR:function(g,i,n, +m,p,q){i=g[1].replace(/\\/g,"");if(!q&&o.attrMap[i])g[1]=o.attrMap[i];if(g[2]==="~=")g[4]=" "+g[4]+" ";return g},PSEUDO:function(g,i,n,m,p){if(g[1]==="not")if((d.exec(g[3])||"").length>1||/^\w/.test(g[3]))g[3]=k(g[3],null,null,i);else{g=k.filter(g[3],i,n,true^p);n||m.push.apply(m,g);return false}else if(o.match.POS.test(g[0])||o.match.CHILD.test(g[0]))return true;return g},POS:function(g){g.unshift(true);return g}},filters:{enabled:function(g){return g.disabled===false&&g.type!=="hidden"},disabled:function(g){return g.disabled=== +true},checked:function(g){return g.checked===true},selected:function(g){return g.selected===true},parent:function(g){return!!g.firstChild},empty:function(g){return!g.firstChild},has:function(g,i,n){return!!k(n[3],g).length},header:function(g){return/h\d/i.test(g.nodeName)},text:function(g){return"text"===g.type},radio:function(g){return"radio"===g.type},checkbox:function(g){return"checkbox"===g.type},file:function(g){return"file"===g.type},password:function(g){return"password"===g.type},submit:function(g){return"submit"=== +g.type},image:function(g){return"image"===g.type},reset:function(g){return"reset"===g.type},button:function(g){return"button"===g.type||g.nodeName.toLowerCase()==="button"},input:function(g){return/input|select|textarea|button/i.test(g.nodeName)}},setFilters:{first:function(g,i){return i===0},last:function(g,i,n,m){return i===m.length-1},even:function(g,i){return i%2===0},odd:function(g,i){return i%2===1},lt:function(g,i,n){return in[3]-0},nth:function(g,i,n){return n[3]- +0===i},eq:function(g,i,n){return n[3]-0===i}},filter:{PSEUDO:function(g,i,n,m){var p=i[1],q=o.filters[p];if(q)return q(g,n,i,m);else if(p==="contains")return(g.textContent||g.innerText||k.getText([g])||"").indexOf(i[3])>=0;else if(p==="not"){i=i[3];n=0;for(m=i.length;n=0}},ID:function(g,i){return g.nodeType===1&&g.getAttribute("id")===i},TAG:function(g,i){return i==="*"&&g.nodeType===1||g.nodeName.toLowerCase()=== +i},CLASS:function(g,i){return(" "+(g.className||g.getAttribute("class"))+" ").indexOf(i)>-1},ATTR:function(g,i){var n=i[1];n=o.attrHandle[n]?o.attrHandle[n](g):g[n]!=null?g[n]:g.getAttribute(n);var m=n+"",p=i[2],q=i[4];return n==null?p==="!=":p==="="?m===q:p==="*="?m.indexOf(q)>=0:p==="~="?(" "+m+" ").indexOf(q)>=0:!q?m&&n!==false:p==="!="?m!==q:p==="^="?m.indexOf(q)===0:p==="$="?m.substr(m.length-q.length)===q:p==="|="?m===q||m.substr(0,q.length+1)===q+"-":false},POS:function(g,i,n,m){var p=o.setFilters[i[2]]; +if(p)return p(g,n,i,m)}}},x=o.match.POS,r=function(g,i){return"\\"+(i-0+1)},A;for(A in o.match){o.match[A]=RegExp(o.match[A].source+/(?![^\[]*\])(?![^\(]*\))/.source);o.leftMatch[A]=RegExp(/(^(?:.|\r|\n)*?)/.source+o.match[A].source.replace(/\\(\d+)/g,r))}var C=function(g,i){g=Array.prototype.slice.call(g,0);if(i){i.push.apply(i,g);return i}return g};try{Array.prototype.slice.call(t.documentElement.childNodes,0)}catch(J){C=function(g,i){var n=0,m=i||[];if(f.call(g)==="[object Array]")Array.prototype.push.apply(m, +g);else if(typeof g.length==="number")for(var p=g.length;n";n.insertBefore(g,n.firstChild);if(t.getElementById(i)){o.find.ID=function(m,p,q){if(typeof p.getElementById!=="undefined"&&!q)return(p=p.getElementById(m[1]))?p.id===m[1]||typeof p.getAttributeNode!=="undefined"&&p.getAttributeNode("id").nodeValue===m[1]?[p]:B:[]};o.filter.ID=function(m,p){var q=typeof m.getAttributeNode!=="undefined"&&m.getAttributeNode("id");return m.nodeType===1&&q&&q.nodeValue===p}}n.removeChild(g); +n=g=null})();(function(){var g=t.createElement("div");g.appendChild(t.createComment(""));if(g.getElementsByTagName("*").length>0)o.find.TAG=function(i,n){var m=n.getElementsByTagName(i[1]);if(i[1]==="*"){for(var p=[],q=0;m[q];q++)m[q].nodeType===1&&p.push(m[q]);m=p}return m};g.innerHTML="";if(g.firstChild&&typeof g.firstChild.getAttribute!=="undefined"&&g.firstChild.getAttribute("href")!=="#")o.attrHandle.href=function(i){return i.getAttribute("href",2)};g=null})();t.querySelectorAll&& +function(){var g=k,i=t.createElement("div");i.innerHTML="

                                                                                                                                                                                                                                                                                                  ";if(!(i.querySelectorAll&&i.querySelectorAll(".TEST").length===0)){k=function(m,p,q,u){p=p||t;m=m.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!u&&!k.isXML(p))if(p.nodeType===9)try{return C(p.querySelectorAll(m),q)}catch(y){}else if(p.nodeType===1&&p.nodeName.toLowerCase()!=="object"){var F=p.getAttribute("id"),M=F||"__sizzle__";F||p.setAttribute("id",M);try{return C(p.querySelectorAll("#"+M+" "+m),q)}catch(N){}finally{F|| +p.removeAttribute("id")}}return g(m,p,q,u)};for(var n in g)k[n]=g[n];i=null}}();(function(){var g=t.documentElement,i=g.matchesSelector||g.mozMatchesSelector||g.webkitMatchesSelector||g.msMatchesSelector,n=false;try{i.call(t.documentElement,"[test!='']:sizzle")}catch(m){n=true}if(i)k.matchesSelector=function(p,q){q=q.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!k.isXML(p))try{if(n||!o.match.PSEUDO.test(q)&&!/!=/.test(q))return i.call(p,q)}catch(u){}return k(q,null,null,[p]).length>0}})();(function(){var g= +t.createElement("div");g.innerHTML="
                                                                                                                                                                                                                                                                                                  ";if(!(!g.getElementsByClassName||g.getElementsByClassName("e").length===0)){g.lastChild.className="e";if(g.getElementsByClassName("e").length!==1){o.order.splice(1,0,"CLASS");o.find.CLASS=function(i,n,m){if(typeof n.getElementsByClassName!=="undefined"&&!m)return n.getElementsByClassName(i[1])};g=null}}})();k.contains=t.documentElement.contains?function(g,i){return g!==i&&(g.contains?g.contains(i):true)}:t.documentElement.compareDocumentPosition? +function(g,i){return!!(g.compareDocumentPosition(i)&16)}:function(){return false};k.isXML=function(g){return(g=(g?g.ownerDocument||g:0).documentElement)?g.nodeName!=="HTML":false};var L=function(g,i){for(var n,m=[],p="",q=i.nodeType?[i]:i;n=o.match.PSEUDO.exec(g);){p+=n[0];g=g.replace(o.match.PSEUDO,"")}g=o.relative[g]?g+"*":g;n=0;for(var u=q.length;n0)for(var h=d;h0},closest:function(a,b){var d=[],e,f,h=this[0];if(c.isArray(a)){var l,k={},o=1;if(h&&a.length){e=0;for(f=a.length;e-1:c(h).is(e))d.push({selector:l,elem:h,level:o})}h= +h.parentNode;o++}}return d}l=cb.test(a)?c(a,b||this.context):null;e=0;for(f=this.length;e-1:c.find.matchesSelector(h,a)){d.push(h);break}else{h=h.parentNode;if(!h||!h.ownerDocument||h===b)break}d=d.length>1?c.unique(d):d;return this.pushStack(d,"closest",a)},index:function(a){if(!a||typeof a==="string")return c.inArray(this[0],a?c(a):this.parent().children());return c.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var d=typeof a==="string"?c(a,b||this.context): +c.makeArray(a),e=c.merge(this.get(),d);return this.pushStack(!d[0]||!d[0].parentNode||d[0].parentNode.nodeType===11||!e[0]||!e[0].parentNode||e[0].parentNode.nodeType===11?e:c.unique(e))},andSelf:function(){return this.add(this.prevObject)}});c.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return c.dir(a,"parentNode")},parentsUntil:function(a,b,d){return c.dir(a,"parentNode",d)},next:function(a){return c.nth(a,2,"nextSibling")},prev:function(a){return c.nth(a, +2,"previousSibling")},nextAll:function(a){return c.dir(a,"nextSibling")},prevAll:function(a){return c.dir(a,"previousSibling")},nextUntil:function(a,b,d){return c.dir(a,"nextSibling",d)},prevUntil:function(a,b,d){return c.dir(a,"previousSibling",d)},siblings:function(a){return c.sibling(a.parentNode.firstChild,a)},children:function(a){return c.sibling(a.firstChild)},contents:function(a){return c.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:c.makeArray(a.childNodes)}},function(a, +b){c.fn[a]=function(d,e){var f=c.map(this,b,d);Za.test(a)||(e=d);if(e&&typeof e==="string")f=c.filter(e,f);f=this.length>1?c.unique(f):f;if((this.length>1||ab.test(e))&&$a.test(a))f=f.reverse();return this.pushStack(f,a,bb.call(arguments).join(","))}});c.extend({filter:function(a,b,d){if(d)a=":not("+a+")";return b.length===1?c.find.matchesSelector(b[0],a)?[b[0]]:[]:c.find.matches(a,b)},dir:function(a,b,d){var e=[];for(a=a[b];a&&a.nodeType!==9&&(d===B||a.nodeType!==1||!c(a).is(d));){a.nodeType===1&& +e.push(a);a=a[b]}return e},nth:function(a,b,d){b=b||1;for(var e=0;a;a=a[d])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){for(var d=[];a;a=a.nextSibling)a.nodeType===1&&a!==b&&d.push(a);return d}});var za=/ jQuery\d+="(?:\d+|null)"/g,$=/^\s+/,Aa=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Ba=/<([\w:]+)/,db=/\s]+\/)>/g,P={option:[1, +""],legend:[1,"
                                                                                                                                                                                                                                                                                                  ","
                                                                                                                                                                                                                                                                                                  "],thead:[1,"","
                                                                                                                                                                                                                                                                                                  "],tr:[2,"","
                                                                                                                                                                                                                                                                                                  "],td:[3,"","
                                                                                                                                                                                                                                                                                                  "],col:[2,"","
                                                                                                                                                                                                                                                                                                  "],area:[1,"",""],_default:[0,"",""]};P.optgroup=P.option;P.tbody=P.tfoot=P.colgroup=P.caption=P.thead;P.th=P.td;if(!c.support.htmlSerialize)P._default=[1,"div
                                                                                                                                                                                                                                                                                                  ","
                                                                                                                                                                                                                                                                                                  "];c.fn.extend({text:function(a){if(c.isFunction(a))return this.each(function(b){var d= +c(this);d.text(a.call(this,b,d.text()))});if(typeof a!=="object"&&a!==B)return this.empty().append((this[0]&&this[0].ownerDocument||t).createTextNode(a));return c.text(this)},wrapAll:function(a){if(c.isFunction(a))return this.each(function(d){c(this).wrapAll(a.call(this,d))});if(this[0]){var b=c(a,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var d=this;d.firstChild&&d.firstChild.nodeType===1;)d=d.firstChild;return d}).append(this)}return this}, +wrapInner:function(a){if(c.isFunction(a))return this.each(function(b){c(this).wrapInner(a.call(this,b))});return this.each(function(){var b=c(this),d=b.contents();d.length?d.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){c(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){c.nodeName(this,"body")||c(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.appendChild(a)})}, +prepend:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this)});else if(arguments.length){var a=c(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b, +this.nextSibling)});else if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,c(arguments[0]).toArray());return a}},remove:function(a,b){for(var d=0,e;(e=this[d])!=null;d++)if(!a||c.filter(a,[e]).length){if(!b&&e.nodeType===1){c.cleanData(e.getElementsByTagName("*"));c.cleanData([e])}e.parentNode&&e.parentNode.removeChild(e)}return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++)for(b.nodeType===1&&c.cleanData(b.getElementsByTagName("*"));b.firstChild;)b.removeChild(b.firstChild); +return this},clone:function(a){var b=this.map(function(){if(!c.support.noCloneEvent&&!c.isXMLDoc(this)){var d=this.outerHTML,e=this.ownerDocument;if(!d){d=e.createElement("div");d.appendChild(this.cloneNode(true));d=d.innerHTML}return c.clean([d.replace(za,"").replace(fb,'="$1">').replace($,"")],e)[0]}else return this.cloneNode(true)});if(a===true){na(this,b);na(this.find("*"),b.find("*"))}return b},html:function(a){if(a===B)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(za,""):null; +else if(typeof a==="string"&&!Ca.test(a)&&(c.support.leadingWhitespace||!$.test(a))&&!P[(Ba.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Aa,"<$1>");try{for(var b=0,d=this.length;b0||e.cacheable||this.length>1?h.cloneNode(true):h)}k.length&&c.each(k,Oa)}return this}});c.buildFragment=function(a,b,d){var e,f,h;b=b&&b[0]?b[0].ownerDocument||b[0]:t;if(a.length===1&&typeof a[0]==="string"&&a[0].length<512&&b===t&&!Ca.test(a[0])&&(c.support.checkClone||!Da.test(a[0]))){f=true;if(h=c.fragments[a[0]])if(h!==1)e=h}if(!e){e=b.createDocumentFragment();c.clean(a,b,e,d)}if(f)c.fragments[a[0]]=h?e:1;return{fragment:e,cacheable:f}};c.fragments={};c.each({appendTo:"append", +prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){c.fn[a]=function(d){var e=[];d=c(d);var f=this.length===1&&this[0].parentNode;if(f&&f.nodeType===11&&f.childNodes.length===1&&d.length===1){d[b](this[0]);return this}else{f=0;for(var h=d.length;f0?this.clone(true):this).get();c(d[f])[b](l);e=e.concat(l)}return this.pushStack(e,a,d.selector)}}});c.extend({clean:function(a,b,d,e){b=b||t;if(typeof b.createElement==="undefined")b=b.ownerDocument|| +b[0]&&b[0].ownerDocument||t;for(var f=[],h=0,l;(l=a[h])!=null;h++){if(typeof l==="number")l+="";if(l){if(typeof l==="string"&&!eb.test(l))l=b.createTextNode(l);else if(typeof l==="string"){l=l.replace(Aa,"<$1>");var k=(Ba.exec(l)||["",""])[1].toLowerCase(),o=P[k]||P._default,x=o[0],r=b.createElement("div");for(r.innerHTML=o[1]+l+o[2];x--;)r=r.lastChild;if(!c.support.tbody){x=db.test(l);k=k==="table"&&!x?r.firstChild&&r.firstChild.childNodes:o[1]===""&&!x?r.childNodes:[];for(o=k.length- +1;o>=0;--o)c.nodeName(k[o],"tbody")&&!k[o].childNodes.length&&k[o].parentNode.removeChild(k[o])}!c.support.leadingWhitespace&&$.test(l)&&r.insertBefore(b.createTextNode($.exec(l)[0]),r.firstChild);l=r.childNodes}if(l.nodeType)f.push(l);else f=c.merge(f,l)}}if(d)for(h=0;f[h];h++)if(e&&c.nodeName(f[h],"script")&&(!f[h].type||f[h].type.toLowerCase()==="text/javascript"))e.push(f[h].parentNode?f[h].parentNode.removeChild(f[h]):f[h]);else{f[h].nodeType===1&&f.splice.apply(f,[h+1,0].concat(c.makeArray(f[h].getElementsByTagName("script")))); +d.appendChild(f[h])}return f},cleanData:function(a){for(var b,d,e=c.cache,f=c.event.special,h=c.support.deleteExpando,l=0,k;(k=a[l])!=null;l++)if(!(k.nodeName&&c.noData[k.nodeName.toLowerCase()]))if(d=k[c.expando]){if((b=e[d])&&b.events)for(var o in b.events)f[o]?c.event.remove(k,o):c.removeEvent(k,o,b.handle);if(h)delete k[c.expando];else k.removeAttribute&&k.removeAttribute(c.expando);delete e[d]}}});var Ea=/alpha\([^)]*\)/i,gb=/opacity=([^)]*)/,hb=/-([a-z])/ig,ib=/([A-Z])/g,Fa=/^-?\d+(?:px)?$/i, +jb=/^-?\d/,kb={position:"absolute",visibility:"hidden",display:"block"},Pa=["Left","Right"],Qa=["Top","Bottom"],W,Ga,aa,lb=function(a,b){return b.toUpperCase()};c.fn.css=function(a,b){if(arguments.length===2&&b===B)return this;return c.access(this,a,b,true,function(d,e,f){return f!==B?c.style(d,e,f):c.css(d,e)})};c.extend({cssHooks:{opacity:{get:function(a,b){if(b){var d=W(a,"opacity","opacity");return d===""?"1":d}else return a.style.opacity}}},cssNumber:{zIndex:true,fontWeight:true,opacity:true, +zoom:true,lineHeight:true},cssProps:{"float":c.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,b,d,e){if(!(!a||a.nodeType===3||a.nodeType===8||!a.style)){var f,h=c.camelCase(b),l=a.style,k=c.cssHooks[h];b=c.cssProps[h]||h;if(d!==B){if(!(typeof d==="number"&&isNaN(d)||d==null)){if(typeof d==="number"&&!c.cssNumber[h])d+="px";if(!k||!("set"in k)||(d=k.set(a,d))!==B)try{l[b]=d}catch(o){}}}else{if(k&&"get"in k&&(f=k.get(a,false,e))!==B)return f;return l[b]}}},css:function(a,b,d){var e,f=c.camelCase(b), +h=c.cssHooks[f];b=c.cssProps[f]||f;if(h&&"get"in h&&(e=h.get(a,true,d))!==B)return e;else if(W)return W(a,b,f)},swap:function(a,b,d){var e={},f;for(f in b){e[f]=a.style[f];a.style[f]=b[f]}d.call(a);for(f in b)a.style[f]=e[f]},camelCase:function(a){return a.replace(hb,lb)}});c.curCSS=c.css;c.each(["height","width"],function(a,b){c.cssHooks[b]={get:function(d,e,f){var h;if(e){if(d.offsetWidth!==0)h=oa(d,b,f);else c.swap(d,kb,function(){h=oa(d,b,f)});if(h<=0){h=W(d,b,b);if(h==="0px"&&aa)h=aa(d,b,b); +if(h!=null)return h===""||h==="auto"?"0px":h}if(h<0||h==null){h=d.style[b];return h===""||h==="auto"?"0px":h}return typeof h==="string"?h:h+"px"}},set:function(d,e){if(Fa.test(e)){e=parseFloat(e);if(e>=0)return e+"px"}else return e}}});if(!c.support.opacity)c.cssHooks.opacity={get:function(a,b){return gb.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var d=a.style;d.zoom=1;var e=c.isNaN(b)?"":"alpha(opacity="+b*100+")",f= +d.filter||"";d.filter=Ea.test(f)?f.replace(Ea,e):d.filter+" "+e}};if(t.defaultView&&t.defaultView.getComputedStyle)Ga=function(a,b,d){var e;d=d.replace(ib,"-$1").toLowerCase();if(!(b=a.ownerDocument.defaultView))return B;if(b=b.getComputedStyle(a,null)){e=b.getPropertyValue(d);if(e===""&&!c.contains(a.ownerDocument.documentElement,a))e=c.style(a,d)}return e};if(t.documentElement.currentStyle)aa=function(a,b){var d,e,f=a.currentStyle&&a.currentStyle[b],h=a.style;if(!Fa.test(f)&&jb.test(f)){d=h.left; +e=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;h.left=b==="fontSize"?"1em":f||0;f=h.pixelLeft+"px";h.left=d;a.runtimeStyle.left=e}return f===""?"auto":f};W=Ga||aa;if(c.expr&&c.expr.filters){c.expr.filters.hidden=function(a){var b=a.offsetHeight;return a.offsetWidth===0&&b===0||!c.support.reliableHiddenOffsets&&(a.style.display||c.css(a,"display"))==="none"};c.expr.filters.visible=function(a){return!c.expr.filters.hidden(a)}}var mb=c.now(),nb=/)<[^<]*)*<\/script>/gi, +ob=/^(?:select|textarea)/i,pb=/^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,qb=/^(?:GET|HEAD)$/,Ra=/\[\]$/,T=/\=\?(&|$)/,ja=/\?/,rb=/([?&])_=[^&]*/,sb=/^(\w+:)?\/\/([^\/?#]+)/,tb=/%20/g,ub=/#.*$/,Ha=c.fn.load;c.fn.extend({load:function(a,b,d){if(typeof a!=="string"&&Ha)return Ha.apply(this,arguments);else if(!this.length)return this;var e=a.indexOf(" ");if(e>=0){var f=a.slice(e,a.length);a=a.slice(0,e)}e="GET";if(b)if(c.isFunction(b)){d=b;b=null}else if(typeof b=== +"object"){b=c.param(b,c.ajaxSettings.traditional);e="POST"}var h=this;c.ajax({url:a,type:e,dataType:"html",data:b,complete:function(l,k){if(k==="success"||k==="notmodified")h.html(f?c("
                                                                                                                                                                                                                                                                                                  ").append(l.responseText.replace(nb,"")).find(f):l.responseText);d&&h.each(d,[l.responseText,k,l])}});return this},serialize:function(){return c.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?c.makeArray(this.elements):this}).filter(function(){return this.name&& +!this.disabled&&(this.checked||ob.test(this.nodeName)||pb.test(this.type))}).map(function(a,b){var d=c(this).val();return d==null?null:c.isArray(d)?c.map(d,function(e){return{name:b.name,value:e}}):{name:b.name,value:d}}).get()}});c.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){c.fn[b]=function(d){return this.bind(b,d)}});c.extend({get:function(a,b,d,e){if(c.isFunction(b)){e=e||d;d=b;b=null}return c.ajax({type:"GET",url:a,data:b,success:d,dataType:e})}, +getScript:function(a,b){return c.get(a,null,b,"script")},getJSON:function(a,b,d){return c.get(a,b,d,"json")},post:function(a,b,d,e){if(c.isFunction(b)){e=e||d;d=b;b={}}return c.ajax({type:"POST",url:a,data:b,success:d,dataType:e})},ajaxSetup:function(a){c.extend(c.ajaxSettings,a)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return new E.XMLHttpRequest},accepts:{xml:"application/xml, text/xml",html:"text/html", +script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},ajax:function(a){var b=c.extend(true,{},c.ajaxSettings,a),d,e,f,h=b.type.toUpperCase(),l=qb.test(h);b.url=b.url.replace(ub,"");b.context=a&&a.context!=null?a.context:b;if(b.data&&b.processData&&typeof b.data!=="string")b.data=c.param(b.data,b.traditional);if(b.dataType==="jsonp"){if(h==="GET")T.test(b.url)||(b.url+=(ja.test(b.url)?"&":"?")+(b.jsonp||"callback")+"=?");else if(!b.data|| +!T.test(b.data))b.data=(b.data?b.data+"&":"")+(b.jsonp||"callback")+"=?";b.dataType="json"}if(b.dataType==="json"&&(b.data&&T.test(b.data)||T.test(b.url))){d=b.jsonpCallback||"jsonp"+mb++;if(b.data)b.data=(b.data+"").replace(T,"="+d+"$1");b.url=b.url.replace(T,"="+d+"$1");b.dataType="script";var k=E[d];E[d]=function(m){if(c.isFunction(k))k(m);else{E[d]=B;try{delete E[d]}catch(p){}}f=m;c.handleSuccess(b,w,e,f);c.handleComplete(b,w,e,f);r&&r.removeChild(A)}}if(b.dataType==="script"&&b.cache===null)b.cache= +false;if(b.cache===false&&l){var o=c.now(),x=b.url.replace(rb,"$1_="+o);b.url=x+(x===b.url?(ja.test(b.url)?"&":"?")+"_="+o:"")}if(b.data&&l)b.url+=(ja.test(b.url)?"&":"?")+b.data;b.global&&c.active++===0&&c.event.trigger("ajaxStart");o=(o=sb.exec(b.url))&&(o[1]&&o[1].toLowerCase()!==location.protocol||o[2].toLowerCase()!==location.host);if(b.dataType==="script"&&h==="GET"&&o){var r=t.getElementsByTagName("head")[0]||t.documentElement,A=t.createElement("script");if(b.scriptCharset)A.charset=b.scriptCharset; +A.src=b.url;if(!d){var C=false;A.onload=A.onreadystatechange=function(){if(!C&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){C=true;c.handleSuccess(b,w,e,f);c.handleComplete(b,w,e,f);A.onload=A.onreadystatechange=null;r&&A.parentNode&&r.removeChild(A)}}}r.insertBefore(A,r.firstChild);return B}var J=false,w=b.xhr();if(w){b.username?w.open(h,b.url,b.async,b.username,b.password):w.open(h,b.url,b.async);try{if(b.data!=null&&!l||a&&a.contentType)w.setRequestHeader("Content-Type", +b.contentType);if(b.ifModified){c.lastModified[b.url]&&w.setRequestHeader("If-Modified-Since",c.lastModified[b.url]);c.etag[b.url]&&w.setRequestHeader("If-None-Match",c.etag[b.url])}o||w.setRequestHeader("X-Requested-With","XMLHttpRequest");w.setRequestHeader("Accept",b.dataType&&b.accepts[b.dataType]?b.accepts[b.dataType]+", */*; q=0.01":b.accepts._default)}catch(I){}if(b.beforeSend&&b.beforeSend.call(b.context,w,b)===false){b.global&&c.active--===1&&c.event.trigger("ajaxStop");w.abort();return false}b.global&& +c.triggerGlobal(b,"ajaxSend",[w,b]);var L=w.onreadystatechange=function(m){if(!w||w.readyState===0||m==="abort"){J||c.handleComplete(b,w,e,f);J=true;if(w)w.onreadystatechange=c.noop}else if(!J&&w&&(w.readyState===4||m==="timeout")){J=true;w.onreadystatechange=c.noop;e=m==="timeout"?"timeout":!c.httpSuccess(w)?"error":b.ifModified&&c.httpNotModified(w,b.url)?"notmodified":"success";var p;if(e==="success")try{f=c.httpData(w,b.dataType,b)}catch(q){e="parsererror";p=q}if(e==="success"||e==="notmodified")d|| +c.handleSuccess(b,w,e,f);else c.handleError(b,w,e,p);d||c.handleComplete(b,w,e,f);m==="timeout"&&w.abort();if(b.async)w=null}};try{var g=w.abort;w.abort=function(){w&&Function.prototype.call.call(g,w);L("abort")}}catch(i){}b.async&&b.timeout>0&&setTimeout(function(){w&&!J&&L("timeout")},b.timeout);try{w.send(l||b.data==null?null:b.data)}catch(n){c.handleError(b,w,null,n);c.handleComplete(b,w,e,f)}b.async||L();return w}},param:function(a,b){var d=[],e=function(h,l){l=c.isFunction(l)?l():l;d[d.length]= +encodeURIComponent(h)+"="+encodeURIComponent(l)};if(b===B)b=c.ajaxSettings.traditional;if(c.isArray(a)||a.jquery)c.each(a,function(){e(this.name,this.value)});else for(var f in a)da(f,a[f],b,e);return d.join("&").replace(tb,"+")}});c.extend({active:0,lastModified:{},etag:{},handleError:function(a,b,d,e){a.error&&a.error.call(a.context,b,d,e);a.global&&c.triggerGlobal(a,"ajaxError",[b,a,e])},handleSuccess:function(a,b,d,e){a.success&&a.success.call(a.context,e,d,b);a.global&&c.triggerGlobal(a,"ajaxSuccess", +[b,a])},handleComplete:function(a,b,d){a.complete&&a.complete.call(a.context,b,d);a.global&&c.triggerGlobal(a,"ajaxComplete",[b,a]);a.global&&c.active--===1&&c.event.trigger("ajaxStop")},triggerGlobal:function(a,b,d){(a.context&&a.context.url==null?c(a.context):c.event).trigger(b,d)},httpSuccess:function(a){try{return!a.status&&location.protocol==="file:"||a.status>=200&&a.status<300||a.status===304||a.status===1223}catch(b){}return false},httpNotModified:function(a,b){var d=a.getResponseHeader("Last-Modified"), +e=a.getResponseHeader("Etag");if(d)c.lastModified[b]=d;if(e)c.etag[b]=e;return a.status===304},httpData:function(a,b,d){var e=a.getResponseHeader("content-type")||"",f=b==="xml"||!b&&e.indexOf("xml")>=0;a=f?a.responseXML:a.responseText;f&&a.documentElement.nodeName==="parsererror"&&c.error("parsererror");if(d&&d.dataFilter)a=d.dataFilter(a,b);if(typeof a==="string")if(b==="json"||!b&&e.indexOf("json")>=0)a=c.parseJSON(a);else if(b==="script"||!b&&e.indexOf("javascript")>=0)c.globalEval(a);return a}}); +if(E.ActiveXObject)c.ajaxSettings.xhr=function(){if(E.location.protocol!=="file:")try{return new E.XMLHttpRequest}catch(a){}try{return new E.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}};c.support.ajax=!!c.ajaxSettings.xhr();var ea={},vb=/^(?:toggle|show|hide)$/,wb=/^([+\-]=)?([\d+.\-]+)(.*)$/,ba,pa=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];c.fn.extend({show:function(a,b,d){if(a||a===0)return this.animate(S("show", +3),a,b,d);else{d=0;for(var e=this.length;d=0;e--)if(d[e].elem===this){b&&d[e](true);d.splice(e,1)}});b||this.dequeue();return this}});c.each({slideDown:S("show",1),slideUp:S("hide",1),slideToggle:S("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){c.fn[a]=function(d,e,f){return this.animate(b, +d,e,f)}});c.extend({speed:function(a,b,d){var e=a&&typeof a==="object"?c.extend({},a):{complete:d||!d&&b||c.isFunction(a)&&a,duration:a,easing:d&&b||b&&!c.isFunction(b)&&b};e.duration=c.fx.off?0:typeof e.duration==="number"?e.duration:e.duration in c.fx.speeds?c.fx.speeds[e.duration]:c.fx.speeds._default;e.old=e.complete;e.complete=function(){e.queue!==false&&c(this).dequeue();c.isFunction(e.old)&&e.old.call(this)};return e},easing:{linear:function(a,b,d,e){return d+e*a},swing:function(a,b,d,e){return(-Math.cos(a* +Math.PI)/2+0.5)*e+d}},timers:[],fx:function(a,b,d){this.options=b;this.elem=a;this.prop=d;if(!b.orig)b.orig={}}});c.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(c.fx.step[this.prop]||c.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];var a=parseFloat(c.css(this.elem,this.prop));return a&&a>-1E4?a:0},custom:function(a,b,d){function e(l){return f.step(l)} +var f=this,h=c.fx;this.startTime=c.now();this.start=a;this.end=b;this.unit=d||this.unit||"px";this.now=this.start;this.pos=this.state=0;e.elem=this.elem;if(e()&&c.timers.push(e)&&!ba)ba=setInterval(h.tick,h.interval)},show:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());c(this.elem).show()},hide:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.hide=true; +this.custom(this.cur(),0)},step:function(a){var b=c.now(),d=true;if(a||b>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var e in this.options.curAnim)if(this.options.curAnim[e]!==true)d=false;if(d){if(this.options.overflow!=null&&!c.support.shrinkWrapBlocks){var f=this.elem,h=this.options;c.each(["","X","Y"],function(k,o){f.style["overflow"+o]=h.overflow[k]})}this.options.hide&&c(this.elem).hide();if(this.options.hide|| +this.options.show)for(var l in this.options.curAnim)c.style(this.elem,l,this.options.orig[l]);this.options.complete.call(this.elem)}return false}else{a=b-this.startTime;this.state=a/this.options.duration;b=this.options.easing||(c.easing.swing?"swing":"linear");this.pos=c.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||b](this.state,a,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};c.extend(c.fx,{tick:function(){for(var a= +c.timers,b=0;b-1;e={};var x={};if(o)x=f.position();l=o?x.top:parseInt(l,10)||0;k=o?x.left:parseInt(k,10)||0;if(c.isFunction(b))b=b.call(a,d,h);if(b.top!=null)e.top=b.top-h.top+l;if(b.left!=null)e.left=b.left-h.left+k;"using"in b?b.using.call(a, +e):f.css(e)}};c.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),d=this.offset(),e=Ia.test(b[0].nodeName)?{top:0,left:0}:b.offset();d.top-=parseFloat(c.css(a,"marginTop"))||0;d.left-=parseFloat(c.css(a,"marginLeft"))||0;e.top+=parseFloat(c.css(b[0],"borderTopWidth"))||0;e.left+=parseFloat(c.css(b[0],"borderLeftWidth"))||0;return{top:d.top-e.top,left:d.left-e.left}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||t.body;a&&!Ia.test(a.nodeName)&& +c.css(a,"position")==="static";)a=a.offsetParent;return a})}});c.each(["Left","Top"],function(a,b){var d="scroll"+b;c.fn[d]=function(e){var f=this[0],h;if(!f)return null;if(e!==B)return this.each(function(){if(h=fa(this))h.scrollTo(!a?e:c(h).scrollLeft(),a?e:c(h).scrollTop());else this[d]=e});else return(h=fa(f))?"pageXOffset"in h?h[a?"pageYOffset":"pageXOffset"]:c.support.boxModel&&h.document.documentElement[d]||h.document.body[d]:f[d]}});c.each(["Height","Width"],function(a,b){var d=b.toLowerCase(); +c.fn["inner"+b]=function(){return this[0]?parseFloat(c.css(this[0],d,"padding")):null};c.fn["outer"+b]=function(e){return this[0]?parseFloat(c.css(this[0],d,e?"margin":"border")):null};c.fn[d]=function(e){var f=this[0];if(!f)return e==null?null:this;if(c.isFunction(e))return this.each(function(l){var k=c(this);k[d](e.call(this,l,k[d]()))});if(c.isWindow(f))return f.document.compatMode==="CSS1Compat"&&f.document.documentElement["client"+b]||f.document.body["client"+b];else if(f.nodeType===9)return Math.max(f.documentElement["client"+ +b],f.body["scroll"+b],f.documentElement["scroll"+b],f.body["offset"+b],f.documentElement["offset"+b]);else if(e===B){f=c.css(f,d);var h=parseFloat(f);return c.isNaN(h)?f:h}else return this.css(d,typeof e==="string"?e:e+"px")}})})(window); diff --git a/alive-admin/src/main/resources/static/ztree/js/jquery.ztree.all-3.5.js b/alive-admin/src/main/resources/static/ztree/js/jquery.ztree.all-3.5.js new file mode 100644 index 0000000..2a413ae --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/js/jquery.ztree.all-3.5.js @@ -0,0 +1,3469 @@ + +/* + * JQuery zTree core 3.5 + * http://zTree.me/ + * + * Copyright (c) 2010 Hunter.z + * + * Licensed same as jquery - MIT License + * http://www.opensource.org/licenses/mit-license.php + * + * email: hunter.z@263.net + * Date: 2012-11-20 + */ +(function($){ + var settings = {}, roots = {}, caches = {}, + //default consts of core + _consts = { + event: { + NODECREATED: "ztree_nodeCreated", + CLICK: "ztree_click", + EXPAND: "ztree_expand", + COLLAPSE: "ztree_collapse", + ASYNC_SUCCESS: "ztree_async_success", + ASYNC_ERROR: "ztree_async_error" + }, + id: { + A: "_a", + ICON: "_ico", + SPAN: "_span", + SWITCH: "_switch", + UL: "_ul" + }, + line: { + ROOT: "root", + ROOTS: "roots", + CENTER: "center", + BOTTOM: "bottom", + NOLINE: "noline", + LINE: "line" + }, + folder: { + OPEN: "open", + CLOSE: "close", + DOCU: "docu" + }, + node: { + CURSELECTED: "curSelectedNode" + } + }, + //default setting of core + _setting = { + treeId: "", + treeObj: null, + view: { + addDiyDom: null, + autoCancelSelected: true, + dblClickExpand: true, + expandSpeed: "fast", + fontCss: {}, + nameIsHTML: false, + selectedMulti: true, + showIcon: true, + showLine: true, + showTitle: true + }, + data: { + key: { + children: "children", + name: "name", + title: "", + url: "url" + }, + simpleData: { + enable: false, + idKey: "id", + pIdKey: "pId", + rootPId: null + }, + keep: { + parent: false, + leaf: false + } + }, + async: { + enable: false, + contentType: "application/x-www-form-urlencoded", + type: "post", + dataType: "text", + url: "", + autoParam: [], + otherParam: [], + dataFilter: null + }, + callback: { + beforeAsync:null, + beforeClick:null, + beforeDblClick:null, + beforeRightClick:null, + beforeMouseDown:null, + beforeMouseUp:null, + beforeExpand:null, + beforeCollapse:null, + beforeRemove:null, + + onAsyncError:null, + onAsyncSuccess:null, + onNodeCreated:null, + onClick:null, + onDblClick:null, + onRightClick:null, + onMouseDown:null, + onMouseUp:null, + onExpand:null, + onCollapse:null, + onRemove:null + } + }, + //default root of core + //zTree use root to save full data + _initRoot = function (setting) { + var r = data.getRoot(setting); + if (!r) { + r = {}; + data.setRoot(setting, r); + } + r[setting.data.key.children] = []; + r.expandTriggerFlag = false; + r.curSelectedList = []; + r.noSelection = true; + r.createdNodes = []; + r.zId = 0; + r._ver = (new Date()).getTime(); + }, + //default cache of core + _initCache = function(setting) { + var c = data.getCache(setting); + if (!c) { + c = {}; + data.setCache(setting, c); + } + c.nodes = []; + c.doms = []; + }, + //default bindEvent of core + _bindEvent = function(setting) { + var o = setting.treeObj, + c = consts.event; + o.bind(c.NODECREATED, function (event, treeId, node) { + tools.apply(setting.callback.onNodeCreated, [event, treeId, node]); + }); + + o.bind(c.CLICK, function (event, srcEvent, treeId, node, clickFlag) { + tools.apply(setting.callback.onClick, [srcEvent, treeId, node, clickFlag]); + }); + + o.bind(c.EXPAND, function (event, treeId, node) { + tools.apply(setting.callback.onExpand, [event, treeId, node]); + }); + + o.bind(c.COLLAPSE, function (event, treeId, node) { + tools.apply(setting.callback.onCollapse, [event, treeId, node]); + }); + + o.bind(c.ASYNC_SUCCESS, function (event, treeId, node, msg) { + tools.apply(setting.callback.onAsyncSuccess, [event, treeId, node, msg]); + }); + + o.bind(c.ASYNC_ERROR, function (event, treeId, node, XMLHttpRequest, textStatus, errorThrown) { + tools.apply(setting.callback.onAsyncError, [event, treeId, node, XMLHttpRequest, textStatus, errorThrown]); + }); + }, + _unbindEvent = function(setting) { + var o = setting.treeObj, + c = consts.event; + o.unbind(c.NODECREATED) + .unbind(c.CLICK) + .unbind(c.EXPAND) + .unbind(c.COLLAPSE) + .unbind(c.ASYNC_SUCCESS) + .unbind(c.ASYNC_ERROR); + }, + //default event proxy of core + _eventProxy = function(event) { + var target = event.target, + setting = data.getSetting(event.data.treeId), + tId = "", node = null, + nodeEventType = "", treeEventType = "", + nodeEventCallback = null, treeEventCallback = null, + tmp = null; + + if (tools.eqs(event.type, "mousedown")) { + treeEventType = "mousedown"; + } else if (tools.eqs(event.type, "mouseup")) { + treeEventType = "mouseup"; + } else if (tools.eqs(event.type, "contextmenu")) { + treeEventType = "contextmenu"; + } else if (tools.eqs(event.type, "click")) { + if (tools.eqs(target.tagName, "span") && target.getAttribute("treeNode"+ consts.id.SWITCH) !== null) { + tId = ($(target).parent("li").get(0) || $(target).parentsUntil("li").parent().get(0)).id; + nodeEventType = "switchNode"; + } else { + tmp = tools.getMDom(setting, target, [{tagName:"a", attrName:"treeNode"+consts.id.A}]); + if (tmp) { + tId = ($(tmp).parent("li").get(0) || $(tmp).parentsUntil("li").parent().get(0)).id; + nodeEventType = "clickNode"; + } + } + } else if (tools.eqs(event.type, "dblclick")) { + treeEventType = "dblclick"; + tmp = tools.getMDom(setting, target, [{tagName:"a", attrName:"treeNode"+consts.id.A}]); + if (tmp) { + tId = ($(tmp).parent("li").get(0) || $(tmp).parentsUntil("li").parent().get(0)).id; + nodeEventType = "switchNode"; + } + } + if (treeEventType.length > 0 && tId.length == 0) { + tmp = tools.getMDom(setting, target, [{tagName:"a", attrName:"treeNode"+consts.id.A}]); + if (tmp) {tId = ($(tmp).parent("li").get(0) || $(tmp).parentsUntil("li").parent().get(0)).id;} + } + // event to node + if (tId.length>0) { + node = data.getNodeCache(setting, tId); + switch (nodeEventType) { + case "switchNode" : + if (!node.isParent) { + nodeEventType = ""; + } else if (tools.eqs(event.type, "click") + || (tools.eqs(event.type, "dblclick") && tools.apply(setting.view.dblClickExpand, [setting.treeId, node], setting.view.dblClickExpand))) { + nodeEventCallback = handler.onSwitchNode; + } else { + nodeEventType = ""; + } + break; + case "clickNode" : + nodeEventCallback = handler.onClickNode; + break; + } + } + // event to zTree + switch (treeEventType) { + case "mousedown" : + treeEventCallback = handler.onZTreeMousedown; + break; + case "mouseup" : + treeEventCallback = handler.onZTreeMouseup; + break; + case "dblclick" : + treeEventCallback = handler.onZTreeDblclick; + break; + case "contextmenu" : + treeEventCallback = handler.onZTreeContextmenu; + break; + } + var proxyResult = { + stop: false, + node: node, + nodeEventType: nodeEventType, + nodeEventCallback: nodeEventCallback, + treeEventType: treeEventType, + treeEventCallback: treeEventCallback + }; + return proxyResult + }, + //default init node of core + _initNode = function(setting, level, n, parentNode, isFirstNode, isLastNode, openFlag) { + if (!n) return; + var r = data.getRoot(setting), + childKey = setting.data.key.children; + n.level = level; + n.tId = setting.treeId + "_" + (++r.zId); + n.parentTId = parentNode ? parentNode.tId : null; + if (n[childKey] && n[childKey].length > 0) { + if (typeof n.open == "string") n.open = tools.eqs(n.open, "true"); + n.open = !!n.open; + n.isParent = true; + n.zAsync = true; + } else { + n.open = false; + if (typeof n.isParent == "string") n.isParent = tools.eqs(n.isParent, "true"); + n.isParent = !!n.isParent; + n.zAsync = !n.isParent; + } + n.isFirstNode = isFirstNode; + n.isLastNode = isLastNode; + n.getParentNode = function() {return data.getNodeCache(setting, n.parentTId);}; + n.getPreNode = function() {return data.getPreNode(setting, n);}; + n.getNextNode = function() {return data.getNextNode(setting, n);}; + n.isAjaxing = false; + data.fixPIdKeyValue(setting, n); + }, + _init = { + bind: [_bindEvent], + unbind: [_unbindEvent], + caches: [_initCache], + nodes: [_initNode], + proxys: [_eventProxy], + roots: [_initRoot], + beforeA: [], + afterA: [], + innerBeforeA: [], + innerAfterA: [], + zTreeTools: [] + }, + //method of operate data + data = { + addNodeCache: function(setting, node) { + data.getCache(setting).nodes[data.getNodeCacheId(node.tId)] = node; + }, + getNodeCacheId: function(tId) { + return tId.substring(tId.lastIndexOf("_")+1); + }, + addAfterA: function(afterA) { + _init.afterA.push(afterA); + }, + addBeforeA: function(beforeA) { + _init.beforeA.push(beforeA); + }, + addInnerAfterA: function(innerAfterA) { + _init.innerAfterA.push(innerAfterA); + }, + addInnerBeforeA: function(innerBeforeA) { + _init.innerBeforeA.push(innerBeforeA); + }, + addInitBind: function(bindEvent) { + _init.bind.push(bindEvent); + }, + addInitUnBind: function(unbindEvent) { + _init.unbind.push(unbindEvent); + }, + addInitCache: function(initCache) { + _init.caches.push(initCache); + }, + addInitNode: function(initNode) { + _init.nodes.push(initNode); + }, + addInitProxy: function(initProxy) { + _init.proxys.push(initProxy); + }, + addInitRoot: function(initRoot) { + _init.roots.push(initRoot); + }, + addNodesData: function(setting, parentNode, nodes) { + var childKey = setting.data.key.children; + if (!parentNode[childKey]) parentNode[childKey] = []; + if (parentNode[childKey].length > 0) { + parentNode[childKey][parentNode[childKey].length - 1].isLastNode = false; + view.setNodeLineIcos(setting, parentNode[childKey][parentNode[childKey].length - 1]); + } + parentNode.isParent = true; + parentNode[childKey] = parentNode[childKey].concat(nodes); + }, + addSelectedNode: function(setting, node) { + var root = data.getRoot(setting); + if (!data.isSelectedNode(setting, node)) { + root.curSelectedList.push(node); + } + }, + addCreatedNode: function(setting, node) { + if (!!setting.callback.onNodeCreated || !!setting.view.addDiyDom) { + var root = data.getRoot(setting); + root.createdNodes.push(node); + } + }, + addZTreeTools: function(zTreeTools) { + _init.zTreeTools.push(zTreeTools); + }, + exSetting: function(s) { + $.extend(true, _setting, s); + }, + fixPIdKeyValue: function(setting, node) { + if (setting.data.simpleData.enable) { + node[setting.data.simpleData.pIdKey] = node.parentTId ? node.getParentNode()[setting.data.simpleData.idKey] : setting.data.simpleData.rootPId; + } + }, + getAfterA: function(setting, node, array) { + for (var i=0, j=_init.afterA.length; i-1) { + result.push(nodes[i]); + } + result = result.concat(data.getNodesByParamFuzzy(setting, nodes[i][childKey], key, value)); + } + return result; + }, + getNodesByFilter: function(setting, nodes, filter, isSingle, invokeParam) { + if (!nodes) return (isSingle ? null : []); + var childKey = setting.data.key.children, + result = isSingle ? null : []; + for (var i = 0, l = nodes.length; i < l; i++) { + if (tools.apply(filter, [nodes[i], invokeParam], false)) { + if (isSingle) {return nodes[i];} + result.push(nodes[i]); + } + var tmpResult = data.getNodesByFilter(setting, nodes[i][childKey], filter, isSingle, invokeParam); + if (isSingle && !!tmpResult) {return tmpResult;} + result = isSingle ? tmpResult : result.concat(tmpResult); + } + return result; + }, + getPreNode: function(setting, node) { + if (!node) return null; + var childKey = setting.data.key.children, + p = node.parentTId ? node.getParentNode() : data.getRoot(setting); + for (var i=0, l=p[childKey].length; i 0))); + }, + clone: function (obj){ + if (obj === null) return null; + var o = obj.constructor === Array ? [] : {}; + for(var i in obj){ + if(obj.hasOwnProperty(i)){ + o[i] = typeof obj[i] === "object" ? arguments.callee(obj[i]) : obj[i]; + } + } + return o; + }, + eqs: function(str1, str2) { + return str1.toLowerCase() === str2.toLowerCase(); + }, + isArray: function(arr) { + return Object.prototype.toString.apply(arr) === "[object Array]"; + }, + getMDom: function (setting, curDom, targetExpr) { + if (!curDom) return null; + while (curDom && curDom.id !== setting.treeId) { + for (var i=0, l=targetExpr.length; curDom.tagName && i 0) { + //make child html first, because checkType + childHtml = view.appendNodes(setting, level + 1, node[childKey], node, initFlag, openFlag && node.open); + } + if (openFlag) { + + view.makeDOMNodeMainBefore(html, setting, node); + view.makeDOMNodeLine(html, setting, node); + data.getBeforeA(setting, node, html); + view.makeDOMNodeNameBefore(html, setting, node); + data.getInnerBeforeA(setting, node, html); + view.makeDOMNodeIcon(html, setting, node); + data.getInnerAfterA(setting, node, html); + view.makeDOMNodeNameAfter(html, setting, node); + data.getAfterA(setting, node, html); + if (node.isParent && node.open) { + view.makeUlHtml(setting, node, html, childHtml.join('')); + } + view.makeDOMNodeMainAfter(html, setting, node); + data.addCreatedNode(setting, node); + } + } + return html; + }, + appendParentULDom: function(setting, node) { + var html = [], + nObj = $("#" + node.tId), + ulObj = $("#" + node.tId + consts.id.UL), + childKey = setting.data.key.children, + childHtml = view.appendNodes(setting, node.level+1, node[childKey], node, false, true); + view.makeUlHtml(setting, node, html, childHtml.join('')); + if (!nObj.get(0) && !!node.parentTId) { + view.appendParentULDom(setting, node.getParentNode()); + nObj = $("#" + node.tId); + } + if (ulObj.get(0)) { + ulObj.remove(); + } + nObj.append(html.join('')); + }, + asyncNode: function(setting, node, isSilent, callback) { + var i, l; + if (node && !node.isParent) { + tools.apply(callback); + return false; + } else if (node && node.isAjaxing) { + return false; + } else if (tools.apply(setting.callback.beforeAsync, [setting.treeId, node], true) == false) { + tools.apply(callback); + return false; + } + if (node) { + node.isAjaxing = true; + var icoObj = $("#" + node.tId + consts.id.ICON); + icoObj.attr({"style":"", "class":"button ico_loading"}); + } + + var isJson = (setting.async.contentType == "application/json"), tmpParam = isJson ? "{" : "", jTemp=""; + for (i = 0, l = setting.async.autoParam.length; node && i < l; i++) { + var pKey = setting.async.autoParam[i].split("="), spKey = pKey; + if (pKey.length>1) { + spKey = pKey[1]; + pKey = pKey[0]; + } + if (isJson) { + jTemp = (typeof node[pKey] == "string") ? '"' : ''; + tmpParam += '"' + spKey + ('":' + jTemp + node[pKey]).replace(/'/g,'\\\'') + jTemp + ','; + } else { + tmpParam += spKey + ("=" + node[pKey]).replace(/&/g,'%26') + "&"; + } + } + if (tools.isArray(setting.async.otherParam)) { + for (i = 0, l = setting.async.otherParam.length; i < l; i += 2) { + if (isJson) { + jTemp = (typeof setting.async.otherParam[i + 1] == "string") ? '"' : ''; + tmpParam += '"' + setting.async.otherParam[i] + ('":' + jTemp + setting.async.otherParam[i + 1]).replace(/'/g,'\\\'') + jTemp + ","; + } else { + tmpParam += setting.async.otherParam[i] + ("=" + setting.async.otherParam[i + 1]).replace(/&/g,'%26') + "&"; + } + } + } else { + for (var p in setting.async.otherParam) { + if (isJson) { + jTemp = (typeof setting.async.otherParam[p] == "string") ? '"' : ''; + tmpParam += '"' + p + ('":' + jTemp + setting.async.otherParam[p]).replace(/'/g,'\\\'') + jTemp + ","; + } else { + tmpParam += p + ("=" + setting.async.otherParam[p]).replace(/&/g,'%26') + "&"; + } + } + } + if (tmpParam.length > 1) tmpParam = tmpParam.substring(0, tmpParam.length-1); + if (isJson) tmpParam += "}"; + + var _tmpV = data.getRoot(setting)._ver; + $.ajax({ + contentType: setting.async.contentType, + type: setting.async.type, + url: tools.apply(setting.async.url, [setting.treeId, node], setting.async.url), + data: tmpParam, + dataType: setting.async.dataType, + success: function(msg) { + if (_tmpV != data.getRoot(setting)._ver) { + return; + } + var newNodes = []; + try { + if (!msg || msg.length == 0) { + newNodes = []; + } else if (typeof msg == "string") { + newNodes = eval("(" + msg + ")"); + } else { + newNodes = msg; + } + } catch(err) { + newNodes = msg; + } + + if (node) { + node.isAjaxing = null; + node.zAsync = true; + } + view.setNodeLineIcos(setting, node); + if (newNodes && newNodes !== "") { + newNodes = tools.apply(setting.async.dataFilter, [setting.treeId, node, newNodes], newNodes); + view.addNodes(setting, node, !!newNodes ? tools.clone(newNodes) : [], !!isSilent); + } else { + view.addNodes(setting, node, [], !!isSilent); + } + setting.treeObj.trigger(consts.event.ASYNC_SUCCESS, [setting.treeId, node, msg]); + tools.apply(callback); + }, + error: function(XMLHttpRequest, textStatus, errorThrown) { + if (_tmpV != data.getRoot(setting)._ver) { + return; + } + if (node) node.isAjaxing = null; + view.setNodeLineIcos(setting, node); + setting.treeObj.trigger(consts.event.ASYNC_ERROR, [setting.treeId, node, XMLHttpRequest, textStatus, errorThrown]); + } + }); + return true; + }, + cancelPreSelectedNode: function (setting, node) { + var list = data.getRoot(setting).curSelectedList; + for (var i=0, j=list.length-1; j>=i; j--) { + if (!node || node === list[j]) { + $("#" + list[j].tId + consts.id.A).removeClass(consts.node.CURSELECTED); + if (node) { + data.removeSelectedNode(setting, node); + break; + } + } + } + if (!node) data.getRoot(setting).curSelectedList = []; + }, + createNodeCallback: function(setting) { + if (!!setting.callback.onNodeCreated || !!setting.view.addDiyDom) { + var root = data.getRoot(setting); + while (root.createdNodes.length>0) { + var node = root.createdNodes.shift(); + tools.apply(setting.view.addDiyDom, [setting.treeId, node]); + if (!!setting.callback.onNodeCreated) { + setting.treeObj.trigger(consts.event.NODECREATED, [setting.treeId, node]); + } + } + } + }, + createNodes: function(setting, level, nodes, parentNode) { + if (!nodes || nodes.length == 0) return; + var root = data.getRoot(setting), + childKey = setting.data.key.children, + openFlag = !parentNode || parentNode.open || !!$("#" + parentNode[childKey][0].tId).get(0); + root.createdNodes = []; + var zTreeHtml = view.appendNodes(setting, level, nodes, parentNode, true, openFlag); + if (!parentNode) { + setting.treeObj.append(zTreeHtml.join('')); + } else { + var ulObj = $("#" + parentNode.tId + consts.id.UL); + if (ulObj.get(0)) { + ulObj.append(zTreeHtml.join('')); + } + } + view.createNodeCallback(setting); + }, + destroy: function(setting) { + if (!setting) return; + data.initCache(setting); + data.initRoot(setting); + event.unbindTree(setting); + event.unbindEvent(setting); + setting.treeObj.empty(); + }, + expandCollapseNode: function(setting, node, expandFlag, animateFlag, callback) { + var root = data.getRoot(setting), + childKey = setting.data.key.children; + if (!node) { + tools.apply(callback, []); + return; + } + if (root.expandTriggerFlag) { + var _callback = callback; + callback = function(){ + if (_callback) _callback(); + if (node.open) { + setting.treeObj.trigger(consts.event.EXPAND, [setting.treeId, node]); + } else { + setting.treeObj.trigger(consts.event.COLLAPSE, [setting.treeId, node]); + } + }; + root.expandTriggerFlag = false; + } + if (!node.open && node.isParent && ((!$("#" + node.tId + consts.id.UL).get(0)) || (node[childKey] && node[childKey].length>0 && !$("#" + node[childKey][0].tId).get(0)))) { + view.appendParentULDom(setting, node); + view.createNodeCallback(setting); + } + if (node.open == expandFlag) { + tools.apply(callback, []); + return; + } + var ulObj = $("#" + node.tId + consts.id.UL), + switchObj = $("#" + node.tId + consts.id.SWITCH), + icoObj = $("#" + node.tId + consts.id.ICON); + + if (node.isParent) { + node.open = !node.open; + if (node.iconOpen && node.iconClose) { + icoObj.attr("style", view.makeNodeIcoStyle(setting, node)); + } + + if (node.open) { + view.replaceSwitchClass(node, switchObj, consts.folder.OPEN); + view.replaceIcoClass(node, icoObj, consts.folder.OPEN); + if (animateFlag == false || setting.view.expandSpeed == "") { + ulObj.show(); + tools.apply(callback, []); + } else { + if (node[childKey] && node[childKey].length > 0) { + ulObj.slideDown(setting.view.expandSpeed, callback); + } else { + ulObj.show(); + tools.apply(callback, []); + } + } + } else { + view.replaceSwitchClass(node, switchObj, consts.folder.CLOSE); + view.replaceIcoClass(node, icoObj, consts.folder.CLOSE); + if (animateFlag == false || setting.view.expandSpeed == "" || !(node[childKey] && node[childKey].length > 0)) { + ulObj.hide(); + tools.apply(callback, []); + } else { + ulObj.slideUp(setting.view.expandSpeed, callback); + } + } + } else { + tools.apply(callback, []); + } + }, + expandCollapseParentNode: function(setting, node, expandFlag, animateFlag, callback) { + if (!node) return; + if (!node.parentTId) { + view.expandCollapseNode(setting, node, expandFlag, animateFlag, callback); + return; + } else { + view.expandCollapseNode(setting, node, expandFlag, animateFlag); + } + if (node.parentTId) { + view.expandCollapseParentNode(setting, node.getParentNode(), expandFlag, animateFlag, callback); + } + }, + expandCollapseSonNode: function(setting, node, expandFlag, animateFlag, callback) { + var root = data.getRoot(setting), + childKey = setting.data.key.children, + treeNodes = (node) ? node[childKey]: root[childKey], + selfAnimateSign = (node) ? false : animateFlag, + expandTriggerFlag = data.getRoot(setting).expandTriggerFlag; + data.getRoot(setting).expandTriggerFlag = false; + if (treeNodes) { + for (var i = 0, l = treeNodes.length; i < l; i++) { + if (treeNodes[i]) view.expandCollapseSonNode(setting, treeNodes[i], expandFlag, selfAnimateSign); + } + } + data.getRoot(setting).expandTriggerFlag = expandTriggerFlag; + view.expandCollapseNode(setting, node, expandFlag, animateFlag, callback ); + }, + makeDOMNodeIcon: function(html, setting, node) { + var nameStr = data.getNodeName(setting, node), + name = setting.view.nameIsHTML ? nameStr : nameStr.replace(/&/g,'&').replace(//g,'>'); + html.push("",name,""); + }, + makeDOMNodeLine: function(html, setting, node) { + html.push(""); + }, + makeDOMNodeMainAfter: function(html, setting, node) { + html.push(""); + }, + makeDOMNodeMainBefore: function(html, setting, node) { + html.push("
                                                                                                                                                                                                                                                                                                • "); + }, + makeDOMNodeNameAfter: function(html, setting, node) { + html.push(""); + }, + makeDOMNodeNameBefore: function(html, setting, node) { + var title = data.getNodeTitle(setting, node), + url = view.makeNodeUrl(setting, node), + fontcss = view.makeNodeFontCss(setting, node), + fontStyle = []; + for (var f in fontcss) { + fontStyle.push(f, ":", fontcss[f], ";"); + } + html.push(" 0) ? "href='" + url + "'" : ""), " target='",view.makeNodeTarget(node),"' style='", fontStyle.join(''), + "'"); + if (tools.apply(setting.view.showTitle, [setting.treeId, node], setting.view.showTitle) && title) {html.push("title='", title.replace(/'/g,"'").replace(//g,'>'),"'");} + html.push(">"); + }, + makeNodeFontCss: function(setting, node) { + var fontCss = tools.apply(setting.view.fontCss, [setting.treeId, node], setting.view.fontCss); + return (fontCss && ((typeof fontCss) != "function")) ? fontCss : {}; + }, + makeNodeIcoClass: function(setting, node) { + var icoCss = ["ico"]; + if (!node.isAjaxing) { + icoCss[0] = (node.iconSkin ? node.iconSkin + "_" : "") + icoCss[0]; + if (node.isParent) { + icoCss.push(node.open ? consts.folder.OPEN : consts.folder.CLOSE); + } else { + icoCss.push(consts.folder.DOCU); + } + } + return "button " + icoCss.join('_'); + }, + makeNodeIcoStyle: function(setting, node) { + var icoStyle = []; + if (!node.isAjaxing) { + var icon = (node.isParent && node.iconOpen && node.iconClose) ? (node.open ? node.iconOpen : node.iconClose) : node.icon; + if (icon) icoStyle.push("background:url(", icon, ") 0 0 no-repeat;"); + if (setting.view.showIcon == false || !tools.apply(setting.view.showIcon, [setting.treeId, node], true)) { + icoStyle.push("width:0px;height:0px;"); + } + } + return icoStyle.join(''); + }, + makeNodeLineClass: function(setting, node) { + var lineClass = []; + if (setting.view.showLine) { + if (node.level == 0 && node.isFirstNode && node.isLastNode) { + lineClass.push(consts.line.ROOT); + } else if (node.level == 0 && node.isFirstNode) { + lineClass.push(consts.line.ROOTS); + } else if (node.isLastNode) { + lineClass.push(consts.line.BOTTOM); + } else { + lineClass.push(consts.line.CENTER); + } + } else { + lineClass.push(consts.line.NOLINE); + } + if (node.isParent) { + lineClass.push(node.open ? consts.folder.OPEN : consts.folder.CLOSE); + } else { + lineClass.push(consts.folder.DOCU); + } + return view.makeNodeLineClassEx(node) + lineClass.join('_'); + }, + makeNodeLineClassEx: function(node) { + return "button level" + node.level + " switch "; + }, + makeNodeTarget: function(node) { + return (node.target || "_blank"); + }, + makeNodeUrl: function(setting, node) { + var urlKey = setting.data.key.url; + return node[urlKey] ? node[urlKey] : null; + }, + makeUlHtml: function(setting, node, html, content) { + html.push("
                                                                                                                                                                                                                                                                                                    "); + html.push(content); + html.push("
                                                                                                                                                                                                                                                                                                  "); + }, + makeUlLineClass: function(setting, node) { + return ((setting.view.showLine && !node.isLastNode) ? consts.line.LINE : ""); + }, + removeChildNodes: function(setting, node) { + if (!node) return; + var childKey = setting.data.key.children, + nodes = node[childKey]; + if (!nodes) return; + + for (var i = 0, l = nodes.length; i < l; i++) { + data.removeNodeCache(setting, nodes[i]); + } + data.removeSelectedNode(setting); + delete node[childKey]; + + if (!setting.data.keep.parent) { + node.isParent = false; + node.open = false; + var tmp_switchObj = $("#" + node.tId + consts.id.SWITCH), + tmp_icoObj = $("#" + node.tId + consts.id.ICON); + view.replaceSwitchClass(node, tmp_switchObj, consts.folder.DOCU); + view.replaceIcoClass(node, tmp_icoObj, consts.folder.DOCU); + $("#" + node.tId + consts.id.UL).remove(); + } else { + $("#" + node.tId + consts.id.UL).empty(); + } + }, + setFirstNode: function(setting, parentNode) { + var childKey = setting.data.key.children, childLength = parentNode[childKey].length; + if ( childLength > 0) { + parentNode[childKey][0].isFirstNode = true; + } + }, + setLastNode: function(setting, parentNode) { + var childKey = setting.data.key.children, childLength = parentNode[childKey].length; + if ( childLength > 0) { + parentNode[childKey][childLength - 1].isLastNode = true; + } + }, + removeNode: function(setting, node) { + var root = data.getRoot(setting), + childKey = setting.data.key.children, + parentNode = (node.parentTId) ? node.getParentNode() : root; + + node.isFirstNode = false; + node.isLastNode = false; + node.getPreNode = function() {return null;}; + node.getNextNode = function() {return null;}; + + if (!data.getNodeCache(setting, node.tId)) { + return; + } + + $("#" + node.tId).remove(); + data.removeNodeCache(setting, node); + data.removeSelectedNode(setting, node); + + for (var i = 0, l = parentNode[childKey].length; i < l; i++) { + if (parentNode[childKey][i].tId == node.tId) { + parentNode[childKey].splice(i, 1); + break; + } + } + view.setFirstNode(setting, parentNode); + view.setLastNode(setting, parentNode); + + var tmp_ulObj,tmp_switchObj,tmp_icoObj, + childLength = parentNode[childKey].length; + + //repair nodes old parent + if (!setting.data.keep.parent && childLength == 0) { + //old parentNode has no child nodes + parentNode.isParent = false; + parentNode.open = false; + tmp_ulObj = $("#" + parentNode.tId + consts.id.UL); + tmp_switchObj = $("#" + parentNode.tId + consts.id.SWITCH); + tmp_icoObj = $("#" + parentNode.tId + consts.id.ICON); + view.replaceSwitchClass(parentNode, tmp_switchObj, consts.folder.DOCU); + view.replaceIcoClass(parentNode, tmp_icoObj, consts.folder.DOCU); + tmp_ulObj.css("display", "none"); + + } else if (setting.view.showLine && childLength > 0) { + //old parentNode has child nodes + var newLast = parentNode[childKey][childLength - 1]; + tmp_ulObj = $("#" + newLast.tId + consts.id.UL); + tmp_switchObj = $("#" + newLast.tId + consts.id.SWITCH); + tmp_icoObj = $("#" + newLast.tId + consts.id.ICON); + if (parentNode == root) { + if (parentNode[childKey].length == 1) { + //node was root, and ztree has only one root after move node + view.replaceSwitchClass(newLast, tmp_switchObj, consts.line.ROOT); + } else { + var tmp_first_switchObj = $("#" + parentNode[childKey][0].tId + consts.id.SWITCH); + view.replaceSwitchClass(parentNode[childKey][0], tmp_first_switchObj, consts.line.ROOTS); + view.replaceSwitchClass(newLast, tmp_switchObj, consts.line.BOTTOM); + } + } else { + view.replaceSwitchClass(newLast, tmp_switchObj, consts.line.BOTTOM); + } + tmp_ulObj.removeClass(consts.line.LINE); + } + }, + replaceIcoClass: function(node, obj, newName) { + if (!obj || node.isAjaxing) return; + var tmpName = obj.attr("class"); + if (tmpName == undefined) return; + var tmpList = tmpName.split("_"); + switch (newName) { + case consts.folder.OPEN: + case consts.folder.CLOSE: + case consts.folder.DOCU: + tmpList[tmpList.length-1] = newName; + break; + } + obj.attr("class", tmpList.join("_")); + }, + replaceSwitchClass: function(node, obj, newName) { + if (!obj) return; + var tmpName = obj.attr("class"); + if (tmpName == undefined) return; + var tmpList = tmpName.split("_"); + switch (newName) { + case consts.line.ROOT: + case consts.line.ROOTS: + case consts.line.CENTER: + case consts.line.BOTTOM: + case consts.line.NOLINE: + tmpList[0] = view.makeNodeLineClassEx(node) + newName; + break; + case consts.folder.OPEN: + case consts.folder.CLOSE: + case consts.folder.DOCU: + tmpList[1] = newName; + break; + } + obj.attr("class", tmpList.join("_")); + if (newName !== consts.folder.DOCU) { + obj.removeAttr("disabled"); + } else { + obj.attr("disabled", "disabled"); + } + }, + selectNode: function(setting, node, addFlag) { + if (!addFlag) { + view.cancelPreSelectedNode(setting); + } + $("#" + node.tId + consts.id.A).addClass(consts.node.CURSELECTED); + data.addSelectedNode(setting, node); + }, + setNodeFontCss: function(setting, treeNode) { + var aObj = $("#" + treeNode.tId + consts.id.A), + fontCss = view.makeNodeFontCss(setting, treeNode); + if (fontCss) { + aObj.css(fontCss); + } + }, + setNodeLineIcos: function(setting, node) { + if (!node) return; + var switchObj = $("#" + node.tId + consts.id.SWITCH), + ulObj = $("#" + node.tId + consts.id.UL), + icoObj = $("#" + node.tId + consts.id.ICON), + ulLine = view.makeUlLineClass(setting, node); + if (ulLine.length==0) { + ulObj.removeClass(consts.line.LINE); + } else { + ulObj.addClass(ulLine); + } + switchObj.attr("class", view.makeNodeLineClass(setting, node)); + if (node.isParent) { + switchObj.removeAttr("disabled"); + } else { + switchObj.attr("disabled", "disabled"); + } + icoObj.removeAttr("style"); + icoObj.attr("style", view.makeNodeIcoStyle(setting, node)); + icoObj.attr("class", view.makeNodeIcoClass(setting, node)); + }, + setNodeName: function(setting, node) { + var title = data.getNodeTitle(setting, node), + nObj = $("#" + node.tId + consts.id.SPAN); + nObj.empty(); + if (setting.view.nameIsHTML) { + nObj.html(data.getNodeName(setting, node)); + } else { + nObj.text(data.getNodeName(setting, node)); + } + if (tools.apply(setting.view.showTitle, [setting.treeId, node], setting.view.showTitle)) { + var aObj = $("#" + node.tId + consts.id.A); + aObj.attr("title", !title ? "" : title); + } + }, + setNodeTarget: function(node) { + var aObj = $("#" + node.tId + consts.id.A); + aObj.attr("target", view.makeNodeTarget(node)); + }, + setNodeUrl: function(setting, node) { + var aObj = $("#" + node.tId + consts.id.A), + url = view.makeNodeUrl(setting, node); + if (url == null || url.length == 0) { + aObj.removeAttr("href"); + } else { + aObj.attr("href", url); + } + }, + switchNode: function(setting, node) { + if (node.open || !tools.canAsync(setting, node)) { + view.expandCollapseNode(setting, node, !node.open); + } else if (setting.async.enable) { + if (!view.asyncNode(setting, node)) { + view.expandCollapseNode(setting, node, !node.open); + return; + } + } else if (node) { + view.expandCollapseNode(setting, node, !node.open); + } + } + }; + // zTree defind + $.fn.zTree = { + consts : _consts, + _z : { + tools: tools, + view: view, + event: event, + data: data + }, + getZTreeObj: function(treeId) { + var o = data.getZTreeTools(treeId); + return o ? o : null; + }, + destroy: function(treeId) { + if (!!treeId && treeId.length > 0) { + view.destroy(data.getSetting(treeId)); + } else { + for(var s in settings) { + view.destroy(settings[s]); + } + } + }, + init: function(obj, zSetting, zNodes) { + var setting = tools.clone(_setting); + $.extend(true, setting, zSetting); + setting.treeId = obj.attr("id"); + setting.treeObj = obj; + setting.treeObj.empty(); + settings[setting.treeId] = setting; + if ($.browser.msie && parseInt($.browser.version)<7) { + setting.view.expandSpeed = ""; + } + + data.initRoot(setting); + var root = data.getRoot(setting), + childKey = setting.data.key.children; + zNodes = zNodes ? tools.clone(tools.isArray(zNodes)? zNodes : [zNodes]) : []; + if (setting.data.simpleData.enable) { + root[childKey] = data.transformTozTreeFormat(setting, zNodes); + } else { + root[childKey] = zNodes; + } + + data.initCache(setting); + event.unbindTree(setting); + event.bindTree(setting); + event.unbindEvent(setting); + event.bindEvent(setting); + + var zTreeTools = { + setting : setting, + addNodes : function(parentNode, newNodes, isSilent) { + if (!newNodes) return null; + if (!parentNode) parentNode = null; + if (parentNode && !parentNode.isParent && setting.data.keep.leaf) return null; + var xNewNodes = tools.clone(tools.isArray(newNodes)? newNodes: [newNodes]); + function addCallback() { + view.addNodes(setting, parentNode, xNewNodes, (isSilent==true)); + } + + if (tools.canAsync(setting, parentNode)) { + view.asyncNode(setting, parentNode, isSilent, addCallback); + } else { + addCallback(); + } + return xNewNodes; + }, + cancelSelectedNode : function(node) { + view.cancelPreSelectedNode(this.setting, node); + }, + destroy : function() { + view.destroy(this.setting); + }, + expandAll : function(expandFlag) { + expandFlag = !!expandFlag; + view.expandCollapseSonNode(this.setting, null, expandFlag, true); + return expandFlag; + }, + expandNode : function(node, expandFlag, sonSign, focus, callbackFlag) { + if (!node || !node.isParent) return null; + if (expandFlag !== true && expandFlag !== false) { + expandFlag = !node.open; + } + callbackFlag = !!callbackFlag; + + if (callbackFlag && expandFlag && (tools.apply(setting.callback.beforeExpand, [setting.treeId, node], true) == false)) { + return null; + } else if (callbackFlag && !expandFlag && (tools.apply(setting.callback.beforeCollapse, [setting.treeId, node], true) == false)) { + return null; + } + if (expandFlag && node.parentTId) { + view.expandCollapseParentNode(this.setting, node.getParentNode(), expandFlag, false); + } + if (expandFlag === node.open && !sonSign) { + return null; + } + + data.getRoot(setting).expandTriggerFlag = callbackFlag; + if (sonSign) { + view.expandCollapseSonNode(this.setting, node, expandFlag, true, function() { + if (focus !== false) {try{$("#" + node.tId).focus().blur();}catch(e){}} + }); + } else { + node.open = !expandFlag; + view.switchNode(this.setting, node); + if (focus !== false) {try{$("#" + node.tId).focus().blur();}catch(e){}} + } + return expandFlag; + }, + getNodes : function() { + return data.getNodes(this.setting); + }, + getNodeByParam : function(key, value, parentNode) { + if (!key) return null; + return data.getNodeByParam(this.setting, parentNode?parentNode[this.setting.data.key.children]:data.getNodes(this.setting), key, value); + }, + getNodeByTId : function(tId) { + return data.getNodeCache(this.setting, tId); + }, + getNodesByParam : function(key, value, parentNode) { + if (!key) return null; + return data.getNodesByParam(this.setting, parentNode?parentNode[this.setting.data.key.children]:data.getNodes(this.setting), key, value); + }, + getNodesByParamFuzzy : function(key, value, parentNode) { + if (!key) return null; + return data.getNodesByParamFuzzy(this.setting, parentNode?parentNode[this.setting.data.key.children]:data.getNodes(this.setting), key, value); + }, + getNodesByFilter: function(filter, isSingle, parentNode, invokeParam) { + isSingle = !!isSingle; + if (!filter || (typeof filter != "function")) return (isSingle ? null : []); + return data.getNodesByFilter(this.setting, parentNode?parentNode[this.setting.data.key.children]:data.getNodes(this.setting), filter, isSingle, invokeParam); + }, + getNodeIndex : function(node) { + if (!node) return null; + var childKey = setting.data.key.children, + parentNode = (node.parentTId) ? node.getParentNode() : data.getRoot(this.setting); + for (var i=0, l = parentNode[childKey].length; i < l; i++) { + if (parentNode[childKey][i] == node) return i; + } + return -1; + }, + getSelectedNodes : function() { + var r = [], list = data.getRoot(this.setting).curSelectedList; + for (var i=0, l=list.length; i 0) { + view.createNodes(setting, 0, root[childKey]); + } else if (setting.async.enable && setting.async.url && setting.async.url !== '') { + view.asyncNode(setting); + } + return zTreeTools; + } + }; + + var zt = $.fn.zTree, + consts = zt.consts; +})(jQuery); +/* + * JQuery zTree excheck 3.5 + * http://zTree.me/ + * + * Copyright (c) 2010 Hunter.z + * + * Licensed same as jquery - MIT License + * http://www.opensource.org/licenses/mit-license.php + * + * email: hunter.z@263.net + * Date: 2012-11-20 + */ +(function($){ + //default consts of excheck + var _consts = { + event: { + CHECK: "ztree_check" + }, + id: { + CHECK: "_check" + }, + checkbox: { + STYLE: "checkbox", + DEFAULT: "chk", + DISABLED: "disable", + FALSE: "false", + TRUE: "true", + FULL: "full", + PART: "part", + FOCUS: "focus" + }, + radio: { + STYLE: "radio", + TYPE_ALL: "all", + TYPE_LEVEL: "level" + } + }, + //default setting of excheck + _setting = { + check: { + enable: false, + autoCheckTrigger: false, + chkStyle: _consts.checkbox.STYLE, + nocheckInherit: false, + radioType: _consts.radio.TYPE_LEVEL, + chkboxType: { + "Y": "ps", + "N": "ps" + } + }, + data: { + key: { + checked: "checked" + } + }, + callback: { + beforeCheck:null, + onCheck:null + } + }, + //default root of excheck + _initRoot = function (setting) { + var r = data.getRoot(setting); + r.radioCheckedList = []; + }, + //default cache of excheck + _initCache = function(treeId) {}, + //default bind event of excheck + _bindEvent = function(setting) { + var o = setting.treeObj, + c = consts.event; + o.bind(c.CHECK, function (event, srcEvent, treeId, node) { + tools.apply(setting.callback.onCheck, [!!srcEvent?srcEvent : event, treeId, node]); + }); + }, + _unbindEvent = function(setting) { + var o = setting.treeObj, + c = consts.event; + o.unbind(c.CHECK); + }, + //default event proxy of excheck + _eventProxy = function(e) { + var target = e.target, + setting = data.getSetting(e.data.treeId), + tId = "", node = null, + nodeEventType = "", treeEventType = "", + nodeEventCallback = null, treeEventCallback = null; + + if (tools.eqs(e.type, "mouseover")) { + if (setting.check.enable && tools.eqs(target.tagName, "span") && target.getAttribute("treeNode"+ consts.id.CHECK) !== null) { + tId = target.parentNode.id; + nodeEventType = "mouseoverCheck"; + } + } else if (tools.eqs(e.type, "mouseout")) { + if (setting.check.enable && tools.eqs(target.tagName, "span") && target.getAttribute("treeNode"+ consts.id.CHECK) !== null) { + tId = target.parentNode.id; + nodeEventType = "mouseoutCheck"; + } + } else if (tools.eqs(e.type, "click")) { + if (setting.check.enable && tools.eqs(target.tagName, "span") && target.getAttribute("treeNode"+ consts.id.CHECK) !== null) { + tId = target.parentNode.id; + nodeEventType = "checkNode"; + } + } + if (tId.length>0) { + node = data.getNodeCache(setting, tId); + switch (nodeEventType) { + case "checkNode" : + nodeEventCallback = _handler.onCheckNode; + break; + case "mouseoverCheck" : + nodeEventCallback = _handler.onMouseoverCheck; + break; + case "mouseoutCheck" : + nodeEventCallback = _handler.onMouseoutCheck; + break; + } + } + var proxyResult = { + stop: false, + node: node, + nodeEventType: nodeEventType, + nodeEventCallback: nodeEventCallback, + treeEventType: treeEventType, + treeEventCallback: treeEventCallback + }; + return proxyResult + }, + //default init node of excheck + _initNode = function(setting, level, n, parentNode, isFirstNode, isLastNode, openFlag) { + if (!n) return; + var checkedKey = setting.data.key.checked; + if (typeof n[checkedKey] == "string") n[checkedKey] = tools.eqs(n[checkedKey], "true"); + n[checkedKey] = !!n[checkedKey]; + n.checkedOld = n[checkedKey]; + if (typeof n.nocheck == "string") n.nocheck = tools.eqs(n.nocheck, "true"); + n.nocheck = !!n.nocheck || (setting.check.nocheckInherit && parentNode && !!parentNode.nocheck); + if (typeof n.chkDisabled == "string") n.chkDisabled = tools.eqs(n.chkDisabled, "true"); + n.chkDisabled = !!n.chkDisabled || (parentNode && !!parentNode.chkDisabled); + if (typeof n.halfCheck == "string") n.halfCheck = tools.eqs(n.halfCheck, "true"); + n.halfCheck = !!n.halfCheck; + n.check_Child_State = -1; + n.check_Focus = false; + n.getCheckStatus = function() {return data.getCheckStatus(setting, n);}; + }, + //add dom for check + _beforeA = function(setting, node, html) { + var checkedKey = setting.data.key.checked; + if (setting.check.enable) { + data.makeChkFlag(setting, node); + if (setting.check.chkStyle == consts.radio.STYLE && setting.check.radioType == consts.radio.TYPE_ALL && node[checkedKey] ) { + var r = data.getRoot(setting); + r.radioCheckedList.push(node); + } + html.push(""); + } + }, + //update zTreeObj, add method of check + _zTreeTools = function(setting, zTreeTools) { + zTreeTools.checkNode = function(node, checked, checkTypeFlag, callbackFlag) { + var checkedKey = this.setting.data.key.checked; + if (node.chkDisabled === true) return; + if (checked !== true && checked !== false) { + checked = !node[checkedKey]; + } + callbackFlag = !!callbackFlag; + + if (node[checkedKey] === checked && !checkTypeFlag) { + return; + } else if (callbackFlag && tools.apply(this.setting.callback.beforeCheck, [this.setting.treeId, node], true) == false) { + return; + } + if (tools.uCanDo(this.setting) && this.setting.check.enable && node.nocheck !== true) { + node[checkedKey] = checked; + var checkObj = $("#" + node.tId + consts.id.CHECK); + if (checkTypeFlag || this.setting.check.chkStyle === consts.radio.STYLE) view.checkNodeRelation(this.setting, node); + view.setChkClass(this.setting, checkObj, node); + view.repairParentChkClassWithSelf(this.setting, node); + if (callbackFlag) { + setting.treeObj.trigger(consts.event.CHECK, [null, setting.treeId, node]); + } + } + } + + zTreeTools.checkAllNodes = function(checked) { + view.repairAllChk(this.setting, !!checked); + } + + zTreeTools.getCheckedNodes = function(checked) { + var childKey = this.setting.data.key.children; + checked = (checked !== false); + return data.getTreeCheckedNodes(this.setting, data.getRoot(setting)[childKey], checked); + } + + zTreeTools.getChangeCheckedNodes = function() { + var childKey = this.setting.data.key.children; + return data.getTreeChangeCheckedNodes(this.setting, data.getRoot(setting)[childKey]); + } + + zTreeTools.setChkDisabled = function(node, disabled) { + disabled = !!disabled; + view.repairSonChkDisabled(this.setting, node, disabled); + if (!disabled) view.repairParentChkDisabled(this.setting, node, disabled); + } + + var _updateNode = zTreeTools.updateNode; + zTreeTools.updateNode = function(node, checkTypeFlag) { + if (_updateNode) _updateNode.apply(zTreeTools, arguments); + if (!node || !this.setting.check.enable) return; + var nObj = $("#" + node.tId); + if (nObj.get(0) && tools.uCanDo(this.setting)) { + var checkObj = $("#" + node.tId + consts.id.CHECK); + if (checkTypeFlag == true || this.setting.check.chkStyle === consts.radio.STYLE) view.checkNodeRelation(this.setting, node); + view.setChkClass(this.setting, checkObj, node); + view.repairParentChkClassWithSelf(this.setting, node); + } + } + }, + //method of operate data + _data = { + getRadioCheckedList: function(setting) { + var checkedList = data.getRoot(setting).radioCheckedList; + for (var i=0, j=checkedList.length; i -1 && node.check_Child_State < 2) : (node.check_Child_State > 0))) + }; + return r; + }, + getTreeCheckedNodes: function(setting, nodes, checked, results) { + if (!nodes) return []; + var childKey = setting.data.key.children, + checkedKey = setting.data.key.checked, + onlyOne = (checked && setting.check.chkStyle == consts.radio.STYLE && setting.check.radioType == consts.radio.TYPE_ALL); + results = !results ? [] : results; + for (var i = 0, l = nodes.length; i < l; i++) { + if (nodes[i].nocheck !== true && nodes[i][checkedKey] == checked) { + results.push(nodes[i]); + if(onlyOne) { + break; + } + } + data.getTreeCheckedNodes(setting, nodes[i][childKey], checked, results); + if(onlyOne && results.length > 0) { + break; + } + } + return results; + }, + getTreeChangeCheckedNodes: function(setting, nodes, results) { + if (!nodes) return []; + var childKey = setting.data.key.children, + checkedKey = setting.data.key.checked; + results = !results ? [] : results; + for (var i = 0, l = nodes.length; i < l; i++) { + if (nodes[i].nocheck !== true && nodes[i][checkedKey] != nodes[i].checkedOld) { + results.push(nodes[i]); + } + data.getTreeChangeCheckedNodes(setting, nodes[i][childKey], results); + } + return results; + }, + makeChkFlag: function(setting, node) { + if (!node) return; + var childKey = setting.data.key.children, + checkedKey = setting.data.key.checked, + chkFlag = -1; + if (node[childKey]) { + var start = false; + for (var i = 0, l = node[childKey].length; i < l; i++) { + var cNode = node[childKey][i]; + var tmp = -1; + if (setting.check.chkStyle == consts.radio.STYLE) { + if (cNode.nocheck === true) { + tmp = cNode.check_Child_State; + } else if (cNode.halfCheck === true) { + tmp = 2; + } else if (cNode.nocheck !== true && cNode[checkedKey]) { + tmp = 2; + } else { + tmp = cNode.check_Child_State > 0 ? 2:0; + } + if (tmp == 2) { + chkFlag = 2; break; + } else if (tmp == 0){ + chkFlag = 0; + } + } else if (setting.check.chkStyle == consts.checkbox.STYLE) { + if (cNode.nocheck === true) { + tmp = cNode.check_Child_State; + } else if (cNode.halfCheck === true) { + tmp = 1; + } else if (cNode.nocheck !== true && cNode[checkedKey] ) { + tmp = (cNode.check_Child_State === -1 || cNode.check_Child_State === 2) ? 2 : 1; + } else { + tmp = (cNode.check_Child_State > 0) ? 1 : 0; + } + if (tmp === 1) { + chkFlag = 1; break; + } else if (tmp === 2 && start && tmp !== chkFlag) { + chkFlag = 1; break; + } else if (chkFlag === 2 && tmp > -1 && tmp < 2) { + chkFlag = 1; break; + } else if (tmp > -1) { + chkFlag = tmp; + } + if (!start) start = (cNode.nocheck !== true); + } + } + } + node.check_Child_State = chkFlag; + } + }, + //method of event proxy + _event = { + + }, + //method of event handler + _handler = { + onCheckNode: function (event, node) { + if (node.chkDisabled === true) return false; + var setting = data.getSetting(event.data.treeId), + checkedKey = setting.data.key.checked; + if (tools.apply(setting.callback.beforeCheck, [setting.treeId, node], true) == false) return true; + node[checkedKey] = !node[checkedKey]; + view.checkNodeRelation(setting, node); + var checkObj = $("#" + node.tId + consts.id.CHECK); + view.setChkClass(setting, checkObj, node); + view.repairParentChkClassWithSelf(setting, node); + setting.treeObj.trigger(consts.event.CHECK, [event, setting.treeId, node]); + return true; + }, + onMouseoverCheck: function(event, node) { + if (node.chkDisabled === true) return false; + var setting = data.getSetting(event.data.treeId), + checkObj = $("#" + node.tId + consts.id.CHECK); + node.check_Focus = true; + view.setChkClass(setting, checkObj, node); + return true; + }, + onMouseoutCheck: function(event, node) { + if (node.chkDisabled === true) return false; + var setting = data.getSetting(event.data.treeId), + checkObj = $("#" + node.tId + consts.id.CHECK); + node.check_Focus = false; + view.setChkClass(setting, checkObj, node); + return true; + } + }, + //method of tools for zTree + _tools = { + + }, + //method of operate ztree dom + _view = { + checkNodeRelation: function(setting, node) { + var pNode, i, l, + childKey = setting.data.key.children, + checkedKey = setting.data.key.checked, + r = consts.radio; + if (setting.check.chkStyle == r.STYLE) { + var checkedList = data.getRadioCheckedList(setting); + if (node[checkedKey]) { + if (setting.check.radioType == r.TYPE_ALL) { + for (i = checkedList.length-1; i >= 0; i--) { + pNode = checkedList[i]; + pNode[checkedKey] = false; + checkedList.splice(i, 1); + + view.setChkClass(setting, $("#" + pNode.tId + consts.id.CHECK), pNode); + if (pNode.parentTId != node.parentTId) { + view.repairParentChkClassWithSelf(setting, pNode); + } + } + checkedList.push(node); + } else { + var parentNode = (node.parentTId) ? node.getParentNode() : data.getRoot(setting); + for (i = 0, l = parentNode[childKey].length; i < l; i++) { + pNode = parentNode[childKey][i]; + if (pNode[checkedKey] && pNode != node) { + pNode[checkedKey] = false; + view.setChkClass(setting, $("#" + pNode.tId + consts.id.CHECK), pNode); + } + } + } + } else if (setting.check.radioType == r.TYPE_ALL) { + for (i = 0, l = checkedList.length; i < l; i++) { + if (node == checkedList[i]) { + checkedList.splice(i, 1); + break; + } + } + } + + } else { + if (node[checkedKey] && (!node[childKey] || node[childKey].length==0 || setting.check.chkboxType.Y.indexOf("s") > -1)) { + view.setSonNodeCheckBox(setting, node, true); + } + if (!node[checkedKey] && (!node[childKey] || node[childKey].length==0 || setting.check.chkboxType.N.indexOf("s") > -1)) { + view.setSonNodeCheckBox(setting, node, false); + } + if (node[checkedKey] && setting.check.chkboxType.Y.indexOf("p") > -1) { + view.setParentNodeCheckBox(setting, node, true); + } + if (!node[checkedKey] && setting.check.chkboxType.N.indexOf("p") > -1) { + view.setParentNodeCheckBox(setting, node, false); + } + } + }, + makeChkClass: function(setting, node) { + var checkedKey = setting.data.key.checked, + c = consts.checkbox, r = consts.radio, + fullStyle = ""; + if (node.chkDisabled === true) { + fullStyle = c.DISABLED; + } else if (node.halfCheck) { + fullStyle = c.PART; + } else if (setting.check.chkStyle == r.STYLE) { + fullStyle = (node.check_Child_State < 1)? c.FULL:c.PART; + } else { + fullStyle = node[checkedKey] ? ((node.check_Child_State === 2 || node.check_Child_State === -1) ? c.FULL:c.PART) : ((node.check_Child_State < 1)? c.FULL:c.PART); + } + var chkName = setting.check.chkStyle + "_" + (node[checkedKey] ? c.TRUE : c.FALSE) + "_" + fullStyle; + chkName = (node.check_Focus && node.chkDisabled !== true) ? chkName + "_" + c.FOCUS : chkName; + return "button " + c.DEFAULT + " " + chkName; + }, + repairAllChk: function(setting, checked) { + if (setting.check.enable && setting.check.chkStyle === consts.checkbox.STYLE) { + var checkedKey = setting.data.key.checked, + childKey = setting.data.key.children, + root = data.getRoot(setting); + for (var i = 0, l = root[childKey].length; i 0) { + view.repairParentChkClass(setting, node[childKey][0]); + } else { + view.repairParentChkClass(setting, node); + } + }, + repairSonChkDisabled: function(setting, node, chkDisabled) { + if (!node) return; + var childKey = setting.data.key.children; + if (node.chkDisabled != chkDisabled) { + node.chkDisabled = chkDisabled; + if (node.nocheck !== true) view.repairChkClass(setting, node); + } + if (node[childKey]) { + for (var i = 0, l = node[childKey].length; i < l; i++) { + var sNode = node[childKey][i]; + view.repairSonChkDisabled(setting, sNode, chkDisabled); + } + } + }, + repairParentChkDisabled: function(setting, node, chkDisabled) { + if (!node) return; + if (node.chkDisabled != chkDisabled) { + node.chkDisabled = chkDisabled; + if (node.nocheck !== true) view.repairChkClass(setting, node); + } + view.repairParentChkDisabled(setting, node.getParentNode(), chkDisabled); + }, + setChkClass: function(setting, obj, node) { + if (!obj) return; + if (node.nocheck === true) { + obj.hide(); + } else { + obj.show(); + } + obj.removeClass(); + obj.addClass(view.makeChkClass(setting, node)); + }, + setParentNodeCheckBox: function(setting, node, value, srcNode) { + var childKey = setting.data.key.children, + checkedKey = setting.data.key.checked, + checkObj = $("#" + node.tId + consts.id.CHECK); + if (!srcNode) srcNode = node; + data.makeChkFlag(setting, node); + if (node.nocheck !== true && node.chkDisabled !== true) { + node[checkedKey] = value; + view.setChkClass(setting, checkObj, node); + if (setting.check.autoCheckTrigger && node != srcNode && node.nocheck !== true) { + setting.treeObj.trigger(consts.event.CHECK, [setting.treeId, node]); + } + } + if (node.parentTId) { + var pSign = true; + if (!value) { + var pNodes = node.getParentNode()[childKey]; + for (var i = 0, l = pNodes.length; i < l; i++) { + if ((pNodes[i].nocheck !== true && pNodes[i][checkedKey]) + || (pNodes[i].nocheck === true && pNodes[i].check_Child_State > 0)) { + pSign = false; + break; + } + } + } + if (pSign) { + view.setParentNodeCheckBox(setting, node.getParentNode(), value, srcNode); + } + } + }, + setSonNodeCheckBox: function(setting, node, value, srcNode) { + if (!node) return; + var childKey = setting.data.key.children, + checkedKey = setting.data.key.checked, + checkObj = $("#" + node.tId + consts.id.CHECK); + if (!srcNode) srcNode = node; + + var hasDisable = false; + if (node[childKey]) { + for (var i = 0, l = node[childKey].length; i < l && node.chkDisabled !== true; i++) { + var sNode = node[childKey][i]; + view.setSonNodeCheckBox(setting, sNode, value, srcNode); + if (sNode.chkDisabled === true) hasDisable = true; + } + } + + if (node != data.getRoot(setting) && node.chkDisabled !== true) { + if (hasDisable && node.nocheck !== true) { + data.makeChkFlag(setting, node); + } + if (node.nocheck !== true) { + node[checkedKey] = value; + if (!hasDisable) node.check_Child_State = (node[childKey] && node[childKey].length > 0) ? (value ? 2 : 0) : -1; + } else { + node.check_Child_State = -1; + } + view.setChkClass(setting, checkObj, node); + if (setting.check.autoCheckTrigger && node != srcNode && node.nocheck !== true) { + setting.treeObj.trigger(consts.event.CHECK, [setting.treeId, node]); + } + } + + } + }, + + _z = { + tools: _tools, + view: _view, + event: _event, + data: _data + }; + $.extend(true, $.fn.zTree.consts, _consts); + $.extend(true, $.fn.zTree._z, _z); + + var zt = $.fn.zTree, + tools = zt._z.tools, + consts = zt.consts, + view = zt._z.view, + data = zt._z.data, + event = zt._z.event; + + data.exSetting(_setting); + data.addInitBind(_bindEvent); + data.addInitUnBind(_unbindEvent); + data.addInitCache(_initCache); + data.addInitNode(_initNode); + data.addInitProxy(_eventProxy); + data.addInitRoot(_initRoot); + data.addBeforeA(_beforeA); + data.addZTreeTools(_zTreeTools); + + var _createNodes = view.createNodes; + view.createNodes = function(setting, level, nodes, parentNode) { + if (_createNodes) _createNodes.apply(view, arguments); + if (!nodes) return; + view.repairParentChkClassWithSelf(setting, parentNode); + } + var _removeNode = view.removeNode; + view.removeNode = function(setting, node) { + var parentNode = node.getParentNode(); + if (_removeNode) _removeNode.apply(view, arguments); + if (!node || !parentNode) return; + view.repairChkClass(setting, parentNode); + view.repairParentChkClass(setting, parentNode); + } + + var _appendNodes = view.appendNodes; + view.appendNodes = function(setting, level, nodes, parentNode, initFlag, openFlag) { + var html = ""; + if (_appendNodes) { + html = _appendNodes.apply(view, arguments); + } + if (parentNode) { + data.makeChkFlag(setting, parentNode); + } + return html; + } +})(jQuery); +/* + * JQuery zTree exedit 3.5 + * http://zTree.me/ + * + * Copyright (c) 2010 Hunter.z + * + * Licensed same as jquery - MIT License + * http://www.opensource.org/licenses/mit-license.php + * + * email: hunter.z@263.net + * Date: 2012-11-20 + */ +(function($){ + //default consts of exedit + var _consts = { + event: { + DRAG: "ztree_drag", + DROP: "ztree_drop", + REMOVE: "ztree_remove", + RENAME: "ztree_rename" + }, + id: { + EDIT: "_edit", + INPUT: "_input", + REMOVE: "_remove" + }, + move: { + TYPE_INNER: "inner", + TYPE_PREV: "prev", + TYPE_NEXT: "next" + }, + node: { + CURSELECTED_EDIT: "curSelectedNode_Edit", + TMPTARGET_TREE: "tmpTargetzTree", + TMPTARGET_NODE: "tmpTargetNode" + } + }, + //default setting of exedit + _setting = { + edit: { + enable: false, + editNameSelectAll: false, + showRemoveBtn: true, + showRenameBtn: true, + removeTitle: "remove", + renameTitle: "rename", + drag: { + autoExpandTrigger: false, + isCopy: true, + isMove: true, + prev: true, + next: true, + inner: true, + minMoveSize: 5, + borderMax: 10, + borderMin: -5, + maxShowNodeNum: 5, + autoOpenTime: 500 + } + }, + view: { + addHoverDom: null, + removeHoverDom: null + }, + callback: { + beforeDrag:null, + beforeDragOpen:null, + beforeDrop:null, + beforeEditName:null, + beforeRename:null, + onDrag:null, + onDrop:null, + onRename:null + } + }, + //default root of exedit + _initRoot = function (setting) { + var r = data.getRoot(setting); + r.curEditNode = null; + r.curEditInput = null; + r.curHoverNode = null; + r.dragFlag = 0; + r.dragNodeShowBefore = []; + r.dragMaskList = new Array(); + r.showHoverDom = true; + }, + //default cache of exedit + _initCache = function(treeId) {}, + //default bind event of exedit + _bindEvent = function(setting) { + var o = setting.treeObj; + var c = consts.event; + o.bind(c.RENAME, function (event, treeId, treeNode) { + tools.apply(setting.callback.onRename, [event, treeId, treeNode]); + }); + + o.bind(c.REMOVE, function (event, treeId, treeNode) { + tools.apply(setting.callback.onRemove, [event, treeId, treeNode]); + }); + + o.bind(c.DRAG, function (event, srcEvent, treeId, treeNodes) { + tools.apply(setting.callback.onDrag, [srcEvent, treeId, treeNodes]); + }); + + o.bind(c.DROP, function (event, srcEvent, treeId, treeNodes, targetNode, moveType, isCopy) { + tools.apply(setting.callback.onDrop, [srcEvent, treeId, treeNodes, targetNode, moveType, isCopy]); + }); + }, + _unbindEvent = function(setting) { + var o = setting.treeObj; + var c = consts.event; + o.unbind(c.RENAME); + o.unbind(c.REMOVE); + o.unbind(c.DRAG); + o.unbind(c.DROP); + }, + //default event proxy of exedit + _eventProxy = function(e) { + var target = e.target, + setting = data.getSetting(e.data.treeId), + relatedTarget = e.relatedTarget, + tId = "", node = null, + nodeEventType = "", treeEventType = "", + nodeEventCallback = null, treeEventCallback = null, + tmp = null; + + if (tools.eqs(e.type, "mouseover")) { + tmp = tools.getMDom(setting, target, [{tagName:"a", attrName:"treeNode"+consts.id.A}]); + if (tmp) { + tId = tmp.parentNode.id; + nodeEventType = "hoverOverNode"; + } + } else if (tools.eqs(e.type, "mouseout")) { + tmp = tools.getMDom(setting, relatedTarget, [{tagName:"a", attrName:"treeNode"+consts.id.A}]); + if (!tmp) { + tId = "remove"; + nodeEventType = "hoverOutNode"; + } + } else if (tools.eqs(e.type, "mousedown")) { + tmp = tools.getMDom(setting, target, [{tagName:"a", attrName:"treeNode"+consts.id.A}]); + if (tmp) { + tId = tmp.parentNode.id; + nodeEventType = "mousedownNode"; + } + } + if (tId.length>0) { + node = data.getNodeCache(setting, tId); + switch (nodeEventType) { + case "mousedownNode" : + nodeEventCallback = _handler.onMousedownNode; + break; + case "hoverOverNode" : + nodeEventCallback = _handler.onHoverOverNode; + break; + case "hoverOutNode" : + nodeEventCallback = _handler.onHoverOutNode; + break; + } + } + var proxyResult = { + stop: false, + node: node, + nodeEventType: nodeEventType, + nodeEventCallback: nodeEventCallback, + treeEventType: treeEventType, + treeEventCallback: treeEventCallback + }; + return proxyResult + }, + //default init node of exedit + _initNode = function(setting, level, n, parentNode, isFirstNode, isLastNode, openFlag) { + if (!n) return; + n.isHover = false; + n.editNameFlag = false; + }, + //update zTreeObj, add method of edit + _zTreeTools = function(setting, zTreeTools) { + zTreeTools.cancelEditName = function(newName) { + var root = data.getRoot(setting), + nameKey = setting.data.key.name, + node = root.curEditNode; + if (!root.curEditNode) return; + view.cancelCurEditNode(setting, newName?newName:node[nameKey]); + } + zTreeTools.copyNode = function(targetNode, node, moveType, isSilent) { + if (!node) return null; + if (targetNode && !targetNode.isParent && setting.data.keep.leaf && moveType === consts.move.TYPE_INNER) return null; + var newNode = tools.clone(node); + if (!targetNode) { + targetNode = null; + moveType = consts.move.TYPE_INNER; + } + if (moveType == consts.move.TYPE_INNER) { + function copyCallback() { + view.addNodes(setting, targetNode, [newNode], isSilent); + } + + if (tools.canAsync(setting, targetNode)) { + view.asyncNode(setting, targetNode, isSilent, copyCallback); + } else { + copyCallback(); + } + } else { + view.addNodes(setting, targetNode.parentNode, [newNode], isSilent); + view.moveNode(setting, targetNode, newNode, moveType, false, isSilent); + } + return newNode; + } + zTreeTools.editName = function(node) { + if (!node || !node.tId || node !== data.getNodeCache(setting, node.tId)) return; + if (node.parentTId) view.expandCollapseParentNode(setting, node.getParentNode(), true); + view.editNode(setting, node) + } + zTreeTools.moveNode = function(targetNode, node, moveType, isSilent) { + if (!node) return node; + if (targetNode && !targetNode.isParent && setting.data.keep.leaf && moveType === consts.move.TYPE_INNER) { + return null; + } else if (targetNode && ((node.parentTId == targetNode.tId && moveType == consts.move.TYPE_INNER) || $("#" + node.tId).find("#" + targetNode.tId).length > 0)) { + return null; + } else if (!targetNode) { + targetNode = null; + } + function moveCallback() { + view.moveNode(setting, targetNode, node, moveType, false, isSilent); + } + if (tools.canAsync(setting, targetNode)) { + view.asyncNode(setting, targetNode, isSilent, moveCallback); + } else { + moveCallback(); + } + return node; + } + zTreeTools.setEditable = function(editable) { + setting.edit.enable = editable; + return this.refresh(); + } + }, + //method of operate data + _data = { + setSonNodeLevel: function(setting, parentNode, node) { + if (!node) return; + var childKey = setting.data.key.children; + node.level = (parentNode)? parentNode.level + 1 : 0; + if (!node[childKey]) return; + for (var i = 0, l = node[childKey].length; i < l; i++) { + if (node[childKey][i]) data.setSonNodeLevel(setting, node, node[childKey][i]); + } + } + }, + //method of event proxy + _event = { + + }, + //method of event handler + _handler = { + onHoverOverNode: function(event, node) { + var setting = data.getSetting(event.data.treeId), + root = data.getRoot(setting); + if (root.curHoverNode != node) { + _handler.onHoverOutNode(event); + } + root.curHoverNode = node; + view.addHoverDom(setting, node); + }, + onHoverOutNode: function(event, node) { + var setting = data.getSetting(event.data.treeId), + root = data.getRoot(setting); + if (root.curHoverNode && !data.isSelectedNode(setting, root.curHoverNode)) { + view.removeTreeDom(setting, root.curHoverNode); + root.curHoverNode = null; + } + }, + onMousedownNode: function(eventMouseDown, _node) { + var i,l, + setting = data.getSetting(eventMouseDown.data.treeId), + root = data.getRoot(setting); + //right click can't drag & drop + if (eventMouseDown.button == 2 || !setting.edit.enable || (!setting.edit.drag.isCopy && !setting.edit.drag.isMove)) return true; + + //input of edit node name can't drag & drop + var target = eventMouseDown.target, + _nodes = data.getRoot(setting).curSelectedList, + nodes = []; + if (!data.isSelectedNode(setting, _node)) { + nodes = [_node]; + } else { + for (i=0, l=_nodes.length; i1) { + var pNodes = nodes[0].parentTId ? nodes[0].getParentNode()[childKey] : data.getNodes(setting); + tmpNodes = []; + for (i=0, l=pNodes.length; i -1 && (lastIndex+1) !== i) { + isOrder = false; + } + tmpNodes.push(pNodes[i]); + lastIndex = i; + } + if (nodes.length === tmpNodes.length) { + nodes = tmpNodes; + break; + } + } + } + if (isOrder) { + preNode = nodes[0].getPreNode(); + nextNode = nodes[nodes.length-1].getNextNode(); + } + + //set node in selected + curNode = $("
                                                                                                                                                                                                                                                                                                    "); + for (i=0, l=nodes.length; i0); + view.removeTreeDom(setting, tmpNode); + + tmpDom = $("
                                                                                                                                                                                                                                                                                                  • "); + tmpDom.append($("#" + tmpNode.tId + consts.id.A).clone()); + tmpDom.css("padding", "0"); + tmpDom.children("#" + tmpNode.tId + consts.id.A).removeClass(consts.node.CURSELECTED); + curNode.append(tmpDom); + if (i == setting.edit.drag.maxShowNodeNum-1) { + tmpDom = $("
                                                                                                                                                                                                                                                                                                  • ...
                                                                                                                                                                                                                                                                                                  • "); + curNode.append(tmpDom); + break; + } + } + curNode.attr("id", nodes[0].tId + consts.id.UL + "_tmp"); + curNode.addClass(setting.treeObj.attr("class")); + curNode.appendTo("body"); + + tmpArrow = $(""); + tmpArrow.attr("id", "zTreeMove_arrow_tmp"); + tmpArrow.appendTo("body"); + + setting.treeObj.trigger(consts.event.DRAG, [event, setting.treeId, nodes]); + } + + if (root.dragFlag == 1) { + if (tmpTarget && tmpArrow.attr("id") == event.target.id && tmpTargetNodeId && (event.clientX + doc.scrollLeft()+2) > ($("#" + tmpTargetNodeId + consts.id.A, tmpTarget).offset().left)) { + var xT = $("#" + tmpTargetNodeId + consts.id.A, tmpTarget); + event.target = (xT.length > 0) ? xT.get(0) : event.target; + } else if (tmpTarget) { + tmpTarget.removeClass(consts.node.TMPTARGET_TREE); + if (tmpTargetNodeId) $("#" + tmpTargetNodeId + consts.id.A, tmpTarget).removeClass(consts.node.TMPTARGET_NODE + "_" + consts.move.TYPE_PREV) + .removeClass(consts.node.TMPTARGET_NODE + "_" + _consts.move.TYPE_NEXT).removeClass(consts.node.TMPTARGET_NODE + "_" + _consts.move.TYPE_INNER); + } + tmpTarget = null; + tmpTargetNodeId = null; + + //judge drag & drop in multi ztree + isOtherTree = false; + targetSetting = setting; + var settings = data.getSettings(); + for (var s in settings) { + if (settings[s].treeId && settings[s].edit.enable && settings[s].treeId != setting.treeId + && (event.target.id == settings[s].treeId || $(event.target).parents("#" + settings[s].treeId).length>0)) { + isOtherTree = true; + targetSetting = settings[s]; + } + } + + var docScrollTop = doc.scrollTop(), + docScrollLeft = doc.scrollLeft(), + treeOffset = targetSetting.treeObj.offset(), + scrollHeight = targetSetting.treeObj.get(0).scrollHeight, + scrollWidth = targetSetting.treeObj.get(0).scrollWidth, + dTop = (event.clientY + docScrollTop - treeOffset.top), + dBottom = (targetSetting.treeObj.height() + treeOffset.top - event.clientY - docScrollTop), + dLeft = (event.clientX + docScrollLeft - treeOffset.left), + dRight = (targetSetting.treeObj.width() + treeOffset.left - event.clientX - docScrollLeft), + isTop = (dTop < setting.edit.drag.borderMax && dTop > setting.edit.drag.borderMin), + isBottom = (dBottom < setting.edit.drag.borderMax && dBottom > setting.edit.drag.borderMin), + isLeft = (dLeft < setting.edit.drag.borderMax && dLeft > setting.edit.drag.borderMin), + isRight = (dRight < setting.edit.drag.borderMax && dRight > setting.edit.drag.borderMin), + isTreeInner = dTop > setting.edit.drag.borderMin && dBottom > setting.edit.drag.borderMin && dLeft > setting.edit.drag.borderMin && dRight > setting.edit.drag.borderMin, + isTreeTop = (isTop && targetSetting.treeObj.scrollTop() <= 0), + isTreeBottom = (isBottom && (targetSetting.treeObj.scrollTop() + targetSetting.treeObj.height()+10) >= scrollHeight), + isTreeLeft = (isLeft && targetSetting.treeObj.scrollLeft() <= 0), + isTreeRight = (isRight && (targetSetting.treeObj.scrollLeft() + targetSetting.treeObj.width()+10) >= scrollWidth); + + if (event.target.id && targetSetting.treeObj.find("#" + event.target.id).length > 0) { + //get node
                                                                                                                                                                                                                                                                                                  • dom + var targetObj = event.target; + while (targetObj && targetObj.tagName && !tools.eqs(targetObj.tagName, "li") && targetObj.id != targetSetting.treeId) { + targetObj = targetObj.parentNode; + } + + var canMove = true; + //don't move to self or children of self + for (i=0, l=nodes.length; i 0) { + canMove = false; + break; + } + } + if (canMove) { + if (event.target.id && + (event.target.id == (targetObj.id + consts.id.A) || $(event.target).parents("#" + targetObj.id + consts.id.A).length > 0)) { + tmpTarget = $(targetObj); + tmpTargetNodeId = targetObj.id; + } + } + } + + //the mouse must be in zTree + tmpNode = nodes[0]; + if (isTreeInner && (event.target.id == targetSetting.treeId || $(event.target).parents("#" + targetSetting.treeId).length>0)) { + //judge mouse move in root of ztree + if (!tmpTarget && (event.target.id == targetSetting.treeId || isTreeTop || isTreeBottom || isTreeLeft || isTreeRight) && (isOtherTree || (!isOtherTree && tmpNode.parentTId))) { + tmpTarget = targetSetting.treeObj; + } + //auto scroll top + if (isTop) { + targetSetting.treeObj.scrollTop(targetSetting.treeObj.scrollTop()-10); + } else if (isBottom) { + targetSetting.treeObj.scrollTop(targetSetting.treeObj.scrollTop()+10); + } + if (isLeft) { + targetSetting.treeObj.scrollLeft(targetSetting.treeObj.scrollLeft()-10); + } else if (isRight) { + targetSetting.treeObj.scrollLeft(targetSetting.treeObj.scrollLeft()+10); + } + //auto scroll left + if (tmpTarget && tmpTarget != targetSetting.treeObj && tmpTarget.offset().left < targetSetting.treeObj.offset().left) { + targetSetting.treeObj.scrollLeft(targetSetting.treeObj.scrollLeft()+ tmpTarget.offset().left - targetSetting.treeObj.offset().left); + } + } + + curNode.css({ + "top": (event.clientY + docScrollTop + 3) + "px", + "left": (event.clientX + docScrollLeft + 3) + "px" + }); + + var dX = 0; + var dY = 0; + if (tmpTarget && tmpTarget.attr("id")!=targetSetting.treeId) { + var tmpTargetNode = tmpTargetNodeId == null ? null: data.getNodeCache(targetSetting, tmpTargetNodeId), + isCopy = (event.ctrlKey && setting.edit.drag.isMove && setting.edit.drag.isCopy) || (!setting.edit.drag.isMove && setting.edit.drag.isCopy), + isPrev = !!(preNode && tmpTargetNodeId === preNode.tId), + isNext = !!(nextNode && tmpTargetNodeId === nextNode.tId), + isInner = (tmpNode.parentTId && tmpNode.parentTId == tmpTargetNodeId), + canPrev = (isCopy || !isNext) && tools.apply(targetSetting.edit.drag.prev, [targetSetting.treeId, nodes, tmpTargetNode], !!targetSetting.edit.drag.prev), + canNext = (isCopy || !isPrev) && tools.apply(targetSetting.edit.drag.next, [targetSetting.treeId, nodes, tmpTargetNode], !!targetSetting.edit.drag.next), + canInner = (isCopy || !isInner) && !(targetSetting.data.keep.leaf && !tmpTargetNode.isParent) && tools.apply(targetSetting.edit.drag.inner, [targetSetting.treeId, nodes, tmpTargetNode], !!targetSetting.edit.drag.inner); + if (!canPrev && !canNext && !canInner) { + tmpTarget = null; + tmpTargetNodeId = ""; + moveType = consts.move.TYPE_INNER; + tmpArrow.css({ + "display":"none" + }); + if (window.zTreeMoveTimer) { + clearTimeout(window.zTreeMoveTimer); + window.zTreeMoveTargetNodeTId = null + } + } else { + var tmpTargetA = $("#" + tmpTargetNodeId + consts.id.A, tmpTarget), + tmpNextA = tmpTargetNode.isLastNode ? null : $("#" + tmpTargetNode.getNextNode().tId + consts.id.A, tmpTarget.next()), + tmpTop = tmpTargetA.offset().top, + tmpLeft = tmpTargetA.offset().left, + prevPercent = canPrev ? (canInner ? 0.25 : (canNext ? 0.5 : 1) ) : -1, + nextPercent = canNext ? (canInner ? 0.75 : (canPrev ? 0.5 : 0) ) : -1, + dY_percent = (event.clientY + docScrollTop - tmpTop)/tmpTargetA.height(); + if ((prevPercent==1 ||dY_percent<=prevPercent && dY_percent>=-.2) && canPrev) { + dX = 1 - tmpArrow.width(); + dY = tmpTop - tmpArrow.height()/2; + moveType = consts.move.TYPE_PREV; + } else if ((nextPercent==0 || dY_percent>=nextPercent && dY_percent<=1.2) && canNext) { + dX = 1 - tmpArrow.width(); + dY = (tmpNextA == null || (tmpTargetNode.isParent && tmpTargetNode.open)) ? (tmpTop + tmpTargetA.height() - tmpArrow.height()/2) : (tmpNextA.offset().top - tmpArrow.height()/2); + moveType = consts.move.TYPE_NEXT; + }else { + dX = 5 - tmpArrow.width(); + dY = tmpTop; + moveType = consts.move.TYPE_INNER; + } + tmpArrow.css({ + "display":"block", + "top": dY + "px", + "left": (tmpLeft + dX) + "px" + }); + tmpTargetA.addClass(consts.node.TMPTARGET_NODE + "_" + moveType); + + if (preTmpTargetNodeId != tmpTargetNodeId || preTmpMoveType != moveType) { + startTime = (new Date()).getTime(); + } + if (tmpTargetNode && tmpTargetNode.isParent && moveType == consts.move.TYPE_INNER) { + var startTimer = true; + if (window.zTreeMoveTimer && window.zTreeMoveTargetNodeTId !== tmpTargetNode.tId) { + clearTimeout(window.zTreeMoveTimer); + window.zTreeMoveTargetNodeTId = null; + } else if (window.zTreeMoveTimer && window.zTreeMoveTargetNodeTId === tmpTargetNode.tId) { + startTimer = false; + } + if (startTimer) { + window.zTreeMoveTimer = setTimeout(function() { + if (moveType != consts.move.TYPE_INNER) return; + if (tmpTargetNode && tmpTargetNode.isParent && !tmpTargetNode.open && (new Date()).getTime() - startTime > targetSetting.edit.drag.autoOpenTime + && tools.apply(targetSetting.callback.beforeDragOpen, [targetSetting.treeId, tmpTargetNode], true)) { + view.switchNode(targetSetting, tmpTargetNode); + if (targetSetting.edit.drag.autoExpandTrigger) { + targetSetting.treeObj.trigger(consts.event.EXPAND, [targetSetting.treeId, tmpTargetNode]); + } + } + }, targetSetting.edit.drag.autoOpenTime+50); + window.zTreeMoveTargetNodeTId = tmpTargetNode.tId; + } + } + } + } else { + moveType = consts.move.TYPE_INNER; + if (tmpTarget && tools.apply(targetSetting.edit.drag.inner, [targetSetting.treeId, nodes, null], !!targetSetting.edit.drag.inner)) { + tmpTarget.addClass(consts.node.TMPTARGET_TREE); + } else { + tmpTarget = null; + } + tmpArrow.css({ + "display":"none" + }); + if (window.zTreeMoveTimer) { + clearTimeout(window.zTreeMoveTimer); + window.zTreeMoveTargetNodeTId = null; + } + } + preTmpTargetNodeId = tmpTargetNodeId; + preTmpMoveType = moveType; + } + return false; + } + + doc.bind("mouseup", _docMouseUp); + function _docMouseUp(event) { + if (window.zTreeMoveTimer) { + clearTimeout(window.zTreeMoveTimer); + window.zTreeMoveTargetNodeTId = null; + } + preTmpTargetNodeId = null; + preTmpMoveType = null; + doc.unbind("mousemove", _docMouseMove); + doc.unbind("mouseup", _docMouseUp); + doc.unbind("selectstart", _docSelect); + $("body").css("cursor", "auto"); + if (tmpTarget) { + tmpTarget.removeClass(consts.node.TMPTARGET_TREE); + if (tmpTargetNodeId) $("#" + tmpTargetNodeId + consts.id.A, tmpTarget).removeClass(consts.node.TMPTARGET_NODE + "_" + consts.move.TYPE_PREV) + .removeClass(consts.node.TMPTARGET_NODE + "_" + _consts.move.TYPE_NEXT).removeClass(consts.node.TMPTARGET_NODE + "_" + _consts.move.TYPE_INNER); + } + tools.showIfameMask(setting, false); + + root.showHoverDom = true; + if (root.dragFlag == 0) return; + root.dragFlag = 0; + + var i, l, tmpNode; + for (i=0, l=nodes.length; i0); + } + $("#" + newNodes[0].tId).focus().blur(); + + } + + if (moveType == consts.move.TYPE_INNER && tools.canAsync(targetSetting, dragTargetNode)) { + view.asyncNode(targetSetting, dragTargetNode, false, dropCallback); + } else { + dropCallback(); + } + + setting.treeObj.trigger(consts.event.DROP, [event, targetSetting.treeId, newNodes, dragTargetNode, moveType, isCopy]); + } else { + for (i=0, l=nodes.length; i0); + } + setting.treeObj.trigger(consts.event.DROP, [event, setting.treeId, nodes, null, null, null]); + } + } + + doc.bind("selectstart", _docSelect); + function _docSelect() { + return false; + } + + //Avoid FireFox's Bug + //If zTree Div CSS set 'overflow', so drag node outside of zTree, and event.target is error. + if(eventMouseDown.preventDefault) { + eventMouseDown.preventDefault(); + } + return true; + } + }, + //method of tools for zTree + _tools = { + getAbs: function (obj) { + var oRect = obj.getBoundingClientRect(); + return [oRect.left,oRect.top] + }, + inputFocus: function(inputObj) { + if (inputObj.get(0)) { + inputObj.focus(); + tools.setCursorPosition(inputObj.get(0), inputObj.val().length); + } + }, + inputSelect: function(inputObj) { + if (inputObj.get(0)) { + inputObj.focus(); + inputObj.select(); + } + }, + setCursorPosition: function(obj, pos){ + if(obj.setSelectionRange) { + obj.focus(); + obj.setSelectionRange(pos,pos); + } else if (obj.createTextRange) { + var range = obj.createTextRange(); + range.collapse(true); + range.moveEnd('character', pos); + range.moveStart('character', pos); + range.select(); + } + }, + showIfameMask: function(setting, showSign) { + var root = data.getRoot(setting); + //clear full mask + while (root.dragMaskList.length > 0) { + root.dragMaskList[0].remove(); + root.dragMaskList.shift(); + } + if (showSign) { + //show mask + var iframeList = $("iframe"); + for (var i = 0, l = iframeList.length; i < l; i++) { + var obj = iframeList.get(i), + r = tools.getAbs(obj), + dragMask = $("
                                                                                                                                                                                                                                                                                                    "); + dragMask.appendTo("body"); + root.dragMaskList.push(dragMask); + } + } + } + }, + //method of operate ztree dom + _view = { + addEditBtn: function(setting, node) { + if (node.editNameFlag || $("#" + node.tId + consts.id.EDIT).length > 0) { + return; + } + if (!tools.apply(setting.edit.showRenameBtn, [setting.treeId, node], setting.edit.showRenameBtn)) { + return; + } + var aObj = $("#" + node.tId + consts.id.A), + editStr = ""; + aObj.append(editStr); + + $("#" + node.tId + consts.id.EDIT).bind('click', + function() { + if (!tools.uCanDo(setting) || tools.apply(setting.callback.beforeEditName, [setting.treeId, node], true) == false) return false; + view.editNode(setting, node); + return false; + } + ).show(); + }, + addRemoveBtn: function(setting, node) { + if (node.editNameFlag || $("#" + node.tId + consts.id.REMOVE).length > 0) { + return; + } + if (!tools.apply(setting.edit.showRemoveBtn, [setting.treeId, node], setting.edit.showRemoveBtn)) { + return; + } + var aObj = $("#" + node.tId + consts.id.A), + removeStr = ""; + aObj.append(removeStr); + + $("#" + node.tId + consts.id.REMOVE).bind('click', + function() { + if (!tools.uCanDo(setting) || tools.apply(setting.callback.beforeRemove, [setting.treeId, node], true) == false) return false; + view.removeNode(setting, node); + setting.treeObj.trigger(consts.event.REMOVE, [setting.treeId, node]); + return false; + } + ).bind('mousedown', + function(eventMouseDown) { + return true; + } + ).show(); + }, + addHoverDom: function(setting, node) { + if (data.getRoot(setting).showHoverDom) { + node.isHover = true; + if (setting.edit.enable) { + view.addEditBtn(setting, node); + view.addRemoveBtn(setting, node); + } + tools.apply(setting.view.addHoverDom, [setting.treeId, node]); + } + }, + cancelCurEditNode: function (setting, forceName) { + var root = data.getRoot(setting), + nameKey = setting.data.key.name, + node = root.curEditNode; + + if (node) { + var inputObj = root.curEditInput; + var newName = forceName ? forceName:inputObj.val(); + if (!forceName && tools.apply(setting.callback.beforeRename, [setting.treeId, node, newName], true) === false) { + node.editNameFlag = true; + return false; + } else { + node[nameKey] = newName ? newName:inputObj.val(); + if (!forceName) { + setting.treeObj.trigger(consts.event.RENAME, [setting.treeId, node]); + } + } + var aObj = $("#" + node.tId + consts.id.A); + aObj.removeClass(consts.node.CURSELECTED_EDIT); + inputObj.unbind(); + view.setNodeName(setting, node); + node.editNameFlag = false; + root.curEditNode = null; + root.curEditInput = null; + view.selectNode(setting, node, false); + } + root.noSelection = true; + return true; + }, + editNode: function(setting, node) { + var root = data.getRoot(setting); + view.editNodeBlur = false; + if (data.isSelectedNode(setting, node) && root.curEditNode == node && node.editNameFlag) { + setTimeout(function() {tools.inputFocus(root.curEditInput);}, 0); + return; + } + var nameKey = setting.data.key.name; + node.editNameFlag = true; + view.removeTreeDom(setting, node); + view.cancelCurEditNode(setting); + view.selectNode(setting, node, false); + $("#" + node.tId + consts.id.SPAN).html(""); + var inputObj = $("#" + node.tId + consts.id.INPUT); + inputObj.attr("value", node[nameKey]); + if (setting.edit.editNameSelectAll) { + tools.inputSelect(inputObj); + } else { + tools.inputFocus(inputObj); + } + + inputObj.bind('blur', function(event) { + if (!view.editNodeBlur) { + view.cancelCurEditNode(setting); + } + }).bind('keydown', function(event) { + if (event.keyCode=="13") { + view.editNodeBlur = true; + view.cancelCurEditNode(setting, null, true); + } else if (event.keyCode=="27") { + view.cancelCurEditNode(setting, node[nameKey]); + } + }).bind('click', function(event) { + return false; + }).bind('dblclick', function(event) { + return false; + }); + + $("#" + node.tId + consts.id.A).addClass(consts.node.CURSELECTED_EDIT); + root.curEditInput = inputObj; + root.noSelection = false; + root.curEditNode = node; + }, + moveNode: function(setting, targetNode, node, moveType, animateFlag, isSilent) { + var root = data.getRoot(setting), + childKey = setting.data.key.children; + if (targetNode == node) return; + if (setting.data.keep.leaf && targetNode && !targetNode.isParent && moveType == consts.move.TYPE_INNER) return; + var oldParentNode = (node.parentTId ? node.getParentNode(): root), + targetNodeIsRoot = (targetNode === null || targetNode == root); + if (targetNodeIsRoot && targetNode === null) targetNode = root; + if (targetNodeIsRoot) moveType = consts.move.TYPE_INNER; + var targetParentNode = (targetNode.parentTId ? targetNode.getParentNode() : root); + + if (moveType != consts.move.TYPE_PREV && moveType != consts.move.TYPE_NEXT) { + moveType = consts.move.TYPE_INNER; + } + + if (moveType == consts.move.TYPE_INNER) { + if (targetNodeIsRoot) { + //parentTId of root node is null + node.parentTId = null; + } else { + if (!targetNode.isParent) { + targetNode.isParent = true; + targetNode.open = !!targetNode.open; + view.setNodeLineIcos(setting, targetNode); + } + node.parentTId = targetNode.tId; + } + } + + //move node Dom + var targetObj, target_ulObj; + if (targetNodeIsRoot) { + targetObj = setting.treeObj; + target_ulObj = targetObj; + } else { + if (!isSilent && moveType == consts.move.TYPE_INNER) { + view.expandCollapseNode(setting, targetNode, true, false); + } else if (!isSilent) { + view.expandCollapseNode(setting, targetNode.getParentNode(), true, false); + } + targetObj = $("#" + targetNode.tId); + target_ulObj = $("#" + targetNode.tId + consts.id.UL); + if (!!targetObj.get(0) && !target_ulObj.get(0)) { + var ulstr = []; + view.makeUlHtml(setting, targetNode, ulstr, ''); + targetObj.append(ulstr.join('')); + } + target_ulObj = $("#" + targetNode.tId + consts.id.UL); + } + var nodeDom = $("#" + node.tId); + if (!nodeDom.get(0)) { + nodeDom = view.appendNodes(setting, node.level, [node], null, false, true).join(''); + } else if (!targetObj.get(0)) { + nodeDom.remove(); + } + if (target_ulObj.get(0) && moveType == consts.move.TYPE_INNER) { + target_ulObj.append(nodeDom); + } else if (targetObj.get(0) && moveType == consts.move.TYPE_PREV) { + targetObj.before(nodeDom); + } else if (targetObj.get(0) && moveType == consts.move.TYPE_NEXT) { + targetObj.after(nodeDom); + } + + //repair the data after move + var i,l, + tmpSrcIndex = -1, + tmpTargetIndex = 0, + oldNeighbor = null, + newNeighbor = null, + oldLevel = node.level; + if (node.isFirstNode) { + tmpSrcIndex = 0; + if (oldParentNode[childKey].length > 1 ) { + oldNeighbor = oldParentNode[childKey][1]; + oldNeighbor.isFirstNode = true; + } + } else if (node.isLastNode) { + tmpSrcIndex = oldParentNode[childKey].length -1; + oldNeighbor = oldParentNode[childKey][tmpSrcIndex - 1]; + oldNeighbor.isLastNode = true; + } else { + for (i = 0, l = oldParentNode[childKey].length; i < l; i++) { + if (oldParentNode[childKey][i].tId == node.tId) { + tmpSrcIndex = i; + break; + } + } + } + if (tmpSrcIndex >= 0) { + oldParentNode[childKey].splice(tmpSrcIndex, 1); + } + if (moveType != consts.move.TYPE_INNER) { + for (i = 0, l = targetParentNode[childKey].length; i < l; i++) { + if (targetParentNode[childKey][i].tId == targetNode.tId) tmpTargetIndex = i; + } + } + if (moveType == consts.move.TYPE_INNER) { + if (!targetNode[childKey]) targetNode[childKey] = new Array(); + if (targetNode[childKey].length > 0) { + newNeighbor = targetNode[childKey][targetNode[childKey].length - 1]; + newNeighbor.isLastNode = false; + } + targetNode[childKey].splice(targetNode[childKey].length, 0, node); + node.isLastNode = true; + node.isFirstNode = (targetNode[childKey].length == 1); + } else if (targetNode.isFirstNode && moveType == consts.move.TYPE_PREV) { + targetParentNode[childKey].splice(tmpTargetIndex, 0, node); + newNeighbor = targetNode; + newNeighbor.isFirstNode = false; + node.parentTId = targetNode.parentTId; + node.isFirstNode = true; + node.isLastNode = false; + + } else if (targetNode.isLastNode && moveType == consts.move.TYPE_NEXT) { + targetParentNode[childKey].splice(tmpTargetIndex + 1, 0, node); + newNeighbor = targetNode; + newNeighbor.isLastNode = false; + node.parentTId = targetNode.parentTId; + node.isFirstNode = false; + node.isLastNode = true; + + } else { + if (moveType == consts.move.TYPE_PREV) { + targetParentNode[childKey].splice(tmpTargetIndex, 0, node); + } else { + targetParentNode[childKey].splice(tmpTargetIndex + 1, 0, node); + } + node.parentTId = targetNode.parentTId; + node.isFirstNode = false; + node.isLastNode = false; + } + data.fixPIdKeyValue(setting, node); + data.setSonNodeLevel(setting, node.getParentNode(), node); + + //repair node what been moved + view.setNodeLineIcos(setting, node); + view.repairNodeLevelClass(setting, node, oldLevel) + + //repair node's old parentNode dom + if (!setting.data.keep.parent && oldParentNode[childKey].length < 1) { + //old parentNode has no child nodes + oldParentNode.isParent = false; + oldParentNode.open = false; + var tmp_ulObj = $("#" + oldParentNode.tId + consts.id.UL), + tmp_switchObj = $("#" + oldParentNode.tId + consts.id.SWITCH), + tmp_icoObj = $("#" + oldParentNode.tId + consts.id.ICON); + view.replaceSwitchClass(oldParentNode, tmp_switchObj, consts.folder.DOCU); + view.replaceIcoClass(oldParentNode, tmp_icoObj, consts.folder.DOCU); + tmp_ulObj.css("display", "none"); + + } else if (oldNeighbor) { + //old neigbor node + view.setNodeLineIcos(setting, oldNeighbor); + } + + //new neigbor node + if (newNeighbor) { + view.setNodeLineIcos(setting, newNeighbor); + } + + //repair checkbox / radio + if (!!setting.check && setting.check.enable && view.repairChkClass) { + view.repairChkClass(setting, oldParentNode); + view.repairParentChkClassWithSelf(setting, oldParentNode); + if (oldParentNode != node.parent) + view.repairParentChkClassWithSelf(setting, node); + } + + //expand parents after move + if (!isSilent) { + view.expandCollapseParentNode(setting, node.getParentNode(), true, animateFlag); + } + }, + removeEditBtn: function(node) { + $("#" + node.tId + consts.id.EDIT).unbind().remove(); + }, + removeRemoveBtn: function(node) { + $("#" + node.tId + consts.id.REMOVE).unbind().remove(); + }, + removeTreeDom: function(setting, node) { + node.isHover = false; + view.removeEditBtn(node); + view.removeRemoveBtn(node); + tools.apply(setting.view.removeHoverDom, [setting.treeId, node]); + }, + repairNodeLevelClass: function(setting, node, oldLevel) { + if (oldLevel === node.level) return; + var liObj = $("#" + node.tId), + aObj = $("#" + node.tId + consts.id.A), + ulObj = $("#" + node.tId + consts.id.UL), + oldClass = "level" + oldLevel, + newClass = "level" + node.level; + liObj.removeClass(oldClass); + liObj.addClass(newClass); + aObj.removeClass(oldClass); + aObj.addClass(newClass); + ulObj.removeClass(oldClass); + ulObj.addClass(newClass); + } + }, + + _z = { + tools: _tools, + view: _view, + event: _event, + data: _data + }; + $.extend(true, $.fn.zTree.consts, _consts); + $.extend(true, $.fn.zTree._z, _z); + + var zt = $.fn.zTree, + tools = zt._z.tools, + consts = zt.consts, + view = zt._z.view, + data = zt._z.data, + event = zt._z.event; + + data.exSetting(_setting); + data.addInitBind(_bindEvent); + data.addInitUnBind(_unbindEvent); + data.addInitCache(_initCache); + data.addInitNode(_initNode); + data.addInitProxy(_eventProxy); + data.addInitRoot(_initRoot); + data.addZTreeTools(_zTreeTools); + + var _cancelPreSelectedNode = view.cancelPreSelectedNode; + view.cancelPreSelectedNode = function (setting, node) { + var list = data.getRoot(setting).curSelectedList; + for (var i=0, j=list.length; i0){if(typeof c.open=="string")c.open=j.eqs(c.open,"true");c.open=!!c.open;c.isParent=!0;c.zAsync=!0}else{c.open=!1;if(typeof c.isParent=="string")c.isParent=j.eqs(c.isParent,"true");c.isParent=!!c.isParent;c.zAsync=!c.isParent}c.isFirstNode=f;c.isLastNode=h;c.getParentNode= +function(){return g.getNodeCache(b,c.parentTId)};c.getPreNode=function(){return g.getPreNode(b,c)};c.getNextNode=function(){return g.getNextNode(b,c)};c.isAjaxing=!1;g.fixPIdKeyValue(b,c)}}],x=[function(b){var a=b.target,c=g.getSetting(b.data.treeId),d="",f=null,h="",l="",i=null,n=null,q=null;if(j.eqs(b.type,"mousedown"))l="mousedown";else if(j.eqs(b.type,"mouseup"))l="mouseup";else if(j.eqs(b.type,"contextmenu"))l="contextmenu";else if(j.eqs(b.type,"click"))if(j.eqs(a.tagName,"span")&&a.getAttribute("treeNode"+ +e.id.SWITCH)!==null)d=(k(a).parent("li").get(0)||k(a).parentsUntil("li").parent().get(0)).id,h="switchNode";else{if(q=j.getMDom(c,a,[{tagName:"a",attrName:"treeNode"+e.id.A}]))d=(k(q).parent("li").get(0)||k(q).parentsUntil("li").parent().get(0)).id,h="clickNode"}else if(j.eqs(b.type,"dblclick")&&(l="dblclick",q=j.getMDom(c,a,[{tagName:"a",attrName:"treeNode"+e.id.A}])))d=(k(q).parent("li").get(0)||k(q).parentsUntil("li").parent().get(0)).id,h="switchNode";if(l.length>0&&d.length==0&&(q=j.getMDom(c, +a,[{tagName:"a",attrName:"treeNode"+e.id.A}])))d=(k(q).parent("li").get(0)||k(q).parentsUntil("li").parent().get(0)).id;if(d.length>0)switch(f=g.getNodeCache(c,d),h){case "switchNode":f.isParent?j.eqs(b.type,"click")||j.eqs(b.type,"dblclick")&&j.apply(c.view.dblClickExpand,[c.treeId,f],c.view.dblClickExpand)?i=E:h="":h="";break;case "clickNode":i=F}switch(l){case "mousedown":n=G;break;case "mouseup":n=H;break;case "dblclick":n=I;break;case "contextmenu":n=J}return{stop:!1,node:f,nodeEventType:h,nodeEventCallback:i, +treeEventType:l,treeEventCallback:n}}],y=[function(b){var a=g.getRoot(b);a||(a={},g.setRoot(b,a));a[b.data.key.children]=[];a.expandTriggerFlag=!1;a.curSelectedList=[];a.noSelection=!0;a.createdNodes=[];a.zId=0;a._ver=(new Date).getTime()}],z=[],A=[],B=[],C=[],D=[],g={addNodeCache:function(b,a){g.getCache(b).nodes[g.getNodeCacheId(a.tId)]=a},getNodeCacheId:function(b){return b.substring(b.lastIndexOf("_")+1)},addAfterA:function(b){A.push(b)},addBeforeA:function(b){z.push(b)},addInnerAfterA:function(b){C.push(b)}, +addInnerBeforeA:function(b){B.push(b)},addInitBind:function(b){t.push(b)},addInitUnBind:function(b){u.push(b)},addInitCache:function(b){v.push(b)},addInitNode:function(b){w.push(b)},addInitProxy:function(b){x.push(b)},addInitRoot:function(b){y.push(b)},addNodesData:function(b,a,c){var d=b.data.key.children;a[d]||(a[d]=[]);if(a[d].length>0)a[d][a[d].length-1].isLastNode=!1,i.setNodeLineIcos(b,a[d][a[d].length-1]);a.isParent=!0;a[d]=a[d].concat(c)},addSelectedNode:function(b,a){var c=g.getRoot(b);g.isSelectedNode(b, +a)||c.curSelectedList.push(a)},addCreatedNode:function(b,a){(b.callback.onNodeCreated||b.view.addDiyDom)&&g.getRoot(b).createdNodes.push(a)},addZTreeTools:function(b){D.push(b)},exSetting:function(b){k.extend(!0,L,b)},fixPIdKeyValue:function(b,a){b.data.simpleData.enable&&(a[b.data.simpleData.pIdKey]=a.parentTId?a.getParentNode()[b.data.simpleData.idKey]:b.data.simpleData.rootPId)},getAfterA:function(b,a,c){for(var d=0,f=A.length;d-1&&h.push(a[l]),h=h.concat(g.getNodesByParamFuzzy(b,a[l][f],c,d));return h},getNodesByFilter:function(b,a,c,d,f){if(!a)return d?null:[];for(var h=b.data.key.children,l=d?null: +[],e=0,i=a.length;e0)},clone:function(b){if(b===null)return null;var a=b.constructor===Array?[]:{},c;for(c in b)b.hasOwnProperty(c)&&(a[c]=typeof b[c]==="object"?arguments.callee(b[c]):b[c]);return a},eqs:function(b,a){return b.toLowerCase()===a.toLowerCase()},isArray:function(b){return Object.prototype.toString.apply(b)=== +"[object Array]"},getMDom:function(b,a,c){if(!a)return null;for(;a&&a.id!==b.treeId;){for(var d=0,f=c.length;a.tagName&&d0&&(m=i.appendNodes(b,a+1,o[j],o,f,h&&o.open));h&&(i.makeDOMNodeMainBefore(e,b,o),i.makeDOMNodeLine(e,b,o),g.getBeforeA(b,o,e),i.makeDOMNodeNameBefore(e,b,o),g.getInnerBeforeA(b,o,e),i.makeDOMNodeIcon(e,b,o),g.getInnerAfterA(b,o,e),i.makeDOMNodeNameAfter(e,b,o),g.getAfterA(b,o,e),o.isParent&&o.open&&i.makeUlHtml(b,o,e,m.join("")), +i.makeDOMNodeMainAfter(e,b,o),g.addCreatedNode(b,o))}return e},appendParentULDom:function(b,a){var c=[],d=k("#"+a.tId),f=k("#"+a.tId+e.id.UL),h=i.appendNodes(b,a.level+1,a[b.data.key.children],a,!1,!0);i.makeUlHtml(b,a,c,h.join(""));!d.get(0)&&a.parentTId&&(i.appendParentULDom(b,a.getParentNode()),d=k("#"+a.tId));f.get(0)&&f.remove();d.append(c.join(""))},asyncNode:function(b,a,c,d){var f,h;if(a&&!a.isParent)return j.apply(d),!1;else if(a&&a.isAjaxing)return!1;else if(j.apply(b.callback.beforeAsync, +[b.treeId,a],!0)==!1)return j.apply(d),!1;if(a)a.isAjaxing=!0,k("#"+a.tId+e.id.ICON).attr({style:"","class":"button ico_loading"});var l=b.async.contentType=="application/json",p=l?"{":"",n="";for(f=0,h=b.async.autoParam.length;a&&f1&&(o=m[1],m=m[0]);l?(n=typeof a[m]=="string"?'"':"",p+='"'+o+('":'+n+a[m]).replace(/'/g,"\\'")+n+","):p+=o+("="+a[m]).replace(/&/g,"%26")+"&"}if(j.isArray(b.async.otherParam))for(f=0,h=b.async.otherParam.length;f< +h;f+=2)l?(n=typeof b.async.otherParam[f+1]=="string"?'"':"",p+='"'+b.async.otherParam[f]+('":'+n+b.async.otherParam[f+1]).replace(/'/g,"\\'")+n+","):p+=b.async.otherParam[f]+("="+b.async.otherParam[f+1]).replace(/&/g,"%26")+"&";else for(var r in b.async.otherParam)l?(n=typeof b.async.otherParam[r]=="string"?'"':"",p+='"'+r+('":'+n+b.async.otherParam[r]).replace(/'/g,"\\'")+n+","):p+=r+("="+b.async.otherParam[r]).replace(/&/g,"%26")+"&";p.length>1&&(p=p.substring(0,p.length-1));l&&(p+="}");var s=g.getRoot(b)._ver; +k.ajax({contentType:b.async.contentType,type:b.async.type,url:j.apply(b.async.url,[b.treeId,a],b.async.url),data:p,dataType:b.async.dataType,success:function(f){if(s==g.getRoot(b)._ver){var h=[];try{h=!f||f.length==0?[]:typeof f=="string"?eval("("+f+")"):f}catch(l){h=f}if(a)a.isAjaxing=null,a.zAsync=!0;i.setNodeLineIcos(b,a);h&&h!==""?(h=j.apply(b.async.dataFilter,[b.treeId,a,h],h),i.addNodes(b,a,h?j.clone(h):[],!!c)):i.addNodes(b,a,[],!!c);b.treeObj.trigger(e.event.ASYNC_SUCCESS,[b.treeId,a,f]); +j.apply(d)}},error:function(c,d,f){if(s==g.getRoot(b)._ver){if(a)a.isAjaxing=null;i.setNodeLineIcos(b,a);b.treeObj.trigger(e.event.ASYNC_ERROR,[b.treeId,a,c,d,f])}}});return!0},cancelPreSelectedNode:function(b,a){for(var c=g.getRoot(b).curSelectedList,d=c.length-1;d>=0;d--)if(!a||a===c[d])if(k("#"+c[d].tId+e.id.A).removeClass(e.node.CURSELECTED),a){g.removeSelectedNode(b,a);break}if(!a)g.getRoot(b).curSelectedList=[]},createNodeCallback:function(b){if(b.callback.onNodeCreated||b.view.addDiyDom)for(var a= +g.getRoot(b);a.createdNodes.length>0;){var c=a.createdNodes.shift();j.apply(b.view.addDiyDom,[b.treeId,c]);b.callback.onNodeCreated&&b.treeObj.trigger(e.event.NODECREATED,[b.treeId,c])}},createNodes:function(b,a,c,d){if(c&&c.length!=0){var f=g.getRoot(b),h=b.data.key.children,h=!d||d.open||!!k("#"+d[h][0].tId).get(0);f.createdNodes=[];a=i.appendNodes(b,a,c,d,!0,h);d?(d=k("#"+d.tId+e.id.UL),d.get(0)&&d.append(a.join(""))):b.treeObj.append(a.join(""));i.createNodeCallback(b)}},destroy:function(b){b&& +(g.initCache(b),g.initRoot(b),m.unbindTree(b),m.unbindEvent(b),b.treeObj.empty())},expandCollapseNode:function(b,a,c,d,f){var h=g.getRoot(b),l=b.data.key.children;if(a){if(h.expandTriggerFlag){var p=f,f=function(){p&&p();a.open?b.treeObj.trigger(e.event.EXPAND,[b.treeId,a]):b.treeObj.trigger(e.event.COLLAPSE,[b.treeId,a])};h.expandTriggerFlag=!1}if(!a.open&&a.isParent&&(!k("#"+a.tId+e.id.UL).get(0)||a[l]&&a[l].length>0&&!k("#"+a[l][0].tId).get(0)))i.appendParentULDom(b,a),i.createNodeCallback(b); +if(a.open==c)j.apply(f,[]);else{var c=k("#"+a.tId+e.id.UL),h=k("#"+a.tId+e.id.SWITCH),n=k("#"+a.tId+e.id.ICON);a.isParent?(a.open=!a.open,a.iconOpen&&a.iconClose&&n.attr("style",i.makeNodeIcoStyle(b,a)),a.open?(i.replaceSwitchClass(a,h,e.folder.OPEN),i.replaceIcoClass(a,n,e.folder.OPEN),d==!1||b.view.expandSpeed==""?(c.show(),j.apply(f,[])):a[l]&&a[l].length>0?c.slideDown(b.view.expandSpeed,f):(c.show(),j.apply(f,[]))):(i.replaceSwitchClass(a,h,e.folder.CLOSE),i.replaceIcoClass(a,n,e.folder.CLOSE), +d==!1||b.view.expandSpeed==""||!(a[l]&&a[l].length>0)?(c.hide(),j.apply(f,[])):c.slideUp(b.view.expandSpeed,f))):j.apply(f,[])}}else j.apply(f,[])},expandCollapseParentNode:function(b,a,c,d,f){a&&(a.parentTId?(i.expandCollapseNode(b,a,c,d),a.parentTId&&i.expandCollapseParentNode(b,a.getParentNode(),c,d,f)):i.expandCollapseNode(b,a,c,d,f))},expandCollapseSonNode:function(b,a,c,d,f){var h=g.getRoot(b),e=b.data.key.children,h=a?a[e]:h[e],e=a?!1:d,j=g.getRoot(b).expandTriggerFlag;g.getRoot(b).expandTriggerFlag= +!1;if(h)for(var k=0,m=h.length;k/g,">");b.push("",d,"")},makeDOMNodeLine:function(b, +a,c){b.push("")},makeDOMNodeMainAfter:function(b){b.push("
                                                                                                                                                                                                                                                                                                  • ")},makeDOMNodeMainBefore:function(b,a,c){b.push("
                                                                                                                                                                                                                                                                                                  • ")},makeDOMNodeNameAfter:function(b){b.push("")},makeDOMNodeNameBefore:function(b,a,c){var d=g.getNodeTitle(a,c),f=i.makeNodeUrl(a,c),h=i.makeNodeFontCss(a,c),l=[],k;for(k in h)l.push(k,":",h[k], +";");b.push("0?"href='"+f+"'":""," target='",i.makeNodeTarget(c),"' style='",l.join(""),"'");j.apply(a.view.showTitle,[a.treeId,c],a.view.showTitle)&&d&&b.push("title='",d.replace(/'/g,"'").replace(//g,">"),"'");b.push(">")},makeNodeFontCss:function(b,a){var c=j.apply(b.view.fontCss,[b.treeId,a],b.view.fontCss);return c&&typeof c!="function"?c:{}},makeNodeIcoClass:function(b, +a){var c=["ico"];a.isAjaxing||(c[0]=(a.iconSkin?a.iconSkin+"_":"")+c[0],a.isParent?c.push(a.open?e.folder.OPEN:e.folder.CLOSE):c.push(e.folder.DOCU));return"button "+c.join("_")},makeNodeIcoStyle:function(b,a){var c=[];if(!a.isAjaxing){var d=a.isParent&&a.iconOpen&&a.iconClose?a.open?a.iconOpen:a.iconClose:a.icon;d&&c.push("background:url(",d,") 0 0 no-repeat;");(b.view.showIcon==!1||!j.apply(b.view.showIcon,[b.treeId,a],!0))&&c.push("width:0px;height:0px;")}return c.join("")},makeNodeLineClass:function(b, +a){var c=[];b.view.showLine?a.level==0&&a.isFirstNode&&a.isLastNode?c.push(e.line.ROOT):a.level==0&&a.isFirstNode?c.push(e.line.ROOTS):a.isLastNode?c.push(e.line.BOTTOM):c.push(e.line.CENTER):c.push(e.line.NOLINE);a.isParent?c.push(a.open?e.folder.OPEN:e.folder.CLOSE):c.push(e.folder.DOCU);return i.makeNodeLineClassEx(a)+c.join("_")},makeNodeLineClassEx:function(b){return"button level"+b.level+" switch "},makeNodeTarget:function(b){return b.target||"_blank"},makeNodeUrl:function(b,a){var c=b.data.key.url; +return a[c]?a[c]:null},makeUlHtml:function(b,a,c,d){c.push("
                                                                                                                                                                                                                                                                                                      ");c.push(d);c.push("
                                                                                                                                                                                                                                                                                                    ")},makeUlLineClass:function(b,a){return b.view.showLine&&!a.isLastNode?e.line.LINE:""},removeChildNodes:function(b,a){if(a){var c=b.data.key.children,d=a[c];if(d){for(var f=0,h=d.length;f0)a[c][0].isFirstNode=!0},setLastNode:function(b,a){var c=b.data.key.children,d=a[c].length;if(d>0)a[c][d-1].isLastNode=!0},removeNode:function(b,a){var c=g.getRoot(b),d=b.data.key.children,f=a.parentTId?a.getParentNode():c;a.isFirstNode=!1;a.isLastNode= +!1;a.getPreNode=function(){return null};a.getNextNode=function(){return null};if(g.getNodeCache(b,a.tId)){k("#"+a.tId).remove();g.removeNodeCache(b,a);g.removeSelectedNode(b,a);for(var h=0,l=f[d].length;h0){var n=f[d][h-1],h=k("#"+n.tId+e.id.UL),l=k("#"+n.tId+e.id.SWITCH);j=k("#"+n.tId+e.id.ICON);f==c?f[d].length==1?i.replaceSwitchClass(n,l,e.line.ROOT):(c=k("#"+f[d][0].tId+e.id.SWITCH),i.replaceSwitchClass(f[d][0],c,e.line.ROOTS),i.replaceSwitchClass(n,l,e.line.BOTTOM)):i.replaceSwitchClass(n,l,e.line.BOTTOM);h.removeClass(e.line.LINE)}}},replaceIcoClass:function(b,a,c){if(a&&!b.isAjaxing&&(b=a.attr("class"),b!=void 0)){b=b.split("_"); +switch(c){case e.folder.OPEN:case e.folder.CLOSE:case e.folder.DOCU:b[b.length-1]=c}a.attr("class",b.join("_"))}},replaceSwitchClass:function(b,a,c){if(a){var d=a.attr("class");if(d!=void 0){d=d.split("_");switch(c){case e.line.ROOT:case e.line.ROOTS:case e.line.CENTER:case e.line.BOTTOM:case e.line.NOLINE:d[0]=i.makeNodeLineClassEx(b)+c;break;case e.folder.OPEN:case e.folder.CLOSE:case e.folder.DOCU:d[1]=c}a.attr("class",d.join("_"));c!==e.folder.DOCU?a.removeAttr("disabled"):a.attr("disabled","disabled")}}}, +selectNode:function(b,a,c){c||i.cancelPreSelectedNode(b);k("#"+a.tId+e.id.A).addClass(e.node.CURSELECTED);g.addSelectedNode(b,a)},setNodeFontCss:function(b,a){var c=k("#"+a.tId+e.id.A),d=i.makeNodeFontCss(b,a);d&&c.css(d)},setNodeLineIcos:function(b,a){if(a){var c=k("#"+a.tId+e.id.SWITCH),d=k("#"+a.tId+e.id.UL),f=k("#"+a.tId+e.id.ICON),h=i.makeUlLineClass(b,a);h.length==0?d.removeClass(e.line.LINE):d.addClass(h);c.attr("class",i.makeNodeLineClass(b,a));a.isParent?c.removeAttr("disabled"):c.attr("disabled", +"disabled");f.removeAttr("style");f.attr("style",i.makeNodeIcoStyle(b,a));f.attr("class",i.makeNodeIcoClass(b,a))}},setNodeName:function(b,a){var c=g.getNodeTitle(b,a),d=k("#"+a.tId+e.id.SPAN);d.empty();b.view.nameIsHTML?d.html(g.getNodeName(b,a)):d.text(g.getNodeName(b,a));j.apply(b.view.showTitle,[b.treeId,a],b.view.showTitle)&&k("#"+a.tId+e.id.A).attr("title",!c?"":c)},setNodeTarget:function(b){k("#"+b.tId+e.id.A).attr("target",i.makeNodeTarget(b))},setNodeUrl:function(b,a){var c=k("#"+a.tId+e.id.A), +d=i.makeNodeUrl(b,a);d==null||d.length==0?c.removeAttr("href"):c.attr("href",d)},switchNode:function(b,a){a.open||!j.canAsync(b,a)?i.expandCollapseNode(b,a,!a.open):b.async.enable?i.asyncNode(b,a)||i.expandCollapseNode(b,a,!a.open):a&&i.expandCollapseNode(b,a,!a.open)}};k.fn.zTree={consts:{event:{NODECREATED:"ztree_nodeCreated",CLICK:"ztree_click",EXPAND:"ztree_expand",COLLAPSE:"ztree_collapse",ASYNC_SUCCESS:"ztree_async_success",ASYNC_ERROR:"ztree_async_error"},id:{A:"_a",ICON:"_ico",SPAN:"_span", +SWITCH:"_switch",UL:"_ul"},line:{ROOT:"root",ROOTS:"roots",CENTER:"center",BOTTOM:"bottom",NOLINE:"noline",LINE:"line"},folder:{OPEN:"open",CLOSE:"close",DOCU:"docu"},node:{CURSELECTED:"curSelectedNode"}},_z:{tools:j,view:i,event:m,data:g},getZTreeObj:function(b){return(b=g.getZTreeTools(b))?b:null},destroy:function(b){if(b&&b.length>0)i.destroy(g.getSetting(b));else for(var a in r)i.destroy(r[a])},init:function(b,a,c){var d=j.clone(L);k.extend(!0,d,a);d.treeId=b.attr("id");d.treeObj=b;d.treeObj.empty(); +r[d.treeId]=d;if(k.browser.msie&&parseInt(k.browser.version)<7)d.view.expandSpeed="";g.initRoot(d);b=g.getRoot(d);a=d.data.key.children;c=c?j.clone(j.isArray(c)?c:[c]):[];b[a]=d.data.simpleData.enable?g.transformTozTreeFormat(d,c):c;g.initCache(d);m.unbindTree(d);m.bindTree(d);m.unbindEvent(d);m.bindEvent(d);c={setting:d,addNodes:function(a,b,c){function e(){i.addNodes(d,a,g,c==!0)}if(!b)return null;a||(a=null);if(a&&!a.isParent&&d.data.keep.leaf)return null;var g=j.clone(j.isArray(b)?b:[b]);j.canAsync(d, +a)?i.asyncNode(d,a,c,e):e();return g},cancelSelectedNode:function(a){i.cancelPreSelectedNode(this.setting,a)},destroy:function(){i.destroy(this.setting)},expandAll:function(a){a=!!a;i.expandCollapseSonNode(this.setting,null,a,!0);return a},expandNode:function(a,b,c,e,m){if(!a||!a.isParent)return null;b!==!0&&b!==!1&&(b=!a.open);if((m=!!m)&&b&&j.apply(d.callback.beforeExpand,[d.treeId,a],!0)==!1)return null;else if(m&&!b&&j.apply(d.callback.beforeCollapse,[d.treeId,a],!0)==!1)return null;b&&a.parentTId&& +i.expandCollapseParentNode(this.setting,a.getParentNode(),b,!1);if(b===a.open&&!c)return null;g.getRoot(d).expandTriggerFlag=m;if(c)i.expandCollapseSonNode(this.setting,a,b,!0,function(){if(e!==!1)try{k("#"+a.tId).focus().blur()}catch(b){}});else if(a.open=!b,i.switchNode(this.setting,a),e!==!1)try{k("#"+a.tId).focus().blur()}catch(q){}return b},getNodes:function(){return g.getNodes(this.setting)},getNodeByParam:function(a,b,c){return!a?null:g.getNodeByParam(this.setting,c?c[this.setting.data.key.children]: +g.getNodes(this.setting),a,b)},getNodeByTId:function(a){return g.getNodeCache(this.setting,a)},getNodesByParam:function(a,b,c){return!a?null:g.getNodesByParam(this.setting,c?c[this.setting.data.key.children]:g.getNodes(this.setting),a,b)},getNodesByParamFuzzy:function(a,b,c){return!a?null:g.getNodesByParamFuzzy(this.setting,c?c[this.setting.data.key.children]:g.getNodes(this.setting),a,b)},getNodesByFilter:function(a,b,c,d){b=!!b;return!a||typeof a!="function"?b?null:[]:g.getNodesByFilter(this.setting, +c?c[this.setting.data.key.children]:g.getNodes(this.setting),a,b,d)},getNodeIndex:function(a){if(!a)return null;for(var b=d.data.key.children,c=a.parentTId?a.getParentNode():g.getRoot(this.setting),e=0,i=c[b].length;e0?i.createNodes(d,0,b[a]):d.async.enable&&d.async.url&&d.async.url!==""&&i.asyncNode(d);return c}};var M=k.fn.zTree,e=M.consts})(jQuery); + +/* + * JQuery zTree excheck 3.5 + * http://zTree.me/ + * + * Copyright (c) 2010 Hunter.z + * + * Licensed same as jquery - MIT License + * http://www.opensource.org/licenses/mit-license.php + * + * email: hunter.z@263.net + * Date: 2012-11-20 + */ +(function(m){var p,q,r,n={event:{CHECK:"ztree_check"},id:{CHECK:"_check"},checkbox:{STYLE:"checkbox",DEFAULT:"chk",DISABLED:"disable",FALSE:"false",TRUE:"true",FULL:"full",PART:"part",FOCUS:"focus"},radio:{STYLE:"radio",TYPE_ALL:"all",TYPE_LEVEL:"level"}},v={check:{enable:!1,autoCheckTrigger:!1,chkStyle:n.checkbox.STYLE,nocheckInherit:!1,radioType:n.radio.TYPE_LEVEL,chkboxType:{Y:"ps",N:"ps"}},data:{key:{checked:"checked"}},callback:{beforeCheck:null,onCheck:null}};p=function(c,a){if(a.chkDisabled=== +!0)return!1;var b=f.getSetting(c.data.treeId),d=b.data.key.checked;if(k.apply(b.callback.beforeCheck,[b.treeId,a],!0)==!1)return!0;a[d]=!a[d];e.checkNodeRelation(b,a);d=m("#"+a.tId+j.id.CHECK);e.setChkClass(b,d,a);e.repairParentChkClassWithSelf(b,a);b.treeObj.trigger(j.event.CHECK,[c,b.treeId,a]);return!0};q=function(c,a){if(a.chkDisabled===!0)return!1;var b=f.getSetting(c.data.treeId),d=m("#"+a.tId+j.id.CHECK);a.check_Focus=!0;e.setChkClass(b,d,a);return!0};r=function(c,a){if(a.chkDisabled===!0)return!1; +var b=f.getSetting(c.data.treeId),d=m("#"+a.tId+j.id.CHECK);a.check_Focus=!1;e.setChkClass(b,d,a);return!0};m.extend(!0,m.fn.zTree.consts,n);m.extend(!0,m.fn.zTree._z,{tools:{},view:{checkNodeRelation:function(c,a){var b,d,g,l=c.data.key.children,h=c.data.key.checked;b=j.radio;if(c.check.chkStyle==b.STYLE){var i=f.getRadioCheckedList(c);if(a[h])if(c.check.radioType==b.TYPE_ALL){for(d=i.length-1;d>=0;d--)b=i[d],b[h]=!1,i.splice(d,1),e.setChkClass(c,m("#"+b.tId+j.id.CHECK),b),b.parentTId!=a.parentTId&& +e.repairParentChkClassWithSelf(c,b);i.push(a)}else{i=a.parentTId?a.getParentNode():f.getRoot(c);for(d=0,g=i[l].length;d-1)&&e.setSonNodeCheckBox(c,a,!0),!a[h]&&(!a[l]||a[l].length==0||c.check.chkboxType.N.indexOf("s")>-1)&&e.setSonNodeCheckBox(c,a,!1), +a[h]&&c.check.chkboxType.Y.indexOf("p")>-1&&e.setParentNodeCheckBox(c,a,!0),!a[h]&&c.check.chkboxType.N.indexOf("p")>-1&&e.setParentNodeCheckBox(c,a,!1)},makeChkClass:function(c,a){var b=c.data.key.checked,d=j.checkbox,g=j.radio,e="",e=a.chkDisabled===!0?d.DISABLED:a.halfCheck?d.PART:c.check.chkStyle==g.STYLE?a.check_Child_State<1?d.FULL:d.PART:a[b]?a.check_Child_State===2||a.check_Child_State===-1?d.FULL:d.PART:a.check_Child_State<1?d.FULL:d.PART,b=c.check.chkStyle+"_"+(a[b]?d.TRUE:d.FALSE)+"_"+ +e,b=a.check_Focus&&a.chkDisabled!==!0?b+"_"+d.FOCUS:b;return"button "+d.DEFAULT+" "+b},repairAllChk:function(c,a){if(c.check.enable&&c.check.chkStyle===j.checkbox.STYLE)for(var b=c.data.key.checked,d=c.data.key.children,g=f.getRoot(c),l=0,h=g[d].length;l0?e.repairParentChkClass(c,a[b][0]):e.repairParentChkClass(c,a)}},repairSonChkDisabled:function(c,a,b){if(a){var d=c.data.key.children;if(a.chkDisabled!=b)a.chkDisabled=b,a.nocheck!==!0&&e.repairChkClass(c,a);if(a[d])for(var g=0,l=a[d].length;g0){h=!1;break}h&&e.setParentNodeCheckBox(c,a.getParentNode(),b,d)}},setSonNodeCheckBox:function(c,a,b,d){if(a){var g=c.data.key.children,l=c.data.key.checked,h=m("#"+a.tId+j.id.CHECK);d||(d=a);var i=!1;if(a[g])for(var o=0,k=a[g].length;o0?b?2:0:-1}else a.check_Child_State=-1;e.setChkClass(c,h,a);c.check.autoCheckTrigger&&a!=d&&a.nocheck!==!0&&c.treeObj.trigger(j.event.CHECK,[c.treeId,a])}}}},event:{},data:{getRadioCheckedList:function(c){for(var a=f.getRoot(c).radioCheckedList,b=0,d=a.length;b-1&&a.check_Child_State<2:a.check_Child_State>0}},getTreeCheckedNodes:function(c,a,b,d){if(!a)return[];for(var g=c.data.key.children,e=c.data.key.checked,h=b&&c.check.chkStyle==j.radio.STYLE&&c.check.radioType==j.radio.TYPE_ALL,d=!d?[]:d,i=0,o=a.length;i0)break}return d},getTreeChangeCheckedNodes:function(c,a,b){if(!a)return[];for(var d=c.data.key.children,g=c.data.key.checked,b=!b?[]:b,e=0,h=a.length;e0?2:0,k==2){g=2;break}else k==0&&(g=0);else if(c.check.chkStyle==j.checkbox.STYLE){k=f.nocheck===!0?f.check_Child_State:f.halfCheck===!0?1:f.nocheck!==!0&&f[d]?f.check_Child_State===-1||f.check_Child_State===2?2:1:f.check_Child_State>0?1:0;if(k===1){g=1;break}else if(k===2&&e&&k!==g){g=1;break}else if(g===2&&k>-1&&k<2){g=1;break}else k>-1&&(g=k);e||(e=f.nocheck!==!0)}}a.check_Child_State=g}}}});var n=m.fn.zTree,k=n._z.tools, +j=n.consts,e=n._z.view,f=n._z.data;f.exSetting(v);f.addInitBind(function(c){c.treeObj.bind(j.event.CHECK,function(a,b,d,e){k.apply(c.callback.onCheck,[b?b:a,d,e])})});f.addInitUnBind(function(c){c.treeObj.unbind(j.event.CHECK)});f.addInitCache(function(){});f.addInitNode(function(c,a,b,d){if(b){a=c.data.key.checked;typeof b[a]=="string"&&(b[a]=k.eqs(b[a],"true"));b[a]=!!b[a];b.checkedOld=b[a];if(typeof b.nocheck=="string")b.nocheck=k.eqs(b.nocheck,"true");b.nocheck=!!b.nocheck||c.check.nocheckInherit&& +d&&!!d.nocheck;if(typeof b.chkDisabled=="string")b.chkDisabled=k.eqs(b.chkDisabled,"true");b.chkDisabled=!!b.chkDisabled||d&&!!d.chkDisabled;if(typeof b.halfCheck=="string")b.halfCheck=k.eqs(b.halfCheck,"true");b.halfCheck=!!b.halfCheck;b.check_Child_State=-1;b.check_Focus=!1;b.getCheckStatus=function(){return f.getCheckStatus(c,b)}}});f.addInitProxy(function(c){var a=c.target,b=f.getSetting(c.data.treeId),d="",e=null,l="",h=null;if(k.eqs(c.type,"mouseover")){if(b.check.enable&&k.eqs(a.tagName,"span")&& +a.getAttribute("treeNode"+j.id.CHECK)!==null)d=a.parentNode.id,l="mouseoverCheck"}else if(k.eqs(c.type,"mouseout")){if(b.check.enable&&k.eqs(a.tagName,"span")&&a.getAttribute("treeNode"+j.id.CHECK)!==null)d=a.parentNode.id,l="mouseoutCheck"}else if(k.eqs(c.type,"click")&&b.check.enable&&k.eqs(a.tagName,"span")&&a.getAttribute("treeNode"+j.id.CHECK)!==null)d=a.parentNode.id,l="checkNode";if(d.length>0)switch(e=f.getNodeCache(b,d),l){case "checkNode":h=p;break;case "mouseoverCheck":h=q;break;case "mouseoutCheck":h= +r}return{stop:!1,node:e,nodeEventType:l,nodeEventCallback:h,treeEventType:"",treeEventCallback:null}});f.addInitRoot(function(c){f.getRoot(c).radioCheckedList=[]});f.addBeforeA(function(c,a,b){var d=c.data.key.checked;c.check.enable&&(f.makeChkFlag(c,a),c.check.chkStyle==j.radio.STYLE&&c.check.radioType==j.radio.TYPE_ALL&&a[d]&&f.getRoot(c).radioCheckedList.push(a),b.push(""))});f.addZTreeTools(function(c,a){a.checkNode=function(a,b,f,h){var i=this.setting.data.key.checked;if(a.chkDisabled!==!0&&(b!==!0&&b!==!1&&(b=!a[i]),h=!!h,(a[i]!==b||f)&&!(h&&k.apply(this.setting.callback.beforeCheck,[this.setting.treeId,a],!0)==!1)&&k.uCanDo(this.setting)&&this.setting.check.enable&&a.nocheck!==!0))a[i]=b,b=m("#"+a.tId+j.id.CHECK),(f||this.setting.check.chkStyle===j.radio.STYLE)&&e.checkNodeRelation(this.setting,a),e.setChkClass(this.setting,b,a),e.repairParentChkClassWithSelf(this.setting, +a),h&&c.treeObj.trigger(j.event.CHECK,[null,c.treeId,a])};a.checkAllNodes=function(a){e.repairAllChk(this.setting,!!a)};a.getCheckedNodes=function(a){var b=this.setting.data.key.children;return f.getTreeCheckedNodes(this.setting,f.getRoot(c)[b],a!==!1)};a.getChangeCheckedNodes=function(){var a=this.setting.data.key.children;return f.getTreeChangeCheckedNodes(this.setting,f.getRoot(c)[a])};a.setChkDisabled=function(a,b){b=!!b;e.repairSonChkDisabled(this.setting,a,b);b||e.repairParentChkDisabled(this.setting, +a,b)};var b=a.updateNode;a.updateNode=function(c,f){b&&b.apply(a,arguments);if(c&&this.setting.check.enable&&m("#"+c.tId).get(0)&&k.uCanDo(this.setting)){var l=m("#"+c.tId+j.id.CHECK);(f==!0||this.setting.check.chkStyle===j.radio.STYLE)&&e.checkNodeRelation(this.setting,c);e.setChkClass(this.setting,l,c);e.repairParentChkClassWithSelf(this.setting,c)}}});var s=e.createNodes;e.createNodes=function(c,a,b,d){s&&s.apply(e,arguments);b&&e.repairParentChkClassWithSelf(c,d)};var t=e.removeNode;e.removeNode= +function(c,a){var b=a.getParentNode();t&&t.apply(e,arguments);a&&b&&(e.repairChkClass(c,b),e.repairParentChkClass(c,b))};var u=e.appendNodes;e.appendNodes=function(c,a,b,d,g,j){var h="";u&&(h=u.apply(e,arguments));d&&f.makeChkFlag(c,d);return h}})(jQuery); + +/* + * JQuery zTree exedit 3.5 + * http://zTree.me/ + * + * Copyright (c) 2010 Hunter.z + * + * Licensed same as jquery - MIT License + * http://www.opensource.org/licenses/mit-license.php + * + * email: hunter.z@263.net + * Date: 2012-11-20 + */ +(function(k){var F={event:{DRAG:"ztree_drag",DROP:"ztree_drop",REMOVE:"ztree_remove",RENAME:"ztree_rename"},id:{EDIT:"_edit",INPUT:"_input",REMOVE:"_remove"},move:{TYPE_INNER:"inner",TYPE_PREV:"prev",TYPE_NEXT:"next"},node:{CURSELECTED_EDIT:"curSelectedNode_Edit",TMPTARGET_TREE:"tmpTargetzTree",TMPTARGET_NODE:"tmpTargetNode"}},D={onHoverOverNode:function(b,a){var c=p.getSetting(b.data.treeId),d=p.getRoot(c);if(d.curHoverNode!=a)D.onHoverOutNode(b);d.curHoverNode=a;f.addHoverDom(c,a)},onHoverOutNode:function(b){var b= +p.getSetting(b.data.treeId),a=p.getRoot(b);if(a.curHoverNode&&!p.isSelectedNode(b,a.curHoverNode))f.removeTreeDom(b,a.curHoverNode),a.curHoverNode=null},onMousedownNode:function(b,a){function c(b){if(z.dragFlag==0&&Math.abs(K-b.clientX)1){var s=m[0].parentTId?m[0].getParentNode()[l]:p.getNodes(g);l=[];for(a=0,c=s.length;a-1&&j+1!==a&&(e=!1),l.push(s[a]),j=a),m.length===l.length){m=l;break}}e&&(D=m[0].getPreNode(),E=m[m.length-1].getNextNode()); +y=k("
                                                                                                                                                                                                                                                                                                      ");for(a=0,c=m.length;a0),f.removeTreeDom(g,e),j=k("
                                                                                                                                                                                                                                                                                                    • "),j.append(k("#"+e.tId+d.id.A).clone()),j.css("padding","0"),j.children("#"+e.tId+d.id.A).removeClass(d.node.CURSELECTED),y.append(j),a==g.edit.drag.maxShowNodeNum-1){j=k("
                                                                                                                                                                                                                                                                                                    • ...
                                                                                                                                                                                                                                                                                                    • ");y.append(j);break}y.attr("id",m[0].tId+d.id.UL+"_tmp");y.addClass(g.treeObj.attr("class"));y.appendTo("body");t= +k("");t.attr("id","zTreeMove_arrow_tmp");t.appendTo("body");g.treeObj.trigger(d.event.DRAG,[b,g.treeId,m])}if(z.dragFlag==1){r&&t.attr("id")==b.target.id&&u&&b.clientX+x.scrollLeft()+2>k("#"+u+d.id.A,r).offset().left?(e=k("#"+u+d.id.A,r),b.target=e.length>0?e.get(0):b.target):r&&(r.removeClass(d.node.TMPTARGET_TREE),u&&k("#"+u+d.id.A,r).removeClass(d.node.TMPTARGET_NODE+"_"+d.move.TYPE_PREV).removeClass(d.node.TMPTARGET_NODE+"_"+F.move.TYPE_NEXT).removeClass(d.node.TMPTARGET_NODE+ +"_"+F.move.TYPE_INNER));u=r=null;G=!1;i=g;e=p.getSettings();for(var B in e)if(e[B].treeId&&e[B].edit.enable&&e[B].treeId!=g.treeId&&(b.target.id==e[B].treeId||k(b.target).parents("#"+e[B].treeId).length>0))G=!0,i=e[B];B=x.scrollTop();j=x.scrollLeft();l=i.treeObj.offset();a=i.treeObj.get(0).scrollHeight;e=i.treeObj.get(0).scrollWidth;c=b.clientY+B-l.top;var o=i.treeObj.height()+l.top-b.clientY-B,n=b.clientX+j-l.left,H=i.treeObj.width()+l.left-b.clientX-j;l=cg.edit.drag.borderMin; +var s=og.edit.drag.borderMin,I=ng.edit.drag.borderMin,C=Hg.edit.drag.borderMin,o=c>g.edit.drag.borderMin&&o>g.edit.drag.borderMin&&n>g.edit.drag.borderMin&&H>g.edit.drag.borderMin,n=l&&i.treeObj.scrollTop()<=0,H=s&&i.treeObj.scrollTop()+i.treeObj.height()+10>=a,M=I&&i.treeObj.scrollLeft()<=0,N=C&&i.treeObj.scrollLeft()+i.treeObj.width()+10>=e;if(b.target.id&&i.treeObj.find("#"+b.target.id).length>0){for(var A=b.target;A&& +A.tagName&&!h.eqs(A.tagName,"li")&&A.id!=i.treeId;)A=A.parentNode;var O=!0;for(a=0,c=m.length;a0){O=!1;break}if(O&&b.target.id&&(b.target.id==A.id+d.id.A||k(b.target).parents("#"+A.id+d.id.A).length>0))r=k(A),u=A.id}e=m[0];if(o&&(b.target.id==i.treeId||k(b.target).parents("#"+i.treeId).length>0)){if(!r&&(b.target.id==i.treeId||n||H||M||N)&&(G||!G&&e.parentTId))r=i.treeObj;l?i.treeObj.scrollTop(i.treeObj.scrollTop()- +10):s&&i.treeObj.scrollTop(i.treeObj.scrollTop()+10);I?i.treeObj.scrollLeft(i.treeObj.scrollLeft()-10):C&&i.treeObj.scrollLeft(i.treeObj.scrollLeft()+10);r&&r!=i.treeObj&&r.offset().left=-0.2)&&e?(a=1-t.width(),l=s-t.height()/2,v=d.move.TYPE_PREV):(C==0||b>=C&&b<=1.2)&&a?(a=1-t.width(),l=l==null||w.isParent&&w.open?s+c.height()-t.height()/2:l.offset().top-t.height()/2,v=d.move.TYPE_NEXT):(a=5-t.width(),l=s,v=d.move.TYPE_INNER);t.css({display:"block",top:l+"px",left:j+a+"px"});c.addClass(d.node.TMPTARGET_NODE+ +"_"+v);if(P!=u||Q!=v)J=(new Date).getTime();if(w&&w.isParent&&v==d.move.TYPE_INNER&&(b=!0,window.zTreeMoveTimer&&window.zTreeMoveTargetNodeTId!==w.tId?(clearTimeout(window.zTreeMoveTimer),window.zTreeMoveTargetNodeTId=null):window.zTreeMoveTimer&&window.zTreeMoveTargetNodeTId===w.tId&&(b=!1),b))window.zTreeMoveTimer=setTimeout(function(){v==d.move.TYPE_INNER&&w&&w.isParent&&!w.open&&(new Date).getTime()-J>i.edit.drag.autoOpenTime&&h.apply(i.callback.beforeDragOpen,[i.treeId,w],!0)&&(f.switchNode(i, +w),i.edit.drag.autoExpandTrigger&&i.treeObj.trigger(d.event.EXPAND,[i.treeId,w]))},i.edit.drag.autoOpenTime+50),window.zTreeMoveTargetNodeTId=w.tId}}else if(v=d.move.TYPE_INNER,r&&h.apply(i.edit.drag.inner,[i.treeId,m,null],!!i.edit.drag.inner)?r.addClass(d.node.TMPTARGET_TREE):r=null,t.css({display:"none"}),window.zTreeMoveTimer)clearTimeout(window.zTreeMoveTimer),window.zTreeMoveTargetNodeTId=null;P=u;Q=v}return!1}function q(b){if(window.zTreeMoveTimer)clearTimeout(window.zTreeMoveTimer),window.zTreeMoveTargetNodeTId= +null;Q=P=null;x.unbind("mousemove",c);x.unbind("mouseup",q);x.unbind("selectstart",e);k("body").css("cursor","auto");r&&(r.removeClass(d.node.TMPTARGET_TREE),u&&k("#"+u+d.id.A,r).removeClass(d.node.TMPTARGET_NODE+"_"+d.move.TYPE_PREV).removeClass(d.node.TMPTARGET_NODE+"_"+F.move.TYPE_NEXT).removeClass(d.node.TMPTARGET_NODE+"_"+F.move.TYPE_INNER));h.showIfameMask(g,!1);z.showHoverDom=!0;if(z.dragFlag!=0){z.dragFlag=0;var a,l,j;for(a=0,l=m.length;a0);k("#"+s[0].tId).focus().blur()};v==d.move.TYPE_INNER&& +h.canAsync(i,n)?f.asyncNode(i,n,!1,a):a();g.treeObj.trigger(d.event.DROP,[b,i.treeId,s,n,v,o])}}else{for(a=0,l=m.length;a0);g.treeObj.trigger(d.event.DROP,[b,g.treeId,m,null,null,null])}}}function e(){return!1}var l,j,g=p.getSetting(b.data.treeId),z=p.getRoot(g);if(b.button==2||!g.edit.enable||!g.edit.drag.isCopy&&!g.edit.drag.isMove)return!0;var o=b.target,n=p.getRoot(g).curSelectedList,m=[];if(p.isSelectedNode(g,a))for(l=0,j=n.length;l0;)c.dragMaskList[0].remove(), +c.dragMaskList.shift();if(a)for(var d=k("iframe"),e=0,f=d.length;e
                                                                                                                                                                                                                                                                                                      ");j.appendTo("body");c.dragMaskList.push(j)}}},view:{addEditBtn:function(b,a){if(!(a.editNameFlag||k("#"+a.tId+d.id.EDIT).length>0)&&h.apply(b.edit.showRenameBtn,[b.treeId,a],b.edit.showRenameBtn)){var c=k("#"+a.tId+d.id.A),q="";c.append(q);k("#"+a.tId+d.id.EDIT).bind("click",function(){if(!h.uCanDo(b)||h.apply(b.callback.beforeEditName,[b.treeId,a],!0)==!1)return!1;f.editNode(b,a);return!1}).show()}},addRemoveBtn:function(b,a){if(!(a.editNameFlag||k("#"+a.tId+d.id.REMOVE).length>0)&&h.apply(b.edit.showRemoveBtn,[b.treeId,a],b.edit.showRemoveBtn)){var c=k("#"+a.tId+d.id.A),q="";c.append(q);k("#"+a.tId+d.id.REMOVE).bind("click",function(){if(!h.uCanDo(b)||h.apply(b.callback.beforeRemove,[b.treeId,a],!0)==!1)return!1;f.removeNode(b,a);b.treeObj.trigger(d.event.REMOVE,[b.treeId,a]);return!1}).bind("mousedown",function(){return!0}).show()}},addHoverDom:function(b,a){if(p.getRoot(b).showHoverDom)a.isHover=!0,b.edit.enable&&(f.addEditBtn(b, +a),f.addRemoveBtn(b,a)),h.apply(b.view.addHoverDom,[b.treeId,a])},cancelCurEditNode:function(b,a){var c=p.getRoot(b),q=b.data.key.name,e=c.curEditNode;if(e){var l=c.curEditInput,j=a?a:l.val();if(!a&&h.apply(b.callback.beforeRename,[b.treeId,e,j],!0)===!1)return e.editNameFlag=!0,!1;else e[q]=j?j:l.val(),a||b.treeObj.trigger(d.event.RENAME,[b.treeId,e]);k("#"+e.tId+d.id.A).removeClass(d.node.CURSELECTED_EDIT);l.unbind();f.setNodeName(b,e);e.editNameFlag=!1;c.curEditNode=null;c.curEditInput=null;f.selectNode(b, +e,!1)}return c.noSelection=!0},editNode:function(b,a){var c=p.getRoot(b);f.editNodeBlur=!1;if(p.isSelectedNode(b,a)&&c.curEditNode==a&&a.editNameFlag)setTimeout(function(){h.inputFocus(c.curEditInput)},0);else{var q=b.data.key.name;a.editNameFlag=!0;f.removeTreeDom(b,a);f.cancelCurEditNode(b);f.selectNode(b,a,!1);k("#"+a.tId+d.id.SPAN).html("");var e=k("#"+a.tId+d.id.INPUT);e.attr("value",a[q]);b.edit.editNameSelectAll? +h.inputSelect(e):h.inputFocus(e);e.bind("blur",function(){f.editNodeBlur||f.cancelCurEditNode(b)}).bind("keydown",function(c){c.keyCode=="13"?(f.editNodeBlur=!0,f.cancelCurEditNode(b,null,!0)):c.keyCode=="27"&&f.cancelCurEditNode(b,a[q])}).bind("click",function(){return!1}).bind("dblclick",function(){return!1});k("#"+a.tId+d.id.A).addClass(d.node.CURSELECTED_EDIT);c.curEditInput=e;c.noSelection=!1;c.curEditNode=a}},moveNode:function(b,a,c,q,e,l){var j=p.getRoot(b),g=b.data.key.children;if(a!=c&&(!b.data.keep.leaf|| +!a||a.isParent||q!=d.move.TYPE_INNER)){var h=c.parentTId?c.getParentNode():j,o=a===null||a==j;o&&a===null&&(a=j);if(o)q=d.move.TYPE_INNER;j=a.parentTId?a.getParentNode():j;if(q!=d.move.TYPE_PREV&&q!=d.move.TYPE_NEXT)q=d.move.TYPE_INNER;if(q==d.move.TYPE_INNER)if(o)c.parentTId=null;else{if(!a.isParent)a.isParent=!0,a.open=!!a.open,f.setNodeLineIcos(b,a);c.parentTId=a.tId}var n;o?n=o=b.treeObj:(!l&&q==d.move.TYPE_INNER?f.expandCollapseNode(b,a,!0,!1):l||f.expandCollapseNode(b,a.getParentNode(),!0,!1), +o=k("#"+a.tId),n=k("#"+a.tId+d.id.UL),o.get(0)&&!n.get(0)&&(n=[],f.makeUlHtml(b,a,n,""),o.append(n.join(""))),n=k("#"+a.tId+d.id.UL));var m=k("#"+c.tId);m.get(0)?o.get(0)||m.remove():m=f.appendNodes(b,c.level,[c],null,!1,!0).join("");n.get(0)&&q==d.move.TYPE_INNER?n.append(m):o.get(0)&&q==d.move.TYPE_PREV?o.before(m):o.get(0)&&q==d.move.TYPE_NEXT&&o.after(m);var x=-1,y=0,t=null,o=null,r=c.level;if(c.isFirstNode){if(x=0,h[g].length>1)t=h[g][1],t.isFirstNode=!0}else if(c.isLastNode)x=h[g].length-1, +t=h[g][x-1],t.isLastNode=!0;else for(n=0,m=h[g].length;n=0&&h[g].splice(x,1);if(q!=d.move.TYPE_INNER)for(n=0,m=j[g].length;n0)o=a[g][a[g].length-1],o.isLastNode=!1;a[g].splice(a[g].length,0,c);c.isLastNode=!0;c.isFirstNode=a[g].length==1}else a.isFirstNode&&q==d.move.TYPE_PREV?(j[g].splice(y,0,c),o=a,o.isFirstNode=!1,c.parentTId=a.parentTId,c.isFirstNode=!0,c.isLastNode= +!1):a.isLastNode&&q==d.move.TYPE_NEXT?(j[g].splice(y+1,0,c),o=a,o.isLastNode=!1,c.parentTId=a.parentTId,c.isFirstNode=!1,c.isLastNode=!0):(q==d.move.TYPE_PREV?j[g].splice(y,0,c):j[g].splice(y+1,0,c),c.parentTId=a.parentTId,c.isFirstNode=!1,c.isLastNode=!1);p.fixPIdKeyValue(b,c);p.setSonNodeLevel(b,c.getParentNode(),c);f.setNodeLineIcos(b,c);f.repairNodeLevelClass(b,c,r);!b.data.keep.parent&&h[g].length<1?(h.isParent=!1,h.open=!1,a=k("#"+h.tId+d.id.UL),q=k("#"+h.tId+d.id.SWITCH),g=k("#"+h.tId+d.id.ICON), +f.replaceSwitchClass(h,q,d.folder.DOCU),f.replaceIcoClass(h,g,d.folder.DOCU),a.css("display","none")):t&&f.setNodeLineIcos(b,t);o&&f.setNodeLineIcos(b,o);b.check&&b.check.enable&&f.repairChkClass&&(f.repairChkClass(b,h),f.repairParentChkClassWithSelf(b,h),h!=c.parent&&f.repairParentChkClassWithSelf(b,c));l||f.expandCollapseParentNode(b,c.getParentNode(),!0,e)}},removeEditBtn:function(b){k("#"+b.tId+d.id.EDIT).unbind().remove()},removeRemoveBtn:function(b){k("#"+b.tId+d.id.REMOVE).unbind().remove()}, +removeTreeDom:function(b,a){a.isHover=!1;f.removeEditBtn(a);f.removeRemoveBtn(a);h.apply(b.view.removeHoverDom,[b.treeId,a])},repairNodeLevelClass:function(b,a,c){if(c!==a.level){var b=k("#"+a.tId),f=k("#"+a.tId+d.id.A),e=k("#"+a.tId+d.id.UL),c="level"+c,a="level"+a.level;b.removeClass(c);b.addClass(a);f.removeClass(c);f.addClass(a);e.removeClass(c);e.addClass(a)}}},event:{},data:{setSonNodeLevel:function(b,a,c){if(c){var d=b.data.key.children;c.level=a?a.level+1:0;if(c[d])for(var a=0,e=c[d].length;a< +e;a++)c[d][a]&&p.setSonNodeLevel(b,c,c[d][a])}}}});var E=k.fn.zTree,h=E._z.tools,d=E.consts,f=E._z.view,p=E._z.data;p.exSetting({edit:{enable:!1,editNameSelectAll:!1,showRemoveBtn:!0,showRenameBtn:!0,removeTitle:"remove",renameTitle:"rename",drag:{autoExpandTrigger:!1,isCopy:!0,isMove:!0,prev:!0,next:!0,inner:!0,minMoveSize:5,borderMax:10,borderMin:-5,maxShowNodeNum:5,autoOpenTime:500}},view:{addHoverDom:null,removeHoverDom:null},callback:{beforeDrag:null,beforeDragOpen:null,beforeDrop:null,beforeEditName:null, +beforeRename:null,onDrag:null,onDrop:null,onRename:null}});p.addInitBind(function(b){var a=b.treeObj,c=d.event;a.bind(c.RENAME,function(a,c,d){h.apply(b.callback.onRename,[a,c,d])});a.bind(c.REMOVE,function(a,c,d){h.apply(b.callback.onRemove,[a,c,d])});a.bind(c.DRAG,function(a,c,d,f){h.apply(b.callback.onDrag,[c,d,f])});a.bind(c.DROP,function(a,c,d,f,g,k,o){h.apply(b.callback.onDrop,[c,d,f,g,k,o])})});p.addInitUnBind(function(b){var b=b.treeObj,a=d.event;b.unbind(a.RENAME);b.unbind(a.REMOVE);b.unbind(a.DRAG); +b.unbind(a.DROP)});p.addInitCache(function(){});p.addInitNode(function(b,a,c){if(c)c.isHover=!1,c.editNameFlag=!1});p.addInitProxy(function(b){var a=b.target,c=p.getSetting(b.data.treeId),f=b.relatedTarget,e="",l=null,j="",g=null,k=null;if(h.eqs(b.type,"mouseover")){if(k=h.getMDom(c,a,[{tagName:"a",attrName:"treeNode"+d.id.A}]))e=k.parentNode.id,j="hoverOverNode"}else if(h.eqs(b.type,"mouseout"))k=h.getMDom(c,f,[{tagName:"a",attrName:"treeNode"+d.id.A}]),k||(e="remove",j="hoverOutNode");else if(h.eqs(b.type, +"mousedown")&&(k=h.getMDom(c,a,[{tagName:"a",attrName:"treeNode"+d.id.A}])))e=k.parentNode.id,j="mousedownNode";if(e.length>0)switch(l=p.getNodeCache(c,e),j){case "mousedownNode":g=D.onMousedownNode;break;case "hoverOverNode":g=D.onHoverOverNode;break;case "hoverOutNode":g=D.onHoverOutNode}return{stop:!1,node:l,nodeEventType:j,nodeEventCallback:g,treeEventType:"",treeEventCallback:null}});p.addInitRoot(function(b){b=p.getRoot(b);b.curEditNode=null;b.curEditInput=null;b.curHoverNode=null;b.dragFlag= +0;b.dragNodeShowBefore=[];b.dragMaskList=[];b.showHoverDom=!0});p.addZTreeTools(function(b,a){a.cancelEditName=function(a){var d=p.getRoot(b),e=b.data.key.name,h=d.curEditNode;d.curEditNode&&f.cancelCurEditNode(b,a?a:h[e])};a.copyNode=function(a,k,e,l){if(!k)return null;if(a&&!a.isParent&&b.data.keep.leaf&&e===d.move.TYPE_INNER)return null;var j=h.clone(k);if(!a)a=null,e=d.move.TYPE_INNER;e==d.move.TYPE_INNER?(k=function(){f.addNodes(b,a,[j],l)},h.canAsync(b,a)?f.asyncNode(b,a,l,k):k()):(f.addNodes(b, +a.parentNode,[j],l),f.moveNode(b,a,j,e,!1,l));return j};a.editName=function(a){a&&a.tId&&a===p.getNodeCache(b,a.tId)&&(a.parentTId&&f.expandCollapseParentNode(b,a.getParentNode(),!0),f.editNode(b,a))};a.moveNode=function(a,q,e,l){function j(){f.moveNode(b,a,q,e,!1,l)}if(!q)return q;if(a&&!a.isParent&&b.data.keep.leaf&&e===d.move.TYPE_INNER)return null;else if(a&&(q.parentTId==a.tId&&e==d.move.TYPE_INNER||k("#"+q.tId).find("#"+a.tId).length>0))return null;else a||(a=null);h.canAsync(b,a)?f.asyncNode(b, +a,l,j):j();return q};a.setEditable=function(a){b.edit.enable=a;return this.refresh()}});var K=f.cancelPreSelectedNode;f.cancelPreSelectedNode=function(b,a){for(var c=p.getRoot(b).curSelectedList,d=0,e=c.length;d 0 && tId.length == 0) { + tmp = tools.getMDom(setting, target, [{tagName:"a", attrName:"treeNode"+consts.id.A}]); + if (tmp) {tId = ($(tmp).parent("li").get(0) || $(tmp).parentsUntil("li").parent().get(0)).id;} + } + // event to node + if (tId.length>0) { + node = data.getNodeCache(setting, tId); + switch (nodeEventType) { + case "switchNode" : + if (!node.isParent) { + nodeEventType = ""; + } else if (tools.eqs(event.type, "click") + || (tools.eqs(event.type, "dblclick") && tools.apply(setting.view.dblClickExpand, [setting.treeId, node], setting.view.dblClickExpand))) { + nodeEventCallback = handler.onSwitchNode; + } else { + nodeEventType = ""; + } + break; + case "clickNode" : + nodeEventCallback = handler.onClickNode; + break; + } + } + // event to zTree + switch (treeEventType) { + case "mousedown" : + treeEventCallback = handler.onZTreeMousedown; + break; + case "mouseup" : + treeEventCallback = handler.onZTreeMouseup; + break; + case "dblclick" : + treeEventCallback = handler.onZTreeDblclick; + break; + case "contextmenu" : + treeEventCallback = handler.onZTreeContextmenu; + break; + } + var proxyResult = { + stop: false, + node: node, + nodeEventType: nodeEventType, + nodeEventCallback: nodeEventCallback, + treeEventType: treeEventType, + treeEventCallback: treeEventCallback + }; + return proxyResult + }, + //default init node of core + _initNode = function(setting, level, n, parentNode, isFirstNode, isLastNode, openFlag) { + if (!n) return; + var r = data.getRoot(setting), + childKey = setting.data.key.children; + n.level = level; + n.tId = setting.treeId + "_" + (++r.zId); + n.parentTId = parentNode ? parentNode.tId : null; + if (n[childKey] && n[childKey].length > 0) { + if (typeof n.open == "string") n.open = tools.eqs(n.open, "true"); + n.open = !!n.open; + n.isParent = true; + n.zAsync = true; + } else { + n.open = false; + if (typeof n.isParent == "string") n.isParent = tools.eqs(n.isParent, "true"); + n.isParent = !!n.isParent; + n.zAsync = !n.isParent; + } + n.isFirstNode = isFirstNode; + n.isLastNode = isLastNode; + n.getParentNode = function() {return data.getNodeCache(setting, n.parentTId);}; + n.getPreNode = function() {return data.getPreNode(setting, n);}; + n.getNextNode = function() {return data.getNextNode(setting, n);}; + n.isAjaxing = false; + data.fixPIdKeyValue(setting, n); + }, + _init = { + bind: [_bindEvent], + unbind: [_unbindEvent], + caches: [_initCache], + nodes: [_initNode], + proxys: [_eventProxy], + roots: [_initRoot], + beforeA: [], + afterA: [], + innerBeforeA: [], + innerAfterA: [], + zTreeTools: [] + }, + //method of operate data + data = { + addNodeCache: function(setting, node) { + data.getCache(setting).nodes[data.getNodeCacheId(node.tId)] = node; + }, + getNodeCacheId: function(tId) { + return tId.substring(tId.lastIndexOf("_")+1); + }, + addAfterA: function(afterA) { + _init.afterA.push(afterA); + }, + addBeforeA: function(beforeA) { + _init.beforeA.push(beforeA); + }, + addInnerAfterA: function(innerAfterA) { + _init.innerAfterA.push(innerAfterA); + }, + addInnerBeforeA: function(innerBeforeA) { + _init.innerBeforeA.push(innerBeforeA); + }, + addInitBind: function(bindEvent) { + _init.bind.push(bindEvent); + }, + addInitUnBind: function(unbindEvent) { + _init.unbind.push(unbindEvent); + }, + addInitCache: function(initCache) { + _init.caches.push(initCache); + }, + addInitNode: function(initNode) { + _init.nodes.push(initNode); + }, + addInitProxy: function(initProxy) { + _init.proxys.push(initProxy); + }, + addInitRoot: function(initRoot) { + _init.roots.push(initRoot); + }, + addNodesData: function(setting, parentNode, nodes) { + var childKey = setting.data.key.children; + if (!parentNode[childKey]) parentNode[childKey] = []; + if (parentNode[childKey].length > 0) { + parentNode[childKey][parentNode[childKey].length - 1].isLastNode = false; + view.setNodeLineIcos(setting, parentNode[childKey][parentNode[childKey].length - 1]); + } + parentNode.isParent = true; + parentNode[childKey] = parentNode[childKey].concat(nodes); + }, + addSelectedNode: function(setting, node) { + var root = data.getRoot(setting); + if (!data.isSelectedNode(setting, node)) { + root.curSelectedList.push(node); + } + }, + addCreatedNode: function(setting, node) { + if (!!setting.callback.onNodeCreated || !!setting.view.addDiyDom) { + var root = data.getRoot(setting); + root.createdNodes.push(node); + } + }, + addZTreeTools: function(zTreeTools) { + _init.zTreeTools.push(zTreeTools); + }, + exSetting: function(s) { + $.extend(true, _setting, s); + }, + fixPIdKeyValue: function(setting, node) { + if (setting.data.simpleData.enable) { + node[setting.data.simpleData.pIdKey] = node.parentTId ? node.getParentNode()[setting.data.simpleData.idKey] : setting.data.simpleData.rootPId; + } + }, + getAfterA: function(setting, node, array) { + for (var i=0, j=_init.afterA.length; i-1) { + result.push(nodes[i]); + } + result = result.concat(data.getNodesByParamFuzzy(setting, nodes[i][childKey], key, value)); + } + return result; + }, + getNodesByFilter: function(setting, nodes, filter, isSingle, invokeParam) { + if (!nodes) return (isSingle ? null : []); + var childKey = setting.data.key.children, + result = isSingle ? null : []; + for (var i = 0, l = nodes.length; i < l; i++) { + if (tools.apply(filter, [nodes[i], invokeParam], false)) { + if (isSingle) {return nodes[i];} + result.push(nodes[i]); + } + var tmpResult = data.getNodesByFilter(setting, nodes[i][childKey], filter, isSingle, invokeParam); + if (isSingle && !!tmpResult) {return tmpResult;} + result = isSingle ? tmpResult : result.concat(tmpResult); + } + return result; + }, + getPreNode: function(setting, node) { + if (!node) return null; + var childKey = setting.data.key.children, + p = node.parentTId ? node.getParentNode() : data.getRoot(setting); + for (var i=0, l=p[childKey].length; i 0))); + }, + clone: function (obj){ + if (obj === null) return null; + var o = obj.constructor === Array ? [] : {}; + for(var i in obj){ + if(obj.hasOwnProperty(i)){ + o[i] = (obj[i] instanceof Date) ? new Date(obj[i].getTime()) : (typeof obj[i] === "object" ? arguments.callee(obj[i]) : obj[i]); + } + } + return o; + }, + eqs: function(str1, str2) { + return str1.toLowerCase() === str2.toLowerCase(); + }, + isArray: function(arr) { + return Object.prototype.toString.apply(arr) === "[object Array]"; + }, + getMDom: function (setting, curDom, targetExpr) { + if (!curDom) return null; + while (curDom && curDom.id !== setting.treeId) { + for (var i=0, l=targetExpr.length; curDom.tagName && i 0) { + //make child html first, because checkType + childHtml = view.appendNodes(setting, level + 1, node[childKey], node, initFlag, openFlag && node.open); + } + if (openFlag) { + + view.makeDOMNodeMainBefore(html, setting, node); + view.makeDOMNodeLine(html, setting, node); + data.getBeforeA(setting, node, html); + view.makeDOMNodeNameBefore(html, setting, node); + data.getInnerBeforeA(setting, node, html); + view.makeDOMNodeIcon(html, setting, node); + data.getInnerAfterA(setting, node, html); + view.makeDOMNodeNameAfter(html, setting, node); + data.getAfterA(setting, node, html); + if (node.isParent && node.open) { + view.makeUlHtml(setting, node, html, childHtml.join('')); + } + view.makeDOMNodeMainAfter(html, setting, node); + data.addCreatedNode(setting, node); + } + } + return html; + }, + appendParentULDom: function(setting, node) { + var html = [], + nObj = $("#" + node.tId), + ulObj = $("#" + node.tId + consts.id.UL), + childKey = setting.data.key.children, + childHtml = view.appendNodes(setting, node.level+1, node[childKey], node, false, true); + view.makeUlHtml(setting, node, html, childHtml.join('')); + if (!nObj.get(0) && !!node.parentTId) { + view.appendParentULDom(setting, node.getParentNode()); + nObj = $("#" + node.tId); + } + if (ulObj.get(0)) { + ulObj.remove(); + } + nObj.append(html.join('')); + }, + asyncNode: function(setting, node, isSilent, callback) { + var i, l; + if (node && !node.isParent) { + tools.apply(callback); + return false; + } else if (node && node.isAjaxing) { + return false; + } else if (tools.apply(setting.callback.beforeAsync, [setting.treeId, node], true) == false) { + tools.apply(callback); + return false; + } + if (node) { + node.isAjaxing = true; + var icoObj = $("#" + node.tId + consts.id.ICON); + icoObj.attr({"style":"", "class":"button ico_loading"}); + } + + var isJson = (setting.async.contentType == "application/json"), tmpParam = isJson ? "{" : "", jTemp=""; + for (i = 0, l = setting.async.autoParam.length; node && i < l; i++) { + var pKey = setting.async.autoParam[i].split("="), spKey = pKey; + if (pKey.length>1) { + spKey = pKey[1]; + pKey = pKey[0]; + } + if (isJson) { + jTemp = (typeof node[pKey] == "string") ? '"' : ''; + tmpParam += '"' + spKey + ('":' + jTemp + node[pKey]).replace(/'/g,'\\\'') + jTemp + ','; + } else { + tmpParam += spKey + ("=" + node[pKey]).replace(/&/g,'%26') + "&"; + } + } + if (tools.isArray(setting.async.otherParam)) { + for (i = 0, l = setting.async.otherParam.length; i < l; i += 2) { + if (isJson) { + jTemp = (typeof setting.async.otherParam[i + 1] == "string") ? '"' : ''; + tmpParam += '"' + setting.async.otherParam[i] + ('":' + jTemp + setting.async.otherParam[i + 1]).replace(/'/g,'\\\'') + jTemp + ","; + } else { + tmpParam += setting.async.otherParam[i] + ("=" + setting.async.otherParam[i + 1]).replace(/&/g,'%26') + "&"; + } + } + } else { + for (var p in setting.async.otherParam) { + if (isJson) { + jTemp = (typeof setting.async.otherParam[p] == "string") ? '"' : ''; + tmpParam += '"' + p + ('":' + jTemp + setting.async.otherParam[p]).replace(/'/g,'\\\'') + jTemp + ","; + } else { + tmpParam += p + ("=" + setting.async.otherParam[p]).replace(/&/g,'%26') + "&"; + } + } + } + if (tmpParam.length > 1) tmpParam = tmpParam.substring(0, tmpParam.length-1); + if (isJson) tmpParam += "}"; + + var _tmpV = data.getRoot(setting)._ver; + $.ajax({ + contentType: setting.async.contentType, + type: setting.async.type, + url: tools.apply(setting.async.url, [setting.treeId, node], setting.async.url), + data: tmpParam, + dataType: setting.async.dataType, + success: function(msg) { + if (_tmpV != data.getRoot(setting)._ver) { + return; + } + var newNodes = []; + try { + if (!msg || msg.length == 0) { + newNodes = []; + } else if (typeof msg == "string") { + newNodes = eval("(" + msg + ")"); + } else { + newNodes = msg; + } + } catch(err) { + newNodes = msg; + } + + if (node) { + node.isAjaxing = null; + node.zAsync = true; + } + view.setNodeLineIcos(setting, node); + if (newNodes && newNodes !== "") { + newNodes = tools.apply(setting.async.dataFilter, [setting.treeId, node, newNodes], newNodes); + view.addNodes(setting, node, !!newNodes ? tools.clone(newNodes) : [], !!isSilent); + } else { + view.addNodes(setting, node, [], !!isSilent); + } + setting.treeObj.trigger(consts.event.ASYNC_SUCCESS, [setting.treeId, node, msg]); + tools.apply(callback); + }, + error: function(XMLHttpRequest, textStatus, errorThrown) { + if (_tmpV != data.getRoot(setting)._ver) { + return; + } + if (node) node.isAjaxing = null; + view.setNodeLineIcos(setting, node); + setting.treeObj.trigger(consts.event.ASYNC_ERROR, [setting.treeId, node, XMLHttpRequest, textStatus, errorThrown]); + } + }); + return true; + }, + cancelPreSelectedNode: function (setting, node) { + var list = data.getRoot(setting).curSelectedList; + for (var i=0, j=list.length-1; j>=i; j--) { + if (!node || node === list[j]) { + $("#" + list[j].tId + consts.id.A).removeClass(consts.node.CURSELECTED); + if (node) { + data.removeSelectedNode(setting, node); + break; + } + } + } + if (!node) data.getRoot(setting).curSelectedList = []; + }, + createNodeCallback: function(setting) { + if (!!setting.callback.onNodeCreated || !!setting.view.addDiyDom) { + var root = data.getRoot(setting); + while (root.createdNodes.length>0) { + var node = root.createdNodes.shift(); + tools.apply(setting.view.addDiyDom, [setting.treeId, node]); + if (!!setting.callback.onNodeCreated) { + setting.treeObj.trigger(consts.event.NODECREATED, [setting.treeId, node]); + } + } + } + }, + createNodes: function(setting, level, nodes, parentNode) { + if (!nodes || nodes.length == 0) return; + var root = data.getRoot(setting), + childKey = setting.data.key.children, + openFlag = !parentNode || parentNode.open || !!$("#" + parentNode[childKey][0].tId).get(0); + root.createdNodes = []; + var zTreeHtml = view.appendNodes(setting, level, nodes, parentNode, true, openFlag); + if (!parentNode) { + setting.treeObj.append(zTreeHtml.join('')); + } else { + var ulObj = $("#" + parentNode.tId + consts.id.UL); + if (ulObj.get(0)) { + ulObj.append(zTreeHtml.join('')); + } + } + view.createNodeCallback(setting); + }, + destroy: function(setting) { + if (!setting) return; + data.initCache(setting); + data.initRoot(setting); + event.unbindTree(setting); + event.unbindEvent(setting); + setting.treeObj.empty(); + }, + expandCollapseNode: function(setting, node, expandFlag, animateFlag, callback) { + var root = data.getRoot(setting), + childKey = setting.data.key.children; + if (!node) { + tools.apply(callback, []); + return; + } + if (root.expandTriggerFlag) { + var _callback = callback; + callback = function(){ + if (_callback) _callback(); + if (node.open) { + setting.treeObj.trigger(consts.event.EXPAND, [setting.treeId, node]); + } else { + setting.treeObj.trigger(consts.event.COLLAPSE, [setting.treeId, node]); + } + }; + root.expandTriggerFlag = false; + } + if (!node.open && node.isParent && ((!$("#" + node.tId + consts.id.UL).get(0)) || (node[childKey] && node[childKey].length>0 && !$("#" + node[childKey][0].tId).get(0)))) { + view.appendParentULDom(setting, node); + view.createNodeCallback(setting); + } + if (node.open == expandFlag) { + tools.apply(callback, []); + return; + } + var ulObj = $("#" + node.tId + consts.id.UL), + switchObj = $("#" + node.tId + consts.id.SWITCH), + icoObj = $("#" + node.tId + consts.id.ICON); + + if (node.isParent) { + node.open = !node.open; + if (node.iconOpen && node.iconClose) { + icoObj.attr("style", view.makeNodeIcoStyle(setting, node)); + } + + if (node.open) { + view.replaceSwitchClass(node, switchObj, consts.folder.OPEN); + view.replaceIcoClass(node, icoObj, consts.folder.OPEN); + if (animateFlag == false || setting.view.expandSpeed == "") { + ulObj.show(); + tools.apply(callback, []); + } else { + if (node[childKey] && node[childKey].length > 0) { + ulObj.slideDown(setting.view.expandSpeed, callback); + } else { + ulObj.show(); + tools.apply(callback, []); + } + } + } else { + view.replaceSwitchClass(node, switchObj, consts.folder.CLOSE); + view.replaceIcoClass(node, icoObj, consts.folder.CLOSE); + if (animateFlag == false || setting.view.expandSpeed == "" || !(node[childKey] && node[childKey].length > 0)) { + ulObj.hide(); + tools.apply(callback, []); + } else { + ulObj.slideUp(setting.view.expandSpeed, callback); + } + } + } else { + tools.apply(callback, []); + } + }, + expandCollapseParentNode: function(setting, node, expandFlag, animateFlag, callback) { + if (!node) return; + if (!node.parentTId) { + view.expandCollapseNode(setting, node, expandFlag, animateFlag, callback); + return; + } else { + view.expandCollapseNode(setting, node, expandFlag, animateFlag); + } + if (node.parentTId) { + view.expandCollapseParentNode(setting, node.getParentNode(), expandFlag, animateFlag, callback); + } + }, + expandCollapseSonNode: function(setting, node, expandFlag, animateFlag, callback) { + var root = data.getRoot(setting), + childKey = setting.data.key.children, + treeNodes = (node) ? node[childKey]: root[childKey], + selfAnimateSign = (node) ? false : animateFlag, + expandTriggerFlag = data.getRoot(setting).expandTriggerFlag; + data.getRoot(setting).expandTriggerFlag = false; + if (treeNodes) { + for (var i = 0, l = treeNodes.length; i < l; i++) { + if (treeNodes[i]) view.expandCollapseSonNode(setting, treeNodes[i], expandFlag, selfAnimateSign); + } + } + data.getRoot(setting).expandTriggerFlag = expandTriggerFlag; + view.expandCollapseNode(setting, node, expandFlag, animateFlag, callback ); + }, + makeDOMNodeIcon: function(html, setting, node) { + var nameStr = data.getNodeName(setting, node), + name = setting.view.nameIsHTML ? nameStr : nameStr.replace(/&/g,'&').replace(//g,'>'); + html.push("",name,""); + }, + makeDOMNodeLine: function(html, setting, node) { + html.push(""); + }, + makeDOMNodeMainAfter: function(html, setting, node) { + html.push(""); + }, + makeDOMNodeMainBefore: function(html, setting, node) { + html.push("
                                                                                                                                                                                                                                                                                                    • "); + }, + makeDOMNodeNameAfter: function(html, setting, node) { + html.push(""); + }, + makeDOMNodeNameBefore: function(html, setting, node) { + var title = data.getNodeTitle(setting, node), + url = view.makeNodeUrl(setting, node), + fontcss = view.makeNodeFontCss(setting, node), + fontStyle = []; + for (var f in fontcss) { + fontStyle.push(f, ":", fontcss[f], ";"); + } + html.push(" 0) ? "href='" + url + "'" : ""), " target='",view.makeNodeTarget(node),"' style='", fontStyle.join(''), + "'"); + if (tools.apply(setting.view.showTitle, [setting.treeId, node], setting.view.showTitle) && title) {html.push("title='", title.replace(/'/g,"'").replace(//g,'>'),"'");} + html.push(">"); + }, + makeNodeFontCss: function(setting, node) { + var fontCss = tools.apply(setting.view.fontCss, [setting.treeId, node], setting.view.fontCss); + return (fontCss && ((typeof fontCss) != "function")) ? fontCss : {}; + }, + makeNodeIcoClass: function(setting, node) { + var icoCss = ["ico"]; + if (!node.isAjaxing) { + icoCss[0] = (node.iconSkin ? node.iconSkin + "_" : "") + icoCss[0]; + if (node.isParent) { + icoCss.push(node.open ? consts.folder.OPEN : consts.folder.CLOSE); + } else { + icoCss.push(consts.folder.DOCU); + } + } + return "button " + icoCss.join('_'); + }, + makeNodeIcoStyle: function(setting, node) { + var icoStyle = []; + if (!node.isAjaxing) { + var icon = (node.isParent && node.iconOpen && node.iconClose) ? (node.open ? node.iconOpen : node.iconClose) : node.icon; + if (icon) icoStyle.push("background:url(", icon, ") 0 0 no-repeat;"); + if (setting.view.showIcon == false || !tools.apply(setting.view.showIcon, [setting.treeId, node], true)) { + icoStyle.push("width:0px;height:0px;"); + } + } + return icoStyle.join(''); + }, + makeNodeLineClass: function(setting, node) { + var lineClass = []; + if (setting.view.showLine) { + if (node.level == 0 && node.isFirstNode && node.isLastNode) { + lineClass.push(consts.line.ROOT); + } else if (node.level == 0 && node.isFirstNode) { + lineClass.push(consts.line.ROOTS); + } else if (node.isLastNode) { + lineClass.push(consts.line.BOTTOM); + } else { + lineClass.push(consts.line.CENTER); + } + } else { + lineClass.push(consts.line.NOLINE); + } + if (node.isParent) { + lineClass.push(node.open ? consts.folder.OPEN : consts.folder.CLOSE); + } else { + lineClass.push(consts.folder.DOCU); + } + return view.makeNodeLineClassEx(node) + lineClass.join('_'); + }, + makeNodeLineClassEx: function(node) { + return "button level" + node.level + " switch "; + }, + makeNodeTarget: function(node) { + return (node.target || "_blank"); + }, + makeNodeUrl: function(setting, node) { + var urlKey = setting.data.key.url; + return node[urlKey] ? node[urlKey] : null; + }, + makeUlHtml: function(setting, node, html, content) { + html.push("
                                                                                                                                                                                                                                                                                                        "); + html.push(content); + html.push("
                                                                                                                                                                                                                                                                                                      "); + }, + makeUlLineClass: function(setting, node) { + return ((setting.view.showLine && !node.isLastNode) ? consts.line.LINE : ""); + }, + removeChildNodes: function(setting, node) { + if (!node) return; + var childKey = setting.data.key.children, + nodes = node[childKey]; + if (!nodes) return; + + for (var i = 0, l = nodes.length; i < l; i++) { + data.removeNodeCache(setting, nodes[i]); + } + data.removeSelectedNode(setting); + delete node[childKey]; + + if (!setting.data.keep.parent) { + node.isParent = false; + node.open = false; + var tmp_switchObj = $("#" + node.tId + consts.id.SWITCH), + tmp_icoObj = $("#" + node.tId + consts.id.ICON); + view.replaceSwitchClass(node, tmp_switchObj, consts.folder.DOCU); + view.replaceIcoClass(node, tmp_icoObj, consts.folder.DOCU); + $("#" + node.tId + consts.id.UL).remove(); + } else { + $("#" + node.tId + consts.id.UL).empty(); + } + }, + setFirstNode: function(setting, parentNode) { + var childKey = setting.data.key.children, childLength = parentNode[childKey].length; + if ( childLength > 0) { + parentNode[childKey][0].isFirstNode = true; + } + }, + setLastNode: function(setting, parentNode) { + var childKey = setting.data.key.children, childLength = parentNode[childKey].length; + if ( childLength > 0) { + parentNode[childKey][childLength - 1].isLastNode = true; + } + }, + removeNode: function(setting, node) { + var root = data.getRoot(setting), + childKey = setting.data.key.children, + parentNode = (node.parentTId) ? node.getParentNode() : root; + + node.isFirstNode = false; + node.isLastNode = false; + node.getPreNode = function() {return null;}; + node.getNextNode = function() {return null;}; + + if (!data.getNodeCache(setting, node.tId)) { + return; + } + + $("#" + node.tId).remove(); + data.removeNodeCache(setting, node); + data.removeSelectedNode(setting, node); + + for (var i = 0, l = parentNode[childKey].length; i < l; i++) { + if (parentNode[childKey][i].tId == node.tId) { + parentNode[childKey].splice(i, 1); + break; + } + } + view.setFirstNode(setting, parentNode); + view.setLastNode(setting, parentNode); + + var tmp_ulObj,tmp_switchObj,tmp_icoObj, + childLength = parentNode[childKey].length; + + //repair nodes old parent + if (!setting.data.keep.parent && childLength == 0) { + //old parentNode has no child nodes + parentNode.isParent = false; + parentNode.open = false; + tmp_ulObj = $("#" + parentNode.tId + consts.id.UL); + tmp_switchObj = $("#" + parentNode.tId + consts.id.SWITCH); + tmp_icoObj = $("#" + parentNode.tId + consts.id.ICON); + view.replaceSwitchClass(parentNode, tmp_switchObj, consts.folder.DOCU); + view.replaceIcoClass(parentNode, tmp_icoObj, consts.folder.DOCU); + tmp_ulObj.css("display", "none"); + + } else if (setting.view.showLine && childLength > 0) { + //old parentNode has child nodes + var newLast = parentNode[childKey][childLength - 1]; + tmp_ulObj = $("#" + newLast.tId + consts.id.UL); + tmp_switchObj = $("#" + newLast.tId + consts.id.SWITCH); + tmp_icoObj = $("#" + newLast.tId + consts.id.ICON); + if (parentNode == root) { + if (parentNode[childKey].length == 1) { + //node was root, and ztree has only one root after move node + view.replaceSwitchClass(newLast, tmp_switchObj, consts.line.ROOT); + } else { + var tmp_first_switchObj = $("#" + parentNode[childKey][0].tId + consts.id.SWITCH); + view.replaceSwitchClass(parentNode[childKey][0], tmp_first_switchObj, consts.line.ROOTS); + view.replaceSwitchClass(newLast, tmp_switchObj, consts.line.BOTTOM); + } + } else { + view.replaceSwitchClass(newLast, tmp_switchObj, consts.line.BOTTOM); + } + tmp_ulObj.removeClass(consts.line.LINE); + } + }, + replaceIcoClass: function(node, obj, newName) { + if (!obj || node.isAjaxing) return; + var tmpName = obj.attr("class"); + if (tmpName == undefined) return; + var tmpList = tmpName.split("_"); + switch (newName) { + case consts.folder.OPEN: + case consts.folder.CLOSE: + case consts.folder.DOCU: + tmpList[tmpList.length-1] = newName; + break; + } + obj.attr("class", tmpList.join("_")); + }, + replaceSwitchClass: function(node, obj, newName) { + if (!obj) return; + var tmpName = obj.attr("class"); + if (tmpName == undefined) return; + var tmpList = tmpName.split("_"); + switch (newName) { + case consts.line.ROOT: + case consts.line.ROOTS: + case consts.line.CENTER: + case consts.line.BOTTOM: + case consts.line.NOLINE: + tmpList[0] = view.makeNodeLineClassEx(node) + newName; + break; + case consts.folder.OPEN: + case consts.folder.CLOSE: + case consts.folder.DOCU: + tmpList[1] = newName; + break; + } + obj.attr("class", tmpList.join("_")); + if (newName !== consts.folder.DOCU) { + obj.removeAttr("disabled"); + } else { + obj.attr("disabled", "disabled"); + } + }, + selectNode: function(setting, node, addFlag) { + if (!addFlag) { + view.cancelPreSelectedNode(setting); + } + $("#" + node.tId + consts.id.A).addClass(consts.node.CURSELECTED); + data.addSelectedNode(setting, node); + }, + setNodeFontCss: function(setting, treeNode) { + var aObj = $("#" + treeNode.tId + consts.id.A), + fontCss = view.makeNodeFontCss(setting, treeNode); + if (fontCss) { + aObj.css(fontCss); + } + }, + setNodeLineIcos: function(setting, node) { + if (!node) return; + var switchObj = $("#" + node.tId + consts.id.SWITCH), + ulObj = $("#" + node.tId + consts.id.UL), + icoObj = $("#" + node.tId + consts.id.ICON), + ulLine = view.makeUlLineClass(setting, node); + if (ulLine.length==0) { + ulObj.removeClass(consts.line.LINE); + } else { + ulObj.addClass(ulLine); + } + switchObj.attr("class", view.makeNodeLineClass(setting, node)); + if (node.isParent) { + switchObj.removeAttr("disabled"); + } else { + switchObj.attr("disabled", "disabled"); + } + icoObj.removeAttr("style"); + icoObj.attr("style", view.makeNodeIcoStyle(setting, node)); + icoObj.attr("class", view.makeNodeIcoClass(setting, node)); + }, + setNodeName: function(setting, node) { + var title = data.getNodeTitle(setting, node), + nObj = $("#" + node.tId + consts.id.SPAN); + nObj.empty(); + if (setting.view.nameIsHTML) { + nObj.html(data.getNodeName(setting, node)); + } else { + nObj.text(data.getNodeName(setting, node)); + } + if (tools.apply(setting.view.showTitle, [setting.treeId, node], setting.view.showTitle)) { + var aObj = $("#" + node.tId + consts.id.A); + aObj.attr("title", !title ? "" : title); + } + }, + setNodeTarget: function(node) { + var aObj = $("#" + node.tId + consts.id.A); + aObj.attr("target", view.makeNodeTarget(node)); + }, + setNodeUrl: function(setting, node) { + var aObj = $("#" + node.tId + consts.id.A), + url = view.makeNodeUrl(setting, node); + if (url == null || url.length == 0) { + aObj.removeAttr("href"); + } else { + aObj.attr("href", url); + } + }, + switchNode: function(setting, node) { + if (node.open || !tools.canAsync(setting, node)) { + view.expandCollapseNode(setting, node, !node.open); + } else if (setting.async.enable) { + if (!view.asyncNode(setting, node)) { + view.expandCollapseNode(setting, node, !node.open); + return; + } + } else if (node) { + view.expandCollapseNode(setting, node, !node.open); + } + } + }; + // zTree defind + $.fn.zTree = { + consts : _consts, + _z : { + tools: tools, + view: view, + event: event, + data: data + }, + getZTreeObj: function(treeId) { + var o = data.getZTreeTools(treeId); + return o ? o : null; + }, + destroy: function(treeId) { + if (!!treeId && treeId.length > 0) { + view.destroy(data.getSetting(treeId)); + } else { + for(var s in settings) { + view.destroy(settings[s]); + } + } + }, + init: function(obj, zSetting, zNodes) { + var setting = tools.clone(_setting); + $.extend(true, setting, zSetting); + setting.treeId = obj.attr("id"); + setting.treeObj = obj; + setting.treeObj.empty(); + settings[setting.treeId] = setting; + if ($.browser.msie && parseInt($.browser.version)<7) { + setting.view.expandSpeed = ""; + } + + data.initRoot(setting); + var root = data.getRoot(setting), + childKey = setting.data.key.children; + zNodes = zNodes ? tools.clone(tools.isArray(zNodes)? zNodes : [zNodes]) : []; + if (setting.data.simpleData.enable) { + root[childKey] = data.transformTozTreeFormat(setting, zNodes); + } else { + root[childKey] = zNodes; + } + + data.initCache(setting); + event.unbindTree(setting); + event.bindTree(setting); + event.unbindEvent(setting); + event.bindEvent(setting); + + var zTreeTools = { + setting : setting, + addNodes : function(parentNode, newNodes, isSilent) { + if (!newNodes) return null; + if (!parentNode) parentNode = null; + if (parentNode && !parentNode.isParent && setting.data.keep.leaf) return null; + var xNewNodes = tools.clone(tools.isArray(newNodes)? newNodes: [newNodes]); + function addCallback() { + view.addNodes(setting, parentNode, xNewNodes, (isSilent==true)); + } + + if (tools.canAsync(setting, parentNode)) { + view.asyncNode(setting, parentNode, isSilent, addCallback); + } else { + addCallback(); + } + return xNewNodes; + }, + cancelSelectedNode : function(node) { + view.cancelPreSelectedNode(this.setting, node); + }, + destroy : function() { + view.destroy(this.setting); + }, + expandAll : function(expandFlag) { + expandFlag = !!expandFlag; + view.expandCollapseSonNode(this.setting, null, expandFlag, true); + return expandFlag; + }, + expandNode : function(node, expandFlag, sonSign, focus, callbackFlag) { + if (!node || !node.isParent) return null; + if (expandFlag !== true && expandFlag !== false) { + expandFlag = !node.open; + } + callbackFlag = !!callbackFlag; + + if (callbackFlag && expandFlag && (tools.apply(setting.callback.beforeExpand, [setting.treeId, node], true) == false)) { + return null; + } else if (callbackFlag && !expandFlag && (tools.apply(setting.callback.beforeCollapse, [setting.treeId, node], true) == false)) { + return null; + } + if (expandFlag && node.parentTId) { + view.expandCollapseParentNode(this.setting, node.getParentNode(), expandFlag, false); + } + if (expandFlag === node.open && !sonSign) { + return null; + } + + data.getRoot(setting).expandTriggerFlag = callbackFlag; + if (sonSign) { + view.expandCollapseSonNode(this.setting, node, expandFlag, true, function() { + if (focus !== false) {try{$("#" + node.tId).focus().blur();}catch(e){}} + }); + } else { + node.open = !expandFlag; + view.switchNode(this.setting, node); + if (focus !== false) {try{$("#" + node.tId).focus().blur();}catch(e){}} + } + return expandFlag; + }, + getNodes : function() { + return data.getNodes(this.setting); + }, + getNodeByParam : function(key, value, parentNode) { + if (!key) return null; + return data.getNodeByParam(this.setting, parentNode?parentNode[this.setting.data.key.children]:data.getNodes(this.setting), key, value); + }, + getNodeByTId : function(tId) { + return data.getNodeCache(this.setting, tId); + }, + getNodesByParam : function(key, value, parentNode) { + if (!key) return null; + return data.getNodesByParam(this.setting, parentNode?parentNode[this.setting.data.key.children]:data.getNodes(this.setting), key, value); + }, + getNodesByParamFuzzy : function(key, value, parentNode) { + if (!key) return null; + return data.getNodesByParamFuzzy(this.setting, parentNode?parentNode[this.setting.data.key.children]:data.getNodes(this.setting), key, value); + }, + getNodesByFilter: function(filter, isSingle, parentNode, invokeParam) { + isSingle = !!isSingle; + if (!filter || (typeof filter != "function")) return (isSingle ? null : []); + return data.getNodesByFilter(this.setting, parentNode?parentNode[this.setting.data.key.children]:data.getNodes(this.setting), filter, isSingle, invokeParam); + }, + getNodeIndex : function(node) { + if (!node) return null; + var childKey = setting.data.key.children, + parentNode = (node.parentTId) ? node.getParentNode() : data.getRoot(this.setting); + for (var i=0, l = parentNode[childKey].length; i < l; i++) { + if (parentNode[childKey][i] == node) return i; + } + return -1; + }, + getSelectedNodes : function() { + var r = [], list = data.getRoot(this.setting).curSelectedList; + for (var i=0, l=list.length; i 0) { + view.createNodes(setting, 0, root[childKey]); + } else if (setting.async.enable && setting.async.url && setting.async.url !== '') { + view.asyncNode(setting); + } + return zTreeTools; + } + }; + + var zt = $.fn.zTree, + consts = zt.consts; +})(jQuery); \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/js/jquery.ztree.core-3.5.min.js b/alive-admin/src/main/resources/static/ztree/js/jquery.ztree.core-3.5.min.js new file mode 100644 index 0000000..cd38985 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/js/jquery.ztree.core-3.5.min.js @@ -0,0 +1,70 @@ +/* + * JQuery zTree core 3.5 + * http://zTree.me/ + * + * Copyright (c) 2010 Hunter.z + * + * Licensed same as jquery - MIT License + * http://www.opensource.org/licenses/mit-license.php + * + * email: hunter.z@263.net + * Date: 2012-11-20 + */ +(function(k){var E,F,G,H,I,J,r={},K={},s={},L={treeId:"",treeObj:null,view:{addDiyDom:null,autoCancelSelected:!0,dblClickExpand:!0,expandSpeed:"fast",fontCss:{},nameIsHTML:!1,selectedMulti:!0,showIcon:!0,showLine:!0,showTitle:!0},data:{key:{children:"children",name:"name",title:"",url:"url"},simpleData:{enable:!1,idKey:"id",pIdKey:"pId",rootPId:null},keep:{parent:!1,leaf:!1}},async:{enable:!1,contentType:"application/x-www-form-urlencoded",type:"post",dataType:"text",url:"",autoParam:[],otherParam:[], +dataFilter:null},callback:{beforeAsync:null,beforeClick:null,beforeDblClick:null,beforeRightClick:null,beforeMouseDown:null,beforeMouseUp:null,beforeExpand:null,beforeCollapse:null,beforeRemove:null,onAsyncError:null,onAsyncSuccess:null,onNodeCreated:null,onClick:null,onDblClick:null,onRightClick:null,onMouseDown:null,onMouseUp:null,onExpand:null,onCollapse:null,onRemove:null}},t=[function(b){var a=b.treeObj,c=e.event;a.bind(c.NODECREATED,function(a,c,h){j.apply(b.callback.onNodeCreated,[a,c,h])}); +a.bind(c.CLICK,function(a,c,h,l,g){j.apply(b.callback.onClick,[c,h,l,g])});a.bind(c.EXPAND,function(a,c,h){j.apply(b.callback.onExpand,[a,c,h])});a.bind(c.COLLAPSE,function(a,c,h){j.apply(b.callback.onCollapse,[a,c,h])});a.bind(c.ASYNC_SUCCESS,function(a,c,h,l){j.apply(b.callback.onAsyncSuccess,[a,c,h,l])});a.bind(c.ASYNC_ERROR,function(a,c,h,l,g,e){j.apply(b.callback.onAsyncError,[a,c,h,l,g,e])})}],u=[function(b){var a=e.event;b.treeObj.unbind(a.NODECREATED).unbind(a.CLICK).unbind(a.EXPAND).unbind(a.COLLAPSE).unbind(a.ASYNC_SUCCESS).unbind(a.ASYNC_ERROR)}], +v=[function(b){var a=g.getCache(b);a||(a={},g.setCache(b,a));a.nodes=[];a.doms=[]}],w=[function(b,a,c,d,f,h){if(c){var l=g.getRoot(b),e=b.data.key.children;c.level=a;c.tId=b.treeId+"_"+ ++l.zId;c.parentTId=d?d.tId:null;if(c[e]&&c[e].length>0){if(typeof c.open=="string")c.open=j.eqs(c.open,"true");c.open=!!c.open;c.isParent=!0;c.zAsync=!0}else{c.open=!1;if(typeof c.isParent=="string")c.isParent=j.eqs(c.isParent,"true");c.isParent=!!c.isParent;c.zAsync=!c.isParent}c.isFirstNode=f;c.isLastNode=h;c.getParentNode= +function(){return g.getNodeCache(b,c.parentTId)};c.getPreNode=function(){return g.getPreNode(b,c)};c.getNextNode=function(){return g.getNextNode(b,c)};c.isAjaxing=!1;g.fixPIdKeyValue(b,c)}}],x=[function(b){var a=b.target,c=g.getSetting(b.data.treeId),d="",f=null,h="",l="",i=null,n=null,q=null;if(j.eqs(b.type,"mousedown"))l="mousedown";else if(j.eqs(b.type,"mouseup"))l="mouseup";else if(j.eqs(b.type,"contextmenu"))l="contextmenu";else if(j.eqs(b.type,"click"))if(j.eqs(a.tagName,"span")&&a.getAttribute("treeNode"+ +e.id.SWITCH)!==null)d=(k(a).parent("li").get(0)||k(a).parentsUntil("li").parent().get(0)).id,h="switchNode";else{if(q=j.getMDom(c,a,[{tagName:"a",attrName:"treeNode"+e.id.A}]))d=(k(q).parent("li").get(0)||k(q).parentsUntil("li").parent().get(0)).id,h="clickNode"}else if(j.eqs(b.type,"dblclick")&&(l="dblclick",q=j.getMDom(c,a,[{tagName:"a",attrName:"treeNode"+e.id.A}])))d=(k(q).parent("li").get(0)||k(q).parentsUntil("li").parent().get(0)).id,h="switchNode";if(l.length>0&&d.length==0&&(q=j.getMDom(c, +a,[{tagName:"a",attrName:"treeNode"+e.id.A}])))d=(k(q).parent("li").get(0)||k(q).parentsUntil("li").parent().get(0)).id;if(d.length>0)switch(f=g.getNodeCache(c,d),h){case "switchNode":f.isParent?j.eqs(b.type,"click")||j.eqs(b.type,"dblclick")&&j.apply(c.view.dblClickExpand,[c.treeId,f],c.view.dblClickExpand)?i=E:h="":h="";break;case "clickNode":i=F}switch(l){case "mousedown":n=G;break;case "mouseup":n=H;break;case "dblclick":n=I;break;case "contextmenu":n=J}return{stop:!1,node:f,nodeEventType:h,nodeEventCallback:i, +treeEventType:l,treeEventCallback:n}}],y=[function(b){var a=g.getRoot(b);a||(a={},g.setRoot(b,a));a[b.data.key.children]=[];a.expandTriggerFlag=!1;a.curSelectedList=[];a.noSelection=!0;a.createdNodes=[];a.zId=0;a._ver=(new Date).getTime()}],z=[],A=[],B=[],C=[],D=[],g={addNodeCache:function(b,a){g.getCache(b).nodes[g.getNodeCacheId(a.tId)]=a},getNodeCacheId:function(b){return b.substring(b.lastIndexOf("_")+1)},addAfterA:function(b){A.push(b)},addBeforeA:function(b){z.push(b)},addInnerAfterA:function(b){C.push(b)}, +addInnerBeforeA:function(b){B.push(b)},addInitBind:function(b){t.push(b)},addInitUnBind:function(b){u.push(b)},addInitCache:function(b){v.push(b)},addInitNode:function(b){w.push(b)},addInitProxy:function(b){x.push(b)},addInitRoot:function(b){y.push(b)},addNodesData:function(b,a,c){var d=b.data.key.children;a[d]||(a[d]=[]);if(a[d].length>0)a[d][a[d].length-1].isLastNode=!1,i.setNodeLineIcos(b,a[d][a[d].length-1]);a.isParent=!0;a[d]=a[d].concat(c)},addSelectedNode:function(b,a){var c=g.getRoot(b);g.isSelectedNode(b, +a)||c.curSelectedList.push(a)},addCreatedNode:function(b,a){(b.callback.onNodeCreated||b.view.addDiyDom)&&g.getRoot(b).createdNodes.push(a)},addZTreeTools:function(b){D.push(b)},exSetting:function(b){k.extend(!0,L,b)},fixPIdKeyValue:function(b,a){b.data.simpleData.enable&&(a[b.data.simpleData.pIdKey]=a.parentTId?a.getParentNode()[b.data.simpleData.idKey]:b.data.simpleData.rootPId)},getAfterA:function(b,a,c){for(var d=0,f=A.length;d-1&&h.push(a[l]),h=h.concat(g.getNodesByParamFuzzy(b,a[l][f],c,d));return h},getNodesByFilter:function(b,a,c,d,f){if(!a)return d?null:[];for(var h=b.data.key.children,l=d?null: +[],e=0,i=a.length;e0)},clone:function(b){if(b===null)return null;var a=b.constructor===Array?[]:{},c;for(c in b)b.hasOwnProperty(c)&&(a[c]=typeof b[c]==="object"?arguments.callee(b[c]):b[c]);return a},eqs:function(b,a){return b.toLowerCase()===a.toLowerCase()},isArray:function(b){return Object.prototype.toString.apply(b)=== +"[object Array]"},getMDom:function(b,a,c){if(!a)return null;for(;a&&a.id!==b.treeId;){for(var d=0,f=c.length;a.tagName&&d0&&(m=i.appendNodes(b,a+1,o[j],o,f,h&&o.open));h&&(i.makeDOMNodeMainBefore(e,b,o),i.makeDOMNodeLine(e,b,o),g.getBeforeA(b,o,e),i.makeDOMNodeNameBefore(e,b,o),g.getInnerBeforeA(b,o,e),i.makeDOMNodeIcon(e,b,o),g.getInnerAfterA(b,o,e),i.makeDOMNodeNameAfter(e,b,o),g.getAfterA(b,o,e),o.isParent&&o.open&&i.makeUlHtml(b,o,e,m.join("")), +i.makeDOMNodeMainAfter(e,b,o),g.addCreatedNode(b,o))}return e},appendParentULDom:function(b,a){var c=[],d=k("#"+a.tId),f=k("#"+a.tId+e.id.UL),h=i.appendNodes(b,a.level+1,a[b.data.key.children],a,!1,!0);i.makeUlHtml(b,a,c,h.join(""));!d.get(0)&&a.parentTId&&(i.appendParentULDom(b,a.getParentNode()),d=k("#"+a.tId));f.get(0)&&f.remove();d.append(c.join(""))},asyncNode:function(b,a,c,d){var f,h;if(a&&!a.isParent)return j.apply(d),!1;else if(a&&a.isAjaxing)return!1;else if(j.apply(b.callback.beforeAsync, +[b.treeId,a],!0)==!1)return j.apply(d),!1;if(a)a.isAjaxing=!0,k("#"+a.tId+e.id.ICON).attr({style:"","class":"button ico_loading"});var l=b.async.contentType=="application/json",p=l?"{":"",n="";for(f=0,h=b.async.autoParam.length;a&&f1&&(o=m[1],m=m[0]);l?(n=typeof a[m]=="string"?'"':"",p+='"'+o+('":'+n+a[m]).replace(/'/g,"\\'")+n+","):p+=o+("="+a[m]).replace(/&/g,"%26")+"&"}if(j.isArray(b.async.otherParam))for(f=0,h=b.async.otherParam.length;f< +h;f+=2)l?(n=typeof b.async.otherParam[f+1]=="string"?'"':"",p+='"'+b.async.otherParam[f]+('":'+n+b.async.otherParam[f+1]).replace(/'/g,"\\'")+n+","):p+=b.async.otherParam[f]+("="+b.async.otherParam[f+1]).replace(/&/g,"%26")+"&";else for(var r in b.async.otherParam)l?(n=typeof b.async.otherParam[r]=="string"?'"':"",p+='"'+r+('":'+n+b.async.otherParam[r]).replace(/'/g,"\\'")+n+","):p+=r+("="+b.async.otherParam[r]).replace(/&/g,"%26")+"&";p.length>1&&(p=p.substring(0,p.length-1));l&&(p+="}");var s=g.getRoot(b)._ver; +k.ajax({contentType:b.async.contentType,type:b.async.type,url:j.apply(b.async.url,[b.treeId,a],b.async.url),data:p,dataType:b.async.dataType,success:function(f){if(s==g.getRoot(b)._ver){var h=[];try{h=!f||f.length==0?[]:typeof f=="string"?eval("("+f+")"):f}catch(l){h=f}if(a)a.isAjaxing=null,a.zAsync=!0;i.setNodeLineIcos(b,a);h&&h!==""?(h=j.apply(b.async.dataFilter,[b.treeId,a,h],h),i.addNodes(b,a,h?j.clone(h):[],!!c)):i.addNodes(b,a,[],!!c);b.treeObj.trigger(e.event.ASYNC_SUCCESS,[b.treeId,a,f]); +j.apply(d)}},error:function(c,d,f){if(s==g.getRoot(b)._ver){if(a)a.isAjaxing=null;i.setNodeLineIcos(b,a);b.treeObj.trigger(e.event.ASYNC_ERROR,[b.treeId,a,c,d,f])}}});return!0},cancelPreSelectedNode:function(b,a){for(var c=g.getRoot(b).curSelectedList,d=c.length-1;d>=0;d--)if(!a||a===c[d])if(k("#"+c[d].tId+e.id.A).removeClass(e.node.CURSELECTED),a){g.removeSelectedNode(b,a);break}if(!a)g.getRoot(b).curSelectedList=[]},createNodeCallback:function(b){if(b.callback.onNodeCreated||b.view.addDiyDom)for(var a= +g.getRoot(b);a.createdNodes.length>0;){var c=a.createdNodes.shift();j.apply(b.view.addDiyDom,[b.treeId,c]);b.callback.onNodeCreated&&b.treeObj.trigger(e.event.NODECREATED,[b.treeId,c])}},createNodes:function(b,a,c,d){if(c&&c.length!=0){var f=g.getRoot(b),h=b.data.key.children,h=!d||d.open||!!k("#"+d[h][0].tId).get(0);f.createdNodes=[];a=i.appendNodes(b,a,c,d,!0,h);d?(d=k("#"+d.tId+e.id.UL),d.get(0)&&d.append(a.join(""))):b.treeObj.append(a.join(""));i.createNodeCallback(b)}},destroy:function(b){b&& +(g.initCache(b),g.initRoot(b),m.unbindTree(b),m.unbindEvent(b),b.treeObj.empty())},expandCollapseNode:function(b,a,c,d,f){var h=g.getRoot(b),l=b.data.key.children;if(a){if(h.expandTriggerFlag){var p=f,f=function(){p&&p();a.open?b.treeObj.trigger(e.event.EXPAND,[b.treeId,a]):b.treeObj.trigger(e.event.COLLAPSE,[b.treeId,a])};h.expandTriggerFlag=!1}if(!a.open&&a.isParent&&(!k("#"+a.tId+e.id.UL).get(0)||a[l]&&a[l].length>0&&!k("#"+a[l][0].tId).get(0)))i.appendParentULDom(b,a),i.createNodeCallback(b); +if(a.open==c)j.apply(f,[]);else{var c=k("#"+a.tId+e.id.UL),h=k("#"+a.tId+e.id.SWITCH),n=k("#"+a.tId+e.id.ICON);a.isParent?(a.open=!a.open,a.iconOpen&&a.iconClose&&n.attr("style",i.makeNodeIcoStyle(b,a)),a.open?(i.replaceSwitchClass(a,h,e.folder.OPEN),i.replaceIcoClass(a,n,e.folder.OPEN),d==!1||b.view.expandSpeed==""?(c.show(),j.apply(f,[])):a[l]&&a[l].length>0?c.slideDown(b.view.expandSpeed,f):(c.show(),j.apply(f,[]))):(i.replaceSwitchClass(a,h,e.folder.CLOSE),i.replaceIcoClass(a,n,e.folder.CLOSE), +d==!1||b.view.expandSpeed==""||!(a[l]&&a[l].length>0)?(c.hide(),j.apply(f,[])):c.slideUp(b.view.expandSpeed,f))):j.apply(f,[])}}else j.apply(f,[])},expandCollapseParentNode:function(b,a,c,d,f){a&&(a.parentTId?(i.expandCollapseNode(b,a,c,d),a.parentTId&&i.expandCollapseParentNode(b,a.getParentNode(),c,d,f)):i.expandCollapseNode(b,a,c,d,f))},expandCollapseSonNode:function(b,a,c,d,f){var h=g.getRoot(b),e=b.data.key.children,h=a?a[e]:h[e],e=a?!1:d,j=g.getRoot(b).expandTriggerFlag;g.getRoot(b).expandTriggerFlag= +!1;if(h)for(var k=0,m=h.length;k/g,">");b.push("",d,"")},makeDOMNodeLine:function(b, +a,c){b.push("")},makeDOMNodeMainAfter:function(b){b.push("
                                                                                                                                                                                                                                                                                                    • ")},makeDOMNodeMainBefore:function(b,a,c){b.push("
                                                                                                                                                                                                                                                                                                    • ")},makeDOMNodeNameAfter:function(b){b.push("")},makeDOMNodeNameBefore:function(b,a,c){var d=g.getNodeTitle(a,c),f=i.makeNodeUrl(a,c),h=i.makeNodeFontCss(a,c),l=[],k;for(k in h)l.push(k,":",h[k], +";");b.push("0?"href='"+f+"'":""," target='",i.makeNodeTarget(c),"' style='",l.join(""),"'");j.apply(a.view.showTitle,[a.treeId,c],a.view.showTitle)&&d&&b.push("title='",d.replace(/'/g,"'").replace(//g,">"),"'");b.push(">")},makeNodeFontCss:function(b,a){var c=j.apply(b.view.fontCss,[b.treeId,a],b.view.fontCss);return c&&typeof c!="function"?c:{}},makeNodeIcoClass:function(b, +a){var c=["ico"];a.isAjaxing||(c[0]=(a.iconSkin?a.iconSkin+"_":"")+c[0],a.isParent?c.push(a.open?e.folder.OPEN:e.folder.CLOSE):c.push(e.folder.DOCU));return"button "+c.join("_")},makeNodeIcoStyle:function(b,a){var c=[];if(!a.isAjaxing){var d=a.isParent&&a.iconOpen&&a.iconClose?a.open?a.iconOpen:a.iconClose:a.icon;d&&c.push("background:url(",d,") 0 0 no-repeat;");(b.view.showIcon==!1||!j.apply(b.view.showIcon,[b.treeId,a],!0))&&c.push("width:0px;height:0px;")}return c.join("")},makeNodeLineClass:function(b, +a){var c=[];b.view.showLine?a.level==0&&a.isFirstNode&&a.isLastNode?c.push(e.line.ROOT):a.level==0&&a.isFirstNode?c.push(e.line.ROOTS):a.isLastNode?c.push(e.line.BOTTOM):c.push(e.line.CENTER):c.push(e.line.NOLINE);a.isParent?c.push(a.open?e.folder.OPEN:e.folder.CLOSE):c.push(e.folder.DOCU);return i.makeNodeLineClassEx(a)+c.join("_")},makeNodeLineClassEx:function(b){return"button level"+b.level+" switch "},makeNodeTarget:function(b){return b.target||"_blank"},makeNodeUrl:function(b,a){var c=b.data.key.url; +return a[c]?a[c]:null},makeUlHtml:function(b,a,c,d){c.push("
                                                                                                                                                                                                                                                                                                        ");c.push(d);c.push("
                                                                                                                                                                                                                                                                                                      ")},makeUlLineClass:function(b,a){return b.view.showLine&&!a.isLastNode?e.line.LINE:""},removeChildNodes:function(b,a){if(a){var c=b.data.key.children,d=a[c];if(d){for(var f=0,h=d.length;f0)a[c][0].isFirstNode=!0},setLastNode:function(b,a){var c=b.data.key.children,d=a[c].length;if(d>0)a[c][d-1].isLastNode=!0},removeNode:function(b,a){var c=g.getRoot(b),d=b.data.key.children,f=a.parentTId?a.getParentNode():c;a.isFirstNode=!1;a.isLastNode= +!1;a.getPreNode=function(){return null};a.getNextNode=function(){return null};if(g.getNodeCache(b,a.tId)){k("#"+a.tId).remove();g.removeNodeCache(b,a);g.removeSelectedNode(b,a);for(var h=0,l=f[d].length;h0){var n=f[d][h-1],h=k("#"+n.tId+e.id.UL),l=k("#"+n.tId+e.id.SWITCH);j=k("#"+n.tId+e.id.ICON);f==c?f[d].length==1?i.replaceSwitchClass(n,l,e.line.ROOT):(c=k("#"+f[d][0].tId+e.id.SWITCH),i.replaceSwitchClass(f[d][0],c,e.line.ROOTS),i.replaceSwitchClass(n,l,e.line.BOTTOM)):i.replaceSwitchClass(n,l,e.line.BOTTOM);h.removeClass(e.line.LINE)}}},replaceIcoClass:function(b,a,c){if(a&&!b.isAjaxing&&(b=a.attr("class"),b!=void 0)){b=b.split("_"); +switch(c){case e.folder.OPEN:case e.folder.CLOSE:case e.folder.DOCU:b[b.length-1]=c}a.attr("class",b.join("_"))}},replaceSwitchClass:function(b,a,c){if(a){var d=a.attr("class");if(d!=void 0){d=d.split("_");switch(c){case e.line.ROOT:case e.line.ROOTS:case e.line.CENTER:case e.line.BOTTOM:case e.line.NOLINE:d[0]=i.makeNodeLineClassEx(b)+c;break;case e.folder.OPEN:case e.folder.CLOSE:case e.folder.DOCU:d[1]=c}a.attr("class",d.join("_"));c!==e.folder.DOCU?a.removeAttr("disabled"):a.attr("disabled","disabled")}}}, +selectNode:function(b,a,c){c||i.cancelPreSelectedNode(b);k("#"+a.tId+e.id.A).addClass(e.node.CURSELECTED);g.addSelectedNode(b,a)},setNodeFontCss:function(b,a){var c=k("#"+a.tId+e.id.A),d=i.makeNodeFontCss(b,a);d&&c.css(d)},setNodeLineIcos:function(b,a){if(a){var c=k("#"+a.tId+e.id.SWITCH),d=k("#"+a.tId+e.id.UL),f=k("#"+a.tId+e.id.ICON),h=i.makeUlLineClass(b,a);h.length==0?d.removeClass(e.line.LINE):d.addClass(h);c.attr("class",i.makeNodeLineClass(b,a));a.isParent?c.removeAttr("disabled"):c.attr("disabled", +"disabled");f.removeAttr("style");f.attr("style",i.makeNodeIcoStyle(b,a));f.attr("class",i.makeNodeIcoClass(b,a))}},setNodeName:function(b,a){var c=g.getNodeTitle(b,a),d=k("#"+a.tId+e.id.SPAN);d.empty();b.view.nameIsHTML?d.html(g.getNodeName(b,a)):d.text(g.getNodeName(b,a));j.apply(b.view.showTitle,[b.treeId,a],b.view.showTitle)&&k("#"+a.tId+e.id.A).attr("title",!c?"":c)},setNodeTarget:function(b){k("#"+b.tId+e.id.A).attr("target",i.makeNodeTarget(b))},setNodeUrl:function(b,a){var c=k("#"+a.tId+e.id.A), +d=i.makeNodeUrl(b,a);d==null||d.length==0?c.removeAttr("href"):c.attr("href",d)},switchNode:function(b,a){a.open||!j.canAsync(b,a)?i.expandCollapseNode(b,a,!a.open):b.async.enable?i.asyncNode(b,a)||i.expandCollapseNode(b,a,!a.open):a&&i.expandCollapseNode(b,a,!a.open)}};k.fn.zTree={consts:{event:{NODECREATED:"ztree_nodeCreated",CLICK:"ztree_click",EXPAND:"ztree_expand",COLLAPSE:"ztree_collapse",ASYNC_SUCCESS:"ztree_async_success",ASYNC_ERROR:"ztree_async_error"},id:{A:"_a",ICON:"_ico",SPAN:"_span", +SWITCH:"_switch",UL:"_ul"},line:{ROOT:"root",ROOTS:"roots",CENTER:"center",BOTTOM:"bottom",NOLINE:"noline",LINE:"line"},folder:{OPEN:"open",CLOSE:"close",DOCU:"docu"},node:{CURSELECTED:"curSelectedNode"}},_z:{tools:j,view:i,event:m,data:g},getZTreeObj:function(b){return(b=g.getZTreeTools(b))?b:null},destroy:function(b){if(b&&b.length>0)i.destroy(g.getSetting(b));else for(var a in r)i.destroy(r[a])},init:function(b,a,c){var d=j.clone(L);k.extend(!0,d,a);d.treeId=b.attr("id");d.treeObj=b;d.treeObj.empty(); +r[d.treeId]=d;if(k.browser.msie&&parseInt(k.browser.version)<7)d.view.expandSpeed="";g.initRoot(d);b=g.getRoot(d);a=d.data.key.children;c=c?j.clone(j.isArray(c)?c:[c]):[];b[a]=d.data.simpleData.enable?g.transformTozTreeFormat(d,c):c;g.initCache(d);m.unbindTree(d);m.bindTree(d);m.unbindEvent(d);m.bindEvent(d);c={setting:d,addNodes:function(a,b,c){function e(){i.addNodes(d,a,g,c==!0)}if(!b)return null;a||(a=null);if(a&&!a.isParent&&d.data.keep.leaf)return null;var g=j.clone(j.isArray(b)?b:[b]);j.canAsync(d, +a)?i.asyncNode(d,a,c,e):e();return g},cancelSelectedNode:function(a){i.cancelPreSelectedNode(this.setting,a)},destroy:function(){i.destroy(this.setting)},expandAll:function(a){a=!!a;i.expandCollapseSonNode(this.setting,null,a,!0);return a},expandNode:function(a,b,c,e,m){if(!a||!a.isParent)return null;b!==!0&&b!==!1&&(b=!a.open);if((m=!!m)&&b&&j.apply(d.callback.beforeExpand,[d.treeId,a],!0)==!1)return null;else if(m&&!b&&j.apply(d.callback.beforeCollapse,[d.treeId,a],!0)==!1)return null;b&&a.parentTId&& +i.expandCollapseParentNode(this.setting,a.getParentNode(),b,!1);if(b===a.open&&!c)return null;g.getRoot(d).expandTriggerFlag=m;if(c)i.expandCollapseSonNode(this.setting,a,b,!0,function(){if(e!==!1)try{k("#"+a.tId).focus().blur()}catch(b){}});else if(a.open=!b,i.switchNode(this.setting,a),e!==!1)try{k("#"+a.tId).focus().blur()}catch(q){}return b},getNodes:function(){return g.getNodes(this.setting)},getNodeByParam:function(a,b,c){return!a?null:g.getNodeByParam(this.setting,c?c[this.setting.data.key.children]: +g.getNodes(this.setting),a,b)},getNodeByTId:function(a){return g.getNodeCache(this.setting,a)},getNodesByParam:function(a,b,c){return!a?null:g.getNodesByParam(this.setting,c?c[this.setting.data.key.children]:g.getNodes(this.setting),a,b)},getNodesByParamFuzzy:function(a,b,c){return!a?null:g.getNodesByParamFuzzy(this.setting,c?c[this.setting.data.key.children]:g.getNodes(this.setting),a,b)},getNodesByFilter:function(a,b,c,d){b=!!b;return!a||typeof a!="function"?b?null:[]:g.getNodesByFilter(this.setting, +c?c[this.setting.data.key.children]:g.getNodes(this.setting),a,b,d)},getNodeIndex:function(a){if(!a)return null;for(var b=d.data.key.children,c=a.parentTId?a.getParentNode():g.getRoot(this.setting),e=0,i=c[b].length;e0?i.createNodes(d,0,b[a]):d.async.enable&&d.async.url&&d.async.url!==""&&i.asyncNode(d);return c}};var M=k.fn.zTree,e=M.consts})(jQuery); diff --git a/alive-admin/src/main/resources/static/ztree/js/jquery.ztree.excheck-3.5.js b/alive-admin/src/main/resources/static/ztree/js/jquery.ztree.excheck-3.5.js new file mode 100644 index 0000000..a47c6ad --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/js/jquery.ztree.excheck-3.5.js @@ -0,0 +1,621 @@ +/* + * JQuery zTree excheck 3.5 + * http://zTree.me/ + * + * Copyright (c) 2010 Hunter.z + * + * Licensed same as jquery - MIT License + * http://www.opensource.org/licenses/mit-license.php + * + * email: hunter.z@263.net + * Date: 2012-11-20 + */ +(function($){ + //default consts of excheck + var _consts = { + event: { + CHECK: "ztree_check" + }, + id: { + CHECK: "_check" + }, + checkbox: { + STYLE: "checkbox", + DEFAULT: "chk", + DISABLED: "disable", + FALSE: "false", + TRUE: "true", + FULL: "full", + PART: "part", + FOCUS: "focus" + }, + radio: { + STYLE: "radio", + TYPE_ALL: "all", + TYPE_LEVEL: "level" + } + }, + //default setting of excheck + _setting = { + check: { + enable: false, + autoCheckTrigger: false, + chkStyle: _consts.checkbox.STYLE, + nocheckInherit: false, + radioType: _consts.radio.TYPE_LEVEL, + chkboxType: { + "Y": "ps", + "N": "ps" + } + }, + data: { + key: { + checked: "checked" + } + }, + callback: { + beforeCheck:null, + onCheck:null + } + }, + //default root of excheck + _initRoot = function (setting) { + var r = data.getRoot(setting); + r.radioCheckedList = []; + }, + //default cache of excheck + _initCache = function(treeId) {}, + //default bind event of excheck + _bindEvent = function(setting) { + var o = setting.treeObj, + c = consts.event; + o.bind(c.CHECK, function (event, srcEvent, treeId, node) { + tools.apply(setting.callback.onCheck, [!!srcEvent?srcEvent : event, treeId, node]); + }); + }, + _unbindEvent = function(setting) { + var o = setting.treeObj, + c = consts.event; + o.unbind(c.CHECK); + }, + //default event proxy of excheck + _eventProxy = function(e) { + var target = e.target, + setting = data.getSetting(e.data.treeId), + tId = "", node = null, + nodeEventType = "", treeEventType = "", + nodeEventCallback = null, treeEventCallback = null; + + if (tools.eqs(e.type, "mouseover")) { + if (setting.check.enable && tools.eqs(target.tagName, "span") && target.getAttribute("treeNode"+ consts.id.CHECK) !== null) { + tId = target.parentNode.id; + nodeEventType = "mouseoverCheck"; + } + } else if (tools.eqs(e.type, "mouseout")) { + if (setting.check.enable && tools.eqs(target.tagName, "span") && target.getAttribute("treeNode"+ consts.id.CHECK) !== null) { + tId = target.parentNode.id; + nodeEventType = "mouseoutCheck"; + } + } else if (tools.eqs(e.type, "click")) { + if (setting.check.enable && tools.eqs(target.tagName, "span") && target.getAttribute("treeNode"+ consts.id.CHECK) !== null) { + tId = target.parentNode.id; + nodeEventType = "checkNode"; + } + } + if (tId.length>0) { + node = data.getNodeCache(setting, tId); + switch (nodeEventType) { + case "checkNode" : + nodeEventCallback = _handler.onCheckNode; + break; + case "mouseoverCheck" : + nodeEventCallback = _handler.onMouseoverCheck; + break; + case "mouseoutCheck" : + nodeEventCallback = _handler.onMouseoutCheck; + break; + } + } + var proxyResult = { + stop: false, + node: node, + nodeEventType: nodeEventType, + nodeEventCallback: nodeEventCallback, + treeEventType: treeEventType, + treeEventCallback: treeEventCallback + }; + return proxyResult + }, + //default init node of excheck + _initNode = function(setting, level, n, parentNode, isFirstNode, isLastNode, openFlag) { + if (!n) return; + var checkedKey = setting.data.key.checked; + if (typeof n[checkedKey] == "string") n[checkedKey] = tools.eqs(n[checkedKey], "true"); + n[checkedKey] = !!n[checkedKey]; + n.checkedOld = n[checkedKey]; + if (typeof n.nocheck == "string") n.nocheck = tools.eqs(n.nocheck, "true"); + n.nocheck = !!n.nocheck || (setting.check.nocheckInherit && parentNode && !!parentNode.nocheck); + if (typeof n.chkDisabled == "string") n.chkDisabled = tools.eqs(n.chkDisabled, "true"); + n.chkDisabled = !!n.chkDisabled || (parentNode && !!parentNode.chkDisabled); + if (typeof n.halfCheck == "string") n.halfCheck = tools.eqs(n.halfCheck, "true"); + n.halfCheck = !!n.halfCheck; + n.check_Child_State = -1; + n.check_Focus = false; + n.getCheckStatus = function() {return data.getCheckStatus(setting, n);}; + }, + //add dom for check + _beforeA = function(setting, node, html) { + var checkedKey = setting.data.key.checked; + if (setting.check.enable) { + data.makeChkFlag(setting, node); + if (setting.check.chkStyle == consts.radio.STYLE && setting.check.radioType == consts.radio.TYPE_ALL && node[checkedKey] ) { + var r = data.getRoot(setting); + r.radioCheckedList.push(node); + } + html.push(""); + } + }, + //update zTreeObj, add method of check + _zTreeTools = function(setting, zTreeTools) { + zTreeTools.checkNode = function(node, checked, checkTypeFlag, callbackFlag) { + var checkedKey = this.setting.data.key.checked; + if (node.chkDisabled === true) return; + if (checked !== true && checked !== false) { + checked = !node[checkedKey]; + } + callbackFlag = !!callbackFlag; + + if (node[checkedKey] === checked && !checkTypeFlag) { + return; + } else if (callbackFlag && tools.apply(this.setting.callback.beforeCheck, [this.setting.treeId, node], true) == false) { + return; + } + if (tools.uCanDo(this.setting) && this.setting.check.enable && node.nocheck !== true) { + node[checkedKey] = checked; + var checkObj = $("#" + node.tId + consts.id.CHECK); + if (checkTypeFlag || this.setting.check.chkStyle === consts.radio.STYLE) view.checkNodeRelation(this.setting, node); + view.setChkClass(this.setting, checkObj, node); + view.repairParentChkClassWithSelf(this.setting, node); + if (callbackFlag) { + setting.treeObj.trigger(consts.event.CHECK, [null, setting.treeId, node]); + } + } + } + + zTreeTools.checkAllNodes = function(checked) { + view.repairAllChk(this.setting, !!checked); + } + + zTreeTools.getCheckedNodes = function(checked) { + var childKey = this.setting.data.key.children; + checked = (checked !== false); + return data.getTreeCheckedNodes(this.setting, data.getRoot(setting)[childKey], checked); + } + + zTreeTools.getChangeCheckedNodes = function() { + var childKey = this.setting.data.key.children; + return data.getTreeChangeCheckedNodes(this.setting, data.getRoot(setting)[childKey]); + } + + zTreeTools.setChkDisabled = function(node, disabled) { + disabled = !!disabled; + view.repairSonChkDisabled(this.setting, node, disabled); + if (!disabled) view.repairParentChkDisabled(this.setting, node, disabled); + } + + var _updateNode = zTreeTools.updateNode; + zTreeTools.updateNode = function(node, checkTypeFlag) { + if (_updateNode) _updateNode.apply(zTreeTools, arguments); + if (!node || !this.setting.check.enable) return; + var nObj = $("#" + node.tId); + if (nObj.get(0) && tools.uCanDo(this.setting)) { + var checkObj = $("#" + node.tId + consts.id.CHECK); + if (checkTypeFlag == true || this.setting.check.chkStyle === consts.radio.STYLE) view.checkNodeRelation(this.setting, node); + view.setChkClass(this.setting, checkObj, node); + view.repairParentChkClassWithSelf(this.setting, node); + } + } + }, + //method of operate data + _data = { + getRadioCheckedList: function(setting) { + var checkedList = data.getRoot(setting).radioCheckedList; + for (var i=0, j=checkedList.length; i -1 && node.check_Child_State < 2) : (node.check_Child_State > 0))) + }; + return r; + }, + getTreeCheckedNodes: function(setting, nodes, checked, results) { + if (!nodes) return []; + var childKey = setting.data.key.children, + checkedKey = setting.data.key.checked, + onlyOne = (checked && setting.check.chkStyle == consts.radio.STYLE && setting.check.radioType == consts.radio.TYPE_ALL); + results = !results ? [] : results; + for (var i = 0, l = nodes.length; i < l; i++) { + if (nodes[i].nocheck !== true && nodes[i][checkedKey] == checked) { + results.push(nodes[i]); + if(onlyOne) { + break; + } + } + data.getTreeCheckedNodes(setting, nodes[i][childKey], checked, results); + if(onlyOne && results.length > 0) { + break; + } + } + return results; + }, + getTreeChangeCheckedNodes: function(setting, nodes, results) { + if (!nodes) return []; + var childKey = setting.data.key.children, + checkedKey = setting.data.key.checked; + results = !results ? [] : results; + for (var i = 0, l = nodes.length; i < l; i++) { + if (nodes[i].nocheck !== true && nodes[i][checkedKey] != nodes[i].checkedOld) { + results.push(nodes[i]); + } + data.getTreeChangeCheckedNodes(setting, nodes[i][childKey], results); + } + return results; + }, + makeChkFlag: function(setting, node) { + if (!node) return; + var childKey = setting.data.key.children, + checkedKey = setting.data.key.checked, + chkFlag = -1; + if (node[childKey]) { + var start = false; + for (var i = 0, l = node[childKey].length; i < l; i++) { + var cNode = node[childKey][i]; + var tmp = -1; + if (setting.check.chkStyle == consts.radio.STYLE) { + if (cNode.nocheck === true) { + tmp = cNode.check_Child_State; + } else if (cNode.halfCheck === true) { + tmp = 2; + } else if (cNode.nocheck !== true && cNode[checkedKey]) { + tmp = 2; + } else { + tmp = cNode.check_Child_State > 0 ? 2:0; + } + if (tmp == 2) { + chkFlag = 2; break; + } else if (tmp == 0){ + chkFlag = 0; + } + } else if (setting.check.chkStyle == consts.checkbox.STYLE) { + if (cNode.nocheck === true) { + tmp = cNode.check_Child_State; + } else if (cNode.halfCheck === true) { + tmp = 1; + } else if (cNode.nocheck !== true && cNode[checkedKey] ) { + tmp = (cNode.check_Child_State === -1 || cNode.check_Child_State === 2) ? 2 : 1; + } else { + tmp = (cNode.check_Child_State > 0) ? 1 : 0; + } + if (tmp === 1) { + chkFlag = 1; break; + } else if (tmp === 2 && start && tmp !== chkFlag) { + chkFlag = 1; break; + } else if (chkFlag === 2 && tmp > -1 && tmp < 2) { + chkFlag = 1; break; + } else if (tmp > -1) { + chkFlag = tmp; + } + if (!start) start = (cNode.nocheck !== true); + } + } + } + node.check_Child_State = chkFlag; + } + }, + //method of event proxy + _event = { + + }, + //method of event handler + _handler = { + onCheckNode: function (event, node) { + if (node.chkDisabled === true) return false; + var setting = data.getSetting(event.data.treeId), + checkedKey = setting.data.key.checked; + if (tools.apply(setting.callback.beforeCheck, [setting.treeId, node], true) == false) return true; + node[checkedKey] = !node[checkedKey]; + view.checkNodeRelation(setting, node); + var checkObj = $("#" + node.tId + consts.id.CHECK); + view.setChkClass(setting, checkObj, node); + view.repairParentChkClassWithSelf(setting, node); + setting.treeObj.trigger(consts.event.CHECK, [event, setting.treeId, node]); + return true; + }, + onMouseoverCheck: function(event, node) { + if (node.chkDisabled === true) return false; + var setting = data.getSetting(event.data.treeId), + checkObj = $("#" + node.tId + consts.id.CHECK); + node.check_Focus = true; + view.setChkClass(setting, checkObj, node); + return true; + }, + onMouseoutCheck: function(event, node) { + if (node.chkDisabled === true) return false; + var setting = data.getSetting(event.data.treeId), + checkObj = $("#" + node.tId + consts.id.CHECK); + node.check_Focus = false; + view.setChkClass(setting, checkObj, node); + return true; + } + }, + //method of tools for zTree + _tools = { + + }, + //method of operate ztree dom + _view = { + checkNodeRelation: function(setting, node) { + var pNode, i, l, + childKey = setting.data.key.children, + checkedKey = setting.data.key.checked, + r = consts.radio; + if (setting.check.chkStyle == r.STYLE) { + var checkedList = data.getRadioCheckedList(setting); + if (node[checkedKey]) { + if (setting.check.radioType == r.TYPE_ALL) { + for (i = checkedList.length-1; i >= 0; i--) { + pNode = checkedList[i]; + pNode[checkedKey] = false; + checkedList.splice(i, 1); + + view.setChkClass(setting, $("#" + pNode.tId + consts.id.CHECK), pNode); + if (pNode.parentTId != node.parentTId) { + view.repairParentChkClassWithSelf(setting, pNode); + } + } + checkedList.push(node); + } else { + var parentNode = (node.parentTId) ? node.getParentNode() : data.getRoot(setting); + for (i = 0, l = parentNode[childKey].length; i < l; i++) { + pNode = parentNode[childKey][i]; + if (pNode[checkedKey] && pNode != node) { + pNode[checkedKey] = false; + view.setChkClass(setting, $("#" + pNode.tId + consts.id.CHECK), pNode); + } + } + } + } else if (setting.check.radioType == r.TYPE_ALL) { + for (i = 0, l = checkedList.length; i < l; i++) { + if (node == checkedList[i]) { + checkedList.splice(i, 1); + break; + } + } + } + + } else { + if (node[checkedKey] && (!node[childKey] || node[childKey].length==0 || setting.check.chkboxType.Y.indexOf("s") > -1)) { + view.setSonNodeCheckBox(setting, node, true); + } + if (!node[checkedKey] && (!node[childKey] || node[childKey].length==0 || setting.check.chkboxType.N.indexOf("s") > -1)) { + view.setSonNodeCheckBox(setting, node, false); + } + if (node[checkedKey] && setting.check.chkboxType.Y.indexOf("p") > -1) { + view.setParentNodeCheckBox(setting, node, true); + } + if (!node[checkedKey] && setting.check.chkboxType.N.indexOf("p") > -1) { + view.setParentNodeCheckBox(setting, node, false); + } + } + }, + makeChkClass: function(setting, node) { + var checkedKey = setting.data.key.checked, + c = consts.checkbox, r = consts.radio, + fullStyle = ""; + if (node.chkDisabled === true) { + fullStyle = c.DISABLED; + } else if (node.halfCheck) { + fullStyle = c.PART; + } else if (setting.check.chkStyle == r.STYLE) { + fullStyle = (node.check_Child_State < 1)? c.FULL:c.PART; + } else { + fullStyle = node[checkedKey] ? ((node.check_Child_State === 2 || node.check_Child_State === -1) ? c.FULL:c.PART) : ((node.check_Child_State < 1)? c.FULL:c.PART); + } + var chkName = setting.check.chkStyle + "_" + (node[checkedKey] ? c.TRUE : c.FALSE) + "_" + fullStyle; + chkName = (node.check_Focus && node.chkDisabled !== true) ? chkName + "_" + c.FOCUS : chkName; + return "button " + c.DEFAULT + " " + chkName; + }, + repairAllChk: function(setting, checked) { + if (setting.check.enable && setting.check.chkStyle === consts.checkbox.STYLE) { + var checkedKey = setting.data.key.checked, + childKey = setting.data.key.children, + root = data.getRoot(setting); + for (var i = 0, l = root[childKey].length; i 0) { + view.repairParentChkClass(setting, node[childKey][0]); + } else { + view.repairParentChkClass(setting, node); + } + }, + repairSonChkDisabled: function(setting, node, chkDisabled) { + if (!node) return; + var childKey = setting.data.key.children; + if (node.chkDisabled != chkDisabled) { + node.chkDisabled = chkDisabled; + if (node.nocheck !== true) view.repairChkClass(setting, node); + } + if (node[childKey]) { + for (var i = 0, l = node[childKey].length; i < l; i++) { + var sNode = node[childKey][i]; + view.repairSonChkDisabled(setting, sNode, chkDisabled); + } + } + }, + repairParentChkDisabled: function(setting, node, chkDisabled) { + if (!node) return; + if (node.chkDisabled != chkDisabled) { + node.chkDisabled = chkDisabled; + if (node.nocheck !== true) view.repairChkClass(setting, node); + } + view.repairParentChkDisabled(setting, node.getParentNode(), chkDisabled); + }, + setChkClass: function(setting, obj, node) { + if (!obj) return; + if (node.nocheck === true) { + obj.hide(); + } else { + obj.show(); + } + obj.removeClass(); + obj.addClass(view.makeChkClass(setting, node)); + }, + setParentNodeCheckBox: function(setting, node, value, srcNode) { + var childKey = setting.data.key.children, + checkedKey = setting.data.key.checked, + checkObj = $("#" + node.tId + consts.id.CHECK); + if (!srcNode) srcNode = node; + data.makeChkFlag(setting, node); + if (node.nocheck !== true && node.chkDisabled !== true) { + node[checkedKey] = value; + view.setChkClass(setting, checkObj, node); + if (setting.check.autoCheckTrigger && node != srcNode && node.nocheck !== true) { + setting.treeObj.trigger(consts.event.CHECK, [setting.treeId, node]); + } + } + if (node.parentTId) { + var pSign = true; + if (!value) { + var pNodes = node.getParentNode()[childKey]; + for (var i = 0, l = pNodes.length; i < l; i++) { + if ((pNodes[i].nocheck !== true && pNodes[i][checkedKey]) + || (pNodes[i].nocheck === true && pNodes[i].check_Child_State > 0)) { + pSign = false; + break; + } + } + } + if (pSign) { + view.setParentNodeCheckBox(setting, node.getParentNode(), value, srcNode); + } + } + }, + setSonNodeCheckBox: function(setting, node, value, srcNode) { + if (!node) return; + var childKey = setting.data.key.children, + checkedKey = setting.data.key.checked, + checkObj = $("#" + node.tId + consts.id.CHECK); + if (!srcNode) srcNode = node; + + var hasDisable = false; + if (node[childKey]) { + for (var i = 0, l = node[childKey].length; i < l && node.chkDisabled !== true; i++) { + var sNode = node[childKey][i]; + view.setSonNodeCheckBox(setting, sNode, value, srcNode); + if (sNode.chkDisabled === true) hasDisable = true; + } + } + + if (node != data.getRoot(setting) && node.chkDisabled !== true) { + if (hasDisable && node.nocheck !== true) { + data.makeChkFlag(setting, node); + } + if (node.nocheck !== true) { + node[checkedKey] = value; + if (!hasDisable) node.check_Child_State = (node[childKey] && node[childKey].length > 0) ? (value ? 2 : 0) : -1; + } else { + node.check_Child_State = -1; + } + view.setChkClass(setting, checkObj, node); + if (setting.check.autoCheckTrigger && node != srcNode && node.nocheck !== true) { + setting.treeObj.trigger(consts.event.CHECK, [setting.treeId, node]); + } + } + + } + }, + + _z = { + tools: _tools, + view: _view, + event: _event, + data: _data + }; + $.extend(true, $.fn.zTree.consts, _consts); + $.extend(true, $.fn.zTree._z, _z); + + var zt = $.fn.zTree, + tools = zt._z.tools, + consts = zt.consts, + view = zt._z.view, + data = zt._z.data, + event = zt._z.event; + + data.exSetting(_setting); + data.addInitBind(_bindEvent); + data.addInitUnBind(_unbindEvent); + data.addInitCache(_initCache); + data.addInitNode(_initNode); + data.addInitProxy(_eventProxy); + data.addInitRoot(_initRoot); + data.addBeforeA(_beforeA); + data.addZTreeTools(_zTreeTools); + + var _createNodes = view.createNodes; + view.createNodes = function(setting, level, nodes, parentNode) { + if (_createNodes) _createNodes.apply(view, arguments); + if (!nodes) return; + view.repairParentChkClassWithSelf(setting, parentNode); + } + var _removeNode = view.removeNode; + view.removeNode = function(setting, node) { + var parentNode = node.getParentNode(); + if (_removeNode) _removeNode.apply(view, arguments); + if (!node || !parentNode) return; + view.repairChkClass(setting, parentNode); + view.repairParentChkClass(setting, parentNode); + } + + var _appendNodes = view.appendNodes; + view.appendNodes = function(setting, level, nodes, parentNode, initFlag, openFlag) { + var html = ""; + if (_appendNodes) { + html = _appendNodes.apply(view, arguments); + } + if (parentNode) { + data.makeChkFlag(setting, parentNode); + } + return html; + } +})(jQuery); \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/js/jquery.ztree.excheck-3.5.min.js b/alive-admin/src/main/resources/static/ztree/js/jquery.ztree.excheck-3.5.min.js new file mode 100644 index 0000000..ab9eccf --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/js/jquery.ztree.excheck-3.5.min.js @@ -0,0 +1,33 @@ +/* + * JQuery zTree excheck 3.5 + * http://zTree.me/ + * + * Copyright (c) 2010 Hunter.z + * + * Licensed same as jquery - MIT License + * http://www.opensource.org/licenses/mit-license.php + * + * email: hunter.z@263.net + * Date: 2012-11-20 + */ +(function(m){var p,q,r,n={event:{CHECK:"ztree_check"},id:{CHECK:"_check"},checkbox:{STYLE:"checkbox",DEFAULT:"chk",DISABLED:"disable",FALSE:"false",TRUE:"true",FULL:"full",PART:"part",FOCUS:"focus"},radio:{STYLE:"radio",TYPE_ALL:"all",TYPE_LEVEL:"level"}},v={check:{enable:!1,autoCheckTrigger:!1,chkStyle:n.checkbox.STYLE,nocheckInherit:!1,radioType:n.radio.TYPE_LEVEL,chkboxType:{Y:"ps",N:"ps"}},data:{key:{checked:"checked"}},callback:{beforeCheck:null,onCheck:null}};p=function(c,a){if(a.chkDisabled=== +!0)return!1;var b=f.getSetting(c.data.treeId),d=b.data.key.checked;if(k.apply(b.callback.beforeCheck,[b.treeId,a],!0)==!1)return!0;a[d]=!a[d];e.checkNodeRelation(b,a);d=m("#"+a.tId+j.id.CHECK);e.setChkClass(b,d,a);e.repairParentChkClassWithSelf(b,a);b.treeObj.trigger(j.event.CHECK,[c,b.treeId,a]);return!0};q=function(c,a){if(a.chkDisabled===!0)return!1;var b=f.getSetting(c.data.treeId),d=m("#"+a.tId+j.id.CHECK);a.check_Focus=!0;e.setChkClass(b,d,a);return!0};r=function(c,a){if(a.chkDisabled===!0)return!1; +var b=f.getSetting(c.data.treeId),d=m("#"+a.tId+j.id.CHECK);a.check_Focus=!1;e.setChkClass(b,d,a);return!0};m.extend(!0,m.fn.zTree.consts,n);m.extend(!0,m.fn.zTree._z,{tools:{},view:{checkNodeRelation:function(c,a){var b,d,g,l=c.data.key.children,h=c.data.key.checked;b=j.radio;if(c.check.chkStyle==b.STYLE){var i=f.getRadioCheckedList(c);if(a[h])if(c.check.radioType==b.TYPE_ALL){for(d=i.length-1;d>=0;d--)b=i[d],b[h]=!1,i.splice(d,1),e.setChkClass(c,m("#"+b.tId+j.id.CHECK),b),b.parentTId!=a.parentTId&& +e.repairParentChkClassWithSelf(c,b);i.push(a)}else{i=a.parentTId?a.getParentNode():f.getRoot(c);for(d=0,g=i[l].length;d-1)&&e.setSonNodeCheckBox(c,a,!0),!a[h]&&(!a[l]||a[l].length==0||c.check.chkboxType.N.indexOf("s")>-1)&&e.setSonNodeCheckBox(c,a,!1), +a[h]&&c.check.chkboxType.Y.indexOf("p")>-1&&e.setParentNodeCheckBox(c,a,!0),!a[h]&&c.check.chkboxType.N.indexOf("p")>-1&&e.setParentNodeCheckBox(c,a,!1)},makeChkClass:function(c,a){var b=c.data.key.checked,d=j.checkbox,g=j.radio,e="",e=a.chkDisabled===!0?d.DISABLED:a.halfCheck?d.PART:c.check.chkStyle==g.STYLE?a.check_Child_State<1?d.FULL:d.PART:a[b]?a.check_Child_State===2||a.check_Child_State===-1?d.FULL:d.PART:a.check_Child_State<1?d.FULL:d.PART,b=c.check.chkStyle+"_"+(a[b]?d.TRUE:d.FALSE)+"_"+ +e,b=a.check_Focus&&a.chkDisabled!==!0?b+"_"+d.FOCUS:b;return"button "+d.DEFAULT+" "+b},repairAllChk:function(c,a){if(c.check.enable&&c.check.chkStyle===j.checkbox.STYLE)for(var b=c.data.key.checked,d=c.data.key.children,g=f.getRoot(c),l=0,h=g[d].length;l0?e.repairParentChkClass(c,a[b][0]):e.repairParentChkClass(c,a)}},repairSonChkDisabled:function(c,a,b){if(a){var d=c.data.key.children;if(a.chkDisabled!=b)a.chkDisabled=b,a.nocheck!==!0&&e.repairChkClass(c,a);if(a[d])for(var g=0,l=a[d].length;g0){h=!1;break}h&&e.setParentNodeCheckBox(c,a.getParentNode(),b,d)}},setSonNodeCheckBox:function(c,a,b,d){if(a){var g=c.data.key.children,l=c.data.key.checked,h=m("#"+a.tId+j.id.CHECK);d||(d=a);var i=!1;if(a[g])for(var o=0,k=a[g].length;o0?b?2:0:-1}else a.check_Child_State=-1;e.setChkClass(c,h,a);c.check.autoCheckTrigger&&a!=d&&a.nocheck!==!0&&c.treeObj.trigger(j.event.CHECK,[c.treeId,a])}}}},event:{},data:{getRadioCheckedList:function(c){for(var a=f.getRoot(c).radioCheckedList,b=0,d=a.length;b-1&&a.check_Child_State<2:a.check_Child_State>0}},getTreeCheckedNodes:function(c,a,b,d){if(!a)return[];for(var g=c.data.key.children,e=c.data.key.checked,h=b&&c.check.chkStyle==j.radio.STYLE&&c.check.radioType==j.radio.TYPE_ALL,d=!d?[]:d,i=0,o=a.length;i0)break}return d},getTreeChangeCheckedNodes:function(c,a,b){if(!a)return[];for(var d=c.data.key.children,g=c.data.key.checked,b=!b?[]:b,e=0,h=a.length;e0?2:0,k==2){g=2;break}else k==0&&(g=0);else if(c.check.chkStyle==j.checkbox.STYLE){k=f.nocheck===!0?f.check_Child_State:f.halfCheck===!0?1:f.nocheck!==!0&&f[d]?f.check_Child_State===-1||f.check_Child_State===2?2:1:f.check_Child_State>0?1:0;if(k===1){g=1;break}else if(k===2&&e&&k!==g){g=1;break}else if(g===2&&k>-1&&k<2){g=1;break}else k>-1&&(g=k);e||(e=f.nocheck!==!0)}}a.check_Child_State=g}}}});var n=m.fn.zTree,k=n._z.tools, +j=n.consts,e=n._z.view,f=n._z.data;f.exSetting(v);f.addInitBind(function(c){c.treeObj.bind(j.event.CHECK,function(a,b,d,e){k.apply(c.callback.onCheck,[b?b:a,d,e])})});f.addInitUnBind(function(c){c.treeObj.unbind(j.event.CHECK)});f.addInitCache(function(){});f.addInitNode(function(c,a,b,d){if(b){a=c.data.key.checked;typeof b[a]=="string"&&(b[a]=k.eqs(b[a],"true"));b[a]=!!b[a];b.checkedOld=b[a];if(typeof b.nocheck=="string")b.nocheck=k.eqs(b.nocheck,"true");b.nocheck=!!b.nocheck||c.check.nocheckInherit&& +d&&!!d.nocheck;if(typeof b.chkDisabled=="string")b.chkDisabled=k.eqs(b.chkDisabled,"true");b.chkDisabled=!!b.chkDisabled||d&&!!d.chkDisabled;if(typeof b.halfCheck=="string")b.halfCheck=k.eqs(b.halfCheck,"true");b.halfCheck=!!b.halfCheck;b.check_Child_State=-1;b.check_Focus=!1;b.getCheckStatus=function(){return f.getCheckStatus(c,b)}}});f.addInitProxy(function(c){var a=c.target,b=f.getSetting(c.data.treeId),d="",e=null,l="",h=null;if(k.eqs(c.type,"mouseover")){if(b.check.enable&&k.eqs(a.tagName,"span")&& +a.getAttribute("treeNode"+j.id.CHECK)!==null)d=a.parentNode.id,l="mouseoverCheck"}else if(k.eqs(c.type,"mouseout")){if(b.check.enable&&k.eqs(a.tagName,"span")&&a.getAttribute("treeNode"+j.id.CHECK)!==null)d=a.parentNode.id,l="mouseoutCheck"}else if(k.eqs(c.type,"click")&&b.check.enable&&k.eqs(a.tagName,"span")&&a.getAttribute("treeNode"+j.id.CHECK)!==null)d=a.parentNode.id,l="checkNode";if(d.length>0)switch(e=f.getNodeCache(b,d),l){case "checkNode":h=p;break;case "mouseoverCheck":h=q;break;case "mouseoutCheck":h= +r}return{stop:!1,node:e,nodeEventType:l,nodeEventCallback:h,treeEventType:"",treeEventCallback:null}});f.addInitRoot(function(c){f.getRoot(c).radioCheckedList=[]});f.addBeforeA(function(c,a,b){var d=c.data.key.checked;c.check.enable&&(f.makeChkFlag(c,a),c.check.chkStyle==j.radio.STYLE&&c.check.radioType==j.radio.TYPE_ALL&&a[d]&&f.getRoot(c).radioCheckedList.push(a),b.push(""))});f.addZTreeTools(function(c,a){a.checkNode=function(a,b,f,h){var i=this.setting.data.key.checked;if(a.chkDisabled!==!0&&(b!==!0&&b!==!1&&(b=!a[i]),h=!!h,(a[i]!==b||f)&&!(h&&k.apply(this.setting.callback.beforeCheck,[this.setting.treeId,a],!0)==!1)&&k.uCanDo(this.setting)&&this.setting.check.enable&&a.nocheck!==!0))a[i]=b,b=m("#"+a.tId+j.id.CHECK),(f||this.setting.check.chkStyle===j.radio.STYLE)&&e.checkNodeRelation(this.setting,a),e.setChkClass(this.setting,b,a),e.repairParentChkClassWithSelf(this.setting, +a),h&&c.treeObj.trigger(j.event.CHECK,[null,c.treeId,a])};a.checkAllNodes=function(a){e.repairAllChk(this.setting,!!a)};a.getCheckedNodes=function(a){var b=this.setting.data.key.children;return f.getTreeCheckedNodes(this.setting,f.getRoot(c)[b],a!==!1)};a.getChangeCheckedNodes=function(){var a=this.setting.data.key.children;return f.getTreeChangeCheckedNodes(this.setting,f.getRoot(c)[a])};a.setChkDisabled=function(a,b){b=!!b;e.repairSonChkDisabled(this.setting,a,b);b||e.repairParentChkDisabled(this.setting, +a,b)};var b=a.updateNode;a.updateNode=function(c,f){b&&b.apply(a,arguments);if(c&&this.setting.check.enable&&m("#"+c.tId).get(0)&&k.uCanDo(this.setting)){var l=m("#"+c.tId+j.id.CHECK);(f==!0||this.setting.check.chkStyle===j.radio.STYLE)&&e.checkNodeRelation(this.setting,c);e.setChkClass(this.setting,l,c);e.repairParentChkClassWithSelf(this.setting,c)}}});var s=e.createNodes;e.createNodes=function(c,a,b,d){s&&s.apply(e,arguments);b&&e.repairParentChkClassWithSelf(c,d)};var t=e.removeNode;e.removeNode= +function(c,a){var b=a.getParentNode();t&&t.apply(e,arguments);a&&b&&(e.repairChkClass(c,b),e.repairParentChkClass(c,b))};var u=e.appendNodes;e.appendNodes=function(c,a,b,d,g,j){var h="";u&&(h=u.apply(e,arguments));d&&f.makeChkFlag(c,d);return h}})(jQuery); diff --git a/alive-admin/src/main/resources/static/ztree/js/jquery.ztree.exedit-3.5.js b/alive-admin/src/main/resources/static/ztree/js/jquery.ztree.exedit-3.5.js new file mode 100644 index 0000000..33ea509 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/js/jquery.ztree.exedit-3.5.js @@ -0,0 +1,1179 @@ +/* + * JQuery zTree exedit 3.5 + * http://zTree.me/ + * + * Copyright (c) 2010 Hunter.z + * + * Licensed same as jquery - MIT License + * http://www.opensource.org/licenses/mit-license.php + * + * email: hunter.z@263.net + * Date: 2012-11-20 + */ +(function($){ + //default consts of exedit + var _consts = { + event: { + DRAG: "ztree_drag", + DROP: "ztree_drop", + REMOVE: "ztree_remove", + RENAME: "ztree_rename" + }, + id: { + EDIT: "_edit", + INPUT: "_input", + REMOVE: "_remove" + }, + move: { + TYPE_INNER: "inner", + TYPE_PREV: "prev", + TYPE_NEXT: "next" + }, + node: { + CURSELECTED_EDIT: "curSelectedNode_Edit", + TMPTARGET_TREE: "tmpTargetzTree", + TMPTARGET_NODE: "tmpTargetNode" + } + }, + //default setting of exedit + _setting = { + edit: { + enable: false, + editNameSelectAll: false, + showRemoveBtn: true, + showRenameBtn: true, + removeTitle: "remove", + renameTitle: "rename", + drag: { + autoExpandTrigger: false, + isCopy: true, + isMove: true, + prev: true, + next: true, + inner: true, + minMoveSize: 5, + borderMax: 10, + borderMin: -5, + maxShowNodeNum: 5, + autoOpenTime: 500 + } + }, + view: { + addHoverDom: null, + removeHoverDom: null + }, + callback: { + beforeDrag:null, + beforeDragOpen:null, + beforeDrop:null, + beforeEditName:null, + beforeRename:null, + onDrag:null, + onDrop:null, + onRename:null + } + }, + //default root of exedit + _initRoot = function (setting) { + var r = data.getRoot(setting); + r.curEditNode = null; + r.curEditInput = null; + r.curHoverNode = null; + r.dragFlag = 0; + r.dragNodeShowBefore = []; + r.dragMaskList = new Array(); + r.showHoverDom = true; + }, + //default cache of exedit + _initCache = function(treeId) {}, + //default bind event of exedit + _bindEvent = function(setting) { + var o = setting.treeObj; + var c = consts.event; + o.bind(c.RENAME, function (event, treeId, treeNode) { + tools.apply(setting.callback.onRename, [event, treeId, treeNode]); + }); + + o.bind(c.REMOVE, function (event, treeId, treeNode) { + tools.apply(setting.callback.onRemove, [event, treeId, treeNode]); + }); + + o.bind(c.DRAG, function (event, srcEvent, treeId, treeNodes) { + tools.apply(setting.callback.onDrag, [srcEvent, treeId, treeNodes]); + }); + + o.bind(c.DROP, function (event, srcEvent, treeId, treeNodes, targetNode, moveType, isCopy) { + tools.apply(setting.callback.onDrop, [srcEvent, treeId, treeNodes, targetNode, moveType, isCopy]); + }); + }, + _unbindEvent = function(setting) { + var o = setting.treeObj; + var c = consts.event; + o.unbind(c.RENAME); + o.unbind(c.REMOVE); + o.unbind(c.DRAG); + o.unbind(c.DROP); + }, + //default event proxy of exedit + _eventProxy = function(e) { + var target = e.target, + setting = data.getSetting(e.data.treeId), + relatedTarget = e.relatedTarget, + tId = "", node = null, + nodeEventType = "", treeEventType = "", + nodeEventCallback = null, treeEventCallback = null, + tmp = null; + + if (tools.eqs(e.type, "mouseover")) { + tmp = tools.getMDom(setting, target, [{tagName:"a", attrName:"treeNode"+consts.id.A}]); + if (tmp) { + tId = tmp.parentNode.id; + nodeEventType = "hoverOverNode"; + } + } else if (tools.eqs(e.type, "mouseout")) { + tmp = tools.getMDom(setting, relatedTarget, [{tagName:"a", attrName:"treeNode"+consts.id.A}]); + if (!tmp) { + tId = "remove"; + nodeEventType = "hoverOutNode"; + } + } else if (tools.eqs(e.type, "mousedown")) { + tmp = tools.getMDom(setting, target, [{tagName:"a", attrName:"treeNode"+consts.id.A}]); + if (tmp) { + tId = tmp.parentNode.id; + nodeEventType = "mousedownNode"; + } + } + if (tId.length>0) { + node = data.getNodeCache(setting, tId); + switch (nodeEventType) { + case "mousedownNode" : + nodeEventCallback = _handler.onMousedownNode; + break; + case "hoverOverNode" : + nodeEventCallback = _handler.onHoverOverNode; + break; + case "hoverOutNode" : + nodeEventCallback = _handler.onHoverOutNode; + break; + } + } + var proxyResult = { + stop: false, + node: node, + nodeEventType: nodeEventType, + nodeEventCallback: nodeEventCallback, + treeEventType: treeEventType, + treeEventCallback: treeEventCallback + }; + return proxyResult + }, + //default init node of exedit + _initNode = function(setting, level, n, parentNode, isFirstNode, isLastNode, openFlag) { + if (!n) return; + n.isHover = false; + n.editNameFlag = false; + }, + //update zTreeObj, add method of edit + _zTreeTools = function(setting, zTreeTools) { + zTreeTools.cancelEditName = function(newName) { + var root = data.getRoot(setting), + nameKey = setting.data.key.name, + node = root.curEditNode; + if (!root.curEditNode) return; + view.cancelCurEditNode(setting, newName?newName:node[nameKey]); + } + zTreeTools.copyNode = function(targetNode, node, moveType, isSilent) { + if (!node) return null; + if (targetNode && !targetNode.isParent && setting.data.keep.leaf && moveType === consts.move.TYPE_INNER) return null; + var newNode = tools.clone(node); + if (!targetNode) { + targetNode = null; + moveType = consts.move.TYPE_INNER; + } + if (moveType == consts.move.TYPE_INNER) { + function copyCallback() { + view.addNodes(setting, targetNode, [newNode], isSilent); + } + + if (tools.canAsync(setting, targetNode)) { + view.asyncNode(setting, targetNode, isSilent, copyCallback); + } else { + copyCallback(); + } + } else { + view.addNodes(setting, targetNode.parentNode, [newNode], isSilent); + view.moveNode(setting, targetNode, newNode, moveType, false, isSilent); + } + return newNode; + } + zTreeTools.editName = function(node) { + if (!node || !node.tId || node !== data.getNodeCache(setting, node.tId)) return; + if (node.parentTId) view.expandCollapseParentNode(setting, node.getParentNode(), true); + view.editNode(setting, node) + } + zTreeTools.moveNode = function(targetNode, node, moveType, isSilent) { + if (!node) return node; + if (targetNode && !targetNode.isParent && setting.data.keep.leaf && moveType === consts.move.TYPE_INNER) { + return null; + } else if (targetNode && ((node.parentTId == targetNode.tId && moveType == consts.move.TYPE_INNER) || $("#" + node.tId).find("#" + targetNode.tId).length > 0)) { + return null; + } else if (!targetNode) { + targetNode = null; + } + function moveCallback() { + view.moveNode(setting, targetNode, node, moveType, false, isSilent); + } + if (tools.canAsync(setting, targetNode)) { + view.asyncNode(setting, targetNode, isSilent, moveCallback); + } else { + moveCallback(); + } + return node; + } + zTreeTools.setEditable = function(editable) { + setting.edit.enable = editable; + return this.refresh(); + } + }, + //method of operate data + _data = { + setSonNodeLevel: function(setting, parentNode, node) { + if (!node) return; + var childKey = setting.data.key.children; + node.level = (parentNode)? parentNode.level + 1 : 0; + if (!node[childKey]) return; + for (var i = 0, l = node[childKey].length; i < l; i++) { + if (node[childKey][i]) data.setSonNodeLevel(setting, node, node[childKey][i]); + } + } + }, + //method of event proxy + _event = { + + }, + //method of event handler + _handler = { + onHoverOverNode: function(event, node) { + var setting = data.getSetting(event.data.treeId), + root = data.getRoot(setting); + if (root.curHoverNode != node) { + _handler.onHoverOutNode(event); + } + root.curHoverNode = node; + view.addHoverDom(setting, node); + }, + onHoverOutNode: function(event, node) { + var setting = data.getSetting(event.data.treeId), + root = data.getRoot(setting); + if (root.curHoverNode && !data.isSelectedNode(setting, root.curHoverNode)) { + view.removeTreeDom(setting, root.curHoverNode); + root.curHoverNode = null; + } + }, + onMousedownNode: function(eventMouseDown, _node) { + var i,l, + setting = data.getSetting(eventMouseDown.data.treeId), + root = data.getRoot(setting); + //right click can't drag & drop + if (eventMouseDown.button == 2 || !setting.edit.enable || (!setting.edit.drag.isCopy && !setting.edit.drag.isMove)) return true; + + //input of edit node name can't drag & drop + var target = eventMouseDown.target, + _nodes = data.getRoot(setting).curSelectedList, + nodes = []; + if (!data.isSelectedNode(setting, _node)) { + nodes = [_node]; + } else { + for (i=0, l=_nodes.length; i1) { + var pNodes = nodes[0].parentTId ? nodes[0].getParentNode()[childKey] : data.getNodes(setting); + tmpNodes = []; + for (i=0, l=pNodes.length; i -1 && (lastIndex+1) !== i) { + isOrder = false; + } + tmpNodes.push(pNodes[i]); + lastIndex = i; + } + if (nodes.length === tmpNodes.length) { + nodes = tmpNodes; + break; + } + } + } + if (isOrder) { + preNode = nodes[0].getPreNode(); + nextNode = nodes[nodes.length-1].getNextNode(); + } + + //set node in selected + curNode = $("
                                                                                                                                                                                                                                                                                                        "); + for (i=0, l=nodes.length; i0); + view.removeTreeDom(setting, tmpNode); + + tmpDom = $("
                                                                                                                                                                                                                                                                                                      • "); + tmpDom.append($("#" + tmpNode.tId + consts.id.A).clone()); + tmpDom.css("padding", "0"); + tmpDom.children("#" + tmpNode.tId + consts.id.A).removeClass(consts.node.CURSELECTED); + curNode.append(tmpDom); + if (i == setting.edit.drag.maxShowNodeNum-1) { + tmpDom = $("
                                                                                                                                                                                                                                                                                                      • ...
                                                                                                                                                                                                                                                                                                      • "); + curNode.append(tmpDom); + break; + } + } + curNode.attr("id", nodes[0].tId + consts.id.UL + "_tmp"); + curNode.addClass(setting.treeObj.attr("class")); + curNode.appendTo("body"); + + tmpArrow = $(""); + tmpArrow.attr("id", "zTreeMove_arrow_tmp"); + tmpArrow.appendTo("body"); + + setting.treeObj.trigger(consts.event.DRAG, [event, setting.treeId, nodes]); + } + + if (root.dragFlag == 1) { + if (tmpTarget && tmpArrow.attr("id") == event.target.id && tmpTargetNodeId && (event.clientX + doc.scrollLeft()+2) > ($("#" + tmpTargetNodeId + consts.id.A, tmpTarget).offset().left)) { + var xT = $("#" + tmpTargetNodeId + consts.id.A, tmpTarget); + event.target = (xT.length > 0) ? xT.get(0) : event.target; + } else if (tmpTarget) { + tmpTarget.removeClass(consts.node.TMPTARGET_TREE); + if (tmpTargetNodeId) $("#" + tmpTargetNodeId + consts.id.A, tmpTarget).removeClass(consts.node.TMPTARGET_NODE + "_" + consts.move.TYPE_PREV) + .removeClass(consts.node.TMPTARGET_NODE + "_" + _consts.move.TYPE_NEXT).removeClass(consts.node.TMPTARGET_NODE + "_" + _consts.move.TYPE_INNER); + } + tmpTarget = null; + tmpTargetNodeId = null; + + //judge drag & drop in multi ztree + isOtherTree = false; + targetSetting = setting; + var settings = data.getSettings(); + for (var s in settings) { + if (settings[s].treeId && settings[s].edit.enable && settings[s].treeId != setting.treeId + && (event.target.id == settings[s].treeId || $(event.target).parents("#" + settings[s].treeId).length>0)) { + isOtherTree = true; + targetSetting = settings[s]; + } + } + + var docScrollTop = doc.scrollTop(), + docScrollLeft = doc.scrollLeft(), + treeOffset = targetSetting.treeObj.offset(), + scrollHeight = targetSetting.treeObj.get(0).scrollHeight, + scrollWidth = targetSetting.treeObj.get(0).scrollWidth, + dTop = (event.clientY + docScrollTop - treeOffset.top), + dBottom = (targetSetting.treeObj.height() + treeOffset.top - event.clientY - docScrollTop), + dLeft = (event.clientX + docScrollLeft - treeOffset.left), + dRight = (targetSetting.treeObj.width() + treeOffset.left - event.clientX - docScrollLeft), + isTop = (dTop < setting.edit.drag.borderMax && dTop > setting.edit.drag.borderMin), + isBottom = (dBottom < setting.edit.drag.borderMax && dBottom > setting.edit.drag.borderMin), + isLeft = (dLeft < setting.edit.drag.borderMax && dLeft > setting.edit.drag.borderMin), + isRight = (dRight < setting.edit.drag.borderMax && dRight > setting.edit.drag.borderMin), + isTreeInner = dTop > setting.edit.drag.borderMin && dBottom > setting.edit.drag.borderMin && dLeft > setting.edit.drag.borderMin && dRight > setting.edit.drag.borderMin, + isTreeTop = (isTop && targetSetting.treeObj.scrollTop() <= 0), + isTreeBottom = (isBottom && (targetSetting.treeObj.scrollTop() + targetSetting.treeObj.height()+10) >= scrollHeight), + isTreeLeft = (isLeft && targetSetting.treeObj.scrollLeft() <= 0), + isTreeRight = (isRight && (targetSetting.treeObj.scrollLeft() + targetSetting.treeObj.width()+10) >= scrollWidth); + + if (event.target.id && targetSetting.treeObj.find("#" + event.target.id).length > 0) { + //get node
                                                                                                                                                                                                                                                                                                      • dom + var targetObj = event.target; + while (targetObj && targetObj.tagName && !tools.eqs(targetObj.tagName, "li") && targetObj.id != targetSetting.treeId) { + targetObj = targetObj.parentNode; + } + + var canMove = true; + //don't move to self or children of self + for (i=0, l=nodes.length; i 0) { + canMove = false; + break; + } + } + if (canMove) { + if (event.target.id && + (event.target.id == (targetObj.id + consts.id.A) || $(event.target).parents("#" + targetObj.id + consts.id.A).length > 0)) { + tmpTarget = $(targetObj); + tmpTargetNodeId = targetObj.id; + } + } + } + + //the mouse must be in zTree + tmpNode = nodes[0]; + if (isTreeInner && (event.target.id == targetSetting.treeId || $(event.target).parents("#" + targetSetting.treeId).length>0)) { + //judge mouse move in root of ztree + if (!tmpTarget && (event.target.id == targetSetting.treeId || isTreeTop || isTreeBottom || isTreeLeft || isTreeRight) && (isOtherTree || (!isOtherTree && tmpNode.parentTId))) { + tmpTarget = targetSetting.treeObj; + } + //auto scroll top + if (isTop) { + targetSetting.treeObj.scrollTop(targetSetting.treeObj.scrollTop()-10); + } else if (isBottom) { + targetSetting.treeObj.scrollTop(targetSetting.treeObj.scrollTop()+10); + } + if (isLeft) { + targetSetting.treeObj.scrollLeft(targetSetting.treeObj.scrollLeft()-10); + } else if (isRight) { + targetSetting.treeObj.scrollLeft(targetSetting.treeObj.scrollLeft()+10); + } + //auto scroll left + if (tmpTarget && tmpTarget != targetSetting.treeObj && tmpTarget.offset().left < targetSetting.treeObj.offset().left) { + targetSetting.treeObj.scrollLeft(targetSetting.treeObj.scrollLeft()+ tmpTarget.offset().left - targetSetting.treeObj.offset().left); + } + } + + curNode.css({ + "top": (event.clientY + docScrollTop + 3) + "px", + "left": (event.clientX + docScrollLeft + 3) + "px" + }); + + var dX = 0; + var dY = 0; + if (tmpTarget && tmpTarget.attr("id")!=targetSetting.treeId) { + var tmpTargetNode = tmpTargetNodeId == null ? null: data.getNodeCache(targetSetting, tmpTargetNodeId), + isCopy = (event.ctrlKey && setting.edit.drag.isMove && setting.edit.drag.isCopy) || (!setting.edit.drag.isMove && setting.edit.drag.isCopy), + isPrev = !!(preNode && tmpTargetNodeId === preNode.tId), + isNext = !!(nextNode && tmpTargetNodeId === nextNode.tId), + isInner = (tmpNode.parentTId && tmpNode.parentTId == tmpTargetNodeId), + canPrev = (isCopy || !isNext) && tools.apply(targetSetting.edit.drag.prev, [targetSetting.treeId, nodes, tmpTargetNode], !!targetSetting.edit.drag.prev), + canNext = (isCopy || !isPrev) && tools.apply(targetSetting.edit.drag.next, [targetSetting.treeId, nodes, tmpTargetNode], !!targetSetting.edit.drag.next), + canInner = (isCopy || !isInner) && !(targetSetting.data.keep.leaf && !tmpTargetNode.isParent) && tools.apply(targetSetting.edit.drag.inner, [targetSetting.treeId, nodes, tmpTargetNode], !!targetSetting.edit.drag.inner); + if (!canPrev && !canNext && !canInner) { + tmpTarget = null; + tmpTargetNodeId = ""; + moveType = consts.move.TYPE_INNER; + tmpArrow.css({ + "display":"none" + }); + if (window.zTreeMoveTimer) { + clearTimeout(window.zTreeMoveTimer); + window.zTreeMoveTargetNodeTId = null + } + } else { + var tmpTargetA = $("#" + tmpTargetNodeId + consts.id.A, tmpTarget), + tmpNextA = tmpTargetNode.isLastNode ? null : $("#" + tmpTargetNode.getNextNode().tId + consts.id.A, tmpTarget.next()), + tmpTop = tmpTargetA.offset().top, + tmpLeft = tmpTargetA.offset().left, + prevPercent = canPrev ? (canInner ? 0.25 : (canNext ? 0.5 : 1) ) : -1, + nextPercent = canNext ? (canInner ? 0.75 : (canPrev ? 0.5 : 0) ) : -1, + dY_percent = (event.clientY + docScrollTop - tmpTop)/tmpTargetA.height(); + if ((prevPercent==1 ||dY_percent<=prevPercent && dY_percent>=-.2) && canPrev) { + dX = 1 - tmpArrow.width(); + dY = tmpTop - tmpArrow.height()/2; + moveType = consts.move.TYPE_PREV; + } else if ((nextPercent==0 || dY_percent>=nextPercent && dY_percent<=1.2) && canNext) { + dX = 1 - tmpArrow.width(); + dY = (tmpNextA == null || (tmpTargetNode.isParent && tmpTargetNode.open)) ? (tmpTop + tmpTargetA.height() - tmpArrow.height()/2) : (tmpNextA.offset().top - tmpArrow.height()/2); + moveType = consts.move.TYPE_NEXT; + }else { + dX = 5 - tmpArrow.width(); + dY = tmpTop; + moveType = consts.move.TYPE_INNER; + } + tmpArrow.css({ + "display":"block", + "top": dY + "px", + "left": (tmpLeft + dX) + "px" + }); + tmpTargetA.addClass(consts.node.TMPTARGET_NODE + "_" + moveType); + + if (preTmpTargetNodeId != tmpTargetNodeId || preTmpMoveType != moveType) { + startTime = (new Date()).getTime(); + } + if (tmpTargetNode && tmpTargetNode.isParent && moveType == consts.move.TYPE_INNER) { + var startTimer = true; + if (window.zTreeMoveTimer && window.zTreeMoveTargetNodeTId !== tmpTargetNode.tId) { + clearTimeout(window.zTreeMoveTimer); + window.zTreeMoveTargetNodeTId = null; + } else if (window.zTreeMoveTimer && window.zTreeMoveTargetNodeTId === tmpTargetNode.tId) { + startTimer = false; + } + if (startTimer) { + window.zTreeMoveTimer = setTimeout(function() { + if (moveType != consts.move.TYPE_INNER) return; + if (tmpTargetNode && tmpTargetNode.isParent && !tmpTargetNode.open && (new Date()).getTime() - startTime > targetSetting.edit.drag.autoOpenTime + && tools.apply(targetSetting.callback.beforeDragOpen, [targetSetting.treeId, tmpTargetNode], true)) { + view.switchNode(targetSetting, tmpTargetNode); + if (targetSetting.edit.drag.autoExpandTrigger) { + targetSetting.treeObj.trigger(consts.event.EXPAND, [targetSetting.treeId, tmpTargetNode]); + } + } + }, targetSetting.edit.drag.autoOpenTime+50); + window.zTreeMoveTargetNodeTId = tmpTargetNode.tId; + } + } + } + } else { + moveType = consts.move.TYPE_INNER; + if (tmpTarget && tools.apply(targetSetting.edit.drag.inner, [targetSetting.treeId, nodes, null], !!targetSetting.edit.drag.inner)) { + tmpTarget.addClass(consts.node.TMPTARGET_TREE); + } else { + tmpTarget = null; + } + tmpArrow.css({ + "display":"none" + }); + if (window.zTreeMoveTimer) { + clearTimeout(window.zTreeMoveTimer); + window.zTreeMoveTargetNodeTId = null; + } + } + preTmpTargetNodeId = tmpTargetNodeId; + preTmpMoveType = moveType; + } + return false; + } + + doc.bind("mouseup", _docMouseUp); + function _docMouseUp(event) { + if (window.zTreeMoveTimer) { + clearTimeout(window.zTreeMoveTimer); + window.zTreeMoveTargetNodeTId = null; + } + preTmpTargetNodeId = null; + preTmpMoveType = null; + doc.unbind("mousemove", _docMouseMove); + doc.unbind("mouseup", _docMouseUp); + doc.unbind("selectstart", _docSelect); + $("body").css("cursor", "auto"); + if (tmpTarget) { + tmpTarget.removeClass(consts.node.TMPTARGET_TREE); + if (tmpTargetNodeId) $("#" + tmpTargetNodeId + consts.id.A, tmpTarget).removeClass(consts.node.TMPTARGET_NODE + "_" + consts.move.TYPE_PREV) + .removeClass(consts.node.TMPTARGET_NODE + "_" + _consts.move.TYPE_NEXT).removeClass(consts.node.TMPTARGET_NODE + "_" + _consts.move.TYPE_INNER); + } + tools.showIfameMask(setting, false); + + root.showHoverDom = true; + if (root.dragFlag == 0) return; + root.dragFlag = 0; + + var i, l, tmpNode; + for (i=0, l=nodes.length; i0); + } + $("#" + newNodes[0].tId).focus().blur(); + + } + + if (moveType == consts.move.TYPE_INNER && tools.canAsync(targetSetting, dragTargetNode)) { + view.asyncNode(targetSetting, dragTargetNode, false, dropCallback); + } else { + dropCallback(); + } + + setting.treeObj.trigger(consts.event.DROP, [event, targetSetting.treeId, newNodes, dragTargetNode, moveType, isCopy]); + } else { + for (i=0, l=nodes.length; i0); + } + setting.treeObj.trigger(consts.event.DROP, [event, setting.treeId, nodes, null, null, null]); + } + } + + doc.bind("selectstart", _docSelect); + function _docSelect() { + return false; + } + + //Avoid FireFox's Bug + //If zTree Div CSS set 'overflow', so drag node outside of zTree, and event.target is error. + if(eventMouseDown.preventDefault) { + eventMouseDown.preventDefault(); + } + return true; + } + }, + //method of tools for zTree + _tools = { + getAbs: function (obj) { + var oRect = obj.getBoundingClientRect(); + return [oRect.left,oRect.top] + }, + inputFocus: function(inputObj) { + if (inputObj.get(0)) { + inputObj.focus(); + tools.setCursorPosition(inputObj.get(0), inputObj.val().length); + } + }, + inputSelect: function(inputObj) { + if (inputObj.get(0)) { + inputObj.focus(); + inputObj.select(); + } + }, + setCursorPosition: function(obj, pos){ + if(obj.setSelectionRange) { + obj.focus(); + obj.setSelectionRange(pos,pos); + } else if (obj.createTextRange) { + var range = obj.createTextRange(); + range.collapse(true); + range.moveEnd('character', pos); + range.moveStart('character', pos); + range.select(); + } + }, + showIfameMask: function(setting, showSign) { + var root = data.getRoot(setting); + //clear full mask + while (root.dragMaskList.length > 0) { + root.dragMaskList[0].remove(); + root.dragMaskList.shift(); + } + if (showSign) { + //show mask + var iframeList = $("iframe"); + for (var i = 0, l = iframeList.length; i < l; i++) { + var obj = iframeList.get(i), + r = tools.getAbs(obj), + dragMask = $("
                                                                                                                                                                                                                                                                                                        "); + dragMask.appendTo("body"); + root.dragMaskList.push(dragMask); + } + } + } + }, + //method of operate ztree dom + _view = { + addEditBtn: function(setting, node) { + if (node.editNameFlag || $("#" + node.tId + consts.id.EDIT).length > 0) { + return; + } + if (!tools.apply(setting.edit.showRenameBtn, [setting.treeId, node], setting.edit.showRenameBtn)) { + return; + } + var aObj = $("#" + node.tId + consts.id.A), + editStr = ""; + aObj.append(editStr); + + $("#" + node.tId + consts.id.EDIT).bind('click', + function() { + if (!tools.uCanDo(setting) || tools.apply(setting.callback.beforeEditName, [setting.treeId, node], true) == false) return false; + view.editNode(setting, node); + return false; + } + ).show(); + }, + addRemoveBtn: function(setting, node) { + if (node.editNameFlag || $("#" + node.tId + consts.id.REMOVE).length > 0) { + return; + } + if (!tools.apply(setting.edit.showRemoveBtn, [setting.treeId, node], setting.edit.showRemoveBtn)) { + return; + } + var aObj = $("#" + node.tId + consts.id.A), + removeStr = ""; + aObj.append(removeStr); + + $("#" + node.tId + consts.id.REMOVE).bind('click', + function() { + if (!tools.uCanDo(setting) || tools.apply(setting.callback.beforeRemove, [setting.treeId, node], true) == false) return false; + view.removeNode(setting, node); + setting.treeObj.trigger(consts.event.REMOVE, [setting.treeId, node]); + return false; + } + ).bind('mousedown', + function(eventMouseDown) { + return true; + } + ).show(); + }, + addHoverDom: function(setting, node) { + if (data.getRoot(setting).showHoverDom) { + node.isHover = true; + if (setting.edit.enable) { + view.addEditBtn(setting, node); + view.addRemoveBtn(setting, node); + } + tools.apply(setting.view.addHoverDom, [setting.treeId, node]); + } + }, + cancelCurEditNode: function (setting, forceName) { + var root = data.getRoot(setting), + nameKey = setting.data.key.name, + node = root.curEditNode; + + if (node) { + var inputObj = root.curEditInput; + var newName = forceName ? forceName:inputObj.val(); + if (!forceName && tools.apply(setting.callback.beforeRename, [setting.treeId, node, newName], true) === false) { + node.editNameFlag = true; + return false; + } else { + node[nameKey] = newName ? newName:inputObj.val(); + if (!forceName) { + setting.treeObj.trigger(consts.event.RENAME, [setting.treeId, node]); + } + } + var aObj = $("#" + node.tId + consts.id.A); + aObj.removeClass(consts.node.CURSELECTED_EDIT); + inputObj.unbind(); + view.setNodeName(setting, node); + node.editNameFlag = false; + root.curEditNode = null; + root.curEditInput = null; + view.selectNode(setting, node, false); + } + root.noSelection = true; + return true; + }, + editNode: function(setting, node) { + var root = data.getRoot(setting); + view.editNodeBlur = false; + if (data.isSelectedNode(setting, node) && root.curEditNode == node && node.editNameFlag) { + setTimeout(function() {tools.inputFocus(root.curEditInput);}, 0); + return; + } + var nameKey = setting.data.key.name; + node.editNameFlag = true; + view.removeTreeDom(setting, node); + view.cancelCurEditNode(setting); + view.selectNode(setting, node, false); + $("#" + node.tId + consts.id.SPAN).html(""); + var inputObj = $("#" + node.tId + consts.id.INPUT); + inputObj.attr("value", node[nameKey]); + if (setting.edit.editNameSelectAll) { + tools.inputSelect(inputObj); + } else { + tools.inputFocus(inputObj); + } + + inputObj.bind('blur', function(event) { + if (!view.editNodeBlur) { + view.cancelCurEditNode(setting); + } + }).bind('keydown', function(event) { + if (event.keyCode=="13") { + view.editNodeBlur = true; + view.cancelCurEditNode(setting, null, true); + } else if (event.keyCode=="27") { + view.cancelCurEditNode(setting, node[nameKey]); + } + }).bind('click', function(event) { + return false; + }).bind('dblclick', function(event) { + return false; + }); + + $("#" + node.tId + consts.id.A).addClass(consts.node.CURSELECTED_EDIT); + root.curEditInput = inputObj; + root.noSelection = false; + root.curEditNode = node; + }, + moveNode: function(setting, targetNode, node, moveType, animateFlag, isSilent) { + var root = data.getRoot(setting), + childKey = setting.data.key.children; + if (targetNode == node) return; + if (setting.data.keep.leaf && targetNode && !targetNode.isParent && moveType == consts.move.TYPE_INNER) return; + var oldParentNode = (node.parentTId ? node.getParentNode(): root), + targetNodeIsRoot = (targetNode === null || targetNode == root); + if (targetNodeIsRoot && targetNode === null) targetNode = root; + if (targetNodeIsRoot) moveType = consts.move.TYPE_INNER; + var targetParentNode = (targetNode.parentTId ? targetNode.getParentNode() : root); + + if (moveType != consts.move.TYPE_PREV && moveType != consts.move.TYPE_NEXT) { + moveType = consts.move.TYPE_INNER; + } + + if (moveType == consts.move.TYPE_INNER) { + if (targetNodeIsRoot) { + //parentTId of root node is null + node.parentTId = null; + } else { + if (!targetNode.isParent) { + targetNode.isParent = true; + targetNode.open = !!targetNode.open; + view.setNodeLineIcos(setting, targetNode); + } + node.parentTId = targetNode.tId; + } + } + + //move node Dom + var targetObj, target_ulObj; + if (targetNodeIsRoot) { + targetObj = setting.treeObj; + target_ulObj = targetObj; + } else { + if (!isSilent && moveType == consts.move.TYPE_INNER) { + view.expandCollapseNode(setting, targetNode, true, false); + } else if (!isSilent) { + view.expandCollapseNode(setting, targetNode.getParentNode(), true, false); + } + targetObj = $("#" + targetNode.tId); + target_ulObj = $("#" + targetNode.tId + consts.id.UL); + if (!!targetObj.get(0) && !target_ulObj.get(0)) { + var ulstr = []; + view.makeUlHtml(setting, targetNode, ulstr, ''); + targetObj.append(ulstr.join('')); + } + target_ulObj = $("#" + targetNode.tId + consts.id.UL); + } + var nodeDom = $("#" + node.tId); + if (!nodeDom.get(0)) { + nodeDom = view.appendNodes(setting, node.level, [node], null, false, true).join(''); + } else if (!targetObj.get(0)) { + nodeDom.remove(); + } + if (target_ulObj.get(0) && moveType == consts.move.TYPE_INNER) { + target_ulObj.append(nodeDom); + } else if (targetObj.get(0) && moveType == consts.move.TYPE_PREV) { + targetObj.before(nodeDom); + } else if (targetObj.get(0) && moveType == consts.move.TYPE_NEXT) { + targetObj.after(nodeDom); + } + + //repair the data after move + var i,l, + tmpSrcIndex = -1, + tmpTargetIndex = 0, + oldNeighbor = null, + newNeighbor = null, + oldLevel = node.level; + if (node.isFirstNode) { + tmpSrcIndex = 0; + if (oldParentNode[childKey].length > 1 ) { + oldNeighbor = oldParentNode[childKey][1]; + oldNeighbor.isFirstNode = true; + } + } else if (node.isLastNode) { + tmpSrcIndex = oldParentNode[childKey].length -1; + oldNeighbor = oldParentNode[childKey][tmpSrcIndex - 1]; + oldNeighbor.isLastNode = true; + } else { + for (i = 0, l = oldParentNode[childKey].length; i < l; i++) { + if (oldParentNode[childKey][i].tId == node.tId) { + tmpSrcIndex = i; + break; + } + } + } + if (tmpSrcIndex >= 0) { + oldParentNode[childKey].splice(tmpSrcIndex, 1); + } + if (moveType != consts.move.TYPE_INNER) { + for (i = 0, l = targetParentNode[childKey].length; i < l; i++) { + if (targetParentNode[childKey][i].tId == targetNode.tId) tmpTargetIndex = i; + } + } + if (moveType == consts.move.TYPE_INNER) { + if (!targetNode[childKey]) targetNode[childKey] = new Array(); + if (targetNode[childKey].length > 0) { + newNeighbor = targetNode[childKey][targetNode[childKey].length - 1]; + newNeighbor.isLastNode = false; + } + targetNode[childKey].splice(targetNode[childKey].length, 0, node); + node.isLastNode = true; + node.isFirstNode = (targetNode[childKey].length == 1); + } else if (targetNode.isFirstNode && moveType == consts.move.TYPE_PREV) { + targetParentNode[childKey].splice(tmpTargetIndex, 0, node); + newNeighbor = targetNode; + newNeighbor.isFirstNode = false; + node.parentTId = targetNode.parentTId; + node.isFirstNode = true; + node.isLastNode = false; + + } else if (targetNode.isLastNode && moveType == consts.move.TYPE_NEXT) { + targetParentNode[childKey].splice(tmpTargetIndex + 1, 0, node); + newNeighbor = targetNode; + newNeighbor.isLastNode = false; + node.parentTId = targetNode.parentTId; + node.isFirstNode = false; + node.isLastNode = true; + + } else { + if (moveType == consts.move.TYPE_PREV) { + targetParentNode[childKey].splice(tmpTargetIndex, 0, node); + } else { + targetParentNode[childKey].splice(tmpTargetIndex + 1, 0, node); + } + node.parentTId = targetNode.parentTId; + node.isFirstNode = false; + node.isLastNode = false; + } + data.fixPIdKeyValue(setting, node); + data.setSonNodeLevel(setting, node.getParentNode(), node); + + //repair node what been moved + view.setNodeLineIcos(setting, node); + view.repairNodeLevelClass(setting, node, oldLevel) + + //repair node's old parentNode dom + if (!setting.data.keep.parent && oldParentNode[childKey].length < 1) { + //old parentNode has no child nodes + oldParentNode.isParent = false; + oldParentNode.open = false; + var tmp_ulObj = $("#" + oldParentNode.tId + consts.id.UL), + tmp_switchObj = $("#" + oldParentNode.tId + consts.id.SWITCH), + tmp_icoObj = $("#" + oldParentNode.tId + consts.id.ICON); + view.replaceSwitchClass(oldParentNode, tmp_switchObj, consts.folder.DOCU); + view.replaceIcoClass(oldParentNode, tmp_icoObj, consts.folder.DOCU); + tmp_ulObj.css("display", "none"); + + } else if (oldNeighbor) { + //old neigbor node + view.setNodeLineIcos(setting, oldNeighbor); + } + + //new neigbor node + if (newNeighbor) { + view.setNodeLineIcos(setting, newNeighbor); + } + + //repair checkbox / radio + if (!!setting.check && setting.check.enable && view.repairChkClass) { + view.repairChkClass(setting, oldParentNode); + view.repairParentChkClassWithSelf(setting, oldParentNode); + if (oldParentNode != node.parent) + view.repairParentChkClassWithSelf(setting, node); + } + + //expand parents after move + if (!isSilent) { + view.expandCollapseParentNode(setting, node.getParentNode(), true, animateFlag); + } + }, + removeEditBtn: function(node) { + $("#" + node.tId + consts.id.EDIT).unbind().remove(); + }, + removeRemoveBtn: function(node) { + $("#" + node.tId + consts.id.REMOVE).unbind().remove(); + }, + removeTreeDom: function(setting, node) { + node.isHover = false; + view.removeEditBtn(node); + view.removeRemoveBtn(node); + tools.apply(setting.view.removeHoverDom, [setting.treeId, node]); + }, + repairNodeLevelClass: function(setting, node, oldLevel) { + if (oldLevel === node.level) return; + var liObj = $("#" + node.tId), + aObj = $("#" + node.tId + consts.id.A), + ulObj = $("#" + node.tId + consts.id.UL), + oldClass = "level" + oldLevel, + newClass = "level" + node.level; + liObj.removeClass(oldClass); + liObj.addClass(newClass); + aObj.removeClass(oldClass); + aObj.addClass(newClass); + ulObj.removeClass(oldClass); + ulObj.addClass(newClass); + } + }, + + _z = { + tools: _tools, + view: _view, + event: _event, + data: _data + }; + $.extend(true, $.fn.zTree.consts, _consts); + $.extend(true, $.fn.zTree._z, _z); + + var zt = $.fn.zTree, + tools = zt._z.tools, + consts = zt.consts, + view = zt._z.view, + data = zt._z.data, + event = zt._z.event; + + data.exSetting(_setting); + data.addInitBind(_bindEvent); + data.addInitUnBind(_unbindEvent); + data.addInitCache(_initCache); + data.addInitNode(_initNode); + data.addInitProxy(_eventProxy); + data.addInitRoot(_initRoot); + data.addZTreeTools(_zTreeTools); + + var _cancelPreSelectedNode = view.cancelPreSelectedNode; + view.cancelPreSelectedNode = function (setting, node) { + var list = data.getRoot(setting).curSelectedList; + for (var i=0, j=list.length; i1){var s=m[0].parentTId?m[0].getParentNode()[l]:p.getNodes(g);l=[];for(a=0,c=s.length;a-1&&j+1!==a&&(e=!1),l.push(s[a]),j=a),m.length===l.length){m=l;break}}e&&(D=m[0].getPreNode(),E=m[m.length-1].getNextNode()); +y=k("
                                                                                                                                                                                                                                                                                                          ");for(a=0,c=m.length;a0),f.removeTreeDom(g,e),j=k("
                                                                                                                                                                                                                                                                                                        • "),j.append(k("#"+e.tId+d.id.A).clone()),j.css("padding","0"),j.children("#"+e.tId+d.id.A).removeClass(d.node.CURSELECTED),y.append(j),a==g.edit.drag.maxShowNodeNum-1){j=k("
                                                                                                                                                                                                                                                                                                        • ...
                                                                                                                                                                                                                                                                                                        • ");y.append(j);break}y.attr("id",m[0].tId+d.id.UL+"_tmp");y.addClass(g.treeObj.attr("class"));y.appendTo("body");t= +k("");t.attr("id","zTreeMove_arrow_tmp");t.appendTo("body");g.treeObj.trigger(d.event.DRAG,[b,g.treeId,m])}if(z.dragFlag==1){r&&t.attr("id")==b.target.id&&u&&b.clientX+x.scrollLeft()+2>k("#"+u+d.id.A,r).offset().left?(e=k("#"+u+d.id.A,r),b.target=e.length>0?e.get(0):b.target):r&&(r.removeClass(d.node.TMPTARGET_TREE),u&&k("#"+u+d.id.A,r).removeClass(d.node.TMPTARGET_NODE+"_"+d.move.TYPE_PREV).removeClass(d.node.TMPTARGET_NODE+"_"+F.move.TYPE_NEXT).removeClass(d.node.TMPTARGET_NODE+ +"_"+F.move.TYPE_INNER));u=r=null;G=!1;i=g;e=p.getSettings();for(var B in e)if(e[B].treeId&&e[B].edit.enable&&e[B].treeId!=g.treeId&&(b.target.id==e[B].treeId||k(b.target).parents("#"+e[B].treeId).length>0))G=!0,i=e[B];B=x.scrollTop();j=x.scrollLeft();l=i.treeObj.offset();a=i.treeObj.get(0).scrollHeight;e=i.treeObj.get(0).scrollWidth;c=b.clientY+B-l.top;var o=i.treeObj.height()+l.top-b.clientY-B,n=b.clientX+j-l.left,H=i.treeObj.width()+l.left-b.clientX-j;l=cg.edit.drag.borderMin; +var s=og.edit.drag.borderMin,I=ng.edit.drag.borderMin,C=Hg.edit.drag.borderMin,o=c>g.edit.drag.borderMin&&o>g.edit.drag.borderMin&&n>g.edit.drag.borderMin&&H>g.edit.drag.borderMin,n=l&&i.treeObj.scrollTop()<=0,H=s&&i.treeObj.scrollTop()+i.treeObj.height()+10>=a,M=I&&i.treeObj.scrollLeft()<=0,N=C&&i.treeObj.scrollLeft()+i.treeObj.width()+10>=e;if(b.target.id&&i.treeObj.find("#"+b.target.id).length>0){for(var A=b.target;A&& +A.tagName&&!h.eqs(A.tagName,"li")&&A.id!=i.treeId;)A=A.parentNode;var O=!0;for(a=0,c=m.length;a0){O=!1;break}if(O&&b.target.id&&(b.target.id==A.id+d.id.A||k(b.target).parents("#"+A.id+d.id.A).length>0))r=k(A),u=A.id}e=m[0];if(o&&(b.target.id==i.treeId||k(b.target).parents("#"+i.treeId).length>0)){if(!r&&(b.target.id==i.treeId||n||H||M||N)&&(G||!G&&e.parentTId))r=i.treeObj;l?i.treeObj.scrollTop(i.treeObj.scrollTop()- +10):s&&i.treeObj.scrollTop(i.treeObj.scrollTop()+10);I?i.treeObj.scrollLeft(i.treeObj.scrollLeft()-10):C&&i.treeObj.scrollLeft(i.treeObj.scrollLeft()+10);r&&r!=i.treeObj&&r.offset().left=-0.2)&&e?(a=1-t.width(),l=s-t.height()/2,v=d.move.TYPE_PREV):(C==0||b>=C&&b<=1.2)&&a?(a=1-t.width(),l=l==null||w.isParent&&w.open?s+c.height()-t.height()/2:l.offset().top-t.height()/2,v=d.move.TYPE_NEXT):(a=5-t.width(),l=s,v=d.move.TYPE_INNER);t.css({display:"block",top:l+"px",left:j+a+"px"});c.addClass(d.node.TMPTARGET_NODE+ +"_"+v);if(P!=u||Q!=v)J=(new Date).getTime();if(w&&w.isParent&&v==d.move.TYPE_INNER&&(b=!0,window.zTreeMoveTimer&&window.zTreeMoveTargetNodeTId!==w.tId?(clearTimeout(window.zTreeMoveTimer),window.zTreeMoveTargetNodeTId=null):window.zTreeMoveTimer&&window.zTreeMoveTargetNodeTId===w.tId&&(b=!1),b))window.zTreeMoveTimer=setTimeout(function(){v==d.move.TYPE_INNER&&w&&w.isParent&&!w.open&&(new Date).getTime()-J>i.edit.drag.autoOpenTime&&h.apply(i.callback.beforeDragOpen,[i.treeId,w],!0)&&(f.switchNode(i, +w),i.edit.drag.autoExpandTrigger&&i.treeObj.trigger(d.event.EXPAND,[i.treeId,w]))},i.edit.drag.autoOpenTime+50),window.zTreeMoveTargetNodeTId=w.tId}}else if(v=d.move.TYPE_INNER,r&&h.apply(i.edit.drag.inner,[i.treeId,m,null],!!i.edit.drag.inner)?r.addClass(d.node.TMPTARGET_TREE):r=null,t.css({display:"none"}),window.zTreeMoveTimer)clearTimeout(window.zTreeMoveTimer),window.zTreeMoveTargetNodeTId=null;P=u;Q=v}return!1}function q(b){if(window.zTreeMoveTimer)clearTimeout(window.zTreeMoveTimer),window.zTreeMoveTargetNodeTId= +null;Q=P=null;x.unbind("mousemove",c);x.unbind("mouseup",q);x.unbind("selectstart",e);k("body").css("cursor","auto");r&&(r.removeClass(d.node.TMPTARGET_TREE),u&&k("#"+u+d.id.A,r).removeClass(d.node.TMPTARGET_NODE+"_"+d.move.TYPE_PREV).removeClass(d.node.TMPTARGET_NODE+"_"+F.move.TYPE_NEXT).removeClass(d.node.TMPTARGET_NODE+"_"+F.move.TYPE_INNER));h.showIfameMask(g,!1);z.showHoverDom=!0;if(z.dragFlag!=0){z.dragFlag=0;var a,l,j;for(a=0,l=m.length;a0);k("#"+s[0].tId).focus().blur()};v==d.move.TYPE_INNER&& +h.canAsync(i,n)?f.asyncNode(i,n,!1,a):a();g.treeObj.trigger(d.event.DROP,[b,i.treeId,s,n,v,o])}}else{for(a=0,l=m.length;a0);g.treeObj.trigger(d.event.DROP,[b,g.treeId,m,null,null,null])}}}function e(){return!1}var l,j,g=p.getSetting(b.data.treeId),z=p.getRoot(g);if(b.button==2||!g.edit.enable||!g.edit.drag.isCopy&&!g.edit.drag.isMove)return!0;var o=b.target,n=p.getRoot(g).curSelectedList,m=[];if(p.isSelectedNode(g,a))for(l=0,j=n.length;l0;)c.dragMaskList[0].remove(), +c.dragMaskList.shift();if(a)for(var d=k("iframe"),e=0,f=d.length;e");j.appendTo("body");c.dragMaskList.push(j)}}},view:{addEditBtn:function(b,a){if(!(a.editNameFlag||k("#"+a.tId+d.id.EDIT).length>0)&&h.apply(b.edit.showRenameBtn,[b.treeId,a],b.edit.showRenameBtn)){var c=k("#"+a.tId+d.id.A),q="";c.append(q);k("#"+a.tId+d.id.EDIT).bind("click",function(){if(!h.uCanDo(b)||h.apply(b.callback.beforeEditName,[b.treeId,a],!0)==!1)return!1;f.editNode(b,a);return!1}).show()}},addRemoveBtn:function(b,a){if(!(a.editNameFlag||k("#"+a.tId+d.id.REMOVE).length>0)&&h.apply(b.edit.showRemoveBtn,[b.treeId,a],b.edit.showRemoveBtn)){var c=k("#"+a.tId+d.id.A),q="";c.append(q);k("#"+a.tId+d.id.REMOVE).bind("click",function(){if(!h.uCanDo(b)||h.apply(b.callback.beforeRemove,[b.treeId,a],!0)==!1)return!1;f.removeNode(b,a);b.treeObj.trigger(d.event.REMOVE,[b.treeId,a]);return!1}).bind("mousedown",function(){return!0}).show()}},addHoverDom:function(b,a){if(p.getRoot(b).showHoverDom)a.isHover=!0,b.edit.enable&&(f.addEditBtn(b, +a),f.addRemoveBtn(b,a)),h.apply(b.view.addHoverDom,[b.treeId,a])},cancelCurEditNode:function(b,a){var c=p.getRoot(b),q=b.data.key.name,e=c.curEditNode;if(e){var l=c.curEditInput,j=a?a:l.val();if(!a&&h.apply(b.callback.beforeRename,[b.treeId,e,j],!0)===!1)return e.editNameFlag=!0,!1;else e[q]=j?j:l.val(),a||b.treeObj.trigger(d.event.RENAME,[b.treeId,e]);k("#"+e.tId+d.id.A).removeClass(d.node.CURSELECTED_EDIT);l.unbind();f.setNodeName(b,e);e.editNameFlag=!1;c.curEditNode=null;c.curEditInput=null;f.selectNode(b, +e,!1)}return c.noSelection=!0},editNode:function(b,a){var c=p.getRoot(b);f.editNodeBlur=!1;if(p.isSelectedNode(b,a)&&c.curEditNode==a&&a.editNameFlag)setTimeout(function(){h.inputFocus(c.curEditInput)},0);else{var q=b.data.key.name;a.editNameFlag=!0;f.removeTreeDom(b,a);f.cancelCurEditNode(b);f.selectNode(b,a,!1);k("#"+a.tId+d.id.SPAN).html("");var e=k("#"+a.tId+d.id.INPUT);e.attr("value",a[q]);b.edit.editNameSelectAll? +h.inputSelect(e):h.inputFocus(e);e.bind("blur",function(){f.editNodeBlur||f.cancelCurEditNode(b)}).bind("keydown",function(c){c.keyCode=="13"?(f.editNodeBlur=!0,f.cancelCurEditNode(b,null,!0)):c.keyCode=="27"&&f.cancelCurEditNode(b,a[q])}).bind("click",function(){return!1}).bind("dblclick",function(){return!1});k("#"+a.tId+d.id.A).addClass(d.node.CURSELECTED_EDIT);c.curEditInput=e;c.noSelection=!1;c.curEditNode=a}},moveNode:function(b,a,c,q,e,l){var j=p.getRoot(b),g=b.data.key.children;if(a!=c&&(!b.data.keep.leaf|| +!a||a.isParent||q!=d.move.TYPE_INNER)){var h=c.parentTId?c.getParentNode():j,o=a===null||a==j;o&&a===null&&(a=j);if(o)q=d.move.TYPE_INNER;j=a.parentTId?a.getParentNode():j;if(q!=d.move.TYPE_PREV&&q!=d.move.TYPE_NEXT)q=d.move.TYPE_INNER;if(q==d.move.TYPE_INNER)if(o)c.parentTId=null;else{if(!a.isParent)a.isParent=!0,a.open=!!a.open,f.setNodeLineIcos(b,a);c.parentTId=a.tId}var n;o?n=o=b.treeObj:(!l&&q==d.move.TYPE_INNER?f.expandCollapseNode(b,a,!0,!1):l||f.expandCollapseNode(b,a.getParentNode(),!0,!1), +o=k("#"+a.tId),n=k("#"+a.tId+d.id.UL),o.get(0)&&!n.get(0)&&(n=[],f.makeUlHtml(b,a,n,""),o.append(n.join(""))),n=k("#"+a.tId+d.id.UL));var m=k("#"+c.tId);m.get(0)?o.get(0)||m.remove():m=f.appendNodes(b,c.level,[c],null,!1,!0).join("");n.get(0)&&q==d.move.TYPE_INNER?n.append(m):o.get(0)&&q==d.move.TYPE_PREV?o.before(m):o.get(0)&&q==d.move.TYPE_NEXT&&o.after(m);var x=-1,y=0,t=null,o=null,r=c.level;if(c.isFirstNode){if(x=0,h[g].length>1)t=h[g][1],t.isFirstNode=!0}else if(c.isLastNode)x=h[g].length-1, +t=h[g][x-1],t.isLastNode=!0;else for(n=0,m=h[g].length;n=0&&h[g].splice(x,1);if(q!=d.move.TYPE_INNER)for(n=0,m=j[g].length;n0)o=a[g][a[g].length-1],o.isLastNode=!1;a[g].splice(a[g].length,0,c);c.isLastNode=!0;c.isFirstNode=a[g].length==1}else a.isFirstNode&&q==d.move.TYPE_PREV?(j[g].splice(y,0,c),o=a,o.isFirstNode=!1,c.parentTId=a.parentTId,c.isFirstNode=!0,c.isLastNode= +!1):a.isLastNode&&q==d.move.TYPE_NEXT?(j[g].splice(y+1,0,c),o=a,o.isLastNode=!1,c.parentTId=a.parentTId,c.isFirstNode=!1,c.isLastNode=!0):(q==d.move.TYPE_PREV?j[g].splice(y,0,c):j[g].splice(y+1,0,c),c.parentTId=a.parentTId,c.isFirstNode=!1,c.isLastNode=!1);p.fixPIdKeyValue(b,c);p.setSonNodeLevel(b,c.getParentNode(),c);f.setNodeLineIcos(b,c);f.repairNodeLevelClass(b,c,r);!b.data.keep.parent&&h[g].length<1?(h.isParent=!1,h.open=!1,a=k("#"+h.tId+d.id.UL),q=k("#"+h.tId+d.id.SWITCH),g=k("#"+h.tId+d.id.ICON), +f.replaceSwitchClass(h,q,d.folder.DOCU),f.replaceIcoClass(h,g,d.folder.DOCU),a.css("display","none")):t&&f.setNodeLineIcos(b,t);o&&f.setNodeLineIcos(b,o);b.check&&b.check.enable&&f.repairChkClass&&(f.repairChkClass(b,h),f.repairParentChkClassWithSelf(b,h),h!=c.parent&&f.repairParentChkClassWithSelf(b,c));l||f.expandCollapseParentNode(b,c.getParentNode(),!0,e)}},removeEditBtn:function(b){k("#"+b.tId+d.id.EDIT).unbind().remove()},removeRemoveBtn:function(b){k("#"+b.tId+d.id.REMOVE).unbind().remove()}, +removeTreeDom:function(b,a){a.isHover=!1;f.removeEditBtn(a);f.removeRemoveBtn(a);h.apply(b.view.removeHoverDom,[b.treeId,a])},repairNodeLevelClass:function(b,a,c){if(c!==a.level){var b=k("#"+a.tId),f=k("#"+a.tId+d.id.A),e=k("#"+a.tId+d.id.UL),c="level"+c,a="level"+a.level;b.removeClass(c);b.addClass(a);f.removeClass(c);f.addClass(a);e.removeClass(c);e.addClass(a)}}},event:{},data:{setSonNodeLevel:function(b,a,c){if(c){var d=b.data.key.children;c.level=a?a.level+1:0;if(c[d])for(var a=0,e=c[d].length;a< +e;a++)c[d][a]&&p.setSonNodeLevel(b,c,c[d][a])}}}});var E=k.fn.zTree,h=E._z.tools,d=E.consts,f=E._z.view,p=E._z.data;p.exSetting({edit:{enable:!1,editNameSelectAll:!1,showRemoveBtn:!0,showRenameBtn:!0,removeTitle:"remove",renameTitle:"rename",drag:{autoExpandTrigger:!1,isCopy:!0,isMove:!0,prev:!0,next:!0,inner:!0,minMoveSize:5,borderMax:10,borderMin:-5,maxShowNodeNum:5,autoOpenTime:500}},view:{addHoverDom:null,removeHoverDom:null},callback:{beforeDrag:null,beforeDragOpen:null,beforeDrop:null,beforeEditName:null, +beforeRename:null,onDrag:null,onDrop:null,onRename:null}});p.addInitBind(function(b){var a=b.treeObj,c=d.event;a.bind(c.RENAME,function(a,c,d){h.apply(b.callback.onRename,[a,c,d])});a.bind(c.REMOVE,function(a,c,d){h.apply(b.callback.onRemove,[a,c,d])});a.bind(c.DRAG,function(a,c,d,f){h.apply(b.callback.onDrag,[c,d,f])});a.bind(c.DROP,function(a,c,d,f,g,k,o){h.apply(b.callback.onDrop,[c,d,f,g,k,o])})});p.addInitUnBind(function(b){var b=b.treeObj,a=d.event;b.unbind(a.RENAME);b.unbind(a.REMOVE);b.unbind(a.DRAG); +b.unbind(a.DROP)});p.addInitCache(function(){});p.addInitNode(function(b,a,c){if(c)c.isHover=!1,c.editNameFlag=!1});p.addInitProxy(function(b){var a=b.target,c=p.getSetting(b.data.treeId),f=b.relatedTarget,e="",l=null,j="",g=null,k=null;if(h.eqs(b.type,"mouseover")){if(k=h.getMDom(c,a,[{tagName:"a",attrName:"treeNode"+d.id.A}]))e=k.parentNode.id,j="hoverOverNode"}else if(h.eqs(b.type,"mouseout"))k=h.getMDom(c,f,[{tagName:"a",attrName:"treeNode"+d.id.A}]),k||(e="remove",j="hoverOutNode");else if(h.eqs(b.type, +"mousedown")&&(k=h.getMDom(c,a,[{tagName:"a",attrName:"treeNode"+d.id.A}])))e=k.parentNode.id,j="mousedownNode";if(e.length>0)switch(l=p.getNodeCache(c,e),j){case "mousedownNode":g=D.onMousedownNode;break;case "hoverOverNode":g=D.onHoverOverNode;break;case "hoverOutNode":g=D.onHoverOutNode}return{stop:!1,node:l,nodeEventType:j,nodeEventCallback:g,treeEventType:"",treeEventCallback:null}});p.addInitRoot(function(b){b=p.getRoot(b);b.curEditNode=null;b.curEditInput=null;b.curHoverNode=null;b.dragFlag= +0;b.dragNodeShowBefore=[];b.dragMaskList=[];b.showHoverDom=!0});p.addZTreeTools(function(b,a){a.cancelEditName=function(a){var d=p.getRoot(b),e=b.data.key.name,h=d.curEditNode;d.curEditNode&&f.cancelCurEditNode(b,a?a:h[e])};a.copyNode=function(a,k,e,l){if(!k)return null;if(a&&!a.isParent&&b.data.keep.leaf&&e===d.move.TYPE_INNER)return null;var j=h.clone(k);if(!a)a=null,e=d.move.TYPE_INNER;e==d.move.TYPE_INNER?(k=function(){f.addNodes(b,a,[j],l)},h.canAsync(b,a)?f.asyncNode(b,a,l,k):k()):(f.addNodes(b, +a.parentNode,[j],l),f.moveNode(b,a,j,e,!1,l));return j};a.editName=function(a){a&&a.tId&&a===p.getNodeCache(b,a.tId)&&(a.parentTId&&f.expandCollapseParentNode(b,a.getParentNode(),!0),f.editNode(b,a))};a.moveNode=function(a,q,e,l){function j(){f.moveNode(b,a,q,e,!1,l)}if(!q)return q;if(a&&!a.isParent&&b.data.keep.leaf&&e===d.move.TYPE_INNER)return null;else if(a&&(q.parentTId==a.tId&&e==d.move.TYPE_INNER||k("#"+q.tId).find("#"+a.tId).length>0))return null;else a||(a=null);h.canAsync(b,a)?f.asyncNode(b, +a,l,j):j();return q};a.setEditable=function(a){b.edit.enable=a;return this.refresh()}});var K=f.cancelPreSelectedNode;f.cancelPreSelectedNode=function(b,a){for(var c=p.getRoot(b).curSelectedList,d=0,e=c.length;d"); + }, + showNode: function(setting, node, options) { + node.isHidden = false; + data.initShowForExCheck(setting, node); + $("#" + node.tId).show(); + }, + showNodes: function(setting, nodes, options) { + if (!nodes || nodes.length == 0) { + return; + } + var pList = {}, i, j; + for (i=0, j=nodes.length; i 0 && !parentNode[childKey][0].isHidden) { + parentNode[childKey][0].isFirstNode = true; + } else if (childLength > 0) { + view.setFirstNodeForHide(setting, parentNode[childKey]); + } + }, + setLastNode: function(setting, parentNode) { + var childKey = setting.data.key.children, childLength = parentNode[childKey].length; + if (childLength > 0 && !parentNode[childKey][0].isHidden) { + parentNode[childKey][childLength - 1].isLastNode = true; + } else if (childLength > 0) { + view.setLastNodeForHide(setting, parentNode[childKey]); + } + }, + setFirstNodeForHide: function(setting, nodes) { + var n,i,j; + for (i=0, j=nodes.length; i=0; i--) { + n = nodes[i]; + if (n.isLastNode) { + break; + } + if (!n.isHidden && !n.isLastNode) { + n.isLastNode = true; + view.setNodeLineIcos(setting, n); + break; + } else { + n = null; + } + } + return n; + }, + setLastNodeForShow: function(setting, nodes) { + var n,i,j, last, old; + for (i=nodes.length-1; i>=0; i--) { + n = nodes[i]; + if (!last && !n.isHidden && n.isLastNode) { + last = n; + break; + } else if (!last && !n.isHidden && !n.isLastNode) { + n.isLastNode = true; + last = n; + view.setNodeLineIcos(setting, n); + } else if (last && n.isLastNode) { + n.isLastNode = false; + old = n; + view.setNodeLineIcos(setting, n); + break; + } else { + n = null; + } + } + return {"new":last, "old":old}; + } + }, + + _z = { + view: _view, + data: _data + }; + $.extend(true, $.fn.zTree._z, _z); + + var zt = $.fn.zTree, + tools = zt._z.tools, + consts = zt.consts, + view = zt._z.view, + data = zt._z.data, + event = zt._z.event; + + data.addInitNode(_initNode); + data.addBeforeA(_beforeA); + data.addZTreeTools(_zTreeTools); + +// Override method in core + var _dInitNode = data.initNode; + data.tmpHideParent = -1; + data.initNode = function(setting, level, node, parentNode, isFirstNode, isLastNode, openFlag) { + if (data.tmpHideParent !== parentNode) { + data.tmpHideParent = parentNode; + var tmpPNode = (parentNode) ? parentNode: data.getRoot(setting), + children = tmpPNode[setting.data.key.children]; + data.tmpHideFirstNode = view.setFirstNodeForHide(setting, children); + data.tmpHideLastNode = view.setLastNodeForHide(setting, children); + view.setNodeLineIcos(setting, data.tmpHideFirstNode); + view.setNodeLineIcos(setting, data.tmpHideLastNode); + } + isFirstNode = (data.tmpHideFirstNode === node); + isLastNode = (data.tmpHideLastNode === node); + if (_dInitNode) _dInitNode.apply(data, arguments); + if (isLastNode) { + view.clearOldLastNode(setting, node); + } + } + + var _makeChkFlag = data.makeChkFlag; + if (!!_makeChkFlag) { + data.makeChkFlag = function(setting, node) { + if (!!node && !!node.isHidden) { + return; + } + _makeChkFlag.apply(data, arguments); + } + } + + var _getTreeCheckedNodes = data.getTreeCheckedNodes; + if (!!_getTreeCheckedNodes) { + data.getTreeCheckedNodes = function(setting, nodes, checked, results) { + if (!!nodes && nodes.length > 0) { + var p = nodes[0].getParentNode(); + if (!!p && !!p.isHidden) { + return []; + } + } + return _getTreeCheckedNodes.apply(data, arguments); + } + } + + var _getTreeChangeCheckedNodes = data.getTreeChangeCheckedNodes; + if (!!_getTreeChangeCheckedNodes) { + data.getTreeChangeCheckedNodes = function(setting, nodes, results) { + if (!!nodes && nodes.length > 0) { + var p = nodes[0].getParentNode(); + if (!!p && !!p.isHidden) { + return []; + } + } + return _getTreeChangeCheckedNodes.apply(data, arguments); + } + } + + var _expandCollapseSonNode = view.expandCollapseSonNode; + if (!!_expandCollapseSonNode) { + view.expandCollapseSonNode = function(setting, node, expandFlag, animateFlag, callback) { + if (!!node && !!node.isHidden) { + return; + } + _expandCollapseSonNode.apply(view, arguments); + } + } + + var _setSonNodeCheckBox = view.setSonNodeCheckBox; + if (!!_setSonNodeCheckBox) { + view.setSonNodeCheckBox = function(setting, node, value, srcNode) { + if (!!node && !!node.isHidden) { + return; + } + _setSonNodeCheckBox.apply(view, arguments); + } + } + + var _repairParentChkClassWithSelf = view.repairParentChkClassWithSelf; + if (!!_repairParentChkClassWithSelf) { + view.repairParentChkClassWithSelf = function(setting, node) { + if (!!node && !!node.isHidden) { + return; + } + _repairParentChkClassWithSelf.apply(view, arguments); + } + } +})(jQuery); \ No newline at end of file diff --git a/alive-admin/src/main/resources/static/ztree/js/jquery.ztree.exhide-3.5.min.js b/alive-admin/src/main/resources/static/ztree/js/jquery.ztree.exhide-3.5.min.js new file mode 100644 index 0000000..3f9ce57 --- /dev/null +++ b/alive-admin/src/main/resources/static/ztree/js/jquery.ztree.exhide-3.5.min.js @@ -0,0 +1,22 @@ +/* + * JQuery zTree exHideNodes 3.5 + * http://zTree.me/ + * + * Copyright (c) 2010 Hunter.z + * + * Licensed same as jquery - MIT License + * http://www.opensource.org/licenses/mit-license.php + * + * email: hunter.z@263.net + * Date: 2012-11-20 + */ +(function(i){i.extend(!0,i.fn.zTree._z,{view:{clearOldFirstNode:function(c,b){for(var a=b.getNextNode();a;){if(a.isFirstNode){a.isFirstNode=!1;f.setNodeLineIcos(c,a);break}if(a.isLastNode)break;a=a.getNextNode()}},clearOldLastNode:function(c,b){for(var a=b.getPreNode();a;){if(a.isLastNode){a.isLastNode=!1;f.setNodeLineIcos(c,a);break}if(a.isFirstNode)break;a=a.getPreNode()}},makeDOMNodeMainBefore:function(c,b,a){c.push("
                                                                                                                                                                                                                                                                                                        • ")},showNode:function(c,b){b.isHidden=!1;e.initShowForExCheck(c,b);i("#"+b.tId).show()},showNodes:function(c,b,a){if(b&&b.length!=0){var d={},h,j;for(h=0,j=b.length;h0&&!b[a][0].isHidden? +b[a][0].isFirstNode=!0:d>0&&f.setFirstNodeForHide(c,b[a])},setLastNode:function(c,b){var a=c.data.key.children,d=b[a].length;d>0&&!b[a][0].isHidden?b[a][d-1].isLastNode=!0:d>0&&f.setLastNodeForHide(c,b[a])},setFirstNodeForHide:function(c,b){var a,d,h;for(d=0,h=b.length;d=0;d--){a=b[d];if(a.isLastNode)break;if(!a.isHidden&&!a.isLastNode){a.isLastNode=!0;f.setNodeLineIcos(c,a);break}else a=null}return a},setLastNodeForShow:function(c,b){var a,d,e,j;for(d=b.length-1;d>=0;d--)if(a=b[d],!e&&!a.isHidden&& +a.isLastNode){e=a;break}else if(!e&&!a.isHidden&&!a.isLastNode)a.isLastNode=!0,e=a,f.setNodeLineIcos(c,a);else if(e&&a.isLastNode){a.isLastNode=!1;j=a;f.setNodeLineIcos(c,a);break}return{"new":e,old:j}}},data:{initHideForExCheck:function(c,b){if(b.isHidden&&c.check&&c.check.enable)b._nocheck=!!b.nocheck,b.nocheck=!0,b.check_Child_State=-1,f.repairParentChkClassWithSelf&&f.repairParentChkClassWithSelf(c,b)},initShowForExCheck:function(c,b){if(!b.isHidden&&c.check&&c.check.enable){b.nocheck=b._nocheck; +delete b._nocheck;if(f.setChkClass){var a=i("#"+b.tId+s.id.CHECK);f.setChkClass(c,a,b)}f.repairParentChkClassWithSelf&&f.repairParentChkClassWithSelf(c,b)}}}});var k=i.fn.zTree,t=k._z.tools,s=k.consts,f=k._z.view,e=k._z.data;e.addInitNode(function(c,b,a){if(typeof a.isHidden=="string")a.isHidden=t.eqs(a.isHidden,"true");a.isHidden=!!a.isHidden;e.initHideForExCheck(c,a)});e.addBeforeA(function(){});e.addZTreeTools(function(c,b){b.showNodes=function(a,b){f.showNodes(c,a,b)};b.showNode=function(a,b){a&& +f.showNodes(c,[a],b)};b.hideNodes=function(a,b){f.hideNodes(c,a,b)};b.hideNode=function(a,b){a&&f.hideNodes(c,[a],b)};var a=b.checkNode;if(a)b.checkNode=function(c,e,f,g){(!c||!c.isHidden)&&a.apply(b,arguments)}});var l=e.initNode;e.tmpHideParent=-1;e.initNode=function(c,b,a,d,h,j,g){if(e.tmpHideParent!==d){e.tmpHideParent=d;var i=(d?d:e.getRoot(c))[c.data.key.children];e.tmpHideFirstNode=f.setFirstNodeForHide(c,i);e.tmpHideLastNode=f.setLastNodeForHide(c,i);f.setNodeLineIcos(c,e.tmpHideFirstNode); +f.setNodeLineIcos(c,e.tmpHideLastNode)}h=e.tmpHideFirstNode===a;j=e.tmpHideLastNode===a;l&&l.apply(e,arguments);j&&f.clearOldLastNode(c,a)};var m=e.makeChkFlag;if(m)e.makeChkFlag=function(c,b){(!b||!b.isHidden)&&m.apply(e,arguments)};var n=e.getTreeCheckedNodes;if(n)e.getTreeCheckedNodes=function(c,b,a,d){if(b&&b.length>0){var f=b[0].getParentNode();if(f&&f.isHidden)return[]}return n.apply(e,arguments)};var o=e.getTreeChangeCheckedNodes;if(o)e.getTreeChangeCheckedNodes=function(c,b,a){if(b&&b.length> +0){var d=b[0].getParentNode();if(d&&d.isHidden)return[]}return o.apply(e,arguments)};var p=f.expandCollapseSonNode;if(p)f.expandCollapseSonNode=function(c,b,a,d,e){(!b||!b.isHidden)&&p.apply(f,arguments)};var q=f.setSonNodeCheckBox;if(q)f.setSonNodeCheckBox=function(c,b,a,d){(!b||!b.isHidden)&&q.apply(f,arguments)};var r=f.repairParentChkClassWithSelf;if(r)f.repairParentChkClassWithSelf=function(c,b){(!b||!b.isHidden)&&r.apply(f,arguments)}})(jQuery); diff --git a/alive-admin/src/main/resources/templates/build/build.html b/alive-admin/src/main/resources/templates/build/build.html new file mode 100644 index 0000000..1fbf8a9 --- /dev/null +++ b/alive-admin/src/main/resources/templates/build/build.html @@ -0,0 +1,168 @@ + + + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          元素
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + 拖拽左侧的表单元素到右侧区域,即可生成相应的HTML代码,表单代码,轻松搞定! +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          这里是纯文字信息

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          拖拽左侧表单元素到此区域
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + 请选择显示的列数: + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + + + diff --git a/alive-admin/src/main/resources/templates/demo/form/autocomplete.html b/alive-admin/src/main/resources/templates/demo/form/autocomplete.html new file mode 100644 index 0000000..d35efad --- /dev/null +++ b/alive-admin/src/main/resources/templates/demo/form/autocomplete.html @@ -0,0 +1,322 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          搜索自动补全https://github.com/lzwme/bootstrap-suggest-plugin
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          展示下拉菜单按钮。

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +

                                                                                                                                                                                                                                                                                                          不展示下拉菜单按钮。

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +

                                                                                                                                                                                                                                                                                                          前端json中获取数据

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +

                                                                                                                                                                                                                                                                                                          百度搜索

                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          支持逗号分隔多关键字

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +

                                                                                                                                                                                                                                                                                                          淘宝搜索

                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          支持逗号分隔多关键字

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          搜索自动补全https://github.com/bassjobsen/Bootstrap-3-Typeahead
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          通过数据属性的基本示例。

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +

                                                                                                                                                                                                                                                                                                          通过javascript的基本示例。

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          通过javascript的复杂示例。

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          后台url中获取简单数据

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + + diff --git a/alive-admin/src/main/resources/templates/demo/form/basic.html b/alive-admin/src/main/resources/templates/demo/form/basic.html new file mode 100644 index 0000000..c8100f0 --- /dev/null +++ b/alive-admin/src/main/resources/templates/demo/form/basic.html @@ -0,0 +1,593 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          基本表单 简单登录表单示例
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          登录

                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          欢迎登录本站(⊙o⊙)

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          还不是会员?

                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          您可以注册一个新账户

                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          + +

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          横向表单
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          欢迎登录本站(⊙o⊙)

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + 请输入您注册时所填的E-mail +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          内联表单
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          弹出表单 弹出框登录示例
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          所有表单元素 包括自定义样式的复选和单选按钮
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + 帮助文本,可能会超过一行,以块级元素显示 +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          ruoyi.vip

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          @ + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + .00 +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          ¥ + .00 +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + diff --git a/alive-admin/src/main/resources/templates/demo/form/button.html b/alive-admin/src/main/resources/templates/demo/form/button.html new file mode 100644 index 0000000..f45bd6b --- /dev/null +++ b/alive-admin/src/main/resources/templates/demo/form/button.html @@ -0,0 +1,620 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          按钮颜色
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          + 可使用class来快速改变按钮的颜色,如.btn-primary +

                                                                                                                                                                                                                                                                                                          + +

                                                                                                                                                                                                                                                                                                          + 普通按钮 +

                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          + + + + + + + + +

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          按钮大小
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          + 可以通过添加class的值为.btn-lg, .btn-sm, or .btn-xs来修改按钮的大小 +

                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          按钮尺寸

                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + + +

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          线性按钮
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          + 要使用线性按钮,可添加class.btn-block.btn-outline +

                                                                                                                                                                                                                                                                                                          + +

                                                                                                                                                                                                                                                                                                          线性按钮

                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          + + + + + + + +

                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          块级按钮

                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          + +

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          3D按钮
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          + 可以通过添加.dimclass来使用3D按钮. +

                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          3D按钮

                                                                                                                                                                                                                                                                                                          + + + + + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          下拉按钮
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          + 下拉按钮可使用任何颜色任何大小 +

                                                                                                                                                                                                                                                                                                          + +

                                                                                                                                                                                                                                                                                                          下拉按钮

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          按钮组
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +

                                                                                                                                                                                                                                                                                                          按钮组

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          图标按钮
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          + 任何按钮都可以在左侧或右侧添加图标 +

                                                                                                                                                                                                                                                                                                          + +

                                                                                                                                                                                                                                                                                                          图标按钮

                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          + + + + + + + + 分享到微信 + + + 使用QQ账号登录 + + + + + + + + + + + + + + + + + + + + + + + + 收藏 + +

                                                                                                                                                                                                                                                                                                          + +

                                                                                                                                                                                                                                                                                                          按钮切换

                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          圆形图标按钮
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          + 要使用圆形图标按钮,可以通过添加class为.btn-circle实现 +

                                                                                                                                                                                                                                                                                                          + +

                                                                                                                                                                                                                                                                                                          圆形按钮

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          圆角按钮
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          + 可以通过添加class的值微.btn-rounded来实现圆角按钮 +

                                                                                                                                                                                                                                                                                                          + +

                                                                                                                                                                                                                                                                                                          按钮组

                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          + 默认 + 主要 + 成果 + 信息 + 警告 + 危险 + 危险 +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + 圆角块级带图标按钮 +

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + diff --git a/alive-admin/src/main/resources/templates/demo/form/cards.html b/alive-admin/src/main/resources/templates/demo/form/cards.html new file mode 100644 index 0000000..35a7f68 --- /dev/null +++ b/alive-admin/src/main/resources/templates/demo/form/cards.html @@ -0,0 +1,319 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + NEW +
                                                                                                                                                                                                                                                                                                          IT-01 - 设计部
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          部门简介

                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          + 平面设计(graphic design),也称为视觉传达设计,是以“视觉”作为沟通和表现的方式,透过多种方式来创造和结合符号、图片和文字,借此作出用来传达想法或讯息的视觉表现。 +

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + 当前项目进度: +
                                                                                                                                                                                                                                                                                                          48%
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          项目
                                                                                                                                                                                                                                                                                                          + 12 +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          周期
                                                                                                                                                                                                                                                                                                          + 4个月 +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          预算
                                                                                                                                                                                                                                                                                                          + ¥200,913 +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          IT-04 - 市场部
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          部门简介

                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          + 平面设计(graphic design),也称为视觉传达设计,是以“视觉”作为沟通和表现的方式,透过多种方式来创造和结合符号、图片和文字,借此作出用来传达想法或讯息的视觉表现。 +

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + 当前项目进度: +
                                                                                                                                                                                                                                                                                                          32%
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          项目
                                                                                                                                                                                                                                                                                                          + 24 +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          周期
                                                                                                                                                                                                                                                                                                          + 3个月 +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          预算
                                                                                                                                                                                                                                                                                                          + ¥190,325 +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          IT-07 - 财务部
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          部门简介

                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          + 平面设计(graphic design),也称为视觉传达设计,是以“视觉”作为沟通和表现的方式,透过多种方式来创造和结合符号、图片和文字,借此作出用来传达想法或讯息的视觉表现。 +

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + 当前项目进度: +
                                                                                                                                                                                                                                                                                                          73%
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          项目
                                                                                                                                                                                                                                                                                                          + 11 +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          周期
                                                                                                                                                                                                                                                                                                          + 6个月 +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          预算
                                                                                                                                                                                                                                                                                                          + ¥560,105 +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          IT-02 - 开发部
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          部门简介

                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          + 平面设计(graphic design),也称为视觉传达设计,是以“视觉”作为沟通和表现的方式,透过多种方式来创造和结合符号、图片和文字,借此作出用来传达想法或讯息的视觉表现。 +

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + 当前项目进度: +
                                                                                                                                                                                                                                                                                                          61%
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          项目
                                                                                                                                                                                                                                                                                                          + 43 +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          周期
                                                                                                                                                                                                                                                                                                          + 1个月 +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          预算
                                                                                                                                                                                                                                                                                                          + ¥705,913 +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + 截止 +
                                                                                                                                                                                                                                                                                                          IT-05 - 管理层
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          部门简介

                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          + 平面设计(graphic design),也称为视觉传达设计,是以“视觉”作为沟通和表现的方式,透过多种方式来创造和结合符号、图片和文字,借此作出用来传达想法或讯息的视觉表现。 +

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + 当前项目进度: +
                                                                                                                                                                                                                                                                                                          14%
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          项目
                                                                                                                                                                                                                                                                                                          + 8 +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          周期
                                                                                                                                                                                                                                                                                                          + 7个月 +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          预算
                                                                                                                                                                                                                                                                                                          + ¥40,200 +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          IT-08 - 销售部
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          部门简介

                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          + 平面设计(graphic design),也称为视觉传达设计,是以“视觉”作为沟通和表现的方式,透过多种方式来创造和结合符号、图片和文字,借此作出用来传达想法或讯息的视觉表现。 +

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + 当前项目进度: +
                                                                                                                                                                                                                                                                                                          25%
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          项目
                                                                                                                                                                                                                                                                                                          + 25 +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          周期
                                                                                                                                                                                                                                                                                                          + 4个月 +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          预算
                                                                                                                                                                                                                                                                                                          + ¥140,105 +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          IT-02 - 销售部
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          部门简介

                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          + 平面设计(graphic design),也称为视觉传达设计,是以“视觉”作为沟通和表现的方式,透过多种方式来创造和结合符号、图片和文字,借此作出用来传达想法或讯息的视觉表现。 +

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + 当前项目进度: +
                                                                                                                                                                                                                                                                                                          82%
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          项目
                                                                                                                                                                                                                                                                                                          + 68 +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          周期
                                                                                                                                                                                                                                                                                                          + 2个月 +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          预算
                                                                                                                                                                                                                                                                                                          + ¥701,400 +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          IT-06 - 销售部
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          部门简介

                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          + 平面设计(graphic design),也称为视觉传达设计,是以“视觉”作为沟通和表现的方式,透过多种方式来创造和结合符号、图片和文字,借此作出用来传达想法或讯息的视觉表现。 +

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + 当前项目进度: +
                                                                                                                                                                                                                                                                                                          26%
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          项目
                                                                                                                                                                                                                                                                                                          + 16 +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          周期
                                                                                                                                                                                                                                                                                                          + 8个月 +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          预算
                                                                                                                                                                                                                                                                                                          + ¥160,100 +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          IT-09 - 销售部
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          部门简介

                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          + 平面设计(graphic design),也称为视觉传达设计,是以“视觉”作为沟通和表现的方式,透过多种方式来创造和结合符号、图片和文字,借此作出用来传达想法或讯息的视觉表现。 +

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + 当前项目进度: +
                                                                                                                                                                                                                                                                                                          18%
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          项目
                                                                                                                                                                                                                                                                                                          + 53 +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          周期
                                                                                                                                                                                                                                                                                                          + 9个月 +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          预算
                                                                                                                                                                                                                                                                                                          + ¥60,140 +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + diff --git a/alive-admin/src/main/resources/templates/demo/form/cxselect.html b/alive-admin/src/main/resources/templates/demo/form/cxselect.html new file mode 100644 index 0000000..9b2ab07 --- /dev/null +++ b/alive-admin/src/main/resources/templates/demo/form/cxselect.html @@ -0,0 +1,161 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          多级联动下拉https://github.com/ciaoca/cxSelect
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          简单联动示例。

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +

                                                                                                                                                                                                                                                                                                          国内省市区联动。

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +

                                                                                                                                                                                                                                                                                                          自定义选项。

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + diff --git a/alive-admin/src/main/resources/templates/demo/form/datetime.html b/alive-admin/src/main/resources/templates/demo/form/datetime.html new file mode 100644 index 0000000..c331f0a --- /dev/null +++ b/alive-admin/src/main/resources/templates/demo/form/datetime.html @@ -0,0 +1,236 @@ + + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          日期选择器 https://github.com/smalot/bootstrap-datetimepicker
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          日期选择器 https://github.com/sentsin/laydate
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + diff --git a/alive-admin/src/main/resources/templates/demo/form/duallistbox.html b/alive-admin/src/main/resources/templates/demo/form/duallistbox.html new file mode 100644 index 0000000..d9f7246 --- /dev/null +++ b/alive-admin/src/main/resources/templates/demo/form/duallistbox.html @@ -0,0 +1,65 @@ + + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          双重列表框 https://github.com/istvan-ujjmeszaros/bootstrap-duallistbox
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          + Bootstrap Dual Listbox是针对Twitter Bootstrap进行了优化的响应式双列表框。它适用于所有现代浏览器和触摸设备。 +

                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + diff --git a/alive-admin/src/main/resources/templates/demo/form/grid.html b/alive-admin/src/main/resources/templates/demo/form/grid.html new file mode 100644 index 0000000..2274d30 --- /dev/null +++ b/alive-admin/src/main/resources/templates/demo/form/grid.html @@ -0,0 +1,432 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          栅格设置
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +

                                                                                                                                                                                                                                                                                                          通过下表可以详细查看 Bootstrap 的栅格系统是如何在多种屏幕设备上工作的。

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                        • + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                          + 超小屏幕 + 手机 (<768px) + + 小屏幕 + 平板 (≥768px) + + 中等屏幕 + 桌面显示器 (≥992px) + + 大屏幕 + 大桌面显示器 (≥1200px) +
                                                                                                                                                                                                                                                                                                          栅格系统行为总是水平排列开始是堆叠在一起的,当大于这些阈值时将变为水平排列C
                                                                                                                                                                                                                                                                                                          .container 最大宽度None (自动)750px970px1170px
                                                                                                                                                                                                                                                                                                          类前缀.col-xs- + .col-sm- + .col-md- + .col-lg- +
                                                                                                                                                                                                                                                                                                          列(column)数12
                                                                                                                                                                                                                                                                                                          最大列(column)宽自动~62px~81px~97px
                                                                                                                                                                                                                                                                                                          槽(gutter)宽30px (每列左右均有 15px)
                                                                                                                                                                                                                                                                                                          可嵌套
                                                                                                                                                                                                                                                                                                          偏移(Offsets)
                                                                                                                                                                                                                                                                                                          列排序
                                                                                                                                                                                                                                                                                                          + + + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          从堆叠到水平排列
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +

                                                                                                                                                                                                                                                                                                          使用单一的一组 .col-md-* 栅格类,就可以创建一个基本的栅格系统,在手机和平板设备上一开始是堆叠在一起的(超小屏幕到小屏幕这一范围),在桌面(中等)屏幕设备上变为水平排列。所有“列(column)必须放在 ” .row 内。

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          .col-md-1
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          .col-md-1
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          .col-md-1
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          .col-md-1
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          .col-md-1
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          .col-md-1
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          .col-md-1
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          .col-md-1
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          .col-md-1
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          .col-md-1
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          .col-md-1
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          .col-md-1
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          .col-md-8
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          .col-md-4
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          .col-md-4
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          .col-md-4
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          .col-md-4
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          .col-md-6
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          .col-md-6
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          移动设备和桌面屏幕
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +

                                                                                                                                                                                                                                                                                                          是否不希望在小屏幕设备上所有列都堆叠在一起?那就使用针对超小屏幕和中等屏幕设备所定义的类吧,即 .col-xs-*.col-md-*。请看下面的实例,研究一下这些是如何工作的。

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          .col-xs-12 .col-md-8
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          .col-xs-6 .col-md-4
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          .col-xs-6 .col-md-4
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          .col-xs-6 .col-md-4
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          .col-xs-6 .col-md-4
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          .col-xs-6
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          .col-xs-6
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          手机、平板、桌面
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +

                                                                                                                                                                                                                                                                                                          在上面案例的基础上,通过使用针对平板设备的 .col-sm-* 类,我们来创建更加动态和强大的布局吧。

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          .col-xs-12 .col-sm-6 .col-md-8
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          .col-xs-6 .col-md-4
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          .col-xs-6 .col-sm-4
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          .col-xs-6 .col-sm-4
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          .col-xs-6 .col-sm-4
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          多余的列(column)将另起一行排列
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          在等宽的4网格中,网格不等高会碰到问题,为了解决这个问题,可使用.clearfix响应实用工具类 +

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + .col-xs-6 .col-sm-3 +
                                                                                                                                                                                                                                                                                                          调整窗口大小或者在手机上查看本示例 +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          .col-xs-6 .col-sm-3
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          .col-xs-6 .col-sm-3
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          .col-xs-6 .col-sm-3
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          列偏移
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +

                                                                                                                                                                                                                                                                                                          使用 .col-md-offset-* 类可以将列向右侧偏移。这些类实际是通过使用 * 选择器为当前元素增加了左侧的边距(margin)。例如,.col-md-offset-4 类将 .col-md-4 元素向右侧偏移了4个列(column)的宽度。

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          .col-md-4
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          .col-md-4 .col-md-offset-4
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          .col-md-3 .col-md-offset-3
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          .col-md-3 .col-md-offset-3
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          .col-md-6 .col-md-offset-3
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          嵌套列
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          为了使用内置的栅格系统将内容再次嵌套,可以通过添加一个新的 .row 元素和一系列 .col-sm-* 元素到已经存在的 .col-sm-* 元素内。被嵌套的行(row)所包含的列(column)的个数不能超过12(其实,没有要求你必须占满12列)。

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + 第一级: .col-md-9 +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + 第二级: .col-md-6 +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + 第二级: .col-md-6 +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          列排序
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          通过使用 .col-md-push-*.col-md-pull-* 类就可以很容易的改变列(column)的顺序。

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          .col-md-9 .col-md-push-3
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          .col-md-3 .col-md-pull-9
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + diff --git a/alive-admin/src/main/resources/templates/demo/form/invoice.html b/alive-admin/src/main/resources/templates/demo/form/invoice.html new file mode 100644 index 0000000..42b4e80 --- /dev/null +++ b/alive-admin/src/main/resources/templates/demo/form/invoice.html @@ -0,0 +1,122 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + 北京百度在线网络技术有限公司
                                                                                                                                                                                                                                                                                                          + 北京市海淀区上地十街10号
                                                                                                                                                                                                                                                                                                          + 总机: (+86 10) 5992 8888 +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          单据编号:

                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          H+-000567F7-00

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + 阿里巴巴集团
                                                                                                                                                                                                                                                                                                          + 中国杭州市华星路99号东部软件园创业大厦6层(310099)
                                                                                                                                                                                                                                                                                                          + 总机: (86) 571-8502-2088 +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          + 日期: 2014-11-11 +

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                          清单数量单价税率总价
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          尚都比拉2013冬装新款女装 韩版修身呢子大衣 秋冬气质羊毛呢外套 +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          1¥26.00¥1.20¥31,98
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          11*11夏娜 新款斗篷毛呢外套 女秋冬呢子大衣 韩版大码宽松呢大衣 +
                                                                                                                                                                                                                                                                                                          + 双十一特价 + +
                                                                                                                                                                                                                                                                                                          2¥80.00¥1.20¥196.80
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          2013秋装 新款女装韩版学生秋冬加厚加绒保暖开衫卫衣 百搭女外套 +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          3¥420.00¥1.20¥1033.20
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                          总价: + ¥1026.00
                                                                                                                                                                                                                                                                                                          税: + ¥235.98
                                                                                                                                                                                                                                                                                                          总计 + ¥1261.98
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          注意: 请在30日内完成付款,否则订单会自动取消。 +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + diff --git a/alive-admin/src/main/resources/templates/demo/form/jasny.html b/alive-admin/src/main/resources/templates/demo/form/jasny.html new file mode 100644 index 0000000..4bc8f71 --- /dev/null +++ b/alive-admin/src/main/resources/templates/demo/form/jasny.html @@ -0,0 +1,118 @@ + + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          文件上传控件 https://github.com/jasny/bootstrap
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + 选择文件更改 + 清除 +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + 选择文件更改 + + × +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + 选择图片更改 + 清除 +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + 选择图片更改 + 清除 +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          固定格式文本 https://github.com/jasny/bootstrap
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + 158-8888-88888 +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + + + 0730-8888888 +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + + + yyyy-mm-dd +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + + + 192.168.100.200 +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + + + 99-9999999 +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + diff --git a/alive-admin/src/main/resources/templates/demo/form/labels_tips.html b/alive-admin/src/main/resources/templates/demo/form/labels_tips.html new file mode 100644 index 0000000..3ee6563 --- /dev/null +++ b/alive-admin/src/main/resources/templates/demo/form/labels_tips.html @@ -0,0 +1,237 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          徽章 (Badges)
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          + 要添加徽章,只需要在元素上添加.badge即可,改变徽章的颜色可使用如下class,如.badge-primary。 +

                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          badge-primary +

                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          badge-info +

                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          badge-success +

                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          badge-warning +

                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          badge-danger +

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          标签 (Labels)
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          + 要添加徽章,只需要在元素上添加class.label即可,如果需要修改颜色,添加如下class,如.label-primary +

                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          label-primary +

                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          label-info +

                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          label-success +

                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          label-warning +

                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          label-danger +

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          通知样式
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + RuoYi是一个很棒的后台UI框架 了解更多. +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + RuoYi是一个很棒的后台UI框架 了解更多. +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + RuoYi是一个很棒的后台UI框架 了解更多. +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + RuoYi是一个很棒的后台UI框架 了解更多. +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          带关闭按钮的通知样式
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + RuoYi是一个很棒的后台UI框架 了解更多. +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + RuoYi是一个很棒的后台UI框架 了解更多. +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + RuoYi是一个很棒的后台UI框架 了解更多. +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + RuoYi是一个很棒的后台UI框架 了解更多. +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          工具提示
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          工具提示示例 深色背景

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          工具提示 - 单击提示

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + + + + diff --git a/alive-admin/src/main/resources/templates/demo/form/localrefresh.html b/alive-admin/src/main/resources/templates/demo/form/localrefresh.html new file mode 100644 index 0000000..cc2ad09 --- /dev/null +++ b/alive-admin/src/main/resources/templates/demo/form/localrefresh.html @@ -0,0 +1,61 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          任务列表

                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          + + 点击刷新按钮刷新数据到列表中 +

                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + diff --git a/alive-admin/src/main/resources/templates/demo/form/select.html b/alive-admin/src/main/resources/templates/demo/form/select.html new file mode 100644 index 0000000..cd5e94f --- /dev/null +++ b/alive-admin/src/main/resources/templates/demo/form/select.html @@ -0,0 +1,148 @@ + + + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          下拉框 https://github.com/select2/select2
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          下拉框 https://github.com/snapappointments/bootstrap-select
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + diff --git a/alive-admin/src/main/resources/templates/demo/form/sortable.html b/alive-admin/src/main/resources/templates/demo/form/sortable.html new file mode 100644 index 0000000..478be4c --- /dev/null +++ b/alive-admin/src/main/resources/templates/demo/form/sortable.html @@ -0,0 +1,198 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          任务列表

                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          在列表之间拖动任务面板

                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + + + + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                          • + 加强过程管理,及时统计教育经费使用情况,做到底码清楚, +
                                                                                                                                                                                                                                                                                                            + 标签 + 2018.09.01 +
                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + 支持财会人员的继续培训工作。 +
                                                                                                                                                                                                                                                                                                            + 标记 + 2018.05.12 +
                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + 协同教导处搞好助学金、减免教科书费的工作。 +
                                                                                                                                                                                                                                                                                                            + 标记 + 2018.09.10 +
                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + 要求会计、出纳人员严格执行财务制度,遵守岗位职责,按时上报各种资料。 +
                                                                                                                                                                                                                                                                                                            + 确定 + 2018.06.10 +
                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + 做好职工公费医疗工作,按时发放门诊费。 +
                                                                                                                                                                                                                                                                                                            + 标签 + 2018.09.09 +
                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + 有计划地把课本复习三至五遍。 +
                                                                                                                                                                                                                                                                                                            + 确定 + 2018.08.04 +
                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + 看一本高质量的高中语法书 +
                                                                                                                                                                                                                                                                                                            + 标记 + 2018.05.12 +
                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + 选择一份较好的英语报纸,通过阅读提高英语学习效果。 +
                                                                                                                                                                                                                                                                                                            + 标记 + 2018.09.10 +
                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          进行中

                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          在列表之间拖动任务面板

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                          • + 全面、较深入地掌握我们“产品”的功能、特色和优势并做到应用自如。 +
                                                                                                                                                                                                                                                                                                            + 标签 + 2018.09.01 +
                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + 根据自己以前所了解的和从其他途径搜索到的信息,录入客户资料150家。 +
                                                                                                                                                                                                                                                                                                            + 标记 + 2018.05.12 +
                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + 锁定有意向客户20家。 +
                                                                                                                                                                                                                                                                                                            + 标记 + 2018.09.10 +
                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + 力争完成销售指标。 +
                                                                                                                                                                                                                                                                                                            + 标签 + 2018.09.09 +
                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + 在总结和摸索中前进。 +
                                                                                                                                                                                                                                                                                                            + 确定 + 2018.08.04 +
                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + 不断学习行业知识、产品知识,为客户带来实用介绍内容 +
                                                                                                                                                                                                                                                                                                            + 标记 + 2018.05.12 +
                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + 先友后单:与客户发展良好友谊,转换销售员角色,处处为客户着想 +
                                                                                                                                                                                                                                                                                                            + 标记 + 2018.11.04 +
                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          已完成

                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          在列表之间拖动任务面板

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                          • + 制定工作日程表 +
                                                                                                                                                                                                                                                                                                            + 标记 + 2018.09.10 +
                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + 每天坚持打40个有效电话,挖掘潜在客户 +
                                                                                                                                                                                                                                                                                                            + 标签 + 2018.09.09 +
                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + 拜访客户之前要对该客户做全面的了解(客户的潜在需求、职位、权限以及个人性格和爱好) +
                                                                                                                                                                                                                                                                                                            + 标签 + 2018.09.09 +
                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + 提高自己电话营销技巧,灵活专业地与客户进行电话交流 +
                                                                                                                                                                                                                                                                                                            + 确定 + 2018.08.04 +
                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + 通过电话销售过程中了解各盛市的设备仪器使用、采购情况及相关重要追踪人 +
                                                                                                                                                                                                                                                                                                            + 标记 + 2018.05.12 +
                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + diff --git a/alive-admin/src/main/resources/templates/demo/form/summernote.html b/alive-admin/src/main/resources/templates/demo/form/summernote.html new file mode 100644 index 0000000..99b1396 --- /dev/null +++ b/alive-admin/src/main/resources/templates/demo/form/summernote.html @@ -0,0 +1,93 @@ + + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          Summernote 富文本编辑器
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          GTB后台管理系统

                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          网站管理后台网站会员中心CMSCRMOA等等,当然,您也可以对她进行深度定制,以做出更强系统。

                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          + 当前版本:v4.3.1 +

                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          + YES +

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          Summernote

                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          + Summernote是一个简单的基于Bootstrap的WYSIWYG富文本编辑器 +

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          官方文档请参考: + https://github.com/summernote/summernote +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          编辑/保存为html代码示例
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          你好,CTB

                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          H+是一个完全响应式,基于Bootstrap3.3.6最新版本开发的扁平化主题,她采用了主流的左右两栏式布局,使用了Html5+CSS3等现代技术,她提供了诸多的强大的可以重新组合的UI组件,并集成了最新的jQuery版本(v2.1.1),当然,也集成了很多功能强大,用途广泛的就jQuery插件,她可以用于所有的Web应用程序,如网站管理后台网站会员中心CMSCRMOA等等,当然,您也可以对她进行深度定制,以做出更强系统。

                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          + 当前版本:v4.3.1 +

                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          + 开源免费 +

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + diff --git a/alive-admin/src/main/resources/templates/demo/form/tabs_panels.html b/alive-admin/src/main/resources/templates/demo/form/tabs_panels.html new file mode 100644 index 0000000..8515af7 --- /dev/null +++ b/alive-admin/src/main/resources/templates/demo/form/tabs_panels.html @@ -0,0 +1,353 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          基本面板 这是一个自定义面板
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          + Bootstrap
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          + 简洁、直观、强悍的前端开发框架,让web开发更迅速、简单。

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + HTML5 文档类型 +

                                                                                                                                                                                                                                                                                                          Bootstrap 使用到的某些 HTML 元素和 CSS 属性需要将页面设置为 HTML5 文档类型。在你项目中的每个页面都要参照下面的格式进行设置。

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + 移动设备优先 +

                                                                                                                                                                                                                                                                                                          在 Bootstrap 2 中,我们对框架中的某些关键部分增加了对移动设备友好的样式。而在 Bootstrap 3 中,我们重写了整个框架,使其一开始就是对移动设备友好的。这次不是简单的增加一些可选的针对移动设备的样式,而是直接融合进了框架的内核中。也就是说,Bootstrap 是移动设备优先的。针对移动设备的样式融合进了框架的每个角落,而不是增加一个额外的文件。

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          图标选项卡

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + 排版与链接 + +

                                                                                                                                                                                                                                                                                                          Bootstrap 排版、链接样式设置了基本的全局样式。分别是: 为 body 元素设置 background-color: #fff; 使用 @font-family-base、@font-size-base 和 @line-height-base a变量作为排版的基本参数 为所有链接设置了基本颜色 @link-color ,并且当链接处于 :hover 状态时才添加下划线 这些样式都能在 scaffolding.less 文件中找到对应的源码。

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + Normalize.css + +

                                                                                                                                                                                                                                                                                                          为了增强跨浏览器表现的一致性,我们使用了 Normalize.css,这是由 Nicolas Gallagher 和 Jonathan Neal 维护的一个CSS 重置样式库。

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + 布局容器 + +

                                                                                                                                                                                                                                                                                                          Bootstrap 需要为页面内容和栅格系统包裹一个 .container 容器。我们提供了两个作此用处的类。注意,由于 padding 等属性的原因,这两种 容器类不能互相嵌套。

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + 栅格系统 + +

                                                                                                                                                                                                                                                                                                          Bootstrap 提供了一套响应式、移动设备优先的流式栅格系统,随着屏幕或视口(viewport)尺寸的增加,系统会自动分为最多12列。它包含了易于使用的预定义类,还有强大的mixin 用于生成更具语义的布局。

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + 排版与链接 + +

                                                                                                                                                                                                                                                                                                          Bootstrap 排版、链接样式设置了基本的全局样式。分别是: 为 body 元素设置 background-color: #fff; 使用 @font-family-base、@font-size-base 和 @line-height-base a变量作为排版的基本参数 为所有链接设置了基本颜色 @link-color ,并且当链接处于 :hover 状态时才添加下划线 这些样式都能在 scaffolding.less 文件中找到对应的源码。

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + 栅格系统 + +

                                                                                                                                                                                                                                                                                                          Bootstrap 提供了一套响应式、移动设备优先的流式栅格系统,随着屏幕或视口(viewport)尺寸的增加,系统会自动分为最多12列。它包含了易于使用的预定义类,还有强大的mixin 用于生成更具语义的布局。

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + 排版与链接 + +

                                                                                                                                                                                                                                                                                                          Bootstrap 排版、链接样式设置了基本的全局样式。分别是: 为 body 元素设置 background-color: #fff; 使用 @font-family-base、@font-size-base 和 @line-height-base a变量作为排版的基本参数 为所有链接设置了基本颜色 @link-color ,并且当链接处于 :hover 状态时才添加下划线 这些样式都能在 scaffolding.less 文件中找到对应的源码。

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + 栅格系统 + +

                                                                                                                                                                                                                                                                                                          Bootstrap 提供了一套响应式、移动设备优先的流式栅格系统,随着屏幕或视口(viewport)尺寸的增加,系统会自动分为最多12列。它包含了易于使用的预定义类,还有强大的mixin 用于生成更具语义的布局。

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          Bootstrap面板 自定义背景
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + 默认面板 +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          通过 .panel-heading 可以很简单地为面板加入一个标题容器。你也可以通过添加设置了 .panel-title 类的标签,添加一个预定义样式的标题。 为了给链接设置合适的颜色,务必将链接放到带有 .panel-title 类的标题标签内。

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + 主要 +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          通过 .panel-heading 可以很简单地为面板加入一个标题容器。你也可以通过添加设置了 .panel-title 类的标签,添加一个预定义样式的标题。 为了给链接设置合适的颜色,务必将链接放到带有 .panel-title 类的标题标签内。

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + 成功 +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          通过 .panel-heading 可以很简单地为面板加入一个标题容器。你也可以通过添加设置了 .panel-title 类的标签,添加一个预定义样式的标题。 为了给链接设置合适的颜色,务必将链接放到带有 .panel-title 类的标题标签内。

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + 信息 +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          通过 .panel-heading 可以很简单地为面板加入一个标题容器。你也可以通过添加设置了 .panel-title 类的标签,添加一个预定义样式的标题。 为了给链接设置合适的颜色,务必将链接放到带有 .panel-title 类的标题标签内。

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + 警告 +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          通过 .panel-heading 可以很简单地为面板加入一个标题容器。你也可以通过添加设置了 .panel-title 类的标签,添加一个预定义样式的标题。 为了给链接设置合适的颜色,务必将链接放到带有 .panel-title 类的标题标签内。

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + 危险 +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          通过 .panel-heading 可以很简单地为面板加入一个标题容器。你也可以通过添加设置了 .panel-title 类的标签,添加一个预定义样式的标题。 为了给链接设置合适的颜色,务必将链接放到带有 .panel-title 类的标题标签内。

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          折叠面板
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + 标题 #1 +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + Bootstrap相关优质项目推荐 这些项目或者是对Bootstrap进行了有益的补充,或者是基于Bootstrap开发的 +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          + 标题 #2 +

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + Bootstrap相关优质项目推荐 这些项目或者是对Bootstrap进行了有益的补充,或者是基于Bootstrap开发的 +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          + 标题 #3 +

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + Bootstrap相关优质项目推荐 这些项目或者是对Bootstrap进行了有益的补充,或者是基于Bootstrap开发的 +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          超大屏幕

                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          Bootstrap 支持的另一个特性,超大屏幕(Jumbotron)。顾名思义该组件可以增加标题的大小,并为登陆页面内容添加更多的外边距(margin)。使用超大屏幕(Jumbotron)的步骤如下:

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                          1. 创建一个带有 class .jumbotron. 的容器
                                                                                                                                                                                                                                                                                                          2. +
                                                                                                                                                                                                                                                                                                          3. 除了更大的 <h1>,字体粗细 font-weight 被减为 200px。
                                                                                                                                                                                                                                                                                                          4. +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +

                                                                                                                                                                                                                                                                                                          了解更多 +

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + diff --git a/alive-admin/src/main/resources/templates/demo/form/timeline.html b/alive-admin/src/main/resources/templates/demo/form/timeline.html new file mode 100644 index 0000000..0b0239e --- /dev/null +++ b/alive-admin/src/main/resources/templates/demo/form/timeline.html @@ -0,0 +1,113 @@ + + + + + + 时间轴 + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + 打开/关闭颜色/背景或方向版本: + 轻型版本 + 黑色版本 +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          会议

                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          上一年的销售业绩发布会。总结产品营销和销售趋势及销售的现状。 +

                                                                                                                                                                                                                                                                                                          + 更多信息 + + 今天
                                                                                                                                                                                                                                                                                                          + 2月3日 +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          给张三发送文档

                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          发送上年度《销售业绩报告》

                                                                                                                                                                                                                                                                                                          + 下载文档 + + 今天
                                                                                                                                                                                                                                                                                                          + 2月3日 +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          喝咖啡休息

                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          喝咖啡啦,啦啦啦~~

                                                                                                                                                                                                                                                                                                          + 更多 + 昨天
                                                                                                                                                                                                                                                                                                          2月2日
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          给李四打电话

                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          给李四打电话分配本月工作任务

                                                                                                                                                                                                                                                                                                          + 昨天
                                                                                                                                                                                                                                                                                                          2月2日
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          公司年会

                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          发年终奖啦,啦啦啦~~

                                                                                                                                                                                                                                                                                                          + 前天
                                                                                                                                                                                                                                                                                                          2月1日
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + diff --git a/alive-admin/src/main/resources/templates/demo/form/upload.html b/alive-admin/src/main/resources/templates/demo/form/upload.html new file mode 100644 index 0000000..787323c --- /dev/null +++ b/alive-admin/src/main/resources/templates/demo/form/upload.html @@ -0,0 +1,55 @@ + + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          文件上传控件 https://github.com/kartik-v/bootstrap-fileinput
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + diff --git a/alive-admin/src/main/resources/templates/demo/form/validate.html b/alive-admin/src/main/resources/templates/demo/form/validate.html new file mode 100644 index 0000000..31c0872 --- /dev/null +++ b/alive-admin/src/main/resources/templates/demo/form/validate.html @@ -0,0 +1,193 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          jQuery Validate 简介
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          jquery.validate.js 是一款优秀的jQuery表单验证插件。它具有如下特点:

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                          • 安装简单
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • 内置超过20种数据验证方法
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • 直列错误提示信息
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • 可扩展的数据验证方法
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • 使用内置的元数据或插件选项来指定您的验证规则
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • 优雅的交互设计
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          官网:http://jqueryvalidation.org/ +

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          简单示例
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          更多示例请访问官方示例页面:查看 +

                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          中文API可参考:http://doc.ruoyi.vip/ruoyi/document/zjwd.html#jquery-validate +

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          完整验证表单
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + + 这里写点提示的内容 +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + + 请再次输入您的密码 +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + diff --git a/alive-admin/src/main/resources/templates/demo/form/wizard.html b/alive-admin/src/main/resources/templates/demo/form/wizard.html new file mode 100644 index 0000000..1b48de3 --- /dev/null +++ b/alive-admin/src/main/resources/templates/demo/form/wizard.html @@ -0,0 +1,192 @@ + + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          表单向导

                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          Smart UI 部件允许您快速创建表单向导接口。

                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          了解 jQuery Steps +

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          基础表单向导
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          + 这是一个简单的表单向导示例 +

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          第一步

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          第一步

                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          + 这是第一步的内容 +

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +

                                                                                                                                                                                                                                                                                                          第二步

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          第二步

                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          + 这是第二步的内容 +

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +

                                                                                                                                                                                                                                                                                                          第三步

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          第三步

                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          + 这是第三步的内容 +

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          带验证的表单向导
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          + 带验证的表单向导 +

                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          + 下面这个示例展示了如何在表单向导中使用 jQuery Validation 插件 +

                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          账户

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          账户信息

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          个人资料

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          个人资料信息

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +

                                                                                                                                                                                                                                                                                                          警告

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          你是火星人 :-)

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +

                                                                                                                                                                                                                                                                                                          完成

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          条款

                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + diff --git a/alive-admin/src/main/resources/templates/demo/icon/fontawesome.html b/alive-admin/src/main/resources/templates/demo/icon/fontawesome.html new file mode 100644 index 0000000..634e2ec --- /dev/null +++ b/alive-admin/src/main/resources/templates/demo/icon/fontawesome.html @@ -0,0 +1,1944 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          Font Awesome 4.4.0

                                                                                                                                                                                                                                                                                                          字体图标的最佳集合。提供可伸缩矢量图标,可以立即进行定制大小、颜色、阴影,所有都可以用CSS样式来完成。 +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          所有图标 所有图标集合 - Font Awesome
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                          • + 给这些图标加上 + fa-spin class,就可以表现出加载动画了 +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                          • 所有品牌图标均为其各自所有者的商标
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • 使用这些商标并不表示该商标持有人的认可,反之亦然
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + diff --git a/alive-admin/src/main/resources/templates/demo/icon/glyphicons.html b/alive-admin/src/main/resources/templates/demo/icon/glyphicons.html new file mode 100644 index 0000000..b9c6f6b --- /dev/null +++ b/alive-admin/src/main/resources/templates/demo/icon/glyphicons.html @@ -0,0 +1,1364 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          Glyphicons 字体图标

                                                                                                                                                                                                                                                                                                          包括250多个来自 Glyphicon Halflings 的字体图标。Glyphicons Halflings 一般是收费的,但是他们的作者允许 Bootstrap 免费使用。为了表示感谢,希望你在使用时尽量为 Glyphicons 添加一个友情链接。 +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          所有图标 所有图标集合 - Glyphicons
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                            + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-asterisk +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-plus +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-euro +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-eur +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-minus +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-cloud +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-envelope +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-pencil +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-glass +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-music +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-search +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-heart +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-star +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-star-empty +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-user +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-film +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-th-large +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-th +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-th-list +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-ok +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-remove +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-zoom-in +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-zoom-out +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-off +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-signal +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-cog +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-trash +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-home +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-file +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-time +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-road +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-download-alt +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-download +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-upload +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-inbox +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-play-circle +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-repeat +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-refresh +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-list-alt +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-lock +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-flag +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-headphones +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-volume-off +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-volume-down +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-volume-up +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-qrcode +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-barcode +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-tag +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-tags +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-book +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-bookmark +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-print +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-camera +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-font +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-bold +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-italic +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-text-height +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-text-width +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-align-left +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-align-center +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-align-right +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-align-justify +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-list +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-indent-left +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-indent-right +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-facetime-video +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-picture +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-map-marker +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-adjust +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-tint +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-edit +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-share +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-check +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-move +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-step-backward +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-fast-backward +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-backward +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-play +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-pause +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-stop +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-forward +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-fast-forward +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-step-forward +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-eject +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-chevron-left +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-chevron-right +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-plus-sign +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-minus-sign +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-remove-sign +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-ok-sign +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-question-sign +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-info-sign +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-screenshot +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-remove-circle +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-ok-circle +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-ban-circle +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-arrow-left +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-arrow-right +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-arrow-up +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-arrow-down +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-share-alt +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-resize-full +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-resize-small +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-exclamation-sign +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-gift +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-leaf +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-fire +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-eye-open +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-eye-close +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-warning-sign +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-plane +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-calendar +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-random +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-comment +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-magnet +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-chevron-up +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-chevron-down +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-retweet +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-shopping-cart +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-folder-close +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-folder-open +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-resize-vertical +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-resize-horizontal +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-hdd +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-bullhorn +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-bell +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-certificate +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-thumbs-up +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-thumbs-down +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-hand-right +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-hand-left +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-hand-up +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-hand-down +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-circle-arrow-right +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-circle-arrow-left +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-circle-arrow-up +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-circle-arrow-down +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-globe +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-wrench +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-tasks +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-filter +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-briefcase +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-fullscreen +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-dashboard +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-paperclip +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-heart-empty +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-link +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-phone +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-pushpin +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-usd +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-gbp +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-sort +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-sort-by-alphabet +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-sort-by-alphabet-alt +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-sort-by-order +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-sort-by-order-alt +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-sort-by-attributes +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-sort-by-attributes-alt +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-unchecked +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-expand +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-collapse-down +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-collapse-up +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-log-in +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-flash +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-log-out +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-new-window +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-record +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-save +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-open +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-saved +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-import +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-export +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-send +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-floppy-disk +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-floppy-saved +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-floppy-remove +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-floppy-save +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-floppy-open +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-credit-card +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-transfer +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-cutlery +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-header +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-compressed +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-earphone +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-phone-alt +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-tower +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-stats +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-sd-video +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-hd-video +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-subtitles +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-sound-stereo +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-sound-dolby +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-sound-5-1 +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-sound-6-1 +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-sound-7-1 +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-copyright-mark +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-registration-mark +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-cloud-download +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-cloud-upload +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-tree-conifer +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-tree-deciduous +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-cd +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-save-file +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-open-file +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-level-up +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-copy +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-paste +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-alert +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-equalizer +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-king +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-queen +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-pawn +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-bishop +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-knight +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-baby-formula +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-tent +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-blackboard +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-bed +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-apple +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-erase +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-hourglass +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-lamp +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-duplicate +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-piggy-bank +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-scissors +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-bitcoin +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-btc +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-xbt +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-yen +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-jpy +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-ruble +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-rub +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-scale +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-ice-lolly +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-ice-lolly-tasted +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-education +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-option-horizontal +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-option-vertical +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-menu-hamburger +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-modal-window +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-oil +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-grain +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-sunglasses +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-text-size +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-text-color +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-text-background +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-object-align-top +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-object-align-bottom +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-object-align-horizontal +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-object-align-left +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-object-align-vertical +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-object-align-right +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-triangle-right +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-triangle-left +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-triangle-bottom +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-triangle-top +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-console +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-superscript +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-subscript +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-menu-left +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-menu-right +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-menu-down +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + + glyphicon glyphicon-menu-up +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + diff --git a/alive-admin/src/main/resources/templates/demo/modal/dialog.html b/alive-admin/src/main/resources/templates/demo/modal/dialog.html new file mode 100644 index 0000000..2444334 --- /dev/null +++ b/alive-admin/src/main/resources/templates/demo/modal/dialog.html @@ -0,0 +1,215 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          模态窗口
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          创建自定义的RuoYi模态窗口可通过添加.inmodal类来实现。

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          大小设置
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          模态窗口提供两种大小尺寸,可以通过为模态窗口的.modal-dialog添加类来实现

                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          动画窗口
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          您可以通过为模态窗口的.modal-content添加类来实现动画效果

                                                                                                                                                                                                                                                                                                          + + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          设置选项
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          可以通过数据绑定或者Javascript来实现模态窗口的相关功能,如果使用数据绑定,可以为元素添加data-,如data-backdrop=""

                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                          名称类型默认值说明
                                                                                                                                                                                                                                                                                                          backdropboolean 或 string 'static'true遮罩层,或使用'static'指定遮罩层与关闭模态窗口不关联
                                                                                                                                                                                                                                                                                                          keyboardbooleantrue按Esc键时退出模态窗口
                                                                                                                                                                                                                                                                                                          showbooleantrue初始化完成后显示模态窗口
                                                                                                                                                                                                                                                                                                          remotepathfalse +

                                                                                                                                                                                                                                                                                                          推荐使用数据绑定方式,或使用 + jQuery.load

                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          远程URL示例:

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          <a data-toggle="modal" href="remote.html" data-target="#modal">Click me</a>
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + diff --git a/alive-admin/src/main/resources/templates/demo/modal/form.html b/alive-admin/src/main/resources/templates/demo/modal/form.html new file mode 100644 index 0000000..b690450 --- /dev/null +++ b/alive-admin/src/main/resources/templates/demo/modal/form.html @@ -0,0 +1,95 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + diff --git a/alive-admin/src/main/resources/templates/demo/modal/layer.html b/alive-admin/src/main/resources/templates/demo/modal/layer.html new file mode 100644 index 0000000..9eba748 --- /dev/null +++ b/alive-admin/src/main/resources/templates/demo/modal/layer.html @@ -0,0 +1,256 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          信息框
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          通过调用$.modal.alert()实现。

                                                                                                                                                                                                                                                                                                          + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          提示框
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          通过调用$.modal.msg()实现。

                                                                                                                                                                                                                                                                                                          + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          询问框
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          通过调用$.modal.confirm()实现。

                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          消息提示并刷新父窗体
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          通过调用$.modal.msgReload()实现。

                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          普通弹出层
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          通过调用$.modal.open()实现。

                                                                                                                                                                                                                                                                                                          + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          选卡页方式
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          通过调用$.modal.openTab()实现。

                                                                                                                                                                                                                                                                                                          + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          其他内容
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          通过调用layer实现。

                                                                                                                                                                                                                                                                                                          + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          遮罩层
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          通过调用blockUI实现。

                                                                                                                                                                                                                                                                                                          + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + diff --git a/alive-admin/src/main/resources/templates/demo/modal/table.html b/alive-admin/src/main/resources/templates/demo/modal/table.html new file mode 100644 index 0000000..9feec45 --- /dev/null +++ b/alive-admin/src/main/resources/templates/demo/modal/table.html @@ -0,0 +1,56 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          弹层框
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          弹出复选框表格及单选框表格(点击提交后得到数据)。

                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          弹层框
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          弹出复选框表格及单选框表格(点击提交后得到数据并回显到父窗体)。

                                                                                                                                                                                                                                                                                                          + +

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + diff --git a/alive-admin/src/main/resources/templates/demo/modal/table/check.html b/alive-admin/src/main/resources/templates/demo/modal/table/check.html new file mode 100644 index 0000000..17872dd --- /dev/null +++ b/alive-admin/src/main/resources/templates/demo/modal/table/check.html @@ -0,0 +1,87 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/demo/modal/table/frame1.html b/alive-admin/src/main/resources/templates/demo/modal/table/frame1.html new file mode 100644 index 0000000..af5fe62 --- /dev/null +++ b/alive-admin/src/main/resources/templates/demo/modal/table/frame1.html @@ -0,0 +1,53 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/demo/modal/table/frame2.html b/alive-admin/src/main/resources/templates/demo/modal/table/frame2.html new file mode 100644 index 0000000..b4940fe --- /dev/null +++ b/alive-admin/src/main/resources/templates/demo/modal/table/frame2.html @@ -0,0 +1,24 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/demo/modal/table/parent.html b/alive-admin/src/main/resources/templates/demo/modal/table/parent.html new file mode 100644 index 0000000..0807206 --- /dev/null +++ b/alive-admin/src/main/resources/templates/demo/modal/table/parent.html @@ -0,0 +1,90 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/demo/modal/table/radio.html b/alive-admin/src/main/resources/templates/demo/modal/table/radio.html new file mode 100644 index 0000000..0df48f0 --- /dev/null +++ b/alive-admin/src/main/resources/templates/demo/modal/table/radio.html @@ -0,0 +1,86 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/demo/operate/add.html b/alive-admin/src/main/resources/templates/demo/operate/add.html new file mode 100644 index 0000000..ee8e332 --- /dev/null +++ b/alive-admin/src/main/resources/templates/demo/operate/add.html @@ -0,0 +1,78 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + diff --git a/alive-admin/src/main/resources/templates/demo/operate/detail.html b/alive-admin/src/main/resources/templates/demo/operate/detail.html new file mode 100644 index 0000000..e0379fc --- /dev/null +++ b/alive-admin/src/main/resources/templates/demo/operate/detail.html @@ -0,0 +1,69 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + diff --git a/alive-admin/src/main/resources/templates/demo/operate/edit.html b/alive-admin/src/main/resources/templates/demo/operate/edit.html new file mode 100644 index 0000000..94ed965 --- /dev/null +++ b/alive-admin/src/main/resources/templates/demo/operate/edit.html @@ -0,0 +1,79 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + diff --git a/alive-admin/src/main/resources/templates/demo/operate/other.html b/alive-admin/src/main/resources/templates/demo/operate/other.html new file mode 100644 index 0000000..a53e61a --- /dev/null +++ b/alive-admin/src/main/resources/templates/demo/operate/other.html @@ -0,0 +1,78 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +   +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +   +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/demo/operate/table.html b/alive-admin/src/main/resources/templates/demo/operate/table.html new file mode 100644 index 0000000..6a3f897 --- /dev/null +++ b/alive-admin/src/main/resources/templates/demo/operate/table.html @@ -0,0 +1,125 @@ + + + + + + + +
                                                                                                                                                                                                                                                                                                          + + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/demo/report/echarts.html b/alive-admin/src/main/resources/templates/demo/report/echarts.html new file mode 100644 index 0000000..311ebff --- /dev/null +++ b/alive-admin/src/main/resources/templates/demo/report/echarts.html @@ -0,0 +1,1264 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          ECharts开源来自百度商业前端数据可视化团队,基于html5 Canvas,是一个纯Javascript图表库,提供直观,生动,可交互,可个性化定制的数据可视化图表。创新的拖拽重计算、数据视图、值域漫游等特性大大增强了用户体验,赋予了用户对数据进行挖掘、整合的能力。 了解更多 +

                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          ECharts官网:http://echarts.baidu.com/ +

                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          折线图
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          柱状图
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          散点图
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          K线图
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          饼状图
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          雷达图
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          仪表盘
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          漏斗图
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          中国地图
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/demo/report/metrics.html b/alive-admin/src/main/resources/templates/demo/report/metrics.html new file mode 100644 index 0000000..853f672 --- /dev/null +++ b/alive-admin/src/main/resources/templates/demo/report/metrics.html @@ -0,0 +1,478 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          Q1 销量
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          + 上升 +

                                                                                                                                                                                                                                                                                                          + 更新时间:12天以前 +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          Q2 销量
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          + 上升 +

                                                                                                                                                                                                                                                                                                          + 更新时间:12天以前 +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          Q3 销量
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          + 下降 +

                                                                                                                                                                                                                                                                                                          + 更新时间:12天以前 +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          Q4 销量
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          + 下降 +

                                                                                                                                                                                                                                                                                                          + 更新时间:12天以前 +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          本日访问量
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          198 009

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          本周访问量
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          65 000

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          本月访问量
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          680 900

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          平均停留时间
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          00:06:40

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          使用率
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          65%

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          4:32更新
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          使用率
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          50%

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          4:32更新
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          使用率
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          14%

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          4:32更新
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          使用率
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          20%

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          4:32更新
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          百分比
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          42/20

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          百分比
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          100/54

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          百分比
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          685/211

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          百分比
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          240/32

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          收入
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          886,200

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          98%
                                                                                                                                                                                                                                                                                                          + 总收入 +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          本月收入
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          1 738,200

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          98%
                                                                                                                                                                                                                                                                                                          + 总收入 +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          本日收入
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          -200,100

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          12%
                                                                                                                                                                                                                                                                                                          + 总收入 +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          搜索有收入
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          54,200

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          24%
                                                                                                                                                                                                                                                                                                          + 总收入 +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          预警
                                                                                                                                                                                                                                                                                                          + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                          + + + 示例 01 +
                                                                                                                                                                                                                                                                                                          + + + 示例 02 +
                                                                                                                                                                                                                                                                                                          + + + 示例 03 +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          项目
                                                                                                                                                                                                                                                                                                          + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                          + + + 示例 01 +
                                                                                                                                                                                                                                                                                                          + + + 示例 02 +
                                                                                                                                                                                                                                                                                                          + + + 示例 03 +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          消息
                                                                                                                                                                                                                                                                                                          + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                          + + + 示例 01 +
                                                                                                                                                                                                                                                                                                          + + + 示例 02 +
                                                                                                                                                                                                                                                                                                          + + + 示例 03 +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          通知
                                                                                                                                                                                                                                                                                                          + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                          + + + 示例 01 +
                                                                                                                                                                                                                                                                                                          + + + 示例 02 +
                                                                                                                                                                                                                                                                                                          + + + 示例 03 +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/demo/report/peity.html b/alive-admin/src/main/resources/templates/demo/report/peity.html new file mode 100644 index 0000000..93c5194 --- /dev/null +++ b/alive-admin/src/main/resources/templates/demo/report/peity.html @@ -0,0 +1,206 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          Peity图表

                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          是一个内嵌数据图形可视化的图表库

                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          了解 Peity +

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          饼状图 自定义颜色
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                          图表代码
                                                                                                                                                                                                                                                                                                          + 1/5 + + <span class="pie">1/5</span> +
                                                                                                                                                                                                                                                                                                          + 226/360 + + <span class="pie">226/360</span> +
                                                                                                                                                                                                                                                                                                          + 0.52/1.561 + + <span class="pie">0.52/1.561</span> +
                                                                                                                                                                                                                                                                                                          + 1,4 + + <span class="pie">1,4</span> +
                                                                                                                                                                                                                                                                                                          + 226,134 + + <span class="pie">226,134</span> +
                                                                                                                                                                                                                                                                                                          + 0.52,1.041 + + <span class="pie">0.52,1.041</span> +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          线性图
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                          图表代码
                                                                                                                                                                                                                                                                                                          + 5,3,9,6,5,9,7,3,5,2,5,3,9,6,5,9,7,3,5,2 + + <span class="line">5,3,9,6,5,9,7,3,5,2</span> +
                                                                                                                                                                                                                                                                                                          + 5,3,9,6,5,9,7,3,5,2 + + <span class="line">5,3,9,6,5,9,7,3,5,2</span> +
                                                                                                                                                                                                                                                                                                          + 5,3,2,-1,-3,-2,2,3,5,2 + + <span class="line">5,3,2,-1,-3,-2,2,3,5,2</span> +
                                                                                                                                                                                                                                                                                                          + 0,-3,-6,-4,-5,-4,-7,-3,-5,-2 + + <span class="line">0,-3,-6,-4,-5,-4,-7,-3,-5,-2</span> +
                                                                                                                                                                                                                                                                                                          + 5,3,9,6,5,9,7,3,5,2 + + <span class="bar">5,3,9,6,5,9,7,3,5,2</span> +
                                                                                                                                                                                                                                                                                                          + 5,3,2,-1,-3,-2,2,3,5,2 + + <span class="bar">5,3,2,-1,-3,-2,2,3,5,2</span> +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/demo/report/sparkline.html b/alive-admin/src/main/resources/templates/demo/report/sparkline.html new file mode 100644 index 0000000..d73c18f --- /dev/null +++ b/alive-admin/src/main/resources/templates/demo/report/sparkline.html @@ -0,0 +1,232 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          Sparkline

                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          这是另一个可视化图表库

                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          了解 Sparkline +

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          Sparkline图表 自定义颜色
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                          图表类型
                                                                                                                                                                                                                                                                                                          + + + 内联线性图 +
                                                                                                                                                                                                                                                                                                          + + + 柱状图 +
                                                                                                                                                                                                                                                                                                          + + + 饼状图 +
                                                                                                                                                                                                                                                                                                          + + + 长线性图 +
                                                                                                                                                                                                                                                                                                          + + + 三态图 +
                                                                                                                                                                                                                                                                                                          + + + 散点图 +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          自定义饼状图尺寸
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          自定义柱状图尺寸
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          自定义线性图尺寸
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/demo/table/asynTree.html b/alive-admin/src/main/resources/templates/demo/table/asynTree.html new file mode 100644 index 0000000..c5af5c0 --- /dev/null +++ b/alive-admin/src/main/resources/templates/demo/table/asynTree.html @@ -0,0 +1,85 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/demo/table/button.html b/alive-admin/src/main/resources/templates/demo/table/button.html new file mode 100644 index 0000000..7a86644 --- /dev/null +++ b/alive-admin/src/main/resources/templates/demo/table/button.html @@ -0,0 +1,92 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/demo/table/child.html b/alive-admin/src/main/resources/templates/demo/table/child.html new file mode 100644 index 0000000..8a50491 --- /dev/null +++ b/alive-admin/src/main/resources/templates/demo/table/child.html @@ -0,0 +1,113 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/demo/table/curd.html b/alive-admin/src/main/resources/templates/demo/table/curd.html new file mode 100644 index 0000000..ee76177 --- /dev/null +++ b/alive-admin/src/main/resources/templates/demo/table/curd.html @@ -0,0 +1,178 @@ + + + + + + + +
                                                                                                                                                                                                                                                                                                          + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/demo/table/customView.html b/alive-admin/src/main/resources/templates/demo/table/customView.html new file mode 100644 index 0000000..a2f4d1c --- /dev/null +++ b/alive-admin/src/main/resources/templates/demo/table/customView.html @@ -0,0 +1,122 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + +
                                                                                                                                                                                                                                                                                                          + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/demo/table/data.html b/alive-admin/src/main/resources/templates/demo/table/data.html new file mode 100644 index 0000000..ce43cef --- /dev/null +++ b/alive-admin/src/main/resources/templates/demo/table/data.html @@ -0,0 +1,76 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/demo/table/detail.html b/alive-admin/src/main/resources/templates/demo/table/detail.html new file mode 100644 index 0000000..e5b8ad0 --- /dev/null +++ b/alive-admin/src/main/resources/templates/demo/table/detail.html @@ -0,0 +1,86 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/demo/table/dynamicColumns.html b/alive-admin/src/main/resources/templates/demo/table/dynamicColumns.html new file mode 100644 index 0000000..ceb645f --- /dev/null +++ b/alive-admin/src/main/resources/templates/demo/table/dynamicColumns.html @@ -0,0 +1,123 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                          • + 要增加的列: + +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • +  搜索 +  重置 +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/demo/table/editable.html b/alive-admin/src/main/resources/templates/demo/table/editable.html new file mode 100644 index 0000000..6bd1bc4 --- /dev/null +++ b/alive-admin/src/main/resources/templates/demo/table/editable.html @@ -0,0 +1,128 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/demo/table/event.html b/alive-admin/src/main/resources/templates/demo/table/event.html new file mode 100644 index 0000000..5b4d5ce --- /dev/null +++ b/alive-admin/src/main/resources/templates/demo/table/event.html @@ -0,0 +1,107 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          自定义触发事件(点击某行/双击某行/单击某格/双击某格/服务器发送数据前触发/数据被加载时触发)

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/demo/table/export.html b/alive-admin/src/main/resources/templates/demo/table/export.html new file mode 100644 index 0000000..23f4db5 --- /dev/null +++ b/alive-admin/src/main/resources/templates/demo/table/export.html @@ -0,0 +1,81 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/demo/table/exportSelected.html b/alive-admin/src/main/resources/templates/demo/table/exportSelected.html new file mode 100644 index 0000000..18e0014 --- /dev/null +++ b/alive-admin/src/main/resources/templates/demo/table/exportSelected.html @@ -0,0 +1,120 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + 勾选数据导出指定列,否则为全部 + + 导出 + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/demo/table/fixedColumns.html b/alive-admin/src/main/resources/templates/demo/table/fixedColumns.html new file mode 100644 index 0000000..c79dc6c --- /dev/null +++ b/alive-admin/src/main/resources/templates/demo/table/fixedColumns.html @@ -0,0 +1,145 @@ + + + + + + + +
                                                                                                                                                                                                                                                                                                          + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/demo/table/footer.html b/alive-admin/src/main/resources/templates/demo/table/footer.html new file mode 100644 index 0000000..215880e --- /dev/null +++ b/alive-admin/src/main/resources/templates/demo/table/footer.html @@ -0,0 +1,83 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/demo/table/groupHeader.html b/alive-admin/src/main/resources/templates/demo/table/groupHeader.html new file mode 100644 index 0000000..77226ff --- /dev/null +++ b/alive-admin/src/main/resources/templates/demo/table/groupHeader.html @@ -0,0 +1,80 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/demo/table/headerStyle.html b/alive-admin/src/main/resources/templates/demo/table/headerStyle.html new file mode 100644 index 0000000..5d63bb4 --- /dev/null +++ b/alive-admin/src/main/resources/templates/demo/table/headerStyle.html @@ -0,0 +1,91 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/demo/table/image.html b/alive-admin/src/main/resources/templates/demo/table/image.html new file mode 100644 index 0000000..514cd7f --- /dev/null +++ b/alive-admin/src/main/resources/templates/demo/table/image.html @@ -0,0 +1,79 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/demo/table/multi.html b/alive-admin/src/main/resources/templates/demo/table/multi.html new file mode 100644 index 0000000..1fd10c2 --- /dev/null +++ b/alive-admin/src/main/resources/templates/demo/table/multi.html @@ -0,0 +1,222 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/demo/table/other.html b/alive-admin/src/main/resources/templates/demo/table/other.html new file mode 100644 index 0000000..6321db6 --- /dev/null +++ b/alive-admin/src/main/resources/templates/demo/table/other.html @@ -0,0 +1,106 @@ + + + + + + + +
                                                                                                                                                                                                                                                                                                          + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/demo/table/pageGo.html b/alive-admin/src/main/resources/templates/demo/table/pageGo.html new file mode 100644 index 0000000..26db1f6 --- /dev/null +++ b/alive-admin/src/main/resources/templates/demo/table/pageGo.html @@ -0,0 +1,77 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/demo/table/params.html b/alive-admin/src/main/resources/templates/demo/table/params.html new file mode 100644 index 0000000..ff64ea7 --- /dev/null +++ b/alive-admin/src/main/resources/templates/demo/table/params.html @@ -0,0 +1,158 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          通过queryParams方法设置

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                          • + 用户姓名: +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          通过form自动填充

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/demo/table/print.html b/alive-admin/src/main/resources/templates/demo/table/print.html new file mode 100644 index 0000000..fbf1f49 --- /dev/null +++ b/alive-admin/src/main/resources/templates/demo/table/print.html @@ -0,0 +1,83 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/demo/table/refresh.html b/alive-admin/src/main/resources/templates/demo/table/refresh.html new file mode 100644 index 0000000..5917bff --- /dev/null +++ b/alive-admin/src/main/resources/templates/demo/table/refresh.html @@ -0,0 +1,79 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/demo/table/remember.html b/alive-admin/src/main/resources/templates/demo/table/remember.html new file mode 100644 index 0000000..2f55670 --- /dev/null +++ b/alive-admin/src/main/resources/templates/demo/table/remember.html @@ -0,0 +1,86 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/demo/table/reorder.html b/alive-admin/src/main/resources/templates/demo/table/reorder.html new file mode 100644 index 0000000..8c40c4d --- /dev/null +++ b/alive-admin/src/main/resources/templates/demo/table/reorder.html @@ -0,0 +1,75 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          按住表格拖拽

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/demo/table/reorderColumns.html b/alive-admin/src/main/resources/templates/demo/table/reorderColumns.html new file mode 100644 index 0000000..a461d60 --- /dev/null +++ b/alive-admin/src/main/resources/templates/demo/table/reorderColumns.html @@ -0,0 +1,84 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          按住表格列拖拽

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/demo/table/reorderRows.html b/alive-admin/src/main/resources/templates/demo/table/reorderRows.html new file mode 100644 index 0000000..e788ccb --- /dev/null +++ b/alive-admin/src/main/resources/templates/demo/table/reorderRows.html @@ -0,0 +1,88 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          按住表格行拖拽

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/demo/table/resizable.html b/alive-admin/src/main/resources/templates/demo/table/resizable.html new file mode 100644 index 0000000..224c7df --- /dev/null +++ b/alive-admin/src/main/resources/templates/demo/table/resizable.html @@ -0,0 +1,78 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/demo/table/search.html b/alive-admin/src/main/resources/templates/demo/table/search.html new file mode 100644 index 0000000..e6781b1 --- /dev/null +++ b/alive-admin/src/main/resources/templates/demo/table/search.html @@ -0,0 +1,202 @@ + + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          普通条件查询

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                          • + 商户编号: +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + 终端编号: +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + 处理状态: +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • +  搜索 +  重置 +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          时间条件查询

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                          • + 商户编号: +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + 终端编号: +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + + + - + +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • +  搜索 +  重置 +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          多级联动下拉查询

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                          • + 商户编号: +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + 充值类型: +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + 充值路由: +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • +  搜索 +  重置 +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          下拉多选条件查询

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                          • + 商户编号: +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + 终端编号: +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • +  搜索 +  重置 +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          复杂条件查询

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                          • + + +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + + +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + + +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + + +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + + +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + + +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + + +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + + + - + +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • +  搜索 +  重置 +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + + + diff --git a/alive-admin/src/main/resources/templates/demo/table/subdata.html b/alive-admin/src/main/resources/templates/demo/table/subdata.html new file mode 100644 index 0000000..d4d5fd0 --- /dev/null +++ b/alive-admin/src/main/resources/templates/demo/table/subdata.html @@ -0,0 +1,186 @@ + + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +

                                                                                                                                                                                                                                                                                                          客户信息

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          商品数据

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +   + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/error/404.html b/alive-admin/src/main/resources/templates/error/404.html new file mode 100644 index 0000000..b0c8bfe --- /dev/null +++ b/alive-admin/src/main/resources/templates/error/404.html @@ -0,0 +1,27 @@ + + + + + + RuoYi - 404 + + + + + +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          404

                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          找不到网页!

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + 对不起,您正在寻找的页面不存在。尝试检查URL的错误,然后按浏览器上的刷新按钮或尝试在我们的应用程序中找到其他内容。 + 主页 +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + diff --git a/alive-admin/src/main/resources/templates/error/500.html b/alive-admin/src/main/resources/templates/error/500.html new file mode 100644 index 0000000..43d4029 --- /dev/null +++ b/alive-admin/src/main/resources/templates/error/500.html @@ -0,0 +1,28 @@ + + + + + + RuoYi - 500 + + + + + +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          500

                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          内部服务器错误!

                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + 服务器遇到意外事件,不允许完成请求。我们抱歉。您可以返回主页面。 + 主页 +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + diff --git a/alive-admin/src/main/resources/templates/error/business.html b/alive-admin/src/main/resources/templates/error/business.html new file mode 100644 index 0000000..1faf08c --- /dev/null +++ b/alive-admin/src/main/resources/templates/error/business.html @@ -0,0 +1,20 @@ + + + + + + RuoYi - 403 + + + + + +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          操作异常!

                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + [[${errorMessage}]] +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + diff --git a/alive-admin/src/main/resources/templates/error/service.html b/alive-admin/src/main/resources/templates/error/service.html new file mode 100644 index 0000000..b64341d --- /dev/null +++ b/alive-admin/src/main/resources/templates/error/service.html @@ -0,0 +1,20 @@ + + + + + + RuoYi - 500 + + + + + +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          操作异常!

                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + [[${errorMessage}]] +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + diff --git a/alive-admin/src/main/resources/templates/error/unauth.html b/alive-admin/src/main/resources/templates/error/unauth.html new file mode 100644 index 0000000..5d52db9 --- /dev/null +++ b/alive-admin/src/main/resources/templates/error/unauth.html @@ -0,0 +1,28 @@ + + + + + + RuoYi - 403 + + + + + +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          403

                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          您没有访问权限!

                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + 对不起,您没有访问权限,请不要进行非法操作!您可以返回主页面 + 返回主页 +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + diff --git a/alive-admin/src/main/resources/templates/include.html b/alive-admin/src/main/resources/templates/include.html new file mode 100644 index 0000000..8bae16c --- /dev/null +++ b/alive-admin/src/main/resources/templates/include.html @@ -0,0 +1,207 @@ + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                          + + + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          diff --git a/alive-admin/src/main/resources/templates/include1.html b/alive-admin/src/main/resources/templates/include1.html new file mode 100644 index 0000000..74e1371 --- /dev/null +++ b/alive-admin/src/main/resources/templates/include1.html @@ -0,0 +1,182 @@ + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                          + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + + + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          diff --git a/alive-admin/src/main/resources/templates/index-topnav.html b/alive-admin/src/main/resources/templates/index-topnav.html new file mode 100644 index 0000000..2bcdffb --- /dev/null +++ b/alive-admin/src/main/resources/templates/index-topnav.html @@ -0,0 +1,443 @@ + + + + + + + 若依系统首页 + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                          + + + + + + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + + + + 刷新 +
                                                                                                                                                                                                                                                                                                          + + + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + + + + + + + + + + + + + + + + diff --git a/alive-admin/src/main/resources/templates/index.html b/alive-admin/src/main/resources/templates/index.html new file mode 100644 index 0000000..6c28159 --- /dev/null +++ b/alive-admin/src/main/resources/templates/index.html @@ -0,0 +1,314 @@ + + + + + + + ALIVE系统首页 + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                          + + + + + + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + + + + 刷新 +
                                                                                                                                                                                                                                                                                                          + + + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + + + + + + + + + + + + + + + + diff --git a/alive-admin/src/main/resources/templates/lock.html b/alive-admin/src/main/resources/templates/lock.html new file mode 100644 index 0000000..66a089e --- /dev/null +++ b/alive-admin/src/main/resources/templates/lock.html @@ -0,0 +1,208 @@ + + + + + + + 锁定屏幕 + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          [[ ${user.loginName} ]] / [[${#strings.defaultString(user.userName, '-')}]]
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + User Image +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          系统锁屏,请输入密码登录!
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + + + + + + + + diff --git a/alive-admin/src/main/resources/templates/login.html b/alive-admin/src/main/resources/templates/login.html new file mode 100644 index 0000000..4f6d43f --- /dev/null +++ b/alive-admin/src/main/resources/templates/login.html @@ -0,0 +1,68 @@ + + + + + + 登录节点系统 + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          登录:

                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          欢迎登陆

                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + + + + + + + + + + + + + + diff --git a/alive-admin/src/main/resources/templates/main.html b/alive-admin/src/main/resources/templates/main.html new file mode 100644 index 0000000..fb44ff2 --- /dev/null +++ b/alive-admin/src/main/resources/templates/main.html @@ -0,0 +1,21 @@ + + + + + +
                                                                                                                                                                                                                                                                                                          + 欢迎使用ALIVE后台管理系统 +
                                                                                                                                                                                                                                                                                                          + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/main_v1.html b/alive-admin/src/main/resources/templates/main_v1.html new file mode 100644 index 0000000..4ace108 --- /dev/null +++ b/alive-admin/src/main/resources/templates/main_v1.html @@ -0,0 +1,336 @@ + + + + + + 统计 + + + + + + + + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          收入
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          40 886,200

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          98% +
                                                                                                                                                                                                                                                                                                          + 总收入 +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + 全年 +
                                                                                                                                                                                                                                                                                                          订单
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          275,800

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          20% +
                                                                                                                                                                                                                                                                                                          + 新订单 +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + 今天 +
                                                                                                                                                                                                                                                                                                          访客
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          106,120

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          44% +
                                                                                                                                                                                                                                                                                                          + 新访客 +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + 最近一个月 +
                                                                                                                                                                                                                                                                                                          活跃用户
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          80,600

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          38% +
                                                                                                                                                                                                                                                                                                          + 12月 +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          订单
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                          • +

                                                                                                                                                                                                                                                                                                            2,346

                                                                                                                                                                                                                                                                                                            + 订单总数 +
                                                                                                                                                                                                                                                                                                            48% +
                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • +

                                                                                                                                                                                                                                                                                                            4,422

                                                                                                                                                                                                                                                                                                            + 最近一个月订单 +
                                                                                                                                                                                                                                                                                                            60% +
                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • +

                                                                                                                                                                                                                                                                                                            9,180

                                                                                                                                                                                                                                                                                                            + 最近一个月销售额 +
                                                                                                                                                                                                                                                                                                            22% +
                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          用户项目列表
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                          状态日期用户
                                                                                                                                                                                                                                                                                                          进行中... + 11:20青衣5858 24%
                                                                                                                                                                                                                                                                                                          已取消 + 10:40徐子崴 66%
                                                                                                                                                                                                                                                                                                          进行中... + 01:30姜岚昕 54%
                                                                                                                                                                                                                                                                                                          进行中... + 02:20武汉大兵哥 12%
                                                                                                                                                                                                                                                                                                          进行中... + 09:40荆莹儿 22%
                                                                                                                                                                                                                                                                                                          已完成 + 04:10栾某某 66%
                                                                                                                                                                                                                                                                                                          进行中... + 12:08范范范二妮 23%
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + + + + diff --git a/alive-admin/src/main/resources/templates/monitor/cache/cache.html b/alive-admin/src/main/resources/templates/monitor/cache/cache.html new file mode 100644 index 0000000..a178f1a --- /dev/null +++ b/alive-admin/src/main/resources/templates/monitor/cache/cache.html @@ -0,0 +1,184 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          缓存列表
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                          缓存名称操作
                                                                                                                                                                                                                                                                                                          [[${stat.index + 1}]][[${cacheName}]]
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          键名列表
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                          缓存键名操作
                                                                                                                                                                                                                                                                                                          [[${stat.index + 1}]][[${cacheKey}]]
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          缓存内容
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + diff --git a/alive-admin/src/main/resources/templates/monitor/logininfor/logininfor.html b/alive-admin/src/main/resources/templates/monitor/logininfor/logininfor.html new file mode 100644 index 0000000..d4b9992 --- /dev/null +++ b/alive-admin/src/main/resources/templates/monitor/logininfor/logininfor.html @@ -0,0 +1,133 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + + + - + +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • +  搜索 +  重置 +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/monitor/online/online.html b/alive-admin/src/main/resources/templates/monitor/online/online.html new file mode 100644 index 0000000..158126e --- /dev/null +++ b/alive-admin/src/main/resources/templates/monitor/online/online.html @@ -0,0 +1,152 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/monitor/operlog/detail.html b/alive-admin/src/main/resources/templates/monitor/operlog/detail.html new file mode 100644 index 0000000..02c5db6 --- /dev/null +++ b/alive-admin/src/main/resources/templates/monitor/operlog/detail.html @@ -0,0 +1,74 @@ + + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/monitor/operlog/operlog.html b/alive-admin/src/main/resources/templates/monitor/operlog/operlog.html new file mode 100644 index 0000000..a383e46 --- /dev/null +++ b/alive-admin/src/main/resources/templates/monitor/operlog/operlog.html @@ -0,0 +1,169 @@ + + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + + + - + +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • +  搜索 +  重置 +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/monitor/server/server.html b/alive-admin/src/main/resources/templates/monitor/server/server.html new file mode 100644 index 0000000..49692bd --- /dev/null +++ b/alive-admin/src/main/resources/templates/monitor/server/server.html @@ -0,0 +1,254 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          CPU
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                          属性
                                                                                                                                                                                                                                                                                                          核心数0个
                                                                                                                                                                                                                                                                                                          用户使用率0%
                                                                                                                                                                                                                                                                                                          系统使用率0%
                                                                                                                                                                                                                                                                                                          当前空闲率0%
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          内存
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                          属性内存JVM
                                                                                                                                                                                                                                                                                                          总内存0GB0MB
                                                                                                                                                                                                                                                                                                          已用内存0GB0MB
                                                                                                                                                                                                                                                                                                          剩余内存0GB0MB
                                                                                                                                                                                                                                                                                                          使用率[[${server.mem.usage}]]%[[${server.jvm.usage}]]%
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          服务器信息
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                          服务器名称RuoYi操作系统Linux
                                                                                                                                                                                                                                                                                                          服务器IP127.0.0.1系统架构amd64
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          Java虚拟机信息
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                          Java名称JavaJava版本1.8.0
                                                                                                                                                                                                                                                                                                          启动时间2018-12-31 00:00:00运行时长0天0时0分0秒
                                                                                                                                                                                                                                                                                                          安装路径
                                                                                                                                                                                                                                                                                                          项目路径
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          磁盘状态
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                          盘符路径文件系统盘符类型总大小可用大小已用大小已用百分比
                                                                                                                                                                                                                                                                                                          C:\NTFSlocal0GB0GB0GB[[${sysFile.usage}]]%
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + diff --git a/alive-admin/src/main/resources/templates/project/activityConfig/activityConfigAdd.html b/alive-admin/src/main/resources/templates/project/activityConfig/activityConfigAdd.html new file mode 100644 index 0000000..8b72233 --- /dev/null +++ b/alive-admin/src/main/resources/templates/project/activityConfig/activityConfigAdd.html @@ -0,0 +1,184 @@ + + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/project/activityConfig/activityConfigCount.html b/alive-admin/src/main/resources/templates/project/activityConfig/activityConfigCount.html new file mode 100644 index 0000000..d7fc2fe --- /dev/null +++ b/alive-admin/src/main/resources/templates/project/activityConfig/activityConfigCount.html @@ -0,0 +1,98 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/project/activityConfig/activityConfigEdit.html b/alive-admin/src/main/resources/templates/project/activityConfig/activityConfigEdit.html new file mode 100644 index 0000000..9e43924 --- /dev/null +++ b/alive-admin/src/main/resources/templates/project/activityConfig/activityConfigEdit.html @@ -0,0 +1,193 @@ + + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/project/activityConfig/activityConfigList.html b/alive-admin/src/main/resources/templates/project/activityConfig/activityConfigList.html new file mode 100644 index 0000000..7ea4ac2 --- /dev/null +++ b/alive-admin/src/main/resources/templates/project/activityConfig/activityConfigList.html @@ -0,0 +1,209 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                          • + + +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + + +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • +  搜索 +  重置 +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/project/activityLog/activityLogAdd.html b/alive-admin/src/main/resources/templates/project/activityLog/activityLogAdd.html new file mode 100644 index 0000000..dbbb482 --- /dev/null +++ b/alive-admin/src/main/resources/templates/project/activityLog/activityLogAdd.html @@ -0,0 +1,90 @@ + + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/project/activityLog/activityLogEdit.html b/alive-admin/src/main/resources/templates/project/activityLog/activityLogEdit.html new file mode 100644 index 0000000..c662477 --- /dev/null +++ b/alive-admin/src/main/resources/templates/project/activityLog/activityLogEdit.html @@ -0,0 +1,91 @@ + + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/project/activityLog/activityLogList.html b/alive-admin/src/main/resources/templates/project/activityLog/activityLogList.html new file mode 100644 index 0000000..423969c --- /dev/null +++ b/alive-admin/src/main/resources/templates/project/activityLog/activityLogList.html @@ -0,0 +1,160 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                          • + + +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + + +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + + +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + + +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • +  搜索 +  重置 +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/project/activityStatistics/activityStatisticsAdd.html b/alive-admin/src/main/resources/templates/project/activityStatistics/activityStatisticsAdd.html new file mode 100644 index 0000000..818c0d0 --- /dev/null +++ b/alive-admin/src/main/resources/templates/project/activityStatistics/activityStatisticsAdd.html @@ -0,0 +1,37 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/project/activityStatistics/activityStatisticsEdit.html b/alive-admin/src/main/resources/templates/project/activityStatistics/activityStatisticsEdit.html new file mode 100644 index 0000000..e4d9ead --- /dev/null +++ b/alive-admin/src/main/resources/templates/project/activityStatistics/activityStatisticsEdit.html @@ -0,0 +1,38 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/project/activityStatistics/activityStatisticsList.html b/alive-admin/src/main/resources/templates/project/activityStatistics/activityStatisticsList.html new file mode 100644 index 0000000..26ab53b --- /dev/null +++ b/alive-admin/src/main/resources/templates/project/activityStatistics/activityStatisticsList.html @@ -0,0 +1,111 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/project/coinConfig/coinConfigAdd.html b/alive-admin/src/main/resources/templates/project/coinConfig/coinConfigAdd.html new file mode 100644 index 0000000..485fd31 --- /dev/null +++ b/alive-admin/src/main/resources/templates/project/coinConfig/coinConfigAdd.html @@ -0,0 +1,73 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/project/coinConfig/coinConfigEdit.html b/alive-admin/src/main/resources/templates/project/coinConfig/coinConfigEdit.html new file mode 100644 index 0000000..b7e578f --- /dev/null +++ b/alive-admin/src/main/resources/templates/project/coinConfig/coinConfigEdit.html @@ -0,0 +1,65 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/project/coinConfig/coinConfigList.html b/alive-admin/src/main/resources/templates/project/coinConfig/coinConfigList.html new file mode 100644 index 0000000..e1bc1cc --- /dev/null +++ b/alive-admin/src/main/resources/templates/project/coinConfig/coinConfigList.html @@ -0,0 +1,160 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/project/node/nodeAdd.html b/alive-admin/src/main/resources/templates/project/node/nodeAdd.html new file mode 100644 index 0000000..aacaed2 --- /dev/null +++ b/alive-admin/src/main/resources/templates/project/node/nodeAdd.html @@ -0,0 +1,60 @@ + + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/project/node/nodeEdit.html b/alive-admin/src/main/resources/templates/project/node/nodeEdit.html new file mode 100644 index 0000000..9a52c53 --- /dev/null +++ b/alive-admin/src/main/resources/templates/project/node/nodeEdit.html @@ -0,0 +1,61 @@ + + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/project/node/nodeList.html b/alive-admin/src/main/resources/templates/project/node/nodeList.html new file mode 100644 index 0000000..360ef20 --- /dev/null +++ b/alive-admin/src/main/resources/templates/project/node/nodeList.html @@ -0,0 +1,118 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/project/nodeAwardSetting/nodeAwardSettingAdd.html b/alive-admin/src/main/resources/templates/project/nodeAwardSetting/nodeAwardSettingAdd.html new file mode 100644 index 0000000..5d70ba6 --- /dev/null +++ b/alive-admin/src/main/resources/templates/project/nodeAwardSetting/nodeAwardSettingAdd.html @@ -0,0 +1,73 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/project/nodeAwardSetting/nodeAwardSettingEdit.html b/alive-admin/src/main/resources/templates/project/nodeAwardSetting/nodeAwardSettingEdit.html new file mode 100644 index 0000000..b1e7bb9 --- /dev/null +++ b/alive-admin/src/main/resources/templates/project/nodeAwardSetting/nodeAwardSettingEdit.html @@ -0,0 +1,68 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/project/nodeAwardSetting/nodeAwardSettingList.html b/alive-admin/src/main/resources/templates/project/nodeAwardSetting/nodeAwardSettingList.html new file mode 100644 index 0000000..324c439 --- /dev/null +++ b/alive-admin/src/main/resources/templates/project/nodeAwardSetting/nodeAwardSettingList.html @@ -0,0 +1,159 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                          • + + +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + + +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + + +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + + +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + + +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + + +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + + +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + + +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + + + - + +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • +  搜索 +  重置 +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/project/nodeBuyLog/nodeSubscribeAdd.html b/alive-admin/src/main/resources/templates/project/nodeBuyLog/nodeSubscribeAdd.html new file mode 100644 index 0000000..e556368 --- /dev/null +++ b/alive-admin/src/main/resources/templates/project/nodeBuyLog/nodeSubscribeAdd.html @@ -0,0 +1,85 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/project/nodeBuyLog/nodeSubscribeEdit.html b/alive-admin/src/main/resources/templates/project/nodeBuyLog/nodeSubscribeEdit.html new file mode 100644 index 0000000..02137a2 --- /dev/null +++ b/alive-admin/src/main/resources/templates/project/nodeBuyLog/nodeSubscribeEdit.html @@ -0,0 +1,32 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/project/nodeBuyLog/nodeSubscribeList.html b/alive-admin/src/main/resources/templates/project/nodeBuyLog/nodeSubscribeList.html new file mode 100644 index 0000000..3b5a539 --- /dev/null +++ b/alive-admin/src/main/resources/templates/project/nodeBuyLog/nodeSubscribeList.html @@ -0,0 +1,231 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                          • + + +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + + +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + + +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + + +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + + +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + + +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + + +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + + +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + + + - + +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • +  搜索 +  重置 +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/project/nodePriceConfig/nodePriceConfigAdd.html b/alive-admin/src/main/resources/templates/project/nodePriceConfig/nodePriceConfigAdd.html new file mode 100644 index 0000000..20e7955 --- /dev/null +++ b/alive-admin/src/main/resources/templates/project/nodePriceConfig/nodePriceConfigAdd.html @@ -0,0 +1,43 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/project/nodePriceConfig/nodePriceConfigEdit.html b/alive-admin/src/main/resources/templates/project/nodePriceConfig/nodePriceConfigEdit.html new file mode 100644 index 0000000..2d5cb5e --- /dev/null +++ b/alive-admin/src/main/resources/templates/project/nodePriceConfig/nodePriceConfigEdit.html @@ -0,0 +1,44 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/project/nodePriceConfig/nodePriceConfigList.html b/alive-admin/src/main/resources/templates/project/nodePriceConfig/nodePriceConfigList.html new file mode 100644 index 0000000..150ab43 --- /dev/null +++ b/alive-admin/src/main/resources/templates/project/nodePriceConfig/nodePriceConfigList.html @@ -0,0 +1,92 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/project/nodeSetting/nodeSettingAdd.html b/alive-admin/src/main/resources/templates/project/nodeSetting/nodeSettingAdd.html new file mode 100644 index 0000000..a18c976 --- /dev/null +++ b/alive-admin/src/main/resources/templates/project/nodeSetting/nodeSettingAdd.html @@ -0,0 +1,138 @@ + + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/project/nodeSetting/nodeSettingEdit.html b/alive-admin/src/main/resources/templates/project/nodeSetting/nodeSettingEdit.html new file mode 100644 index 0000000..9bcf261 --- /dev/null +++ b/alive-admin/src/main/resources/templates/project/nodeSetting/nodeSettingEdit.html @@ -0,0 +1,169 @@ + + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/project/nodeSetting/nodeSettingList.html b/alive-admin/src/main/resources/templates/project/nodeSetting/nodeSettingList.html new file mode 100644 index 0000000..9a3e7ef --- /dev/null +++ b/alive-admin/src/main/resources/templates/project/nodeSetting/nodeSettingList.html @@ -0,0 +1,191 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/project/nodeTask/nodeTaskAdd.html b/alive-admin/src/main/resources/templates/project/nodeTask/nodeTaskAdd.html new file mode 100644 index 0000000..55a82b6 --- /dev/null +++ b/alive-admin/src/main/resources/templates/project/nodeTask/nodeTaskAdd.html @@ -0,0 +1,55 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/project/nodeTask/nodeTaskEdit.html b/alive-admin/src/main/resources/templates/project/nodeTask/nodeTaskEdit.html new file mode 100644 index 0000000..f84e6b1 --- /dev/null +++ b/alive-admin/src/main/resources/templates/project/nodeTask/nodeTaskEdit.html @@ -0,0 +1,56 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/project/nodeTask/nodeTaskList.html b/alive-admin/src/main/resources/templates/project/nodeTask/nodeTaskList.html new file mode 100644 index 0000000..8bfd374 --- /dev/null +++ b/alive-admin/src/main/resources/templates/project/nodeTask/nodeTaskList.html @@ -0,0 +1,143 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                          • + + +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + + +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + + +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + + +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + + +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + + + - + +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • +  搜索 +  重置 +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/project/nodeTaskLog/nodeTaskLogAdd.html b/alive-admin/src/main/resources/templates/project/nodeTaskLog/nodeTaskLogAdd.html new file mode 100644 index 0000000..6c45b48 --- /dev/null +++ b/alive-admin/src/main/resources/templates/project/nodeTaskLog/nodeTaskLogAdd.html @@ -0,0 +1,61 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/project/nodeTaskLog/nodeTaskLogEdit.html b/alive-admin/src/main/resources/templates/project/nodeTaskLog/nodeTaskLogEdit.html new file mode 100644 index 0000000..073ef4b --- /dev/null +++ b/alive-admin/src/main/resources/templates/project/nodeTaskLog/nodeTaskLogEdit.html @@ -0,0 +1,62 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/project/nodeTaskLog/nodeTaskLogList.html b/alive-admin/src/main/resources/templates/project/nodeTaskLog/nodeTaskLogList.html new file mode 100644 index 0000000..6ad22f5 --- /dev/null +++ b/alive-admin/src/main/resources/templates/project/nodeTaskLog/nodeTaskLogList.html @@ -0,0 +1,147 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                          • + + +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + + +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + + +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + + +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + + +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + + +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + + + - + +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • +  搜索 +  重置 +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/project/notice/noticeAdd.html b/alive-admin/src/main/resources/templates/project/notice/noticeAdd.html new file mode 100644 index 0000000..7e65f1d --- /dev/null +++ b/alive-admin/src/main/resources/templates/project/notice/noticeAdd.html @@ -0,0 +1,90 @@ + + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/project/notice/noticeEdit.html b/alive-admin/src/main/resources/templates/project/notice/noticeEdit.html new file mode 100644 index 0000000..ae51cc6 --- /dev/null +++ b/alive-admin/src/main/resources/templates/project/notice/noticeEdit.html @@ -0,0 +1,89 @@ + + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/project/notice/noticeList.html b/alive-admin/src/main/resources/templates/project/notice/noticeList.html new file mode 100644 index 0000000..f8929b0 --- /dev/null +++ b/alive-admin/src/main/resources/templates/project/notice/noticeList.html @@ -0,0 +1,120 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/project/payCoinLog/payCoinLogAdd.html b/alive-admin/src/main/resources/templates/project/payCoinLog/payCoinLogAdd.html new file mode 100644 index 0000000..b468901 --- /dev/null +++ b/alive-admin/src/main/resources/templates/project/payCoinLog/payCoinLogAdd.html @@ -0,0 +1,85 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/project/payCoinLog/payCoinLogEdit.html b/alive-admin/src/main/resources/templates/project/payCoinLog/payCoinLogEdit.html new file mode 100644 index 0000000..8343d59 --- /dev/null +++ b/alive-admin/src/main/resources/templates/project/payCoinLog/payCoinLogEdit.html @@ -0,0 +1,86 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/project/payCoinLog/payCoinLogList.html b/alive-admin/src/main/resources/templates/project/payCoinLog/payCoinLogList.html new file mode 100644 index 0000000..9caa3e4 --- /dev/null +++ b/alive-admin/src/main/resources/templates/project/payCoinLog/payCoinLogList.html @@ -0,0 +1,162 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                          • + + +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + + +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + + +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + + +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + + + - + +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • +  搜索 +  重置 +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/project/tConfig/tConfigAdd.html b/alive-admin/src/main/resources/templates/project/tConfig/tConfigAdd.html new file mode 100644 index 0000000..ae3bf17 --- /dev/null +++ b/alive-admin/src/main/resources/templates/project/tConfig/tConfigAdd.html @@ -0,0 +1,43 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/project/tConfig/tConfigEdit.html b/alive-admin/src/main/resources/templates/project/tConfig/tConfigEdit.html new file mode 100644 index 0000000..07a437d --- /dev/null +++ b/alive-admin/src/main/resources/templates/project/tConfig/tConfigEdit.html @@ -0,0 +1,44 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/project/tConfig/tConfigList.html b/alive-admin/src/main/resources/templates/project/tConfig/tConfigList.html new file mode 100644 index 0000000..5e51223 --- /dev/null +++ b/alive-admin/src/main/resources/templates/project/tConfig/tConfigList.html @@ -0,0 +1,119 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                          • + + +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + + +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + + +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + + + - + +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • +  搜索 +  重置 +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/project/tMember/InviteRespList.html b/alive-admin/src/main/resources/templates/project/tMember/InviteRespList.html new file mode 100644 index 0000000..82212ce --- /dev/null +++ b/alive-admin/src/main/resources/templates/project/tMember/InviteRespList.html @@ -0,0 +1,121 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                          • + + +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + + +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + + +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • +  搜索 +  重置 +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/project/tMember/awardLogList.html b/alive-admin/src/main/resources/templates/project/tMember/awardLogList.html new file mode 100644 index 0000000..226fab5 --- /dev/null +++ b/alive-admin/src/main/resources/templates/project/tMember/awardLogList.html @@ -0,0 +1,128 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/project/tMember/subordinateList.html b/alive-admin/src/main/resources/templates/project/tMember/subordinateList.html new file mode 100644 index 0000000..0700655 --- /dev/null +++ b/alive-admin/src/main/resources/templates/project/tMember/subordinateList.html @@ -0,0 +1,102 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/project/tMember/tMemberAdd.html b/alive-admin/src/main/resources/templates/project/tMember/tMemberAdd.html new file mode 100644 index 0000000..1c15c93 --- /dev/null +++ b/alive-admin/src/main/resources/templates/project/tMember/tMemberAdd.html @@ -0,0 +1,91 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/project/tMember/tMemberEdit.html b/alive-admin/src/main/resources/templates/project/tMember/tMemberEdit.html new file mode 100644 index 0000000..16b6b25 --- /dev/null +++ b/alive-admin/src/main/resources/templates/project/tMember/tMemberEdit.html @@ -0,0 +1,92 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/project/tMember/tMemberList.html b/alive-admin/src/main/resources/templates/project/tMember/tMemberList.html new file mode 100644 index 0000000..8310464 --- /dev/null +++ b/alive-admin/src/main/resources/templates/project/tMember/tMemberList.html @@ -0,0 +1,218 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                          • + + +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + + +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + + +
                                                                                                                                                                                                                                                                                                          • + +
                                                                                                                                                                                                                                                                                                          • + +  搜索 +  团队盒子 +  重置 +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/project/tMemberWallet/tMemberWalletAdd.html b/alive-admin/src/main/resources/templates/project/tMemberWallet/tMemberWalletAdd.html new file mode 100644 index 0000000..3719627 --- /dev/null +++ b/alive-admin/src/main/resources/templates/project/tMemberWallet/tMemberWalletAdd.html @@ -0,0 +1,49 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/project/tMemberWallet/tMemberWalletEdit.html b/alive-admin/src/main/resources/templates/project/tMemberWallet/tMemberWalletEdit.html new file mode 100644 index 0000000..13b3432 --- /dev/null +++ b/alive-admin/src/main/resources/templates/project/tMemberWallet/tMemberWalletEdit.html @@ -0,0 +1,50 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/project/tMemberWallet/tMemberWalletList.html b/alive-admin/src/main/resources/templates/project/tMemberWallet/tMemberWalletList.html new file mode 100644 index 0000000..e9f3977 --- /dev/null +++ b/alive-admin/src/main/resources/templates/project/tMemberWallet/tMemberWalletList.html @@ -0,0 +1,113 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/project/tMemberWalletLog/tMemberWalletLogAdd.html b/alive-admin/src/main/resources/templates/project/tMemberWalletLog/tMemberWalletLogAdd.html new file mode 100644 index 0000000..15eaac5 --- /dev/null +++ b/alive-admin/src/main/resources/templates/project/tMemberWalletLog/tMemberWalletLogAdd.html @@ -0,0 +1,73 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/project/tMemberWalletLog/tMemberWalletLogEdit.html b/alive-admin/src/main/resources/templates/project/tMemberWalletLog/tMemberWalletLogEdit.html new file mode 100644 index 0000000..adf6d59 --- /dev/null +++ b/alive-admin/src/main/resources/templates/project/tMemberWalletLog/tMemberWalletLogEdit.html @@ -0,0 +1,74 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/project/tMemberWalletLog/tMemberWalletLogList.html b/alive-admin/src/main/resources/templates/project/tMemberWalletLog/tMemberWalletLogList.html new file mode 100644 index 0000000..688ca0d --- /dev/null +++ b/alive-admin/src/main/resources/templates/project/tMemberWalletLog/tMemberWalletLogList.html @@ -0,0 +1,117 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                          • + + +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + + +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + + + - + +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • +  搜索 +  重置 +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/register.html b/alive-admin/src/main/resources/templates/register.html new file mode 100644 index 0000000..cc52470 --- /dev/null +++ b/alive-admin/src/main/resources/templates/register.html @@ -0,0 +1,83 @@ + + + + + + 注册UEB系统 + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          注册:

                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          欢迎登陆UEB后台管理系统

                                                                                                                                                                                                                                                                                                          + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + 使用条款 +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + + + + + + + + + + + + + diff --git a/alive-admin/src/main/resources/templates/skin.html b/alive-admin/src/main/resources/templates/skin.html new file mode 100644 index 0000000..be43759 --- /dev/null +++ b/alive-admin/src/main/resources/templates/skin.html @@ -0,0 +1,165 @@ + + + + + + + 主题选择 + + + + + + + + + + + + + diff --git a/alive-admin/src/main/resources/templates/system/config/add.html b/alive-admin/src/main/resources/templates/system/config/add.html new file mode 100644 index 0000000..388ddd1 --- /dev/null +++ b/alive-admin/src/main/resources/templates/system/config/add.html @@ -0,0 +1,82 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + diff --git a/alive-admin/src/main/resources/templates/system/config/config.html b/alive-admin/src/main/resources/templates/system/config/config.html new file mode 100644 index 0000000..8b77aca --- /dev/null +++ b/alive-admin/src/main/resources/templates/system/config/config.html @@ -0,0 +1,144 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                          • + 参数名称: +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + 参数键名: +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + 系统内置: +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + + + - + +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • +  搜索 +  重置 +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/system/config/edit.html b/alive-admin/src/main/resources/templates/system/config/edit.html new file mode 100644 index 0000000..cb7e202 --- /dev/null +++ b/alive-admin/src/main/resources/templates/system/config/edit.html @@ -0,0 +1,86 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + diff --git a/alive-admin/src/main/resources/templates/system/dept/add.html b/alive-admin/src/main/resources/templates/system/dept/add.html new file mode 100644 index 0000000..9b51930 --- /dev/null +++ b/alive-admin/src/main/resources/templates/system/dept/add.html @@ -0,0 +1,128 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + diff --git a/alive-admin/src/main/resources/templates/system/dept/dept.html b/alive-admin/src/main/resources/templates/system/dept/dept.html new file mode 100644 index 0000000..56d94e3 --- /dev/null +++ b/alive-admin/src/main/resources/templates/system/dept/dept.html @@ -0,0 +1,112 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                          • + 部门名称: +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + 部门状态: +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • +  搜索 +  重置 +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/system/dept/edit.html b/alive-admin/src/main/resources/templates/system/dept/edit.html new file mode 100644 index 0000000..3f0f594 --- /dev/null +++ b/alive-admin/src/main/resources/templates/system/dept/edit.html @@ -0,0 +1,141 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + diff --git a/alive-admin/src/main/resources/templates/system/dept/tree.html b/alive-admin/src/main/resources/templates/system/dept/tree.html new file mode 100644 index 0000000..2dc3676 --- /dev/null +++ b/alive-admin/src/main/resources/templates/system/dept/tree.html @@ -0,0 +1,52 @@ + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + 展开 / + 折叠 +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + diff --git a/alive-admin/src/main/resources/templates/system/dict/data/add.html b/alive-admin/src/main/resources/templates/system/dict/data/add.html new file mode 100644 index 0000000..a050762 --- /dev/null +++ b/alive-admin/src/main/resources/templates/system/dict/data/add.html @@ -0,0 +1,100 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + + table表格字典列显示样式属性 +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + diff --git a/alive-admin/src/main/resources/templates/system/dict/data/data.html b/alive-admin/src/main/resources/templates/system/dict/data/data.html new file mode 100644 index 0000000..1a9ea81 --- /dev/null +++ b/alive-admin/src/main/resources/templates/system/dict/data/data.html @@ -0,0 +1,148 @@ + + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                          • + 字典名称: +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + 字典标签: +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + 数据状态: +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • +  搜索 +  重置 +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/system/dict/data/edit.html b/alive-admin/src/main/resources/templates/system/dict/data/edit.html new file mode 100644 index 0000000..0855513 --- /dev/null +++ b/alive-admin/src/main/resources/templates/system/dict/data/edit.html @@ -0,0 +1,101 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + + table表格字典列显示样式属性 +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + diff --git a/alive-admin/src/main/resources/templates/system/dict/type/add.html b/alive-admin/src/main/resources/templates/system/dict/type/add.html new file mode 100644 index 0000000..a1f064c --- /dev/null +++ b/alive-admin/src/main/resources/templates/system/dict/type/add.html @@ -0,0 +1,77 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + diff --git a/alive-admin/src/main/resources/templates/system/dict/type/edit.html b/alive-admin/src/main/resources/templates/system/dict/type/edit.html new file mode 100644 index 0000000..41b03db --- /dev/null +++ b/alive-admin/src/main/resources/templates/system/dict/type/edit.html @@ -0,0 +1,81 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + diff --git a/alive-admin/src/main/resources/templates/system/dict/type/tree.html b/alive-admin/src/main/resources/templates/system/dict/type/tree.html new file mode 100644 index 0000000..88ea049 --- /dev/null +++ b/alive-admin/src/main/resources/templates/system/dict/type/tree.html @@ -0,0 +1,42 @@ + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + diff --git a/alive-admin/src/main/resources/templates/system/dict/type/type.html b/alive-admin/src/main/resources/templates/system/dict/type/type.html new file mode 100644 index 0000000..37f3780 --- /dev/null +++ b/alive-admin/src/main/resources/templates/system/dict/type/type.html @@ -0,0 +1,148 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                          • + 字典名称: +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + 字典类型: +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + 字典状态: +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + + + - + +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • +  搜索 +  重置 +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/system/menu/add.html b/alive-admin/src/main/resources/templates/system/menu/add.html new file mode 100644 index 0000000..ef5b094 --- /dev/null +++ b/alive-admin/src/main/resources/templates/system/menu/add.html @@ -0,0 +1,188 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + + 控制器中定义的权限标识,如:@RequiresPermissions("") +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + diff --git a/alive-admin/src/main/resources/templates/system/menu/edit.html b/alive-admin/src/main/resources/templates/system/menu/edit.html new file mode 100644 index 0000000..ac342f1 --- /dev/null +++ b/alive-admin/src/main/resources/templates/system/menu/edit.html @@ -0,0 +1,216 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + + 控制器中定义的权限标识,如:@RequiresPermissions("") +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + diff --git a/alive-admin/src/main/resources/templates/system/menu/icon.html b/alive-admin/src/main/resources/templates/system/menu/icon.html new file mode 100644 index 0000000..f9f7f19 --- /dev/null +++ b/alive-admin/src/main/resources/templates/system/menu/icon.html @@ -0,0 +1,928 @@ + + + + + Font Awesome Ico list + + + + + +
                                                                                                                                                                                                                                                                                                          + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                          + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/system/menu/menu.html b/alive-admin/src/main/resources/templates/system/menu/menu.html new file mode 100644 index 0000000..21105a4 --- /dev/null +++ b/alive-admin/src/main/resources/templates/system/menu/menu.html @@ -0,0 +1,156 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/system/menu/tree.html b/alive-admin/src/main/resources/templates/system/menu/tree.html new file mode 100644 index 0000000..a38e851 --- /dev/null +++ b/alive-admin/src/main/resources/templates/system/menu/tree.html @@ -0,0 +1,49 @@ + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + 展开 / + 折叠 +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + diff --git a/alive-admin/src/main/resources/templates/system/notice/add.html b/alive-admin/src/main/resources/templates/system/notice/add.html new file mode 100644 index 0000000..b47f7ce --- /dev/null +++ b/alive-admin/src/main/resources/templates/system/notice/add.html @@ -0,0 +1,97 @@ + + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + diff --git a/alive-admin/src/main/resources/templates/system/notice/edit.html b/alive-admin/src/main/resources/templates/system/notice/edit.html new file mode 100644 index 0000000..1c9f109 --- /dev/null +++ b/alive-admin/src/main/resources/templates/system/notice/edit.html @@ -0,0 +1,102 @@ + + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + diff --git a/alive-admin/src/main/resources/templates/system/notice/notice.html b/alive-admin/src/main/resources/templates/system/notice/notice.html new file mode 100644 index 0000000..91ecd78 --- /dev/null +++ b/alive-admin/src/main/resources/templates/system/notice/notice.html @@ -0,0 +1,117 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                          • + 公告标题: +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + 操作人员: +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + 公告类型: +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • +  搜索 +  重置 +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/system/post/add.html b/alive-admin/src/main/resources/templates/system/post/add.html new file mode 100644 index 0000000..70381a2 --- /dev/null +++ b/alive-admin/src/main/resources/templates/system/post/add.html @@ -0,0 +1,103 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + diff --git a/alive-admin/src/main/resources/templates/system/post/edit.html b/alive-admin/src/main/resources/templates/system/post/edit.html new file mode 100644 index 0000000..ee3e341 --- /dev/null +++ b/alive-admin/src/main/resources/templates/system/post/edit.html @@ -0,0 +1,110 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + diff --git a/alive-admin/src/main/resources/templates/system/post/post.html b/alive-admin/src/main/resources/templates/system/post/post.html new file mode 100644 index 0000000..3c3fc42 --- /dev/null +++ b/alive-admin/src/main/resources/templates/system/post/post.html @@ -0,0 +1,120 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                          • + 岗位编码: +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + 岗位名称: +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + 岗位状态: +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • +  搜索 +  重置 +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/system/role/add.html b/alive-admin/src/main/resources/templates/system/role/add.html new file mode 100644 index 0000000..c2c27fd --- /dev/null +++ b/alive-admin/src/main/resources/templates/system/role/add.html @@ -0,0 +1,150 @@ + + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + + 控制器中定义的权限字符,如:@RequiresRoles("") +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + diff --git a/alive-admin/src/main/resources/templates/system/role/authUser.html b/alive-admin/src/main/resources/templates/system/role/authUser.html new file mode 100644 index 0000000..7d08040 --- /dev/null +++ b/alive-admin/src/main/resources/templates/system/role/authUser.html @@ -0,0 +1,149 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/system/role/dataScope.html b/alive-admin/src/main/resources/templates/system/role/dataScope.html new file mode 100644 index 0000000..67b9293 --- /dev/null +++ b/alive-admin/src/main/resources/templates/system/role/dataScope.html @@ -0,0 +1,107 @@ + + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + + 特殊情况下,设置为“自定数据权限” +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + diff --git a/alive-admin/src/main/resources/templates/system/role/edit.html b/alive-admin/src/main/resources/templates/system/role/edit.html new file mode 100644 index 0000000..24e8d43 --- /dev/null +++ b/alive-admin/src/main/resources/templates/system/role/edit.html @@ -0,0 +1,159 @@ + + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + + 控制器中定义的权限字符,如:@RequiresRoles("") +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + diff --git a/alive-admin/src/main/resources/templates/system/role/role.html b/alive-admin/src/main/resources/templates/system/role/role.html new file mode 100644 index 0000000..b383661 --- /dev/null +++ b/alive-admin/src/main/resources/templates/system/role/role.html @@ -0,0 +1,165 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                          • + 角色名称: +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + 权限字符: +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + 角色状态: +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + + + - + +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • +  搜索 +  重置 +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/system/role/selectUser.html b/alive-admin/src/main/resources/templates/system/role/selectUser.html new file mode 100644 index 0000000..01216cc --- /dev/null +++ b/alive-admin/src/main/resources/templates/system/role/selectUser.html @@ -0,0 +1,120 @@ + + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/system/text/add.html b/alive-admin/src/main/resources/templates/system/text/add.html new file mode 100644 index 0000000..aa9782a --- /dev/null +++ b/alive-admin/src/main/resources/templates/system/text/add.html @@ -0,0 +1,60 @@ + + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/system/text/edit.html b/alive-admin/src/main/resources/templates/system/text/edit.html new file mode 100644 index 0000000..1989fee --- /dev/null +++ b/alive-admin/src/main/resources/templates/system/text/edit.html @@ -0,0 +1,61 @@ + + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/system/text/text.html b/alive-admin/src/main/resources/templates/system/text/text.html new file mode 100644 index 0000000..6faa870 --- /dev/null +++ b/alive-admin/src/main/resources/templates/system/text/text.html @@ -0,0 +1,124 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                          • + + +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + + +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + + +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + + + - + +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • +  搜索 +  重置 +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + + + + + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/system/user/add.html b/alive-admin/src/main/resources/templates/system/user/add.html new file mode 100644 index 0000000..7c18013 --- /dev/null +++ b/alive-admin/src/main/resources/templates/system/user/add.html @@ -0,0 +1,278 @@ + + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +

                                                                                                                                                                                                                                                                                                          基本信息

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          其他信息

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +   + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/system/user/authRole.html b/alive-admin/src/main/resources/templates/system/user/authRole.html new file mode 100644 index 0000000..82ff365 --- /dev/null +++ b/alive-admin/src/main/resources/templates/system/user/authRole.html @@ -0,0 +1,109 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +

                                                                                                                                                                                                                                                                                                          基本信息

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +

                                                                                                                                                                                                                                                                                                          分配角色

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +   + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/system/user/edit.html b/alive-admin/src/main/resources/templates/system/user/edit.html new file mode 100644 index 0000000..108dac7 --- /dev/null +++ b/alive-admin/src/main/resources/templates/system/user/edit.html @@ -0,0 +1,231 @@ + + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +

                                                                                                                                                                                                                                                                                                          基本信息

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          其他信息

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +   + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/system/user/profile/avatar.html b/alive-admin/src/main/resources/templates/system/user/profile/avatar.html new file mode 100644 index 0000000..0763d07 --- /dev/null +++ b/alive-admin/src/main/resources/templates/system/user/profile/avatar.html @@ -0,0 +1,261 @@ + + + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + diff --git a/alive-admin/src/main/resources/templates/system/user/profile/profile.html b/alive-admin/src/main/resources/templates/system/user/profile/profile.html new file mode 100644 index 0000000..ecfda9d --- /dev/null +++ b/alive-admin/src/main/resources/templates/system/user/profile/profile.html @@ -0,0 +1,294 @@ + + + + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          个人资料
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +

                                                                                                                                                                                                                                                                                                          修改头像

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                          • + 登录名称: +

                                                                                                                                                                                                                                                                                                            [[${user.loginName}]]

                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + 手机号码: +

                                                                                                                                                                                                                                                                                                            [[${user.phonenumber}]]

                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + 所属部门: +

                                                                                                                                                                                                                                                                                                            [[${user.dept?.deptName}]] / [[${#strings.defaultString(postGroup,'无岗位')}]]

                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + 邮箱地址: +

                                                                                                                                                                                                                                                                                                            [[${#strings.abbreviate(user.email, 16)}]]

                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + 创建时间: +

                                                                                                                                                                                                                                                                                                            [[${#dates.format(user.createTime, 'yyyy-MM-dd')}]]

                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          基本资料
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + diff --git a/alive-admin/src/main/resources/templates/system/user/profile/resetPwd.html b/alive-admin/src/main/resources/templates/system/user/profile/resetPwd.html new file mode 100644 index 0000000..23fbcb3 --- /dev/null +++ b/alive-admin/src/main/resources/templates/system/user/profile/resetPwd.html @@ -0,0 +1,94 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + + 请再次输入您的密码 +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + + diff --git a/alive-admin/src/main/resources/templates/system/user/resetPwd.html b/alive-admin/src/main/resources/templates/system/user/resetPwd.html new file mode 100644 index 0000000..ec00812 --- /dev/null +++ b/alive-admin/src/main/resources/templates/system/user/resetPwd.html @@ -0,0 +1,45 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + diff --git a/alive-admin/src/main/resources/templates/system/user/user.html b/alive-admin/src/main/resources/templates/system/user/user.html new file mode 100644 index 0000000..b749081 --- /dev/null +++ b/alive-admin/src/main/resources/templates/system/user/user.html @@ -0,0 +1,275 @@ + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                          • + 登录名称: +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + 钱包地址: +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + 手机号码: +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + 用户状态: +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • + + + - + +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • +  搜索 +  重置 +
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + + + + + \ No newline at end of file diff --git a/alive-admin/src/main/resources/templates/tool/build/build.html b/alive-admin/src/main/resources/templates/tool/build/build.html new file mode 100644 index 0000000..1fbf8a9 --- /dev/null +++ b/alive-admin/src/main/resources/templates/tool/build/build.html @@ -0,0 +1,168 @@ + + + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          元素
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + 拖拽左侧的表单元素到右侧区域,即可生成相应的HTML代码,表单代码,轻松搞定! +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                          这里是纯文字信息

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          拖拽左侧表单元素到此区域
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + 请选择显示的列数: + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + + + + + + diff --git a/alive-admin/target/alive-admin.jar b/alive-admin/target/alive-admin.jar new file mode 100644 index 0000000..cad3958 Binary files /dev/null and b/alive-admin/target/alive-admin.jar differ diff --git a/alive-admin/target/alive-admin.jar.original b/alive-admin/target/alive-admin.jar.original new file mode 100644 index 0000000..124fb5e Binary files /dev/null and b/alive-admin/target/alive-admin.jar.original differ diff --git a/alive-admin/target/classes/application-dev.yml b/alive-admin/target/classes/application-dev.yml new file mode 100644 index 0000000..4552f7f --- /dev/null +++ b/alive-admin/target/classes/application-dev.yml @@ -0,0 +1,86 @@ +# 数据源配置 +spring: + datasource: + type: com.alibaba.druid.pool.DruidDataSource + driverClassName: com.mysql.cj.jdbc.Driver + druid: + # 主库数据源 + master: + url: jdbc:mysql://127.0.0.1:3306/alive_dev?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=GMT%2B8 + username: root + password: root + # 从库数据源 + slave: + # 从数据源开关/默认关闭 + enabled: false + url: + username: + password: + # 初始连接数 + initialSize: 5 + # 最小连接池数量 + minIdle: 10 + # 最大连接池数量 + maxActive: 20 + # 配置获取连接等待超时的时间 + maxWait: 60000 + # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒 + timeBetweenEvictionRunsMillis: 60000 + # 配置一个连接在池中最小生存的时间,单位是毫秒 + minEvictableIdleTimeMillis: 300000 + # 配置一个连接在池中最大生存的时间,单位是毫秒 + maxEvictableIdleTimeMillis: 900000 + # 配置检测连接是否有效 + validationQuery: SELECT 1 FROM DUAL + testWhileIdle: true + testOnBorrow: false + testOnReturn: false + webStatFilter: + enabled: true + statViewServlet: + enabled: true + # 设置白名单,不填则允许所有访问 + allow: + url-pattern: /druid/* + # 控制台管理用户名和密码 + login-username: + login-password: + filter: + stat: + enabled: true + # 慢SQL记录 + log-slow-sql: true + slow-sql-millis: 1000 + merge-sql: true + wall: + config: + multi-statement-allow: true + redis: + host: 192.168.1.60 + database: 0 + password: 123456 + lettuce: + pool: + max-active: 20 + max-idle: 16 + max-wait: 1000ms + min-idle: 10 + +# 项目相关配置 +ruoyi: + # 名称 + name: MTXM + # 版本 + version: 4.7.3 + # 版权年份 + copyrightYear: 2022 + # 实例演示开关 + demoEnabled: true + # 文件路径 示例( Windows配置D:/ruoyi/uploadPath,Linux配置 /data/nginx/data/upload) + profile: D:/ruoyi/uploadPath # D:/ruoyi/uploadPath + # 获取ip地址开关 + addressEnabled: false + #--------------本地---------------------- + getImg: http://192.168.10.166:9090/img/ + addImg: D:/img/fai + diff --git a/alive-admin/target/classes/application-prod.yml b/alive-admin/target/classes/application-prod.yml new file mode 100644 index 0000000..957a96e --- /dev/null +++ b/alive-admin/target/classes/application-prod.yml @@ -0,0 +1,86 @@ +# 数据源配置 +spring: + datasource: + type: com.alibaba.druid.pool.DruidDataSource + driverClassName: com.mysql.cj.jdbc.Driver + druid: + # 主库数据源 + master: + url: jdbc:mysql://127.0.0.1:3306/alive_prod?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=GMT%2B8 + username: alive_prod + password: 6jD2S3CGwGYhRXNp + # 从库数据源 + slave: + # 从数据源开关/默认关闭 + enabled: false + url: + username: + password: + # 初始连接数 + initialSize: 5 + # 最小连接池数量 + minIdle: 10 + # 最大连接池数量 + maxActive: 20 + # 配置获取连接等待超时的时间 + maxWait: 60000 + # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒 + timeBetweenEvictionRunsMillis: 60000 + # 配置一个连接在池中最小生存的时间,单位是毫秒 + minEvictableIdleTimeMillis: 300000 + # 配置一个连接在池中最大生存的时间,单位是毫秒 + maxEvictableIdleTimeMillis: 900000 + # 配置检测连接是否有效 + validationQuery: SELECT 1 FROM DUAL + testWhileIdle: true + testOnBorrow: false + testOnReturn: false + webStatFilter: + enabled: true + statViewServlet: + enabled: true + # 设置白名单,不填则允许所有访问 + allow: + url-pattern: /druid/* + # 控制台管理用户名和密码 + login-username: + login-password: + filter: + stat: + enabled: true + # 慢SQL记录 + log-slow-sql: true + slow-sql-millis: 1000 + merge-sql: true + wall: + config: + multi-statement-allow: true + redis: + host: 127.0.0.1 + database: 7 + password: + lettuce: + pool: + max-active: 20 + max-idle: 16 + max-wait: 1000ms + min-idle: 10 + +# 项目相关配置 +ruoyi: + # 名称 + name: MTXM + # 版本 + version: 4.7.3 + # 版权年份 + copyrightYear: 2022 + # 实例演示开关 + demoEnabled: true + # 获取ip地址开关 + addressEnabled: false + #图片读取域名 + getImg: https://file.fireandice.space/fai/ + #图片上传域名 + addImg: /data/file/fai + + diff --git a/alive-admin/target/classes/application-test.yml b/alive-admin/target/classes/application-test.yml new file mode 100644 index 0000000..7d99841 --- /dev/null +++ b/alive-admin/target/classes/application-test.yml @@ -0,0 +1,85 @@ +# 数据源配置 +spring: + datasource: + type: com.alibaba.druid.pool.DruidDataSource + driverClassName: com.mysql.cj.jdbc.Driver + druid: + # 主库数据源 _Admin123 + master: + url: jdbc:mysql://172.17.0.1:3307/node_roos_test?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&allowPublicKeyRetrieval=true&useSSL=false&serverTimezone=GMT%2B8 + username: root + password: 123456 + # 从库数据源 + slave: + # 从数据源开关/默认关闭 + enabled: false + url: + username: + password: + # 初始连接数 + initialSize: 5 + # 最小连接池数量 + minIdle: 10 + # 最大连接池数量 + maxActive: 20 + # 配置获取连接等待超时的时间 + maxWait: 60000 + # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒 + timeBetweenEvictionRunsMillis: 60000 + # 配置一个连接在池中最小生存的时间,单位是毫秒 + minEvictableIdleTimeMillis: 300000 + # 配置一个连接在池中最大生存的时间,单位是毫秒 + maxEvictableIdleTimeMillis: 900000 + # 配置检测连接是否有效 + validationQuery: SELECT 1 FROM DUAL + testWhileIdle: true + testOnBorrow: false + testOnReturn: false + webStatFilter: + enabled: true + statViewServlet: + enabled: true + # 设置白名单,不填则允许所有访问 + allow: + url-pattern: /druid/* + # 控制台管理用户名和密码 + login-username: + login-password: + filter: + stat: + enabled: true + # 慢SQL记录 + log-slow-sql: true + slow-sql-millis: 1000 + merge-sql: true + wall: + config: + multi-statement-allow: true + redis: + host: 192.168.1.60 + database: 0 + password: 123456 + lettuce: + pool: + max-active: 20 + max-idle: 16 + max-wait: 1000ms + min-idle: 10 + +# 项目相关配置 +ruoyi: + # 名称 + name: MTXM + # 版本 + version: 4.7.3 + # 版权年份 + copyrightYear: 2022 + # 实例演示开关 + demoEnabled: true + # 获取ip地址开关 + addressEnabled: false + #图片读取域名 + getImg: http://file.odctest.top/fai/ + #图片上传域名 + addImg: /data/file/fai/ + diff --git a/alive-admin/target/classes/application.yml b/alive-admin/target/classes/application.yml new file mode 100644 index 0000000..b62534b --- /dev/null +++ b/alive-admin/target/classes/application.yml @@ -0,0 +1,142 @@ +# 项目相关配置 +ruoyi: + # 名称 + name: MTXM + # 版本 + version: 4.7.3 + # 版权年份 + copyrightYear: 2022 + # 实例演示开关 + demoEnabled: true + # 文件路径 示例( Windows配置D:/ruoyi/uploadPath,Linux配置 /home/ruoyi/uploadPath) + profile: D:/ruoyi/uploadPath + # 获取ip地址开关 + addressEnabled: false + +# 开发环境配置 +server: + # 服务器的HTTP端口,默认为80 + port: 8180 + servlet: + # 应用的访问路径 + context-path: / + tomcat: + # tomcat的URI编码 + uri-encoding: UTF-8 + # 连接数满后的排队数,默认为100 + accept-count: 1000 + threads: + # tomcat最大线程数,默认为200 + max: 800 + # Tomcat启动初始化的线程数,默认值10 + min-spare: 100 + +# 日志配置 +logging: + level: + com.ruoyi: debug + org.springframework: warn + +# 用户配置 +user: + password: + # 密码错误{maxRetryCount}次锁定10分钟 + maxRetryCount: 100 + +# Spring配置 +spring: + # 模板引擎 + thymeleaf: + mode: HTML + encoding: utf-8 + # 禁用缓存 + cache: false + # 资源信息 + messages: + # 国际化资源文件路径 + basename: static/i18n/messages + jackson: + time-zone: GMT+8 + date-format: yyyy-MM-dd HH:mm:ss + profiles: + active: dev + # 文件上传 + servlet: + multipart: + # 单个文件大小 + max-file-size: 10MB + # 设置总上传的文件大小 + max-request-size: 20MB + # 服务模块 + devtools: + restart: + # 热部署开关 + enabled: true + +# MyBatis +mybatis: + # 搜索指定包别名 + typeAliasesPackage: com.ruoyi.**.domain + # 配置mapper的扫描,找到所有的mapper.xml映射文件 + mapperLocations: classpath*:mapper/**/*Mapper.xml + # 加载全局的配置文件 + configLocation: classpath:mybatis/mybatis-config.xml + +# PageHelper分页插件 +pagehelper: + helperDialect: mysql + supportMethodsArguments: true + params: count=countSql + +# Shiro +shiro: + user: + # 登录地址 + loginUrl: /login + # 权限认证失败地址 + unauthorizedUrl: /unauth + # 首页地址 + indexUrl: /index + # 验证码开关 + captchaEnabled: false + # 验证码类型 math 数组计算 char 字符 + captchaType: math + cookie: + # 设置Cookie的域名 默认空,即当前访问的域名 + domain: + # 设置cookie的有效访问路径 + path: / + # 设置HttpOnly属性 + httpOnly: true + # 设置Cookie的过期时间,天为单位 + maxAge: 30 + # 设置密钥,务必保持唯一性(生成方式,直接拷贝到main运行即可)Base64.encodeToString(CipherUtils.generateNewKey(128, "AES").getEncoded()) (默认启动生成随机秘钥,随机秘钥会导致之前客户端RememberMe Cookie无效,如设置固定秘钥RememberMe Cookie则有效) + cipherKey: + session: + # Session超时时间,-1代表永不过期(默认30分钟) + expireTime: -1 + # 同步session到数据库的周期(默认1分钟) + dbSyncPeriod: 1 + # 相隔多久检查一次session的有效性,默认就是10分钟 + validationInterval: 10 + # 同一个用户最大会话数,比如2的意思是同一个账号允许最多同时两个人登录(默认-1不限制) + maxSession: -1 + # 踢出之前登录的/之后登录的用户,默认踢出之前登录的用户 + kickoutAfter: false + rememberMe: + # 是否开启记住我 + enabled: true + +# 防止XSS攻击 +xss: + # 过滤开关 + enabled: true + # 排除链接(多个用逗号分隔) + excludes: /system/notice/* + # 匹配链接 + urlPatterns: /system/*,/monitor/*,/tool/* + +# Swagger配置 +swagger: + # 是否开启swagger + enabled: true diff --git a/alive-admin/target/classes/banner.txt b/alive-admin/target/classes/banner.txt new file mode 100644 index 0000000..c0e09cd --- /dev/null +++ b/alive-admin/target/classes/banner.txt @@ -0,0 +1,2 @@ +Application Version: ${ruoyi.version} +Spring Boot Version: ${spring-boot.version} diff --git a/alive-admin/target/classes/com/ruoyi/AliveAdminApplication.class b/alive-admin/target/classes/com/ruoyi/AliveAdminApplication.class new file mode 100644 index 0000000..a836705 Binary files /dev/null and b/alive-admin/target/classes/com/ruoyi/AliveAdminApplication.class differ diff --git a/alive-admin/target/classes/com/ruoyi/FaiServletInitializer.class b/alive-admin/target/classes/com/ruoyi/FaiServletInitializer.class new file mode 100644 index 0000000..35344cc Binary files /dev/null and b/alive-admin/target/classes/com/ruoyi/FaiServletInitializer.class differ diff --git a/alive-admin/target/classes/com/ruoyi/web/controller/ActivityConfigController.class b/alive-admin/target/classes/com/ruoyi/web/controller/ActivityConfigController.class new file mode 100644 index 0000000..45a0b39 Binary files /dev/null and b/alive-admin/target/classes/com/ruoyi/web/controller/ActivityConfigController.class differ diff --git a/alive-admin/target/classes/com/ruoyi/web/controller/ActivityLogController.class b/alive-admin/target/classes/com/ruoyi/web/controller/ActivityLogController.class new file mode 100644 index 0000000..f80e78d Binary files /dev/null and b/alive-admin/target/classes/com/ruoyi/web/controller/ActivityLogController.class differ diff --git a/alive-admin/target/classes/com/ruoyi/web/controller/ActivityStatisticsController.class b/alive-admin/target/classes/com/ruoyi/web/controller/ActivityStatisticsController.class new file mode 100644 index 0000000..66c9f09 Binary files /dev/null and b/alive-admin/target/classes/com/ruoyi/web/controller/ActivityStatisticsController.class differ diff --git a/alive-admin/target/classes/com/ruoyi/web/controller/CoinConfigController.class b/alive-admin/target/classes/com/ruoyi/web/controller/CoinConfigController.class new file mode 100644 index 0000000..05c4f0f Binary files /dev/null and b/alive-admin/target/classes/com/ruoyi/web/controller/CoinConfigController.class differ diff --git a/alive-admin/target/classes/com/ruoyi/web/controller/NodeAwardSettingController.class b/alive-admin/target/classes/com/ruoyi/web/controller/NodeAwardSettingController.class new file mode 100644 index 0000000..fa46e8f Binary files /dev/null and b/alive-admin/target/classes/com/ruoyi/web/controller/NodeAwardSettingController.class differ diff --git a/alive-admin/target/classes/com/ruoyi/web/controller/NodeBuyLogController.class b/alive-admin/target/classes/com/ruoyi/web/controller/NodeBuyLogController.class new file mode 100644 index 0000000..b34f0e2 Binary files /dev/null and b/alive-admin/target/classes/com/ruoyi/web/controller/NodeBuyLogController.class differ diff --git a/alive-admin/target/classes/com/ruoyi/web/controller/NodeController.class b/alive-admin/target/classes/com/ruoyi/web/controller/NodeController.class new file mode 100644 index 0000000..d219a95 Binary files /dev/null and b/alive-admin/target/classes/com/ruoyi/web/controller/NodeController.class differ diff --git a/alive-admin/target/classes/com/ruoyi/web/controller/NodePriceConfigController.class b/alive-admin/target/classes/com/ruoyi/web/controller/NodePriceConfigController.class new file mode 100644 index 0000000..c3ff006 Binary files /dev/null and b/alive-admin/target/classes/com/ruoyi/web/controller/NodePriceConfigController.class differ diff --git a/alive-admin/target/classes/com/ruoyi/web/controller/NodeSettingController.class b/alive-admin/target/classes/com/ruoyi/web/controller/NodeSettingController.class new file mode 100644 index 0000000..efcbde0 Binary files /dev/null and b/alive-admin/target/classes/com/ruoyi/web/controller/NodeSettingController.class differ diff --git a/alive-admin/target/classes/com/ruoyi/web/controller/NodeTaskController.class b/alive-admin/target/classes/com/ruoyi/web/controller/NodeTaskController.class new file mode 100644 index 0000000..d493a73 Binary files /dev/null and b/alive-admin/target/classes/com/ruoyi/web/controller/NodeTaskController.class differ diff --git a/alive-admin/target/classes/com/ruoyi/web/controller/NodeTaskLogController.class b/alive-admin/target/classes/com/ruoyi/web/controller/NodeTaskLogController.class new file mode 100644 index 0000000..e8841d6 Binary files /dev/null and b/alive-admin/target/classes/com/ruoyi/web/controller/NodeTaskLogController.class differ diff --git a/alive-admin/target/classes/com/ruoyi/web/controller/NoticeController.class b/alive-admin/target/classes/com/ruoyi/web/controller/NoticeController.class new file mode 100644 index 0000000..942ef8d Binary files /dev/null and b/alive-admin/target/classes/com/ruoyi/web/controller/NoticeController.class differ diff --git a/alive-admin/target/classes/com/ruoyi/web/controller/PayCoinLogController.class b/alive-admin/target/classes/com/ruoyi/web/controller/PayCoinLogController.class new file mode 100644 index 0000000..c7d5ec3 Binary files /dev/null and b/alive-admin/target/classes/com/ruoyi/web/controller/PayCoinLogController.class differ diff --git a/alive-admin/target/classes/com/ruoyi/web/controller/RecommendController.class b/alive-admin/target/classes/com/ruoyi/web/controller/RecommendController.class new file mode 100644 index 0000000..54d35f5 Binary files /dev/null and b/alive-admin/target/classes/com/ruoyi/web/controller/RecommendController.class differ diff --git a/alive-admin/target/classes/com/ruoyi/web/controller/TConfigController.class b/alive-admin/target/classes/com/ruoyi/web/controller/TConfigController.class new file mode 100644 index 0000000..6bf8333 Binary files /dev/null and b/alive-admin/target/classes/com/ruoyi/web/controller/TConfigController.class differ diff --git a/alive-admin/target/classes/com/ruoyi/web/controller/TMemberController.class b/alive-admin/target/classes/com/ruoyi/web/controller/TMemberController.class new file mode 100644 index 0000000..36bc501 Binary files /dev/null and b/alive-admin/target/classes/com/ruoyi/web/controller/TMemberController.class differ diff --git a/alive-admin/target/classes/com/ruoyi/web/controller/TMemberWalletController.class b/alive-admin/target/classes/com/ruoyi/web/controller/TMemberWalletController.class new file mode 100644 index 0000000..e6bbffa Binary files /dev/null and b/alive-admin/target/classes/com/ruoyi/web/controller/TMemberWalletController.class differ diff --git a/alive-admin/target/classes/com/ruoyi/web/controller/TMemberWalletLogController.class b/alive-admin/target/classes/com/ruoyi/web/controller/TMemberWalletLogController.class new file mode 100644 index 0000000..89cab58 Binary files /dev/null and b/alive-admin/target/classes/com/ruoyi/web/controller/TMemberWalletLogController.class differ diff --git a/alive-admin/target/classes/com/ruoyi/web/controller/common/CommonController.class b/alive-admin/target/classes/com/ruoyi/web/controller/common/CommonController.class new file mode 100644 index 0000000..96f7a40 Binary files /dev/null and b/alive-admin/target/classes/com/ruoyi/web/controller/common/CommonController.class differ diff --git a/alive-admin/target/classes/com/ruoyi/web/controller/demo/controller/AreaModel.class b/alive-admin/target/classes/com/ruoyi/web/controller/demo/controller/AreaModel.class new file mode 100644 index 0000000..0087e6d Binary files /dev/null and b/alive-admin/target/classes/com/ruoyi/web/controller/demo/controller/AreaModel.class differ diff --git a/alive-admin/target/classes/com/ruoyi/web/controller/demo/controller/DemoDialogController.class b/alive-admin/target/classes/com/ruoyi/web/controller/demo/controller/DemoDialogController.class new file mode 100644 index 0000000..b2987af Binary files /dev/null and b/alive-admin/target/classes/com/ruoyi/web/controller/demo/controller/DemoDialogController.class differ diff --git a/alive-admin/target/classes/com/ruoyi/web/controller/demo/controller/DemoFormController.class b/alive-admin/target/classes/com/ruoyi/web/controller/demo/controller/DemoFormController.class new file mode 100644 index 0000000..517adc8 Binary files /dev/null and b/alive-admin/target/classes/com/ruoyi/web/controller/demo/controller/DemoFormController.class differ diff --git a/alive-admin/target/classes/com/ruoyi/web/controller/demo/controller/DemoIconController.class b/alive-admin/target/classes/com/ruoyi/web/controller/demo/controller/DemoIconController.class new file mode 100644 index 0000000..e618762 Binary files /dev/null and b/alive-admin/target/classes/com/ruoyi/web/controller/demo/controller/DemoIconController.class differ diff --git a/alive-admin/target/classes/com/ruoyi/web/controller/demo/controller/DemoOperateController.class b/alive-admin/target/classes/com/ruoyi/web/controller/demo/controller/DemoOperateController.class new file mode 100644 index 0000000..0d323ef Binary files /dev/null and b/alive-admin/target/classes/com/ruoyi/web/controller/demo/controller/DemoOperateController.class differ diff --git a/alive-admin/target/classes/com/ruoyi/web/controller/demo/controller/DemoReportController.class b/alive-admin/target/classes/com/ruoyi/web/controller/demo/controller/DemoReportController.class new file mode 100644 index 0000000..802491a Binary files /dev/null and b/alive-admin/target/classes/com/ruoyi/web/controller/demo/controller/DemoReportController.class differ diff --git a/alive-admin/target/classes/com/ruoyi/web/controller/demo/controller/DemoTableController.class b/alive-admin/target/classes/com/ruoyi/web/controller/demo/controller/DemoTableController.class new file mode 100644 index 0000000..a17dbc8 Binary files /dev/null and b/alive-admin/target/classes/com/ruoyi/web/controller/demo/controller/DemoTableController.class differ diff --git a/alive-admin/target/classes/com/ruoyi/web/controller/demo/controller/UserFormModel.class b/alive-admin/target/classes/com/ruoyi/web/controller/demo/controller/UserFormModel.class new file mode 100644 index 0000000..1461c7f Binary files /dev/null and b/alive-admin/target/classes/com/ruoyi/web/controller/demo/controller/UserFormModel.class differ diff --git a/alive-admin/target/classes/com/ruoyi/web/controller/demo/controller/UserTableColumn.class b/alive-admin/target/classes/com/ruoyi/web/controller/demo/controller/UserTableColumn.class new file mode 100644 index 0000000..9d79b42 Binary files /dev/null and b/alive-admin/target/classes/com/ruoyi/web/controller/demo/controller/UserTableColumn.class differ diff --git a/alive-admin/target/classes/com/ruoyi/web/controller/demo/controller/UserTableModel.class b/alive-admin/target/classes/com/ruoyi/web/controller/demo/controller/UserTableModel.class new file mode 100644 index 0000000..0e5af58 Binary files /dev/null and b/alive-admin/target/classes/com/ruoyi/web/controller/demo/controller/UserTableModel.class differ diff --git a/alive-admin/target/classes/com/ruoyi/web/controller/demo/domain/CustomerModel.class b/alive-admin/target/classes/com/ruoyi/web/controller/demo/domain/CustomerModel.class new file mode 100644 index 0000000..818cfe0 Binary files /dev/null and b/alive-admin/target/classes/com/ruoyi/web/controller/demo/domain/CustomerModel.class differ diff --git a/alive-admin/target/classes/com/ruoyi/web/controller/demo/domain/GoodsModel.class b/alive-admin/target/classes/com/ruoyi/web/controller/demo/domain/GoodsModel.class new file mode 100644 index 0000000..be4db60 Binary files /dev/null and b/alive-admin/target/classes/com/ruoyi/web/controller/demo/domain/GoodsModel.class differ diff --git a/alive-admin/target/classes/com/ruoyi/web/controller/demo/domain/UserOperateModel.class b/alive-admin/target/classes/com/ruoyi/web/controller/demo/domain/UserOperateModel.class new file mode 100644 index 0000000..ca98a58 Binary files /dev/null and b/alive-admin/target/classes/com/ruoyi/web/controller/demo/domain/UserOperateModel.class differ diff --git a/alive-admin/target/classes/com/ruoyi/web/controller/file/FileController.class b/alive-admin/target/classes/com/ruoyi/web/controller/file/FileController.class new file mode 100644 index 0000000..dd9b019 Binary files /dev/null and b/alive-admin/target/classes/com/ruoyi/web/controller/file/FileController.class differ diff --git a/alive-admin/target/classes/com/ruoyi/web/controller/monitor/CacheController.class b/alive-admin/target/classes/com/ruoyi/web/controller/monitor/CacheController.class new file mode 100644 index 0000000..9b4a0c4 Binary files /dev/null and b/alive-admin/target/classes/com/ruoyi/web/controller/monitor/CacheController.class differ diff --git a/alive-admin/target/classes/com/ruoyi/web/controller/monitor/DruidController.class b/alive-admin/target/classes/com/ruoyi/web/controller/monitor/DruidController.class new file mode 100644 index 0000000..8571e00 Binary files /dev/null and b/alive-admin/target/classes/com/ruoyi/web/controller/monitor/DruidController.class differ diff --git a/alive-admin/target/classes/com/ruoyi/web/controller/monitor/ServerController.class b/alive-admin/target/classes/com/ruoyi/web/controller/monitor/ServerController.class new file mode 100644 index 0000000..9488a0f Binary files /dev/null and b/alive-admin/target/classes/com/ruoyi/web/controller/monitor/ServerController.class differ diff --git a/alive-admin/target/classes/com/ruoyi/web/controller/monitor/SysLogininforController.class b/alive-admin/target/classes/com/ruoyi/web/controller/monitor/SysLogininforController.class new file mode 100644 index 0000000..0353118 Binary files /dev/null and b/alive-admin/target/classes/com/ruoyi/web/controller/monitor/SysLogininforController.class differ diff --git a/alive-admin/target/classes/com/ruoyi/web/controller/monitor/SysOperlogController.class b/alive-admin/target/classes/com/ruoyi/web/controller/monitor/SysOperlogController.class new file mode 100644 index 0000000..46e1a3f Binary files /dev/null and b/alive-admin/target/classes/com/ruoyi/web/controller/monitor/SysOperlogController.class differ diff --git a/alive-admin/target/classes/com/ruoyi/web/controller/monitor/SysUserOnlineController.class b/alive-admin/target/classes/com/ruoyi/web/controller/monitor/SysUserOnlineController.class new file mode 100644 index 0000000..49dc0de Binary files /dev/null and b/alive-admin/target/classes/com/ruoyi/web/controller/monitor/SysUserOnlineController.class differ diff --git a/alive-admin/target/classes/com/ruoyi/web/controller/publicAccess/PublicController.class b/alive-admin/target/classes/com/ruoyi/web/controller/publicAccess/PublicController.class new file mode 100644 index 0000000..b232c38 Binary files /dev/null and b/alive-admin/target/classes/com/ruoyi/web/controller/publicAccess/PublicController.class differ diff --git a/alive-admin/target/classes/com/ruoyi/web/controller/system/SysCaptchaController.class b/alive-admin/target/classes/com/ruoyi/web/controller/system/SysCaptchaController.class new file mode 100644 index 0000000..929c2cc Binary files /dev/null and b/alive-admin/target/classes/com/ruoyi/web/controller/system/SysCaptchaController.class differ diff --git a/alive-admin/target/classes/com/ruoyi/web/controller/system/SysConfigController.class b/alive-admin/target/classes/com/ruoyi/web/controller/system/SysConfigController.class new file mode 100644 index 0000000..3f2c341 Binary files /dev/null and b/alive-admin/target/classes/com/ruoyi/web/controller/system/SysConfigController.class differ diff --git a/alive-admin/target/classes/com/ruoyi/web/controller/system/SysDeptController.class b/alive-admin/target/classes/com/ruoyi/web/controller/system/SysDeptController.class new file mode 100644 index 0000000..77599d2 Binary files /dev/null and b/alive-admin/target/classes/com/ruoyi/web/controller/system/SysDeptController.class differ diff --git a/alive-admin/target/classes/com/ruoyi/web/controller/system/SysDictDataController.class b/alive-admin/target/classes/com/ruoyi/web/controller/system/SysDictDataController.class new file mode 100644 index 0000000..b24b941 Binary files /dev/null and b/alive-admin/target/classes/com/ruoyi/web/controller/system/SysDictDataController.class differ diff --git a/alive-admin/target/classes/com/ruoyi/web/controller/system/SysDictTypeController.class b/alive-admin/target/classes/com/ruoyi/web/controller/system/SysDictTypeController.class new file mode 100644 index 0000000..2aa7b26 Binary files /dev/null and b/alive-admin/target/classes/com/ruoyi/web/controller/system/SysDictTypeController.class differ diff --git a/alive-admin/target/classes/com/ruoyi/web/controller/system/SysIndexController.class b/alive-admin/target/classes/com/ruoyi/web/controller/system/SysIndexController.class new file mode 100644 index 0000000..67717db Binary files /dev/null and b/alive-admin/target/classes/com/ruoyi/web/controller/system/SysIndexController.class differ diff --git a/alive-admin/target/classes/com/ruoyi/web/controller/system/SysLoginController.class b/alive-admin/target/classes/com/ruoyi/web/controller/system/SysLoginController.class new file mode 100644 index 0000000..f0cfc64 Binary files /dev/null and b/alive-admin/target/classes/com/ruoyi/web/controller/system/SysLoginController.class differ diff --git a/alive-admin/target/classes/com/ruoyi/web/controller/system/SysMenuController.class b/alive-admin/target/classes/com/ruoyi/web/controller/system/SysMenuController.class new file mode 100644 index 0000000..e06cdad Binary files /dev/null and b/alive-admin/target/classes/com/ruoyi/web/controller/system/SysMenuController.class differ diff --git a/alive-admin/target/classes/com/ruoyi/web/controller/system/SysNoticeController.class b/alive-admin/target/classes/com/ruoyi/web/controller/system/SysNoticeController.class new file mode 100644 index 0000000..7844a34 Binary files /dev/null and b/alive-admin/target/classes/com/ruoyi/web/controller/system/SysNoticeController.class differ diff --git a/alive-admin/target/classes/com/ruoyi/web/controller/system/SysPostController.class b/alive-admin/target/classes/com/ruoyi/web/controller/system/SysPostController.class new file mode 100644 index 0000000..bceb83d Binary files /dev/null and b/alive-admin/target/classes/com/ruoyi/web/controller/system/SysPostController.class differ diff --git a/alive-admin/target/classes/com/ruoyi/web/controller/system/SysProfileController.class b/alive-admin/target/classes/com/ruoyi/web/controller/system/SysProfileController.class new file mode 100644 index 0000000..593823e Binary files /dev/null and b/alive-admin/target/classes/com/ruoyi/web/controller/system/SysProfileController.class differ diff --git a/alive-admin/target/classes/com/ruoyi/web/controller/system/SysRegisterController.class b/alive-admin/target/classes/com/ruoyi/web/controller/system/SysRegisterController.class new file mode 100644 index 0000000..3b94d7c Binary files /dev/null and b/alive-admin/target/classes/com/ruoyi/web/controller/system/SysRegisterController.class differ diff --git a/alive-admin/target/classes/com/ruoyi/web/controller/system/SysRoleController.class b/alive-admin/target/classes/com/ruoyi/web/controller/system/SysRoleController.class new file mode 100644 index 0000000..32d5482 Binary files /dev/null and b/alive-admin/target/classes/com/ruoyi/web/controller/system/SysRoleController.class differ diff --git a/alive-admin/target/classes/com/ruoyi/web/controller/system/SysUserController.class b/alive-admin/target/classes/com/ruoyi/web/controller/system/SysUserController.class new file mode 100644 index 0000000..fefc838 Binary files /dev/null and b/alive-admin/target/classes/com/ruoyi/web/controller/system/SysUserController.class differ diff --git a/alive-admin/target/classes/com/ruoyi/web/controller/user/UserController.class b/alive-admin/target/classes/com/ruoyi/web/controller/user/UserController.class new file mode 100644 index 0000000..ca0788e Binary files /dev/null and b/alive-admin/target/classes/com/ruoyi/web/controller/user/UserController.class differ diff --git a/alive-admin/target/classes/com/ruoyi/web/core/config/ApplicationContextUtils.class b/alive-admin/target/classes/com/ruoyi/web/core/config/ApplicationContextUtils.class new file mode 100644 index 0000000..c662166 Binary files /dev/null and b/alive-admin/target/classes/com/ruoyi/web/core/config/ApplicationContextUtils.class differ diff --git a/alive-admin/target/classes/com/ruoyi/web/core/config/RedisConfig.class b/alive-admin/target/classes/com/ruoyi/web/core/config/RedisConfig.class new file mode 100644 index 0000000..efdf736 Binary files /dev/null and b/alive-admin/target/classes/com/ruoyi/web/core/config/RedisConfig.class differ diff --git a/alive-admin/target/classes/com/ruoyi/web/core/config/SwaggerConfig.class b/alive-admin/target/classes/com/ruoyi/web/core/config/SwaggerConfig.class new file mode 100644 index 0000000..31b61d2 Binary files /dev/null and b/alive-admin/target/classes/com/ruoyi/web/core/config/SwaggerConfig.class differ diff --git a/alive-admin/target/classes/com/ruoyi/web/test/Ac.class b/alive-admin/target/classes/com/ruoyi/web/test/Ac.class new file mode 100644 index 0000000..8a8c8d0 Binary files /dev/null and b/alive-admin/target/classes/com/ruoyi/web/test/Ac.class differ diff --git a/alive-admin/target/classes/com/ruoyi/web/test/Brand.class b/alive-admin/target/classes/com/ruoyi/web/test/Brand.class new file mode 100644 index 0000000..0bc7cd0 Binary files /dev/null and b/alive-admin/target/classes/com/ruoyi/web/test/Brand.class differ diff --git a/alive-admin/target/classes/com/ruoyi/web/test/Dc.class b/alive-admin/target/classes/com/ruoyi/web/test/Dc.class new file mode 100644 index 0000000..1bdeb69 Binary files /dev/null and b/alive-admin/target/classes/com/ruoyi/web/test/Dc.class differ diff --git a/alive-admin/target/classes/com/ruoyi/web/test/LongTest.class b/alive-admin/target/classes/com/ruoyi/web/test/LongTest.class new file mode 100644 index 0000000..2f2cb11 Binary files /dev/null and b/alive-admin/target/classes/com/ruoyi/web/test/LongTest.class differ diff --git a/alive-admin/target/classes/com/ruoyi/web/test/RunoobTest$1.class b/alive-admin/target/classes/com/ruoyi/web/test/RunoobTest$1.class new file mode 100644 index 0000000..e757264 Binary files /dev/null and b/alive-admin/target/classes/com/ruoyi/web/test/RunoobTest$1.class differ diff --git a/alive-admin/target/classes/com/ruoyi/web/test/RunoobTest$2.class b/alive-admin/target/classes/com/ruoyi/web/test/RunoobTest$2.class new file mode 100644 index 0000000..1834343 Binary files /dev/null and b/alive-admin/target/classes/com/ruoyi/web/test/RunoobTest$2.class differ diff --git a/alive-admin/target/classes/com/ruoyi/web/test/RunoobTest.class b/alive-admin/target/classes/com/ruoyi/web/test/RunoobTest.class new file mode 100644 index 0000000..0a5dd4e Binary files /dev/null and b/alive-admin/target/classes/com/ruoyi/web/test/RunoobTest.class differ diff --git a/alive-admin/target/classes/com/ruoyi/web/util/EcRecoverUtil.class b/alive-admin/target/classes/com/ruoyi/web/util/EcRecoverUtil.class new file mode 100644 index 0000000..2225a32 Binary files /dev/null and b/alive-admin/target/classes/com/ruoyi/web/util/EcRecoverUtil.class differ diff --git a/alive-admin/target/classes/com/ruoyi/web/util/RedisUtil.class b/alive-admin/target/classes/com/ruoyi/web/util/RedisUtil.class new file mode 100644 index 0000000..051221a Binary files /dev/null and b/alive-admin/target/classes/com/ruoyi/web/util/RedisUtil.class differ diff --git a/alive-admin/target/classes/ehcache/ehcache-shiro.xml b/alive-admin/target/classes/ehcache/ehcache-shiro.xml new file mode 100644 index 0000000..7bf080f --- /dev/null +++ b/alive-admin/target/classes/ehcache/ehcache-shiro.xml @@ -0,0 +1,91 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/logback.xml b/alive-admin/target/classes/logback.xml new file mode 100644 index 0000000..a360583 --- /dev/null +++ b/alive-admin/target/classes/logback.xml @@ -0,0 +1,93 @@ + + + + + + + + + + + ${log.pattern} + + + + + + ${log.path}/sys-info.log + + + + ${log.path}/sys-info.%d{yyyy-MM-dd}.log + + 60 + + + ${log.pattern} + + + + INFO + + ACCEPT + + DENY + + + + + ${log.path}/sys-error.log + + + + ${log.path}/sys-error.%d{yyyy-MM-dd}.log + + 60 + + + ${log.pattern} + + + + ERROR + + ACCEPT + + DENY + + + + + + ${log.path}/sys-user.log + + + ${log.path}/sys-user.%d{yyyy-MM-dd}.log + + 60 + + + ${log.pattern} + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/mybatis/mybatis-config.xml b/alive-admin/target/classes/mybatis/mybatis-config.xml new file mode 100644 index 0000000..ac47c03 --- /dev/null +++ b/alive-admin/target/classes/mybatis/mybatis-config.xml @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + + + + diff --git a/alive-admin/target/classes/static/ajax/libs/beautifyhtml/beautifyhtml.js b/alive-admin/target/classes/static/ajax/libs/beautifyhtml/beautifyhtml.js new file mode 100644 index 0000000..ea69dec --- /dev/null +++ b/alive-admin/target/classes/static/ajax/libs/beautifyhtml/beautifyhtml.js @@ -0,0 +1,617 @@ +/*jshint curly:true, eqeqeq:true, laxbreak:true, noempty:false */ +/* + + The MIT License (MIT) + + Copyright (c) 2007-2013 Einar Lielmanis and contributors. + + Permission is hereby granted, free of charge, to any person + obtaining a copy of this software and associated documentation files + (the "Software"), to deal in the Software without restriction, + including without limitation the rights to use, copy, modify, merge, + publish, distribute, sublicense, and/or sell copies of the Software, + and to permit persons to whom the Software is furnished to do so, + subject to the following conditions: + + The above copyright notice and this permission notice shall be + included in all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS + BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN + ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + + + Style HTML +--------------- + + Written by Nochum Sossonko, (nsossonko@hotmail.com) + + Based on code initially developed by: Einar Lielmanis, + http://jsbeautifier.org/ + + Usage: + style_html(html_source); + + style_html(html_source, options); + + The options are: + indent_size (default 4) — indentation size, + indent_char (default space) — character to indent with, + max_char (default 250) - maximum amount of characters per line (0 = disable) + brace_style (default "collapse") - "collapse" | "expand" | "end-expand" + put braces on the same line as control statements (default), or put braces on own line (Allman / ANSI style), or just put end braces on own line. + unformatted (defaults to inline tags) - list of tags, that shouldn't be reformatted + indent_scripts (default normal) - "keep"|"separate"|"normal" + + e.g. + + style_html(html_source, { + 'indent_size': 2, + 'indent_char': ' ', + 'max_char': 78, + 'brace_style': 'expand', + 'unformatted': ['a', 'sub', 'sup', 'b', 'i', 'u'] + }); +*/ + +(function() { + + function style_html(html_source, options, js_beautify, css_beautify) { + //Wrapper function to invoke all the necessary constructors and deal with the output. + + var multi_parser, + indent_size, + indent_character, + max_char, + brace_style, + unformatted; + + options = options || {}; + indent_size = options.indent_size || 4; + indent_character = options.indent_char || ' '; + brace_style = options.brace_style || 'collapse'; + max_char = options.max_char === 0 ? Infinity : options.max_char || 250; + unformatted = options.unformatted || ['a', 'span', 'bdo', 'em', 'strong', 'dfn', 'code', 'samp', 'kbd', 'var', 'cite', 'abbr', 'acronym', 'q', 'sub', 'sup', 'tt', 'i', 'b', 'big', 'small', 'u', 's', 'strike', 'font', 'ins', 'del', 'pre', 'address', 'dt', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6']; + + function Parser() { + + this.pos = 0; //Parser position + this.token = ''; + this.current_mode = 'CONTENT'; //reflects the current Parser mode: TAG/CONTENT + this.tags = { //An object to hold tags, their position, and their parent-tags, initiated with default values + parent: 'parent1', + parentcount: 1, + parent1: '' + }; + this.tag_type = ''; + this.token_text = this.last_token = this.last_text = this.token_type = ''; + + this.Utils = { //Uilities made available to the various functions + whitespace: "\n\r\t ".split(''), + single_token: 'br,input,link,meta,!doctype,basefont,base,area,hr,wbr,param,img,isindex,?xml,embed,?php,?,?='.split(','), //all the single tags for HTML + extra_liners: 'head,body,/html'.split(','), //for tags that need a line of whitespace before them + in_array: function (what, arr) { + for (var i=0; i= this.input.length) { + return content.length?content.join(''):['', 'TK_EOF']; + } + + input_char = this.input.charAt(this.pos); + this.pos++; + this.line_char_count++; + + if (this.Utils.in_array(input_char, this.Utils.whitespace)) { + if (content.length) { + space = true; + } + this.line_char_count--; + continue; //don't want to insert unnecessary space + } + else if (space) { + if (this.line_char_count >= this.max_char) { //insert a line when the max_char is reached + content.push('\n'); + for (var i=0; i', 'igm'); + reg_match.lastIndex = this.pos; + var reg_array = reg_match.exec(this.input); + var end_script = reg_array?reg_array.index:this.input.length; //absolute end of script + if(this.pos < end_script) { //get everything in between the script tags + content = this.input.substring(this.pos, end_script); + this.pos = end_script; + } + return content; + }; + + this.record_tag = function (tag){ //function to record a tag and its parent in this.tags Object + if (this.tags[tag + 'count']) { //check for the existence of this tag type + this.tags[tag + 'count']++; + this.tags[tag + this.tags[tag + 'count']] = this.indent_level; //and record the present indent level + } + else { //otherwise initialize this tag type + this.tags[tag + 'count'] = 1; + this.tags[tag + this.tags[tag + 'count']] = this.indent_level; //and record the present indent level + } + this.tags[tag + this.tags[tag + 'count'] + 'parent'] = this.tags.parent; //set the parent (i.e. in the case of a div this.tags.div1parent) + this.tags.parent = tag + this.tags[tag + 'count']; //and make this the current parent (i.e. in the case of a div 'div1') + }; + + this.retrieve_tag = function (tag) { //function to retrieve the opening tag to the corresponding closer + if (this.tags[tag + 'count']) { //if the openener is not in the Object we ignore it + var temp_parent = this.tags.parent; //check to see if it's a closable tag. + while (temp_parent) { //till we reach '' (the initial value); + if (tag + this.tags[tag + 'count'] === temp_parent) { //if this is it use it + break; + } + temp_parent = this.tags[temp_parent + 'parent']; //otherwise keep on climbing up the DOM Tree + } + if (temp_parent) { //if we caught something + this.indent_level = this.tags[tag + this.tags[tag + 'count']]; //set the indent_level accordingly + this.tags.parent = this.tags[temp_parent + 'parent']; //and set the current parent + } + delete this.tags[tag + this.tags[tag + 'count'] + 'parent']; //delete the closed tags parent reference... + delete this.tags[tag + this.tags[tag + 'count']]; //...and the tag itself + if (this.tags[tag + 'count'] === 1) { + delete this.tags[tag + 'count']; + } + else { + this.tags[tag + 'count']--; + } + } + }; + + this.get_tag = function (peek) { //function to get a full tag and parse its type + var input_char = '', + content = [], + comment = '', + space = false, + tag_start, tag_end, + orig_pos = this.pos, + orig_line_char_count = this.line_char_count; + + peek = peek !== undefined ? peek : false; + + do { + if (this.pos >= this.input.length) { + if (peek) { + this.pos = orig_pos; + this.line_char_count = orig_line_char_count; + } + return content.length?content.join(''):['', 'TK_EOF']; + } + + input_char = this.input.charAt(this.pos); + this.pos++; + this.line_char_count++; + + if (this.Utils.in_array(input_char, this.Utils.whitespace)) { //don't want to insert unnecessary space + space = true; + this.line_char_count--; + continue; + } + + if (input_char === "'" || input_char === '"') { + if (!content[1] || content[1] !== '!') { //if we're in a comment strings don't get treated specially + input_char += this.get_unformatted(input_char); + space = true; + } + } + + if (input_char === '=') { //no space before = + space = false; + } + + if (content.length && content[content.length-1] !== '=' && input_char !== '>' && space) { + //no space after = or before > + if (this.line_char_count >= this.max_char) { + this.print_newline(false, content); + this.line_char_count = 0; + } + else { + content.push(' '); + this.line_char_count++; + } + space = false; + } + if (input_char === '<') { + tag_start = this.pos - 1; + } + content.push(input_char); //inserts character at-a-time (or string) + } while (input_char !== '>'); + + var tag_complete = content.join(''); + var tag_index; + if (tag_complete.indexOf(' ') !== -1) { //if there's whitespace, thats where the tag name ends + tag_index = tag_complete.indexOf(' '); + } + else { //otherwise go with the tag ending + tag_index = tag_complete.indexOf('>'); + } + var tag_check = tag_complete.substring(1, tag_index).toLowerCase(); + if (tag_complete.charAt(tag_complete.length-2) === '/' || + this.Utils.in_array(tag_check, this.Utils.single_token)) { //if this tag name is a single tag type (either in the list or has a closing /) + if ( ! peek) { + this.tag_type = 'SINGLE'; + } + } + else if (tag_check === 'script') { //for later script handling + if ( ! peek) { + this.record_tag(tag_check); + this.tag_type = 'SCRIPT'; + } + } + else if (tag_check === 'style') { //for future style handling (for now it justs uses get_content) + if ( ! peek) { + this.record_tag(tag_check); + this.tag_type = 'STYLE'; + } + } + else if (this.is_unformatted(tag_check, unformatted)) { // do not reformat the "unformatted" tags + comment = this.get_unformatted('', tag_complete); //...delegate to get_unformatted function + content.push(comment); + // Preserve collapsed whitespace either before or after this tag. + if (tag_start > 0 && this.Utils.in_array(this.input.charAt(tag_start - 1), this.Utils.whitespace)){ + content.splice(0, 0, this.input.charAt(tag_start - 1)); + } + tag_end = this.pos - 1; + if (this.Utils.in_array(this.input.charAt(tag_end + 1), this.Utils.whitespace)){ + content.push(this.input.charAt(tag_end + 1)); + } + this.tag_type = 'SINGLE'; + } + else if (tag_check.charAt(0) === '!') { //peek for so... + comment = this.get_unformatted('-->', tag_complete); //...delegate to get_unformatted + content.push(comment); + } + if ( ! peek) { + this.tag_type = 'START'; + } + } + else if (tag_check.indexOf('[endif') !== -1) {//peek for ', tag_complete); + content.push(comment); + this.tag_type = 'SINGLE'; + } + } + else if ( ! peek) { + if (tag_check.charAt(0) === '/') { //this tag is a double tag so check for tag-ending + this.retrieve_tag(tag_check.substring(1)); //remove it and all ancestors + this.tag_type = 'END'; + } + else { //otherwise it's a start-tag + this.record_tag(tag_check); //push it on the tag stack + this.tag_type = 'START'; + } + if (this.Utils.in_array(tag_check, this.Utils.extra_liners)) { //check if this double needs an extra line + this.print_newline(true, this.output); + } + } + + if (peek) { + this.pos = orig_pos; + this.line_char_count = orig_line_char_count; + } + + return content.join(''); //returns fully formatted tag + }; + + this.get_unformatted = function (delimiter, orig_tag) { //function to return unformatted content in its entirety + + if (orig_tag && orig_tag.toLowerCase().indexOf(delimiter) !== -1) { + return ''; + } + var input_char = ''; + var content = ''; + var space = true; + do { + + if (this.pos >= this.input.length) { + return content; + } + + input_char = this.input.charAt(this.pos); + this.pos++; + + if (this.Utils.in_array(input_char, this.Utils.whitespace)) { + if (!space) { + this.line_char_count--; + continue; + } + if (input_char === '\n' || input_char === '\r') { + content += '\n'; + /* Don't change tab indention for unformatted blocks. If using code for html editing, this will greatly affect
                                                                                                                                                                                                                                                                                                           tags if they are specified in the 'unformatted array'
                                                                                                                                                                                                                                                                                                          +                for (var i=0; i]*>\s*$/);
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +            // if next_tag comes back but is not an isolated tag, then
                                                                                                                                                                                                                                                                                                          +            // let's treat the 'a' tag as having content
                                                                                                                                                                                                                                                                                                          +            // and respect the unformatted option
                                                                                                                                                                                                                                                                                                          +            if (!tag || this.Utils.in_array(tag, unformatted)){
                                                                                                                                                                                                                                                                                                          +                return true;
                                                                                                                                                                                                                                                                                                          +            } else {
                                                                                                                                                                                                                                                                                                          +                return false;
                                                                                                                                                                                                                                                                                                          +            }
                                                                                                                                                                                                                                                                                                          +        };
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +        this.printer = function (js_source, indent_character, indent_size, max_char, brace_style) { //handles input/output and some other printing functions
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +          this.input = js_source || ''; //gets the input for the Parser
                                                                                                                                                                                                                                                                                                          +          this.output = [];
                                                                                                                                                                                                                                                                                                          +          this.indent_character = indent_character;
                                                                                                                                                                                                                                                                                                          +          this.indent_string = '';
                                                                                                                                                                                                                                                                                                          +          this.indent_size = indent_size;
                                                                                                                                                                                                                                                                                                          +          this.brace_style = brace_style;
                                                                                                                                                                                                                                                                                                          +          this.indent_level = 0;
                                                                                                                                                                                                                                                                                                          +          this.max_char = max_char;
                                                                                                                                                                                                                                                                                                          +          this.line_char_count = 0; //count to see if max_char was exceeded
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +          for (var i=0; i 0) {
                                                                                                                                                                                                                                                                                                          +              this.indent_level--;
                                                                                                                                                                                                                                                                                                          +            }
                                                                                                                                                                                                                                                                                                          +          };
                                                                                                                                                                                                                                                                                                          +        };
                                                                                                                                                                                                                                                                                                          +        return this;
                                                                                                                                                                                                                                                                                                          +      }
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +      /*_____________________--------------------_____________________*/
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +      multi_parser = new Parser(); //wrapping functions Parser
                                                                                                                                                                                                                                                                                                          +      multi_parser.printer(html_source, indent_character, indent_size, max_char, brace_style); //initialize starting values
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +      while (true) {
                                                                                                                                                                                                                                                                                                          +          var t = multi_parser.get_token();
                                                                                                                                                                                                                                                                                                          +          multi_parser.token_text = t[0];
                                                                                                                                                                                                                                                                                                          +          multi_parser.token_type = t[1];
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +        if (multi_parser.token_type === 'TK_EOF') {
                                                                                                                                                                                                                                                                                                          +          break;
                                                                                                                                                                                                                                                                                                          +        }
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +        switch (multi_parser.token_type) {
                                                                                                                                                                                                                                                                                                          +          case 'TK_TAG_START':
                                                                                                                                                                                                                                                                                                          +            multi_parser.print_newline(false, multi_parser.output);
                                                                                                                                                                                                                                                                                                          +            multi_parser.print_token(multi_parser.token_text);
                                                                                                                                                                                                                                                                                                          +            multi_parser.indent();
                                                                                                                                                                                                                                                                                                          +            multi_parser.current_mode = 'CONTENT';
                                                                                                                                                                                                                                                                                                          +            break;
                                                                                                                                                                                                                                                                                                          +          case 'TK_TAG_STYLE':
                                                                                                                                                                                                                                                                                                          +          case 'TK_TAG_SCRIPT':
                                                                                                                                                                                                                                                                                                          +            multi_parser.print_newline(false, multi_parser.output);
                                                                                                                                                                                                                                                                                                          +            multi_parser.print_token(multi_parser.token_text);
                                                                                                                                                                                                                                                                                                          +            multi_parser.current_mode = 'CONTENT';
                                                                                                                                                                                                                                                                                                          +            break;
                                                                                                                                                                                                                                                                                                          +          case 'TK_TAG_END':
                                                                                                                                                                                                                                                                                                          +            //Print new line only if the tag has no content and has child
                                                                                                                                                                                                                                                                                                          +            if (multi_parser.last_token === 'TK_CONTENT' && multi_parser.last_text === '') {
                                                                                                                                                                                                                                                                                                          +                var tag_name = multi_parser.token_text.match(/\w+/)[0];
                                                                                                                                                                                                                                                                                                          +                var tag_extracted_from_last_output = multi_parser.output[multi_parser.output.length -1].match(/<\s*(\w+)/);
                                                                                                                                                                                                                                                                                                          +                if (tag_extracted_from_last_output === null || tag_extracted_from_last_output[1] !== tag_name) {
                                                                                                                                                                                                                                                                                                          +                    multi_parser.print_newline(true, multi_parser.output);
                                                                                                                                                                                                                                                                                                          +                }
                                                                                                                                                                                                                                                                                                          +            }
                                                                                                                                                                                                                                                                                                          +            multi_parser.print_token(multi_parser.token_text);
                                                                                                                                                                                                                                                                                                          +            multi_parser.current_mode = 'CONTENT';
                                                                                                                                                                                                                                                                                                          +            break;
                                                                                                                                                                                                                                                                                                          +          case 'TK_TAG_SINGLE':
                                                                                                                                                                                                                                                                                                          +            // Don't add a newline before elements that should remain unformatted.
                                                                                                                                                                                                                                                                                                          +            var tag_check = multi_parser.token_text.match(/^\s*<([a-z]+)/i);
                                                                                                                                                                                                                                                                                                          +            if (!tag_check || !multi_parser.Utils.in_array(tag_check[1], unformatted)){
                                                                                                                                                                                                                                                                                                          +                multi_parser.print_newline(false, multi_parser.output);
                                                                                                                                                                                                                                                                                                          +            }
                                                                                                                                                                                                                                                                                                          +            multi_parser.print_token(multi_parser.token_text);
                                                                                                                                                                                                                                                                                                          +            multi_parser.current_mode = 'CONTENT';
                                                                                                                                                                                                                                                                                                          +            break;
                                                                                                                                                                                                                                                                                                          +          case 'TK_CONTENT':
                                                                                                                                                                                                                                                                                                          +            if (multi_parser.token_text !== '') {
                                                                                                                                                                                                                                                                                                          +              multi_parser.print_token(multi_parser.token_text);
                                                                                                                                                                                                                                                                                                          +            }
                                                                                                                                                                                                                                                                                                          +            multi_parser.current_mode = 'TAG';
                                                                                                                                                                                                                                                                                                          +            break;
                                                                                                                                                                                                                                                                                                          +          case 'TK_STYLE':
                                                                                                                                                                                                                                                                                                          +          case 'TK_SCRIPT':
                                                                                                                                                                                                                                                                                                          +            if (multi_parser.token_text !== '') {
                                                                                                                                                                                                                                                                                                          +              multi_parser.output.push('\n');
                                                                                                                                                                                                                                                                                                          +              var text = multi_parser.token_text,
                                                                                                                                                                                                                                                                                                          +                  _beautifier,
                                                                                                                                                                                                                                                                                                          +                  script_indent_level = 1;
                                                                                                                                                                                                                                                                                                          +              if (multi_parser.token_type === 'TK_SCRIPT') {
                                                                                                                                                                                                                                                                                                          +                _beautifier = typeof js_beautify === 'function' && js_beautify;
                                                                                                                                                                                                                                                                                                          +              } else if (multi_parser.token_type === 'TK_STYLE') {
                                                                                                                                                                                                                                                                                                          +                _beautifier = typeof css_beautify === 'function' && css_beautify;
                                                                                                                                                                                                                                                                                                          +              }
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +              if (options.indent_scripts === "keep") {
                                                                                                                                                                                                                                                                                                          +                script_indent_level = 0;
                                                                                                                                                                                                                                                                                                          +              } else if (options.indent_scripts === "separate") {
                                                                                                                                                                                                                                                                                                          +                script_indent_level = -multi_parser.indent_level;
                                                                                                                                                                                                                                                                                                          +              }
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +              var indentation = multi_parser.get_full_indent(script_indent_level);
                                                                                                                                                                                                                                                                                                          +              if (_beautifier) {
                                                                                                                                                                                                                                                                                                          +                // call the Beautifier if avaliable
                                                                                                                                                                                                                                                                                                          +                text = _beautifier(text.replace(/^\s*/, indentation), options);
                                                                                                                                                                                                                                                                                                          +              } else {
                                                                                                                                                                                                                                                                                                          +                // simply indent the string otherwise
                                                                                                                                                                                                                                                                                                          +                var white = text.match(/^\s*/)[0];
                                                                                                                                                                                                                                                                                                          +                var _level = white.match(/[^\n\r]*$/)[0].split(multi_parser.indent_string).length - 1;
                                                                                                                                                                                                                                                                                                          +                var reindent = multi_parser.get_full_indent(script_indent_level -_level);
                                                                                                                                                                                                                                                                                                          +                text = text.replace(/^\s*/, indentation)
                                                                                                                                                                                                                                                                                                          +                       .replace(/\r\n|\r|\n/g, '\n' + reindent)
                                                                                                                                                                                                                                                                                                          +                       .replace(/\s*$/, '');
                                                                                                                                                                                                                                                                                                          +              }
                                                                                                                                                                                                                                                                                                          +              if (text) {
                                                                                                                                                                                                                                                                                                          +                multi_parser.print_token(text);
                                                                                                                                                                                                                                                                                                          +                multi_parser.print_newline(true, multi_parser.output);
                                                                                                                                                                                                                                                                                                          +              }
                                                                                                                                                                                                                                                                                                          +            }
                                                                                                                                                                                                                                                                                                          +            multi_parser.current_mode = 'TAG';
                                                                                                                                                                                                                                                                                                          +            break;
                                                                                                                                                                                                                                                                                                          +        }
                                                                                                                                                                                                                                                                                                          +        multi_parser.last_token = multi_parser.token_type;
                                                                                                                                                                                                                                                                                                          +        multi_parser.last_text = multi_parser.token_text;
                                                                                                                                                                                                                                                                                                          +      }
                                                                                                                                                                                                                                                                                                          +      return multi_parser.output.join('');
                                                                                                                                                                                                                                                                                                          +    }
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +    // If we're running a web page and don't have either of the above, add our one global
                                                                                                                                                                                                                                                                                                          +    window.html_beautify = function(html_source, options) {
                                                                                                                                                                                                                                                                                                          +        return style_html(html_source, options, window.js_beautify, window.css_beautify);
                                                                                                                                                                                                                                                                                                          +    };
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +}());
                                                                                                                                                                                                                                                                                                          diff --git a/alive-admin/target/classes/static/ajax/libs/blockUI/jquery.blockUI.js b/alive-admin/target/classes/static/ajax/libs/blockUI/jquery.blockUI.js
                                                                                                                                                                                                                                                                                                          new file mode 100644
                                                                                                                                                                                                                                                                                                          index 0000000..552613d
                                                                                                                                                                                                                                                                                                          --- /dev/null
                                                                                                                                                                                                                                                                                                          +++ b/alive-admin/target/classes/static/ajax/libs/blockUI/jquery.blockUI.js
                                                                                                                                                                                                                                                                                                          @@ -0,0 +1,620 @@
                                                                                                                                                                                                                                                                                                          +/*!
                                                                                                                                                                                                                                                                                                          + * jQuery blockUI plugin
                                                                                                                                                                                                                                                                                                          + * Version 2.70.0-2014.11.23
                                                                                                                                                                                                                                                                                                          + * Requires jQuery v1.7 or later
                                                                                                                                                                                                                                                                                                          + *
                                                                                                                                                                                                                                                                                                          + * Examples at: http://malsup.com/jquery/block/
                                                                                                                                                                                                                                                                                                          + * Copyright (c) 2007-2013 M. Alsup
                                                                                                                                                                                                                                                                                                          + * Dual licensed under the MIT and GPL licenses:
                                                                                                                                                                                                                                                                                                          + * http://www.opensource.org/licenses/mit-license.php
                                                                                                                                                                                                                                                                                                          + * http://www.gnu.org/licenses/gpl.html
                                                                                                                                                                                                                                                                                                          + *
                                                                                                                                                                                                                                                                                                          + * Thanks to Amir-Hossein Sobhi for some excellent contributions!
                                                                                                                                                                                                                                                                                                          + */
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +;(function() {
                                                                                                                                                                                                                                                                                                          +/*jshint eqeqeq:false curly:false latedef:false */
                                                                                                                                                                                                                                                                                                          +"use strict";
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +	function setup($) {
                                                                                                                                                                                                                                                                                                          +		$.fn._fadeIn = $.fn.fadeIn;
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +		var noOp = $.noop || function() {};
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +		// this bit is to ensure we don't call setExpression when we shouldn't (with extra muscle to handle
                                                                                                                                                                                                                                                                                                          +		// confusing userAgent strings on Vista)
                                                                                                                                                                                                                                                                                                          +		var msie = /MSIE/.test(navigator.userAgent);
                                                                                                                                                                                                                                                                                                          +		var ie6  = /MSIE 6.0/.test(navigator.userAgent) && ! /MSIE 8.0/.test(navigator.userAgent);
                                                                                                                                                                                                                                                                                                          +		var mode = document.documentMode || 0;
                                                                                                                                                                                                                                                                                                          +		var setExpr = $.isFunction( document.createElement('div').style.setExpression );
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +		// global $ methods for blocking/unblocking the entire page
                                                                                                                                                                                                                                                                                                          +		$.blockUI   = function(opts) { install(window, opts); };
                                                                                                                                                                                                                                                                                                          +		$.unblockUI = function(opts) { remove(window, opts); };
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +		// convenience method for quick growl-like notifications  (http://www.google.com/search?q=growl)
                                                                                                                                                                                                                                                                                                          +		$.growlUI = function(title, message, timeout, onClose) {
                                                                                                                                                                                                                                                                                                          +			var $m = $('
                                                                                                                                                                                                                                                                                                          '); + if (title) $m.append('

                                                                                                                                                                                                                                                                                                          '+title+'

                                                                                                                                                                                                                                                                                                          '); + if (message) $m.append('

                                                                                                                                                                                                                                                                                                          '+message+'

                                                                                                                                                                                                                                                                                                          '); + if (timeout === undefined) timeout = 3000; + + // Added by konapun: Set timeout to 30 seconds if this growl is moused over, like normal toast notifications + var callBlock = function(opts) { + opts = opts || {}; + + $.blockUI({ + message: $m, + fadeIn : typeof opts.fadeIn !== 'undefined' ? opts.fadeIn : 700, + fadeOut: typeof opts.fadeOut !== 'undefined' ? opts.fadeOut : 1000, + timeout: typeof opts.timeout !== 'undefined' ? opts.timeout : timeout, + centerY: false, + showOverlay: false, + onUnblock: onClose, + css: $.blockUI.defaults.growlCSS + }); + }; + + callBlock(); + var nonmousedOpacity = $m.css('opacity'); + $m.mouseover(function() { + callBlock({ + fadeIn: 0, + timeout: 30000 + }); + + var displayBlock = $('.blockMsg'); + displayBlock.stop(); // cancel fadeout if it has started + displayBlock.fadeTo(300, 1); // make it easier to read the message by removing transparency + }).mouseout(function() { + $('.blockMsg').fadeOut(1000); + }); + // End konapun additions + }; + + // plugin method for blocking element content + $.fn.block = function(opts) { + if ( this[0] === window ) { + $.blockUI( opts ); + return this; + } + var fullOpts = $.extend({}, $.blockUI.defaults, opts || {}); + this.each(function() { + var $el = $(this); + if (fullOpts.ignoreIfBlocked && $el.data('blockUI.isBlocked')) + return; + $el.unblock({ fadeOut: 0 }); + }); + + return this.each(function() { + if ($.css(this,'position') == 'static') { + this.style.position = 'relative'; + $(this).data('blockUI.static', true); + } + this.style.zoom = 1; // force 'hasLayout' in ie + install(this, opts); + }); + }; + + // plugin method for unblocking element content + $.fn.unblock = function(opts) { + if ( this[0] === window ) { + $.unblockUI( opts ); + return this; + } + return this.each(function() { + remove(this, opts); + }); + }; + + $.blockUI.version = 2.70; // 2nd generation blocking at no extra cost! + + // override these in your code to change the default behavior and style + $.blockUI.defaults = { + // message displayed when blocking (use null for no message) + message: '
                                                                                                                                                                                                                                                                                                          加载中......
                                                                                                                                                                                                                                                                                                          ', + + title: null, // title string; only used when theme == true + draggable: true, // only used when theme == true (requires jquery-ui.js to be loaded) + + theme: false, // set to true to use with jQuery UI themes + + // styles for the message when blocking; if you wish to disable + // these and use an external stylesheet then do this in your code: + // $.blockUI.defaults.css = {}; + css: { + padding: 0, + margin: 0, + width: '30%', + top: '40%', + left: '35%', + textAlign: 'center', + color: '#000', + border: '0px', + backgroundColor:'transparent', + cursor: 'wait' + }, + + // minimal style set used when themes are used + themedCSS: { + width: '30%', + top: '40%', + left: '35%' + }, + + // styles for the overlay + overlayCSS: { + backgroundColor: '#000', + opacity: 0.6, + cursor: 'wait' + }, + + // style to replace wait cursor before unblocking to correct issue + // of lingering wait cursor + cursorReset: 'default', + + // styles applied when using $.growlUI + growlCSS: { + width: '350px', + top: '10px', + left: '', + right: '10px', + border: 'none', + padding: '5px', + opacity: 0.6, + cursor: 'default', + color: '#fff', + backgroundColor: '#000', + '-webkit-border-radius':'10px', + '-moz-border-radius': '10px', + 'border-radius': '10px' + }, + + // IE issues: 'about:blank' fails on HTTPS and javascript:false is s-l-o-w + // (hat tip to Jorge H. N. de Vasconcelos) + /*jshint scripturl:true */ + iframeSrc: /^https/i.test(window.location.href || '') ? 'javascript:false' : 'about:blank', + + // force usage of iframe in non-IE browsers (handy for blocking applets) + forceIframe: false, + + // z-index for the blocking overlay + baseZ: 1000, + + // set these to true to have the message automatically centered + centerX: true, // <-- only effects element blocking (page block controlled via css above) + centerY: true, + + // allow body element to be stetched in ie6; this makes blocking look better + // on "short" pages. disable if you wish to prevent changes to the body height + allowBodyStretch: true, + + // enable if you want key and mouse events to be disabled for content that is blocked + bindEvents: true, + + // be default blockUI will supress tab navigation from leaving blocking content + // (if bindEvents is true) + constrainTabKey: true, + + // fadeIn time in millis; set to 0 to disable fadeIn on block + fadeIn: 200, + + // fadeOut time in millis; set to 0 to disable fadeOut on unblock + fadeOut: 400, + + // time in millis to wait before auto-unblocking; set to 0 to disable auto-unblock + timeout: 0, + + // disable if you don't want to show the overlay + showOverlay: true, + + // if true, focus will be placed in the first available input field when + // page blocking + focusInput: true, + + // elements that can receive focus + focusableElements: ':input:enabled:visible', + + // suppresses the use of overlay styles on FF/Linux (due to performance issues with opacity) + // no longer needed in 2012 + // applyPlatformOpacityRules: true, + + // callback method invoked when fadeIn has completed and blocking message is visible + onBlock: null, + + // callback method invoked when unblocking has completed; the callback is + // passed the element that has been unblocked (which is the window object for page + // blocks) and the options that were passed to the unblock call: + // onUnblock(element, options) + onUnblock: null, + + // callback method invoked when the overlay area is clicked. + // setting this will turn the cursor to a pointer, otherwise cursor defined in overlayCss will be used. + onOverlayClick: null, + + // don't ask; if you really must know: http://groups.google.com/group/jquery-en/browse_thread/thread/36640a8730503595/2f6a79a77a78e493#2f6a79a77a78e493 + quirksmodeOffsetHack: 4, + + // class name of the message block + blockMsgClass: 'blockMsg', + + // if it is already blocked, then ignore it (don't unblock and reblock) + ignoreIfBlocked: false + }; + + // private data and functions follow... + + var pageBlock = null; + var pageBlockEls = []; + + function install(el, opts) { + var css, themedCSS; + var full = (el == window); + var msg = (opts && opts.message !== undefined ? opts.message : undefined); + opts = $.extend({}, $.blockUI.defaults, opts || {}); + + if (opts.ignoreIfBlocked && $(el).data('blockUI.isBlocked')) + return; + + opts.overlayCSS = $.extend({}, $.blockUI.defaults.overlayCSS, opts.overlayCSS || {}); + css = $.extend({}, $.blockUI.defaults.css, opts.css || {}); + if (opts.onOverlayClick) + opts.overlayCSS.cursor = 'pointer'; + + themedCSS = $.extend({}, $.blockUI.defaults.themedCSS, opts.themedCSS || {}); + msg = msg === undefined ? opts.message : msg; + + // remove the current block (if there is one) + if (full && pageBlock) + remove(window, {fadeOut:0}); + + // if an existing element is being used as the blocking content then we capture + // its current place in the DOM (and current display style) so we can restore + // it when we unblock + if (msg && typeof msg != 'string' && (msg.parentNode || msg.jquery)) { + var node = msg.jquery ? msg[0] : msg; + var data = {}; + $(el).data('blockUI.history', data); + data.el = node; + data.parent = node.parentNode; + data.display = node.style.display; + data.position = node.style.position; + if (data.parent) + data.parent.removeChild(node); + } + + $(el).data('blockUI.onUnblock', opts.onUnblock); + var z = opts.baseZ; + + // blockUI uses 3 layers for blocking, for simplicity they are all used on every platform; + // layer1 is the iframe layer which is used to supress bleed through of underlying content + // layer2 is the overlay layer which has opacity and a wait cursor (by default) + // layer3 is the message content that is displayed while blocking + var lyr1, lyr2, lyr3, s; + if (msie || opts.forceIframe) + lyr1 = $(''); + else + lyr1 = $(''); + + if (opts.theme) + lyr2 = $(''); + else + lyr2 = $(''); + + if (opts.theme && full) { + s = ''; + } + else if (opts.theme) { + s = ''; + } + else if (full) { + s = ''; + } + else { + s = ''; + } + lyr3 = $(s); + + // if we have a message, style it + if (msg) { + if (opts.theme) { + lyr3.css(themedCSS); + lyr3.addClass('ui-widget-content'); + } + else + lyr3.css(css); + } + + // style the overlay + if (!opts.theme /*&& (!opts.applyPlatformOpacityRules)*/) + lyr2.css(opts.overlayCSS); + lyr2.css('position', full ? 'fixed' : 'absolute'); + + // make iframe layer transparent in IE + if (msie || opts.forceIframe) + lyr1.css('opacity',0.0); + + //$([lyr1[0],lyr2[0],lyr3[0]]).appendTo(full ? 'body' : el); + var layers = [lyr1,lyr2,lyr3], $par = full ? $('body') : $(el); + $.each(layers, function() { + this.appendTo($par); + }); + + if (opts.theme && opts.draggable && $.fn.draggable) { + lyr3.draggable({ + handle: '.ui-dialog-titlebar', + cancel: 'li' + }); + } + + // ie7 must use absolute positioning in quirks mode and to account for activex issues (when scrolling) + var expr = setExpr && (!$.support.boxModel || $('object,embed', full ? null : el).length > 0); + if (ie6 || expr) { + // give body 100% height + if (full && opts.allowBodyStretch && $.support.boxModel) + $('html,body').css('height','100%'); + + // fix ie6 issue when blocked element has a border width + if ((ie6 || !$.support.boxModel) && !full) { + var t = sz(el,'borderTopWidth'), l = sz(el,'borderLeftWidth'); + var fixT = t ? '(0 - '+t+')' : 0; + var fixL = l ? '(0 - '+l+')' : 0; + } + + // simulate fixed position + $.each(layers, function(i,o) { + var s = o[0].style; + s.position = 'absolute'; + if (i < 2) { + if (full) + s.setExpression('height','Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.support.boxModel?0:'+opts.quirksmodeOffsetHack+') + "px"'); + else + s.setExpression('height','this.parentNode.offsetHeight + "px"'); + if (full) + s.setExpression('width','jQuery.support.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"'); + else + s.setExpression('width','this.parentNode.offsetWidth + "px"'); + if (fixL) s.setExpression('left', fixL); + if (fixT) s.setExpression('top', fixT); + } + else if (opts.centerY) { + if (full) s.setExpression('top','(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"'); + s.marginTop = 0; + } + else if (!opts.centerY && full) { + var top = (opts.css && opts.css.top) ? parseInt(opts.css.top, 10) : 0; + var expression = '((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + '+top+') + "px"'; + s.setExpression('top',expression); + } + }); + } + + // show the message + if (msg) { + if (opts.theme) + lyr3.find('.ui-widget-content').append(msg); + else + lyr3.append(msg); + if (msg.jquery || msg.nodeType) + $(msg).show(); + } + + if ((msie || opts.forceIframe) && opts.showOverlay) + lyr1.show(); // opacity is zero + if (opts.fadeIn) { + var cb = opts.onBlock ? opts.onBlock : noOp; + var cb1 = (opts.showOverlay && !msg) ? cb : noOp; + var cb2 = msg ? cb : noOp; + if (opts.showOverlay) + lyr2._fadeIn(opts.fadeIn, cb1); + if (msg) + lyr3._fadeIn(opts.fadeIn, cb2); + } + else { + if (opts.showOverlay) + lyr2.show(); + if (msg) + lyr3.show(); + if (opts.onBlock) + opts.onBlock.bind(lyr3)(); + } + + // bind key and mouse events + bind(1, el, opts); + + if (full) { + pageBlock = lyr3[0]; + pageBlockEls = $(opts.focusableElements,pageBlock); + if (opts.focusInput) + setTimeout(focus, 20); + } + else + center(lyr3[0], opts.centerX, opts.centerY); + + if (opts.timeout) { + // auto-unblock + var to = setTimeout(function() { + if (full) + $.unblockUI(opts); + else + $(el).unblock(opts); + }, opts.timeout); + $(el).data('blockUI.timeout', to); + } + } + + // remove the block + function remove(el, opts) { + var count; + var full = (el == window); + var $el = $(el); + var data = $el.data('blockUI.history'); + var to = $el.data('blockUI.timeout'); + if (to) { + clearTimeout(to); + $el.removeData('blockUI.timeout'); + } + opts = $.extend({}, $.blockUI.defaults, opts || {}); + bind(0, el, opts); // unbind events + + if (opts.onUnblock === null) { + opts.onUnblock = $el.data('blockUI.onUnblock'); + $el.removeData('blockUI.onUnblock'); + } + + var els; + if (full) // crazy selector to handle odd field errors in ie6/7 + els = $('body').children().filter('.blockUI').add('body > .blockUI'); + else + els = $el.find('>.blockUI'); + + // fix cursor issue + if ( opts.cursorReset ) { + if ( els.length > 1 ) + els[1].style.cursor = opts.cursorReset; + if ( els.length > 2 ) + els[2].style.cursor = opts.cursorReset; + } + + if (full) + pageBlock = pageBlockEls = null; + + if (opts.fadeOut) { + count = els.length; + els.stop().fadeOut(opts.fadeOut, function() { + if ( --count === 0) + reset(els,data,opts,el); + }); + } + else + reset(els, data, opts, el); + } + + // move blocking element back into the DOM where it started + function reset(els,data,opts,el) { + var $el = $(el); + if ( $el.data('blockUI.isBlocked') ) + return; + + els.each(function(i,o) { + // remove via DOM calls so we don't lose event handlers + if (this.parentNode) + this.parentNode.removeChild(this); + }); + + if (data && data.el) { + data.el.style.display = data.display; + data.el.style.position = data.position; + data.el.style.cursor = 'default'; // #59 + if (data.parent) + data.parent.appendChild(data.el); + $el.removeData('blockUI.history'); + } + + if ($el.data('blockUI.static')) { + $el.css('position', 'static'); // #22 + } + + if (typeof opts.onUnblock == 'function') + opts.onUnblock(el,opts); + + // fix issue in Safari 6 where block artifacts remain until reflow + var body = $(document.body), w = body.width(), cssW = body[0].style.width; + body.width(w-1).width(w); + body[0].style.width = cssW; + } + + // bind/unbind the handler + function bind(b, el, opts) { + var full = el == window, $el = $(el); + + // don't bother unbinding if there is nothing to unbind + if (!b && (full && !pageBlock || !full && !$el.data('blockUI.isBlocked'))) + return; + + $el.data('blockUI.isBlocked', b); + + // don't bind events when overlay is not in use or if bindEvents is false + if (!full || !opts.bindEvents || (b && !opts.showOverlay)) + return; + + // bind anchors and inputs for mouse and key events + var events = 'mousedown mouseup keydown keypress keyup touchstart touchend touchmove'; + if (b) + $(document).bind(events, opts, handler); + else + $(document).unbind(events, handler); + + // former impl... + // var $e = $('a,:input'); + // b ? $e.bind(events, opts, handler) : $e.unbind(events, handler); + } + + // event handler to suppress keyboard/mouse events when blocking + function handler(e) { + // allow tab navigation (conditionally) + if (e.type === 'keydown' && e.keyCode && e.keyCode == 9) { + if (pageBlock && e.data.constrainTabKey) { + var els = pageBlockEls; + var fwd = !e.shiftKey && e.target === els[els.length-1]; + var back = e.shiftKey && e.target === els[0]; + if (fwd || back) { + setTimeout(function(){focus(back);},10); + return false; + } + } + } + var opts = e.data; + var target = $(e.target); + if (target.hasClass('blockOverlay') && opts.onOverlayClick) + opts.onOverlayClick(e); + + // allow events within the message content + if (target.parents('div.' + opts.blockMsgClass).length > 0) + return true; + + // allow events for content that is not being blocked + return target.parents().children().filter('div.blockUI').length === 0; + } + + function focus(back) { + if (!pageBlockEls) + return; + var e = pageBlockEls[back===true ? pageBlockEls.length-1 : 0]; + if (e) + e.focus(); + } + + function center(el, x, y) { + var p = el.parentNode, s = el.style; + var l = ((p.offsetWidth - el.offsetWidth)/2) - sz(p,'borderLeftWidth'); + var t = ((p.offsetHeight - el.offsetHeight)/2) - sz(p,'borderTopWidth'); + if (x) s.left = l > 0 ? (l+'px') : '0'; + if (y) s.top = t > 0 ? (t+'px') : '0'; + } + + function sz(el, p) { + return parseInt($.css(el,p),10)||0; + } + + } + + + /*global define:true */ + if (typeof define === 'function' && define.amd && define.amd.jQuery) { + define(['jquery'], setup); + } else { + setup(jQuery); + } + +})(); \ No newline at end of file diff --git a/alive-admin/target/classes/static/ajax/libs/bootstrap-fileinput/fileinput.css b/alive-admin/target/classes/static/ajax/libs/bootstrap-fileinput/fileinput.css new file mode 100644 index 0000000..0f27a5f --- /dev/null +++ b/alive-admin/target/classes/static/ajax/libs/bootstrap-fileinput/fileinput.css @@ -0,0 +1,671 @@ +/*! + * bootstrap-fileinput v5.2.4 + * http://plugins.krajee.com/file-input + * + * Krajee default styling for bootstrap-fileinput. + * + * Author: Kartik Visweswaran + * Copyright: 2014 - 2021, Kartik Visweswaran, Krajee.com + * + * Licensed under the BSD-3-Clause + * https://github.com/kartik-v/bootstrap-fileinput/blob/master/LICENSE.md + */ + +.file-loading input[type=file], +input[type=file].file-loading { + width: 0; + height: 0; +} + +.file-no-browse { + position: absolute; + left: 50%; + bottom: 20%; + width: 1px; + height: 1px; + font-size: 0; + opacity: 0; + border: none; + background: none; + outline: none; + box-shadow: none; +} + +.kv-hidden, +.file-caption-icon, +.file-zoom-dialog .modal-header:before, +.file-zoom-dialog .modal-header:after, +.file-input-new .file-preview, +.file-input-new .close, +.file-input-new .glyphicon-file, +.file-input-new .fileinput-remove-button, +.file-input-new .fileinput-upload-button, +.file-input-new .no-browse .input-group-btn, +.file-input-ajax-new .fileinput-remove-button, +.file-input-ajax-new .fileinput-upload-button, +.file-input-ajax-new .no-browse .input-group-btn, +.hide-content .kv-file-content, +.is-locked .fileinput-upload-button, +.is-locked .fileinput-remove-button { + display: none; +} + +.btn-file input[type=file], +.file-caption-icon, +.file-preview .fileinput-remove, +.krajee-default .file-thumb-progress, +.file-zoom-dialog .btn-navigate, +.file-zoom-dialog .floating-buttons { + position: absolute; +} + +.file-caption-icon .kv-caption-icon { + line-height: inherit; +} + +.file-input, +.file-loading:before, +.btn-file, +.file-caption, +.file-preview, +.krajee-default.file-preview-frame, +.krajee-default .file-thumbnail-footer, +.file-zoom-dialog .modal-dialog { + position: relative; +} + +.file-error-message pre, +.file-error-message ul, +.krajee-default .file-actions, +.krajee-default .file-other-error { + text-align: left; +} + +.file-error-message pre, +.file-error-message ul { + margin: 0; +} + +.krajee-default .file-drag-handle, +.krajee-default .file-upload-indicator { + float: left; + margin-top: 10px; + width: 16px; + height: 16px; +} + +.file-thumb-progress .progress, +.file-thumb-progress .progress-bar { + font-family: Verdana, Helvetica, sans-serif; + font-size: 0.7rem; +} + +.krajee-default .file-thumb-progress .progress, +.kv-upload-progress .progress { + background-color: #ccc; +} + +.krajee-default .file-caption-info, +.krajee-default .file-size-info { + display: block; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + width: 160px; + height: 15px; + margin: auto; +} + +.file-zoom-content > .file-object.type-video, +.file-zoom-content > .file-object.type-flash, +.file-zoom-content > .file-object.type-image { + max-width: 100%; + max-height: 100%; + width: auto; +} + +.file-zoom-content > .file-object.type-video, +.file-zoom-content > .file-object.type-flash { + height: 100%; +} + +.file-zoom-content > .file-object.type-pdf, +.file-zoom-content > .file-object.type-html, +.file-zoom-content > .file-object.type-text, +.file-zoom-content > .file-object.type-default { + width: 100%; +} + +.file-loading:before { + content: " Loading..."; + display: inline-block; + padding-left: 20px; + line-height: 16px; + font-size: 13px; + font-variant: small-caps; + color: #999; + background: transparent url(loading.gif) top left no-repeat; +} + +.file-object { + margin: 0 0 -5px 0; + padding: 0; +} + +.btn-file { + overflow: hidden; +} + +.btn-file input[type=file] { + top: 0; + left: 0; + min-width: 100%; + min-height: 100%; + text-align: right; + opacity: 0; + background: none repeat scroll 0 0 transparent; + cursor: inherit; + display: block; +} + +.btn-file ::-ms-browse { + font-size: 10000px; + width: 100%; + height: 100%; +} + +.file-caption.icon-visible .file-caption-icon { + display: inline-block; +} + +.file-caption.icon-visible .file-caption-name { + padding-left: 25px; +} + +.file-caption.icon-visible > .input-group-lg .file-caption-name { + padding-left: 30px; +} + +.file-caption.icon-visible > .input-group-sm .file-caption-name { + padding-left: 22px; +} + +.file-caption-name:not(.file-caption-disabled) { + background-color: transparent; +} + +.file-caption-name.file-processing { + font-style: italic; + border-color: #bbb; + opacity: 0.5; +} + +.file-caption-icon { + padding: 7px 5px; + left: 4px; +} + +.input-group-lg .file-caption-icon { + font-size: 1.25rem; +} + +.input-group-sm .file-caption-icon { + font-size: 0.875rem; + padding: 0.25rem; +} + +.file-error-message { + color: #a94442; + background-color: #f2dede; + margin: 5px; + border: 1px solid #ebccd1; + border-radius: 4px; + padding: 15px; +} + +.file-error-message pre { + margin: 5px 0; +} + +.file-caption-disabled { + background-color: #eee; + cursor: not-allowed; + opacity: 1; +} + +.file-preview { + border-radius: 5px; + border: 1px solid #ddd; + padding: 8px; + width: 100%; + margin-bottom: 5px; +} + +.file-preview .btn-xs { + padding: 1px 5px; + font-size: 12px; + line-height: 1.5; + border-radius: 3px; +} + +.file-preview .fileinput-remove { + top: 1px; + right: 1px; + line-height: 10px; +} + +.file-preview .clickable { + cursor: pointer; +} + +.file-preview-image { + font: 40px Impact, Charcoal, sans-serif; + color: #008000; + width: auto; + height: auto; + max-width: 100%; + max-height: 100%; +} + +.krajee-default.file-preview-frame { + margin: 8px; + border: 1px solid rgba(0, 0, 0, 0.2); + box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2); + padding: 6px; + float: left; + text-align: center; +} + +.krajee-default.file-preview-frame .kv-file-content { + width: 213px; + height: 160px; +} + +.krajee-default .file-preview-other-frame { + display: flex; + align-items: center; + justify-content: center; +} + +.krajee-default.file-preview-frame .kv-file-content.kv-pdf-rendered { + width: 400px; +} + +.krajee-default.file-preview-frame[data-template="audio"] .kv-file-content { + width: 240px; + height: 55px; +} + +.krajee-default.file-preview-frame .file-thumbnail-footer { + height: 70px; +} + +.krajee-default.file-preview-frame:not(.file-preview-error):hover { + border: 1px solid rgba(0, 0, 0, 0.3); + box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.4); +} + +.krajee-default .file-preview-text { + color: #428bca; + border: 1px solid #ddd; + outline: none; + resize: none; +} + +.krajee-default .file-preview-html { + border: 1px solid #ddd; +} + +.krajee-default .file-other-icon { + font-size: 6em; + line-height: 1; +} + +.krajee-default .file-footer-buttons { + float: right; +} + +.krajee-default .file-footer-caption { + display: block; + text-align: center; + padding-top: 4px; + font-size: 11px; + color: #777; + margin-bottom: 30px; +} + +.file-upload-stats { + font-size: 10px; + text-align: center; + width: 100%; +} + +.kv-upload-progress .file-upload-stats { + font-size: 12px; + margin: -10px 0 5px; +} + +.krajee-default .file-preview-error { + opacity: 0.65; + box-shadow: none; +} + +.krajee-default .file-thumb-progress { + top: 37px; + left: 0; + right: 0; +} + +.krajee-default.kvsortable-ghost { + background: #e1edf7; + border: 2px solid #a1abff; +} + +.krajee-default .file-preview-other:hover { + opacity: 0.8; +} + +.krajee-default .file-preview-frame:not(.file-preview-error) .file-footer-caption:hover { + color: #000; +} + +.kv-upload-progress .progress { + height: 20px; + margin: 10px 0; + overflow: hidden; +} + +.kv-upload-progress .progress-bar { + height: 20px; + font-family: Verdana, Helvetica, sans-serif; +} + + +/*noinspection CssOverwrittenProperties*/ + +.file-zoom-dialog .file-other-icon { + font-size: 22em; + font-size: 50vmin; +} + +.file-zoom-dialog .modal-dialog { + width: auto; +} + +.file-zoom-dialog .modal-header { + display: flex; + align-items: center; + justify-content: space-between; +} + +.file-zoom-dialog .btn-navigate { + margin: 0 0.1rem; + padding: 0; + font-size: 1.2rem; + width: 2.4rem; + height: 2.4rem; + top: 50%; + border-radius: 50%; + text-align:center; +} + +.btn-navigate * { + width: auto; +} + +.file-zoom-dialog .floating-buttons { + top: 5px; + right: 10px; +} + +.file-zoom-dialog .btn-kv-prev { + left: 0; +} + +.file-zoom-dialog .btn-kv-next { + right: 0; +} + +.file-zoom-dialog .kv-zoom-caption { + max-width: 50%; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; +} + +.file-zoom-dialog .kv-zoom-header { + padding: 0.5rem; +} + +.file-zoom-dialog .kv-zoom-body { + padding: 0.25rem 0.5rem 0.25rem 0; +} + +.file-zoom-dialog .kv-zoom-description { + position: absolute; + opacity: 0.8; + font-size: 0.8rem; + background-color: #1a1a1a; + padding: 1rem; + text-align: center; + border-radius: 0.5rem; + color: #fff; + left: 15%; + right: 15%; + bottom: 15%; +} + +.file-zoom-dialog .kv-desc-hide { + float: right; + color: #fff; + padding: 0 0.1rem; + background: none; + border: none; +} + +.file-zoom-dialog .kv-desc-hide:hover { + opacity: 0.7; +} + +.file-zoom-dialog .kv-desc-hide:focus { + opacity: 0.9; +} + +.file-input-new .no-browse .form-control { + border-top-right-radius: 4px; + border-bottom-right-radius: 4px; +} + +.file-input-ajax-new .no-browse .form-control { + border-top-right-radius: 4px; + border-bottom-right-radius: 4px; +} + +.file-caption { + width: 100%; + position: relative; +} + +.file-thumb-loading { + background: transparent url(loading.gif) no-repeat scroll center center content-box !important; +} + +.file-drop-zone { + border: 1px dashed #aaa; + min-height: 260px; + border-radius: 4px; + text-align: center; + vertical-align: middle; + margin: 12px 15px 12px 12px; + padding: 5px; +} + +.file-drop-zone.clickable:hover { + border: 2px dashed #999; +} + +.file-drop-zone.clickable:focus { + border: 2px solid #5acde2; +} + +.file-drop-zone .file-preview-thumbnails { + cursor: default; +} + +.file-drop-zone-title { + color: #aaa; + font-size: 1.6em; + text-align: center; + padding: 85px 10px; + cursor: default; +} + +.file-highlighted { + border: 2px dashed #999 !important; + background-color: #eee; +} + +.file-uploading { + background: url(loading-sm.gif) no-repeat center bottom 10px; + opacity: 0.65; +} + +.file-zoom-fullscreen .modal-dialog { + min-width: 100%; + margin: 0; +} + +.file-zoom-fullscreen .modal-content { + border-radius: 0; + box-shadow: none; + min-height: 100vh; +} + +.file-zoom-fullscreen .kv-zoom-body { + overflow-y: auto; +} + +.floating-buttons { + z-index: 3000; +} + +.floating-buttons .btn-kv { + margin-left: 3px; + z-index: 3000; +} + +.kv-zoom-actions .btn-kv { + margin-left: 3px; +} + +.file-zoom-content { + text-align: center; + white-space: nowrap; + min-height: 300px; +} + +.file-zoom-content:hover { + background: transparent; +} + +.file-zoom-content > * { + display: inline-block; + vertical-align: middle; +} + +.file-zoom-content .kv-spacer { + height: 100%; +} + +.file-zoom-content .file-preview-image { + max-height: 100%; +} + +.file-zoom-content .file-preview-video { + max-height: 100%; +} + +.file-zoom-content > .file-object.type-image { + height: auto; + min-height: inherit; +} + +.file-zoom-content > .file-object.type-audio { + width: auto; + height: 30px; +} + +@media (min-width: 576px) { + .file-zoom-dialog .modal-dialog { + max-width: 500px; + } +} + +@media (min-width: 992px) { + .file-zoom-dialog .modal-lg { + max-width: 800px; + } +} + +@media (max-width: 767px) { + .file-preview-thumbnails { + display: flex; + justify-content: center; + align-items: center; + flex-direction: column; + } + + .file-zoom-dialog .modal-header { + flex-direction: column; + } +} + +@media (max-width: 350px) { + .krajee-default.file-preview-frame:not([data-template="audio"]) .kv-file-content { + width: 160px; + } +} + +@media (max-width: 420px) { + .krajee-default.file-preview-frame .kv-file-content.kv-pdf-rendered { + width: 100%; + } +} + +.file-loading[dir=rtl]:before { + background: transparent url(loading.gif) top right no-repeat; + padding-left: 0; + padding-right: 20px; +} + +.clickable .file-drop-zone-title { + cursor: pointer; +} + +.file-sortable .file-drag-handle:hover { + opacity: 0.7; +} + +.file-sortable .file-drag-handle { + cursor: grab; + opacity: 1; +} + +.file-grabbing, +.file-grabbing * { + cursor: not-allowed !important; +} + +.file-grabbing .file-preview-thumbnails * { + cursor: grabbing !important; +} + +.file-preview-frame.sortable-chosen { + background-color: #d9edf7; + border-color: #17a2b8; + box-shadow: none !important; +} + +.file-preview .kv-zoom-cache { + display: none; +} \ No newline at end of file diff --git a/alive-admin/target/classes/static/ajax/libs/bootstrap-fileinput/fileinput.js b/alive-admin/target/classes/static/ajax/libs/bootstrap-fileinput/fileinput.js new file mode 100644 index 0000000..352f1e3 --- /dev/null +++ b/alive-admin/target/classes/static/ajax/libs/bootstrap-fileinput/fileinput.js @@ -0,0 +1,6405 @@ +/*! + * bootstrap-fileinput v5.2.4 + * http://plugins.krajee.com/file-input + * + * Author: Kartik Visweswaran + * Copyright: 2014 - 2021, Kartik Visweswaran, Krajee.com + * + * Licensed under the BSD-3-Clause + * https://github.com/kartik-v/bootstrap-fileinput/blob/master/LICENSE.md + */ +(function (factory) { + 'use strict'; + if (typeof define === 'function' && define.amd) { + define(['jquery'], factory); + } else { + if (typeof module === 'object' && module.exports) { + //noinspection NpmUsedModulesInstalled + module.exports = factory(require('jquery')); + } else { + factory(window.jQuery); + } + } +}(function ($) { + 'use strict'; + $.fn.fileinputLocales = {}; + $.fn.fileinputThemes = {}; + if (!$.fn.fileinputBsVersion) { + $.fn.fileinputBsVersion = (window.Alert && window.Alert.VERSION) || + (window.bootstrap && window.bootstrap.Alert && bootstrap.Alert.VERSION) || '3.x.x'; + } + String.prototype.setTokens = function (replacePairs) { + var str = this.toString(), key, re; + for (key in replacePairs) { + if (replacePairs.hasOwnProperty(key)) { + re = new RegExp('\{' + key + '\}', 'g'); + str = str.replace(re, replacePairs[key]); + } + } + return str; + }; + + if (!Array.prototype.flatMap) { // polyfill flatMap + Array.prototype.flatMap = function (lambda) { + return [].concat(this.map(lambda)); + }; + } + + if (!document.currentScript) { + document.currentScript = function() { + var scripts = document.getElementsByTagName('script'); + return scripts[scripts.length - 1]; + }(); + } + + var $h, FileInput, getLoadingUrl = function () { + var src = document.currentScript.src, srcPath = src.substring(0, src.lastIndexOf("/")); + return srcPath + '/loading.gif' + }; + + // fileinput helper object for all global variables and internal helper methods + $h = { + FRAMES: '.kv-preview-thumb', + SORT_CSS: 'file-sortable', + INIT_FLAG: 'init-', + ZOOM_VAR: getLoadingUrl() + '?kvTemp__2873389129__=', // used to prevent 404 errors in URL parsing + OBJECT_PARAMS: '\n' + + '\n' + + '\n' + + '\n' + + '\n' + + '\n', + DEFAULT_PREVIEW: '
                                                                                                                                                                                                                                                                                                          \n' + + '{previewFileIcon}\n' + + '
                                                                                                                                                                                                                                                                                                          ', + MODAL_ID: 'kvFileinputModal', + MODAL_EVENTS: ['show', 'shown', 'hide', 'hidden', 'loaded'], + logMessages: { + ajaxError: '{status}: {error}. Error Details: {text}.', + badDroppedFiles: 'Error scanning dropped files!', + badExifParser: 'Error loading the piexif.js library. {details}', + badInputType: 'The input "type" must be set to "file" for initializing the "bootstrap-fileinput" plugin.', + exifWarning: 'To avoid this warning, either set "autoOrientImage" to "false" OR ensure you have loaded ' + + 'the "piexif.js" library correctly on your page before the "fileinput.js" script.', + invalidChunkSize: 'Invalid upload chunk size: "{chunkSize}". Resumable uploads are disabled.', + invalidThumb: 'Invalid thumb frame with id: "{id}".', + noResumableSupport: 'The browser does not support resumable or chunk uploads.', + noUploadUrl: 'The "uploadUrl" is not set. Ajax uploads and resumable uploads have been disabled.', + retryStatus: 'Retrying upload for chunk # {chunk} for {filename}... retry # {retry}.', + chunkQueueError: 'Could not push task to ajax pool for chunk index # {index}.', + resumableMaxRetriesReached: 'Maximum resumable ajax retries ({n}) reached.', + resumableRetryError: 'Could not retry the resumable request (try # {n})... aborting.', + resumableAborting: 'Aborting / cancelling the resumable request.', + resumableRequestError: 'Error processing resumable request. {msg}' + + }, + objUrl: window.URL || window.webkitURL, + isBs: function (ver) { + var chk = $.trim(($.fn.fileinputBsVersion || '') + ''); + ver = parseInt(ver, 10); + if (!chk) { + return ver === 4; + } + return ver === parseInt(chk.charAt(0), 10); + + }, + defaultButtonCss: function (fill) { + return 'btn-default btn-' + (fill ? '' : 'outline-') + 'secondary'; + }, + now: function () { + return new Date().getTime(); + }, + round: function (num) { + num = parseFloat(num); + return isNaN(num) ? 0 : Math.floor(Math.round(num)); + }, + getArray: function (obj) { + var i, arr = [], len = obj && obj.length || 0; + for (i = 0; i < len; i++) { + arr.push(obj[i]); + } + return arr; + }, + getFileRelativePath: function (file) { + /** @namespace file.relativePath */ + /** @namespace file.webkitRelativePath */ + return String(file.newPath || file.relativePath || file.webkitRelativePath || $h.getFileName(file) || null); + + }, + getFileId: function (file, generateFileId) { + var relativePath = $h.getFileRelativePath(file); + if (typeof generateFileId === 'function') { + return generateFileId(file); + } + if (!file) { + return null; + } + if (!relativePath) { + return null; + } + return (file.size + '_' + encodeURIComponent(relativePath).replace(/%/g, '_')); + }, + getFrameSelector: function (id, selector) { + selector = selector || ''; + return '[id="' + id + '"]' + selector; + }, + getZoomSelector: function (id, selector) { + return $h.getFrameSelector('zoom-' + id, selector); + }, + getFrameElement: function ($element, id, selector) { + return $element.find($h.getFrameSelector(id, selector)); + }, + getZoomElement: function ($element, id, selector) { + return $element.find($h.getZoomSelector(id, selector)); + }, + getElapsed: function (seconds) { + var delta = seconds, out = '', result = {}, structure = { + year: 31536000, + month: 2592000, + week: 604800, // uncomment row to ignore + day: 86400, // feel free to add your own row + hour: 3600, + minute: 60, + second: 1 + }; + $h.getObjectKeys(structure).forEach(function (key) { + result[key] = Math.floor(delta / structure[key]); + delta -= result[key] * structure[key]; + }); + $.each(result, function (key, value) { + if (value > 0) { + out += (out ? ' ' : '') + value + key.substring(0, 1); + } + }); + return out; + }, + debounce: function (func, delay) { + var inDebounce; + return function () { + var args = arguments, context = this; + clearTimeout(inDebounce); + inDebounce = setTimeout(function () { + func.apply(context, args); + }, delay); + }; + }, + stopEvent: function (e) { + e.stopPropagation(); + e.preventDefault(); + }, + getFileName: function (file) { + /** @namespace file.fileName */ + return file ? (file.fileName || file.name || '') : ''; // some confusion in different versions of Firefox + }, + createObjectURL: function (data) { + if ($h.objUrl && $h.objUrl.createObjectURL && data) { + return $h.objUrl.createObjectURL(data); + } + return ''; + }, + revokeObjectURL: function (data) { + if ($h.objUrl && $h.objUrl.revokeObjectURL && data) { + $h.objUrl.revokeObjectURL(data); + } + }, + compare: function (input, str, exact) { + return input !== undefined && (exact ? input === str : input.match(str)); + }, + isIE: function (ver) { + var div, status; + // check for IE versions < 11 + if (navigator.appName !== 'Microsoft Internet Explorer') { + return false; + } + if (ver === 10) { + return new RegExp('msie\\s' + ver, 'i').test(navigator.userAgent); + } + div = document.createElement('div'); + div.innerHTML = ''; + status = div.getElementsByTagName('i').length; + document.body.appendChild(div); + div.parentNode.removeChild(div); + return status; + }, + canOrientImage: function ($el) { + var $img = $(document.createElement('img')).css({width: '1px', height: '1px'}).insertAfter($el), + flag = $img.css('image-orientation'); + $img.remove(); + return !!flag; + }, + canAssignFilesToInput: function () { + var input = document.createElement('input'); + try { + input.type = 'file'; + input.files = null; + return true; + } catch (err) { + return false; + } + }, + getDragDropFolders: function (items) { + var i, item, len = items ? items.length : 0, folders = 0; + if (len > 0 && items[0].webkitGetAsEntry()) { + for (i = 0; i < len; i++) { + item = items[i].webkitGetAsEntry(); + if (item && item.isDirectory) { + folders++; + } + } + } + return folders; + }, + initModal: function ($modal) { + var $body = $('body'); + if ($body.length) { + $modal.appendTo($body); + } + }, + isFunction: function (v) { + return typeof v === 'function'; + }, + isEmpty: function (value, trim) { + if (value === undefined || value === null || value === '') { + return true; + } + if ($h.isString(value) && trim) { + return $.trim(value) === ''; + } + if ($h.isArray(value)) { + return value.length === 0; + } + if ($.isPlainObject(value) && $.isEmptyObject(value)) { + return true + } + return false; + }, + isArray: function (a) { + return Array.isArray(a) || Object.prototype.toString.call(a) === '[object Array]'; + }, + isString: function (a) { + return Object.prototype.toString.call(a) === '[object String]'; + }, + ifSet: function (needle, haystack, def) { + def = def || ''; + return (haystack && typeof haystack === 'object' && needle in haystack) ? haystack[needle] : def; + }, + cleanArray: function (arr) { + if (!(arr instanceof Array)) { + arr = []; + } + return arr.filter(function (e) { + return (e !== undefined && e !== null); + }); + }, + spliceArray: function (arr, index, reverseOrder) { + var i, j = 0, out = [], newArr; + if (!(arr instanceof Array)) { + return []; + } + newArr = $.extend(true, [], arr); + if (reverseOrder) { + newArr.reverse(); + } + for (i = 0; i < newArr.length; i++) { + if (i !== index) { + out[j] = newArr[i]; + j++; + } + } + if (reverseOrder) { + out.reverse(); + } + return out; + }, + getNum: function (num, def) { + def = def || 0; + if (typeof num === 'number') { + return num; + } + if (typeof num === 'string') { + num = parseFloat(num); + } + return isNaN(num) ? def : num; + }, + hasFileAPISupport: function () { + return !!(window.File && window.FileReader); + }, + hasDragDropSupport: function () { + var div = document.createElement('div'); + /** @namespace div.draggable */ + /** @namespace div.ondragstart */ + /** @namespace div.ondrop */ + return !$h.isIE(9) && + (div.draggable !== undefined || (div.ondragstart !== undefined && div.ondrop !== undefined)); + }, + hasFileUploadSupport: function () { + return $h.hasFileAPISupport() && window.FormData; + }, + hasBlobSupport: function () { + try { + return !!window.Blob && Boolean(new Blob()); + } catch (e) { + return false; + } + }, + hasArrayBufferViewSupport: function () { + try { + return new Blob([new Uint8Array(100)]).size === 100; + } catch (e) { + return false; + } + }, + hasResumableUploadSupport: function () { + /** @namespace Blob.prototype.webkitSlice */ + /** @namespace Blob.prototype.mozSlice */ + return $h.hasFileUploadSupport() && $h.hasBlobSupport() && $h.hasArrayBufferViewSupport() && + (!!Blob.prototype.webkitSlice || !!Blob.prototype.mozSlice || !!Blob.prototype.slice || false); + }, + dataURI2Blob: function (dataURI) { + var BlobBuilder = window.BlobBuilder || window.WebKitBlobBuilder || window.MozBlobBuilder || + window.MSBlobBuilder, canBlob = $h.hasBlobSupport(), byteStr, arrayBuffer, intArray, i, mimeStr, bb, + canProceed = (canBlob || BlobBuilder) && window.atob && window.ArrayBuffer && window.Uint8Array; + if (!canProceed) { + return null; + } + if (dataURI.split(',')[0].indexOf('base64') >= 0) { + byteStr = atob(dataURI.split(',')[1]); + } else { + byteStr = decodeURIComponent(dataURI.split(',')[1]); + } + arrayBuffer = new ArrayBuffer(byteStr.length); + intArray = new Uint8Array(arrayBuffer); + for (i = 0; i < byteStr.length; i += 1) { + intArray[i] = byteStr.charCodeAt(i); + } + mimeStr = dataURI.split(',')[0].split(':')[1].split(';')[0]; + if (canBlob) { + return new Blob([$h.hasArrayBufferViewSupport() ? intArray : arrayBuffer], {type: mimeStr}); + } + bb = new BlobBuilder(); + bb.append(arrayBuffer); + return bb.getBlob(mimeStr); + }, + arrayBuffer2String: function (buffer) { + if (window.TextDecoder) { + return new TextDecoder('utf-8').decode(buffer); + } + var array = Array.prototype.slice.apply(new Uint8Array(buffer)), out = '', i = 0, len, c, char2, char3; + len = array.length; + while (i < len) { + c = array[i++]; + switch (c >> 4) { // jshint ignore:line + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + // 0xxxxxxx + out += String.fromCharCode(c); + break; + case 12: + case 13: + // 110x xxxx 10xx xxxx + char2 = array[i++]; + out += String.fromCharCode(((c & 0x1F) << 6) | (char2 & 0x3F)); // jshint ignore:line + break; + case 14: + // 1110 xxxx 10xx xxxx 10xx xxxx + char2 = array[i++]; + char3 = array[i++]; + out += String.fromCharCode(((c & 0x0F) << 12) | // jshint ignore:line + ((char2 & 0x3F) << 6) | // jshint ignore:line + ((char3 & 0x3F) << 0)); // jshint ignore:line + break; + } + } + return out; + }, + isHtml: function (str) { + var a = document.createElement('div'); + a.innerHTML = str; + for (var c = a.childNodes, i = c.length; i--;) { + if (c[i].nodeType === 1) { + return true; + } + } + return false; + }, + isSvg: function (str) { + return str.match(/^\s*<\?xml/i) && (str.match(/' + str + '')); + }, + uniqId: function () { + return (new Date().getTime() + Math.floor(Math.random() * Math.pow(10, 15))).toString(36); + }, + cspBuffer: { + CSP_ATTRIB: 'data-csp-01928735', // a randomly named temporary attribute to store the CSP elem id + domElementsStyles: {}, + stash: function (htmlString) { + var self = this, outerDom = $.parseHTML('
                                                                                                                                                                                                                                                                                                          ' + htmlString + '
                                                                                                                                                                                                                                                                                                          '), $el = $(outerDom); + $el.find('[style]').each(function (key, elem) { + var $elem = $(elem), styleDeclaration = $elem[0].style, id = $h.uniqId(), styles = {}; + if (styleDeclaration && styleDeclaration.length) { + $(styleDeclaration).each(function () { + styles[this] = styleDeclaration[this]; + }); + self.domElementsStyles[id] = styles; + $elem.removeAttr('style').attr(self.CSP_ATTRIB, id); + } + }); + $el.filter('*').removeAttr('style'); // make sure all style attr are removed + var values = Object.values ? Object.values(outerDom) : Object.keys(outerDom).map(function (itm) { + return outerDom[itm]; + }); + return values.flatMap(function (elem) { + return elem.innerHTML; + }).join(''); + }, + apply: function (domElement) { + var self = this, $el = $(domElement); + $el.find('[' + self.CSP_ATTRIB + ']').each(function (key, elem) { + var $elem = $(elem), id = $elem.attr(self.CSP_ATTRIB), styles = self.domElementsStyles[id]; + if (styles) { + $elem.css(styles); + } + $elem.removeAttr(self.CSP_ATTRIB); + }); + self.domElementsStyles = {}; + } + }, + setHtml: function ($elem, htmlString) { + var buf = $h.cspBuffer; + $elem.html(buf.stash(htmlString)); + buf.apply($elem); + return $elem; + }, + htmlEncode: function (str, undefVal) { + if (str === undefined) { + return undefVal || null; + } + return str.replace(/&/g, '&') + .replace(//g, '>') + .replace(/"/g, '"') + .replace(/'/g, '''); + }, + replaceTags: function (str, tags) { + var out = str; + if (!tags) { + return out; + } + $.each(tags, function (key, value) { + if (typeof value === 'function') { + value = value(); + } + out = out.split(key).join(value); + }); + return out; + }, + cleanMemory: function ($thumb) { + var data = $thumb.is('img') ? $thumb.attr('src') : $thumb.find('source').attr('src'); + $h.revokeObjectURL(data); + }, + findFileName: function (filePath) { + var sepIndex = filePath.lastIndexOf('/'); + if (sepIndex === -1) { + sepIndex = filePath.lastIndexOf('\\'); + } + return filePath.split(filePath.substring(sepIndex, sepIndex + 1)).pop(); + }, + checkFullScreen: function () { + return document.fullscreenElement || document.mozFullScreenElement || document.webkitFullscreenElement || + document.msFullscreenElement; + }, + toggleFullScreen: function (maximize) { + var doc = document, de = doc.documentElement, isFullScreen = $h.checkFullScreen(); + if (de && maximize && !isFullScreen) { + if (de.requestFullscreen) { + de.requestFullscreen(); + } else { + if (de.msRequestFullscreen) { + de.msRequestFullscreen(); + } else { + if (de.mozRequestFullScreen) { + de.mozRequestFullScreen(); + } else { + if (de.webkitRequestFullscreen) { + de.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT); + } + } + } + } + } else { + if (isFullScreen) { + if (doc.exitFullscreen) { + doc.exitFullscreen(); + } else { + if (doc.msExitFullscreen) { + doc.msExitFullscreen(); + } else { + if (doc.mozCancelFullScreen) { + doc.mozCancelFullScreen(); + } else { + if (doc.webkitExitFullscreen) { + doc.webkitExitFullscreen(); + } + } + } + } + } + } + }, + moveArray: function (arr, oldIndex, newIndex, reverseOrder) { + var newArr = $.extend(true, [], arr); + if (reverseOrder) { + newArr.reverse(); + } + if (newIndex >= newArr.length) { + var k = newIndex - newArr.length; + while ((k--) + 1) { + newArr.push(undefined); + } + } + newArr.splice(newIndex, 0, newArr.splice(oldIndex, 1)[0]); + if (reverseOrder) { + newArr.reverse(); + } + return newArr; + }, + closeButton: function (css) { + css = ($h.isBs(5) ? 'btn-close' : 'close') + (css ? ' ' + css : ''); + return ''; + }, + getRotation: function (value) { + switch (value) { + case 2: + return 'rotateY(180deg)'; + case 3: + return 'rotate(180deg)'; + case 4: + return 'rotate(180deg) rotateY(180deg)'; + case 5: + return 'rotate(270deg) rotateY(180deg)'; + case 6: + return 'rotate(90deg)'; + case 7: + return 'rotate(90deg) rotateY(180deg)'; + case 8: + return 'rotate(270deg)'; + default: + return ''; + } + }, + setTransform: function (el, val) { + if (!el) { + return; + } + el.style.transform = val; + el.style.webkitTransform = val; + el.style['-moz-transform'] = val; + el.style['-ms-transform'] = val; + el.style['-o-transform'] = val; + }, + getObjectKeys: function (obj) { + var keys = []; + if (obj) { + $.each(obj, function (key) { + keys.push(key); + }); + } + return keys; + }, + getObjectSize: function (obj) { + return $h.getObjectKeys(obj).length; + }, + /** + * Small dependency injection for the task manager + * https://gist.github.com/fearphage/4341799 + */ + whenAll: function (array) { + var s = [].slice, resolveValues = arguments.length === 1 && $h.isArray(array) ? array : s.call(arguments), + deferred = $.Deferred(), i, failed = 0, value, length = resolveValues.length, + remaining = length, rejectContexts, rejectValues, resolveContexts, updateFunc; + rejectContexts = rejectValues = resolveContexts = Array(length); + updateFunc = function (index, contexts, values) { + return function () { + if (values !== resolveValues) { + failed++; + } + deferred.notifyWith(contexts[index] = this, values[index] = s.call(arguments)); + if (!(--remaining)) { + deferred[(!failed ? 'resolve' : 'reject') + 'With'](contexts, values); + } + }; + }; + for (i = 0; i < length; i++) { + if ((value = resolveValues[i]) && $.isFunction(value.promise)) { + value.promise() + .done(updateFunc(i, resolveContexts, resolveValues)) + .fail(updateFunc(i, rejectContexts, rejectValues)); + } else { + deferred.notifyWith(this, value); + --remaining; + } + } + if (!remaining) { + deferred.resolveWith(resolveContexts, resolveValues); + } + return deferred.promise(); + } + }; + FileInput = function (element, options) { + var self = this; + self.$element = $(element); + self.$parent = self.$element.parent(); + if (!self._validate()) { + return; + } + self.isPreviewable = $h.hasFileAPISupport(); + self.isIE9 = $h.isIE(9); + self.isIE10 = $h.isIE(10); + if (self.isPreviewable || self.isIE9) { + self._init(options); + self._listen(); + } + self.$element.removeClass('file-loading'); + }; + + FileInput.prototype = { + constructor: FileInput, + _cleanup: function () { + var self = this; + self.reader = null; + self.clearFileStack(); + self.fileBatchCompleted = true; + self.isError = false; + self.isDuplicateError = false; + self.isPersistentError = false; + self.cancelling = false; + self.paused = false; + self.lastProgress = 0; + self._initAjax(); + }, + _isAborted: function () { + var self = this; + return self.cancelling || self.paused; + }, + _initAjax: function () { + var self = this, tm = self.taskManager = { + pool: {}, + addPool: function (id) { + return (tm.pool[id] = new tm.TasksPool(id)); + }, + getPool: function (id) { + return tm.pool[id]; + }, + addTask: function (id, logic) { // add standalone task directly from task manager + return new tm.Task(id, logic); + }, + TasksPool: function (id) { + var tp = this; + tp.id = id; + tp.cancelled = false; + tp.cancelledDeferrer = $.Deferred(); + tp.tasks = {}; + tp.addTask = function (id, logic) { + return (tp.tasks[id] = new tm.Task(id, logic)); + }; + tp.size = function () { + return $h.getObjectSize(tp.tasks); + }; + tp.run = function (maxThreads) { + var i = 0, failed = false, task, tasksList = $h.getObjectKeys(tp.tasks).map(function (key) { + return tp.tasks[key]; + }), tasksDone = [], deferred = $.Deferred(), enqueue, callback; + + if (tp.cancelled) { + tp.cancelledDeferrer.resolve(); + return deferred.reject(); + } + // if run all at once + if (!maxThreads) { + var tasksDeferredList = $h.getObjectKeys(tp.tasks).map(function (key) { + return tp.tasks[key].deferred; + }); + // when all are done + $h.whenAll(tasksDeferredList).done(function () { + var argv = $h.getArray(arguments); + if (!tp.cancelled) { + deferred.resolve.apply(null, argv); + tp.cancelledDeferrer.reject(); + } else { + deferred.reject.apply(null, argv); + tp.cancelledDeferrer.resolve(); + } + }).fail(function () { + var argv = $h.getArray(arguments); + deferred.reject.apply(null, argv); + if (!tp.cancelled) { + tp.cancelledDeferrer.reject(); + } else { + tp.cancelledDeferrer.resolve(); + } + }); + // run all tasks + $.each(tp.tasks, function (id) { + task = tp.tasks[id]; + task.run(); + }); + return deferred; + } + enqueue = function (task) { + $.when(task.deferred) + .fail(function () { + failed = true; + callback.apply(null, arguments); + }) + .always(callback); + }; + callback = function () { + var argv = $h.getArray(arguments); + // notify a task just ended + deferred.notify(argv); + tasksDone.push(argv); + if (tp.cancelled) { + deferred.reject.apply(null, tasksDone); + tp.cancelledDeferrer.resolve(); + return; + } + if (tasksDone.length === tp.size()) { + if (failed) { + deferred.reject.apply(null, tasksDone); + } else { + deferred.resolve.apply(null, tasksDone); + } + } + // if there are any tasks remaining + if (tasksList.length) { + task = tasksList.shift(); + enqueue(task); + task.run(); + } + }; + // run the first "maxThreads" tasks + while (tasksList.length && i++ < maxThreads) { + task = tasksList.shift(); + enqueue(task); + task.run(); + } + return deferred; + }; + tp.cancel = function () { + tp.cancelled = true; + return tp.cancelledDeferrer; + }; + }, + Task: function (id, logic) { + var tk = this; + tk.id = id; + tk.deferred = $.Deferred(); + tk.logic = logic; + tk.context = null; + tk.run = function () { + var argv = $h.getArray(arguments); + argv.unshift(tk.deferred); // add deferrer as first argument + logic.apply(tk.context, argv); // run task + return tk.deferred; // return deferrer + }; + tk.runWithContext = function (context) { + tk.context = context; + return tk.run(); + }; + } + }; + self.ajaxQueue = []; + self.ajaxRequests = []; + self.ajaxAborted = false; + }, + _init: function (options, refreshMode) { + var self = this, f, $el = self.$element, $cont, t, tmp; + self.options = options; + self.canOrientImage = $h.canOrientImage($el); + $.each(options, function (key, value) { + switch (key) { + case 'minFileCount': + case 'maxFileCount': + case 'maxTotalFileCount': + case 'minFileSize': + case 'maxFileSize': + case 'maxFilePreviewSize': + case 'resizeQuality': + case 'resizeIfSizeMoreThan': + case 'progressUploadThreshold': + case 'initialPreviewCount': + case 'zoomModalHeight': + case 'minImageHeight': + case 'maxImageHeight': + case 'minImageWidth': + case 'maxImageWidth': + case 'bytesToKB': + self[key] = $h.getNum(value); + break; + default: + self[key] = value; + break; + } + }); + if (!self.bytesToKB || self.bytesToKB <= 0) { + self.bytesToKB = 1024; + } + if (self.errorCloseButton === undefined) { + self.errorCloseButton = $h.closeButton('kv-error-close' + ($h.isBs(5) ? ' float-end' : '')); + } + if (self.maxTotalFileCount > 0 && self.maxTotalFileCount < self.maxFileCount) { + self.maxTotalFileCount = self.maxFileCount; + } + if (self.rtl) { // swap buttons for rtl + tmp = self.previewZoomButtonIcons.prev; + self.previewZoomButtonIcons.prev = self.previewZoomButtonIcons.next; + self.previewZoomButtonIcons.next = tmp; + } + // validate chunk threads to not exceed maxAjaxThreads + if (!isNaN(self.maxAjaxThreads) && self.maxAjaxThreads < self.resumableUploadOptions.maxThreads) { + self.resumableUploadOptions.maxThreads = self.maxAjaxThreads; + } + self._initFileManager(); + if (typeof self.autoOrientImage === 'function') { + self.autoOrientImage = self.autoOrientImage(); + } + if (typeof self.autoOrientImageInitial === 'function') { + self.autoOrientImageInitial = self.autoOrientImageInitial(); + } + if (!refreshMode) { + self._cleanup(); + } + self.duplicateErrors = []; + self.$form = $el.closest('form'); + self._initTemplateDefaults(); + self.uploadFileAttr = !$h.isEmpty($el.attr('name')) ? $el.attr('name') : 'file_data'; + t = self._getLayoutTemplate('progress'); + self.progressTemplate = t.replace('{class}', self.progressClass); + self.progressInfoTemplate = t.replace('{class}', self.progressInfoClass); + self.progressPauseTemplate = t.replace('{class}', self.progressPauseClass); + self.progressCompleteTemplate = t.replace('{class}', self.progressCompleteClass); + self.progressErrorTemplate = t.replace('{class}', self.progressErrorClass); + self.isDisabled = $el.attr('disabled') || $el.attr('readonly'); + if (self.isDisabled) { + $el.attr('disabled', true); + } + self.isClickable = self.browseOnZoneClick && self.showPreview && + (self.dropZoneEnabled || !$h.isEmpty(self.defaultPreviewContent)); + self.isAjaxUpload = $h.hasFileUploadSupport() && !$h.isEmpty(self.uploadUrl); + self.dropZoneEnabled = $h.hasDragDropSupport() && self.dropZoneEnabled; + if (!self.isAjaxUpload) { + self.dropZoneEnabled = self.dropZoneEnabled && $h.canAssignFilesToInput(); + } + self.slug = typeof options.slugCallback === 'function' ? options.slugCallback : self._slugDefault; + self.mainTemplate = self.showCaption ? self._getLayoutTemplate('main1') : self._getLayoutTemplate('main2'); + self.captionTemplate = self._getLayoutTemplate('caption'); + self.previewGenericTemplate = self._getPreviewTemplate('generic'); + if (!self.imageCanvas && self.resizeImage && (self.maxImageWidth || self.maxImageHeight)) { + self.imageCanvas = document.createElement('canvas'); + self.imageCanvasContext = self.imageCanvas.getContext('2d'); + } + if ($h.isEmpty($el.attr('id'))) { + $el.attr('id', $h.uniqId()); + } + self.namespace = '.fileinput_' + $el.attr('id').replace(/-/g, '_'); + if (self.$container === undefined) { + self.$container = self._createContainer(); + } else { + self._refreshContainer(); + } + $cont = self.$container; + self.$dropZone = $cont.find('.file-drop-zone'); + self.$progress = $cont.find('.kv-upload-progress'); + self.$btnUpload = $cont.find('.fileinput-upload'); + self.$captionContainer = $h.getElement(options, 'elCaptionContainer', $cont.find('.file-caption')); + self.$caption = $h.getElement(options, 'elCaptionText', $cont.find('.file-caption-name')); + if (!$h.isEmpty(self.msgPlaceholder)) { + f = $el.attr('multiple') ? self.filePlural : self.fileSingle; + self.$caption.attr('placeholder', self.msgPlaceholder.replace('{files}', f)); + } + self.$captionIcon = self.$captionContainer.find('.file-caption-icon'); + self.$previewContainer = $h.getElement(options, 'elPreviewContainer', $cont.find('.file-preview')); + self.$preview = $h.getElement(options, 'elPreviewImage', $cont.find('.file-preview-thumbnails')); + self.$previewStatus = $h.getElement(options, 'elPreviewStatus', $cont.find('.file-preview-status')); + self.$errorContainer = $h.getElement(options, 'elErrorContainer', + self.$previewContainer.find('.kv-fileinput-error')); + self._validateDisabled(); + if (!$h.isEmpty(self.msgErrorClass)) { + $h.addCss(self.$errorContainer, self.msgErrorClass); + } + if (!refreshMode) { + self._resetErrors(); + self.$errorContainer.hide(); + self.previewInitId = 'thumb-' + $el.attr('id'); + self._initPreviewCache(); + self._initPreview(true); + self._initPreviewActions(); + if (self.$parent.hasClass('file-loading')) { + self.$container.insertBefore(self.$parent); + self.$parent.remove(); + } + } else { + if (!self._errorsExist()) { + self.$errorContainer.hide(); + } + } + self._setFileDropZoneTitle(); + if ($el.attr('disabled')) { + self.disable(); + } + self._initZoom(); + if (self.hideThumbnailContent) { + $h.addCss(self.$preview, 'hide-content'); + } + }, + _initFileManager: function () { + var self = this; + self.uploadStartTime = $h.now(); + self.fileManager = { + stack: {}, + filesProcessed: [], + errors: [], + loadedImages: {}, + totalImages: 0, + totalFiles: null, + totalSize: null, + uploadedSize: 0, + stats: {}, + bpsLog: [], + bps: 0, + initStats: function (id) { + var data = {started: $h.now()}; + if (id) { + self.fileManager.stats[id] = data; + } else { + self.fileManager.stats = data; + } + }, + getUploadStats: function (id, loaded, total) { + var fm = self.fileManager, + started = id ? fm.stats[id] && fm.stats[id].started || $h.now() : self.uploadStartTime, + elapsed = ($h.now() - started) / 1000, bps = Math.ceil(elapsed ? loaded / elapsed : 0), + pendingBytes = total - loaded, out, delay = fm.bpsLog.length ? self.bitrateUpdateDelay : 0; + setTimeout(function () { + var i, j = 0, n = 0, len, beg; + fm.bpsLog.push(bps); + fm.bpsLog.sort(function (a, b) { + return a - b; + }); + len = fm.bpsLog.length; + beg = len > 10 ? len - 10 : Math.ceil(len / 2); + for (i = len; i > beg; i--) { + n = parseFloat(fm.bpsLog[i]); + j++; + } + fm.bps = (j > 0 ? n / j : 0) * 64; + }, delay); + out = { + fileId: id, + started: started, + elapsed: elapsed, + loaded: loaded, + total: total, + bps: fm.bps, + bitrate: self._getSize(fm.bps, self.bitRateUnits), + pendingBytes: pendingBytes + }; + if (id) { + fm.stats[id] = out; + } else { + fm.stats = out; + } + return out; + }, + exists: function (id) { + return $.inArray(id, self.fileManager.getIdList()) !== -1; + }, + count: function () { + return self.fileManager.getIdList().length; + }, + total: function () { + var fm = self.fileManager; + if (!fm.totalFiles) { + fm.totalFiles = fm.count(); + } + return fm.totalFiles; + }, + getTotalSize: function () { + var fm = self.fileManager; + if (fm.totalSize) { + return fm.totalSize; + } + fm.totalSize = 0; + $.each(self.getFileStack(), function (id, f) { + var size = parseFloat(f.size); + fm.totalSize += isNaN(size) ? 0 : size; + }); + return fm.totalSize; + }, + add: function (file, id) { + if (!id) { + id = self.fileManager.getId(file); + } + if (!id) { + return; + } + self.fileManager.stack[id] = { + file: file, + name: $h.getFileName(file), + relativePath: $h.getFileRelativePath(file), + size: file.size, + nameFmt: self._getFileName(file, ''), + sizeFmt: self._getSize(file.size) + }; + }, + remove: function ($thumb) { + var id = self._getThumbFileId($thumb); + self.fileManager.removeFile(id); + }, + removeFile: function (id) { + var fm = self.fileManager; + if (!id) { + return; + } + delete fm.stack[id]; + delete fm.loadedImages[id]; + }, + move: function (idFrom, idTo) { + var result = {}, stack = self.fileManager.stack; + if (!idFrom && !idTo || idFrom === idTo) { + return; + } + $.each(stack, function (k, v) { + if (k !== idFrom) { + result[k] = v; + } + if (k === idTo) { + result[idFrom] = stack[idFrom]; + } + }); + self.fileManager.stack = result; + }, + list: function () { + var files = []; + $.each(self.getFileStack(), function (k, v) { + if (v && v.file) { + files.push(v.file); + } + }); + return files; + }, + isPending: function (id) { + return $.inArray(id, self.fileManager.filesProcessed) === -1 && self.fileManager.exists(id); + }, + isProcessed: function () { + var filesProcessed = true, fm = self.fileManager; + $.each(self.getFileStack(), function (id) { + if (fm.isPending(id)) { + filesProcessed = false; + } + }); + return filesProcessed; + }, + clear: function () { + var fm = self.fileManager; + self.isDuplicateError = false; + self.isPersistentError = false; + fm.totalFiles = null; + fm.totalSize = null; + fm.uploadedSize = 0; + fm.stack = {}; + fm.errors = []; + fm.filesProcessed = []; + fm.stats = {}; + fm.bpsLog = []; + fm.bps = 0; + fm.clearImages(); + }, + clearImages: function () { + self.fileManager.loadedImages = {}; + self.fileManager.totalImages = 0; + }, + addImage: function (id, config) { + self.fileManager.loadedImages[id] = config; + }, + removeImage: function (id) { + delete self.fileManager.loadedImages[id]; + }, + getImageIdList: function () { + return $h.getObjectKeys(self.fileManager.loadedImages); + }, + getImageCount: function () { + return self.fileManager.getImageIdList().length; + }, + getId: function (file) { + return self._getFileId(file); + }, + getIndex: function (id) { + return self.fileManager.getIdList().indexOf(id); + }, + getThumb: function (id) { + var $thumb = null; + self._getThumbs().each(function () { + var $t = $(this); + if (self._getThumbFileId($t) === id) { + $thumb = $t; + } + }); + return $thumb; + }, + getThumbIndex: function ($thumb) { + var id = self._getThumbFileId($thumb); + return self.fileManager.getIndex(id); + }, + getIdList: function () { + return $h.getObjectKeys(self.fileManager.stack); + }, + getFile: function (id) { + return self.fileManager.stack[id] || null; + }, + getFileName: function (id, fmt) { + var file = self.fileManager.getFile(id); + if (!file) { + return ''; + } + return fmt ? (file.nameFmt || '') : file.name || ''; + }, + getFirstFile: function () { + var ids = self.fileManager.getIdList(), id = ids && ids.length ? ids[0] : null; + return self.fileManager.getFile(id); + }, + setFile: function (id, file) { + if (self.fileManager.getFile(id)) { + self.fileManager.stack[id].file = file; + } else { + self.fileManager.add(file, id); + } + }, + setProcessed: function (id) { + self.fileManager.filesProcessed.push(id); + }, + getProgress: function () { + var total = self.fileManager.total(), filesProcessed = self.fileManager.filesProcessed.length; + if (!total) { + return 0; + } + return Math.ceil(filesProcessed / total * 100); + + }, + setProgress: function (id, pct) { + var f = self.fileManager.getFile(id); + if (!isNaN(pct) && f) { + f.progress = pct; + } + } + }; + }, + _setUploadData: function (fd, config) { + var self = this; + $.each(config, function (key, value) { + var param = self.uploadParamNames[key] || key; + if ($h.isArray(value)) { + fd.append(param, value[0], value[1]); + } else { + fd.append(param, value); + } + }); + }, + _initResumableUpload: function () { + var self = this, opts = self.resumableUploadOptions, logs = $h.logMessages, rm, fm = self.fileManager; + if (!self.enableResumableUpload) { + return; + } + if (opts.fallback !== false && typeof opts.fallback !== 'function') { + opts.fallback = function (s) { + s._log(logs.noResumableSupport); + s.enableResumableUpload = false; + }; + } + if (!$h.hasResumableUploadSupport() && opts.fallback !== false) { + opts.fallback(self); + return; + } + if (!self.uploadUrl && self.enableResumableUpload) { + self._log(logs.noUploadUrl); + self.enableResumableUpload = false; + return; + + } + opts.chunkSize = parseFloat(opts.chunkSize); + if (opts.chunkSize <= 0 || isNaN(opts.chunkSize)) { + self._log(logs.invalidChunkSize, {chunkSize: opts.chunkSize}); + self.enableResumableUpload = false; + return; + } + rm = self.resumableManager = { + init: function (id, f, index) { + rm.logs = []; + rm.stack = []; + rm.error = ''; + rm.id = id; + rm.file = f.file; + rm.fileName = f.name; + rm.fileIndex = index; + rm.completed = false; + rm.lastProgress = 0; + if (self.showPreview) { + rm.$thumb = fm.getThumb(id) || null; + rm.$progress = rm.$btnDelete = null; + if (rm.$thumb && rm.$thumb.length) { + rm.$progress = rm.$thumb.find('.file-thumb-progress'); + rm.$btnDelete = rm.$thumb.find('.kv-file-remove'); + } + } + rm.chunkSize = opts.chunkSize * self.bytesToKB; + rm.chunkCount = rm.getTotalChunks(); + }, + setAjaxError: function (jqXHR, textStatus, errorThrown, isTest) { + if (jqXHR.responseJSON && jqXHR.responseJSON.error) { + errorThrown = jqXHR.responseJSON.error.toString(); + } + if (!isTest) { + rm.error = errorThrown; + } + if (opts.showErrorLog) { + self._log(logs.ajaxError, { + status: jqXHR.status, + error: errorThrown, + text: jqXHR.responseText || '' + }); + } + }, + reset: function () { + rm.stack = []; + rm.chunksProcessed = {}; + }, + setProcessed: function (status) { + var id = rm.id, msg, $thumb = rm.$thumb, $prog = rm.$progress, hasThumb = $thumb && $thumb.length, + params = {id: hasThumb ? $thumb.attr('id') : '', index: fm.getIndex(id), fileId: id}, tokens, + skipErrorsAndProceed = self.resumableUploadOptions.skipErrorsAndProceed; + rm.completed = true; + rm.lastProgress = 0; + if (hasThumb) { + $thumb.removeClass('file-uploading'); + } + if (status === 'success') { + fm.uploadedSize += rm.file.size; + if (self.showPreview) { + self._setProgress(101, $prog); + self._setThumbStatus($thumb, 'Success'); + self._initUploadSuccess(rm.chunksProcessed[id].data, $thumb); + } + fm.removeFile(id); + delete rm.chunksProcessed[id]; + self._raise('fileuploaded', [params.id, params.index, params.fileId]); + if (fm.isProcessed()) { + self._setProgress(101); + } + } else { + if (status !== 'cancel') { + if (self.showPreview) { + self._setThumbStatus($thumb, 'Error'); + self._setPreviewError($thumb, true); + self._setProgress(101, $prog, self.msgProgressError); + self._setProgress(101, self.$progress, self.msgProgressError); + self.cancelling = !skipErrorsAndProceed; + } + if (!self.$errorContainer.find('li[data-file-id="' + params.fileId + '"]').length) { + tokens = {file: rm.fileName, max: opts.maxRetries, error: rm.error}; + msg = self.msgResumableUploadRetriesExceeded.setTokens(tokens); + $.extend(params, tokens); + self._showFileError(msg, params, 'filemaxretries'); + if (skipErrorsAndProceed) { + fm.removeFile(id); + delete rm.chunksProcessed[id]; + if (fm.isProcessed()) { + self._setProgress(101); + } + } + } + } + } + if (fm.isProcessed()) { + rm.reset(); + } + }, + check: function () { + var status = true; + $.each(rm.logs, function (index, value) { + if (!value) { + status = false; + return false; + } + }); + }, + processedResumables: function () { + var logs = rm.logs, i, count = 0; + if (!logs || !logs.length) { + return 0; + } + for (i = 0; i < logs.length; i++) { + if (logs[i] === true) { + count++; + } + } + return count; + }, + getUploadedSize: function () { + var size = rm.processedResumables() * rm.chunkSize; + return size > rm.file.size ? rm.file.size : size; + }, + getTotalChunks: function () { + var chunkSize = parseFloat(rm.chunkSize); + if (!isNaN(chunkSize) && chunkSize > 0) { + return Math.ceil(rm.file.size / chunkSize); + } + return 0; + }, + getProgress: function () { + var chunksProcessed = rm.processedResumables(), total = rm.chunkCount; + if (total === 0) { + return 0; + } + return Math.ceil(chunksProcessed / total * 100); + }, + checkAborted: function (intervalId) { + if (self._isAborted()) { + clearInterval(intervalId); + self.unlock(); + } + }, + upload: function () { + var ids = fm.getIdList(), flag = 'new', intervalId; + intervalId = setInterval(function () { + var id; + rm.checkAborted(intervalId); + if (flag === 'new') { + self.lock(); + flag = 'processing'; + id = ids.shift(); + fm.initStats(id); + if (fm.stack[id]) { + rm.init(id, fm.stack[id], fm.getIndex(id)); + rm.processUpload(); + } + } + if (!fm.isPending(id) && rm.completed) { + flag = 'new'; + } + if (fm.isProcessed()) { + var $initThumbs = self.$preview.find('.file-preview-initial'); + if ($initThumbs.length) { + $h.addCss($initThumbs, $h.SORT_CSS); + self._initSortable(); + } + clearInterval(intervalId); + self._clearFileInput(); + self.unlock(); + setTimeout(function () { + var data = self.previewCache.data; + if (data) { + self.initialPreview = data.content; + self.initialPreviewConfig = data.config; + self.initialPreviewThumbTags = data.tags; + } + self._raise('filebatchuploadcomplete', [ + self.initialPreview, + self.initialPreviewConfig, + self.initialPreviewThumbTags, + self._getExtraData() + ]); + }, self.processDelay); + } + }, self.processDelay); + }, + uploadResumable: function () { + var i, pool, tm = self.taskManager, total = rm.chunkCount; + pool = tm.addPool(rm.id); + for (i = 0; i < total; i++) { + rm.logs[i] = !!(rm.chunksProcessed[rm.id] && rm.chunksProcessed[rm.id][i]); + if (!rm.logs[i]) { + rm.pushAjax(i, 0); + } + } + pool.run(opts.maxThreads) + .done(function () { + rm.setProcessed('success'); + }) + .fail(function () { + rm.setProcessed(pool.cancelled ? 'cancel' : 'error'); + }); + }, + processUpload: function () { + var fd, f, id = rm.id, fnBefore, fnSuccess, fnError, fnComplete, outData; + if (!opts.testUrl) { + rm.uploadResumable(); + return; + } + fd = new FormData(); + f = fm.stack[id]; + self._setUploadData(fd, { + fileId: id, + fileName: f.fileName, + fileSize: f.size, + fileRelativePath: f.relativePath, + chunkSize: rm.chunkSize, + chunkCount: rm.chunkCount + }); + fnBefore = function (jqXHR) { + outData = self._getOutData(fd, jqXHR); + self._raise('filetestbeforesend', [id, fm, rm, outData]); + }; + fnSuccess = function (data, textStatus, jqXHR) { + outData = self._getOutData(fd, jqXHR, data); + var pNames = self.uploadParamNames, chunksUploaded = pNames.chunksUploaded || 'chunksUploaded', + params = [id, fm, rm, outData]; + if (!data[chunksUploaded] || !$h.isArray(data[chunksUploaded])) { + self._raise('filetesterror', params); + } else { + if (!rm.chunksProcessed[id]) { + rm.chunksProcessed[id] = {}; + } + $.each(data[chunksUploaded], function (key, index) { + rm.logs[index] = true; + rm.chunksProcessed[id][index] = true; + }); + rm.chunksProcessed[id].data = data; + self._raise('filetestsuccess', params); + } + rm.uploadResumable(); + }; + fnError = function (jqXHR, textStatus, errorThrown) { + outData = self._getOutData(fd, jqXHR); + self._raise('filetestajaxerror', [id, fm, rm, outData]); + rm.setAjaxError(jqXHR, textStatus, errorThrown, true); + rm.uploadResumable(); + }; + fnComplete = function () { + self._raise('filetestcomplete', [id, fm, rm, self._getOutData(fd)]); + }; + self._ajaxSubmit(fnBefore, fnSuccess, fnComplete, fnError, fd, id, rm.fileIndex, opts.testUrl); + }, + pushAjax: function (index, retry) { + var tm = self.taskManager, pool = tm.getPool(rm.id); + pool.addTask(pool.size() + 1, function (deferrer) { + // use fifo chunk stack + var arr = rm.stack.shift(), index; + index = arr[0]; + if (!rm.chunksProcessed[rm.id] || !rm.chunksProcessed[rm.id][index]) { + rm.sendAjax(index, arr[1], deferrer); + } else { + self._log(logs.chunkQueueError, {index: index}); + } + }); + rm.stack.push([index, retry]); + }, + sendAjax: function (index, retry, deferrer) { + var f, chunkSize = rm.chunkSize, id = rm.id, file = rm.file, $thumb = rm.$thumb, + msgs = $h.logMessages, $btnDelete = rm.$btnDelete, logError = function (msg, tokens) { + if (tokens) { + msg = msg.setTokens(tokens); + } + msg = msgs.resumableRequestError.setTokens({msg: msg}); + self._log(msg); + deferrer.reject(msg); + }; + if (rm.chunksProcessed[id] && rm.chunksProcessed[id][index]) { + return; + } + if (retry > opts.maxRetries) { + logError(msgs.resumableMaxRetriesReached, {n: opts.maxRetries}); + rm.setProcessed('error'); + return; + } + var fd, outData, fnBefore, fnSuccess, fnError, fnComplete, slice = file.slice ? 'slice' : + (file.mozSlice ? 'mozSlice' : (file.webkitSlice ? 'webkitSlice' : 'slice')), + blob = file[slice](chunkSize * index, chunkSize * (index + 1)); + fd = new FormData(); + f = fm.stack[id]; + self._setUploadData(fd, { + chunkCount: rm.chunkCount, + chunkIndex: index, + chunkSize: chunkSize, + chunkSizeStart: chunkSize * index, + fileBlob: [blob, rm.fileName], + fileId: id, + fileName: rm.fileName, + fileRelativePath: f.relativePath, + fileSize: file.size, + retryCount: retry + }); + if (rm.$progress && rm.$progress.length) { + rm.$progress.show(); + } + fnBefore = function (jqXHR) { + outData = self._getOutData(fd, jqXHR); + if (self.showPreview) { + if (!$thumb.hasClass('file-preview-success')) { + self._setThumbStatus($thumb, 'Loading'); + $h.addCss($thumb, 'file-uploading'); + } + $btnDelete.attr('disabled', true); + } + self._raise('filechunkbeforesend', [id, index, retry, fm, rm, outData]); + }; + fnSuccess = function (data, textStatus, jqXHR) { + if (self._isAborted()) { + logError(msgs.resumableAborting); + return; + } + outData = self._getOutData(fd, jqXHR, data); + var paramNames = self.uploadParamNames, chunkIndex = paramNames.chunkIndex || 'chunkIndex', + params = [id, index, retry, fm, rm, outData]; + if (data.error) { + if (opts.showErrorLog) { + self._log(logs.retryStatus, { + retry: retry + 1, + filename: rm.fileName, + chunk: index + }); + } + self._raise('filechunkerror', params); + rm.pushAjax(index, retry + 1); + rm.error = data.error; + logError(data.error); + } else { + rm.logs[data[chunkIndex]] = true; + if (!rm.chunksProcessed[id]) { + rm.chunksProcessed[id] = {}; + } + rm.chunksProcessed[id][data[chunkIndex]] = true; + rm.chunksProcessed[id].data = data; + deferrer.resolve.call(null, data); + self._raise('filechunksuccess', params); + rm.check(); + } + }; + fnError = function (jqXHR, textStatus, errorThrown) { + if (self._isAborted()) { + logError(msgs.resumableAborting); + return; + } + outData = self._getOutData(fd, jqXHR); + rm.setAjaxError(jqXHR, textStatus, errorThrown); + self._raise('filechunkajaxerror', [id, index, retry, fm, rm, outData]); + rm.pushAjax(index, retry + 1); // push another task + logError(msgs.resumableRetryError, {n: retry - 1}); // resolve the current task + }; + fnComplete = function () { + if (!self._isAborted()) { + self._raise('filechunkcomplete', [id, index, retry, fm, rm, self._getOutData(fd)]); + } + }; + self._ajaxSubmit(fnBefore, fnSuccess, fnComplete, fnError, fd, id, rm.fileIndex); + } + }; + rm.reset(); + }, + _initTemplateDefaults: function () { + var self = this, tMain1, tMain2, tPreview, tFileIcon, tClose, tCaption, tBtnDefault, tBtnLink, tBtnBrowse, + tModalMain, tModal, tProgress, tSize, tFooter, tActions, tActionDelete, tActionUpload, tActionDownload, + tActionZoom, tActionDrag, tIndicator, tTagBef, tTagBef1, tTagBef2, tTagAft, tGeneric, tHtml, tImage, + tText, tOffice, tGdocs, tVideo, tAudio, tFlash, tObject, tPdf, tOther, tStyle, tZoomCache, vDefaultDim, + tStats, tModalLabel, tDescClose, renderObject = function (type, mime) { + return '\n' + $h.DEFAULT_PREVIEW + '\n\n'; + }, defBtnCss1 = 'btn btn-sm btn-kv ' + $h.defaultButtonCss(); + tMain1 = '{preview}\n' + + '
                                                                                                                                                                                                                                                                                                          \n' + + '
                                                                                                                                                                                                                                                                                                          \n' + + '
                                                                                                                                                                                                                                                                                                          \n' + + ' {caption}\n\n' + + ($h.isBs(5) ? '' : '
                                                                                                                                                                                                                                                                                                          \n') + + ' {remove}\n' + + ' {cancel}\n' + + ' {pause}\n' + + ' {upload}\n' + + ' {browse}\n' + + ($h.isBs(5) ? '' : '
                                                                                                                                                                                                                                                                                                          \n') + + '
                                                                                                                                                                                                                                                                                                          ' + '
                                                                                                                                                                                                                                                                                                          '; + tMain2 = '{preview}\n
                                                                                                                                                                                                                                                                                                          \n
                                                                                                                                                                                                                                                                                                          \n' + + '{remove}\n{cancel}\n{upload}\n{browse}\n'; + tPreview = '
                                                                                                                                                                                                                                                                                                          \n' + + ' {close}' + + '
                                                                                                                                                                                                                                                                                                          \n' + + '
                                                                                                                                                                                                                                                                                                          \n' + + '
                                                                                                                                                                                                                                                                                                          \n' + + '
                                                                                                                                                                                                                                                                                                          \n' + + '
                                                                                                                                                                                                                                                                                                          \n' + + '
                                                                                                                                                                                                                                                                                                          \n' + + '
                                                                                                                                                                                                                                                                                                          '; + tClose = $h.closeButton('fileinput-remove'); + tFileIcon = ''; + // noinspection HtmlUnknownAttribute + tCaption = '\n'; + //noinspection HtmlUnknownAttribute + tBtnDefault = ''; + //noinspection HtmlUnknownTarget,HtmlUnknownAttribute + tBtnLink = '{icon} {label}'; + //noinspection HtmlUnknownAttribute + tBtnBrowse = '
                                                                                                                                                                                                                                                                                                          {icon} {label}
                                                                                                                                                                                                                                                                                                          '; + tModalLabel = $h.MODAL_ID + 'Label'; + tModalMain = ''; + tModal = '\n'; + tDescClose = ''; + tProgress = '
                                                                                                                                                                                                                                                                                                          \n' + + '
                                                                                                                                                                                                                                                                                                          \n' + + ' {status}\n' + + '
                                                                                                                                                                                                                                                                                                          \n' + + '
                                                                                                                                                                                                                                                                                                          {stats}'; + tStats = '
                                                                                                                                                                                                                                                                                                          ' + + '{pendingTime} ' + + '{uploadSpeed}' + + '
                                                                                                                                                                                                                                                                                                          '; + tSize = ' ({sizeText})'; + tFooter = ''; + tActions = '
                                                                                                                                                                                                                                                                                                          \n' + + ' \n' + + '
                                                                                                                                                                                                                                                                                                          \n' + + '{drag}\n' + + '
                                                                                                                                                                                                                                                                                                          '; + //noinspection HtmlUnknownAttribute + tActionDelete = '\n'; + tActionUpload = ''; + tActionDownload = '{downloadIcon}'; + tActionZoom = ''; + tActionDrag = '{dragIcon}'; + tIndicator = '
                                                                                                                                                                                                                                                                                                          {indicator}
                                                                                                                                                                                                                                                                                                          '; + tTagBef = '
                                                                                                                                                                                                                                                                                                          \n'; + tTagBef2 = tTagBef + ' title="{caption}">
                                                                                                                                                                                                                                                                                                          \n'; + tTagAft = '
                                                                                                                                                                                                                                                                                                          {footer}\n{zoomCache}
                                                                                                                                                                                                                                                                                                          \n'; + tGeneric = '{content}\n'; + tStyle = ' {style}'; + tHtml = renderObject('html', 'text/html'); + tText = renderObject('text', 'text/plain;charset=UTF-8'); + tPdf = renderObject('pdf', 'application/pdf'); + tImage = '{alt}\n'; + tOffice = ''; + tGdocs = ''; + tVideo = '\n'; + tAudio = '\n'; + tFlash = '\n'; + tObject = '\n' + '\n' + + $h.OBJECT_PARAMS + ' ' + $h.DEFAULT_PREVIEW + '\n\n'; + tOther = '
                                                                                                                                                                                                                                                                                                          \n' + $h.DEFAULT_PREVIEW + '\n
                                                                                                                                                                                                                                                                                                          \n'; + tZoomCache = '
                                                                                                                                                                                                                                                                                                          {zoomContent}
                                                                                                                                                                                                                                                                                                          '; + vDefaultDim = {width: '100%', height: '100%', 'min-height': '480px'}; + if (self._isPdfRendered()) { + tPdf = self.pdfRendererTemplate.replace('{renderer}', self._encodeURI(self.pdfRendererUrl)); + } + self.defaults = { + layoutTemplates: { + main1: tMain1, + main2: tMain2, + preview: tPreview, + close: tClose, + fileIcon: tFileIcon, + caption: tCaption, + modalMain: tModalMain, + modal: tModal, + descriptionClose: tDescClose, + progress: tProgress, + stats: tStats, + size: tSize, + footer: tFooter, + indicator: tIndicator, + actions: tActions, + actionDelete: tActionDelete, + actionUpload: tActionUpload, + actionDownload: tActionDownload, + actionZoom: tActionZoom, + actionDrag: tActionDrag, + btnDefault: tBtnDefault, + btnLink: tBtnLink, + btnBrowse: tBtnBrowse, + zoomCache: tZoomCache + }, + previewMarkupTags: { + tagBefore1: tTagBef1, + tagBefore2: tTagBef2, + tagAfter: tTagAft + }, + previewContentTemplates: { + generic: tGeneric, + html: tHtml, + image: tImage, + text: tText, + office: tOffice, + gdocs: tGdocs, + video: tVideo, + audio: tAudio, + flash: tFlash, + object: tObject, + pdf: tPdf, + other: tOther + }, + allowedPreviewTypes: ['image', 'html', 'text', 'video', 'audio', 'flash', 'pdf', 'object'], + previewTemplates: {}, + previewSettings: { + image: {width: 'auto', height: 'auto', 'max-width': '100%', 'max-height': '100%'}, + html: {width: '213px', height: '160px'}, + text: {width: '213px', height: '160px'}, + office: {width: '213px', height: '160px'}, + gdocs: {width: '213px', height: '160px'}, + video: {width: '213px', height: '160px'}, + audio: {width: '100%', height: '30px'}, + flash: {width: '213px', height: '160px'}, + object: {width: '213px', height: '160px'}, + pdf: {width: '100%', height: '160px', 'position': 'relative'}, + other: {width: '213px', height: '160px'} + }, + previewSettingsSmall: { + image: {width: 'auto', height: 'auto', 'max-width': '100%', 'max-height': '100%'}, + html: {width: '100%', height: '160px'}, + text: {width: '100%', height: '160px'}, + office: {width: '100%', height: '160px'}, + gdocs: {width: '100%', height: '160px'}, + video: {width: '100%', height: 'auto'}, + audio: {width: '100%', height: '30px'}, + flash: {width: '100%', height: 'auto'}, + object: {width: '100%', height: 'auto'}, + pdf: {width: '100%', height: '160px'}, + other: {width: '100%', height: '160px'} + }, + previewZoomSettings: { + image: {width: 'auto', height: 'auto', 'max-width': '100%', 'max-height': '100%'}, + html: vDefaultDim, + text: vDefaultDim, + office: {width: '100%', height: '100%', 'max-width': '100%', 'min-height': '480px'}, + gdocs: {width: '100%', height: '100%', 'max-width': '100%', 'min-height': '480px'}, + video: {width: 'auto', height: '100%', 'max-width': '100%'}, + audio: {width: '100%', height: '30px'}, + flash: {width: 'auto', height: '480px'}, + object: {width: 'auto', height: '100%', 'max-width': '100%', 'min-height': '480px'}, + pdf: vDefaultDim, + other: {width: 'auto', height: '100%', 'min-height': '480px'} + }, + mimeTypeAliases: { + 'video/quicktime': 'video/mp4' + }, + fileTypeSettings: { + image: function (vType, vName) { + return ($h.compare(vType, 'image.*') && !$h.compare(vType, /(tiff?|wmf)$/i) || + $h.compare(vName, /\.(gif|png|jpe?g)$/i)); + }, + html: function (vType, vName) { + return $h.compare(vType, 'text/html') || $h.compare(vName, /\.(htm|html)$/i); + }, + office: function (vType, vName) { + return $h.compare(vType, /(word|excel|powerpoint|office)$/i) || + $h.compare(vName, /\.(docx?|xlsx?|pptx?|pps|potx?)$/i); + }, + gdocs: function (vType, vName) { + return $h.compare(vType, /(word|excel|powerpoint|office|iwork-pages|tiff?)$/i) || + $h.compare(vName, + /\.(docx?|xlsx?|pptx?|pps|potx?|rtf|ods|odt|pages|ai|dxf|ttf|tiff?|wmf|e?ps)$/i); + }, + text: function (vType, vName) { + return $h.compare(vType, 'text.*') || $h.compare(vName, /\.(xml|javascript)$/i) || + $h.compare(vName, /\.(txt|md|nfo|ini|json|php|js|css)$/i); + }, + video: function (vType, vName) { + return $h.compare(vType, 'video.*') && ($h.compare(vType, /(ogg|mp4|mp?g|mov|webm|3gp)$/i) || + $h.compare(vName, /\.(og?|mp4|webm|mp?g|mov|3gp)$/i)); + }, + audio: function (vType, vName) { + return $h.compare(vType, 'audio.*') && ($h.compare(vName, /(ogg|mp3|mp?g|wav)$/i) || + $h.compare(vName, /\.(og?|mp3|mp?g|wav)$/i)); + }, + flash: function (vType, vName) { + return $h.compare(vType, 'application/x-shockwave-flash', true) || $h.compare(vName, + /\.(swf)$/i); + }, + pdf: function (vType, vName) { + return $h.compare(vType, 'application/pdf', true) || $h.compare(vName, /\.(pdf)$/i); + }, + object: function () { + return true; + }, + other: function () { + return true; + } + }, + fileActionSettings: { + showRemove: true, + showUpload: true, + showDownload: true, + showZoom: true, + showDrag: true, + removeIcon: '', + removeClass: defBtnCss1, + removeErrorClass: 'btn btn-sm btn-kv btn-danger', + removeTitle: 'Remove file', + uploadIcon: '', + uploadClass: defBtnCss1, + uploadTitle: 'Upload file', + uploadRetryIcon: '', + uploadRetryTitle: 'Retry upload', + downloadIcon: '', + downloadClass: defBtnCss1, + downloadTitle: 'Download file', + zoomIcon: '', + zoomClass: defBtnCss1, + zoomTitle: 'View Details', + dragIcon: '', + dragClass: 'text-primary', + dragTitle: 'Move / Rearrange', + dragSettings: {}, + indicatorNew: '', + indicatorSuccess: '', + indicatorError: '', + indicatorLoading: '', + indicatorPaused: '', + indicatorNewTitle: 'Not uploaded yet', + indicatorSuccessTitle: 'Uploaded', + indicatorErrorTitle: 'Upload Error', + indicatorLoadingTitle: 'Uploading …', + indicatorPausedTitle: 'Upload Paused' + } + }; + $.each(self.defaults, function (key, setting) { + if (key === 'allowedPreviewTypes') { + if (self.allowedPreviewTypes === undefined) { + self.allowedPreviewTypes = setting; + } + return; + } + self[key] = $.extend(true, {}, setting, self[key]); + }); + self._initPreviewTemplates(); + }, + _initPreviewTemplates: function () { + var self = this, tags = self.previewMarkupTags, tagBef, tagAft = tags.tagAfter; + $.each(self.previewContentTemplates, function (key, value) { + if ($h.isEmpty(self.previewTemplates[key])) { + tagBef = tags.tagBefore2; + if (key === 'generic' || key === 'image') { + tagBef = tags.tagBefore1; + } + if (self._isPdfRendered() && key === 'pdf') { + tagBef = tagBef.replace('kv-file-content', 'kv-file-content kv-pdf-rendered'); + } + self.previewTemplates[key] = tagBef + value + tagAft; + } + }); + }, + _initPreviewCache: function () { + var self = this; + self.previewCache = { + data: {}, + init: function () { + var content = self.initialPreview; + if (content.length > 0 && !$h.isArray(content)) { + content = content.split(self.initialPreviewDelimiter); + } + self.previewCache.data = { + content: content, + config: self.initialPreviewConfig, + tags: self.initialPreviewThumbTags + }; + }, + count: function (skipNull) { + if (!self.previewCache.data || !self.previewCache.data.content) { + return 0; + } + if (skipNull) { + var chk = self.previewCache.data.content.filter(function (n) { + return n !== null; + }); + return chk.length; + } + return self.previewCache.data.content.length; + }, + get: function (i, isDisabled) { + var ind = $h.INIT_FLAG + i, data = self.previewCache.data, config = data.config[i], + content = data.content[i], out, $tmp, cat, ftr, + fname, ftype, frameClass, asData = $h.ifSet('previewAsData', config, self.initialPreviewAsData), + a = config ? {title: config.title || null, alt: config.alt || null} : {title: null, alt: null}, + parseTemplate = function (cat, dat, fname, ftype, ftr, ind, fclass, t) { + var fc = ' file-preview-initial ' + $h.SORT_CSS + (fclass ? ' ' + fclass : ''), + id = self.previewInitId + '-' + ind, + fileId = config && config.fileId || id; + /** @namespace config.zoomData */ + return self._generatePreviewTemplate(cat, dat, fname, ftype, id, fileId, false, null, fc, + ftr, ind, t, a, config && config.zoomData || dat); + }; + if (!content || !content.length) { + return ''; + } + isDisabled = isDisabled === undefined ? true : isDisabled; + cat = $h.ifSet('type', config, self.initialPreviewFileType || 'generic'); + fname = $h.ifSet('filename', config, $h.ifSet('caption', config)); + ftype = $h.ifSet('filetype', config, cat); + ftr = self.previewCache.footer(i, isDisabled, (config && config.size || null)); + frameClass = $h.ifSet('frameClass', config); + if (asData) { + out = parseTemplate(cat, content, fname, ftype, ftr, ind, frameClass); + } else { + out = parseTemplate('generic', content, fname, ftype, ftr, ind, frameClass, cat) + .setTokens({'content': data.content[i]}); + } + if (data.tags.length && data.tags[i]) { + out = $h.replaceTags(out, data.tags[i]); + } + /** @namespace config.frameAttr */ + if (!$h.isEmpty(config) && !$h.isEmpty(config.frameAttr)) { + $tmp = $h.createElement(out); + $tmp.find('.file-preview-initial').attr(config.frameAttr); + out = $tmp.html(); + $tmp.remove(); + } + return out; + }, + clean: function (data) { + data.content = $h.cleanArray(data.content); + data.config = $h.cleanArray(data.config); + data.tags = $h.cleanArray(data.tags); + self.previewCache.data = data; + }, + add: function (content, config, tags, append) { + var data = self.previewCache.data, index; + if (!content || !content.length) { + return 0; + } + index = content.length - 1; + if (!$h.isArray(content)) { + content = content.split(self.initialPreviewDelimiter); + } + if (append && data.content) { + index = data.content.push(content[0]) - 1; + data.config[index] = config; + data.tags[index] = tags; + } else { + data.content = content; + data.config = config; + data.tags = tags; + } + self.previewCache.clean(data); + return index; + }, + set: function (content, config, tags, append) { + var data = self.previewCache.data, i, chk; + if (!content || !content.length) { + return; + } + if (!$h.isArray(content)) { + content = content.split(self.initialPreviewDelimiter); + } + chk = content.filter(function (n) { + return n !== null; + }); + if (!chk.length) { + return; + } + if (data.content === undefined) { + data.content = []; + } + if (data.config === undefined) { + data.config = []; + } + if (data.tags === undefined) { + data.tags = []; + } + if (append) { + for (i = 0; i < content.length; i++) { + if (content[i]) { + data.content.push(content[i]); + } + } + for (i = 0; i < config.length; i++) { + if (config[i]) { + data.config.push(config[i]); + } + } + for (i = 0; i < tags.length; i++) { + if (tags[i]) { + data.tags.push(tags[i]); + } + } + } else { + data.content = content; + data.config = config; + data.tags = tags; + } + self.previewCache.clean(data); + }, + unset: function (index) { + var chk = self.previewCache.count(), rev = self.reversePreviewOrder; + if (!chk) { + return; + } + if (chk === 1) { + self.previewCache.data.content = []; + self.previewCache.data.config = []; + self.previewCache.data.tags = []; + self.initialPreview = []; + self.initialPreviewConfig = []; + self.initialPreviewThumbTags = []; + return; + } + self.previewCache.data.content = $h.spliceArray(self.previewCache.data.content, index, rev); + self.previewCache.data.config = $h.spliceArray(self.previewCache.data.config, index, rev); + self.previewCache.data.tags = $h.spliceArray(self.previewCache.data.tags, index, rev); + var data = $.extend(true, {}, self.previewCache.data); + self.previewCache.clean(data); + }, + out: function () { + var html = '', caption, len = self.previewCache.count(), i, content; + if (len === 0) { + return {content: '', caption: ''}; + } + for (i = 0; i < len; i++) { + content = self.previewCache.get(i); + html = self.reversePreviewOrder ? (content + html) : (html + content); + } + caption = self._getMsgSelected(len); + return {content: html, caption: caption}; + }, + footer: function (i, isDisabled, size) { + var data = self.previewCache.data || {}; + if ($h.isEmpty(data.content)) { + return ''; + } + if ($h.isEmpty(data.config) || $h.isEmpty(data.config[i])) { + data.config[i] = {}; + } + isDisabled = isDisabled === undefined ? true : isDisabled; + var config = data.config[i], caption = $h.ifSet('caption', config), a, + width = $h.ifSet('width', config, 'auto'), url = $h.ifSet('url', config, false), + key = $h.ifSet('key', config, null), fileId = $h.ifSet('fileId', config, null), + fs = self.fileActionSettings, initPreviewShowDel = self.initialPreviewShowDelete || false, + downloadInitialUrl = !self.initialPreviewDownloadUrl ? '' : + self.initialPreviewDownloadUrl + '?key=' + key + (fileId ? '&fileId=' + fileId : ''), + dUrl = config.downloadUrl || downloadInitialUrl, + dFil = config.filename || config.caption || '', + initPreviewShowDwl = !!(dUrl), + sDel = $h.ifSet('showRemove', config, initPreviewShowDel), + sDwl = $h.ifSet('showDownload', config, $h.ifSet('showDownload', fs, initPreviewShowDwl)), + sZm = $h.ifSet('showZoom', config, $h.ifSet('showZoom', fs, true)), + sDrg = $h.ifSet('showDrag', config, $h.ifSet('showDrag', fs, true)), + dis = (url === false) && isDisabled; + sDwl = sDwl && config.downloadUrl !== false && !!dUrl; + a = self._renderFileActions(config, false, sDwl, sDel, sZm, sDrg, dis, url, key, true, dUrl, dFil); + return self._getLayoutTemplate('footer').setTokens({ + 'progress': self._renderThumbProgress(), + 'actions': a, + 'caption': caption, + 'size': self._getSize(size), + 'width': width, + 'indicator': '' + }); + } + }; + self.previewCache.init(); + }, + _isPdfRendered: function () { + var self = this, useLib = self.usePdfRenderer, + flag = typeof useLib === 'function' ? useLib() : !!useLib; + return flag && self.pdfRendererUrl; + }, + _handler: function ($el, event, callback) { + var self = this, ns = self.namespace, ev = event.split(' ').join(ns + ' ') + ns; + if (!$el || !$el.length) { + return; + } + $el.off(ev).on(ev, callback); + }, + _encodeURI: function (vUrl) { + var self = this; + return self.encodeUrl ? encodeURI(vUrl) : vUrl; + }, + _log: function (msg, tokens) { + var self = this, id = self.$element.attr('id'); + if (!self.showConsoleLogs) { + return; + } + if (id) { + msg = '"' + id + '": ' + msg; + } + msg = 'bootstrap-fileinput: ' + msg; + if (typeof tokens === 'object') { + msg = msg.setTokens(tokens); + } + if (window.console && typeof window.console.log !== 'undefined') { + window.console.log(msg); + } else { + window.alert(11); + //window.alert(msg); + } + }, + _validate: function () { + var self = this, status = self.$element.attr('type') === 'file'; + if (!status) { + self._log($h.logMessages.badInputType); + } + return status; + }, + _errorsExist: function () { + var self = this, $err, $errList = self.$errorContainer.find('li'); + if ($errList.length) { + return true; + } + $err = $h.createElement(self.$errorContainer.html()); + $err.find('.kv-error-close').remove(); + $err.find('ul').remove(); + return !!$.trim($err.text()).length; + }, + _errorHandler: function (evt, caption) { + var self = this, err = evt.target.error, showError = function (msg) { + self._showError(msg.replace('{name}', caption)); + }; + /** @namespace err.NOT_FOUND_ERR */ + /** @namespace err.SECURITY_ERR */ + /** @namespace err.NOT_READABLE_ERR */ + if (err.code === err.NOT_FOUND_ERR) { + showError(self.msgFileNotFound); + } else { + if (err.code === err.SECURITY_ERR) { + showError(self.msgFileSecured); + } else { + if (err.code === err.NOT_READABLE_ERR) { + showError(self.msgFileNotReadable); + } else { + if (err.code === err.ABORT_ERR) { + showError(self.msgFilePreviewAborted); + } else { + showError(self.msgFilePreviewError); + } + } + } + } + }, + _addError: function (msg) { + var self = this, $error = self.$errorContainer; + if (msg && $error.length) { + $h.setHtml($error, self.errorCloseButton + msg); + self._handler($error.find('.kv-error-close'), 'click', function () { + setTimeout(function () { + if (self.showPreview && !self.getFrames().length) { + self.clear(); + } + $error.fadeOut('slow'); + }, self.processDelay); + }); + } + }, + _setValidationError: function (css) { + var self = this; + css = (css ? css + ' ' : '') + 'has-error'; + self.$container.removeClass(css).addClass('has-error'); + $h.addCss(self.$caption, 'is-invalid'); + }, + _resetErrors: function (fade) { + var self = this, $error = self.$errorContainer, history = self.resumableUploadOptions.retainErrorHistory; + if (self.isPersistentError || (self.enableResumableUpload && history)) { + return; + } + self.isError = false; + self.$container.removeClass('has-error'); + self.$caption.removeClass('is-invalid is-valid file-processing'); + $error.html(''); + if (fade) { + $error.fadeOut('slow'); + } else { + $error.hide(); + } + }, + _showFolderError: function (folders) { + var self = this, $error = self.$errorContainer, msg; + if (!folders) { + return; + } + if (!self.isAjaxUpload) { + self._clearFileInput(); + } + msg = self.msgFoldersNotAllowed.replace('{n}', folders); + self._addError(msg); + self._setValidationError(); + $error.fadeIn(self.fadeDelay); + self._raise('filefoldererror', [folders, msg]); + }, + _showFileError: function (msg, params, event) { + var self = this, $error = self.$errorContainer, ev = event || 'fileuploaderror', + fId = params && params.fileId || '', e = params && params.id ? + '
                                                                                                                                                                                                                                                                                                        • ' + msg + '
                                                                                                                                                                                                                                                                                                        • ' : '
                                                                                                                                                                                                                                                                                                        • ' + msg + '
                                                                                                                                                                                                                                                                                                        • '; + + if ($error.find('ul').length === 0) { + self._addError('
                                                                                                                                                                                                                                                                                                            ' + e + '
                                                                                                                                                                                                                                                                                                          '); + } else { + $error.find('ul').append(e); + } + $error.fadeIn(self.fadeDelay); + self._raise(ev, [params, msg]); + self._setValidationError('file-input-new'); + return true; + }, + _showError: function (msg, params, event) { + var self = this, $error = self.$errorContainer, ev = event || 'fileerror'; + params = params || {}; + params.reader = self.reader; + self._addError(msg); + $error.fadeIn(self.fadeDelay); + self._raise(ev, [params, msg]); + if (!self.isAjaxUpload) { + self._clearFileInput(); + } + self._setValidationError('file-input-new'); + self.$btnUpload.attr('disabled', true); + return true; + }, + _noFilesError: function (params) { + var self = this, label = self.minFileCount > 1 ? self.filePlural : self.fileSingle, + msg = self.msgFilesTooLess.replace('{n}', self.minFileCount).replace('{files}', label), + $error = self.$errorContainer; + msg = '
                                                                                                                                                                                                                                                                                                        • ' + msg + '
                                                                                                                                                                                                                                                                                                        • '; + if ($error.find('ul').length === 0) { + self._addError('
                                                                                                                                                                                                                                                                                                            ' + msg + '
                                                                                                                                                                                                                                                                                                          '); + } else { + $error.find('ul').append(msg); + } + self.isError = true; + self._updateFileDetails(0); + $error.fadeIn(self.fadeDelay); + self._raise('fileerror', [params, msg]); + self._clearFileInput(); + self._setValidationError(); + }, + _parseError: function (operation, jqXHR, errorThrown, fileName) { + /** @namespace jqXHR.responseJSON */ + var self = this, errMsg = $.trim(errorThrown + ''), textPre, errText, text; + errText = jqXHR.responseJSON && jqXHR.responseJSON.error ? jqXHR.responseJSON.error.toString() : ''; + text = errText ? errText : jqXHR.responseText; + if (self.cancelling && self.msgUploadAborted) { + errMsg = self.msgUploadAborted; + } + if (self.showAjaxErrorDetails && text) { + if (errText) { + errMsg = $.trim(errText + ''); + } else { + text = $.trim(text.replace(/\n\s*\n/g, '\n')); + textPre = text.length ? '
                                                                                                                                                                                                                                                                                                          ' + text + '
                                                                                                                                                                                                                                                                                                          ' : ''; + errMsg += errMsg ? textPre : text; + } + } + if (!errMsg) { + errMsg = self.msgAjaxError.replace('{operation}', operation); + } + self.cancelling = false; + return fileName ? '' + fileName + ': ' + errMsg : errMsg; + }, + _parseFileType: function (type, name) { + var self = this, isValid, vType, cat, i, types = self.allowedPreviewTypes || []; + if (type === 'application/text-plain') { + return 'text'; + } + for (i = 0; i < types.length; i++) { + cat = types[i]; + isValid = self.fileTypeSettings[cat]; + vType = isValid(type, name) ? cat : ''; + if (!$h.isEmpty(vType)) { + return vType; + } + } + return 'other'; + }, + _getPreviewIcon: function (fname) { + var self = this, ext, out = null; + if (fname && fname.indexOf('.') > -1) { + ext = fname.split('.').pop(); + if (self.previewFileIconSettings) { + out = self.previewFileIconSettings[ext] || self.previewFileIconSettings[ext.toLowerCase()] || null; + } + if (self.previewFileExtSettings) { + $.each(self.previewFileExtSettings, function (key, func) { + if (self.previewFileIconSettings[key] && func(ext)) { + out = self.previewFileIconSettings[key]; + //noinspection UnnecessaryReturnStatementJS + return; + } + }); + } + } + return out || self.previewFileIcon; + }, + _parseFilePreviewIcon: function (content, fname) { + var self = this, icn = self._getPreviewIcon(fname), out = content; + if (out.indexOf('{previewFileIcon}') > -1) { + out = out.setTokens({'previewFileIconClass': self.previewFileIconClass, 'previewFileIcon': icn}); + } + return out; + }, + _raise: function (event, params) { + var self = this, e = $.Event(event); + if (params !== undefined) { + self.$element.trigger(e, params); + } else { + self.$element.trigger(e); + } + var out = e.result, isAborted = out === false; + if (e.isDefaultPrevented() || isAborted) { + return false; + } + if (e.type === 'filebatchpreupload' && (out || isAborted)) { + self.ajaxAborted = out; + return false; + } + switch (event) { + // ignore these events + case 'filebatchuploadcomplete': + case 'filebatchuploadsuccess': + case 'fileuploaded': + case 'fileclear': + case 'filecleared': + case 'filereset': + case 'fileerror': + case 'filefoldererror': + case 'fileuploaderror': + case 'filebatchuploaderror': + case 'filedeleteerror': + case 'filecustomerror': + case 'filesuccessremove': + break; + // receive data response via `filecustomerror` event` + default: + if (!self.ajaxAborted) { + self.ajaxAborted = out; + } + break; + } + return true; + }, + _listenFullScreen: function (isFullScreen) { + var self = this, $modal = self.$modal, $btnFull, $btnBord; + if (!$modal || !$modal.length) { + return; + } + $btnFull = $modal && $modal.find('.btn-kv-fullscreen'); + $btnBord = $modal && $modal.find('.btn-kv-borderless'); + if (!$btnFull.length || !$btnBord.length) { + return; + } + $btnFull.removeClass('active').attr('aria-pressed', 'false'); + $btnBord.removeClass('active').attr('aria-pressed', 'false'); + if (isFullScreen) { + $btnFull.addClass('active').attr('aria-pressed', 'true'); + } else { + $btnBord.addClass('active').attr('aria-pressed', 'true'); + } + if ($modal.hasClass('file-zoom-fullscreen')) { + self._maximizeZoomDialog(); + } else { + if (isFullScreen) { + self._maximizeZoomDialog(); + } else { + $btnBord.removeClass('active').attr('aria-pressed', 'false'); + } + } + }, + _listen: function () { + var self = this, $el = self.$element, $form = self.$form, $cont = self.$container, fullScreenEv; + self._handler($el, 'click', function (e) { + self._initFileSelected(); + if ($el.hasClass('file-no-browse')) { + if ($el.data('zoneClicked')) { + $el.data('zoneClicked', false); + } else { + e.preventDefault(); + } + } + }); + self._handler($el, 'change', $.proxy(self._change, self)); + self._handler(self.$caption, 'paste', $.proxy(self.paste, self)); + if (self.showBrowse) { + self._handler(self.$btnFile, 'click', $.proxy(self._browse, self)); + self._handler(self.$btnFile, 'keypress', function (e) { + var keycode = e.keyCode || e.which + if (keycode === 13) { + $el.trigger('click'); + self._browse(e); + } + }); + } + self._handler($cont.find('.fileinput-remove:not([disabled])'), 'click', $.proxy(self.clear, self)); + self._handler($cont.find('.fileinput-cancel'), 'click', $.proxy(self.cancel, self)); + self._handler($cont.find('.fileinput-pause'), 'click', $.proxy(self.pause, self)); + self._initDragDrop(); + self._handler($form, 'reset', $.proxy(self.clear, self)); + if (!self.isAjaxUpload) { + self._handler($form, 'submit', $.proxy(self._submitForm, self)); + } + self._handler(self.$container.find('.fileinput-upload'), 'click', $.proxy(self._uploadClick, self)); + self._handler($(window), 'resize', function () { + self._listenFullScreen(screen.width === window.innerWidth && screen.height === window.innerHeight); + }); + fullScreenEv = 'webkitfullscreenchange mozfullscreenchange fullscreenchange MSFullscreenChange'; + self._handler($(document), fullScreenEv, function () { + self._listenFullScreen($h.checkFullScreen()); + }); + self.$caption.on('focus', function () { + self.$captionContainer.focus(); + }); + self._autoFitContent(); + self._initClickable(); + self._refreshPreview(); + }, + _autoFitContent: function () { + var width = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth, + self = this, config = width < 400 ? (self.previewSettingsSmall || self.defaults.previewSettingsSmall) : + (self.previewSettings || self.defaults.previewSettings), sel; + $.each(config, function (cat, settings) { + sel = '.file-preview-frame .file-preview-' + cat; + self.$preview.find(sel + '.kv-preview-data,' + sel + ' .kv-preview-data').css(settings); + }); + }, + _scanDroppedItems: function (item, files, path) { + path = path || ''; + var self = this, i, dirReader, readDir, errorHandler = function (e) { + self._log($h.logMessages.badDroppedFiles); + self._log(e); + }; + if (item.isFile) { + item.file(function (file) { + if (path) { + file.newPath = path + file.name; + } + files.push(file); + }, errorHandler); + } else { + if (item.isDirectory) { + dirReader = item.createReader(); + readDir = function () { + dirReader.readEntries(function (entries) { + if (entries && entries.length > 0) { + for (i = 0; i < entries.length; i++) { + self._scanDroppedItems(entries[i], files, path + item.name + '/'); + } + // recursively call readDir() again, since browser can only handle first 100 entries. + readDir(); + } + return null; + }, errorHandler); + }; + readDir(); + } + } + + }, + _initDragDrop: function () { + var self = this, $zone = self.$dropZone; + if (self.dropZoneEnabled && self.showPreview) { + self._handler($zone, 'dragenter dragover', $.proxy(self._zoneDragEnter, self)); + self._handler($zone, 'dragleave', $.proxy(self._zoneDragLeave, self)); + self._handler($zone, 'drop', $.proxy(self._zoneDrop, self)); + self._handler($(document), 'dragenter dragover drop', self._zoneDragDropInit); + } + }, + _zoneDragDropInit: function (e) { + e.stopPropagation(); + e.preventDefault(); + }, + _zoneDragEnter: function (e) { + var self = this, dt = e.originalEvent.dataTransfer, hasFiles = $.inArray('Files', dt.types) > -1; + self._zoneDragDropInit(e); + if (self.isDisabled || !hasFiles) { + dt.effectAllowed = 'none'; + dt.dropEffect = 'none'; + return; + } + dt.dropEffect = 'copy'; + if (self._raise('fileDragEnter', {'sourceEvent': e, 'files': dt.types.Files})) { + $h.addCss(self.$dropZone, 'file-highlighted'); + } + }, + _zoneDragLeave: function (e) { + var self = this; + self._zoneDragDropInit(e); + if (self.isDisabled) { + return; + } + if (self._raise('fileDragLeave', {'sourceEvent': e})) { + self.$dropZone.removeClass('file-highlighted'); + } + + }, + _dropFiles: function (e, files) { + var self = this, $el = self.$element; + if (!self.isAjaxUpload) { + self.changeTriggered = true; + $el.get(0).files = files; + setTimeout(function () { + self.changeTriggered = false; + $el.trigger('change' + self.namespace); + }, self.processDelay); + } else { + self._change(e, files); + } + self.$dropZone.removeClass('file-highlighted'); + }, + _zoneDrop: function (e) { + /** @namespace e.originalEvent.dataTransfer */ + var self = this, i, $el = self.$element, dt = e.originalEvent.dataTransfer, + files = dt.files, items = dt.items, folders = $h.getDragDropFolders(items); + e.preventDefault(); + if (self.isDisabled || $h.isEmpty(files)) { + return; + } + if (!self._raise('fileDragDrop', {'sourceEvent': e, 'files': files})) { + return; + } + if (folders > 0) { + if (!self.isAjaxUpload) { + self._showFolderError(folders); + return; + } + files = []; + for (i = 0; i < items.length; i++) { + var item = items[i].webkitGetAsEntry(); + if (item) { + self._scanDroppedItems(item, files); + } + } + setTimeout(function () { + self._dropFiles(e, files); + }, 500); + } else { + self._dropFiles(e, files); + } + }, + _uploadClick: function (e) { + var self = this, $btn = self.$container.find('.fileinput-upload'), $form, + isEnabled = !$btn.hasClass('disabled') && $h.isEmpty($btn.attr('disabled')); + if (e && e.isDefaultPrevented()) { + return; + } + if (!self.isAjaxUpload) { + if (isEnabled && $btn.attr('type') !== 'submit') { + $form = $btn.closest('form'); + // downgrade to normal form submit if possible + if ($form.length) { + $form.trigger('submit'); + } + e.preventDefault(); + } + return; + } + e.preventDefault(); + if (isEnabled) { + self.upload(); + } + }, + _submitForm: function () { + var self = this; + return self._isFileSelectionValid() && !self._abort({}); + }, + _clearPreview: function () { + var self = this, + $thumbs = self.showUploadedThumbs ? self.getFrames(':not(.file-preview-success)') : self.getFrames(); + $thumbs.each(function () { + var $thumb = $(this); + $thumb.remove(); + }); + if (!self.getFrames().length || !self.showPreview) { + self._resetUpload(); + } + self._validateDefaultPreview(); + }, + _initSortable: function () { + var self = this, $el = self.$preview, settings, selector = '.' + $h.SORT_CSS, $cont, $body = $('body'), + $html = $('html'), rev = self.reversePreviewOrder, Sortable = window.Sortable, beginGrab, endGrab; + if (!Sortable || $el.find(selector).length === 0) { + return; + } + $cont = $body.length ? $body : ($html.length ? $html : self.$container); + beginGrab = function () { + $cont.addClass('file-grabbing'); + }; + endGrab = function () { + $cont.removeClass('file-grabbing'); + }; + settings = { + handle: '.drag-handle-init', + dataIdAttr: 'data-fileid', + animation: 600, + draggable: selector, + scroll: false, + forceFallback: true, + onChoose: beginGrab, + onStart: beginGrab, + onUnchoose: endGrab, + onEnd: endGrab, + onSort: function (e) { + var oldIndex = e.oldIndex, newIndex = e.newIndex, i = 0, len = self.initialPreviewConfig.length, + exceedsLast = len > 0 && newIndex >= len, $item = $(e.item), $first; + if (exceedsLast) { + newIndex = len - 1; + } + self.initialPreview = $h.moveArray(self.initialPreview, oldIndex, newIndex, rev); + self.initialPreviewConfig = $h.moveArray(self.initialPreviewConfig, oldIndex, newIndex, rev); + self.previewCache.init(); + self.getFrames('.file-preview-initial').each(function () { + $(this).attr('data-fileindex', $h.INIT_FLAG + i); + i++; + }); + if (exceedsLast) { + $first = self.getFrames(':not(.file-preview-initial):first'); + if ($first.length) { + $item.slideUp(function () { + $item.insertBefore($first).slideDown(); + }); + } + } + self._raise('filesorted', { + previewId: $item.attr('id'), + 'oldIndex': oldIndex, + 'newIndex': newIndex, + stack: self.initialPreviewConfig + }); + }, + }; + $.extend(true, settings, self.fileActionSettings.dragSettings); + if (self.sortable) { + self.sortable.destroy(); + } + self.sortable = Sortable.create($el[0], settings); + }, + _setPreviewContent: function (content) { + var self = this; + $h.setHtml(self.$preview, content); + self._autoFitContent(); + }, + _initPreviewImageOrientations: function () { + var self = this, i = 0, canOrientImage = self.canOrientImage; + if (!self.autoOrientImageInitial && !canOrientImage) { + return; + } + self.getFrames('.file-preview-initial').each(function () { + var $thumb = $(this), $img, $zoomImg, id, config = self.initialPreviewConfig[i]; + /** @namespace config.exif */ + if (config && config.exif && config.exif.Orientation) { + id = $thumb.attr('id'); + $img = $thumb.find('>.kv-file-content img'); + $zoomImg = self._getZoom(id, ' >.kv-file-content img'); + if (canOrientImage) { + $img.css('image-orientation', (self.autoOrientImageInitial ? 'from-image' : 'none')); + } else { + self.setImageOrientation($img, $zoomImg, config.exif.Orientation, $thumb); + } + } + i++; + }); + }, + _initPreview: function (isInit) { + var self = this, cap = self.initialCaption || '', out; + if (!self.previewCache.count(true)) { + self._clearPreview(); + if (isInit) { + self._setCaption(cap); + } else { + self._initCaption(); + } + return; + } + out = self.previewCache.out(); + cap = isInit && self.initialCaption ? self.initialCaption : out.caption; + self._setPreviewContent(out.content); + self._setInitThumbAttr(); + self._setCaption(cap); + self._initSortable(); + if (!$h.isEmpty(out.content)) { + self.$container.removeClass('file-input-new'); + } + self._initPreviewImageOrientations(); + }, + _getZoomButton: function (type) { + var self = this, label = self.previewZoomButtonIcons[type], css = self.previewZoomButtonClasses[type], + title = ' title="' + (self.previewZoomButtonTitles[type] || '') + '" ', tag = $h.isBs(5) ? 'bs-' : '', + params = title + (type === 'close' ? ' data-' + tag + 'dismiss="modal" aria-hidden="true"' : ''); + if (type === 'fullscreen' || type === 'borderless' || type === 'toggleheader') { + params += ' data-toggle="button" aria-pressed="false" autocomplete="off"'; + } + return ''; + }, + _getModalContent: function () { + var self = this; + return self._getLayoutTemplate('modal').setTokens({ + 'rtl': self.rtl ? ' kv-rtl' : '', + 'zoomFrameClass': self.frameClass, + 'prev': self._getZoomButton('prev'), + 'next': self._getZoomButton('next'), + 'toggleheader': self._getZoomButton('toggleheader'), + 'fullscreen': self._getZoomButton('fullscreen'), + 'borderless': self._getZoomButton('borderless'), + 'close': self._getZoomButton('close') + }); + }, + _listenModalEvent: function (event) { + var self = this, $modal = self.$modal, getParams = function (e) { + return { + sourceEvent: e, + previewId: $modal.data('previewId'), + modal: $modal + }; + }; + $modal.on(event + '.bs.modal', function (e) { + if (e.namespace !== 'bs.modal') { + return; + } + var $btnFull = $modal.find('.btn-fullscreen'), $btnBord = $modal.find('.btn-borderless'); + if ($modal.data('fileinputPluginId') === self.$element.attr('id')) { + self._raise('filezoom' + event, getParams(e)); + } + if (event === 'shown') { + $btnBord.removeClass('active').attr('aria-pressed', 'false'); + $btnFull.removeClass('active').attr('aria-pressed', 'false'); + if ($modal.hasClass('file-zoom-fullscreen')) { + self._maximizeZoomDialog(); + if ($h.checkFullScreen()) { + $btnFull.addClass('active').attr('aria-pressed', 'true'); + } else { + $btnBord.addClass('active').attr('aria-pressed', 'true'); + } + } + } + }); + }, + _initZoom: function () { + var self = this, $dialog, modalMain = self._getLayoutTemplate('modalMain'), modalId = '#' + $h.MODAL_ID; + modalMain = self._setTabIndex('modal', modalMain); + if (!self.showPreview) { + return; + } + self.$modal = $(modalId); + if (!self.$modal || !self.$modal.length) { + $dialog = $h.createElement($h.cspBuffer.stash(modalMain)).insertAfter(self.$container); + self.$modal = $(modalId).insertBefore($dialog); + $h.cspBuffer.apply(self.$modal); + $dialog.remove(); + } + $h.initModal(self.$modal); + self.$modal.html($h.cspBuffer.stash(self._getModalContent())); + $h.cspBuffer.apply(self.$modal); + $.each($h.MODAL_EVENTS, function (key, event) { + self._listenModalEvent(event); + }); + }, + _initZoomButtons: function () { + var self = this, previewId = self.$modal.data('previewId') || '', $first, $last, + thumbs = self.getFrames().toArray(), len = thumbs.length, $prev = self.$modal.find('.btn-kv-prev'), + $next = self.$modal.find('.btn-kv-next'); + if (thumbs.length < 2) { + $prev.hide(); + $next.hide(); + return; + } else { + $prev.show(); + $next.show(); + } + if (!len) { + return; + } + $first = $(thumbs[0]); + $last = $(thumbs[len - 1]); + $prev.removeAttr('disabled'); + $next.removeAttr('disabled'); + if (self.reversePreviewOrder) { + [$prev, $next] = [$next, $prev]; // swap + } + if ($first.length && $first.attr('id') === previewId) { + $prev.attr('disabled', true); + } + if ($last.length && $last.attr('id') === previewId) { + $next.attr('disabled', true); + } + }, + _maximizeZoomDialog: function () { + var self = this, $modal = self.$modal, $head = $modal.find('.modal-header:visible'), + $foot = $modal.find('.modal-footer:visible'), $body = $modal.find('.kv-zoom-body'), + h = $(window).height(), diff = 0; + $modal.addClass('file-zoom-fullscreen'); + if ($head && $head.length) { + h -= $head.outerHeight(true); + } + if ($foot && $foot.length) { + h -= $foot.outerHeight(true); + } + if ($body && $body.length) { + diff = $body.outerHeight(true) - $body.height(); + h -= diff; + } + $modal.find('.kv-zoom-body').height(h); + }, + _resizeZoomDialog: function (fullScreen) { + var self = this, $modal = self.$modal, $btnFull = $modal.find('.btn-kv-fullscreen'), + $btnBord = $modal.find('.btn-kv-borderless'); + if ($modal.hasClass('file-zoom-fullscreen')) { + $h.toggleFullScreen(false); + if (!fullScreen) { + if (!$btnFull.hasClass('active')) { + $modal.removeClass('file-zoom-fullscreen'); + self.$modal.find('.kv-zoom-body').css('height', self.zoomModalHeight); + } else { + $btnFull.removeClass('active').attr('aria-pressed', 'false'); + } + } else { + if (!$btnFull.hasClass('active')) { + $modal.removeClass('file-zoom-fullscreen'); + self._resizeZoomDialog(true); + if ($btnBord.hasClass('active')) { + $btnBord.removeClass('active').attr('aria-pressed', 'false'); + } + } + } + } else { + if (!fullScreen) { + self._maximizeZoomDialog(); + return; + } + $h.toggleFullScreen(true); + } + $modal.focus(); + }, + _setZoomContent: function ($frame, navigate) { + var self = this, $content, tmplt, body, title, $body, $dataEl, config, previewId = $frame.attr('id'), + $zoomPreview = self._getZoom(previewId), $modal = self.$modal, $tmp, desc, $desc, + $btnFull = $modal.find('.btn-kv-fullscreen'), $btnBord = $modal.find('.btn-kv-borderless'), cap, size, + $btnTogh = $modal.find('.btn-kv-toggleheader'), dir = navigate === 'prev' ? 'Left' : 'Right', + slideIn = 'slideIn' + dir, slideOut = 'slideOut' + dir, parsed, zoomData = $frame.data('zoom'); + if (zoomData) { + zoomData = decodeURIComponent(zoomData); + parsed = $zoomPreview.html().replace($h.ZOOM_VAR, '').setTokens({zoomData: zoomData}); + $zoomPreview.html(parsed); + $frame.data('zoom', ''); + $zoomPreview.attr('data-zoom', zoomData); + } + tmplt = $zoomPreview.attr('data-template') || 'generic'; + $content = $zoomPreview.find('.kv-file-content'); + body = $content.length ? '\n' + $content.html() : ''; + cap = $frame.data('caption') || self.msgZoomModalHeading; + size = $frame.data('size') || ''; + desc = $frame.data('description') || ''; + $modal.find('.kv-zoom-caption').attr('title', cap).html(cap); + $modal.find('.kv-zoom-size').html(size); + $desc = $modal.find('.kv-zoom-description').hide(); + if (desc) { + if (self.showDescriptionClose) { + desc = self._getLayoutTemplate('descriptionClose').setTokens({ + closeIcon: self.previewZoomButtonIcons.close + }) + '' + desc; + } + $desc.show().html(desc); + if (self.showDescriptionClose) { + self._handler($modal.find('.kv-desc-hide'), 'click', function () { + $(this).parent().fadeOut('fast', function () { + $modal.focus(); + }); + }); + } + } + $body = $modal.find('.kv-zoom-body'); + $modal.removeClass('kv-single-content'); + if (navigate) { + $tmp = $body.addClass('file-thumb-loading').clone().insertAfter($body); + $h.setHtml($body, body).hide(); + $tmp.fadeOut('fast', function () { + $body.fadeIn('fast', function () { + $body.removeClass('file-thumb-loading'); + }); + $tmp.remove(); + }); + } else { + $h.setHtml($body, body); + } + config = self.previewZoomSettings[tmplt]; + if (config) { + $dataEl = $body.find('.kv-preview-data'); + $h.addCss($dataEl, 'file-zoom-detail'); + $.each(config, function (key, value) { + $dataEl.css(key, value); + if (($dataEl.attr('width') && key === 'width') || ($dataEl.attr('height') && key === 'height')) { + $dataEl.removeAttr(key); + } + }); + } + $modal.data('previewId', previewId); + self._handler($modal.find('.btn-kv-prev'), 'click', function () { + self._zoomSlideShow('prev', previewId); + }); + self._handler($modal.find('.btn-kv-next'), 'click', function () { + self._zoomSlideShow('next', previewId); + }); + self._handler($btnFull, 'click', function () { + self._resizeZoomDialog(true); + }); + self._handler($btnBord, 'click', function () { + self._resizeZoomDialog(false); + }); + self._handler($btnTogh, 'click', function () { + var $header = $modal.find('.modal-header'), $floatBar = $modal.find('.floating-buttons'), + ht, $actions = $header.find('.kv-zoom-actions'), resize = function (height) { + var $body = self.$modal.find('.kv-zoom-body'), h = self.zoomModalHeight; + if ($modal.hasClass('file-zoom-fullscreen')) { + h = $body.outerHeight(true); + if (!height) { + h = h - $header.outerHeight(true); + } + } + $body.css('height', height ? h + height : h); + }; + if ($header.is(':visible')) { + ht = $header.outerHeight(true); + $header.slideUp('slow', function () { + $actions.find('.btn').appendTo($floatBar); + resize(ht); + }); + } else { + $floatBar.find('.btn').appendTo($actions); + $header.slideDown('slow', function () { + resize(); + }); + } + $modal.focus(); + }); + self._handler($modal, 'keydown', function (e) { + var key = e.which || e.keyCode, delay = self.processDelay + 1, $prev = $(this).find('.btn-kv-prev'), + $next = $(this).find('.btn-kv-next'), vId = $(this).data('previewId'), vPrevKey, vNextKey; + [vPrevKey, vNextKey] = self.rtl ? [39, 37] : [37, 39]; + $.each({prev: [$prev, vPrevKey], next: [$next, vNextKey]}, function (direction, config) { + var $btn = config[0], vKey = config[1]; + if (key === vKey && $btn.length) { + $modal.focus(); + if (!$btn.attr('disabled')) { + $btn.focus(); + self._zoomSlideShow(direction, vId); + setTimeout(function () { + if ($btn.attr('disabled')) { + $modal.focus(); + } + }, delay); + } + } + }); + }); + }, + _showModal: function ($frame) { + var self = this, $modal = self.$modal, bs5Modal; + if (!$frame || !$frame.length) { + return; + } + $h.initModal($modal); + $h.setHtml($modal, self._getModalContent()); + self._setZoomContent($frame); + $modal.data({backdrop: false}); + //$modal.data('fileinputPluginId', self.$element.attr('id')); + $modal.modal('show'); + self._initZoomButtons(); + }, + _zoomPreview: function ($btn) { + var self = this, $frame; + if (!$btn.length) { + throw 'Cannot zoom to detailed preview!'; + } + $frame = $btn.closest($h.FRAMES); + self._showModal($frame); + }, + _zoomSlideShow: function (dir, previewId) { + var self = this, $btn = self.$modal.find('.kv-zoom-actions .btn-kv-' + dir), $targFrame, i, $thumb, + thumbsData = self.getFrames().toArray(), thumbs = [], len = thumbsData.length, out; + if (self.reversePreviewOrder) { + dir = dir === 'prev' ? 'next' : 'prev'; + } + if ($btn.attr('disabled')) { + return; + } + for (i = 0; i < len; i++) { + $thumb = $(thumbsData[i]); + if ($thumb && $thumb.length && $thumb.find('.kv-file-zoom:visible').length) { + thumbs.push(thumbsData[i]); + } + } + len = thumbs.length; + for (i = 0; i < len; i++) { + if ($(thumbs[i]).attr('id') === previewId) { + out = dir === 'prev' ? i - 1 : i + 1; + break; + } + } + if (out < 0 || out >= len || !thumbs[out]) { + return; + } + $targFrame = $(thumbs[out]); + if ($targFrame.length) { + self._setZoomContent($targFrame, dir); + } + self._initZoomButtons(); + self._raise('filezoom' + dir, {'previewId': previewId, modal: self.$modal}); + }, + _initZoomButton: function () { + var self = this; + self.$preview.find('.kv-file-zoom').each(function () { + var $el = $(this); + self._handler($el, 'click', function () { + self._zoomPreview($el); + }); + }); + }, + _inputFileCount: function () { + return this.$element[0].files.length; + }, + _refreshPreview: function () { + var self = this, files; + if ((!self._inputFileCount() && !self.isAjaxUpload) || !self.showPreview || !self.isPreviewable) { + return; + } + if (self.isAjaxUpload) { + if (self.fileManager.count() > 0) { + files = $.extend(true, {}, self.getFileList()); + self.fileManager.clear(); + self._clearFileInput(); + } else { + files = self.$element[0].files; + } + } else { + files = self.$element[0].files; + } + if (files && files.length) { + self.readFiles(files); + self._setFileDropZoneTitle(); + } + }, + _clearObjects: function ($el) { + $el.find('video audio').each(function () { + this.pause(); + $(this).remove(); + }); + $el.find('img object div').each(function () { + $(this).remove(); + }); + }, + _clearFileInput: function () { + var self = this, $el = self.$element, $srcFrm, $tmpFrm, $tmpEl; + if (!self._inputFileCount()) { + return; + } + $srcFrm = $el.closest('form'); + $tmpFrm = $(document.createElement('form')); + $tmpEl = $(document.createElement('div')); + $el.before($tmpEl); + if ($srcFrm.length) { + $srcFrm.after($tmpFrm); + } else { + $tmpEl.after($tmpFrm); + } + $tmpFrm.append($el).trigger('reset'); + $tmpEl.before($el).remove(); + $tmpFrm.remove(); + }, + _resetUpload: function () { + var self = this; + self.uploadStartTime = $h.now(); + self.uploadCache = []; + self.$btnUpload.removeAttr('disabled'); + self._setProgress(0); + self._hideProgress(); + self._resetErrors(false); + self._initAjax(); + self.fileManager.clearImages(); + self._resetCanvas(); + if (self.overwriteInitial) { + self.initialPreview = []; + self.initialPreviewConfig = []; + self.initialPreviewThumbTags = []; + self.previewCache.data = { + content: [], + config: [], + tags: [] + }; + } + }, + _resetCanvas: function () { + var self = this; + if (self.imageCanvas && self.imageCanvasContext) { + self.imageCanvasContext.clearRect(0, 0, self.imageCanvas.width, self.imageCanvas.height); + } + }, + _hasInitialPreview: function () { + var self = this; + return !self.overwriteInitial && self.previewCache.count(true); + }, + _resetPreview: function () { + var self = this, out, cap, $div, hasSuc = self.showUploadedThumbs, hasErr = !self.removeFromPreviewOnError, + includeProcessed = (hasSuc || hasErr) && self.isDuplicateError; + if (self.previewCache.count(true)) { + out = self.previewCache.out(); + if (includeProcessed) { + $div = $h.createElement('').insertAfter(self.$container); + self.getFrames().each(function () { + var $thumb = $(this); + if ((hasSuc && $thumb.hasClass('file-preview-success')) || + (hasErr && $thumb.hasClass('file-preview-error'))) { + $div.append($thumb); + } + }); + } + self._setPreviewContent(out.content); + self._setInitThumbAttr(); + cap = self.initialCaption ? self.initialCaption : out.caption; + self._setCaption(cap); + if (includeProcessed) { + $div.contents().appendTo(self.$preview); + $div.remove(); + } + } else { + self._clearPreview(); + self._initCaption(); + } + if (self.showPreview) { + self._initZoom(); + self._initSortable(); + } + self.isDuplicateError = false; + }, + _clearDefaultPreview: function () { + var self = this; + self.$preview.find('.file-default-preview').remove(); + }, + _validateDefaultPreview: function () { + var self = this; + if (!self.showPreview || $h.isEmpty(self.defaultPreviewContent)) { + return; + } + self._setPreviewContent('
                                                                                                                                                                                                                                                                                                          ' + self.defaultPreviewContent + '
                                                                                                                                                                                                                                                                                                          '); + self.$container.removeClass('file-input-new'); + self._initClickable(); + }, + _resetPreviewThumbs: function (isAjax) { + var self = this, out; + if (isAjax) { + self._clearPreview(); + self.clearFileStack(); + return; + } + if (self._hasInitialPreview()) { + out = self.previewCache.out(); + self._setPreviewContent(out.content); + self._setInitThumbAttr(); + self._setCaption(out.caption); + self._initPreviewActions(); + } else { + self._clearPreview(); + } + }, + _getLayoutTemplate: function (t) { + var self = this, template = self.layoutTemplates[t]; + if ($h.isEmpty(self.customLayoutTags)) { + return template; + } + return $h.replaceTags(template, self.customLayoutTags); + }, + _getPreviewTemplate: function (t) { + var self = this, templates = self.previewTemplates, template = templates[t] || templates.other; + if ($h.isEmpty(self.customPreviewTags)) { + return template; + } + return $h.replaceTags(template, self.customPreviewTags); + }, + _getOutData: function (formdata, jqXHR, responseData, filesData) { + var self = this; + jqXHR = jqXHR || {}; + responseData = responseData || {}; + filesData = filesData || self.fileManager.list(); + return { + formdata: formdata, + files: filesData, + filenames: self.filenames, + filescount: self.getFilesCount(), + extra: self._getExtraData(), + response: responseData, + reader: self.reader, + jqXHR: jqXHR + }; + }, + _getMsgSelected: function (n, processing) { + var self = this, strFiles = n === 1 ? self.fileSingle : self.filePlural; + return n > 0 ? self.msgSelected.replace('{n}', n).replace('{files}', strFiles) : + (processing ? self.msgProcessing : self.msgNoFilesSelected); + }, + _getFrame: function (id, skipWarning) { + var self = this, $frame = $h.getFrameElement(self.$preview, id); + if (self.showPreview && !skipWarning && !$frame.length) { + self._log($h.logMessages.invalidThumb, {id: id}); + } + return $frame; + }, + _getZoom: function (id, selector) { + var self = this, $frame = $h.getZoomElement(self.$preview, id, selector); + if (self.showPreview && !$frame.length) { + self._log($h.logMessages.invalidThumb, {id: id}); + } + return $frame; + }, + _getThumbs: function (css) { + css = css || ''; + return this.getFrames(':not(.file-preview-initial)' + css); + }, + _getThumbId: function (fileId) { + var self = this; + return self.previewInitId + '-' + fileId; + }, + _getExtraData: function (fileId, index) { + var self = this, data = self.uploadExtraData; + if (typeof self.uploadExtraData === 'function') { + data = self.uploadExtraData(fileId, index); + } + return data; + }, + _initXhr: function (xhrobj, fileId) { + var self = this, fm = self.fileManager, func = function (event) { + var pct = 0, total = event.total, loaded = event.loaded || event.position, + stats = fm.getUploadStats(fileId, loaded, total); + /** @namespace event.lengthComputable */ + if (event.lengthComputable && !self.enableResumableUpload) { + pct = $h.round(loaded / total * 100); + } + if (fileId) { + self._setFileUploadStats(fileId, pct, stats); + } else { + self._setProgress(pct, null, null, self._getStats(stats)); + } + self._raise('fileajaxprogress', [stats]); + }; + if (xhrobj.upload) { + if (self.progressDelay) { + func = $h.debounce(func, self.progressDelay); + } + xhrobj.upload.addEventListener('progress', func, false); + } + return xhrobj; + }, + _initAjaxSettings: function () { + var self = this; + self._ajaxSettings = $.extend(true, {}, self.ajaxSettings); + self._ajaxDeleteSettings = $.extend(true, {}, self.ajaxDeleteSettings); + }, + _mergeAjaxCallback: function (funcName, srcFunc, type) { + var self = this, settings = self._ajaxSettings, flag = self.mergeAjaxCallbacks, targFunc; + if (type === 'delete') { + settings = self._ajaxDeleteSettings; + flag = self.mergeAjaxDeleteCallbacks; + } + targFunc = settings[funcName]; + if (flag && typeof targFunc === 'function') { + if (flag === 'before') { + settings[funcName] = function () { + targFunc.apply(this, arguments); + srcFunc.apply(this, arguments); + }; + } else { + settings[funcName] = function () { + srcFunc.apply(this, arguments); + targFunc.apply(this, arguments); + }; + } + } else { + settings[funcName] = srcFunc; + } + }, + _ajaxSubmit: function (fnBefore, fnSuccess, fnComplete, fnError, formdata, fileId, index, vUrl) { + var self = this, settings, defaults, data, ajaxTask; + if (!self._raise('filepreajax', [formdata, fileId, index])) { + return; + } + formdata.append('initialPreview', JSON.stringify(self.initialPreview)); + formdata.append('initialPreviewConfig', JSON.stringify(self.initialPreviewConfig)); + formdata.append('initialPreviewThumbTags', JSON.stringify(self.initialPreviewThumbTags)); + self._initAjaxSettings(); + self._mergeAjaxCallback('beforeSend', fnBefore); + self._mergeAjaxCallback('success', fnSuccess); + self._mergeAjaxCallback('complete', fnComplete); + self._mergeAjaxCallback('error', fnError); + vUrl = vUrl || self.uploadUrlThumb || self.uploadUrl; + if (typeof vUrl === 'function') { + vUrl = vUrl(); + } + data = self._getExtraData(fileId, index) || {}; + if (typeof data === 'object') { + $.each(data, function (key, value) { + formdata.append(key, value); + }); + } + defaults = { + xhr: function () { + var xhrobj = $.ajaxSettings.xhr(); + return self._initXhr(xhrobj, fileId); + }, + url: self._encodeURI(vUrl), + type: 'POST', + dataType: 'json', + data: formdata, + cache: false, + processData: false, + contentType: false + }; + settings = $.extend(true, {}, defaults, self._ajaxSettings); + ajaxTask = self.taskManager.addTask(fileId + '-' + index, function () { + var self = this.self, config, xhr; + config = self.ajaxQueue.shift(); + xhr = $.ajax(config); + self.ajaxRequests.push(xhr); + }); + self.ajaxQueue.push(settings); + ajaxTask.runWithContext({self: self}); + }, + _mergeArray: function (prop, content) { + var self = this, arr1 = $h.cleanArray(self[prop]), arr2 = $h.cleanArray(content); + self[prop] = arr1.concat(arr2); + }, + _initUploadSuccess: function (out, $thumb, allFiles) { + var self = this, append, data, index, $div, content, config, tags, id, i; + if (!self.showPreview || typeof out !== 'object' || $.isEmptyObject(out)) { + self._resetCaption(); + return; + } + if (out.initialPreview !== undefined && out.initialPreview.length > 0) { + self.hasInitData = true; + content = out.initialPreview || []; + config = out.initialPreviewConfig || []; + tags = out.initialPreviewThumbTags || []; + append = out.append === undefined || out.append; + if (content.length > 0 && !$h.isArray(content)) { + content = content.split(self.initialPreviewDelimiter); + } + if (content.length) { + self._mergeArray('initialPreview', content); + self._mergeArray('initialPreviewConfig', config); + self._mergeArray('initialPreviewThumbTags', tags); + } + if ($thumb !== undefined) { + if (!allFiles) { + index = self.previewCache.add(content[0], config[0], tags[0], append); + data = self.previewCache.get(index, false); + $div = $h.createElement(data).hide().appendTo($thumb); + $thumb.fadeOut('slow', function () { + var $newThumb = $div.find('> .file-preview-frame'); + if ($newThumb && $newThumb.length) { + $newThumb.insertBefore($thumb).fadeIn('slow').css('display:inline-block'); + } + self._initPreviewActions(); + self._clearFileInput(); + $thumb.remove(); + $div.remove(); + self._initSortable(); + }); + } else { + id = $thumb.attr('id'); + i = self._getUploadCacheIndex(id); + if (i !== null) { + self.uploadCache[i] = { + id: id, + content: content[0], + config: config[0] || [], + tags: tags[0] || [], + append: append + }; + } + } + } else { + self.previewCache.set(content, config, tags, append); + self._initPreview(); + self._initPreviewActions(); + } + } + self._resetCaption(); + }, + _getUploadCacheIndex: function (id) { + var self = this, i, len = self.uploadCache.length, config; + for (i = 0; i < len; i++) { + config = self.uploadCache[i]; + if (config.id === id) { + return i; + } + } + return null; + }, + _initSuccessThumbs: function () { + var self = this; + if (!self.showPreview) { + return; + } + setTimeout(function () { + self._getThumbs($h.FRAMES + '.file-preview-success').each(function () { + var $thumb = $(this), $remove = $thumb.find('.kv-file-remove'); + $remove.removeAttr('disabled'); + self._handler($remove, 'click', function () { + var id = $thumb.attr('id'), + out = self._raise('filesuccessremove', [id, $thumb.attr('data-fileindex')]); + $h.cleanMemory($thumb); + if (out === false) { + return; + } + self.$caption.attr('title', ''); + $thumb.fadeOut('slow', function () { + var fm = self.fileManager; + $thumb.remove(); + if (!self.getFrames().length) { + self.reset(); + } + }); + }); + }); + }, self.processDelay); + }, + _updateInitialPreview: function () { + var self = this, u = self.uploadCache; + if (self.showPreview) { + $.each(u, function (key, setting) { + self.previewCache.add(setting.content, setting.config, setting.tags, setting.append); + }); + if (self.hasInitData) { + self._initPreview(); + self._initPreviewActions(); + } + } + }, + _getThumbFileId: function ($thumb) { + var self = this; + if (self.showPreview && $thumb !== undefined) { + return $thumb.attr('data-fileid'); + } + return null; + }, + _getThumbFile: function ($thumb) { + var self = this, id = self._getThumbFileId($thumb); + return id ? self.fileManager.getFile(id) : null; + }, + _uploadSingle: function (i, id, isBatch) { + var self = this, fm = self.fileManager, count = fm.count(), formdata = new FormData(), outData, + previewId = self._getThumbId(id), $thumb, chkComplete, $btnUpload, $btnDelete, + hasPostData = count > 0 || !$.isEmptyObject(self.uploadExtraData), uploadFailed, $prog, fnBefore, + errMsg, fnSuccess, fnComplete, fnError, updateUploadLog, op = self.ajaxOperations.uploadThumb, + fileObj = fm.getFile(id), params = {id: previewId, index: i, fileId: id}, + fileName = self.fileManager.getFileName(id, true); + if (self.enableResumableUpload) { // not enabled for resumable uploads + return; + } + if (self.showPreview) { + $thumb = fm.getThumb(id); + $prog = $thumb.find('.file-thumb-progress'); + $btnUpload = $thumb.find('.kv-file-upload'); + $btnDelete = $thumb.find('.kv-file-remove'); + $prog.show(); + } + if (count === 0 || !hasPostData || (self.showPreview && $btnUpload && $btnUpload.hasClass('disabled')) || + self._abort(params)) { + return; + } + updateUploadLog = function () { + if (!uploadFailed) { + fm.removeFile(id); + } else { + fm.errors.push(id); + } + fm.setProcessed(id); + if (fm.isProcessed()) { + self.fileBatchCompleted = true; + chkComplete(); + } + }; + chkComplete = function () { + var $initThumbs; + if (!self.fileBatchCompleted) { + return; + } + setTimeout(function () { + var triggerReset = fm.count() === 0, errCount = fm.errors.length; + self._updateInitialPreview(); + self.unlock(triggerReset); + if (triggerReset) { + self._clearFileInput(); + } + $initThumbs = self.$preview.find('.file-preview-initial'); + if (self.uploadAsync && $initThumbs.length) { + $h.addCss($initThumbs, $h.SORT_CSS); + self._initSortable(); + } + self._raise('filebatchuploadcomplete', [fm.stack, self._getExtraData()]); + if (!self.retryErrorUploads || errCount === 0) { + fm.clear(); + } + self._setProgress(101); + self.ajaxAborted = false; + }, self.processDelay); + }; + fnBefore = function (jqXHR) { + outData = self._getOutData(formdata, jqXHR); + fm.initStats(id); + self.fileBatchCompleted = false; + if (!isBatch) { + self.ajaxAborted = false; + } + if (self.showPreview) { + if (!$thumb.hasClass('file-preview-success')) { + self._setThumbStatus($thumb, 'Loading'); + $h.addCss($thumb, 'file-uploading'); + } + $btnUpload.attr('disabled', true); + $btnDelete.attr('disabled', true); + } + if (!isBatch) { + self.lock(); + } + if (fm.errors.indexOf(id) !== -1) { + delete fm.errors[id]; + } + self._raise('filepreupload', [outData, previewId, i, self._getThumbFileId($thumb)]); + $.extend(true, params, outData); + if (self._abort(params)) { + jqXHR.abort(); + if (!isBatch) { + self._setThumbStatus($thumb, 'New'); + $thumb.removeClass('file-uploading'); + $btnUpload.removeAttr('disabled'); + $btnDelete.removeAttr('disabled'); + } + self._setProgressCancelled(); + } + }; + fnSuccess = function (data, textStatus, jqXHR) { + var pid = self.showPreview && $thumb.attr('id') ? $thumb.attr('id') : previewId; + outData = self._getOutData(formdata, jqXHR, data); + $.extend(true, params, outData); + setTimeout(function () { + if ($h.isEmpty(data) || $h.isEmpty(data.error)) { + if (self.showPreview) { + self._setThumbStatus($thumb, 'Success'); + $btnUpload.hide(); + self._initUploadSuccess(data, $thumb, isBatch); + self._setProgress(101, $prog); + } + self._raise('fileuploaded', [outData, pid, i, self._getThumbFileId($thumb)]); + if (!isBatch) { + self.fileManager.remove($thumb); + } else { + updateUploadLog(); + } + } else { + uploadFailed = true; + errMsg = self._parseError(op, jqXHR, self.msgUploadError, self.fileManager.getFileName(id)); + self._showFileError(errMsg, params); + self._setPreviewError($thumb, true); + if (!self.retryErrorUploads) { + $btnUpload.hide(); + } + if (isBatch) { + updateUploadLog(); + } + self._setProgress(101, self._getFrame(pid).find('.file-thumb-progress'), + self.msgUploadError); + } + }, self.processDelay); + }; + fnComplete = function () { + if (self.showPreview) { + $btnUpload.removeAttr('disabled'); + $btnDelete.removeAttr('disabled'); + $thumb.removeClass('file-uploading'); + } + if (!isBatch) { + self.unlock(false); + self._clearFileInput(); + } else { + chkComplete(); + } + self._initSuccessThumbs(); + }; + fnError = function (jqXHR, textStatus, errorThrown) { + errMsg = self._parseError(op, jqXHR, errorThrown, self.fileManager.getFileName(id)); + uploadFailed = true; + setTimeout(function () { + var $prog; + if (isBatch) { + updateUploadLog(); + } + self.fileManager.setProgress(id, 100); + self._setPreviewError($thumb, true); + if (!self.retryErrorUploads) { + $btnUpload.hide(); + } + $.extend(true, params, self._getOutData(formdata, jqXHR)); + self._setProgress(101, self.$progress, self.msgAjaxProgressError.replace('{operation}', op)); + $prog = self.showPreview && $thumb ? $thumb.find('.file-thumb-progress') : ''; + self._setProgress(101, $prog, self.msgUploadError); + self._showFileError(errMsg, params); + }, self.processDelay); + }; + self._setFileData(formdata, fileObj.file, fileName, id); + self._setUploadData(formdata, {fileId: id}); + self._ajaxSubmit(fnBefore, fnSuccess, fnComplete, fnError, formdata, id, i); + }, + _setFileData: function (formdata, file, fileName, fileId) { + var self = this, preProcess = self.preProcessUpload; + if (preProcess && typeof preProcess === 'function') { + formdata.append(self.uploadFileAttr, preProcess(fileId, file)); + } else { + formdata.append(self.uploadFileAttr, file, fileName); + } + }, + _checkBatchPreupload: function (outData, jqXHR) { + var self = this, out = self._raise('filebatchpreupload', [outData]); + if (out) { + return true; + } + self._abort(outData); + if (jqXHR) { + jqXHR.abort(); + } + self._getThumbs().each(function () { + var $thumb = $(this), $btnUpload = $thumb.find('.kv-file-upload'), + $btnDelete = $thumb.find('.kv-file-remove'); + if ($thumb.hasClass('file-preview-loading')) { + self._setThumbStatus($thumb, 'New'); + $thumb.removeClass('file-uploading'); + } + $btnUpload.removeAttr('disabled'); + $btnDelete.removeAttr('disabled'); + }); + self._setProgressCancelled(); + return false; + }, + _uploadBatch: function () { + var self = this, fm = self.fileManager, total = fm.total(), params = {}, fnBefore, fnSuccess, fnError, + fnComplete, hasPostData = total > 0 || !$.isEmptyObject(self.uploadExtraData), errMsg, + setAllUploaded, formdata = new FormData(), op = self.ajaxOperations.uploadBatch; + if (total === 0 || !hasPostData || self._abort(params)) { + return; + } + setAllUploaded = function () { + self.fileManager.clear(); + self._clearFileInput(); + }; + fnBefore = function (jqXHR) { + self.lock(); + fm.initStats(); + var outData = self._getOutData(formdata, jqXHR); + self.ajaxAborted = false; + if (self.showPreview) { + self._getThumbs().each(function () { + var $thumb = $(this), $btnUpload = $thumb.find('.kv-file-upload'), + $btnDelete = $thumb.find('.kv-file-remove'); + if (!$thumb.hasClass('file-preview-success')) { + self._setThumbStatus($thumb, 'Loading'); + $h.addCss($thumb, 'file-uploading'); + } + $btnUpload.attr('disabled', true); + $btnDelete.attr('disabled', true); + }); + } + self._checkBatchPreupload(outData, jqXHR); + }; + fnSuccess = function (data, textStatus, jqXHR) { + /** @namespace data.errorkeys */ + var outData = self._getOutData(formdata, jqXHR, data), key = 0, + $thumbs = self._getThumbs(':not(.file-preview-success)'), + keys = $h.isEmpty(data) || $h.isEmpty(data.errorkeys) ? [] : data.errorkeys; + + if ($h.isEmpty(data) || $h.isEmpty(data.error)) { + self._raise('filebatchuploadsuccess', [outData]); + setAllUploaded(); + if (self.showPreview) { + $thumbs.each(function () { + var $thumb = $(this); + self._setThumbStatus($thumb, 'Success'); + $thumb.removeClass('file-uploading'); + $thumb.find('.kv-file-upload').hide().removeAttr('disabled'); + }); + self._initUploadSuccess(data); + } else { + self.reset(); + } + self._setProgress(101); + } else { + if (self.showPreview) { + $thumbs.each(function () { + var $thumb = $(this); + $thumb.removeClass('file-uploading'); + $thumb.find('.kv-file-upload').removeAttr('disabled'); + $thumb.find('.kv-file-remove').removeAttr('disabled'); + if (keys.length === 0 || $.inArray(key, keys) !== -1) { + self._setPreviewError($thumb, true); + if (!self.retryErrorUploads) { + $thumb.find('.kv-file-upload').hide(); + self.fileManager.remove($thumb); + } + } else { + $thumb.find('.kv-file-upload').hide(); + self._setThumbStatus($thumb, 'Success'); + self.fileManager.remove($thumb); + } + if (!$thumb.hasClass('file-preview-error') || self.retryErrorUploads) { + key++; + } + }); + self._initUploadSuccess(data); + } + errMsg = self._parseError(op, jqXHR, self.msgUploadError); + self._showFileError(errMsg, outData, 'filebatchuploaderror'); + self._setProgress(101, self.$progress, self.msgUploadError); + } + }; + fnComplete = function () { + self.unlock(); + self._initSuccessThumbs(); + self._clearFileInput(); + self._raise('filebatchuploadcomplete', [self.fileManager.stack, self._getExtraData()]); + }; + fnError = function (jqXHR, textStatus, errorThrown) { + var outData = self._getOutData(formdata, jqXHR); + errMsg = self._parseError(op, jqXHR, errorThrown); + self._showFileError(errMsg, outData, 'filebatchuploaderror'); + self.uploadFileCount = total - 1; + if (!self.showPreview) { + return; + } + self._getThumbs().each(function () { + var $thumb = $(this); + $thumb.removeClass('file-uploading'); + if (self._getThumbFile($thumb)) { + self._setPreviewError($thumb); + } + }); + self._getThumbs().removeClass('file-uploading'); + self._getThumbs(' .kv-file-upload').removeAttr('disabled'); + self._getThumbs(' .kv-file-delete').removeAttr('disabled'); + self._setProgress(101, self.$progress, self.msgAjaxProgressError.replace('{operation}', op)); + }; + var ctr = 0; + $.each(self.fileManager.stack, function (key, data) { + if (!$h.isEmpty(data.file)) { + self._setFileData(formdata, data.file, (data.nameFmt || ('untitled_' + ctr)), key); + } + ctr++; + }); + self._ajaxSubmit(fnBefore, fnSuccess, fnComplete, fnError, formdata); + }, + _uploadExtraOnly: function () { + var self = this, params = {}, fnBefore, fnSuccess, fnComplete, fnError, formdata = new FormData(), errMsg, + op = self.ajaxOperations.uploadExtra; + fnBefore = function (jqXHR) { + self.lock(); + var outData = self._getOutData(formdata, jqXHR); + self._setProgress(50); + params.data = outData; + params.xhr = jqXHR; + self._checkBatchPreupload(outData, jqXHR); + }; + fnSuccess = function (data, textStatus, jqXHR) { + var outData = self._getOutData(formdata, jqXHR, data); + if ($h.isEmpty(data) || $h.isEmpty(data.error)) { + self._raise('filebatchuploadsuccess', [outData]); + self._clearFileInput(); + self._initUploadSuccess(data); + self._setProgress(101); + } else { + errMsg = self._parseError(op, jqXHR, self.msgUploadError); + self._showFileError(errMsg, outData, 'filebatchuploaderror'); + } + }; + fnComplete = function () { + self.unlock(); + self._clearFileInput(); + self._raise('filebatchuploadcomplete', [self.fileManager.stack, self._getExtraData()]); + }; + fnError = function (jqXHR, textStatus, errorThrown) { + var outData = self._getOutData(formdata, jqXHR); + errMsg = self._parseError(op, jqXHR, errorThrown); + params.data = outData; + self._showFileError(errMsg, outData, 'filebatchuploaderror'); + self._setProgress(101, self.$progress, self.msgAjaxProgressError.replace('{operation}', op)); + }; + self._ajaxSubmit(fnBefore, fnSuccess, fnComplete, fnError, formdata); + }, + _deleteFileIndex: function ($frame) { + var self = this, ind = $frame.attr('data-fileindex'), rev = self.reversePreviewOrder; + if (ind.substring(0, 5) === $h.INIT_FLAG) { + ind = parseInt(ind.replace($h.INIT_FLAG, '')); + self.initialPreview = $h.spliceArray(self.initialPreview, ind, rev); + self.initialPreviewConfig = $h.spliceArray(self.initialPreviewConfig, ind, rev); + self.initialPreviewThumbTags = $h.spliceArray(self.initialPreviewThumbTags, ind, rev); + self.getFrames().each(function () { + var $nFrame = $(this), nInd = $nFrame.attr('data-fileindex'); + if (nInd.substring(0, 5) === $h.INIT_FLAG) { + nInd = parseInt(nInd.replace($h.INIT_FLAG, '')); + if (nInd > ind) { + nInd--; + $nFrame.attr('data-fileindex', $h.INIT_FLAG + nInd); + } + } + }); + } + }, + _resetCaption: function () { + var self = this; + setTimeout(function () { + var cap = '', n, chk = self.previewCache.count(true), len = self.fileManager.count(), file, + incomplete = ':not(.file-preview-success):not(.file-preview-error)', cfg, + hasThumb = self.showPreview && self.getFrames(incomplete).length; + if (len === 0 && chk === 0 && !hasThumb) { + self.reset(); + } else { + n = chk + len; + if (n > 1) { + cap = self._getMsgSelected(n); + } else { + if (len === 0) { + cfg = self.initialPreviewConfig[0]; + cap = ''; + if (cfg) { + cap = cfg.caption || cfg.filename || '' + } + if (!cap) { + cap = self._getMsgSelected(n); + } + } else { + file = self.fileManager.getFirstFile(); + cap = file ? file.nameFmt : '_'; + } + } + self._setCaption(cap); + } + }, self.processDelay); + }, + _initFileActions: function () { + var self = this; + if (!self.showPreview) { + return; + } + self._initZoomButton(); + self.getFrames(' .kv-file-remove').each(function () { + var $el = $(this), $frame = $el.closest($h.FRAMES), hasError, id = $frame.attr('id'), + ind = $frame.attr('data-fileindex'), status, fm = self.fileManager; + self._handler($el, 'click', function () { + status = self._raise('filepreremove', [id, ind]); + if (status === false || !self._validateMinCount()) { + return false; + } + hasError = $frame.hasClass('file-preview-error'); + $h.cleanMemory($frame); + $frame.fadeOut('slow', function () { + self.fileManager.remove($frame); + self._clearObjects($frame); + $frame.remove(); + if (id && hasError) { + self.$errorContainer.find('li[data-thumb-id="' + id + '"]').fadeOut('fast', function () { + $(this).remove(); + if (!self._errorsExist()) { + self._resetErrors(); + } + }); + } + self._clearFileInput(); + self._resetCaption(); + self._raise('fileremoved', [id, ind]); + }); + }); + }); + self.getFrames(' .kv-file-upload').each(function () { + var $el = $(this); + self._handler($el, 'click', function () { + var $frame = $el.closest($h.FRAMES), fileId = self._getThumbFileId($frame); + self._hideProgress(); + if ($frame.hasClass('file-preview-error') && !self.retryErrorUploads) { + return; + } + self._uploadSingle(self.fileManager.getIndex(fileId), fileId, false); + }); + }); + }, + _initPreviewActions: function () { + var self = this, $preview = self.$preview, deleteExtraData = self.deleteExtraData || {}, + btnRemove = $h.FRAMES + ' .kv-file-remove', settings = self.fileActionSettings, + origClass = settings.removeClass, errClass = settings.removeErrorClass, + resetProgress = function () { + var hasFiles = self.isAjaxUpload ? self.previewCache.count(true) : self._inputFileCount(); + if (!self.getFrames().length && !hasFiles) { + self._setCaption(''); + self.reset(); + self.initialCaption = ''; + } else { + self._resetCaption(); + } + }; + self._initZoomButton(); + $preview.find(btnRemove).each(function () { + var $el = $(this), vUrl = $el.data('url') || self.deleteUrl, vKey = $el.data('key'), errMsg, fnBefore, + fnSuccess, fnError, op = self.ajaxOperations.deleteThumb; + if ($h.isEmpty(vUrl) || vKey === undefined) { + return; + } + if (typeof vUrl === 'function') { + vUrl = vUrl(); + } + var $frame = $el.closest($h.FRAMES), cache = self.previewCache.data, settings, params, config, + fileName, extraData, index = $frame.attr('data-fileindex'); + index = parseInt(index.replace($h.INIT_FLAG, '')); + config = $h.isEmpty(cache.config) && $h.isEmpty(cache.config[index]) ? null : cache.config[index]; + extraData = $h.isEmpty(config) || $h.isEmpty(config.extra) ? deleteExtraData : config.extra; + fileName = config && (config.filename || config.caption) || ''; + if (typeof extraData === 'function') { + extraData = extraData(); + } + params = {id: $el.attr('id'), key: vKey, extra: extraData}; + fnBefore = function (jqXHR) { + self.ajaxAborted = false; + self._raise('filepredelete', [vKey, jqXHR, extraData]); + if (self._abort()) { + jqXHR.abort(); + } else { + $el.removeClass(errClass); + $h.addCss($frame, 'file-uploading'); + $h.addCss($el, 'disabled ' + origClass); + } + }; + fnSuccess = function (data, textStatus, jqXHR) { + var n, cap; + if (!$h.isEmpty(data) && !$h.isEmpty(data.error)) { + params.jqXHR = jqXHR; + params.response = data; + errMsg = self._parseError(op, jqXHR, self.msgDeleteError, fileName); + self._showFileError(errMsg, params, 'filedeleteerror'); + $frame.removeClass('file-uploading'); + $el.removeClass('disabled ' + origClass).addClass(errClass); + resetProgress(); + return; + } + $frame.removeClass('file-uploading').addClass('file-deleted'); + $frame.fadeOut('slow', function () { + index = parseInt(($frame.attr('data-fileindex')).replace($h.INIT_FLAG, '')); + self.previewCache.unset(index); + self._deleteFileIndex($frame); + n = self.previewCache.count(true); + cap = n > 0 ? self._getMsgSelected(n) : ''; + self._setCaption(cap); + self._raise('filedeleted', [vKey, jqXHR, extraData]); + self._clearObjects($frame); + $frame.remove(); + resetProgress(); + }); + }; + fnError = function (jqXHR, textStatus, errorThrown) { + var errMsg = self._parseError(op, jqXHR, errorThrown, fileName); + params.jqXHR = jqXHR; + params.response = {}; + self._showFileError(errMsg, params, 'filedeleteerror'); + $frame.removeClass('file-uploading'); + $el.removeClass('disabled ' + origClass).addClass(errClass); + resetProgress(); + }; + self._initAjaxSettings(); + self._mergeAjaxCallback('beforeSend', fnBefore, 'delete'); + self._mergeAjaxCallback('success', fnSuccess, 'delete'); + self._mergeAjaxCallback('error', fnError, 'delete'); + settings = $.extend(true, {}, { + url: self._encodeURI(vUrl), + type: 'POST', + dataType: 'json', + data: $.extend(true, {}, {key: vKey}, extraData) + }, self._ajaxDeleteSettings); + self._handler($el, 'click', function () { + if (!self._validateMinCount()) { + return false; + } + self.ajaxAborted = false; + self._raise('filebeforedelete', [vKey, extraData]); + if (self.ajaxAborted instanceof Promise) { + self.ajaxAborted.then(function (result) { + if (!result) { + $.ajax(settings); + } + }); + } else { + if (!self.ajaxAborted) { + $.ajax(settings); + } + } + }); + }); + }, + _hideFileIcon: function () { + var self = this; + if (self.overwriteInitial) { + self.$captionContainer.removeClass('icon-visible'); + } + }, + _showFileIcon: function () { + var self = this; + $h.addCss(self.$captionContainer, 'icon-visible'); + }, + _getSize: function (bytes, sizes) { + var self = this, size = parseFloat(bytes), i, func = self.fileSizeGetter, out; + if (!$.isNumeric(bytes) || !$.isNumeric(size)) { + return ''; + } + if (typeof func === 'function') { + out = func(size); + } else { + if (size === 0) { + out = '0.00 B'; + } else { + if (!sizes) { + sizes = self.sizeUnits; + } + i = Math.floor(Math.log(size) / Math.log(self.bytesToKB)); + out = (size / Math.pow(self.bytesToKB, i)).toFixed(2) + ' ' + sizes[i]; + } + } + return self._getLayoutTemplate('size').replace('{sizeText}', out); + }, + _getFileType: function (ftype) { + var self = this; + return self.mimeTypeAliases[ftype] || ftype; + }, + _generatePreviewTemplate: function ( + cat, + data, + fname, + ftype, + previewId, + fileId, + isError, + size, + frameClass, + foot, + ind, + templ, + attrs, + zoomData + ) { + var self = this, caption = self.slug(fname), prevContent, zoomContent = '', styleAttribs = '', + screenW = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth, + config, title = caption, alt = caption, typeCss = 'type-default', getContent, + footer = foot || self._renderFileFooter(cat, caption, size, 'auto', isError), + forcePrevIcon = self.preferIconicPreview, forceZoomIcon = self.preferIconicZoomPreview, + newCat = forcePrevIcon ? 'other' : cat; + config = screenW < 400 ? (self.previewSettingsSmall[newCat] || self.defaults.previewSettingsSmall[newCat]) : + (self.previewSettings[newCat] || self.defaults.previewSettings[newCat]); + if (config) { + $.each(config, function (key, val) { + styleAttribs += key + ':' + val + ';'; + }); + } + getContent = function (vCat, vData, zoom, frameCss, vZoomData) { + var id = zoom ? 'zoom-' + previewId : previewId, tmplt = self._getPreviewTemplate(vCat), + css = (frameClass || '') + ' ' + frameCss, tokens; + if (self.frameClass) { + css = self.frameClass + ' ' + css; + } + if (zoom) { + css = css.replace(' ' + $h.SORT_CSS, ''); + } + tmplt = self._parseFilePreviewIcon(tmplt, fname); + if (cat === 'object' && !ftype) { + $.each(self.defaults.fileTypeSettings, function (key, func) { + if (key === 'object' || key === 'other') { + return; + } + if (func(fname, ftype)) { + typeCss = 'type-' + key; + } + }); + } + if (!$h.isEmpty(attrs)) { + if (attrs.title !== undefined && attrs.title !== null) { + title = attrs.title; + } + if (attrs.alt !== undefined && attrs.alt !== null) { + title = attrs.alt; + } + } + tokens = { + 'previewId': id, + 'caption': caption, + 'title': title, + 'alt': alt, + 'frameClass': css, + 'type': self._getFileType(ftype), + 'fileindex': ind, + 'fileid': fileId || '', + 'typeCss': typeCss, + 'footer': footer, + 'data': vData, +// 'data': zoom && vZoomData ? $h.ZOOM_VAR + '{zoomData}' : vData, + 'template': templ || cat, + 'style': styleAttribs ? 'style="' + styleAttribs + '"' : '', + 'zoomData': vZoomData ? encodeURIComponent(vZoomData) : '' + }; + if (zoom) { + tokens.zoomCache = ''; + tokens.zoomData = '{zoomData}'; + } + return tmplt.setTokens(tokens); + }; + ind = ind || previewId.slice(previewId.lastIndexOf('-') + 1); + if (self.fileActionSettings.showZoom) { + zoomContent = getContent((forceZoomIcon ? 'other' : cat), data, true, 'kv-zoom-thumb', zoomData); + } + zoomContent = '\n' + self._getLayoutTemplate('zoomCache').replace('{zoomContent}', zoomContent); + if (typeof self.sanitizeZoomCache === 'function') { + zoomContent = self.sanitizeZoomCache(zoomContent); + } + prevContent = getContent((forcePrevIcon ? 'other' : cat), data, false, 'kv-preview-thumb', zoomData); + return prevContent.setTokens({zoomCache: zoomContent}); + }, + _addToPreview: function ($preview, content) { + var self = this, $el; + content = $h.cspBuffer.stash(content); + $el = self.reversePreviewOrder ? $preview.prepend(content) : $preview.append(content); + $h.cspBuffer.apply($preview); + return $el; + }, + _previewDefault: function (file, isDisabled) { + var self = this, $preview = self.$preview; + if (!self.showPreview) { + return; + } + var fname = $h.getFileName(file), ftype = file ? file.type : '', content, size = file.size || 0, + caption = self._getFileName(file, ''), isError = isDisabled === true && !self.isAjaxUpload, + data = $h.createObjectURL(file), fileId = self.fileManager.getId(file), + previewId = self._getThumbId(fileId); + self._clearDefaultPreview(); + content = self._generatePreviewTemplate('other', data, fname, ftype, previewId, fileId, isError, size); + self._addToPreview($preview, content); + self._setThumbAttr(previewId, caption, size); + if (isDisabled === true && self.isAjaxUpload) { + self._setThumbStatus(self._getFrame(previewId), 'Error'); + } + }, + _previewFile: function (i, file, theFile, data, fileInfo) { + if (!this.showPreview) { + return; + } + var self = this, fname = $h.getFileName(file), ftype = fileInfo.type, caption = fileInfo.name, + cat = self._parseFileType(ftype, fname), content, $preview = self.$preview, fsize = file.size || 0, + iData = cat === 'image' ? theFile.target.result : data, fm = self.fileManager, + fileId = fm.getId(file), previewId = self._getThumbId(fileId); + /** @namespace window.DOMPurify */ + content = self._generatePreviewTemplate(cat, iData, fname, ftype, previewId, fileId, false, fsize); + self._clearDefaultPreview(); + self._addToPreview($preview, content); + var $thumb = self._getFrame(previewId); + self._validateImageOrientation($thumb.find('img'), file, previewId, fileId, caption, ftype, fsize, iData); + self._setThumbAttr(previewId, caption, fsize); + self._initSortable(); + }, + _setThumbAttr: function (id, caption, size, description) { + var self = this, $frame = self._getFrame(id); + if ($frame.length) { + size = size && size > 0 ? self._getSize(size) : ''; + $frame.data({'caption': caption, 'size': size, 'description': description || ''}); + } + }, + _setInitThumbAttr: function () { + var self = this, data = self.previewCache.data, len = self.previewCache.count(true), config, + caption, size, description, previewId; + if (len === 0) { + return; + } + for (var i = 0; i < len; i++) { + config = data.config[i]; + previewId = self.previewInitId + '-' + $h.INIT_FLAG + i; + caption = $h.ifSet('caption', config, $h.ifSet('filename', config)); + size = $h.ifSet('size', config); + description = $h.ifSet('description', config); + self._setThumbAttr(previewId, caption, size, description); + } + }, + _slugDefault: function (text) { + // noinspection RegExpRedundantEscape + return $h.isEmpty(text, true) ? '' : String(text).replace(/[\[\]\/\{}:;#%=\(\)\*\+\?\\\^\$\|<>&"']/g, '_'); + }, + _updateFileDetails: function (numFiles) { + var self = this, $el = self.$element, label, n, log, nFiles, file, + name = ($h.isIE(9) && $h.findFileName($el.val())) || ($el[0].files[0] && $el[0].files[0].name); + if (!name && self.fileManager.count() > 0) { + file = self.fileManager.getFirstFile(); + label = file.nameFmt; + } else { + label = name ? self.slug(name) : '_'; + } + n = self.isAjaxUpload ? self.fileManager.count() : numFiles; + nFiles = self.previewCache.count(true) + n; + log = n === 1 ? label : self._getMsgSelected(nFiles, !self.isAjaxUpload && !self.isError); + if (self.isError) { + self.$previewContainer.removeClass('file-thumb-loading'); + self._initCapStatus(); + self.$previewStatus.html(''); + self.$captionContainer.removeClass('icon-visible'); + } else { + self._showFileIcon(); + } + self._setCaption(log, self.isError); + self.$container.removeClass('file-input-new file-input-ajax-new'); + self._raise('fileselect', [numFiles, label]); + if (self.previewCache.count(true)) { + self._initPreviewActions(); + } + }, + _setThumbStatus: function ($thumb, status) { + var self = this; + if (!self.showPreview) { + return; + } + var icon = 'indicator' + status, msg = icon + 'Title', + css = 'file-preview-' + status.toLowerCase(), + $indicator = $thumb.find('.file-upload-indicator'), + config = self.fileActionSettings; + $thumb.removeClass('file-preview-success file-preview-error file-preview-paused file-preview-loading'); + if (status === 'Success') { + $thumb.find('.file-drag-handle').remove(); + } + $h.setHtml($indicator, config[icon]); + $indicator.attr('title', config[msg]); + $thumb.addClass(css); + if (status === 'Error' && !self.retryErrorUploads) { + $thumb.find('.kv-file-upload').attr('disabled', true); + } + }, + _setProgressCancelled: function () { + var self = this; + self._setProgress(101, self.$progress, self.msgCancelled); + }, + _setProgress: function (p, $el, error, stats) { + var self = this; + $el = $el || self.$progress; + if (!$el.length) { + return; + } + var pct = Math.min(p, 100), out, pctLimit = self.progressUploadThreshold, + t = p <= 100 ? self.progressTemplate : self.progressCompleteTemplate, + template = pct < 100 ? self.progressTemplate : + (error ? (self.paused ? self.progressPauseTemplate : self.progressErrorTemplate) : t); + if (p >= 100) { + stats = ''; + } + if (!$h.isEmpty(template)) { + if (pctLimit && pct > pctLimit && p <= 100) { + out = template.setTokens({'percent': pctLimit, 'status': self.msgUploadThreshold}); + } else { + out = template.setTokens({'percent': pct, 'status': (p > 100 ? self.msgUploadEnd : pct + '%')}); + } + stats = stats || ''; + out = out.setTokens({stats: stats}); + $h.setHtml($el, out); + if (error) { + $h.setHtml($el.find('[role="progressbar"]'), error); + } + } + }, + _hasFiles: function () { + var el = this.$element[0]; + return !!(el && el.files && el.files.length); + }, + _setFileDropZoneTitle: function () { + var self = this, $zone = self.$container.find('.file-drop-zone'), title = self.dropZoneTitle, strFiles; + if (self.isClickable) { + strFiles = $h.isEmpty(self.$element.attr('multiple')) ? self.fileSingle : self.filePlural; + title += self.dropZoneClickTitle.replace('{files}', strFiles); + } + $zone.find('.' + self.dropZoneTitleClass).remove(); + if (!self.showPreview || $zone.length === 0 || self.fileManager.count() > 0 || !self.dropZoneEnabled || + self.previewCache.count() > 0 || (!self.isAjaxUpload && self._hasFiles())) { + return; + } + if ($zone.find($h.FRAMES).length === 0 && $h.isEmpty(self.defaultPreviewContent)) { + $zone.prepend('
                                                                                                                                                                                                                                                                                                          ' + title + '
                                                                                                                                                                                                                                                                                                          '); + } + self.$container.removeClass('file-input-new'); + $h.addCss(self.$container, 'file-input-ajax-new'); + }, + _getStats: function (stats) { + var self = this, pendingTime, t; + if (!self.showUploadStats || !stats || !stats.bitrate) { + return ''; + } + t = self._getLayoutTemplate('stats'); + pendingTime = (!stats.elapsed || !stats.bps) ? self.msgCalculatingTime : + self.msgPendingTime.setTokens({time: $h.getElapsed(Math.ceil(stats.pendingBytes / stats.bps))}); + + return t.setTokens({ + uploadSpeed: stats.bitrate, + pendingTime: pendingTime + }); + }, + _setResumableProgress: function (pct, stats, $thumb) { + var self = this, rm = self.resumableManager, obj = $thumb ? rm : self, + $prog = $thumb ? $thumb.find('.file-thumb-progress') : null; + if (obj.lastProgress === 0) { + obj.lastProgress = pct; + } + if (pct < obj.lastProgress) { + pct = obj.lastProgress; + } + self._setProgress(pct, $prog, null, self._getStats(stats)); + obj.lastProgress = pct; + }, + _toggleResumableProgress: function (template, message) { + var self = this, $progress = self.$progress; + if ($progress && $progress.length) { + $h.setHtml($progress, template.setTokens({ + percent: 101, + status: message, + stats: '' + })); + } + }, + _setFileUploadStats: function (id, pct, stats) { + var self = this, $prog = self.$progress; + if (!self.showPreview && (!$prog || !$prog.length)) { + return; + } + var fm = self.fileManager, rm = self.resumableManager, $thumb = fm.getThumb(id), pctTot, + totUpSize = 0, totSize = fm.getTotalSize(), totStats = $.extend(true, {}, stats); + if (self.enableResumableUpload) { + var loaded = stats.loaded, currUplSize = rm.getUploadedSize(), currTotSize = rm.file.size, totLoaded; + loaded += currUplSize; + totLoaded = fm.uploadedSize + loaded; + pct = $h.round(100 * loaded / currTotSize); + stats.pendingBytes = currTotSize - currUplSize; + self._setResumableProgress(pct, stats, $thumb); + pctTot = Math.floor(100 * totLoaded / totSize); + totStats.pendingBytes = totSize - totLoaded; + self._setResumableProgress(pctTot, totStats); + } else { + fm.setProgress(id, pct); + $prog = $thumb && $thumb.length ? $thumb.find('.file-thumb-progress') : null; + self._setProgress(pct, $prog, null, self._getStats(stats)); + $.each(fm.stats, function (id, cfg) { + totUpSize += cfg.loaded; + }); + totStats.pendingBytes = totSize - totUpSize; + pctTot = $h.round(totUpSize / totSize * 100); + self._setProgress(pctTot, null, null, self._getStats(totStats)); + } + }, + _validateMinCount: function () { + var self = this, len = self.isAjaxUpload ? self.fileManager.count() : self._inputFileCount(); + if (self.validateInitialCount && self.minFileCount > 0 && self._getFileCount(len - 1) < self.minFileCount) { + self._noFilesError({}); + return false; + } + return true; + }, + _getFileCount: function (fileCount, includeInitial) { + var self = this, addCount = 0; + if (includeInitial === undefined) { + includeInitial = self.validateInitialCount && !self.overwriteInitial; + } + if (includeInitial) { + addCount = self.previewCache.count(true); + fileCount += addCount; + } + return fileCount; + }, + _getFileId: function (file) { + return $h.getFileId(file, this.generateFileId); + }, + _getFileName: function (file, defaultValue) { + var self = this, fileName = $h.getFileName(file); + return fileName ? self.slug(fileName) : defaultValue; + }, + _getFileNames: function (skipNull) { + var self = this; + return self.filenames.filter(function (n) { + return (skipNull ? n !== undefined : n !== undefined && n !== null); + }); + }, + _setPreviewError: function ($thumb, keepFile) { + var self = this, removeFrame = self.removeFromPreviewOnError && !self.retryErrorUploads; + if (!keepFile || removeFrame) { + self.fileManager.remove($thumb); + } + if (!self.showPreview) { + return; + } + if (removeFrame) { + $thumb.remove(); + return; + } else { + self._setThumbStatus($thumb, 'Error'); + } + self._refreshUploadButton($thumb); + }, + _refreshUploadButton: function ($thumb) { + var self = this, $btn = $thumb.find('.kv-file-upload'), cfg = self.fileActionSettings, + icon = cfg.uploadIcon, title = cfg.uploadTitle; + if (!$btn.length) { + return; + } + if (self.retryErrorUploads) { + icon = cfg.uploadRetryIcon; + title = cfg.uploadRetryTitle; + } + $btn.attr('title', title); + $h.setHtml($btn, icon); + }, + _checkDimensions: function (i, chk, $img, $thumb, fname, type, params) { + var self = this, msg, dim, tag = chk === 'Small' ? 'min' : 'max', limit = self[tag + 'Image' + type], + $imgEl, isValid; + if ($h.isEmpty(limit) || !$img.length) { + return; + } + $imgEl = $img[0]; + dim = (type === 'Width') ? $imgEl.naturalWidth || $imgEl.width : $imgEl.naturalHeight || $imgEl.height; + isValid = chk === 'Small' ? dim >= limit : dim <= limit; + if (isValid) { + return; + } + msg = self['msgImage' + type + chk].setTokens({'name': fname, 'size': limit}); + self._showFileError(msg, params); + self._setPreviewError($thumb); + }, + _getExifObj: function (data) { + var self = this, exifObj, error = $h.logMessages.exifWarning; + if (data.slice(0, 23) !== 'data:image/jpeg;base64,' && data.slice(0, 22) !== 'data:image/jpg;base64,') { + exifObj = null; + return; + } + try { + exifObj = window.piexif ? window.piexif.load(data) : null; + } catch (err) { + exifObj = null; + error = err && err.message || ''; + } + if (!exifObj) { + self._log($h.logMessages.badExifParser, {details: error}); + } + return exifObj; + }, + setImageOrientation: function ($img, $zoomImg, value, $thumb) { + var self = this, invalidImg = !$img || !$img.length, invalidZoomImg = !$zoomImg || !$zoomImg.length, $mark, + isHidden = false, $div, zoomOnly = invalidImg && $thumb && $thumb.attr('data-template') === 'image', ev; + if (invalidImg && invalidZoomImg) { + return; + } + ev = 'load.fileinputimageorient'; + if (zoomOnly) { + $img = $zoomImg; + $zoomImg = null; + $img.css(self.previewSettings.image); + $div = $(document.createElement('div')).appendTo($thumb.find('.kv-file-content')); + $mark = $(document.createElement('span')).insertBefore($img); + $img.css('visibility', 'hidden').removeClass('file-zoom-detail').appendTo($div); + } else { + isHidden = !$img.is(':visible'); + } + $img.off(ev).on(ev, function () { + if (isHidden) { + self.$preview.removeClass('hide-content'); + $thumb.find('.kv-file-content').css('visibility', 'hidden'); + } + var img = $img[0], zoomImg = $zoomImg && $zoomImg.length ? $zoomImg[0] : null, + h = img.offsetHeight, w = img.offsetWidth, r = $h.getRotation(value); + if (isHidden) { + $thumb.find('.kv-file-content').css('visibility', 'visible'); + self.$preview.addClass('hide-content'); + } + $img.data('orientation', value); + if (zoomImg) { + $zoomImg.data('orientation', value); + } + if (value < 5) { + $h.setTransform(img, r); + $h.setTransform(zoomImg, r); + return; + } + var offsetAngle = Math.atan(w / h), origFactor = Math.sqrt(Math.pow(h, 2) + Math.pow(w, 2)), + scale = !origFactor ? 1 : (h / Math.cos(Math.PI / 2 + offsetAngle)) / origFactor, + s = ' scale(' + Math.abs(scale) + ')'; + $h.setTransform(img, r + s); + $h.setTransform(zoomImg, r + s); + if (zoomOnly) { + $img.css('visibility', 'visible').insertAfter($mark).addClass('file-zoom-detail'); + $mark.remove(); + $div.remove(); + } + }); + }, + _validateImageOrientation: function ($img, file, previewId, fileId, caption, ftype, fsize, iData) { + var self = this, exifObj = null, value, autoOrientImage = self.autoOrientImage, selector; + if (self.canOrientImage) { + $img.css('image-orientation', (autoOrientImage ? 'from-image' : 'none')); + self._validateImage(previewId, fileId, caption, ftype, fsize, iData, exifObj); + return; + } + selector = $h.getZoomSelector(previewId, ' img'); + exifObj = autoOrientImage ? self._getExifObj(iData) : null; + value = exifObj ? exifObj['0th'][piexif.ImageIFD.Orientation] : null; // jshint ignore:line + if (!value) { + self._validateImage(previewId, fileId, caption, ftype, fsize, iData, exifObj); + return; + } + self.setImageOrientation($img, $(selector), value, self._getFrame(previewId)); + self._raise('fileimageoriented', {'$img': $img, 'file': file}); + self._validateImage(previewId, fileId, caption, ftype, fsize, iData, exifObj); + }, + _validateImage: function (previewId, fileId, fname, ftype, fsize, iData, exifObj) { + var self = this, $preview = self.$preview, params, w1, w2, $thumb = self._getFrame(previewId), + i = $thumb.attr('data-fileindex'), $img = $thumb.find('img'); + fname = fname || 'Untitled'; + $img.one('load', function () { + w1 = $thumb.width(); + w2 = $preview.width(); + if (w1 > w2) { + $img.css('width', '100%'); + } + params = {ind: i, id: previewId, fileId: fileId}; + self._checkDimensions(i, 'Small', $img, $thumb, fname, 'Width', params); + self._checkDimensions(i, 'Small', $img, $thumb, fname, 'Height', params); + if (!self.resizeImage) { + self._checkDimensions(i, 'Large', $img, $thumb, fname, 'Width', params); + self._checkDimensions(i, 'Large', $img, $thumb, fname, 'Height', params); + } + self._raise('fileimageloaded', [previewId]); + self.fileManager.addImage(fileId, { + ind: i, + img: $img, + thumb: $thumb, + pid: previewId, + typ: ftype, + siz: fsize, + validated: false, + imgData: iData, + exifObj: exifObj + }); + $thumb.data('exif', exifObj); + self._validateAllImages(); + }).one('error', function () { + self._raise('fileimageloaderror', [previewId]); + }); + }, + _validateAllImages: function () { + var self = this, counter = {val: 0}, numImgs = self.fileManager.getImageCount(), fsize, + minSize = self.resizeIfSizeMoreThan; + if (numImgs !== self.fileManager.totalImages) { + return; + } + self._raise('fileimagesloaded'); + if (!self.resizeImage) { + return; + } + $.each(self.fileManager.loadedImages, function (id, config) { + if (!config.validated) { + fsize = config.siz; + if (fsize && fsize > minSize * self.bytesToKB) { + self._getResizedImage(id, config, counter, numImgs); + } + config.validated = true; + } + }); + }, + _getResizedImage: function (id, config, counter, numImgs) { + var self = this, img = $(config.img)[0], width = img.naturalWidth, height = img.naturalHeight, blob, + ratio = 1, maxWidth = self.maxImageWidth || width, maxHeight = self.maxImageHeight || height, + isValidImage = !!(width && height), chkWidth, chkHeight, canvas = self.imageCanvas, dataURI, + context = self.imageCanvasContext, type = config.typ, pid = config.pid, ind = config.ind, + $thumb = config.thumb, throwError, msg, exifObj = config.exifObj, exifStr, file, params, evParams; + throwError = function (msg, params, ev) { + if (self.isAjaxUpload) { + self._showFileError(msg, params, ev); + } else { + self._showError(msg, params, ev); + } + self._setPreviewError($thumb); + }; + file = self.fileManager.getFile(id); + params = {id: pid, 'index': ind, fileId: id}; + evParams = [id, pid, ind]; + if (!file || !isValidImage || (width <= maxWidth && height <= maxHeight)) { + if (isValidImage && file) { + self._raise('fileimageresized', evParams); + } + counter.val++; + if (counter.val === numImgs) { + self._raise('fileimagesresized'); + } + if (!isValidImage) { + throwError(self.msgImageResizeError, params, 'fileimageresizeerror'); + return; + } + } + type = type || self.resizeDefaultImageType; + chkWidth = width > maxWidth; + chkHeight = height > maxHeight; + if (self.resizePreference === 'width') { + ratio = chkWidth ? maxWidth / width : (chkHeight ? maxHeight / height : 1); + } else { + ratio = chkHeight ? maxHeight / height : (chkWidth ? maxWidth / width : 1); + } + self._resetCanvas(); + width *= ratio; + height *= ratio; + canvas.width = width; + canvas.height = height; + try { + context.drawImage(img, 0, 0, width, height); + dataURI = canvas.toDataURL(type, self.resizeQuality); + if (exifObj) { + exifStr = window.piexif.dump(exifObj); + dataURI = window.piexif.insert(exifStr, dataURI); + } + blob = $h.dataURI2Blob(dataURI); + self.fileManager.setFile(id, blob); + self._raise('fileimageresized', evParams); + counter.val++; + if (counter.val === numImgs) { + self._raise('fileimagesresized', [undefined, undefined]); + } + if (!(blob instanceof Blob)) { + throwError(self.msgImageResizeError, params, 'fileimageresizeerror'); + } + } catch (err) { + counter.val++; + if (counter.val === numImgs) { + self._raise('fileimagesresized', [undefined, undefined]); + } + msg = self.msgImageResizeException.replace('{errors}', err.message); + throwError(msg, params, 'fileimageresizeexception'); + } + }, + _showProgress: function () { + var self = this; + if (self.$progress && self.$progress.length) { + self.$progress.show(); + } + }, + _hideProgress: function () { + var self = this; + if (self.$progress && self.$progress.length) { + self.$progress.hide(); + } + }, + _initBrowse: function ($container) { + var self = this, $el = self.$element; + if (self.showBrowse) { + self.$btnFile = $container.find('.btn-file').append($el); + } else { + $el.appendTo($container).attr('tabindex', -1); + $h.addCss($el, 'file-no-browse'); + } + }, + _initClickable: function () { + var self = this, $zone, $tmpZone; + if (!self.isClickable) { + return; + } + $zone = self.$dropZone; + if (!self.isAjaxUpload) { + $tmpZone = self.$preview.find('.file-default-preview'); + if ($tmpZone.length) { + $zone = $tmpZone; + } + } + + $h.addCss($zone, 'clickable'); + $zone.attr('tabindex', -1); + self._handler($zone, 'click', function (e) { + var $tar = $(e.target); + if (!self.$errorContainer.is(':visible') && (!$tar.parents( + '.file-preview-thumbnails').length || $tar.parents( + '.file-default-preview').length)) { + self.$element.data('zoneClicked', true).trigger('click'); + $zone.blur(); + } + }); + }, + _initCaption: function () { + var self = this, cap = self.initialCaption || ''; + if (self.overwriteInitial || $h.isEmpty(cap)) { + self.$caption.val(''); + return false; + } + self._setCaption(cap); + return true; + }, + _setCaption: function (content, isError) { + var self = this, title, out, icon, n, cap, file; + if (!self.$caption.length) { + return; + } + self.$captionContainer.removeClass('icon-visible'); + if (isError) { + title = $('
                                                                                                                                                                                                                                                                                                          ' + self.msgValidationError + '
                                                                                                                                                                                                                                                                                                          ').text(); + n = self.fileManager.count(); + if (n) { + file = self.fileManager.getFirstFile(); + cap = n === 1 && file ? file.nameFmt : self._getMsgSelected(n); + } else { + cap = self._getMsgSelected(self.msgNo); + } + out = $h.isEmpty(content) ? cap : content; + icon = '' + self.msgValidationErrorIcon + ''; + } else { + if ($h.isEmpty(content)) { + self.$caption.attr('title', ''); + return; + } + title = $('
                                                                                                                                                                                                                                                                                                          ' + content + '
                                                                                                                                                                                                                                                                                                          ').text(); + out = title; + icon = self._getLayoutTemplate('fileIcon'); + } + self.$captionContainer.addClass('icon-visible'); + self.$caption.attr('title', title).val(out); + $h.setHtml(self.$captionIcon, icon); + }, + _createContainer: function () { + var self = this, attribs = {'class': 'file-input file-input-new' + (self.rtl ? ' kv-rtl' : '')}, + $container = $h.createElement($h.cspBuffer.stash(self._renderMain())); + $h.cspBuffer.apply($container); + $container.insertBefore(self.$element).attr(attribs); + self._initBrowse($container); + if (self.theme) { + $container.addClass('theme-' + self.theme); + } + return $container; + }, + _refreshContainer: function () { + var self = this, $container = self.$container, $el = self.$element; + $el.insertAfter($container); + $h.setHtml($container, self._renderMain()); + self._initBrowse($container); + self._validateDisabled(); + }, + _validateDisabled: function () { + var self = this; + self.$caption.attr({readonly: self.isDisabled}); + }, + _setTabIndex: function (type, html) { + var self = this, index = self.tabIndexConfig[type]; + return html.setTokens({ + tabIndexConfig: index === undefined || index === null ? '' : 'tabindex="' + index + '"' + }); + }, + _renderMain: function () { + var self = this, + dropCss = self.dropZoneEnabled ? ' file-drop-zone' : 'file-drop-disabled', + close = !self.showClose ? '' : self._getLayoutTemplate('close'), + preview = !self.showPreview ? '' : self._getLayoutTemplate('preview') + .setTokens({'class': self.previewClass, 'dropClass': dropCss}), + css = self.isDisabled ? self.captionClass + ' file-caption-disabled' : self.captionClass, + caption = self.captionTemplate.setTokens({'class': css + ' kv-fileinput-caption'}); + caption = self._setTabIndex('caption', caption); + return self.mainTemplate.setTokens({ + 'class': self.mainClass + (!self.showBrowse && self.showCaption ? ' no-browse' : ''), + 'inputGroupClass': self.inputGroupClass, + 'preview': preview, + 'close': close, + 'caption': caption, + 'upload': self._renderButton('upload'), + 'remove': self._renderButton('remove'), + 'cancel': self._renderButton('cancel'), + 'pause': self._renderButton('pause'), + 'browse': self._renderButton('browse') + }); + + }, + _renderButton: function (type) { + var self = this, tmplt = self._getLayoutTemplate('btnDefault'), css = self[type + 'Class'], + title = self[type + 'Title'], icon = self[type + 'Icon'], label = self[type + 'Label'], + status = self.isDisabled ? ' disabled' : '', btnType = 'button'; + switch (type) { + case 'remove': + if (!self.showRemove) { + return ''; + } + break; + case 'cancel': + if (!self.showCancel) { + return ''; + } + css += ' kv-hidden'; + break; + case 'pause': + if (!self.showPause) { + return ''; + } + css += ' kv-hidden'; + break; + case 'upload': + if (!self.showUpload) { + return ''; + } + if (self.isAjaxUpload && !self.isDisabled) { + tmplt = self._getLayoutTemplate('btnLink').replace('{href}', self.uploadUrl); + } else { + btnType = 'submit'; + } + break; + case 'browse': + if (!self.showBrowse) { + return ''; + } + tmplt = self._getLayoutTemplate('btnBrowse'); + break; + default: + return ''; + } + tmplt = self._setTabIndex(type, tmplt); + + css += type === 'browse' ? ' btn-file' : ' fileinput-' + type + ' fileinput-' + type + '-button'; + if (!$h.isEmpty(label)) { + label = ' ' + label + ''; + } + return tmplt.setTokens({ + 'type': btnType, 'css': css, 'title': title, 'status': status, 'icon': icon, 'label': label + }); + }, + _renderThumbProgress: function () { + var self = this; + return '
                                                                                                                                                                                                                                                                                                          ' + + self.progressInfoTemplate.setTokens({percent: 101, status: self.msgUploadBegin, stats: ''}) + + '
                                                                                                                                                                                                                                                                                                          '; + }, + _renderFileFooter: function (cat, caption, size, width, isError) { + var self = this, config = self.fileActionSettings, rem = config.showRemove, drg = config.showDrag, + upl = config.showUpload, zoom = config.showZoom, out, params, + template = self._getLayoutTemplate('footer'), tInd = self._getLayoutTemplate('indicator'), + ind = isError ? config.indicatorError : config.indicatorNew, + title = isError ? config.indicatorErrorTitle : config.indicatorNewTitle, + indicator = tInd.setTokens({'indicator': ind, 'indicatorTitle': title}); + size = self._getSize(size); + params = {type: cat, caption: caption, size: size, width: width, progress: '', indicator: indicator}; + if (self.isAjaxUpload) { + params.progress = self._renderThumbProgress(); + params.actions = self._renderFileActions(params, upl, false, rem, zoom, drg, false, false, false); + } else { + params.actions = self._renderFileActions(params, false, false, false, zoom, drg, false, false, false); + } + out = template.setTokens(params); + out = $h.replaceTags(out, self.previewThumbTags); + return out; + }, + _renderFileActions: function ( + cfg, + showUpl, + showDwn, + showDel, + showZoom, + showDrag, + disabled, + url, + key, + isInit, + dUrl, + dFile + ) { + var self = this; + if (!cfg.type && isInit) { + cfg.type = 'image'; + } + if (self.enableResumableUpload) { + showUpl = false; + } else { + if (typeof showUpl === 'function') { + showUpl = showUpl(cfg); + } + } + if (typeof showDwn === 'function') { + showDwn = showDwn(cfg); + } + if (typeof showDel === 'function') { + showDel = showDel(cfg); + } + if (typeof showZoom === 'function') { + showZoom = showZoom(cfg); + } + if (typeof showDrag === 'function') { + showDrag = showDrag(cfg); + } + if (!showUpl && !showDwn && !showDel && !showZoom && !showDrag) { + return ''; + } + var vUrl = url === false ? '' : ' data-url="' + url + '"', btnZoom = '', btnDrag = '', css, + vKey = key === false ? '' : ' data-key="' + key + '"', btnDelete = '', btnUpload = '', btnDownload = '', + template = self._getLayoutTemplate('actions'), config = self.fileActionSettings, + otherButtons = self.otherActionButtons.setTokens({'dataKey': vKey, 'key': key}), + removeClass = disabled ? config.removeClass + ' disabled' : config.removeClass; + if (showDel) { + btnDelete = self._getLayoutTemplate('actionDelete').setTokens({ + 'removeClass': removeClass, + 'removeIcon': config.removeIcon, + 'removeTitle': config.removeTitle, + 'dataUrl': vUrl, + 'dataKey': vKey, + 'key': key + }); + } + if (showUpl) { + btnUpload = self._getLayoutTemplate('actionUpload').setTokens({ + 'uploadClass': config.uploadClass, + 'uploadIcon': config.uploadIcon, + 'uploadTitle': config.uploadTitle + }); + } + if (showDwn) { + btnDownload = self._getLayoutTemplate('actionDownload').setTokens({ + 'downloadClass': config.downloadClass, + 'downloadIcon': config.downloadIcon, + 'downloadTitle': config.downloadTitle, + 'downloadUrl': dUrl || self.initialPreviewDownloadUrl + }); + btnDownload = btnDownload.setTokens({'filename': dFile, 'key': key}); + } + if (showZoom) { + btnZoom = self._getLayoutTemplate('actionZoom').setTokens({ + 'zoomClass': config.zoomClass, + 'zoomIcon': config.zoomIcon, + 'zoomTitle': config.zoomTitle + }); + } + if (showDrag && isInit) { + css = 'drag-handle-init ' + config.dragClass; + btnDrag = self._getLayoutTemplate('actionDrag').setTokens({ + 'dragClass': css, + 'dragTitle': config.dragTitle, + 'dragIcon': config.dragIcon + }); + } + return template.setTokens({ + 'delete': btnDelete, + 'upload': btnUpload, + 'download': btnDownload, + 'zoom': btnZoom, + 'drag': btnDrag, + 'other': otherButtons + }); + }, + _browse: function (e) { + var self = this; + if (e && e.isDefaultPrevented() || !self._raise('filebrowse')) { + return; + } + if (self.isError && !self.isAjaxUpload) { + self.clear(); + } + if (self.focusCaptionOnBrowse) { + self.$captionContainer.focus(); + } + }, + _change: function (e) { + var self = this; + $(document.body).off('focusin.fileinput focusout.fileinput'); + if (self.changeTriggered) { + return; + } + self._setLoading('show'); + var $el = self.$element, isDragDrop = arguments.length > 1, isAjaxUpload = self.isAjaxUpload, + tfiles, files = isDragDrop ? arguments[1] : $el[0].files, ctr = self.fileManager.count(), + total, initCount, len, isSingleUpl = $h.isEmpty($el.attr('multiple')), + maxCount = !isAjaxUpload && isSingleUpl ? 1 : self.maxFileCount, maxTotCount = self.maxTotalFileCount, + inclAll = maxTotCount > 0 && maxTotCount > maxCount, flagSingle = (isSingleUpl && ctr > 0), + throwError = function (mesg, file, previewId, index) { + var p1 = $.extend(true, {}, self._getOutData(null, {}, {}, files), {id: previewId, index: index}), + p2 = {id: previewId, index: index, file: file, files: files}; + self.isPersistentError = true; + self._setLoading('hide'); + return isAjaxUpload ? self._showFileError(mesg, p1) : self._showError(mesg, p2); + }, + maxCountCheck = function (n, m, all) { + var msg = all ? self.msgTotalFilesTooMany : self.msgFilesTooMany; + msg = msg.replace('{m}', m).replace('{n}', n); + self.isError = throwError(msg, null, null, null); + self.$captionContainer.removeClass('icon-visible'); + self._setCaption('', true); + self.$container.removeClass('file-input-new file-input-ajax-new'); + }; + self.reader = null; + self._resetUpload(); + self._hideFileIcon(); + if (self.dropZoneEnabled) { + self.$container.find('.file-drop-zone .' + self.dropZoneTitleClass).remove(); + } + if (!isAjaxUpload) { + if (e.target && e.target.files === undefined) { + files = e.target.value ? [{name: e.target.value.replace(/^.+\\/, '')}] : []; + } else { + files = e.target.files || {}; + } + } + tfiles = files; + if ($h.isEmpty(tfiles) || tfiles.length === 0) { + if (!isAjaxUpload) { + self.clear(); + } + self._raise('fileselectnone'); + return; + } + self._resetErrors(); + len = tfiles.length; + initCount = isAjaxUpload ? (self.fileManager.count() + len) : len; + total = self._getFileCount(initCount, inclAll ? false : undefined); + if (maxCount > 0 && total > maxCount) { + if (!self.autoReplace || len > maxCount) { + maxCountCheck((self.autoReplace && len > maxCount ? len : total), maxCount); + return; + } + if (total > maxCount) { + self._resetPreviewThumbs(isAjaxUpload); + } + } else { + if (inclAll) { + total = self._getFileCount(initCount, true); + if (maxTotCount > 0 && total > maxTotCount) { + if (!self.autoReplace || len > maxCount) { + maxCountCheck((self.autoReplace && len > maxTotCount ? len : total), maxTotCount, true); + return; + } + if (total > maxCount) { + self._resetPreviewThumbs(isAjaxUpload); + } + } + } + if (!isAjaxUpload || flagSingle) { + self._resetPreviewThumbs(false); + if (flagSingle) { + self.clearFileStack(); + } + } else { + if (isAjaxUpload && ctr === 0 && (!self.previewCache.count(true) || self.overwriteInitial)) { + self._resetPreviewThumbs(true); + } + } + } + self.readFiles(tfiles); + self._setLoading('hide'); + }, + _abort: function (params) { + var self = this, data; + if (self.ajaxAborted && typeof self.ajaxAborted === 'object' && self.ajaxAborted.message !== undefined) { + data = $.extend(true, {}, self._getOutData(null), params); + data.abortData = self.ajaxAborted.data || {}; + data.abortMessage = self.ajaxAborted.message; + self._setProgress(101, self.$progress, self.msgCancelled); + self._showFileError(self.ajaxAborted.message, data, 'filecustomerror'); + self.cancel(); + self.unlock(); + return true; + } + return !!self.ajaxAborted; + }, + _resetFileStack: function () { + var self = this, i = 0; + self._getThumbs().each(function () { + var $thumb = $(this), ind = $thumb.attr('data-fileindex'), pid = $thumb.attr('id'); + if (ind === '-1' || ind === -1) { + return; + } + if (!self._getThumbFile($thumb)) { + $thumb.attr({'data-fileindex': i}); + i++; + } else { + $thumb.attr({'data-fileindex': '-1'}); + } + self._getZoom(pid).attr({ + 'data-fileindex': $thumb.attr('data-fileindex') + }); + }); + }, + _isFileSelectionValid: function (cnt) { + var self = this; + cnt = cnt || 0; + if (self.required && !self.getFilesCount()) { + self.$errorContainer.html(''); + self._showFileError(self.msgFileRequired); + return false; + } + if (self.minFileCount > 0 && self._getFileCount(cnt) < self.minFileCount) { + self._noFilesError({}); + return false; + } + return true; + }, + _canPreview: function (file) { + var self = this; + if (!file || !self.showPreview || !self.$preview || !self.$preview.length) { + return false; + } + var name = file.name || '', type = file.type || '', size = (file.size || 0) / self.bytesToKB, + cat = self._parseFileType(type, name), allowedTypes, allowedMimes, allowedExts, skipPreview, + types = self.allowedPreviewTypes, mimes = self.allowedPreviewMimeTypes, + exts = self.allowedPreviewExtensions || [], dTypes = self.disabledPreviewTypes, + dMimes = self.disabledPreviewMimeTypes, dExts = self.disabledPreviewExtensions || [], + maxSize = self.maxFilePreviewSize && parseFloat(self.maxFilePreviewSize) || 0, + expAllExt = new RegExp('\\.(' + exts.join('|') + ')$', 'i'), + expDisExt = new RegExp('\\.(' + dExts.join('|') + ')$', 'i'); + allowedTypes = !types || types.indexOf(cat) !== -1; + allowedMimes = !mimes || mimes.indexOf(type) !== -1; + allowedExts = !exts.length || $h.compare(name, expAllExt); + skipPreview = (dTypes && dTypes.indexOf(cat) !== -1) || (dMimes && dMimes.indexOf(type) !== -1) || + (dExts.length && $h.compare(name, expDisExt)) || (maxSize && !isNaN(maxSize) && size > maxSize); + return !skipPreview && (allowedTypes || allowedMimes || allowedExts); + }, + addToStack: function (file, id) { + this.fileManager.add(file, id); + }, + clearFileStack: function () { + var self = this; + self.fileManager.clear(); + self._initResumableUpload(); + if (self.enableResumableUpload) { + if (self.showPause === null) { + self.showPause = true; + } + if (self.showCancel === null) { + self.showCancel = false; + } + } else { + self.showPause = false; + if (self.showCancel === null) { + self.showCancel = true; + } + } + return self.$element; + }, + getFileStack: function () { + return this.fileManager.stack; + }, + getFileList: function () { + return this.fileManager.list(); + }, + getFilesSize: function () { + return this.fileManager.getTotalSize(); + }, + getFilesCount: function (includeInitial) { + var self = this, len = self.isAjaxUpload ? self.fileManager.count() : self._inputFileCount(); + if (includeInitial) { + len += self.previewCache.count(true); + } + return self._getFileCount(len); + }, + _initCapStatus: function (status) { + var self = this, $cap = self.$caption; + $cap.removeClass('is-valid file-processing'); + if (!status) { + return; + } + if (status === 'processing') { + $cap.addClass('file-processing'); + } else { + $cap.addClass('is-valid'); + } + }, + _setLoading: function (type) { + var self = this; + self.$previewStatus.html(type === 'hide' ? '' : self.msgProcessing); + self.$container.removeClass('file-thumb-loading'); + self._initCapStatus(type === 'hide' ? '' : 'processing'); + if (type !== 'hide') { + if (self.dropZoneEnabled) { + self.$container.find('.file-drop-zone .' + self.dropZoneTitleClass).remove(); + } + self.$container.addClass('file-thumb-loading'); + } + }, + _initFileSelected: function () { + var self = this, $el = self.$element, $body = $(document.body), ev = 'focusin.fileinput focusout.fileinput'; + if ($body.length) { + $body.off(ev).on('focusout.fileinput', function () { + self._setLoading('show'); + }).on('focusin.fileinput', function () { + setTimeout(function () { + if (!$el.val()) { + self._setLoading('hide'); + self._setFileDropZoneTitle(); + } + $body.off(ev); + }, 2500); + }); + } else { + self._setLoading('hide'); + } + }, + readFiles: function (files) { + this.reader = new FileReader(); + var self = this, reader = self.reader, $container = self.$previewContainer, + $status = self.$previewStatus, msgLoading = self.msgLoading, msgProgress = self.msgProgress, + previewInitId = self.previewInitId, numFiles = files.length, settings = self.fileTypeSettings, + readFile, fileTypes = self.allowedFileTypes, typLen = fileTypes ? fileTypes.length : 0, + fileExt = self.allowedFileExtensions, strExt = $h.isEmpty(fileExt) ? '' : fileExt.join(', '), + throwError = function (msg, file, previewId, index, fileId) { + var $thumb, p1 = $.extend(true, {}, self._getOutData(null, {}, {}, files), + {id: previewId, index: index, fileId: fileId}), + p2 = {id: previewId, index: index, fileId: fileId, file: file, files: files}; + self._previewDefault(file, true); + $thumb = self._getFrame(previewId, true); + self._setLoading('hide'); + if (self.isAjaxUpload) { + setTimeout(function () { + readFile(index + 1); + }, self.processDelay); + } else { + self.unlock(); + numFiles = 0; + } + if (self.removeFromPreviewOnError && $thumb.length) { + $thumb.remove(); + } else { + self._initFileActions(); + $thumb.find('.kv-file-upload').remove(); + } + self.isPersistentError = true; + self.isError = self.isAjaxUpload ? self._showFileError(msg, p1) : self._showError(msg, p2); + self._updateFileDetails(numFiles); + }; + self.fileManager.clearImages(); + $.each(files, function (key, file) { + var func = self.fileTypeSettings.image; + if (func && func(file.type)) { + self.fileManager.totalImages++; + } + }); + readFile = function (i) { + var $error = self.$errorContainer, errors, fm = self.fileManager; + if (i >= numFiles) { + self.unlock(); + if (self.duplicateErrors.length) { + errors = '
                                                                                                                                                                                                                                                                                                        • ' + self.duplicateErrors.join('
                                                                                                                                                                                                                                                                                                        • ') + '
                                                                                                                                                                                                                                                                                                        • '; + if ($error.find('ul').length === 0) { + $h.setHtml($error, self.errorCloseButton + '
                                                                                                                                                                                                                                                                                                            ' + errors + '
                                                                                                                                                                                                                                                                                                          '); + } else { + $error.find('ul').append(errors); + } + $error.fadeIn(self.fadeDelay); + self._handler($error.find('.kv-error-close'), 'click', function () { + $error.fadeOut(self.fadeDelay); + }); + self.duplicateErrors = []; + } + if (self.isAjaxUpload) { + self._raise('filebatchselected', [fm.stack]); + if (fm.count() === 0 && !self.isError) { + self.reset(); + } + } else { + self._raise('filebatchselected', [files]); + } + $container.removeClass('file-thumb-loading'); + self._initCapStatus('valid'); + $status.html(''); + return; + } + self.lock(true); + var file = files[i], id = self._getFileId(file), previewId = previewInitId + '-' + id, fSizeKB, j, msg, + fnImage = settings.image, typ, chk, typ1, typ2, + caption = self._getFileName(file, ''), fileSize = (file && file.size || 0) / self.bytesToKB, + fileExtExpr = '', previewData = $h.createObjectURL(file), fileCount = 0, + strTypes = '', fileId, canLoad, fileReaderAborted = false, + func, knownTypes = 0, isImage, txtFlag, processFileLoaded = function () { + var isImageResized = !!fm.loadedImages[id], msg = msgProgress.setTokens({ + 'index': i + 1, + 'files': numFiles, + 'percent': 50, + 'name': caption + }); + setTimeout(function () { + $status.html(msg); + self._updateFileDetails(numFiles); + readFile(i + 1); + }, self.processDelay); + if (self._raise('fileloaded', [file, previewId, id, i, reader]) && self.isAjaxUpload) { + if (!isImageResized) { + fm.add(file); + } + } else { + if (isImageResized) { + fm.removeFile(id); + } + } + }; + if (!file) { + return; + } + fileId = fm.getId(file); + if (typLen > 0) { + for (j = 0; j < typLen; j++) { + typ1 = fileTypes[j]; + typ2 = self.msgFileTypes[typ1] || typ1; + strTypes += j === 0 ? typ2 : ', ' + typ2; + } + } + if (caption === false) { + readFile(i + 1); + return; + } + if (caption.length === 0) { + msg = self.msgInvalidFileName.replace('{name}', $h.htmlEncode($h.getFileName(file), '[unknown]')); + throwError(msg, file, previewId, i, fileId); + return; + } + if (!$h.isEmpty(fileExt)) { + fileExtExpr = new RegExp('\\.(' + fileExt.join('|') + ')$', 'i'); + } + fSizeKB = fileSize.toFixed(2); + if (self.isAjaxUpload && fm.exists(fileId) || self._getFrame(previewId, true).length) { + var p2 = {id: previewId, index: i, fileId: fileId, file: file, files: files}; + msg = self.msgDuplicateFile.setTokens({name: caption, size: fSizeKB}); + if (self.isAjaxUpload) { + self.duplicateErrors.push(msg); + self.isDuplicateError = true; + self._raise('fileduplicateerror', [file, fileId, caption, fSizeKB, previewId, i]); + readFile(i + 1); + self._updateFileDetails(numFiles); + } else { + self._showError(msg, p2); + self.unlock(); + numFiles = 0; + self._clearFileInput(); + self.reset(); + self._updateFileDetails(numFiles); + } + return; + } + if (self.maxFileSize > 0 && fileSize > self.maxFileSize) { + msg = self.msgSizeTooLarge.setTokens({ + 'name': caption, + 'size': fSizeKB, + 'maxSize': self.maxFileSize + }); + throwError(msg, file, previewId, i, fileId); + return; + } + if (self.minFileSize !== null && fileSize <= $h.getNum(self.minFileSize)) { + msg = self.msgSizeTooSmall.setTokens({ + 'name': caption, + 'size': fSizeKB, + 'minSize': self.minFileSize + }); + throwError(msg, file, previewId, i, fileId); + return; + } + if (!$h.isEmpty(fileTypes) && $h.isArray(fileTypes)) { + for (j = 0; j < fileTypes.length; j += 1) { + typ = fileTypes[j]; + func = settings[typ]; + fileCount += !func || (typeof func !== 'function') ? 0 : (func(file.type, + $h.getFileName(file)) ? 1 : 0); + } + if (fileCount === 0) { + msg = self.msgInvalidFileType.setTokens({name: caption, types: strTypes}); + throwError(msg, file, previewId, i, fileId); + return; + } + } + if (fileCount === 0 && !$h.isEmpty(fileExt) && $h.isArray(fileExt) && !$h.isEmpty(fileExtExpr)) { + chk = $h.compare(caption, fileExtExpr); + fileCount += $h.isEmpty(chk) ? 0 : chk.length; + if (fileCount === 0) { + msg = self.msgInvalidFileExtension.setTokens({name: caption, extensions: strExt}); + throwError(msg, file, previewId, i, fileId); + return; + } + } + if (!self._canPreview(file)) { + canLoad = self.isAjaxUpload && self._raise('filebeforeload', [file, i, reader]); + if (self.isAjaxUpload && canLoad) { + fm.add(file); + } + if (self.showPreview && canLoad) { + $container.addClass('file-thumb-loading'); + self._initCapStatus('processing'); + self._previewDefault(file); + self._initFileActions(); + } + setTimeout(function () { + if (canLoad) { + self._updateFileDetails(numFiles); + } + readFile(i + 1); + self._raise('fileloaded', [file, previewId, id, i]); + }, 10); + return; + } + isImage = fnImage(file.type, caption); + $status.html(msgLoading.replace('{index}', i + 1).replace('{files}', numFiles)); + $container.addClass('file-thumb-loading'); + self._initCapStatus('processing'); + reader.onerror = function (evt) { + self._errorHandler(evt, caption); + }; + reader.onload = function (theFile) { + var hex, fileInfo, uint, byte, bytes = [], contents, mime, readImage = function () { + var newReader = new FileReader(); + newReader.onerror = function (theFileNew) { + self._errorHandler(theFileNew, caption); + }; + newReader.onload = function (theFileNew) { + if (self.isAjaxUpload && !self._raise('filebeforeload', [file, i, reader])) { + fileReaderAborted = true; + self._resetCaption(); + reader.abort(); + $status.html(''); + $container.removeClass('file-thumb-loading'); + self._initCapStatus('valid'); + self.enable(); + return; + } + self._previewFile(i, file, theFileNew, previewData, fileInfo); + self._initFileActions(); + processFileLoaded(); + }; + newReader.readAsDataURL(file); + }; + fileInfo = {'name': caption, 'type': file.type}; + $.each(settings, function (k, f) { + if (k !== 'object' && k !== 'other' && typeof f === 'function' && f(file.type, caption)) { + knownTypes++; + } + }); + if (knownTypes === 0) { // auto detect mime types from content if no known file types detected + uint = new Uint8Array(theFile.target.result); + for (j = 0; j < uint.length; j++) { + byte = uint[j].toString(16); + bytes.push(byte); + } + hex = bytes.join('').toLowerCase().substring(0, 8); + mime = $h.getMimeType(hex, '', ''); + if ($h.isEmpty(mime)) { // look for ascii text content + contents = $h.arrayBuffer2String(reader.result); + mime = $h.isSvg(contents) ? 'image/svg+xml' : $h.getMimeType(hex, contents, file.type); + } + fileInfo = {'name': caption, 'type': mime}; + isImage = fnImage(mime, ''); + if (isImage) { + readImage(txtFlag); + return; + } + } + if (self.isAjaxUpload && !self._raise('filebeforeload', [file, i, reader])) { + fileReaderAborted = true; + self._resetCaption(); + reader.abort(); + $status.html(''); + $container.removeClass('file-thumb-loading'); + self._initCapStatus('valid'); + self.enable(); + return; + } + self._previewFile(i, file, theFile, previewData, fileInfo); + self._initFileActions(); + processFileLoaded(); + }; + reader.onprogress = function (data) { + if (data.lengthComputable) { + var fact = (data.loaded / data.total) * 100, progress = Math.ceil(fact); + msg = msgProgress.setTokens({ + 'index': i + 1, + 'files': numFiles, + 'percent': progress, + 'name': caption + }); + setTimeout(function () { + if (!fileReaderAborted) { + $status.html(msg); + } + }, self.processDelay); + } + }; + if (isImage) { + reader.readAsDataURL(file); + } else { + reader.readAsArrayBuffer(file); + } + }; + + readFile(0); + self._updateFileDetails(numFiles); + }, + lock: function (selectMode) { + var self = this, $container = self.$container; + self._resetErrors(); + self.disable(); + if (!selectMode && self.showCancel) { + $container.find('.fileinput-cancel').show(); + } + if (!selectMode && self.showPause) { + $container.find('.fileinput-pause').show(); + } + self._initCapStatus('processing'); + self._raise('filelock', [self.fileManager.stack, self._getExtraData()]); + return self.$element; + }, + unlock: function (reset) { + var self = this, $container = self.$container; + if (reset === undefined) { + reset = true; + } + self.enable(); + $container.removeClass('is-locked'); + if (self.showCancel) { + $container.find('.fileinput-cancel').hide(); + } + if (self.showPause) { + $container.find('.fileinput-pause').hide(); + } + if (reset) { + self._resetFileStack(); + } + self._initCapStatus(); + self._raise('fileunlock', [self.fileManager.stack, self._getExtraData()]); + return self.$element; + }, + resume: function () { + var self = this, fm = self.fileManager, flag = false, rm = self.resumableManager; + fm.bpsLog = []; + fm.bps = 0; + if (!self.enableResumableUpload) { + return self.$element; + } + if (self.paused) { + self._toggleResumableProgress(self.progressPauseTemplate, self.msgUploadResume); + } else { + flag = true; + } + self.paused = false; + if (flag) { + self._toggleResumableProgress(self.progressInfoTemplate, self.msgUploadBegin); + } + setTimeout(function () { + rm.upload(); + }, self.processDelay); + return self.$element; + }, + paste: function (e) { + var self = this, ev = e.originalEvent, files = ev.clipboardData && ev.clipboardData.files || null; + if (files) { + self._dropFiles(e, files); + } + return self.$element; + }, + pause: function () { + var self = this, rm = self.resumableManager, xhr = self.ajaxRequests, len = xhr.length, i, + pct = rm.getProgress(), actions = self.fileActionSettings, tm = self.taskManager, + pool = tm.getPool(rm.id); + if (!self.enableResumableUpload) { + return self.$element; + } else { + if (pool) { + pool.cancel(); + } + } + self._raise('fileuploadpaused', [self.fileManager, rm]); + if (len > 0) { + for (i = 0; i < len; i += 1) { + self.paused = true; + xhr[i].abort(); + } + } + if (self.showPreview) { + self._getThumbs().each(function () { + var $thumb = $(this), t = self._getLayoutTemplate('stats'), stats, + $indicator = $thumb.find('.file-upload-indicator'); + $thumb.removeClass('file-uploading'); + if ($indicator.attr('title') === actions.indicatorLoadingTitle) { + self._setThumbStatus($thumb, 'Paused'); + stats = t.setTokens({pendingTime: self.msgPaused, uploadSpeed: ''}); + self.paused = true; + self._setProgress(pct, $thumb.find('.file-thumb-progress'), pct + '%', stats); + } + if (!self._getThumbFile($thumb)) { + $thumb.find('.kv-file-remove').removeClass('disabled').removeAttr('disabled'); + } + }); + } + self._setProgress(101, self.$progress, self.msgPaused); + return self.$element; + }, + cancel: function () { + var self = this, xhr = self.ajaxRequests, + rm = self.resumableManager, tm = self.taskManager, + pool = rm ? tm.getPool(rm.id) : undefined, len = xhr.length, i; + + if (self.enableResumableUpload && pool) { + pool.cancel().done(function () { + self._setProgressCancelled(); + }); + rm.reset(); + self._raise('fileuploadcancelled', [self.fileManager, rm]); + } else { + self._raise('fileuploadcancelled', [self.fileManager]); + } + self._initAjax(); + if (len > 0) { + for (i = 0; i < len; i += 1) { + self.cancelling = true; + xhr[i].abort(); + } + } + self._getThumbs().each(function () { + var $thumb = $(this), $prog = $thumb.find('.file-thumb-progress'); + $thumb.removeClass('file-uploading'); + self._setProgress(0, $prog); + $prog.hide(); + if (!self._getThumbFile($thumb)) { + $thumb.find('.kv-file-upload').removeClass('disabled').removeAttr('disabled'); + $thumb.find('.kv-file-remove').removeClass('disabled').removeAttr('disabled'); + } + self.unlock(); + }); + setTimeout(function () { + self._setProgressCancelled(); + }, self.processDelay); + return self.$element; + }, + clear: function () { + var self = this, cap; + if (!self._raise('fileclear')) { + return; + } + self.$btnUpload.removeAttr('disabled'); + self._getThumbs().find('video,audio,img').each(function () { + $h.cleanMemory($(this)); + }); + self._clearFileInput(); + self._resetUpload(); + self.clearFileStack(); + self.isDuplicateError = false; + self.isPersistentError = false; + self._resetErrors(true); + if (self._hasInitialPreview()) { + self._showFileIcon(); + self._resetPreview(); + self._initPreviewActions(); + self.$container.removeClass('file-input-new'); + } else { + self._getThumbs().each(function () { + self._clearObjects($(this)); + }); + if (self.isAjaxUpload) { + self.previewCache.data = {}; + } + self.$preview.html(''); + cap = (!self.overwriteInitial && self.initialCaption.length > 0) ? self.initialCaption : ''; + self.$caption.attr('title', '').val(cap); + $h.addCss(self.$container, 'file-input-new'); + self._validateDefaultPreview(); + } + if (self.$container.find($h.FRAMES).length === 0) { + if (!self._initCaption()) { + self.$captionContainer.removeClass('icon-visible'); + } + } + self._hideFileIcon(); + if (self.focusCaptionOnClear) { + self.$captionContainer.focus(); + } + self._setFileDropZoneTitle(); + self._raise('filecleared'); + return self.$element; + }, + reset: function () { + var self = this; + if (!self._raise('filereset')) { + return; + } + self.lastProgress = 0; + self._resetPreview(); + self.$container.find('.fileinput-filename').text(''); + $h.addCss(self.$container, 'file-input-new'); + if (self.getFrames().length) { + self.$container.removeClass('file-input-new'); + } + self.clearFileStack(); + self._setFileDropZoneTitle(); + return self.$element; + }, + disable: function () { + var self = this, $container = self.$container; + self.isDisabled = true; + self._raise('filedisabled'); + self.$element.attr('disabled', 'disabled'); + $container.addClass('is-locked'); + $h.addCss($container.find('.btn-file'), 'disabled'); + $container.find('.kv-fileinput-caption').addClass('file-caption-disabled'); + $container.find('.fileinput-remove, .fileinput-upload, .file-preview-frame button') + .attr('disabled', true); + self._initDragDrop(); + return self.$element; + }, + enable: function () { + var self = this, $container = self.$container; + self.isDisabled = false; + self._raise('fileenabled'); + self.$element.removeAttr('disabled'); + $container.removeClass('is-locked'); + $container.find('.kv-fileinput-caption').removeClass('file-caption-disabled'); + $container.find('.fileinput-remove, .fileinput-upload, .file-preview-frame button') + .removeAttr('disabled'); + $container.find('.btn-file').removeClass('disabled'); + self._initDragDrop(); + return self.$element; + }, + upload: function () { + var self = this, fm = self.fileManager, totLen = fm.count(), i, outData, + hasExtraData = !$.isEmptyObject(self._getExtraData()); + fm.bpsLog = []; + fm.bps = 0; + if (!self.isAjaxUpload || self.isDisabled || !self._isFileSelectionValid(totLen)) { + return; + } + self.lastProgress = 0; + self._resetUpload(); + if (totLen === 0 && !hasExtraData) { + self._showFileError(self.msgUploadEmpty); + return; + } + self.cancelling = false; + self._showProgress(); + self.lock(); + if (totLen === 0 && hasExtraData) { + self._setProgress(2); + self._uploadExtraOnly(); + return; + } + if (self.enableResumableUpload) { + return self.resume(); + } + if (self.uploadAsync || self.enableResumableUpload) { + outData = self._getOutData(null); + if (!self._checkBatchPreupload(outData)) { + return; + } + self.fileBatchCompleted = false; + self.uploadCache = []; + $.each(self.getFileStack(), function (id) { + var previewId = self._getThumbId(id); + self.uploadCache.push({id: previewId, content: null, config: null, tags: null, append: true}); + }); + self.$preview.find('.file-preview-initial').removeClass($h.SORT_CSS); + self._initSortable(); + } + self._setProgress(2); + self.hasInitData = false; + if (self.uploadAsync) { + i = 0; + $.each(self.getFileStack(), function (id) { + self._uploadSingle(i, id, true); + i++; + }); + return; + } + self._uploadBatch(); + return self.$element; + }, + destroy: function () { + var self = this, $form = self.$form, $cont = self.$container, $el = self.$element, ns = self.namespace; + $(document).off(ns); + $(window).off(ns); + if ($form && $form.length) { + $form.off(ns); + } + if (self.isAjaxUpload) { + self._clearFileInput(); + } + self._cleanup(); + self._initPreviewCache(); + $el.insertBefore($cont).off(ns).removeData(); + $cont.off().remove(); + return $el; + }, + refresh: function (options) { + var self = this, $el = self.$element; + if (typeof options !== 'object' || $h.isEmpty(options)) { + options = self.options; + } else { + options = $.extend(true, {}, self.options, options); + } + self._init(options, true); + self._listen(); + return $el; + }, + zoom: function (frameId) { + var self = this, $frame = self._getFrame(frameId); + self._showModal($frame); + }, + getExif: function (frameId) { + var self = this, $frame = self._getFrame(frameId); + return $frame && $frame.data('exif') || null; + }, + getFrames: function (cssFilter) { + var self = this, $frames; + cssFilter = cssFilter || ''; + $frames = self.$preview.find($h.FRAMES + cssFilter); + if (self.reversePreviewOrder) { + $frames = $($frames.get().reverse()); + } + return $frames; + }, + getPreview: function () { + var self = this; + return { + content: self.initialPreview, + config: self.initialPreviewConfig, + tags: self.initialPreviewThumbTags + }; + } + }; + + $.fn.fileinput = function (option) { + if (!$h.hasFileAPISupport() && !$h.isIE(9)) { + return; + } + var args = Array.apply(null, arguments), retvals = []; + args.shift(); + this.each(function () { + var self = $(this), data = self.data('fileinput'), options = typeof option === 'object' && option, + theme = options.theme || self.data('theme'), l = {}, t = {}, + lang = options.language || self.data('language') || $.fn.fileinput.defaults.language || 'en', opt; + if (!data) { + if (theme) { + t = $.fn.fileinputThemes[theme] || {}; + } + if (lang !== 'en' && !$h.isEmpty($.fn.fileinputLocales[lang])) { + l = $.fn.fileinputLocales[lang] || {}; + } + opt = $.extend(true, {}, $.fn.fileinput.defaults, t, $.fn.fileinputLocales.en, l, options, self.data()); + data = new FileInput(this, opt); + self.data('fileinput', data); + } + + if (typeof option === 'string') { + retvals.push(data[option].apply(data, args)); + } + }); + switch (retvals.length) { + case 0: + return this; + case 1: + return retvals[0]; + default: + return retvals; + } + }; + + var IFRAME_ATTRIBS = 'class="kv-preview-data file-preview-pdf" src="{renderer}?file={data}" {style}', + defBtnCss1 = 'btn btn-sm btn-kv ' + $h.defaultButtonCss(), defBtnCss2 = 'btn ' + $h.defaultButtonCss(true); + + $.fn.fileinput.defaults = { + language: 'zh', + bytesToKB: 1024, + showCaption: true, + showBrowse: true, + showPreview: true, + showRemove: true, + showUpload: true, + showUploadStats: true, + showCancel: null, + showPause: null, + showClose: true, + showUploadedThumbs: true, + showConsoleLogs: false, + browseOnZoneClick: false, + autoReplace: false, + showDescriptionClose: true, + autoOrientImage: function () { // applicable for JPEG images only and non ios safari + var ua = window.navigator.userAgent, webkit = !!ua.match(/WebKit/i), + iOS = !!ua.match(/iP(od|ad|hone)/i), iOSSafari = iOS && webkit && !ua.match(/CriOS/i); + return !iOSSafari; + }, + autoOrientImageInitial: true, + required: false, + rtl: false, + hideThumbnailContent: false, + encodeUrl: true, + focusCaptionOnBrowse: true, + focusCaptionOnClear: true, + generateFileId: null, + previewClass: '', + captionClass: '', + frameClass: 'krajee-default', + mainClass: '', + inputGroupClass: '', + mainTemplate: null, + fileSizeGetter: null, + initialCaption: '', + initialPreview: [], + initialPreviewDelimiter: '*$$*', + initialPreviewAsData: false, + initialPreviewFileType: 'image', + initialPreviewConfig: [], + initialPreviewThumbTags: [], + previewThumbTags: {}, + initialPreviewShowDelete: true, + initialPreviewDownloadUrl: '', + removeFromPreviewOnError: false, + deleteUrl: '', + deleteExtraData: {}, + overwriteInitial: true, + sanitizeZoomCache: function (content) { + var $container = $h.createElement(content); + $container.find('input,textarea,select,datalist,form,.file-thumbnail-footer').remove(); + return $container.html(); + }, + previewZoomButtonIcons: { + prev: '', + next: '', + toggleheader: '', + fullscreen: '', + borderless: '', + close: '' + }, + previewZoomButtonClasses: { + prev: 'btn btn-default btn-outline-secondary btn-navigate', + next: 'btn btn-default btn-outline-secondary btn-navigate', + toggleheader: defBtnCss1, + fullscreen: defBtnCss1, + borderless: defBtnCss1, + close: defBtnCss1 + }, + previewTemplates: {}, + previewContentTemplates: {}, + preferIconicPreview: false, + preferIconicZoomPreview: false, + allowedFileTypes: null, + allowedFileExtensions: null, + allowedPreviewTypes: undefined, + allowedPreviewMimeTypes: null, + allowedPreviewExtensions: null, + disabledPreviewTypes: undefined, + disabledPreviewExtensions: ['msi', 'exe', 'com', 'zip', 'rar', 'app', 'vb', 'scr'], + disabledPreviewMimeTypes: null, + defaultPreviewContent: null, + customLayoutTags: {}, + customPreviewTags: {}, + previewFileIcon: '', + previewFileIconClass: 'file-other-icon', + previewFileIconSettings: {}, + previewFileExtSettings: {}, + buttonLabelClass: 'hidden-xs', + browseIcon: ' ', + browseClass: 'btn btn-primary', + removeIcon: '', + removeClass: defBtnCss2, + cancelIcon: '', + cancelClass: defBtnCss2, + pauseIcon: '', + pauseClass: defBtnCss2, + uploadIcon: '', + uploadClass: defBtnCss2, + uploadUrl: null, + uploadUrlThumb: null, + uploadAsync: true, + uploadParamNames: { + chunkCount: 'chunkCount', + chunkIndex: 'chunkIndex', + chunkSize: 'chunkSize', + chunkSizeStart: 'chunkSizeStart', + chunksUploaded: 'chunksUploaded', + fileBlob: 'fileBlob', + fileId: 'fileId', + fileName: 'fileName', + fileRelativePath: 'fileRelativePath', + fileSize: 'fileSize', + retryCount: 'retryCount' + }, + maxAjaxThreads: 5, + fadeDelay: 800, + processDelay: 100, + bitrateUpdateDelay: 500, + queueDelay: 10, // must be lesser than process delay + progressDelay: 0, // must be lesser than process delay + enableResumableUpload: false, + resumableUploadOptions: { + fallback: null, + testUrl: null, // used for checking status of chunks/ files previously / partially uploaded + chunkSize: 2048, // in KB + maxThreads: 4, + maxRetries: 3, + showErrorLog: true, + retainErrorHistory: true, // display complete error history always unless user explicitly resets upload + skipErrorsAndProceed: false // when set to true, files with errors will be skipped and upload will continue with other files + }, + uploadExtraData: {}, + zoomModalHeight: 480, + minImageWidth: null, + minImageHeight: null, + maxImageWidth: null, + maxImageHeight: null, + resizeImage: false, + resizePreference: 'width', + resizeQuality: 0.92, + resizeDefaultImageType: 'image/jpeg', + resizeIfSizeMoreThan: 0, // in KB + minFileSize: -1, + maxFileSize: 0, + maxFilePreviewSize: 25600, // 25 MB + minFileCount: 0, + maxFileCount: 0, + maxTotalFileCount: 0, + validateInitialCount: false, + msgValidationErrorClass: 'text-danger', + msgValidationErrorIcon: ' ', + msgErrorClass: 'file-error-message', + progressThumbClass: 'progress-bar progress-bar-striped active progress-bar-animated', + progressClass: 'progress-bar bg-success progress-bar-success progress-bar-striped active progress-bar-animated', + progressInfoClass: 'progress-bar bg-info progress-bar-info progress-bar-striped active progress-bar-animated', + progressCompleteClass: 'progress-bar bg-success progress-bar-success', + progressPauseClass: 'progress-bar bg-primary progress-bar-primary progress-bar-striped active progress-bar-animated', + progressErrorClass: 'progress-bar bg-danger progress-bar-danger', + progressUploadThreshold: 99, + previewFileType: 'image', + elCaptionContainer: null, + elCaptionText: null, + elPreviewContainer: null, + elPreviewImage: null, + elPreviewStatus: null, + elErrorContainer: null, + errorCloseButton: undefined, + slugCallback: null, + dropZoneEnabled: true, + dropZoneTitleClass: 'file-drop-zone-title', + fileActionSettings: {}, + otherActionButtons: '', + textEncoding: 'UTF-8', + preProcessUpload: null, + ajaxSettings: {}, + ajaxDeleteSettings: {}, + showAjaxErrorDetails: true, + mergeAjaxCallbacks: false, + mergeAjaxDeleteCallbacks: false, + retryErrorUploads: true, + reversePreviewOrder: false, + usePdfRenderer: function () { + var isIE11 = !!window.MSInputMethodContext && !!document.documentMode; + return !!navigator.userAgent.match(/(iPod|iPhone|iPad|Android)/i) || isIE11; + }, + pdfRendererUrl: '', + pdfRendererTemplate: '', + tabIndexConfig: { + browse: 500, + remove: 500, + upload: 500, + cancel: null, + pause: null, + modal: -1 + } + }; + + // noinspection HtmlUnknownAttribute + $.fn.fileinputLocales.en = { + sizeUnits: ['B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'], + bitRateUnits: ['B/s', 'KB/s', 'MB/s', 'GB/s', 'TB/s', 'PB/s', 'EB/s', 'ZB/s', 'YB/s'], + fileSingle: 'file', + filePlural: 'files', + browseLabel: 'Browse …', + removeLabel: 'Remove', + removeTitle: 'Clear all unprocessed files', + cancelLabel: 'Cancel', + cancelTitle: 'Abort ongoing upload', + pauseLabel: 'Pause', + pauseTitle: 'Pause ongoing upload', + uploadLabel: 'Upload', + uploadTitle: 'Upload selected files', + msgNo: 'No', + msgNoFilesSelected: 'No files selected', + msgCancelled: 'Cancelled', + msgPaused: 'Paused', + msgPlaceholder: 'Select {files} ...', + msgZoomModalHeading: 'Detailed Preview', + msgFileRequired: 'You must select a file to upload.', + msgSizeTooSmall: 'File "{name}" ({size} KB) is too small and must be larger than {minSize} KB.', + msgSizeTooLarge: 'File "{name}" ({size} KB) exceeds maximum allowed upload size of {maxSize} KB.', + msgFilesTooLess: 'You must select at least {n} {files} to upload.', + msgFilesTooMany: 'Number of files selected for upload ({n}) exceeds maximum allowed limit of {m}.', + msgTotalFilesTooMany: 'You can upload a maximum of {m} files ({n} files detected).', + msgFileNotFound: 'File "{name}" not found!', + msgFileSecured: 'Security restrictions prevent reading the file "{name}".', + msgFileNotReadable: 'File "{name}" is not readable.', + msgFilePreviewAborted: 'File preview aborted for "{name}".', + msgFilePreviewError: 'An error occurred while reading the file "{name}".', + msgInvalidFileName: 'Invalid or unsupported characters in file name "{name}".', + msgInvalidFileType: 'Invalid type for file "{name}". Only "{types}" files are supported.', + msgInvalidFileExtension: 'Invalid extension for file "{name}". Only "{extensions}" files are supported.', + msgFileTypes: { + 'image': 'image', + 'html': 'HTML', + 'text': 'text', + 'video': 'video', + 'audio': 'audio', + 'flash': 'flash', + 'pdf': 'PDF', + 'object': 'object' + }, + msgUploadAborted: 'The file upload was aborted', + msgUploadThreshold: 'Processing …', + msgUploadBegin: 'Initializing …', + msgUploadEnd: 'Done', + msgUploadResume: 'Resuming upload …', + msgUploadEmpty: 'No valid data available for upload.', + msgUploadError: 'Upload Error', + msgDeleteError: 'Delete Error', + msgProgressError: 'Error', + msgValidationError: 'Validation Error', + msgLoading: 'Loading file {index} of {files} …', + msgProgress: 'Loading file {index} of {files} - {name} - {percent}% completed.', + msgSelected: '{n} {files} selected', + msgProcessing: 'Processing ...', + msgFoldersNotAllowed: 'Drag & drop files only! {n} folder(s) dropped were skipped.', + msgImageWidthSmall: 'Width of image file "{name}" must be at least {size} px.', + msgImageHeightSmall: 'Height of image file "{name}" must be at least {size} px.', + msgImageWidthLarge: 'Width of image file "{name}" cannot exceed {size} px.', + msgImageHeightLarge: 'Height of image file "{name}" cannot exceed {size} px.', + msgImageResizeError: 'Could not get the image dimensions to resize.', + msgImageResizeException: 'Error while resizing the image.
                                                                                                                                                                                                                                                                                                          {errors}
                                                                                                                                                                                                                                                                                                          ', + msgAjaxError: 'Something went wrong with the {operation} operation. Please try again later!', + msgAjaxProgressError: '{operation} failed', + msgDuplicateFile: 'File "{name}" of same size "{size} KB" has already been selected earlier. Skipping duplicate selection.', + msgResumableUploadRetriesExceeded: 'Upload aborted beyond {max} retries for file {file}! Error Details:
                                                                                                                                                                                                                                                                                                          {error}
                                                                                                                                                                                                                                                                                                          ', + msgPendingTime: '{time} remaining', + msgCalculatingTime: 'calculating time remaining', + ajaxOperations: { + deleteThumb: 'file delete', + uploadThumb: 'file upload', + uploadBatch: 'batch file upload', + uploadExtra: 'form data upload' + }, + dropZoneTitle: 'Drag & drop files here …', + dropZoneClickTitle: '
                                                                                                                                                                                                                                                                                                          (or click to select {files})', + previewZoomButtonTitles: { + prev: 'View previous file', + next: 'View next file', + toggleheader: 'Toggle header', + fullscreen: 'Toggle full screen', + borderless: 'Toggle borderless mode', + close: 'Close detailed preview' + } + }; + + $.fn.fileinputLocales.zh = { + sizeUnits: ['B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'], + bitRateUnits: ['B/s', 'KB/s', 'MB/s', 'GB/s', 'TB/s', 'PB/s', 'EB/s', 'ZB/s', 'YB/s'], + fileSingle: '文件', + filePlural: '个文件', + browseLabel: '选择 …', + removeLabel: '移除', + removeTitle: '清除选中文件', + cancelLabel: '取消', + cancelTitle: '取消进行中的上传', + pauseLabel: '暂停', + pauseTitle: '暂停上传', + uploadLabel: '上传', + uploadTitle: '上传选中文件', + msgNo: '没有', + msgNoFilesSelected: '未选择文件', + msgPaused: '已暂停', + msgCancelled: '取消', + msgPlaceholder: '选择 {files} ...', + msgZoomModalHeading: '详细预览', + msgFileRequired: '必须选择一个文件上传.', + msgSizeTooSmall: '文件 "{name}" ({size} KB) 必须大于限定大小 {minSize} KB.', + msgSizeTooLarge: '文件 "{name}" ({size} KB) 超过了允许大小 {maxSize} KB.', + msgFilesTooLess: '你必须选择最少 {n} {files} 来上传. ', + msgFilesTooMany: '选择的上传文件个数 ({n}) 超出最大文件的限制个数 {m}.', + msgTotalFilesTooMany: '你最多可以上传 {m} 个文件 (当前有{n} 个文件).', + msgFileNotFound: '文件 "{name}" 未找到!', + msgFileSecured: '安全限制,为了防止读取文件 "{name}".', + msgFileNotReadable: '文件 "{name}" 不可读.', + msgFilePreviewAborted: '取消 "{name}" 的预览.', + msgFilePreviewError: '读取 "{name}" 时出现了一个错误.', + msgInvalidFileName: '文件名 "{name}" 包含非法字符.', + msgInvalidFileType: '不正确的类型 "{name}". 只支持 "{types}" 类型的文件.', + msgInvalidFileExtension: '不正确的文件扩展名 "{name}". 只支持 "{extensions}" 的文件扩展名.', + msgFileTypes: { + 'image': 'image', + 'html': 'HTML', + 'text': 'text', + 'video': 'video', + 'audio': 'audio', + 'flash': 'flash', + 'pdf': 'PDF', + 'object': 'object' + }, + msgUploadAborted: '该文件上传被中止', + msgUploadThreshold: '处理中 …', + msgUploadBegin: '正在初始化 …', + msgUploadEnd: '完成', + msgUploadResume: '继续上传 …', + msgUploadEmpty: '无效的文件上传.', + msgUploadError: '上传出错', + msgDeleteError: '删除出错', + msgProgressError: '上传出错', + msgValidationError: '验证错误', + msgLoading: '加载第 {index} 文件 共 {files} …', + msgProgress: '加载第 {index} 文件 共 {files} - {name} - {percent}% 完成.', + msgSelected: '{n} {files} 选中', + msgProcessing: '处理中 ...', + msgFoldersNotAllowed: '只支持拖拽文件! 跳过 {n} 拖拽的文件夹.', + msgImageWidthSmall: '图像文件的"{name}"的宽度必须是至少{size}像素.', + msgImageHeightSmall: '图像文件的"{name}"的高度必须至少为{size}像素.', + msgImageWidthLarge: '图像文件"{name}"的宽度不能超过{size}像素.', + msgImageHeightLarge: '图像文件"{name}"的高度不能超过{size}像素.', + msgImageResizeError: '无法获取的图像尺寸调整。', + msgImageResizeException: '调整图像大小时发生错误。
                                                                                                                                                                                                                                                                                                          {errors}
                                                                                                                                                                                                                                                                                                          ', + msgAjaxError: '{operation} 发生错误. 请重试!', + msgAjaxProgressError: '{operation} 失败', + msgDuplicateFile: '文件 "{name}",大小 "{size} KB" 已经被选中.忽略相同的文件.', + msgResumableUploadRetriesExceeded: '文件 {file} 上传失败超过 {max} 次重试 ! 错误详情:
                                                                                                                                                                                                                                                                                                          {error}
                                                                                                                                                                                                                                                                                                          ', + msgPendingTime: '{time} 剩余', + msgCalculatingTime: '计算剩余时间', + ajaxOperations: { + deleteThumb: '删除文件', + uploadThumb: '上传文件', + uploadBatch: '批量上传', + uploadExtra: '表单数据上传' + }, + dropZoneTitle: '拖拽文件到这里 …
                                                                                                                                                                                                                                                                                                          支持多文件同时上传', + dropZoneClickTitle: '
                                                                                                                                                                                                                                                                                                          (或点击{files}按钮选择文件)', + fileActionSettings: { + removeTitle: '删除文件', + uploadTitle: '上传文件', + downloadTitle: '下载文件', + uploadRetryTitle: '重试', + zoomTitle: '查看详情', + dragTitle: '移动 / 重置', + indicatorNewTitle: '没有上传', + indicatorSuccessTitle: '上传', + indicatorErrorTitle: '上传错误', + indicatorPausedTitle: '上传已暂停', + indicatorLoadingTitle: '上传 …' + }, + previewZoomButtonTitles: { + prev: '预览上一个文件', + next: '预览下一个文件', + toggleheader: '缩放', + fullscreen: '全屏', + borderless: '无边界模式', + close: '关闭当前预览' + } + }; + + $.fn.fileinput.Constructor = FileInput; + + /** + * Convert automatically file inputs with class 'file' into a bootstrap fileinput control. + */ + $(document).ready(function () { + var $input = $('input.file[type=file]'); + if ($input.length) { + $input.fileinput(); + } + }); +})); diff --git a/alive-admin/target/classes/static/ajax/libs/bootstrap-fileinput/fileinput.min.css b/alive-admin/target/classes/static/ajax/libs/bootstrap-fileinput/fileinput.min.css new file mode 100644 index 0000000..8865aec --- /dev/null +++ b/alive-admin/target/classes/static/ajax/libs/bootstrap-fileinput/fileinput.min.css @@ -0,0 +1,12 @@ +/*! + * bootstrap-fileinput v5.2.4 + * http://plugins.krajee.com/file-input + * + * Krajee default styling for bootstrap-fileinput. + * + * Author: Kartik Visweswaran + * Copyright: 2014 - 2021, Kartik Visweswaran, Krajee.com + * + * Licensed under the BSD-3-Clause + * https://github.com/kartik-v/bootstrap-fileinput/blob/master/LICENSE.md + */.btn-file input[type=file],.file-caption-icon,.file-no-browse,.file-preview .fileinput-remove,.file-zoom-dialog .btn-navigate,.file-zoom-dialog .floating-buttons,.krajee-default .file-thumb-progress{position:absolute}.file-loading input[type=file],input[type=file].file-loading{width:0;height:0}.file-no-browse{left:50%;bottom:20%;width:1px;height:1px;font-size:0;opacity:0;border:none;background:0 0;outline:0;box-shadow:none}.file-caption-icon,.file-input-ajax-new .fileinput-remove-button,.file-input-ajax-new .fileinput-upload-button,.file-input-ajax-new .no-browse .input-group-btn,.file-input-new .close,.file-input-new .file-preview,.file-input-new .fileinput-remove-button,.file-input-new .fileinput-upload-button,.file-input-new .glyphicon-file,.file-input-new .no-browse .input-group-btn,.file-zoom-dialog .modal-header:after,.file-zoom-dialog .modal-header:before,.hide-content .kv-file-content,.is-locked .fileinput-remove-button,.is-locked .fileinput-upload-button,.kv-hidden{display:none}.file-caption-icon .kv-caption-icon{line-height:inherit}.btn-file,.file-caption,.file-input,.file-loading:before,.file-preview,.file-zoom-dialog .modal-dialog,.krajee-default .file-thumbnail-footer,.krajee-default.file-preview-frame{position:relative}.file-error-message pre,.file-error-message ul,.krajee-default .file-actions,.krajee-default .file-other-error{text-align:left}.file-error-message pre,.file-error-message ul{margin:0}.krajee-default .file-drag-handle,.krajee-default .file-upload-indicator{float:left;margin-top:10px;width:16px;height:16px}.file-thumb-progress .progress,.file-thumb-progress .progress-bar{font-family:Verdana,Helvetica,sans-serif;font-size:.7rem}.krajee-default .file-thumb-progress .progress,.kv-upload-progress .progress{background-color:#ccc}.krajee-default .file-caption-info,.krajee-default .file-size-info{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:160px;height:15px;margin:auto}.file-zoom-content>.file-object.type-flash,.file-zoom-content>.file-object.type-image,.file-zoom-content>.file-object.type-video{max-width:100%;max-height:100%;width:auto}.file-zoom-content>.file-object.type-flash,.file-zoom-content>.file-object.type-video{height:100%}.file-zoom-content>.file-object.type-default,.file-zoom-content>.file-object.type-html,.file-zoom-content>.file-object.type-pdf,.file-zoom-content>.file-object.type-text{width:100%}.file-loading:before{content:" Loading...";display:inline-block;padding-left:20px;line-height:16px;font-size:13px;font-variant:small-caps;color:#999;background:url(loading.gif) top left no-repeat}.file-object{margin:0 0 -5px;padding:0}.btn-file{overflow:hidden}.btn-file input[type=file]{top:0;left:0;min-width:100%;min-height:100%;text-align:right;opacity:0;background:none;cursor:inherit;display:block}.btn-file ::-ms-browse{font-size:10000px;width:100%;height:100%}.file-caption.icon-visible .file-caption-icon{display:inline-block}.file-caption.icon-visible .file-caption-name{padding-left:25px;}.file-caption.icon-visible>.input-group-lg .file-caption-name{padding-left:30px;}.file-caption.icon-visible>.input-group-sm .file-caption-name{padding-left:22px;}.file-caption-name:not(.file-caption-disabled){background-color:transparent}.file-caption-name.file-processing{font-style:italic;border-color:#bbb;opacity:.5}.file-caption-icon{padding:7px 5px;left:4px}.input-group-lg .file-caption-icon{font-size:1.25rem}.input-group-sm .file-caption-icon{font-size:.875rem;padding:.25rem}.file-error-message{color:#a94442;background-color:#f2dede;margin:5px;border:1px solid #ebccd1;border-radius:4px;padding:15px}.file-error-message pre{margin:5px 0}.file-caption-disabled{background-color:#eee;cursor:not-allowed;opacity:1}.file-preview{border-radius:5px;border:1px solid #ddd;padding:8px;width:100%;margin-bottom:5px}.file-preview .btn-xs{padding:1px 5px;font-size:12px;line-height:1.5;border-radius:3px}.file-preview .fileinput-remove{top:1px;right:1px;line-height:10px}.file-preview .clickable{cursor:pointer}.file-preview-image{font:40px Impact,Charcoal,sans-serif;color:green;width:auto;height:auto;max-width:100%;max-height:100%}.krajee-default.file-preview-frame{margin:8px;border:1px solid rgba(0,0,0,.2);box-shadow:0 0 10px 0 rgba(0,0,0,.2);padding:6px;float:left;text-align:center}.krajee-default.file-preview-frame .kv-file-content{width:213px;height:160px}.krajee-default .file-preview-other-frame{display:flex;align-items:center;justify-content:center}.krajee-default.file-preview-frame .kv-file-content.kv-pdf-rendered{width:400px}.krajee-default.file-preview-frame[data-template=audio] .kv-file-content{width:240px;height:55px}.krajee-default.file-preview-frame .file-thumbnail-footer{height:70px}.krajee-default.file-preview-frame:not(.file-preview-error):hover{border:1px solid rgba(0,0,0,.3);box-shadow:0 0 10px 0 rgba(0,0,0,.4)}.krajee-default .file-preview-text{color:#428bca;border:1px solid #ddd;outline:0;resize:none}.krajee-default .file-preview-html{border:1px solid #ddd}.krajee-default .file-other-icon{font-size:6em;line-height:1}.krajee-default .file-footer-buttons{float:right}.krajee-default .file-footer-caption{display:block;text-align:center;padding-top:4px;font-size:11px;color:#777;margin-bottom:30px}.file-upload-stats{font-size:10px;text-align:center;width:100%}.kv-upload-progress .file-upload-stats{font-size:12px;margin:-10px 0 5px}.krajee-default .file-preview-error{opacity:.65;box-shadow:none}.krajee-default .file-thumb-progress{top:37px;left:0;right:0}.krajee-default.kvsortable-ghost{background:#e1edf7;border:2px solid #a1abff}.krajee-default .file-preview-other:hover{opacity:.8}.krajee-default .file-preview-frame:not(.file-preview-error) .file-footer-caption:hover{color:#000}.kv-upload-progress .progress{height:20px;margin:10px 0;overflow:hidden}.kv-upload-progress .progress-bar{height:20px;font-family:Verdana,Helvetica,sans-serif}.file-zoom-dialog .file-other-icon{font-size:22em;font-size:50vmin}.file-zoom-dialog .modal-dialog{width:auto}.file-zoom-dialog .modal-header{display:flex;align-items:center;justify-content:space-between}.file-zoom-dialog .btn-navigate{margin:0 .1rem;padding:0;font-size:1.2rem;width:2.4rem;height:2.4rem;top:50%;border-radius:50%;text-align:center}.btn-navigate *{width:auto}.file-zoom-dialog .floating-buttons{top:5px;right:10px}.file-zoom-dialog .btn-kv-prev{left:0}.file-zoom-dialog .btn-kv-next{right:0}.file-zoom-dialog .kv-zoom-caption{max-width:50%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.file-zoom-dialog .kv-zoom-header{padding:.5rem}.file-zoom-dialog .kv-zoom-body{padding:.25rem .5rem .25rem 0}.file-zoom-dialog .kv-zoom-description{position:absolute;opacity:.8;font-size:.8rem;background-color:#1a1a1a;padding:1rem;text-align:center;border-radius:.5rem;color:#fff;left:15%;right:15%;bottom:15%}.file-zoom-dialog .kv-desc-hide{float:right;color:#fff;padding:0 .1rem;background:0 0;border:none}.file-zoom-dialog .kv-desc-hide:hover{opacity:.7}.file-zoom-dialog .kv-desc-hide:focus{opacity:.9}.file-input-ajax-new .no-browse .form-control,.file-input-new .no-browse .form-control{border-top-right-radius:4px;border-bottom-right-radius:4px}.file-caption{width:100%;position:relative}.file-thumb-loading{background:url(loading.gif) center center no-repeat content-box!important}.file-drop-zone{border:1px dashed #aaa;min-height:260px;border-radius:4px;text-align:center;vertical-align:middle;margin:12px 15px 12px 12px;padding:5px}.file-drop-zone.clickable:hover{border:2px dashed #999}.file-drop-zone.clickable:focus{border:2px solid #5acde2}.file-drop-zone .file-preview-thumbnails{cursor:default}.file-drop-zone-title{color:#aaa;font-size:1.6em;text-align:center;padding:85px 10px;cursor:default}.file-highlighted{border:2px dashed #999!important;background-color:#eee}.file-uploading{background:url(loading-sm.gif) center bottom 10px no-repeat;opacity:.65}.file-zoom-fullscreen .modal-dialog{min-width:100%;margin:0}.file-zoom-fullscreen .modal-content{border-radius:0;box-shadow:none;min-height:100vh}.file-zoom-fullscreen .kv-zoom-body{overflow-y:auto}.floating-buttons{z-index:3000}.floating-buttons .btn-kv{margin-left:3px;z-index:3000}.kv-zoom-actions .btn-kv{margin-left:3px}.file-zoom-content{text-align:center;white-space:nowrap;min-height:300px}.file-zoom-content:hover{background:0 0}.file-zoom-content>*{display:inline-block;vertical-align:middle}.file-zoom-content .kv-spacer{height:100%}.file-zoom-content .file-preview-image,.file-zoom-content .file-preview-video{max-height:100%}.file-zoom-content>.file-object.type-image{height:auto;min-height:inherit}.file-zoom-content>.file-object.type-audio{width:auto;height:30px}@media (min-width:576px){.file-zoom-dialog .modal-dialog{max-width:500px}}@media (min-width:992px){.file-zoom-dialog .modal-lg{max-width:800px}}@media (max-width:767px){.file-preview-thumbnails{display:flex;justify-content:center;align-items:center;flex-direction:column}.file-zoom-dialog .modal-header{flex-direction:column}}@media (max-width:350px){.krajee-default.file-preview-frame:not([data-template=audio]) .kv-file-content{width:160px}}@media (max-width:420px){.krajee-default.file-preview-frame .kv-file-content.kv-pdf-rendered{width:100%}}.file-loading[dir=rtl]:before{background:url(loading.gif) top right no-repeat;padding-left:0;padding-right:20px}.clickable .file-drop-zone-title{cursor:pointer}.file-sortable .file-drag-handle:hover{opacity:.7}.file-sortable .file-drag-handle{cursor:grab;opacity:1}.file-grabbing,.file-grabbing *{cursor:not-allowed!important}.file-grabbing .file-preview-thumbnails *{cursor:grabbing!important}.file-preview-frame.sortable-chosen{background-color:#d9edf7;border-color:#17a2b8;box-shadow:none!important}.file-preview .kv-zoom-cache{display:none} \ No newline at end of file diff --git a/alive-admin/target/classes/static/ajax/libs/bootstrap-fileinput/fileinput.min.js b/alive-admin/target/classes/static/ajax/libs/bootstrap-fileinput/fileinput.min.js new file mode 100644 index 0000000..c6c1d2d --- /dev/null +++ b/alive-admin/target/classes/static/ajax/libs/bootstrap-fileinput/fileinput.min.js @@ -0,0 +1,11 @@ +/*! + * bootstrap-fileinput v5.2.4 + * http://plugins.krajee.com/file-input + * + * Author: Kartik Visweswaran + * Copyright: 2014 - 2021, Kartik Visweswaran, Krajee.com + * + * Licensed under the BSD-3-Clause + * https://github.com/kartik-v/bootstrap-fileinput/blob/master/LICENSE.md + */ +!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&module.exports?module.exports=e(require("jquery")):e(window.jQuery)}(function(L){"use strict";L.fn.fileinputLocales={},L.fn.fileinputThemes={},L.fn.fileinputBsVersion||(L.fn.fileinputBsVersion=window.Alert&&window.Alert.VERSION||window.bootstrap&&window.bootstrap.Alert&&bootstrap.Alert.VERSION||"3.x.x"),String.prototype.setTokens=function(e){var t,i,a=this.toString();for(t in e)e.hasOwnProperty(t)&&(i=new RegExp("{"+t+"}","g"),a=a.replace(i,e[t]));return a},Array.prototype.flatMap||(Array.prototype.flatMap=function(e){return[].concat(this.map(e))}),document.currentScript||(document.currentScript=(i=document.getElementsByTagName("script"))[i.length-1]);var e,N={FRAMES:".kv-preview-thumb",SORT_CSS:"file-sortable",INIT_FLAG:"init-",ZOOM_VAR:(e=document.currentScript.src).substring(0,e.lastIndexOf("/"))+"/loading.gif?kvTemp__2873389129__=",OBJECT_PARAMS:'\n\n\n\n\n\n',DEFAULT_PREVIEW:'
                                                                                                                                                                                                                                                                                                          \n{previewFileIcon}\n
                                                                                                                                                                                                                                                                                                          ',MODAL_ID:"kvFileinputModal",MODAL_EVENTS:["show","shown","hide","hidden","loaded"],logMessages:{ajaxError:"{status}: {error}. Error Details: {text}.",badDroppedFiles:"Error scanning dropped files!",badExifParser:"Error loading the piexif.js library. {details}",badInputType:'The input "type" must be set to "file" for initializing the "bootstrap-fileinput" plugin.',exifWarning:'To avoid this warning, either set "autoOrientImage" to "false" OR ensure you have loaded the "piexif.js" library correctly on your page before the "fileinput.js" script.',invalidChunkSize:'Invalid upload chunk size: "{chunkSize}". Resumable uploads are disabled.',invalidThumb:'Invalid thumb frame with id: "{id}".',noResumableSupport:"The browser does not support resumable or chunk uploads.",noUploadUrl:'The "uploadUrl" is not set. Ajax uploads and resumable uploads have been disabled.',retryStatus:"Retrying upload for chunk # {chunk} for {filename}... retry # {retry}.",chunkQueueError:"Could not push task to ajax pool for chunk index # {index}.",resumableMaxRetriesReached:"Maximum resumable ajax retries ({n}) reached.",resumableRetryError:"Could not retry the resumable request (try # {n})... aborting.",resumableAborting:"Aborting / cancelling the resumable request.",resumableRequestError:"Error processing resumable request. {msg}"},objUrl:window.URL||window.webkitURL,isBs:function(e){var t=L.trim((L.fn.fileinputBsVersion||"")+"");return e=parseInt(e,10),t?e===parseInt(t.charAt(0),10):4===e},defaultButtonCss:function(e){return"btn-default btn-"+(e?"":"outline-")+"secondary"},now:function(){return(new Date).getTime()},round:function(e){return e=parseFloat(e),isNaN(e)?0:Math.floor(Math.round(e))},getArray:function(e){for(var t=[],i=e&&e.length||0,a=0;a >4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:n+=String.fromCharCode(t);break;case 12:case 13:i=r[o++],n+=String.fromCharCode((31&t)<<6|63&i);break;case 14:i=r[o++],a=r[o++],n+=String.fromCharCode((15&t)<<12|(63&i)<<6|(63&a)<<0)}return n},isHtml:function(e){var t=document.createElement("div");t.innerHTML=e;for(var i=t.childNodes,a=i.length;a--;)if(1===i[a].nodeType)return!0;return!1},isSvg:function(e){return e.match(/^\s*<\?xml/i)&&(e.match(/"+e+""))},uniqId:function(){return((new Date).getTime()+Math.floor(Math.random()*Math.pow(10,15))).toString(36)},cspBuffer:{CSP_ATTRIB:"data-csp-01928735",domElementsStyles:{},stash:function(e){var n=this,t=L.parseHTML("
                                                                                                                                                                                                                                                                                                          "+e+"
                                                                                                                                                                                                                                                                                                          "),e=L(t);return e.find("[style]").each(function(e,t){var i=L(t),a=i[0].style,t=N.uniqId(),r={};a&&a.length&&(L(a).each(function(){r[this]=a[this]}),n.domElementsStyles[t]=r,i.removeAttr("style").attr(n.CSP_ATTRIB,t))}),e.filter("*").removeAttr("style"),(Object.values?Object.values(t):Object.keys(t).map(function(e){return t[e]})).flatMap(function(e){return e.innerHTML}).join("")},apply:function(e){var a=this;L(e).find("["+a.CSP_ATTRIB+"]").each(function(e,t){var i=L(t),t=i.attr(a.CSP_ATTRIB),t=a.domElementsStyles[t];t&&i.css(t),i.removeAttr(a.CSP_ATTRIB)}),a.domElementsStyles={}}},setHtml:function(e,t){var i=N.cspBuffer;return e.html(i.stash(t)),i.apply(e),e},htmlEncode:function(e,t){return void 0===e?t||null:e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")},replaceTags:function(e,t){var i=e;return t&&L.each(t,function(e,t){"function"==typeof t&&(t=t()),i=i.split(e).join(t)}),i},cleanMemory:function(e){e=(e.is("img")?e:e.find("source")).attr("src");N.revokeObjectURL(e)},findFileName:function(e){var t=e.lastIndexOf("/");return-1===t&&(t=e.lastIndexOf("\\")),e.split(e.substring(t,t+1)).pop()},checkFullScreen:function(){return document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement},toggleFullScreen:function(e){var t=document,i=t.documentElement,a=N.checkFullScreen();i&&e&&!a?i.requestFullscreen?i.requestFullscreen():i.msRequestFullscreen?i.msRequestFullscreen():i.mozRequestFullScreen?i.mozRequestFullScreen():i.webkitRequestFullscreen&&i.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT):a&&(t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():t.webkitExitFullscreen&&t.webkitExitFullscreen())},moveArray:function(e,t,i,a){var r=L.extend(!0,[],e);if(a&&r.reverse(),i>=r.length)for(var n=i-r.length;1+n--;)r.push(void 0);return r.splice(i,0,r.splice(t,1)[0]),a&&r.reverse(),r},closeButton:function(e){return'"},getRotation:function(e){switch(e){case 2:return"rotateY(180deg)";case 3:return"rotate(180deg)";case 4:return"rotate(180deg) rotateY(180deg)";case 5:return"rotate(270deg) rotateY(180deg)";case 6:return"rotate(90deg)";case 7:return"rotate(90deg) rotateY(180deg)";case 8:return"rotate(270deg)";default:return""}},setTransform:function(e,t){e&&(e.style.transform=t,e.style.webkitTransform=t,e.style["-moz-transform"]=t,e.style["-ms-transform"]=t,e.style["-o-transform"]=t)},getObjectKeys:function(e){var t=[];return e&&L.each(e,function(e){t.push(e)}),t},getObjectSize:function(e){return N.getObjectKeys(e).length},whenAll:function(e){for(var t,i,a,r=[].slice,n=1===arguments.length&&N.isArray(e)?e:r.call(arguments),o=L.Deferred(),s=0,l=n.length,d=l,c=i=a=Array(l),u=function(e,t,i){return function(){i!==n&&s++,o.notifyWith(t[e]=this,i[e]=r.call(arguments)),--d||o[(s?"reject":"resolve")+"With"](t,i)}},p=0;pg.file.size?g.file.size:e},getTotalChunks:function(){var e=parseFloat(g.chunkSize);return!isNaN(e)&&0h.maxRetries)return s(d.resumableMaxRetriesReached,{n:h.maxRetries}),void g.setProcessed("error");var c,u=t[t.slice?"slice":t.mozSlice?"mozSlice":t.webkitSlice?"webkitSlice":"slice"](e*r,e*(r+1)),p=new FormData,f=w.stack[l];m._setUploadData(p,{chunkCount:g.chunkCount,chunkIndex:r,chunkSize:e,chunkSizeStart:e*r,fileBlob:[u,g.fileName],fileId:l,fileName:g.fileName,fileRelativePath:f.relativePath,fileSize:t.size,retryCount:n}),g.$progress&&g.$progress.length&&g.$progress.show(),e=function(e){c=m._getOutData(p,e),m.showPreview&&(i.hasClass("file-preview-success")||(m._setThumbStatus(i,"Loading"),N.addCss(i,"file-uploading")),a.attr("disabled",!0)),m._raise("filechunkbeforesend",[l,r,n,w,g,c])},u=function(e,t,i){var a;m._isAborted()?s(d.resumableAborting):(c=m._getOutData(p,i,e),a=m.uploadParamNames.chunkIndex||"chunkIndex",i=[l,r,n,w,g,c],e.error?(h.showErrorLog&&m._log(v.retryStatus,{retry:n+1,filename:g.fileName,chunk:r}),m._raise("filechunkerror",i),g.pushAjax(r,n+1),g.error=e.error,s(e.error)):(g.logs[e[a]]=!0,g.chunksProcessed[l]||(g.chunksProcessed[l]={}),g.chunksProcessed[l][e[a]]=!0,g.chunksProcessed[l].data=e,o.resolve.call(null,e),m._raise("filechunksuccess",i),g.check()))},f=function(e,t,i){m._isAborted()?s(d.resumableAborting):(c=m._getOutData(p,e),g.setAjaxError(e,t,i),m._raise("filechunkajaxerror",[l,r,n,w,g,c]),g.pushAjax(r,n+1),s(d.resumableRetryError,{n:n-1}))},t=function(){m._isAborted()||m._raise("filechunkcomplete",[l,r,n,w,g,m._getOutData(p)])},m._ajaxSubmit(e,u,t,f,p,l,g.fileIndex)}}}).reset());h.fallback(m)}},_initTemplateDefaults:function(){var i=this,e=function(e,t){return'\n"+N.DEFAULT_PREVIEW+"\n\n"},t="btn btn-sm btn-kv "+N.defaultButtonCss(),a='{preview}\n
                                                                                                                                                                                                                                                                                                          \n
                                                                                                                                                                                                                                                                                                          \n
                                                                                                                                                                                                                                                                                                          \n {caption}\n\n'+(N.isBs(5)?"":'
                                                                                                                                                                                                                                                                                                          \n')+" {remove}\n {cancel}\n {pause}\n {upload}\n {browse}\n"+(N.isBs(5)?"":"
                                                                                                                                                                                                                                                                                                          \n")+"
                                                                                                                                                                                                                                                                                                          ",r=N.closeButton("fileinput-remove"),n=N.MODAL_ID+"Label",o='',s='\n',l=" {style}",d=e("html","text/html"),c=e("text","text/plain;charset=UTF-8"),u=e("pdf","application/pdf"),p='{alt}\n",f='",g='",m='\n",h='\x3c!--suppress ALL --\x3e\n",v='\n",n='\n\n'+N.OBJECT_PARAMS+" "+N.DEFAULT_PREVIEW+"\n\n",w='
                                                                                                                                                                                                                                                                                                          \n"+N.DEFAULT_PREVIEW+"\n
                                                                                                                                                                                                                                                                                                          \n",e={width:"100%",height:"100%","min-height":"480px"};i._isPdfRendered()&&(u=i.pdfRendererTemplate.replace("{renderer}",i._encodeURI(i.pdfRendererUrl))),i.defaults={layoutTemplates:{main1:a,main2:'{preview}\n
                                                                                                                                                                                                                                                                                                          \n
                                                                                                                                                                                                                                                                                                          \n{remove}\n{cancel}\n{upload}\n{browse}\n',preview:'
                                                                                                                                                                                                                                                                                                          \n {close}
                                                                                                                                                                                                                                                                                                          \n
                                                                                                                                                                                                                                                                                                          \n
                                                                                                                                                                                                                                                                                                          \n
                                                                                                                                                                                                                                                                                                          \n
                                                                                                                                                                                                                                                                                                          \n
                                                                                                                                                                                                                                                                                                          \n
                                                                                                                                                                                                                                                                                                          ',close:r,fileIcon:'',caption:'\n',modalMain:o,modal:s,descriptionClose:'',progress:'
                                                                                                                                                                                                                                                                                                          \n
                                                                                                                                                                                                                                                                                                          \n {status}\n
                                                                                                                                                                                                                                                                                                          \n
                                                                                                                                                                                                                                                                                                          {stats}',stats:'
                                                                                                                                                                                                                                                                                                          {pendingTime} {uploadSpeed}
                                                                                                                                                                                                                                                                                                          ',size:" ({sizeText})",footer:'',indicator:'
                                                                                                                                                                                                                                                                                                          {indicator}
                                                                                                                                                                                                                                                                                                          ',actions:'
                                                                                                                                                                                                                                                                                                          \n \n
                                                                                                                                                                                                                                                                                                          \n{drag}\n
                                                                                                                                                                                                                                                                                                          ',actionDelete:'\n',actionUpload:'',actionDownload:'{downloadIcon}',actionZoom:'',actionDrag:'{dragIcon}',btnDefault:'',btnLink:'{icon} {label}',btnBrowse:'
                                                                                                                                                                                                                                                                                                          {icon} {label}
                                                                                                                                                                                                                                                                                                          ',zoomCache:'
                                                                                                                                                                                                                                                                                                          {zoomContent}
                                                                                                                                                                                                                                                                                                          '},previewMarkupTags:{tagBefore1:'
                                                                                                                                                                                                                                                                                                          \n',tagBefore2:'
                                                                                                                                                                                                                                                                                                          \n',tagAfter:"
                                                                                                                                                                                                                                                                                                          {footer}\n{zoomCache}
                                                                                                                                                                                                                                                                                                          \n"},previewContentTemplates:{generic:"{content}\n",html:d,image:p,text:c,office:f,gdocs:g,video:m,audio:h,flash:v,object:n,pdf:u,other:w},allowedPreviewTypes:["image","html","text","video","audio","flash","pdf","object"],previewTemplates:{},previewSettings:{image:{width:"auto",height:"auto","max-width":"100%","max-height":"100%"},html:{width:"213px",height:"160px"},text:{width:"213px",height:"160px"},office:{width:"213px",height:"160px"},gdocs:{width:"213px",height:"160px"},video:{width:"213px",height:"160px"},audio:{width:"100%",height:"30px"},flash:{width:"213px",height:"160px"},object:{width:"213px",height:"160px"},pdf:{width:"100%",height:"160px",position:"relative"},other:{width:"213px",height:"160px"}},previewSettingsSmall:{image:{width:"auto",height:"auto","max-width":"100%","max-height":"100%"},html:{width:"100%",height:"160px"},text:{width:"100%",height:"160px"},office:{width:"100%",height:"160px"},gdocs:{width:"100%",height:"160px"},video:{width:"100%",height:"auto"},audio:{width:"100%",height:"30px"},flash:{width:"100%",height:"auto"},object:{width:"100%",height:"auto"},pdf:{width:"100%",height:"160px"},other:{width:"100%",height:"160px"}},previewZoomSettings:{image:{width:"auto",height:"auto","max-width":"100%","max-height":"100%"},html:e,text:e,office:{width:"100%",height:"100%","max-width":"100%","min-height":"480px"},gdocs:{width:"100%",height:"100%","max-width":"100%","min-height":"480px"},video:{width:"auto",height:"100%","max-width":"100%"},audio:{width:"100%",height:"30px"},flash:{width:"auto",height:"480px"},object:{width:"auto",height:"100%","max-width":"100%","min-height":"480px"},pdf:e,other:{width:"auto",height:"100%","min-height":"480px"}},mimeTypeAliases:{"video/quicktime":"video/mp4"},fileTypeSettings:{image:function(e,t){return N.compare(e,"image.*")&&!N.compare(e,/(tiff?|wmf)$/i)||N.compare(t,/\.(gif|png|jpe?g)$/i)},html:function(e,t){return N.compare(e,"text/html")||N.compare(t,/\.(htm|html)$/i)},office:function(e,t){return N.compare(e,/(word|excel|powerpoint|office)$/i)||N.compare(t,/\.(docx?|xlsx?|pptx?|pps|potx?)$/i)},gdocs:function(e,t){return N.compare(e,/(word|excel|powerpoint|office|iwork-pages|tiff?)$/i)||N.compare(t,/\.(docx?|xlsx?|pptx?|pps|potx?|rtf|ods|odt|pages|ai|dxf|ttf|tiff?|wmf|e?ps)$/i)},text:function(e,t){return N.compare(e,"text.*")||N.compare(t,/\.(xml|javascript)$/i)||N.compare(t,/\.(txt|md|nfo|ini|json|php|js|css)$/i)},video:function(e,t){return N.compare(e,"video.*")&&(N.compare(e,/(ogg|mp4|mp?g|mov|webm|3gp)$/i)||N.compare(t,/\.(og?|mp4|webm|mp?g|mov|3gp)$/i))},audio:function(e,t){return N.compare(e,"audio.*")&&(N.compare(t,/(ogg|mp3|mp?g|wav)$/i)||N.compare(t,/\.(og?|mp3|mp?g|wav)$/i))},flash:function(e,t){return N.compare(e,"application/x-shockwave-flash",!0)||N.compare(t,/\.(swf)$/i)},pdf:function(e,t){return N.compare(e,"application/pdf",!0)||N.compare(t,/\.(pdf)$/i)},object:function(){return!0},other:function(){return!0}},fileActionSettings:{showRemove:!0,showUpload:!0,showDownload:!0,showZoom:!0,showDrag:!0,removeIcon:'',removeClass:t,removeErrorClass:"btn btn-sm btn-kv btn-danger",removeTitle:"Remove file",uploadIcon:'',uploadClass:t,uploadTitle:"Upload file",uploadRetryIcon:'',uploadRetryTitle:"Retry upload",downloadIcon:'',downloadClass:t,downloadTitle:"Download file",zoomIcon:'',zoomClass:t,zoomTitle:"View Details",dragIcon:'',dragClass:"text-primary",dragTitle:"Move / Rearrange",dragSettings:{},indicatorNew:'',indicatorSuccess:'',indicatorError:'',indicatorLoading:'',indicatorPaused:'',indicatorNewTitle:"Not uploaded yet",indicatorSuccessTitle:"Uploaded",indicatorErrorTitle:"Upload Error",indicatorLoadingTitle:"Uploading …",indicatorPausedTitle:"Upload Paused"}},L.each(i.defaults,function(e,t){"allowedPreviewTypes"!==e?i[e]=L.extend(!0,{},t,i[e]):void 0===i.allowedPreviewTypes&&(i.allowedPreviewTypes=t)}),i._initPreviewTemplates()},_initPreviewTemplates:function(){var i,a=this,r=a.previewMarkupTags,n=r.tagAfter;L.each(a.previewContentTemplates,function(e,t){N.isEmpty(a.previewTemplates[e])&&(i=r.tagBefore2,"generic"!==e&&"image"!==e||(i=r.tagBefore1),a._isPdfRendered()&&"pdf"===e&&(i=i.replace("kv-file-content","kv-file-content kv-pdf-rendered")),a.previewTemplates[e]=i+t+n)})},_initPreviewCache:function(){var f=this;f.previewCache={data:{},init:function(){var e=f.initialPreview;0'+e+"
                                                                                                                                                                                                                                                                                                        • ":"
                                                                                                                                                                                                                                                                                                        • "+e+"
                                                                                                                                                                                                                                                                                                        • ";return 0===r.find("ul").length?a._addError("
                                                                                                                                                                                                                                                                                                            "+i+"
                                                                                                                                                                                                                                                                                                          "):r.find("ul").append(i),r.fadeIn(a.fadeDelay),a._raise(n,[t,e]),a._setValidationError("file-input-new"),!0},_showError:function(e,t,i){var a=this,r=a.$errorContainer,i=i||"fileerror";return(t=t||{}).reader=a.reader,a._addError(e),r.fadeIn(a.fadeDelay),a._raise(i,[t,e]),a.isAjaxUpload||a._clearFileInput(),a._setValidationError("file-input-new"),a.$btnUpload.attr("disabled",!0),!0},_noFilesError:function(e){var t=this,i=1"+a+"";0===i.find("ul").length?t._addError("
                                                                                                                                                                                                                                                                                                            "+a+"
                                                                                                                                                                                                                                                                                                          "):i.find("ul").append(a),t.isError=!0,t._updateFileDetails(0),i.fadeIn(t.fadeDelay),t._raise("fileerror",[e,a]),t._clearFileInput(),t._setValidationError()},_parseError:function(e,t,i,a){var r=this,n=L.trim(i+""),i=t.responseJSON&&t.responseJSON.error?t.responseJSON.error.toString():"",t=i||t.responseText;return r.cancelling&&r.msgUploadAborted&&(n=r.msgUploadAborted),r.showAjaxErrorDetails&&t&&(i?n=L.trim(i+""):(i=(t=L.trim(t.replace(/\n\s*\n/g,"\n"))).length?"
                                                                                                                                                                                                                                                                                                          "+t+"
                                                                                                                                                                                                                                                                                                          ":"",n+=n?i:t)),n=n||r.msgAjaxError.replace("{operation}",e),r.cancelling=!1,a?""+a+": "+n:n},_parseFileType:function(e,t){var i,a,r=this.allowedPreviewTypes||[];if("application/text-plain"===e)return"text";for(a=0;a.kv-file-content img"),t=r._getZoom(t," >.kv-file-content img"),o?e.css("image-orientation",r.autoOrientImageInitial?"from-image":"none"):r.setImageOrientation(e,t,a.exif.Orientation,i)),n++})},_initPreview:function(e){var t,i=this,a=i.initialCaption||"";if(!i.previewCache.count(!0))return i._clearPreview(),void(e?i._setCaption(a):i._initCaption());t=i.previewCache.out(),a=e&&i.initialCaption?i.initialCaption:t.caption,i._setPreviewContent(t.content),i._setInitThumbAttr(),i._setCaption(a),i._initSortable(),N.isEmpty(t.content)||i.$container.removeClass("file-input-new"),i._initPreviewImageOrientations()},_getZoomButton:function(e){var t=this.previewZoomButtonIcons[e],i=this.previewZoomButtonClasses[e],a=' title="'+(this.previewZoomButtonTitles[e]||"")+'" ',r=N.isBs(5)?"bs-":"",r=a+("close"===e?" data-"+r+'dismiss="modal" aria-hidden="true"':"");return"fullscreen"!==e&&"borderless"!==e&&"toggleheader"!==e||(r+=' data-toggle="button" aria-pressed="false" autocomplete="off"'),'"},_getModalContent:function(){var e=this;return e._getLayoutTemplate("modal").setTokens({rtl:e.rtl?" kv-rtl":"",zoomFrameClass:e.frameClass,prev:e._getZoomButton("prev"),next:e._getZoomButton("next"),toggleheader:e._getZoomButton("toggleheader"),fullscreen:e._getZoomButton("fullscreen"),borderless:e._getZoomButton("borderless"),close:e._getZoomButton("close")})},_listenModalEvent:function(a){var r=this,n=r.$modal;n.on(a+".bs.modal",function(e){var t,i;"bs.modal"===e.namespace&&(t=n.find(".btn-fullscreen"),i=n.find(".btn-borderless"),n.data("fileinputPluginId")===r.$element.attr("id")&&r._raise("filezoom"+a,{sourceEvent:e,previewId:n.data("previewId"),modal:n}),"shown"===a&&(i.removeClass("active").attr("aria-pressed","false"),t.removeClass("active").attr("aria-pressed","false"),n.hasClass("file-zoom-fullscreen")&&(r._maximizeZoomDialog(),(N.checkFullScreen()?t:i).addClass("active").attr("aria-pressed","true"))))})},_initZoom:function(){var i=this,e=i._getLayoutTemplate("modalMain"),t="#"+N.MODAL_ID,e=i._setTabIndex("modal",e);i.showPreview&&(i.$modal=L(t),i.$modal&&i.$modal.length||(e=N.createElement(N.cspBuffer.stash(e)).insertAfter(i.$container),i.$modal=L(t).insertBefore(e),N.cspBuffer.apply(i.$modal),e.remove()),N.initModal(i.$modal),i.$modal.html(N.cspBuffer.stash(i._getModalContent())),N.cspBuffer.apply(i.$modal),L.each(N.MODAL_EVENTS,function(e,t){i._listenModalEvent(t)}))},_initZoomButtons:function(){var e,t=this,i=t.$modal.data("previewId")||"",a=t.getFrames().toArray(),r=a.length,n=t.$modal.find(".btn-kv-prev"),o=t.$modal.find(".btn-kv-next");if(a.length<2)return n.hide(),void o.hide();n.show(),o.show(),r&&(e=L(a[0]),r=L(a[r-1]),n.removeAttr("disabled"),o.removeAttr("disabled"),t.reversePreviewOrder&&([n,o]=[o,n]),e.length&&e.attr("id")===i&&n.attr("disabled",!0),r.length&&r.attr("id")===i&&o.attr("disabled",!0))},_maximizeZoomDialog:function(){var e=this.$modal,t=e.find(".modal-header:visible"),i=e.find(".modal-footer:visible"),a=e.find(".kv-zoom-body"),r=L(window).height();e.addClass("file-zoom-fullscreen"),t&&t.length&&(r-=t.outerHeight(!0)),i&&i.length&&(r-=i.outerHeight(!0)),a&&a.length&&(r-=a.outerHeight(!0)-a.height()),e.find(".kv-zoom-body").height(r)},_resizeZoomDialog:function(e){var t=this,i=t.$modal,a=i.find(".btn-kv-fullscreen"),r=i.find(".btn-kv-borderless");if(i.hasClass("file-zoom-fullscreen"))N.toggleFullScreen(!1),e?a.hasClass("active")||(i.removeClass("file-zoom-fullscreen"),t._resizeZoomDialog(!0),r.hasClass("active")&&r.removeClass("active").attr("aria-pressed","false")):a.hasClass("active")?a.removeClass("active").attr("aria-pressed","false"):(i.removeClass("file-zoom-fullscreen"),t.$modal.find(".kv-zoom-body").css("height",t.zoomModalHeight));else{if(!e)return void t._maximizeZoomDialog();N.toggleFullScreen(!0)}i.focus()},_setZoomContent:function(e,t){var i,a,r,n,o,s=this,l=e.attr("id"),d=s._getZoom(l),c=s.$modal,u=c.find(".btn-kv-fullscreen"),p=c.find(".btn-kv-borderless"),f=c.find(".btn-kv-toggleheader"),g=e.data("zoom");g&&(g=decodeURIComponent(g),o=d.html().replace(N.ZOOM_VAR,"").setTokens({zoomData:g}),d.html(o),e.data("zoom",""),d.attr("data-zoom",g)),n=d.attr("data-template")||"generic",g=(o=d.find(".kv-file-content")).length?'\n'+o.html():"",d=e.data("caption")||s.msgZoomModalHeading,o=e.data("size")||"",e=e.data("description")||"",c.find(".kv-zoom-caption").attr("title",d).html(d),c.find(".kv-zoom-size").html(o),o=c.find(".kv-zoom-description").hide(),e&&(s.showDescriptionClose&&(e=s._getLayoutTemplate("descriptionClose").setTokens({closeIcon:s.previewZoomButtonIcons.close})+""+e),o.show().html(e),s.showDescriptionClose&&s._handler(c.find(".kv-desc-hide"),"click",function(){L(this).parent().fadeOut("fast",function(){c.focus()})})),i=c.find(".kv-zoom-body"),c.removeClass("kv-single-content"),t?(r=i.addClass("file-thumb-loading").clone().insertAfter(i),N.setHtml(i,g).hide(),r.fadeOut("fast",function(){i.fadeIn("fast",function(){i.removeClass("file-thumb-loading")}),r.remove()})):N.setHtml(i,g),(n=s.previewZoomSettings[n])&&(a=i.find(".kv-preview-data"),N.addCss(a,"file-zoom-detail"),L.each(n,function(e,t){a.css(e,t),(a.attr("width")&&"width"===e||a.attr("height")&&"height"===e)&&a.removeAttr(e)})),c.data("previewId",l),s._handler(c.find(".btn-kv-prev"),"click",function(){s._zoomSlideShow("prev",l)}),s._handler(c.find(".btn-kv-next"),"click",function(){s._zoomSlideShow("next",l)}),s._handler(u,"click",function(){s._resizeZoomDialog(!0)}),s._handler(p,"click",function(){s._resizeZoomDialog(!1)}),s._handler(f,"click",function(){function e(e){var t=s.$modal.find(".kv-zoom-body"),i=s.zoomModalHeight;c.hasClass("file-zoom-fullscreen")&&(i=t.outerHeight(!0),e||(i-=a.outerHeight(!0))),t.css("height",e?i+e:i)}var t,a=c.find(".modal-header"),i=c.find(".floating-buttons"),r=a.find(".kv-zoom-actions");a.is(":visible")?(t=a.outerHeight(!0),a.slideUp("slow",function(){r.find(".btn").appendTo(i),e(t)})):(i.find(".btn").appendTo(r),a.slideDown("slow",function(){e()})),c.focus()}),s._handler(c,"keydown",function(e){var t,a=e.which||e.keyCode,r=s.processDelay+1,i=L(this).find(".btn-kv-prev"),n=L(this).find(".btn-kv-next"),o=L(this).data("previewId");[t,e]=s.rtl?[39,37]:[37,39],L.each({prev:[i,t],next:[n,e]},function(e,t){var i=t[0],t=t[1];a===t&&i.length&&(c.focus(),i.attr("disabled")||(i.focus(),s._zoomSlideShow(e,o),setTimeout(function(){i.attr("disabled")&&c.focus()},r)))})})},_showModal:function(e){var t=this.$modal;e&&e.length&&(N.initModal(t),N.setHtml(t,this._getModalContent()),this._setZoomContent(e),t.data({backdrop:!1}),t.modal("show"),this._initZoomButtons())},_zoomPreview:function(e){if(!e.length)throw"Cannot zoom to detailed preview!";e=e.closest(N.FRAMES),this._showModal(e)},_zoomSlideShow:function(e,t){var i,a,r,n=this,o=n.$modal.find(".kv-zoom-actions .btn-kv-"+e),s=n.getFrames().toArray(),l=[],d=s.length;if(n.reversePreviewOrder&&(e="prev"===e?"next":"prev"),!o.attr("disabled")){for(i=0;i'+e.defaultPreviewContent+""),e.$container.removeClass("file-input-new"),e._initClickable())},_resetPreviewThumbs:function(e){var t=this;if(e)return t._clearPreview(),void t.clearFileStack();t._hasInitialPreview()?(e=t.previewCache.out(),t._setPreviewContent(e.content),t._setInitThumbAttr(),t._setCaption(e.caption),t._initPreviewActions()):t._clearPreview()},_getLayoutTemplate:function(e){e=this.layoutTemplates[e];return N.isEmpty(this.customLayoutTags)?e:N.replaceTags(e,this.customLayoutTags)},_getPreviewTemplate:function(e){var t=this.previewTemplates,t=t[e]||t.other;return N.isEmpty(this.customPreviewTags)?t:N.replaceTags(t,this.customPreviewTags)},_getOutData:function(e,t,i,a){var r=this;return t=t||{},i=i||{},{formdata:e,files:a=a||r.fileManager.list(),filenames:r.filenames,filescount:r.getFilesCount(),extra:r._getExtraData(),response:i,reader:r.reader,jqXHR:t}},_getMsgSelected:function(e,t){var i=this,a=1===e?i.fileSingle:i.filePlural;return 0 .file-preview-frame");e&&e.length&&e.insertBefore(t).fadeIn("slow").css("display:inline-block"),l._initPreviewActions(),l._clearFileInput(),t.remove(),a.remove(),l._initSortable()})):(l.previewCache.set(r,n,o,e),l._initPreview(),l._initPreviewActions())),l._resetCaption()},_getUploadCacheIndex:function(e){for(var t=this.uploadCache.length,i=0;i&"']/g,"_")},_updateFileDetails:function(e){var t=this,i=t.$element,a=N.isIE(9)&&N.findFileName(i.val())||i[0].files[0]&&i[0].files[0].name,r=!a&&0'+a+""),t.$container.removeClass("file-input-new"),N.addCss(t.$container,"file-input-ajax-new"))},_getStats:function(e){var t,i;return this.showUploadStats&&e&&e.bitrate?(i=this._getLayoutTemplate("stats"),t=e.elapsed&&e.bps?this.msgPendingTime.setTokens({time:N.getElapsed(Math.ceil(e.pendingBytes/e.bps))}):this.msgCalculatingTime,i.setTokens({uploadSpeed:e.bitrate,pendingTime:t})):""},_setResumableProgress:function(e,t,i){var a=this.resumableManager,a=i?a:this,i=i?i.find(".file-thumb-progress"):null;0===a.lastProgress&&(a.lastProgress=e),eo*a.bytesToKB&&a._getResizedImage(e,t,r,n),t.validated=!0)}))},_getResizedImage:function(e,t,i,a){var r,n,o=this,s=L(t.img)[0],l=s.naturalWidth,d=s.naturalHeight,c=1,u=o.maxImageWidth||l,p=o.maxImageHeight||d,f=!(!l||!d),g=o.imageCanvas,m=o.imageCanvasContext,h=t.typ,v=t.pid,w=t.ind,b=t.thumb,_=t.exifObj,C=function(e,t,i){o.isAjaxUpload?o._showFileError(e,t,i):o._showError(e,t,i),o._setPreviewError(b)},t=o.fileManager.getFile(e),y={id:v,index:w,fileId:e},x=[e,v,w];if(t&&f&&!(l<=u&&d<=p)||(f&&t&&o._raise("fileimageresized",x),i.val++,i.val===a&&o._raise("fileimagesresized"),f)){h=h||o.resizeDefaultImageType,t=u"+n.msgValidationError+"").text(),r=(a=n.fileManager.count())?(r=n.fileManager.getFirstFile(),1===a&&r?r.nameFmt:n._getMsgSelected(a)):n._getMsgSelected(n.msgNo),a=N.isEmpty(e)?r:e,r=''+n.msgValidationErrorIcon+"";else{if(N.isEmpty(e))return void n.$caption.attr("title","");a=i=L("
                                                                                                                                                                                                                                                                                                          "+e+"
                                                                                                                                                                                                                                                                                                          ").text(),r=n._getLayoutTemplate("fileIcon")}n.$captionContainer.addClass("icon-visible"),n.$caption.attr("title",i).val(a),N.setHtml(n.$captionIcon,r)}},_createContainer:function(){var e=this,t={class:"file-input file-input-new"+(e.rtl?" kv-rtl":"")},i=N.createElement(N.cspBuffer.stash(e._renderMain()));return N.cspBuffer.apply(i),i.insertBefore(e.$element).attr(t),e._initBrowse(i),e.theme&&i.addClass("theme-"+e.theme),i},_refreshContainer:function(){var e=this,t=e.$container;e.$element.insertAfter(t),N.setHtml(t,e._renderMain()),e._initBrowse(t),e._validateDisabled()},_validateDisabled:function(){this.$caption.attr({readonly:this.isDisabled})},_setTabIndex:function(e,t){e=this.tabIndexConfig[e];return t.setTokens({tabIndexConfig:null==e?"":'tabindex="'+e+'"'})},_renderMain:function(){var e=this,t=e.dropZoneEnabled?" file-drop-zone":"file-drop-disabled",i=e.showClose?e._getLayoutTemplate("close"):"",a=e.showPreview?e._getLayoutTemplate("preview").setTokens({class:e.previewClass,dropClass:t}):"",t=e.isDisabled?e.captionClass+" file-caption-disabled":e.captionClass,t=e.captionTemplate.setTokens({class:t+" kv-fileinput-caption"}),t=e._setTabIndex("caption",t);return e.mainTemplate.setTokens({class:e.mainClass+(!e.showBrowse&&e.showCaption?" no-browse":""),inputGroupClass:e.inputGroupClass,preview:a,close:i,caption:t,upload:e._renderButton("upload"),remove:e._renderButton("remove"),cancel:e._renderButton("cancel"),pause:e._renderButton("pause"),browse:e._renderButton("browse")})},_renderButton:function(e){var t=this,i=t._getLayoutTemplate("btnDefault"),a=t[e+"Class"],r=t[e+"Title"],n=t[e+"Icon"],o=t[e+"Label"],s=t.isDisabled?" disabled":"",l="button";switch(e){case"remove":if(!t.showRemove)return"";break;case"cancel":if(!t.showCancel)return"";a+=" kv-hidden";break;case"pause":if(!t.showPause)return"";a+=" kv-hidden";break;case"upload":if(!t.showUpload)return"";t.isAjaxUpload&&!t.isDisabled?i=t._getLayoutTemplate("btnLink").replace("{href}",t.uploadUrl):l="submit";break;case"browse":if(!t.showBrowse)return"";i=t._getLayoutTemplate("btnBrowse");break;default:return""}return i=t._setTabIndex(e,i),a+="browse"===e?" btn-file":" fileinput-"+e+" fileinput-"+e+"-button",N.isEmpty(o)||(o=' '+o+""),i.setTokens({type:l,css:a,title:r,status:s,icon:n,label:o})},_renderThumbProgress:function(){return'
                                                                                                                                                                                                                                                                                                          '+this.progressInfoTemplate.setTokens({percent:101,status:this.msgUploadBegin,stats:""})+"
                                                                                                                                                                                                                                                                                                          "},_renderFileFooter:function(e,t,i,a,r){var n=this,o=n.fileActionSettings,s=o.showRemove,l=o.showDrag,d=o.showUpload,c=o.showZoom,u=n._getLayoutTemplate("footer"),p=n._getLayoutTemplate("indicator"),f=r?o.indicatorError:o.indicatorNew,o=r?o.indicatorErrorTitle:o.indicatorNewTitle,o=p.setTokens({indicator:f,indicatorTitle:o}),o={type:e,caption:t,size:i=n._getSize(i),width:a,progress:"",indicator:o};return n.isAjaxUpload?(o.progress=n._renderThumbProgress(),o.actions=n._renderFileActions(o,d,!1,s,c,l,!1,!1,!1)):o.actions=n._renderFileActions(o,!1,!1,!1,c,l,!1,!1,!1),o=u.setTokens(o),o=N.replaceTags(o,n.previewThumbTags)},_renderFileActions:function(e,t,i,a,r,n,o,s,l,d,c,u){var p=this;if(!e.type&&d&&(e.type="image"),p.enableResumableUpload?t=!1:"function"==typeof t&&(t=t(e)),"function"==typeof i&&(i=i(e)),"function"==typeof a&&(a=a(e)),"function"==typeof r&&(r=r(e)),"function"==typeof n&&(n=n(e)),!(t||i||a||r||n))return"";var f=!1===s?"":' data-url="'+s+'"',g="",m="",h=!1===l?"":' data-key="'+l+'"',v="",w="",b="",_=p._getLayoutTemplate("actions"),e=p.fileActionSettings,s=p.otherActionButtons.setTokens({dataKey:h,key:l}),o=o?e.removeClass+" disabled":e.removeClass;return a&&(v=p._getLayoutTemplate("actionDelete").setTokens({removeClass:o,removeIcon:e.removeIcon,removeTitle:e.removeTitle,dataUrl:f,dataKey:h,key:l})),t&&(w=p._getLayoutTemplate("actionUpload").setTokens({uploadClass:e.uploadClass,uploadIcon:e.uploadIcon,uploadTitle:e.uploadTitle})),i&&(b=(b=p._getLayoutTemplate("actionDownload").setTokens({downloadClass:e.downloadClass,downloadIcon:e.downloadIcon,downloadTitle:e.downloadTitle,downloadUrl:c||p.initialPreviewDownloadUrl})).setTokens({filename:u,key:l})),r&&(g=p._getLayoutTemplate("actionZoom").setTokens({zoomClass:e.zoomClass,zoomIcon:e.zoomIcon,zoomTitle:e.zoomTitle})),n&&d&&(d="drag-handle-init "+e.dragClass,m=p._getLayoutTemplate("actionDrag").setTokens({dragClass:d,dragTitle:e.dragTitle,dragIcon:e.dragIcon})),_.setTokens({delete:v,upload:w,download:b,zoom:g,drag:m,other:s})},_browse:function(e){var t=this;e&&e.isDefaultPrevented()||!t._raise("filebrowse")||(t.isError&&!t.isAjaxUpload&&t.clear(),t.focusCaptionOnBrowse&&t.$captionContainer.focus())},_change:function(e){var n=this;if(L(document.body).off("focusin.fileinput focusout.fileinput"),!n.changeTriggered){n._setLoading("show");var t=n.$element,i=1
                                                                                                                                                                                                                                                                                                        • ")+"
                                                                                                                                                                                                                                                                                                        • ",0===e.find("ul").length?N.setHtml(e,S.errorCloseButton+"
                                                                                                                                                                                                                                                                                                            "+x+"
                                                                                                                                                                                                                                                                                                          "):e.find("ul").append(x),e.fadeIn(S.fadeDelay),S._handler(e.find(".kv-error-close"),"click",function(){e.fadeOut(S.fadeDelay)}),S.duplicateErrors=[]),S.isAjaxUpload?(S._raise("filebatchselected",[i.stack]),0!==i.count()||S.isError||S.reset()):S._raise("filebatchselected",[P]),I.removeClass("file-thumb-loading"),S._initCapStatus("valid"),void A.html("");S.lock(!0);function c(){var e=!!i.loadedImages[s],t=D.setTokens({index:d+1,files:j,percent:50,name:m});setTimeout(function(){A.html(t),S._updateFileDetails(j),k(d+1)},S.processDelay),S._raise("fileloaded",[f,l,s,d,E])&&S.isAjaxUpload?e||i.add(f):e&&i.removeFile(s)}var t,u,a,r,n,o,p,f=P[d],s=S._getFileId(f),l=U+"-"+s,g=M.image,m=S._getFileName(f,""),h=(f&&f.size||0)/S.bytesToKB,v="",w=N.createObjectURL(f),b=0,_="",C=!1,y=0;if(f){if(r=i.getId(f),0S.maxFileSize)return T=S.msgSizeTooLarge.setTokens({name:m,size:t,maxSize:S.maxFileSize}),void F(T,f,l,d,r);if(null!==S.minFileSize&&h<=N.getNum(S.minFileSize))return T=S.msgSizeTooSmall.setTokens({name:m,size:t,minSize:S.minFileSize}),void F(T,f,l,d,r);if(!N.isEmpty($)&&N.isArray($)){for(u=0;u<$.length;u+=1)o=$[u],b+=(o=M[o])&&"function"==typeof o&&o(f.type,N.getFileName(f))?1:0;if(0===b)return T=S.msgInvalidFileType.setTokens({name:m,types:_}),void F(T,f,l,d,r)}return 0!==b||N.isEmpty(R)||!N.isArray(R)||N.isEmpty(v)||(v=N.compare(m,v),0!==(b+=N.isEmpty(v)?0:v.length))?S._canPreview(f)?(p=g(f.type,m),A.html(z.replace("{index}",d+1).replace("{files}",j)),I.addClass("file-thumb-loading"),S._initCapStatus("processing"),E.onerror=function(e){S._errorHandler(e,m)},E.onload=function(e){var t,i,a,r,n,o,s=[],l={name:m,type:f.type};if(L.each(M,function(e,t){"object"!==e&&"other"!==e&&"function"==typeof t&&t(f.type,m)&&y++}),0===y){for(i=new Uint8Array(e.target.result),u=0;u
                                                                                                                                                                                                                                                                                                          ',next:'',toggleheader:'',fullscreen:'',borderless:'',close:''},previewZoomButtonClasses:{prev:"btn btn-default btn-outline-secondary btn-navigate",next:"btn btn-default btn-outline-secondary btn-navigate",toggleheader:t,fullscreen:t,borderless:t,close:t},previewTemplates:{},previewContentTemplates:{},preferIconicPreview:!1,preferIconicZoomPreview:!1,allowedFileTypes:null,allowedFileExtensions:null,allowedPreviewTypes:void 0,allowedPreviewMimeTypes:null,allowedPreviewExtensions:null,disabledPreviewTypes:void 0,disabledPreviewExtensions:["msi","exe","com","zip","rar","app","vb","scr"],disabledPreviewMimeTypes:null,defaultPreviewContent:null,customLayoutTags:{},customPreviewTags:{},previewFileIcon:'',previewFileIconClass:"file-other-icon",previewFileIconSettings:{},previewFileExtSettings:{},buttonLabelClass:"hidden-xs",browseIcon:' ',browseClass:"btn btn-primary",removeIcon:'',removeClass:i,cancelIcon:'',cancelClass:i,pauseIcon:'',pauseClass:i,uploadIcon:'',uploadClass:i,uploadUrl:null,uploadUrlThumb:null,uploadAsync:!0,uploadParamNames:{chunkCount:"chunkCount",chunkIndex:"chunkIndex",chunkSize:"chunkSize",chunkSizeStart:"chunkSizeStart",chunksUploaded:"chunksUploaded",fileBlob:"fileBlob",fileId:"fileId",fileName:"fileName",fileRelativePath:"fileRelativePath",fileSize:"fileSize",retryCount:"retryCount"},maxAjaxThreads:5,fadeDelay:800,processDelay:100,bitrateUpdateDelay:500,queueDelay:10,progressDelay:0,enableResumableUpload:!1,resumableUploadOptions:{fallback:null,testUrl:null,chunkSize:2048,maxThreads:4,maxRetries:3,showErrorLog:!0,retainErrorHistory:!0,skipErrorsAndProceed:!1},uploadExtraData:{},zoomModalHeight:480,minImageWidth:null,minImageHeight:null,maxImageWidth:null,maxImageHeight:null,resizeImage:!1,resizePreference:"width",resizeQuality:.92,resizeDefaultImageType:"image/jpeg",resizeIfSizeMoreThan:0,minFileSize:-1,maxFileSize:0,maxFilePreviewSize:25600,minFileCount:0,maxFileCount:0,maxTotalFileCount:0,validateInitialCount:!1,msgValidationErrorClass:"text-danger",msgValidationErrorIcon:' ',msgErrorClass:"file-error-message",progressThumbClass:"progress-bar progress-bar-striped active progress-bar-animated",progressClass:"progress-bar bg-success progress-bar-success progress-bar-striped active progress-bar-animated",progressInfoClass:"progress-bar bg-info progress-bar-info progress-bar-striped active progress-bar-animated",progressCompleteClass:"progress-bar bg-success progress-bar-success",progressPauseClass:"progress-bar bg-primary progress-bar-primary progress-bar-striped active progress-bar-animated",progressErrorClass:"progress-bar bg-danger progress-bar-danger",progressUploadThreshold:99,previewFileType:"image",elCaptionContainer:null,elCaptionText:null,elPreviewContainer:null,elPreviewImage:null,elPreviewStatus:null,elErrorContainer:null,errorCloseButton:void 0,slugCallback:null,dropZoneEnabled:!0,dropZoneTitleClass:"file-drop-zone-title",fileActionSettings:{},otherActionButtons:"",textEncoding:"UTF-8",preProcessUpload:null,ajaxSettings:{},ajaxDeleteSettings:{},showAjaxErrorDetails:!0,mergeAjaxCallbacks:!1,mergeAjaxDeleteCallbacks:!1,retryErrorUploads:!0,reversePreviewOrder:!1,usePdfRenderer:function(){var e=!!window.MSInputMethodContext&&!!document.documentMode;return!!navigator.userAgent.match(/(iPod|iPhone|iPad|Android)/i)||e},pdfRendererUrl:"",pdfRendererTemplate:'',tabIndexConfig:{browse:500,remove:500,upload:500,cancel:null,pause:null,modal:-1}},L.fn.fileinputLocales.en={sizeUnits:["B","KB","MB","GB","TB","PB","EB","ZB","YB"],bitRateUnits:["B/s","KB/s","MB/s","GB/s","TB/s","PB/s","EB/s","ZB/s","YB/s"],fileSingle:"file",filePlural:"files",browseLabel:"Browse …",removeLabel:"Remove",removeTitle:"Clear all unprocessed files",cancelLabel:"Cancel",cancelTitle:"Abort ongoing upload",pauseLabel:"Pause",pauseTitle:"Pause ongoing upload",uploadLabel:"Upload",uploadTitle:"Upload selected files",msgNo:"No",msgNoFilesSelected:"No files selected",msgCancelled:"Cancelled",msgPaused:"Paused",msgPlaceholder:"Select {files} ...",msgZoomModalHeading:"Detailed Preview",msgFileRequired:"You must select a file to upload.",msgSizeTooSmall:'File "{name}" ({size} KB) is too small and must be larger than {minSize} KB.',msgSizeTooLarge:'File "{name}" ({size} KB) exceeds maximum allowed upload size of {maxSize} KB.',msgFilesTooLess:"You must select at least {n} {files} to upload.",msgFilesTooMany:"Number of files selected for upload ({n}) exceeds maximum allowed limit of {m}.",msgTotalFilesTooMany:"You can upload a maximum of {m} files ({n} files detected).",msgFileNotFound:'File "{name}" not found!',msgFileSecured:'Security restrictions prevent reading the file "{name}".',msgFileNotReadable:'File "{name}" is not readable.',msgFilePreviewAborted:'File preview aborted for "{name}".',msgFilePreviewError:'An error occurred while reading the file "{name}".',msgInvalidFileName:'Invalid or unsupported characters in file name "{name}".',msgInvalidFileType:'Invalid type for file "{name}". Only "{types}" files are supported.',msgInvalidFileExtension:'Invalid extension for file "{name}". Only "{extensions}" files are supported.',msgFileTypes:{image:"image",html:"HTML",text:"text",video:"video",audio:"audio",flash:"flash",pdf:"PDF",object:"object"},msgUploadAborted:"The file upload was aborted",msgUploadThreshold:"Processing …",msgUploadBegin:"Initializing …",msgUploadEnd:"Done",msgUploadResume:"Resuming upload …",msgUploadEmpty:"No valid data available for upload.",msgUploadError:"Upload Error",msgDeleteError:"Delete Error",msgProgressError:"Error",msgValidationError:"Validation Error",msgLoading:"Loading file {index} of {files} …",msgProgress:"Loading file {index} of {files} - {name} - {percent}% completed.",msgSelected:"{n} {files} selected",msgProcessing:"Processing ...",msgFoldersNotAllowed:"Drag & drop files only! {n} folder(s) dropped were skipped.",msgImageWidthSmall:'Width of image file "{name}" must be at least {size} px.',msgImageHeightSmall:'Height of image file "{name}" must be at least {size} px.',msgImageWidthLarge:'Width of image file "{name}" cannot exceed {size} px.',msgImageHeightLarge:'Height of image file "{name}" cannot exceed {size} px.',msgImageResizeError:"Could not get the image dimensions to resize.",msgImageResizeException:"Error while resizing the image.
                                                                                                                                                                                                                                                                                                          {errors}
                                                                                                                                                                                                                                                                                                          ",msgAjaxError:"Something went wrong with the {operation} operation. Please try again later!",msgAjaxProgressError:"{operation} failed",msgDuplicateFile:'File "{name}" of same size "{size} KB" has already been selected earlier. Skipping duplicate selection.',msgResumableUploadRetriesExceeded:"Upload aborted beyond {max} retries for file {file}! Error Details:
                                                                                                                                                                                                                                                                                                          {error}
                                                                                                                                                                                                                                                                                                          ",msgPendingTime:"{time} remaining",msgCalculatingTime:"calculating time remaining",ajaxOperations:{deleteThumb:"file delete",uploadThumb:"file upload",uploadBatch:"batch file upload",uploadExtra:"form data upload"},dropZoneTitle:"Drag & drop files here …",dropZoneClickTitle:"
                                                                                                                                                                                                                                                                                                          (or click to select {files})",previewZoomButtonTitles:{prev:"View previous file",next:"View next file",toggleheader:"Toggle header",fullscreen:"Toggle full screen",borderless:"Toggle borderless mode",close:"Close detailed preview"}},L.fn.fileinputLocales.zh={sizeUnits:["B","KB","MB","GB","TB","PB","EB","ZB","YB"],bitRateUnits:["B/s","KB/s","MB/s","GB/s","TB/s","PB/s","EB/s","ZB/s","YB/s"],fileSingle:"文件",filePlural:"个文件",browseLabel:"选择 …",removeLabel:"移除",removeTitle:"清除选中文件",cancelLabel:"取消",cancelTitle:"取消进行中的上传",pauseLabel:"暂停",pauseTitle:"暂停上传",uploadLabel:"上传",uploadTitle:"上传选中文件",msgNo:"没有",msgNoFilesSelected:"未选择文件",msgPaused:"已暂停",msgCancelled:"取消",msgPlaceholder:"选择 {files} ...",msgZoomModalHeading:"详细预览",msgFileRequired:"必须选择一个文件上传.",msgSizeTooSmall:'文件 "{name}" ({size} KB) 必须大于限定大小 {minSize} KB.',msgSizeTooLarge:'文件 "{name}" ({size} KB) 超过了允许大小 {maxSize} KB.',msgFilesTooLess:"你必须选择最少 {n} {files} 来上传. ",msgFilesTooMany:"选择的上传文件个数 ({n}) 超出最大文件的限制个数 {m}.",msgTotalFilesTooMany:"你最多可以上传 {m} 个文件 (当前有{n} 个文件).",msgFileNotFound:'文件 "{name}" 未找到!',msgFileSecured:'安全限制,为了防止读取文件 "{name}".',msgFileNotReadable:'文件 "{name}" 不可读.',msgFilePreviewAborted:'取消 "{name}" 的预览.',msgFilePreviewError:'读取 "{name}" 时出现了一个错误.',msgInvalidFileName:'文件名 "{name}" 包含非法字符.',msgInvalidFileType:'不正确的类型 "{name}". 只支持 "{types}" 类型的文件.',msgInvalidFileExtension:'不正确的文件扩展名 "{name}". 只支持 "{extensions}" 的文件扩展名.',msgFileTypes:{image:"image",html:"HTML",text:"text",video:"video",audio:"audio",flash:"flash",pdf:"PDF",object:"object"},msgUploadAborted:"该文件上传被中止",msgUploadThreshold:"处理中 …",msgUploadBegin:"正在初始化 …",msgUploadEnd:"完成",msgUploadResume:"继续上传 …",msgUploadEmpty:"无效的文件上传.",msgUploadError:"上传出错",msgDeleteError:"删除出错",msgProgressError:"上传出错",msgValidationError:"验证错误",msgLoading:"加载第 {index} 文件 共 {files} …",msgProgress:"加载第 {index} 文件 共 {files} - {name} - {percent}% 完成.",msgSelected:"{n} {files} 选中",msgProcessing:"处理中 ...",msgFoldersNotAllowed:"只支持拖拽文件! 跳过 {n} 拖拽的文件夹.",msgImageWidthSmall:'图像文件的"{name}"的宽度必须是至少{size}像素.',msgImageHeightSmall:'图像文件的"{name}"的高度必须至少为{size}像素.',msgImageWidthLarge:'图像文件"{name}"的宽度不能超过{size}像素.',msgImageHeightLarge:'图像文件"{name}"的高度不能超过{size}像素.',msgImageResizeError:"无法获取的图像尺寸调整。",msgImageResizeException:"调整图像大小时发生错误。
                                                                                                                                                                                                                                                                                                          {errors}
                                                                                                                                                                                                                                                                                                          ",msgAjaxError:"{operation} 发生错误. 请重试!",msgAjaxProgressError:"{operation} 失败",msgDuplicateFile:'文件 "{name}",大小 "{size} KB" 已经被选中.忽略相同的文件.',msgResumableUploadRetriesExceeded:"文件 {file} 上传失败超过 {max} 次重试 ! 错误详情:
                                                                                                                                                                                                                                                                                                          {error}
                                                                                                                                                                                                                                                                                                          ",msgPendingTime:"{time} 剩余",msgCalculatingTime:"计算剩余时间",ajaxOperations:{deleteThumb:"删除文件",uploadThumb:"上传文件",uploadBatch:"批量上传",uploadExtra:"表单数据上传"},dropZoneTitle:"拖拽文件到这里 …
                                                                                                                                                                                                                                                                                                          支持多文件同时上传",dropZoneClickTitle:"
                                                                                                                                                                                                                                                                                                          (或点击{files}按钮选择文件)",fileActionSettings:{removeTitle:"删除文件",uploadTitle:"上传文件",downloadTitle:"下载文件",uploadRetryTitle:"重试",zoomTitle:"查看详情",dragTitle:"移动 / 重置",indicatorNewTitle:"没有上传",indicatorSuccessTitle:"上传",indicatorErrorTitle:"上传错误",indicatorPausedTitle:"上传已暂停",indicatorLoadingTitle:"上传 …"},previewZoomButtonTitles:{prev:"预览上一个文件",next:"预览下一个文件",toggleheader:"缩放",fullscreen:"全屏",borderless:"无边界模式",close:"关闭当前预览"}},L.fn.fileinput.Constructor=c,L(document).ready(function(){var e=L("input.file[type=file]");e.length&&e.fileinput()})}); \ No newline at end of file diff --git a/alive-admin/target/classes/static/ajax/libs/bootstrap-fileinput/loading-sm.gif b/alive-admin/target/classes/static/ajax/libs/bootstrap-fileinput/loading-sm.gif new file mode 100644 index 0000000..44e3b7a Binary files /dev/null and b/alive-admin/target/classes/static/ajax/libs/bootstrap-fileinput/loading-sm.gif differ diff --git a/alive-admin/target/classes/static/ajax/libs/bootstrap-fileinput/loading.gif b/alive-admin/target/classes/static/ajax/libs/bootstrap-fileinput/loading.gif new file mode 100644 index 0000000..0ea146c Binary files /dev/null and b/alive-admin/target/classes/static/ajax/libs/bootstrap-fileinput/loading.gif differ diff --git a/alive-admin/target/classes/static/ajax/libs/bootstrap-select/bootstrap-select.css b/alive-admin/target/classes/static/ajax/libs/bootstrap-select/bootstrap-select.css new file mode 100644 index 0000000..34edabf --- /dev/null +++ b/alive-admin/target/classes/static/ajax/libs/bootstrap-select/bootstrap-select.css @@ -0,0 +1,459 @@ +/*! + * Bootstrap-select v1.13.18 (https://developer.snapappointments.com/bootstrap-select) + * + * Copyright 2012-2020 SnapAppointments, LLC + * Licensed under MIT (https://github.com/snapappointments/bootstrap-select/blob/master/LICENSE) + */ + +@-webkit-keyframes bs-notify-fadeOut { + 0% { + opacity: 0.9; + } + 100% { + opacity: 0; + } +} +@-o-keyframes bs-notify-fadeOut { + 0% { + opacity: 0.9; + } + 100% { + opacity: 0; + } +} +@keyframes bs-notify-fadeOut { + 0% { + opacity: 0.9; + } + 100% { + opacity: 0; + } +} +select.bs-select-hidden, +.bootstrap-select > select.bs-select-hidden, +select.selectpicker { + display: none !important; +} +.bootstrap-select { + width: 220px \0; + /*IE9 and below*/ + vertical-align: middle; +} +.bootstrap-select > .dropdown-toggle { + position: relative; + width: 100%; + text-align: right; + white-space: nowrap; + display: -webkit-inline-box; + display: -webkit-inline-flex; + display: -ms-inline-flexbox; + display: inline-flex; + -webkit-box-align: center; + -webkit-align-items: center; + -ms-flex-align: center; + align-items: center; + -webkit-box-pack: justify; + -webkit-justify-content: space-between; + -ms-flex-pack: justify; + justify-content: space-between; +} +.bootstrap-select > .dropdown-toggle:after { + margin-top: -1px; +} +.bootstrap-select > .dropdown-toggle.bs-placeholder, +.bootstrap-select > .dropdown-toggle.bs-placeholder:hover, +.bootstrap-select > .dropdown-toggle.bs-placeholder:focus, +.bootstrap-select > .dropdown-toggle.bs-placeholder:active { + color: #999; +} +.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-primary, +.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-secondary, +.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-success, +.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-danger, +.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-info, +.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-dark, +.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-primary:hover, +.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-secondary:hover, +.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-success:hover, +.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-danger:hover, +.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-info:hover, +.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-dark:hover, +.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-primary:focus, +.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-secondary:focus, +.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-success:focus, +.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-danger:focus, +.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-info:focus, +.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-dark:focus, +.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-primary:active, +.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-secondary:active, +.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-success:active, +.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-danger:active, +.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-info:active, +.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-dark:active { + color: rgba(255, 255, 255, 0.5); +} +.bootstrap-select > select { + position: absolute !important; + bottom: 0; + left: 50%; + display: block !important; + width: 0.5px !important; + height: 100% !important; + padding: 0 !important; + opacity: 0 !important; + border: none; + z-index: 0 !important; +} +.bootstrap-select > select.mobile-device { + top: 0; + left: 0; + display: block !important; + width: 100% !important; + z-index: 2 !important; +} +.has-error .bootstrap-select .dropdown-toggle, +.error .bootstrap-select .dropdown-toggle, +.bootstrap-select.is-invalid .dropdown-toggle, +.was-validated .bootstrap-select select:invalid + .dropdown-toggle { + border-color: #b94a48; +} +.bootstrap-select.is-valid .dropdown-toggle, +.was-validated .bootstrap-select select:valid + .dropdown-toggle { + border-color: #28a745; +} +.bootstrap-select.fit-width { + width: auto !important; +} +.bootstrap-select:not([class*="col-"]):not([class*="form-control"]):not(.input-group-btn) { + width: 220px; +} +.bootstrap-select > select.mobile-device:focus + .dropdown-toggle, +.bootstrap-select .dropdown-toggle:focus { + outline: thin dotted #333333 !important; + outline: 5px auto -webkit-focus-ring-color !important; + outline-offset: -2px; +} +.bootstrap-select.form-control { + margin-bottom: 0; + padding: 0; + border: none; + height: auto; +} +:not(.input-group) > .bootstrap-select.form-control:not([class*="col-"]) { + width: 100%; +} +.bootstrap-select.form-control.input-group-btn { + float: none; + z-index: auto; +} +.form-inline .bootstrap-select, +.form-inline .bootstrap-select.form-control:not([class*="col-"]) { + width: auto; +} +.bootstrap-select:not(.input-group-btn), +.bootstrap-select[class*="col-"] { + float: none; + display: inline-block; + margin-left: 0; +} +.bootstrap-select.dropdown-menu-right, +.bootstrap-select[class*="col-"].dropdown-menu-right, +.row .bootstrap-select[class*="col-"].dropdown-menu-right { + float: right; +} +.form-inline .bootstrap-select, +.form-horizontal .bootstrap-select, +.form-group .bootstrap-select { + margin-bottom: 0; +} +.form-group-lg .bootstrap-select.form-control, +.form-group-sm .bootstrap-select.form-control { + padding: 0; +} +.form-group-lg .bootstrap-select.form-control .dropdown-toggle, +.form-group-sm .bootstrap-select.form-control .dropdown-toggle { + height: 100%; + font-size: inherit; + line-height: inherit; + border-radius: inherit; +} +.bootstrap-select.form-control-sm .dropdown-toggle, +.bootstrap-select.form-control-lg .dropdown-toggle { + font-size: inherit; + line-height: inherit; + border-radius: inherit; +} +.bootstrap-select.form-control-sm .dropdown-toggle { + padding: 0.25rem 0.5rem; +} +.bootstrap-select.form-control-lg .dropdown-toggle { + padding: 0.5rem 1rem; +} +.form-inline .bootstrap-select .form-control { + width: 100%; +} +.bootstrap-select.disabled, +.bootstrap-select > .disabled { + cursor: not-allowed; +} +.bootstrap-select.disabled:focus, +.bootstrap-select > .disabled:focus { + outline: none !important; +} +.bootstrap-select.bs-container { + position: absolute; + top: 0; + left: 0; + height: 0 !important; + padding: 0 !important; +} +.bootstrap-select.bs-container .dropdown-menu { + z-index: 1060; +} +.bootstrap-select .dropdown-toggle .filter-option { + position: static; + top: 0; + left: 0; + float: left; + height: 100%; + width: 100%; + text-align: left; + overflow: hidden; + -webkit-box-flex: 0; + -webkit-flex: 0 1 auto; + -ms-flex: 0 1 auto; + flex: 0 1 auto; +} +.bs3.bootstrap-select .dropdown-toggle .filter-option { + padding-right: inherit; +} +.input-group .bs3-has-addon.bootstrap-select .dropdown-toggle .filter-option { + position: absolute; + padding-top: inherit; + padding-bottom: inherit; + padding-left: inherit; + float: none; +} +.input-group .bs3-has-addon.bootstrap-select .dropdown-toggle .filter-option .filter-option-inner { + padding-right: inherit; +} +.bootstrap-select .dropdown-toggle .filter-option-inner-inner { + overflow: hidden; +} +.bootstrap-select .dropdown-toggle .filter-expand { + width: 0 !important; + float: left; + opacity: 0 !important; + overflow: hidden; +} +.bootstrap-select .dropdown-toggle .caret { + position: absolute; + top: 50%; + right: 12px; + margin-top: -2px; + vertical-align: middle; +} +.input-group .bootstrap-select.form-control .dropdown-toggle { + border-radius: inherit; +} +.bootstrap-select[class*="col-"] .dropdown-toggle { + width: 100%; +} +.bootstrap-select .dropdown-menu { + min-width: 100%; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; +} +.bootstrap-select .dropdown-menu > .inner:focus { + outline: none !important; +} +.bootstrap-select .dropdown-menu.inner { + position: static; + float: none; + border: 0; + padding: 0; + margin: 0; + border-radius: 0; + -webkit-box-shadow: none; + box-shadow: none; +} +.bootstrap-select .dropdown-menu li { + position: relative; +} +.bootstrap-select .dropdown-menu li.active small { + color: rgba(255, 255, 255, 0.5) !important; +} +.bootstrap-select .dropdown-menu li.disabled a { + cursor: not-allowed; +} +.bootstrap-select .dropdown-menu li a { + cursor: pointer; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; +} +.bootstrap-select .dropdown-menu li a.opt { + position: relative; + padding-left: 2.25em; +} +.bootstrap-select .dropdown-menu li a span.check-mark { + display: none; +} +.bootstrap-select .dropdown-menu li a span.text { + display: inline-block; +} +.bootstrap-select .dropdown-menu li small { + padding-left: 0.5em; +} +.bootstrap-select .dropdown-menu .notify { + position: absolute; + bottom: 5px; + width: 96%; + margin: 0 2%; + min-height: 26px; + padding: 3px 5px; + background: #f5f5f5; + border: 1px solid #e3e3e3; + -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05); + box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05); + pointer-events: none; + opacity: 0.9; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; +} +.bootstrap-select .dropdown-menu .notify.fadeOut { + -webkit-animation: 300ms linear 750ms forwards bs-notify-fadeOut; + -o-animation: 300ms linear 750ms forwards bs-notify-fadeOut; + animation: 300ms linear 750ms forwards bs-notify-fadeOut; +} +.bootstrap-select .no-results { + padding: 3px; + background: #f5f5f5; + margin: 0 5px; + white-space: nowrap; +} +.bootstrap-select.fit-width .dropdown-toggle .filter-option { + position: static; + display: inline; + padding: 0; +} +.bootstrap-select.fit-width .dropdown-toggle .filter-option-inner, +.bootstrap-select.fit-width .dropdown-toggle .filter-option-inner-inner { + display: inline; +} +.bootstrap-select.fit-width .dropdown-toggle .bs-caret:before { + content: '\00a0'; +} +.bootstrap-select.fit-width .dropdown-toggle .caret { + position: static; + top: auto; + margin-top: -1px; +} +.bootstrap-select.show-tick .dropdown-menu .selected span.check-mark { + position: absolute; + display: inline-block; + right: 15px; + top: 5px; +} +.bootstrap-select.show-tick .dropdown-menu li a span.text { + margin-right: 34px; +} +.bootstrap-select .bs-ok-default:after { + content: ''; + display: block; + width: 0.5em; + height: 1em; + border-style: solid; + border-width: 0 0.26em 0.26em 0; + -webkit-transform-style: preserve-3d; + transform-style: preserve-3d; + -webkit-transform: rotate(45deg); + -ms-transform: rotate(45deg); + -o-transform: rotate(45deg); + transform: rotate(45deg); +} +.bootstrap-select.show-menu-arrow.open > .dropdown-toggle, +.bootstrap-select.show-menu-arrow.show > .dropdown-toggle { + z-index: 1061; +} +.bootstrap-select.show-menu-arrow .dropdown-toggle .filter-option:before { + content: ''; + border-left: 7px solid transparent; + border-right: 7px solid transparent; + border-bottom: 7px solid rgba(204, 204, 204, 0.2); + position: absolute; + bottom: -4px; + left: 9px; + display: none; +} +.bootstrap-select.show-menu-arrow .dropdown-toggle .filter-option:after { + content: ''; + border-left: 6px solid transparent; + border-right: 6px solid transparent; + border-bottom: 6px solid white; + position: absolute; + bottom: -4px; + left: 10px; + display: none; +} +.bootstrap-select.show-menu-arrow.dropup .dropdown-toggle .filter-option:before { + bottom: auto; + top: -4px; + border-top: 7px solid rgba(204, 204, 204, 0.2); + border-bottom: 0; +} +.bootstrap-select.show-menu-arrow.dropup .dropdown-toggle .filter-option:after { + bottom: auto; + top: -4px; + border-top: 6px solid white; + border-bottom: 0; +} +.bootstrap-select.show-menu-arrow.pull-right .dropdown-toggle .filter-option:before { + right: 12px; + left: auto; +} +.bootstrap-select.show-menu-arrow.pull-right .dropdown-toggle .filter-option:after { + right: 13px; + left: auto; +} +.bootstrap-select.show-menu-arrow.open > .dropdown-toggle .filter-option:before, +.bootstrap-select.show-menu-arrow.show > .dropdown-toggle .filter-option:before, +.bootstrap-select.show-menu-arrow.open > .dropdown-toggle .filter-option:after, +.bootstrap-select.show-menu-arrow.show > .dropdown-toggle .filter-option:after { + display: block; +} +.bs-searchbox, +.bs-actionsbox, +.bs-donebutton { + padding: 4px 8px; +} +.bs-actionsbox { + width: 100%; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; +} +.bs-actionsbox .btn-group button { + width: 50%; +} +.bs-donebutton { + float: left; + width: 100%; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; +} +.bs-donebutton .btn-group button { + width: 100%; +} +.bs-searchbox + .bs-actionsbox { + padding: 0 8px 4px; +} +.bs-searchbox .form-control { + margin-bottom: 0; + width: 100%; + float: none; +} diff --git a/alive-admin/target/classes/static/ajax/libs/bootstrap-select/bootstrap-select.js b/alive-admin/target/classes/static/ajax/libs/bootstrap-select/bootstrap-select.js new file mode 100644 index 0000000..d25d751 --- /dev/null +++ b/alive-admin/target/classes/static/ajax/libs/bootstrap-select/bootstrap-select.js @@ -0,0 +1,3247 @@ +/*! + * Bootstrap-select v1.13.18 (https://developer.snapappointments.com/bootstrap-select) + * + * Copyright 2012-2020 SnapAppointments, LLC + * Licensed under MIT (https://github.com/snapappointments/bootstrap-select/blob/master/LICENSE) + */ + +(function (root, factory) { + if (root === undefined && window !== undefined) root = window; + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module unless amdModuleId is set + define(["jquery"], function (a0) { + return (factory(a0)); + }); + } else if (typeof module === 'object' && module.exports) { + // Node. Does not work with strict CommonJS, but + // only CommonJS-like environments that support module.exports, + // like Node. + module.exports = factory(require("jquery")); + } else { + factory(root["jQuery"]); + } +}(this, function (jQuery) { + +(function ($) { + 'use strict'; + + var DISALLOWED_ATTRIBUTES = ['sanitize', 'whiteList', 'sanitizeFn']; + + var uriAttrs = [ + 'background', + 'cite', + 'href', + 'itemtype', + 'longdesc', + 'poster', + 'src', + 'xlink:href' + ]; + + var ARIA_ATTRIBUTE_PATTERN = /^aria-[\w-]*$/i; + + var DefaultWhitelist = { + // Global attributes allowed on any supplied element below. + '*': ['class', 'dir', 'id', 'lang', 'role', 'tabindex', 'style', ARIA_ATTRIBUTE_PATTERN], + a: ['target', 'href', 'title', 'rel'], + area: [], + b: [], + br: [], + col: [], + code: [], + div: [], + em: [], + hr: [], + h1: [], + h2: [], + h3: [], + h4: [], + h5: [], + h6: [], + i: [], + img: ['src', 'alt', 'title', 'width', 'height'], + li: [], + ol: [], + p: [], + pre: [], + s: [], + small: [], + span: [], + sub: [], + sup: [], + strong: [], + u: [], + ul: [] + } + + /** + * A pattern that recognizes a commonly useful subset of URLs that are safe. + * + * Shoutout to Angular 7 https://github.com/angular/angular/blob/7.2.4/packages/core/src/sanitization/url_sanitizer.ts + */ + var SAFE_URL_PATTERN = /^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi; + + /** + * A pattern that matches safe data URLs. Only matches image, video and audio types. + * + * Shoutout to Angular 7 https://github.com/angular/angular/blob/7.2.4/packages/core/src/sanitization/url_sanitizer.ts + */ + var DATA_URL_PATTERN = /^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i; + + function allowedAttribute (attr, allowedAttributeList) { + var attrName = attr.nodeName.toLowerCase() + + if ($.inArray(attrName, allowedAttributeList) !== -1) { + if ($.inArray(attrName, uriAttrs) !== -1) { + return Boolean(attr.nodeValue.match(SAFE_URL_PATTERN) || attr.nodeValue.match(DATA_URL_PATTERN)) + } + + return true + } + + var regExp = $(allowedAttributeList).filter(function (index, value) { + return value instanceof RegExp + }) + + // Check if a regular expression validates the attribute. + for (var i = 0, l = regExp.length; i < l; i++) { + if (attrName.match(regExp[i])) { + return true + } + } + + return false + } + + function sanitizeHtml (unsafeElements, whiteList, sanitizeFn) { + if (sanitizeFn && typeof sanitizeFn === 'function') { + return sanitizeFn(unsafeElements); + } + + var whitelistKeys = Object.keys(whiteList); + + for (var i = 0, len = unsafeElements.length; i < len; i++) { + var elements = unsafeElements[i].querySelectorAll('*'); + + for (var j = 0, len2 = elements.length; j < len2; j++) { + var el = elements[j]; + var elName = el.nodeName.toLowerCase(); + + if (whitelistKeys.indexOf(elName) === -1) { + el.parentNode.removeChild(el); + + continue; + } + + var attributeList = [].slice.call(el.attributes); + var whitelistedAttributes = [].concat(whiteList['*'] || [], whiteList[elName] || []); + + for (var k = 0, len3 = attributeList.length; k < len3; k++) { + var attr = attributeList[k]; + + if (!allowedAttribute(attr, whitelistedAttributes)) { + el.removeAttribute(attr.nodeName); + } + } + } + } + } + + // Polyfill for browsers with no classList support + // Remove in v2 + if (!('classList' in document.createElement('_'))) { + (function (view) { + if (!('Element' in view)) return; + + var classListProp = 'classList', + protoProp = 'prototype', + elemCtrProto = view.Element[protoProp], + objCtr = Object, + classListGetter = function () { + var $elem = $(this); + + return { + add: function (classes) { + classes = Array.prototype.slice.call(arguments).join(' '); + return $elem.addClass(classes); + }, + remove: function (classes) { + classes = Array.prototype.slice.call(arguments).join(' '); + return $elem.removeClass(classes); + }, + toggle: function (classes, force) { + return $elem.toggleClass(classes, force); + }, + contains: function (classes) { + return $elem.hasClass(classes); + } + } + }; + + if (objCtr.defineProperty) { + var classListPropDesc = { + get: classListGetter, + enumerable: true, + configurable: true + }; + try { + objCtr.defineProperty(elemCtrProto, classListProp, classListPropDesc); + } catch (ex) { // IE 8 doesn't support enumerable:true + // adding undefined to fight this issue https://github.com/eligrey/classList.js/issues/36 + // modernie IE8-MSW7 machine has IE8 8.0.6001.18702 and is affected + if (ex.number === undefined || ex.number === -0x7FF5EC54) { + classListPropDesc.enumerable = false; + objCtr.defineProperty(elemCtrProto, classListProp, classListPropDesc); + } + } + } else if (objCtr[protoProp].__defineGetter__) { + elemCtrProto.__defineGetter__(classListProp, classListGetter); + } + }(window)); + } + + var testElement = document.createElement('_'); + + testElement.classList.add('c1', 'c2'); + + if (!testElement.classList.contains('c2')) { + var _add = DOMTokenList.prototype.add, + _remove = DOMTokenList.prototype.remove; + + DOMTokenList.prototype.add = function () { + Array.prototype.forEach.call(arguments, _add.bind(this)); + } + + DOMTokenList.prototype.remove = function () { + Array.prototype.forEach.call(arguments, _remove.bind(this)); + } + } + + testElement.classList.toggle('c3', false); + + // Polyfill for IE 10 and Firefox <24, where classList.toggle does not + // support the second argument. + if (testElement.classList.contains('c3')) { + var _toggle = DOMTokenList.prototype.toggle; + + DOMTokenList.prototype.toggle = function (token, force) { + if (1 in arguments && !this.contains(token) === !force) { + return force; + } else { + return _toggle.call(this, token); + } + }; + } + + testElement = null; + + // shallow array comparison + function isEqual (array1, array2) { + return array1.length === array2.length && array1.every(function (element, index) { + return element === array2[index]; + }); + }; + + // + if (!String.prototype.startsWith) { + (function () { + 'use strict'; // needed to support `apply`/`call` with `undefined`/`null` + var defineProperty = (function () { + // IE 8 only supports `Object.defineProperty` on DOM elements + try { + var object = {}; + var $defineProperty = Object.defineProperty; + var result = $defineProperty(object, object, object) && $defineProperty; + } catch (error) { + } + return result; + }()); + var toString = {}.toString; + var startsWith = function (search) { + if (this == null) { + throw new TypeError(); + } + var string = String(this); + if (search && toString.call(search) == '[object RegExp]') { + throw new TypeError(); + } + var stringLength = string.length; + var searchString = String(search); + var searchLength = searchString.length; + var position = arguments.length > 1 ? arguments[1] : undefined; + // `ToInteger` + var pos = position ? Number(position) : 0; + if (pos != pos) { // better `isNaN` + pos = 0; + } + var start = Math.min(Math.max(pos, 0), stringLength); + // Avoid the `indexOf` call if no match is possible + if (searchLength + start > stringLength) { + return false; + } + var index = -1; + while (++index < searchLength) { + if (string.charCodeAt(start + index) != searchString.charCodeAt(index)) { + return false; + } + } + return true; + }; + if (defineProperty) { + defineProperty(String.prototype, 'startsWith', { + 'value': startsWith, + 'configurable': true, + 'writable': true + }); + } else { + String.prototype.startsWith = startsWith; + } + }()); + } + + if (!Object.keys) { + Object.keys = function ( + o, // object + k, // key + r // result array + ) { + // initialize object and result + r = []; + // iterate over object keys + for (k in o) { + // fill result array with non-prototypical keys + r.hasOwnProperty.call(o, k) && r.push(k); + } + // return result + return r; + }; + } + + if (HTMLSelectElement && !HTMLSelectElement.prototype.hasOwnProperty('selectedOptions')) { + Object.defineProperty(HTMLSelectElement.prototype, 'selectedOptions', { + get: function () { + return this.querySelectorAll(':checked'); + } + }); + } + + function getSelectedOptions (select, ignoreDisabled) { + var selectedOptions = select.selectedOptions, + options = [], + opt; + + if (ignoreDisabled) { + for (var i = 0, len = selectedOptions.length; i < len; i++) { + opt = selectedOptions[i]; + + if (!(opt.disabled || opt.parentNode.tagName === 'OPTGROUP' && opt.parentNode.disabled)) { + options.push(opt); + } + } + + return options; + } + + return selectedOptions; + } + + // much faster than $.val() + function getSelectValues (select, selectedOptions) { + var value = [], + options = selectedOptions || select.selectedOptions, + opt; + + for (var i = 0, len = options.length; i < len; i++) { + opt = options[i]; + + if (!(opt.disabled || opt.parentNode.tagName === 'OPTGROUP' && opt.parentNode.disabled)) { + value.push(opt.value); + } + } + + if (!select.multiple) { + return !value.length ? null : value[0]; + } + + return value; + } + + // set data-selected on select element if the value has been programmatically selected + // prior to initialization of bootstrap-select + // * consider removing or replacing an alternative method * + var valHooks = { + useDefault: false, + _set: $.valHooks.select.set + }; + + $.valHooks.select.set = function (elem, value) { + if (value && !valHooks.useDefault) $(elem).data('selected', true); + + return valHooks._set.apply(this, arguments); + }; + + var changedArguments = null; + + var EventIsSupported = (function () { + try { + new Event('change'); + return true; + } catch (e) { + return false; + } + })(); + + $.fn.triggerNative = function (eventName) { + var el = this[0], + event; + + if (el.dispatchEvent) { // for modern browsers & IE9+ + if (EventIsSupported) { + // For modern browsers + event = new Event(eventName, { + bubbles: true + }); + } else { + // For IE since it doesn't support Event constructor + event = document.createEvent('Event'); + event.initEvent(eventName, true, false); + } + + el.dispatchEvent(event); + } else if (el.fireEvent) { // for IE8 + event = document.createEventObject(); + event.eventType = eventName; + el.fireEvent('on' + eventName, event); + } else { + // fall back to jQuery.trigger + this.trigger(eventName); + } + }; + // + + function stringSearch (li, searchString, method, normalize) { + var stringTypes = [ + 'display', + 'subtext', + 'tokens' + ], + searchSuccess = false; + + for (var i = 0; i < stringTypes.length; i++) { + var stringType = stringTypes[i], + string = li[stringType]; + + if (string) { + string = string.toString(); + + // Strip HTML tags. This isn't perfect, but it's much faster than any other method + if (stringType === 'display') { + string = string.replace(/<[^>]+>/g, ''); + } + + if (normalize) string = normalizeToBase(string); + string = string.toUpperCase(); + + if (method === 'contains') { + searchSuccess = string.indexOf(searchString) >= 0; + } else { + searchSuccess = string.startsWith(searchString); + } + + if (searchSuccess) break; + } + } + + return searchSuccess; + } + + function toInteger (value) { + return parseInt(value, 10) || 0; + } + + // Borrowed from Lodash (_.deburr) + /** Used to map Latin Unicode letters to basic Latin letters. */ + var deburredLetters = { + // Latin-1 Supplement block. + '\xc0': 'A', '\xc1': 'A', '\xc2': 'A', '\xc3': 'A', '\xc4': 'A', '\xc5': 'A', + '\xe0': 'a', '\xe1': 'a', '\xe2': 'a', '\xe3': 'a', '\xe4': 'a', '\xe5': 'a', + '\xc7': 'C', '\xe7': 'c', + '\xd0': 'D', '\xf0': 'd', + '\xc8': 'E', '\xc9': 'E', '\xca': 'E', '\xcb': 'E', + '\xe8': 'e', '\xe9': 'e', '\xea': 'e', '\xeb': 'e', + '\xcc': 'I', '\xcd': 'I', '\xce': 'I', '\xcf': 'I', + '\xec': 'i', '\xed': 'i', '\xee': 'i', '\xef': 'i', + '\xd1': 'N', '\xf1': 'n', + '\xd2': 'O', '\xd3': 'O', '\xd4': 'O', '\xd5': 'O', '\xd6': 'O', '\xd8': 'O', + '\xf2': 'o', '\xf3': 'o', '\xf4': 'o', '\xf5': 'o', '\xf6': 'o', '\xf8': 'o', + '\xd9': 'U', '\xda': 'U', '\xdb': 'U', '\xdc': 'U', + '\xf9': 'u', '\xfa': 'u', '\xfb': 'u', '\xfc': 'u', + '\xdd': 'Y', '\xfd': 'y', '\xff': 'y', + '\xc6': 'Ae', '\xe6': 'ae', + '\xde': 'Th', '\xfe': 'th', + '\xdf': 'ss', + // Latin Extended-A block. + '\u0100': 'A', '\u0102': 'A', '\u0104': 'A', + '\u0101': 'a', '\u0103': 'a', '\u0105': 'a', + '\u0106': 'C', '\u0108': 'C', '\u010a': 'C', '\u010c': 'C', + '\u0107': 'c', '\u0109': 'c', '\u010b': 'c', '\u010d': 'c', + '\u010e': 'D', '\u0110': 'D', '\u010f': 'd', '\u0111': 'd', + '\u0112': 'E', '\u0114': 'E', '\u0116': 'E', '\u0118': 'E', '\u011a': 'E', + '\u0113': 'e', '\u0115': 'e', '\u0117': 'e', '\u0119': 'e', '\u011b': 'e', + '\u011c': 'G', '\u011e': 'G', '\u0120': 'G', '\u0122': 'G', + '\u011d': 'g', '\u011f': 'g', '\u0121': 'g', '\u0123': 'g', + '\u0124': 'H', '\u0126': 'H', '\u0125': 'h', '\u0127': 'h', + '\u0128': 'I', '\u012a': 'I', '\u012c': 'I', '\u012e': 'I', '\u0130': 'I', + '\u0129': 'i', '\u012b': 'i', '\u012d': 'i', '\u012f': 'i', '\u0131': 'i', + '\u0134': 'J', '\u0135': 'j', + '\u0136': 'K', '\u0137': 'k', '\u0138': 'k', + '\u0139': 'L', '\u013b': 'L', '\u013d': 'L', '\u013f': 'L', '\u0141': 'L', + '\u013a': 'l', '\u013c': 'l', '\u013e': 'l', '\u0140': 'l', '\u0142': 'l', + '\u0143': 'N', '\u0145': 'N', '\u0147': 'N', '\u014a': 'N', + '\u0144': 'n', '\u0146': 'n', '\u0148': 'n', '\u014b': 'n', + '\u014c': 'O', '\u014e': 'O', '\u0150': 'O', + '\u014d': 'o', '\u014f': 'o', '\u0151': 'o', + '\u0154': 'R', '\u0156': 'R', '\u0158': 'R', + '\u0155': 'r', '\u0157': 'r', '\u0159': 'r', + '\u015a': 'S', '\u015c': 'S', '\u015e': 'S', '\u0160': 'S', + '\u015b': 's', '\u015d': 's', '\u015f': 's', '\u0161': 's', + '\u0162': 'T', '\u0164': 'T', '\u0166': 'T', + '\u0163': 't', '\u0165': 't', '\u0167': 't', + '\u0168': 'U', '\u016a': 'U', '\u016c': 'U', '\u016e': 'U', '\u0170': 'U', '\u0172': 'U', + '\u0169': 'u', '\u016b': 'u', '\u016d': 'u', '\u016f': 'u', '\u0171': 'u', '\u0173': 'u', + '\u0174': 'W', '\u0175': 'w', + '\u0176': 'Y', '\u0177': 'y', '\u0178': 'Y', + '\u0179': 'Z', '\u017b': 'Z', '\u017d': 'Z', + '\u017a': 'z', '\u017c': 'z', '\u017e': 'z', + '\u0132': 'IJ', '\u0133': 'ij', + '\u0152': 'Oe', '\u0153': 'oe', + '\u0149': "'n", '\u017f': 's' + }; + + /** Used to match Latin Unicode letters (excluding mathematical operators). */ + var reLatin = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g; + + /** Used to compose unicode character classes. */ + var rsComboMarksRange = '\\u0300-\\u036f', + reComboHalfMarksRange = '\\ufe20-\\ufe2f', + rsComboSymbolsRange = '\\u20d0-\\u20ff', + rsComboMarksExtendedRange = '\\u1ab0-\\u1aff', + rsComboMarksSupplementRange = '\\u1dc0-\\u1dff', + rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange + rsComboMarksExtendedRange + rsComboMarksSupplementRange; + + /** Used to compose unicode capture groups. */ + var rsCombo = '[' + rsComboRange + ']'; + + /** + * Used to match [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks) and + * [combining diacritical marks for symbols](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks_for_Symbols). + */ + var reComboMark = RegExp(rsCombo, 'g'); + + function deburrLetter (key) { + return deburredLetters[key]; + }; + + function normalizeToBase (string) { + string = string.toString(); + return string && string.replace(reLatin, deburrLetter).replace(reComboMark, ''); + } + + // List of HTML entities for escaping. + var escapeMap = { + '&': '&', + '<': '<', + '>': '>', + '"': '"', + "'": ''', + '`': '`' + }; + + // Functions for escaping and unescaping strings to/from HTML interpolation. + var createEscaper = function (map) { + var escaper = function (match) { + return map[match]; + }; + // Regexes for identifying a key that needs to be escaped. + var source = '(?:' + Object.keys(map).join('|') + ')'; + var testRegexp = RegExp(source); + var replaceRegexp = RegExp(source, 'g'); + return function (string) { + string = string == null ? '' : '' + string; + return testRegexp.test(string) ? string.replace(replaceRegexp, escaper) : string; + }; + }; + + var htmlEscape = createEscaper(escapeMap); + + /** + * ------------------------------------------------------------------------ + * Constants + * ------------------------------------------------------------------------ + */ + + var keyCodeMap = { + 32: ' ', + 48: '0', + 49: '1', + 50: '2', + 51: '3', + 52: '4', + 53: '5', + 54: '6', + 55: '7', + 56: '8', + 57: '9', + 59: ';', + 65: 'A', + 66: 'B', + 67: 'C', + 68: 'D', + 69: 'E', + 70: 'F', + 71: 'G', + 72: 'H', + 73: 'I', + 74: 'J', + 75: 'K', + 76: 'L', + 77: 'M', + 78: 'N', + 79: 'O', + 80: 'P', + 81: 'Q', + 82: 'R', + 83: 'S', + 84: 'T', + 85: 'U', + 86: 'V', + 87: 'W', + 88: 'X', + 89: 'Y', + 90: 'Z', + 96: '0', + 97: '1', + 98: '2', + 99: '3', + 100: '4', + 101: '5', + 102: '6', + 103: '7', + 104: '8', + 105: '9' + }; + + var keyCodes = { + ESCAPE: 27, // KeyboardEvent.which value for Escape (Esc) key + ENTER: 13, // KeyboardEvent.which value for Enter key + SPACE: 32, // KeyboardEvent.which value for space key + TAB: 9, // KeyboardEvent.which value for tab key + ARROW_UP: 38, // KeyboardEvent.which value for up arrow key + ARROW_DOWN: 40 // KeyboardEvent.which value for down arrow key + } + + var version = { + success: false, + major: '3' + }; + + try { + version.full = ($.fn.dropdown.Constructor.VERSION || '').split(' ')[0].split('.'); + version.major = version.full[0]; + version.success = true; + } catch (err) { + // do nothing + } + + var selectId = 0; + + var EVENT_KEY = '.bs.select'; + + var classNames = { + DISABLED: 'disabled', + DIVIDER: 'divider', + SHOW: 'open', + DROPUP: 'dropup', + MENU: 'dropdown-menu', + MENURIGHT: 'dropdown-menu-right', + MENULEFT: 'dropdown-menu-left', + // to-do: replace with more advanced template/customization options + BUTTONCLASS: 'btn-default', + POPOVERHEADER: 'popover-title', + ICONBASE: 'glyphicon', + TICKICON: 'glyphicon-ok' + } + + var Selector = { + MENU: '.' + classNames.MENU + } + + var elementTemplates = { + div: document.createElement('div'), + span: document.createElement('span'), + i: document.createElement('i'), + subtext: document.createElement('small'), + a: document.createElement('a'), + li: document.createElement('li'), + whitespace: document.createTextNode('\u00A0'), + fragment: document.createDocumentFragment() + } + + elementTemplates.noResults = elementTemplates.li.cloneNode(false); + elementTemplates.noResults.className = 'no-results'; + + elementTemplates.a.setAttribute('role', 'option'); + elementTemplates.a.className = 'dropdown-item'; + + elementTemplates.subtext.className = 'text-muted'; + + elementTemplates.text = elementTemplates.span.cloneNode(false); + elementTemplates.text.className = 'text'; + + elementTemplates.checkMark = elementTemplates.span.cloneNode(false); + + var REGEXP_ARROW = new RegExp(keyCodes.ARROW_UP + '|' + keyCodes.ARROW_DOWN); + var REGEXP_TAB_OR_ESCAPE = new RegExp('^' + keyCodes.TAB + '$|' + keyCodes.ESCAPE); + + var generateOption = { + li: function (content, classes, optgroup) { + var li = elementTemplates.li.cloneNode(false); + + if (content) { + if (content.nodeType === 1 || content.nodeType === 11) { + li.appendChild(content); + } else { + li.innerHTML = content; + } + } + + if (typeof classes !== 'undefined' && classes !== '') li.className = classes; + if (typeof optgroup !== 'undefined' && optgroup !== null) li.classList.add('optgroup-' + optgroup); + + return li; + }, + + a: function (text, classes, inline) { + var a = elementTemplates.a.cloneNode(true); + + if (text) { + if (text.nodeType === 11) { + a.appendChild(text); + } else { + a.insertAdjacentHTML('beforeend', text); + } + } + + if (typeof classes !== 'undefined' && classes !== '') a.classList.add.apply(a.classList, classes.split(/\s+/)); + if (inline) a.setAttribute('style', inline); + + return a; + }, + + text: function (options, useFragment) { + var textElement = elementTemplates.text.cloneNode(false), + subtextElement, + iconElement; + + if (options.content) { + textElement.innerHTML = options.content; + } else { + textElement.textContent = options.text; + + if (options.icon) { + var whitespace = elementTemplates.whitespace.cloneNode(false); + + // need to use for icons in the button to prevent a breaking change + // note: switch to span in next major release + iconElement = (useFragment === true ? elementTemplates.i : elementTemplates.span).cloneNode(false); + iconElement.className = this.options.iconBase + ' ' + options.icon; + + elementTemplates.fragment.appendChild(iconElement); + elementTemplates.fragment.appendChild(whitespace); + } + + if (options.subtext) { + subtextElement = elementTemplates.subtext.cloneNode(false); + subtextElement.textContent = options.subtext; + textElement.appendChild(subtextElement); + } + } + + if (useFragment === true) { + while (textElement.childNodes.length > 0) { + elementTemplates.fragment.appendChild(textElement.childNodes[0]); + } + } else { + elementTemplates.fragment.appendChild(textElement); + } + + return elementTemplates.fragment; + }, + + label: function (options) { + var textElement = elementTemplates.text.cloneNode(false), + subtextElement, + iconElement; + + textElement.innerHTML = options.display; + + if (options.icon) { + var whitespace = elementTemplates.whitespace.cloneNode(false); + + iconElement = elementTemplates.span.cloneNode(false); + iconElement.className = this.options.iconBase + ' ' + options.icon; + + elementTemplates.fragment.appendChild(iconElement); + elementTemplates.fragment.appendChild(whitespace); + } + + if (options.subtext) { + subtextElement = elementTemplates.subtext.cloneNode(false); + subtextElement.textContent = options.subtext; + textElement.appendChild(subtextElement); + } + + elementTemplates.fragment.appendChild(textElement); + + return elementTemplates.fragment; + } + } + + function showNoResults (searchMatch, searchValue) { + if (!searchMatch.length) { + elementTemplates.noResults.innerHTML = this.options.noneResultsText.replace('{0}', '"' + htmlEscape(searchValue) + '"'); + this.$menuInner[0].firstChild.appendChild(elementTemplates.noResults); + } + } + + var Selectpicker = function (element, options) { + var that = this; + + // bootstrap-select has been initialized - revert valHooks.select.set back to its original function + if (!valHooks.useDefault) { + $.valHooks.select.set = valHooks._set; + valHooks.useDefault = true; + } + + this.$element = $(element); + this.$newElement = null; + this.$button = null; + this.$menu = null; + this.options = options; + this.selectpicker = { + main: {}, + search: {}, + current: {}, // current changes if a search is in progress + view: {}, + isSearching: false, + keydown: { + keyHistory: '', + resetKeyHistory: { + start: function () { + return setTimeout(function () { + that.selectpicker.keydown.keyHistory = ''; + }, 800); + } + } + } + }; + + this.sizeInfo = {}; + + // If we have no title yet, try to pull it from the html title attribute (jQuery doesnt' pick it up as it's not a + // data-attribute) + if (this.options.title === null) { + this.options.title = this.$element.attr('title'); + } + + // Format window padding + var winPad = this.options.windowPadding; + if (typeof winPad === 'number') { + this.options.windowPadding = [winPad, winPad, winPad, winPad]; + } + + // Expose public methods + this.val = Selectpicker.prototype.val; + this.render = Selectpicker.prototype.render; + this.refresh = Selectpicker.prototype.refresh; + this.setStyle = Selectpicker.prototype.setStyle; + this.selectAll = Selectpicker.prototype.selectAll; + this.deselectAll = Selectpicker.prototype.deselectAll; + this.destroy = Selectpicker.prototype.destroy; + this.remove = Selectpicker.prototype.remove; + this.show = Selectpicker.prototype.show; + this.hide = Selectpicker.prototype.hide; + + this.init(); + }; + + Selectpicker.VERSION = '1.13.18'; + + // part of this is duplicated in i18n/defaults-en_US.js. Make sure to update both. + Selectpicker.DEFAULTS = { + noneSelectedText: 'Nothing selected', + noneResultsText: 'No results matched {0}', + countSelectedText: function (numSelected, numTotal) { + return (numSelected == 1) ? '{0} item selected' : '{0} items selected'; + }, + maxOptionsText: function (numAll, numGroup) { + return [ + (numAll == 1) ? 'Limit reached ({n} item max)' : 'Limit reached ({n} items max)', + (numGroup == 1) ? 'Group limit reached ({n} item max)' : 'Group limit reached ({n} items max)' + ]; + }, + selectAllText: 'Select All', + deselectAllText: 'Deselect All', + doneButton: false, + doneButtonText: 'Close', + multipleSeparator: ', ', + styleBase: 'btn', + style: classNames.BUTTONCLASS, + size: 'auto', + title: null, + selectedTextFormat: 'values', + width: false, + container: false, + hideDisabled: false, + showSubtext: false, + showIcon: true, + showContent: true, + dropupAuto: true, + header: false, + liveSearch: false, + liveSearchPlaceholder: null, + liveSearchNormalize: false, + liveSearchStyle: 'contains', + actionsBox: false, + iconBase: classNames.ICONBASE, + tickIcon: classNames.TICKICON, + showTick: false, + template: { + caret: '' + }, + maxOptions: false, + mobile: false, + selectOnTab: false, + dropdownAlignRight: false, + windowPadding: 0, + virtualScroll: 600, + display: false, + sanitize: true, + sanitizeFn: null, + whiteList: DefaultWhitelist + }; + + Selectpicker.prototype = { + + constructor: Selectpicker, + + init: function () { + var that = this, + id = this.$element.attr('id'), + element = this.$element[0], + form = element.form; + + selectId++; + this.selectId = 'bs-select-' + selectId; + + element.classList.add('bs-select-hidden'); + + this.multiple = this.$element.prop('multiple'); + this.autofocus = this.$element.prop('autofocus'); + + if (element.classList.contains('show-tick')) { + this.options.showTick = true; + } + + this.$newElement = this.createDropdown(); + this.buildData(); + this.$element + .after(this.$newElement) + .prependTo(this.$newElement); + + // ensure select is associated with form element if it got unlinked after moving it inside newElement + if (form && element.form === null) { + if (!form.id) form.id = 'form-' + this.selectId; + element.setAttribute('form', form.id); + } + + this.$button = this.$newElement.children('button'); + this.$menu = this.$newElement.children(Selector.MENU); + this.$menuInner = this.$menu.children('.inner'); + this.$searchbox = this.$menu.find('input'); + + element.classList.remove('bs-select-hidden'); + + if (this.options.dropdownAlignRight === true) this.$menu[0].classList.add(classNames.MENURIGHT); + + if (typeof id !== 'undefined') { + this.$button.attr('data-id', id); + } + + this.checkDisabled(); + this.clickListener(); + + if (this.options.liveSearch) { + this.liveSearchListener(); + this.focusedParent = this.$searchbox[0]; + } else { + this.focusedParent = this.$menuInner[0]; + } + + this.setStyle(); + this.render(); + this.setWidth(); + if (this.options.container) { + this.selectPosition(); + } else { + this.$element.on('hide' + EVENT_KEY, function () { + if (that.isVirtual()) { + // empty menu on close + var menuInner = that.$menuInner[0], + emptyMenu = menuInner.firstChild.cloneNode(false); + + // replace the existing UL with an empty one - this is faster than $.empty() or innerHTML = '' + menuInner.replaceChild(emptyMenu, menuInner.firstChild); + menuInner.scrollTop = 0; + } + }); + } + this.$menu.data('this', this); + this.$newElement.data('this', this); + if (this.options.mobile) this.mobile(); + + this.$newElement.on({ + 'hide.bs.dropdown': function (e) { + that.$element.trigger('hide' + EVENT_KEY, e); + }, + 'hidden.bs.dropdown': function (e) { + that.$element.trigger('hidden' + EVENT_KEY, e); + }, + 'show.bs.dropdown': function (e) { + that.$element.trigger('show' + EVENT_KEY, e); + }, + 'shown.bs.dropdown': function (e) { + that.$element.trigger('shown' + EVENT_KEY, e); + } + }); + + if (element.hasAttribute('required')) { + this.$element.on('invalid' + EVENT_KEY, function () { + that.$button[0].classList.add('bs-invalid'); + + that.$element + .on('shown' + EVENT_KEY + '.invalid', function () { + that.$element + .val(that.$element.val()) // set the value to hide the validation message in Chrome when menu is opened + .off('shown' + EVENT_KEY + '.invalid'); + }) + .on('rendered' + EVENT_KEY, function () { + // if select is no longer invalid, remove the bs-invalid class + if (this.validity.valid) that.$button[0].classList.remove('bs-invalid'); + that.$element.off('rendered' + EVENT_KEY); + }); + + that.$button.on('blur' + EVENT_KEY, function () { + that.$element.trigger('focus').trigger('blur'); + that.$button.off('blur' + EVENT_KEY); + }); + }); + } + + setTimeout(function () { + that.buildList(); + that.$element.trigger('loaded' + EVENT_KEY); + }); + }, + + createDropdown: function () { + // Options + // If we are multiple or showTick option is set, then add the show-tick class + var showTick = (this.multiple || this.options.showTick) ? ' show-tick' : '', + multiselectable = this.multiple ? ' aria-multiselectable="true"' : '', + inputGroup = '', + autofocus = this.autofocus ? ' autofocus' : ''; + + if (version.major < 4 && this.$element.parent().hasClass('input-group')) { + inputGroup = ' input-group-btn'; + } + + // Elements + var drop, + header = '', + searchbox = '', + actionsbox = '', + donebutton = ''; + + if (this.options.header) { + header = + '
                                                                                                                                                                                                                                                                                                          ' + + '' + + this.options.header + + '
                                                                                                                                                                                                                                                                                                          '; + } + + if (this.options.liveSearch) { + searchbox = + ''; + } + + if (this.multiple && this.options.actionsBox) { + actionsbox = + '
                                                                                                                                                                                                                                                                                                          ' + + '
                                                                                                                                                                                                                                                                                                          ' + + '' + + '' + + '
                                                                                                                                                                                                                                                                                                          ' + + '
                                                                                                                                                                                                                                                                                                          '; + } + + if (this.multiple && this.options.doneButton) { + donebutton = + '
                                                                                                                                                                                                                                                                                                          ' + + '
                                                                                                                                                                                                                                                                                                          ' + + '' + + '
                                                                                                                                                                                                                                                                                                          ' + + '
                                                                                                                                                                                                                                                                                                          '; + } + + drop = + ''; + + return $(drop); + }, + + setPositionData: function () { + this.selectpicker.view.canHighlight = []; + this.selectpicker.view.size = 0; + this.selectpicker.view.firstHighlightIndex = false; + + for (var i = 0; i < this.selectpicker.current.data.length; i++) { + var li = this.selectpicker.current.data[i], + canHighlight = true; + + if (li.type === 'divider') { + canHighlight = false; + li.height = this.sizeInfo.dividerHeight; + } else if (li.type === 'optgroup-label') { + canHighlight = false; + li.height = this.sizeInfo.dropdownHeaderHeight; + } else { + li.height = this.sizeInfo.liHeight; + } + + if (li.disabled) canHighlight = false; + + this.selectpicker.view.canHighlight.push(canHighlight); + + if (canHighlight) { + this.selectpicker.view.size++; + li.posinset = this.selectpicker.view.size; + if (this.selectpicker.view.firstHighlightIndex === false) this.selectpicker.view.firstHighlightIndex = i; + } + + li.position = (i === 0 ? 0 : this.selectpicker.current.data[i - 1].position) + li.height; + } + }, + + isVirtual: function () { + return (this.options.virtualScroll !== false) && (this.selectpicker.main.elements.length >= this.options.virtualScroll) || this.options.virtualScroll === true; + }, + + createView: function (isSearching, setSize, refresh) { + var that = this, + scrollTop = 0, + active = [], + selected, + prevActive; + + this.selectpicker.isSearching = isSearching; + this.selectpicker.current = isSearching ? this.selectpicker.search : this.selectpicker.main; + + this.setPositionData(); + + if (setSize) { + if (refresh) { + scrollTop = this.$menuInner[0].scrollTop; + } else if (!that.multiple) { + var element = that.$element[0], + selectedIndex = (element.options[element.selectedIndex] || {}).liIndex; + + if (typeof selectedIndex === 'number' && that.options.size !== false) { + var selectedData = that.selectpicker.main.data[selectedIndex], + position = selectedData && selectedData.position; + + if (position) { + scrollTop = position - ((that.sizeInfo.menuInnerHeight + that.sizeInfo.liHeight) / 2); + } + } + } + } + + scroll(scrollTop, true); + + this.$menuInner.off('scroll.createView').on('scroll.createView', function (e, updateValue) { + if (!that.noScroll) scroll(this.scrollTop, updateValue); + that.noScroll = false; + }); + + function scroll (scrollTop, init) { + var size = that.selectpicker.current.elements.length, + chunks = [], + chunkSize, + chunkCount, + firstChunk, + lastChunk, + currentChunk, + prevPositions, + positionIsDifferent, + previousElements, + menuIsDifferent = true, + isVirtual = that.isVirtual(); + + that.selectpicker.view.scrollTop = scrollTop; + + chunkSize = Math.ceil(that.sizeInfo.menuInnerHeight / that.sizeInfo.liHeight * 1.5); // number of options in a chunk + chunkCount = Math.round(size / chunkSize) || 1; // number of chunks + + for (var i = 0; i < chunkCount; i++) { + var endOfChunk = (i + 1) * chunkSize; + + if (i === chunkCount - 1) { + endOfChunk = size; + } + + chunks[i] = [ + (i) * chunkSize + (!i ? 0 : 1), + endOfChunk + ]; + + if (!size) break; + + if (currentChunk === undefined && scrollTop - 1 <= that.selectpicker.current.data[endOfChunk - 1].position - that.sizeInfo.menuInnerHeight) { + currentChunk = i; + } + } + + if (currentChunk === undefined) currentChunk = 0; + + prevPositions = [that.selectpicker.view.position0, that.selectpicker.view.position1]; + + // always display previous, current, and next chunks + firstChunk = Math.max(0, currentChunk - 1); + lastChunk = Math.min(chunkCount - 1, currentChunk + 1); + + that.selectpicker.view.position0 = isVirtual === false ? 0 : (Math.max(0, chunks[firstChunk][0]) || 0); + that.selectpicker.view.position1 = isVirtual === false ? size : (Math.min(size, chunks[lastChunk][1]) || 0); + + positionIsDifferent = prevPositions[0] !== that.selectpicker.view.position0 || prevPositions[1] !== that.selectpicker.view.position1; + + if (that.activeIndex !== undefined) { + prevActive = that.selectpicker.main.elements[that.prevActiveIndex]; + active = that.selectpicker.main.elements[that.activeIndex]; + selected = that.selectpicker.main.elements[that.selectedIndex]; + + if (init) { + if (that.activeIndex !== that.selectedIndex) { + that.defocusItem(active); + } + that.activeIndex = undefined; + } + + if (that.activeIndex && that.activeIndex !== that.selectedIndex) { + that.defocusItem(selected); + } + } + + if (that.prevActiveIndex !== undefined && that.prevActiveIndex !== that.activeIndex && that.prevActiveIndex !== that.selectedIndex) { + that.defocusItem(prevActive); + } + + if (init || positionIsDifferent) { + previousElements = that.selectpicker.view.visibleElements ? that.selectpicker.view.visibleElements.slice() : []; + + if (isVirtual === false) { + that.selectpicker.view.visibleElements = that.selectpicker.current.elements; + } else { + that.selectpicker.view.visibleElements = that.selectpicker.current.elements.slice(that.selectpicker.view.position0, that.selectpicker.view.position1); + } + + that.setOptionStatus(); + + // if searching, check to make sure the list has actually been updated before updating DOM + // this prevents unnecessary repaints + if (isSearching || (isVirtual === false && init)) menuIsDifferent = !isEqual(previousElements, that.selectpicker.view.visibleElements); + + // if virtual scroll is disabled and not searching, + // menu should never need to be updated more than once + if ((init || isVirtual === true) && menuIsDifferent) { + var menuInner = that.$menuInner[0], + menuFragment = document.createDocumentFragment(), + emptyMenu = menuInner.firstChild.cloneNode(false), + marginTop, + marginBottom, + elements = that.selectpicker.view.visibleElements, + toSanitize = []; + + // replace the existing UL with an empty one - this is faster than $.empty() + menuInner.replaceChild(emptyMenu, menuInner.firstChild); + + for (var i = 0, visibleElementsLen = elements.length; i < visibleElementsLen; i++) { + var element = elements[i], + elText, + elementData; + + if (that.options.sanitize) { + elText = element.lastChild; + + if (elText) { + elementData = that.selectpicker.current.data[i + that.selectpicker.view.position0]; + + if (elementData && elementData.content && !elementData.sanitized) { + toSanitize.push(elText); + elementData.sanitized = true; + } + } + } + + menuFragment.appendChild(element); + } + + if (that.options.sanitize && toSanitize.length) { + sanitizeHtml(toSanitize, that.options.whiteList, that.options.sanitizeFn); + } + + if (isVirtual === true) { + marginTop = (that.selectpicker.view.position0 === 0 ? 0 : that.selectpicker.current.data[that.selectpicker.view.position0 - 1].position); + marginBottom = (that.selectpicker.view.position1 > size - 1 ? 0 : that.selectpicker.current.data[size - 1].position - that.selectpicker.current.data[that.selectpicker.view.position1 - 1].position); + + menuInner.firstChild.style.marginTop = marginTop + 'px'; + menuInner.firstChild.style.marginBottom = marginBottom + 'px'; + } else { + menuInner.firstChild.style.marginTop = 0; + menuInner.firstChild.style.marginBottom = 0; + } + + menuInner.firstChild.appendChild(menuFragment); + + // if an option is encountered that is wider than the current menu width, update the menu width accordingly + // switch to ResizeObserver with increased browser support + if (isVirtual === true && that.sizeInfo.hasScrollBar) { + var menuInnerInnerWidth = menuInner.firstChild.offsetWidth; + + if (init && menuInnerInnerWidth < that.sizeInfo.menuInnerInnerWidth && that.sizeInfo.totalMenuWidth > that.sizeInfo.selectWidth) { + menuInner.firstChild.style.minWidth = that.sizeInfo.menuInnerInnerWidth + 'px'; + } else if (menuInnerInnerWidth > that.sizeInfo.menuInnerInnerWidth) { + // set to 0 to get actual width of menu + that.$menu[0].style.minWidth = 0; + + var actualMenuWidth = menuInner.firstChild.offsetWidth; + + if (actualMenuWidth > that.sizeInfo.menuInnerInnerWidth) { + that.sizeInfo.menuInnerInnerWidth = actualMenuWidth; + menuInner.firstChild.style.minWidth = that.sizeInfo.menuInnerInnerWidth + 'px'; + } + + // reset to default CSS styling + that.$menu[0].style.minWidth = ''; + } + } + } + } + + that.prevActiveIndex = that.activeIndex; + + if (!that.options.liveSearch) { + that.$menuInner.trigger('focus'); + } else if (isSearching && init) { + var index = 0, + newActive; + + if (!that.selectpicker.view.canHighlight[index]) { + index = 1 + that.selectpicker.view.canHighlight.slice(1).indexOf(true); + } + + newActive = that.selectpicker.view.visibleElements[index]; + + that.defocusItem(that.selectpicker.view.currentActive); + + that.activeIndex = (that.selectpicker.current.data[index] || {}).index; + + that.focusItem(newActive); + } + } + + $(window) + .off('resize' + EVENT_KEY + '.' + this.selectId + '.createView') + .on('resize' + EVENT_KEY + '.' + this.selectId + '.createView', function () { + var isActive = that.$newElement.hasClass(classNames.SHOW); + + if (isActive) scroll(that.$menuInner[0].scrollTop); + }); + }, + + focusItem: function (li, liData, noStyle) { + if (li) { + liData = liData || this.selectpicker.main.data[this.activeIndex]; + var a = li.firstChild; + + if (a) { + a.setAttribute('aria-setsize', this.selectpicker.view.size); + a.setAttribute('aria-posinset', liData.posinset); + + if (noStyle !== true) { + this.focusedParent.setAttribute('aria-activedescendant', a.id); + li.classList.add('active'); + a.classList.add('active'); + } + } + } + }, + + defocusItem: function (li) { + if (li) { + li.classList.remove('active'); + if (li.firstChild) li.firstChild.classList.remove('active'); + } + }, + + setPlaceholder: function () { + var that = this, + updateIndex = false; + + if (this.options.title && !this.multiple) { + if (!this.selectpicker.view.titleOption) this.selectpicker.view.titleOption = document.createElement('option'); + + // this option doesn't create a new
                                                                                                                                                                                                                                                                                                        • element, but does add a new option at the start, + // so startIndex should increase to prevent having to check every option for the bs-title-option class + updateIndex = true; + + var element = this.$element[0], + selectTitleOption = false, + titleNotAppended = !this.selectpicker.view.titleOption.parentNode, + selectedIndex = element.selectedIndex, + selectedOption = element.options[selectedIndex], + navigation = window.performance && window.performance.getEntriesByType('navigation'), + // Safari doesn't support getEntriesByType('navigation') - fall back to performance.navigation + isNotBackForward = (navigation && navigation.length) ? navigation[0].type !== 'back_forward' : window.performance.navigation.type !== 2; + + if (titleNotAppended) { + // Use native JS to prepend option (faster) + this.selectpicker.view.titleOption.className = 'bs-title-option'; + this.selectpicker.view.titleOption.value = ''; + + // Check if selected or data-selected attribute is already set on an option. If not, select the titleOption option. + // the selected item may have been changed by user or programmatically before the bootstrap select plugin runs, + // if so, the select will have the data-selected attribute + selectTitleOption = !selectedOption || (selectedIndex === 0 && selectedOption.defaultSelected === false && this.$element.data('selected') === undefined); + } + + if (titleNotAppended || this.selectpicker.view.titleOption.index !== 0) { + element.insertBefore(this.selectpicker.view.titleOption, element.firstChild); + } + + // Set selected *after* appending to select, + // otherwise the option doesn't get selected in IE + // set using selectedIndex, as setting the selected attr to true here doesn't work in IE11 + if (selectTitleOption && isNotBackForward) { + element.selectedIndex = 0; + } else if (document.readyState !== 'complete') { + // if navigation type is back_forward, there's a chance the select will have its value set by BFCache + // wait for that value to be set, then run render again + window.addEventListener('pageshow', function () { + if (that.selectpicker.view.displayedValue !== element.value) that.render(); + }); + } + } + + return updateIndex; + }, + + buildData: function () { + var optionSelector = ':not([hidden]):not([data-hidden="true"])', + mainData = [], + optID = 0, + startIndex = this.setPlaceholder() ? 1 : 0; // append the titleOption if necessary and skip the first option in the loop + + if (this.options.hideDisabled) optionSelector += ':not(:disabled)'; + + var selectOptions = this.$element[0].querySelectorAll('select > *' + optionSelector); + + function addDivider (config) { + var previousData = mainData[mainData.length - 1]; + + // ensure optgroup doesn't create back-to-back dividers + if ( + previousData && + previousData.type === 'divider' && + (previousData.optID || config.optID) + ) { + return; + } + + config = config || {}; + config.type = 'divider'; + + mainData.push(config); + } + + function addOption (option, config) { + config = config || {}; + + config.divider = option.getAttribute('data-divider') === 'true'; + + if (config.divider) { + addDivider({ + optID: config.optID + }); + } else { + var liIndex = mainData.length, + cssText = option.style.cssText, + inlineStyle = cssText ? htmlEscape(cssText) : '', + optionClass = (option.className || '') + (config.optgroupClass || ''); + + if (config.optID) optionClass = 'opt ' + optionClass; + + config.optionClass = optionClass.trim(); + config.inlineStyle = inlineStyle; + config.text = option.textContent; + + config.content = option.getAttribute('data-content'); + config.tokens = option.getAttribute('data-tokens'); + config.subtext = option.getAttribute('data-subtext'); + config.icon = option.getAttribute('data-icon'); + + option.liIndex = liIndex; + + config.display = config.content || config.text; + config.type = 'option'; + config.index = liIndex; + config.option = option; + config.selected = !!option.selected; + config.disabled = config.disabled || !!option.disabled; + + mainData.push(config); + } + } + + function addOptgroup (index, selectOptions) { + var optgroup = selectOptions[index], + // skip placeholder option + previous = index - 1 < startIndex ? false : selectOptions[index - 1], + next = selectOptions[index + 1], + options = optgroup.querySelectorAll('option' + optionSelector); + + if (!options.length) return; + + var config = { + display: htmlEscape(optgroup.label), + subtext: optgroup.getAttribute('data-subtext'), + icon: optgroup.getAttribute('data-icon'), + type: 'optgroup-label', + optgroupClass: ' ' + (optgroup.className || '') + }, + headerIndex, + lastIndex; + + optID++; + + if (previous) { + addDivider({ optID: optID }); + } + + config.optID = optID; + + mainData.push(config); + + for (var j = 0, len = options.length; j < len; j++) { + var option = options[j]; + + if (j === 0) { + headerIndex = mainData.length - 1; + lastIndex = headerIndex + len; + } + + addOption(option, { + headerIndex: headerIndex, + lastIndex: lastIndex, + optID: config.optID, + optgroupClass: config.optgroupClass, + disabled: optgroup.disabled + }); + } + + if (next) { + addDivider({ optID: optID }); + } + } + + for (var len = selectOptions.length, i = startIndex; i < len; i++) { + var item = selectOptions[i]; + + if (item.tagName !== 'OPTGROUP') { + addOption(item, {}); + } else { + addOptgroup(i, selectOptions); + } + } + + this.selectpicker.main.data = this.selectpicker.current.data = mainData; + }, + + buildList: function () { + var that = this, + selectData = this.selectpicker.main.data, + mainElements = [], + widestOptionLength = 0; + + if ((that.options.showTick || that.multiple) && !elementTemplates.checkMark.parentNode) { + elementTemplates.checkMark.className = this.options.iconBase + ' ' + that.options.tickIcon + ' check-mark'; + elementTemplates.a.appendChild(elementTemplates.checkMark); + } + + function buildElement (item) { + var liElement, + combinedLength = 0; + + switch (item.type) { + case 'divider': + liElement = generateOption.li( + false, + classNames.DIVIDER, + (item.optID ? item.optID + 'div' : undefined) + ); + + break; + + case 'option': + liElement = generateOption.li( + generateOption.a( + generateOption.text.call(that, item), + item.optionClass, + item.inlineStyle + ), + '', + item.optID + ); + + if (liElement.firstChild) { + liElement.firstChild.id = that.selectId + '-' + item.index; + } + + break; + + case 'optgroup-label': + liElement = generateOption.li( + generateOption.label.call(that, item), + 'dropdown-header' + item.optgroupClass, + item.optID + ); + + break; + } + + item.element = liElement; + mainElements.push(liElement); + + // count the number of characters in the option - not perfect, but should work in most cases + if (item.display) combinedLength += item.display.length; + if (item.subtext) combinedLength += item.subtext.length; + // if there is an icon, ensure this option's width is checked + if (item.icon) combinedLength += 1; + + if (combinedLength > widestOptionLength) { + widestOptionLength = combinedLength; + + // guess which option is the widest + // use this when calculating menu width + // not perfect, but it's fast, and the width will be updating accordingly when scrolling + that.selectpicker.view.widestOption = mainElements[mainElements.length - 1]; + } + } + + for (var len = selectData.length, i = 0; i < len; i++) { + var item = selectData[i]; + + buildElement(item); + } + + this.selectpicker.main.elements = this.selectpicker.current.elements = mainElements; + }, + + findLis: function () { + return this.$menuInner.find('.inner > li'); + }, + + render: function () { + var that = this, + element = this.$element[0], + // ensure titleOption is appended and selected (if necessary) before getting selectedOptions + placeholderSelected = this.setPlaceholder() && element.selectedIndex === 0, + selectedOptions = getSelectedOptions(element, this.options.hideDisabled), + selectedCount = selectedOptions.length, + button = this.$button[0], + buttonInner = button.querySelector('.filter-option-inner-inner'), + multipleSeparator = document.createTextNode(this.options.multipleSeparator), + titleFragment = elementTemplates.fragment.cloneNode(false), + showCount, + countMax, + hasContent = false; + + button.classList.toggle('bs-placeholder', that.multiple ? !selectedCount : !getSelectValues(element, selectedOptions)); + + if (!that.multiple && selectedOptions.length === 1) { + that.selectpicker.view.displayedValue = getSelectValues(element, selectedOptions); + } + + if (this.options.selectedTextFormat === 'static') { + titleFragment = generateOption.text.call(this, { text: this.options.title }, true); + } else { + showCount = this.multiple && this.options.selectedTextFormat.indexOf('count') !== -1 && selectedCount > 1; + + // determine if the number of selected options will be shown (showCount === true) + if (showCount) { + countMax = this.options.selectedTextFormat.split('>'); + showCount = (countMax.length > 1 && selectedCount > countMax[1]) || (countMax.length === 1 && selectedCount >= 2); + } + + // only loop through all selected options if the count won't be shown + if (showCount === false) { + if (!placeholderSelected) { + for (var selectedIndex = 0; selectedIndex < selectedCount; selectedIndex++) { + if (selectedIndex < 50) { + var option = selectedOptions[selectedIndex], + thisData = this.selectpicker.main.data[option.liIndex], + titleOptions = {}; + + if (this.multiple && selectedIndex > 0) { + titleFragment.appendChild(multipleSeparator.cloneNode(false)); + } + + if (option.title) { + titleOptions.text = option.title; + } else if (thisData) { + if (thisData.content && that.options.showContent) { + titleOptions.content = thisData.content.toString(); + hasContent = true; + } else { + if (that.options.showIcon) { + titleOptions.icon = thisData.icon; + } + if (that.options.showSubtext && !that.multiple && thisData.subtext) titleOptions.subtext = ' ' + thisData.subtext; + titleOptions.text = option.textContent.trim(); + } + } + + titleFragment.appendChild(generateOption.text.call(this, titleOptions, true)); + } else { + break; + } + } + + // add ellipsis + if (selectedCount > 49) { + titleFragment.appendChild(document.createTextNode('...')); + } + } + } else { + var optionSelector = ':not([hidden]):not([data-hidden="true"]):not([data-divider="true"])'; + if (this.options.hideDisabled) optionSelector += ':not(:disabled)'; + + // If this is a multiselect, and selectedTextFormat is count, then show 1 of 2 selected, etc. + var totalCount = this.$element[0].querySelectorAll('select > option' + optionSelector + ', optgroup' + optionSelector + ' option' + optionSelector).length, + tr8nText = (typeof this.options.countSelectedText === 'function') ? this.options.countSelectedText(selectedCount, totalCount) : this.options.countSelectedText; + + titleFragment = generateOption.text.call(this, { + text: tr8nText.replace('{0}', selectedCount.toString()).replace('{1}', totalCount.toString()) + }, true); + } + } + + if (this.options.title == undefined) { + // use .attr to ensure undefined is returned if title attribute is not set + this.options.title = this.$element.attr('title'); + } + + // If the select doesn't have a title, then use the default, or if nothing is set at all, use noneSelectedText + if (!titleFragment.childNodes.length) { + titleFragment = generateOption.text.call(this, { + text: typeof this.options.title !== 'undefined' ? this.options.title : this.options.noneSelectedText + }, true); + } + + // strip all HTML tags and trim the result, then unescape any escaped tags + button.title = titleFragment.textContent.replace(/<[^>]*>?/g, '').trim(); + + if (this.options.sanitize && hasContent) { + sanitizeHtml([titleFragment], that.options.whiteList, that.options.sanitizeFn); + } + + buttonInner.innerHTML = ''; + buttonInner.appendChild(titleFragment); + + if (version.major < 4 && this.$newElement[0].classList.contains('bs3-has-addon')) { + var filterExpand = button.querySelector('.filter-expand'), + clone = buttonInner.cloneNode(true); + + clone.className = 'filter-expand'; + + if (filterExpand) { + button.replaceChild(clone, filterExpand); + } else { + button.appendChild(clone); + } + } + + this.$element.trigger('rendered' + EVENT_KEY); + }, + + /** + * @param [style] + * @param [status] + */ + setStyle: function (newStyle, status) { + var button = this.$button[0], + newElement = this.$newElement[0], + style = this.options.style.trim(), + buttonClass; + + if (this.$element.attr('class')) { + this.$newElement.addClass(this.$element.attr('class').replace(/selectpicker|mobile-device|bs-select-hidden|validate\[.*\]/gi, '')); + } + + if (version.major < 4) { + newElement.classList.add('bs3'); + + if (newElement.parentNode.classList && newElement.parentNode.classList.contains('input-group') && + (newElement.previousElementSibling || newElement.nextElementSibling) && + (newElement.previousElementSibling || newElement.nextElementSibling).classList.contains('input-group-addon') + ) { + newElement.classList.add('bs3-has-addon'); + } + } + + if (newStyle) { + buttonClass = newStyle.trim(); + } else { + buttonClass = style; + } + + if (status == 'add') { + if (buttonClass) button.classList.add.apply(button.classList, buttonClass.split(' ')); + } else if (status == 'remove') { + if (buttonClass) button.classList.remove.apply(button.classList, buttonClass.split(' ')); + } else { + if (style) button.classList.remove.apply(button.classList, style.split(' ')); + if (buttonClass) button.classList.add.apply(button.classList, buttonClass.split(' ')); + } + }, + + liHeight: function (refresh) { + if (!refresh && (this.options.size === false || Object.keys(this.sizeInfo).length)) return; + + var newElement = elementTemplates.div.cloneNode(false), + menu = elementTemplates.div.cloneNode(false), + menuInner = elementTemplates.div.cloneNode(false), + menuInnerInner = document.createElement('ul'), + divider = elementTemplates.li.cloneNode(false), + dropdownHeader = elementTemplates.li.cloneNode(false), + li, + a = elementTemplates.a.cloneNode(false), + text = elementTemplates.span.cloneNode(false), + header = this.options.header && this.$menu.find('.' + classNames.POPOVERHEADER).length > 0 ? this.$menu.find('.' + classNames.POPOVERHEADER)[0].cloneNode(true) : null, + search = this.options.liveSearch ? elementTemplates.div.cloneNode(false) : null, + actions = this.options.actionsBox && this.multiple && this.$menu.find('.bs-actionsbox').length > 0 ? this.$menu.find('.bs-actionsbox')[0].cloneNode(true) : null, + doneButton = this.options.doneButton && this.multiple && this.$menu.find('.bs-donebutton').length > 0 ? this.$menu.find('.bs-donebutton')[0].cloneNode(true) : null, + firstOption = this.$element.find('option')[0]; + + this.sizeInfo.selectWidth = this.$newElement[0].offsetWidth; + + text.className = 'text'; + a.className = 'dropdown-item ' + (firstOption ? firstOption.className : ''); + newElement.className = this.$menu[0].parentNode.className + ' ' + classNames.SHOW; + newElement.style.width = 0; // ensure button width doesn't affect natural width of menu when calculating + if (this.options.width === 'auto') menu.style.minWidth = 0; + menu.className = classNames.MENU + ' ' + classNames.SHOW; + menuInner.className = 'inner ' + classNames.SHOW; + menuInnerInner.className = classNames.MENU + ' inner ' + (version.major === '4' ? classNames.SHOW : ''); + divider.className = classNames.DIVIDER; + dropdownHeader.className = 'dropdown-header'; + + text.appendChild(document.createTextNode('\u200b')); + + if (this.selectpicker.current.data.length) { + for (var i = 0; i < this.selectpicker.current.data.length; i++) { + var data = this.selectpicker.current.data[i]; + if (data.type === 'option') { + li = data.element; + break; + } + } + } else { + li = elementTemplates.li.cloneNode(false); + a.appendChild(text); + li.appendChild(a); + } + + dropdownHeader.appendChild(text.cloneNode(true)); + + if (this.selectpicker.view.widestOption) { + menuInnerInner.appendChild(this.selectpicker.view.widestOption.cloneNode(true)); + } + + menuInnerInner.appendChild(li); + menuInnerInner.appendChild(divider); + menuInnerInner.appendChild(dropdownHeader); + if (header) menu.appendChild(header); + if (search) { + var input = document.createElement('input'); + search.className = 'bs-searchbox'; + input.className = 'form-control'; + search.appendChild(input); + menu.appendChild(search); + } + if (actions) menu.appendChild(actions); + menuInner.appendChild(menuInnerInner); + menu.appendChild(menuInner); + if (doneButton) menu.appendChild(doneButton); + newElement.appendChild(menu); + + document.body.appendChild(newElement); + + var liHeight = li.offsetHeight, + dropdownHeaderHeight = dropdownHeader ? dropdownHeader.offsetHeight : 0, + headerHeight = header ? header.offsetHeight : 0, + searchHeight = search ? search.offsetHeight : 0, + actionsHeight = actions ? actions.offsetHeight : 0, + doneButtonHeight = doneButton ? doneButton.offsetHeight : 0, + dividerHeight = $(divider).outerHeight(true), + // fall back to jQuery if getComputedStyle is not supported + menuStyle = window.getComputedStyle ? window.getComputedStyle(menu) : false, + menuWidth = menu.offsetWidth, + $menu = menuStyle ? null : $(menu), + menuPadding = { + vert: toInteger(menuStyle ? menuStyle.paddingTop : $menu.css('paddingTop')) + + toInteger(menuStyle ? menuStyle.paddingBottom : $menu.css('paddingBottom')) + + toInteger(menuStyle ? menuStyle.borderTopWidth : $menu.css('borderTopWidth')) + + toInteger(menuStyle ? menuStyle.borderBottomWidth : $menu.css('borderBottomWidth')), + horiz: toInteger(menuStyle ? menuStyle.paddingLeft : $menu.css('paddingLeft')) + + toInteger(menuStyle ? menuStyle.paddingRight : $menu.css('paddingRight')) + + toInteger(menuStyle ? menuStyle.borderLeftWidth : $menu.css('borderLeftWidth')) + + toInteger(menuStyle ? menuStyle.borderRightWidth : $menu.css('borderRightWidth')) + }, + menuExtras = { + vert: menuPadding.vert + + toInteger(menuStyle ? menuStyle.marginTop : $menu.css('marginTop')) + + toInteger(menuStyle ? menuStyle.marginBottom : $menu.css('marginBottom')) + 2, + horiz: menuPadding.horiz + + toInteger(menuStyle ? menuStyle.marginLeft : $menu.css('marginLeft')) + + toInteger(menuStyle ? menuStyle.marginRight : $menu.css('marginRight')) + 2 + }, + scrollBarWidth; + + menuInner.style.overflowY = 'scroll'; + + scrollBarWidth = menu.offsetWidth - menuWidth; + + document.body.removeChild(newElement); + + this.sizeInfo.liHeight = liHeight; + this.sizeInfo.dropdownHeaderHeight = dropdownHeaderHeight; + this.sizeInfo.headerHeight = headerHeight; + this.sizeInfo.searchHeight = searchHeight; + this.sizeInfo.actionsHeight = actionsHeight; + this.sizeInfo.doneButtonHeight = doneButtonHeight; + this.sizeInfo.dividerHeight = dividerHeight; + this.sizeInfo.menuPadding = menuPadding; + this.sizeInfo.menuExtras = menuExtras; + this.sizeInfo.menuWidth = menuWidth; + this.sizeInfo.menuInnerInnerWidth = menuWidth - menuPadding.horiz; + this.sizeInfo.totalMenuWidth = this.sizeInfo.menuWidth; + this.sizeInfo.scrollBarWidth = scrollBarWidth; + this.sizeInfo.selectHeight = this.$newElement[0].offsetHeight; + + this.setPositionData(); + }, + + getSelectPosition: function () { + var that = this, + $window = $(window), + pos = that.$newElement.offset(), + $container = $(that.options.container), + containerPos; + + if (that.options.container && $container.length && !$container.is('body')) { + containerPos = $container.offset(); + containerPos.top += parseInt($container.css('borderTopWidth')); + containerPos.left += parseInt($container.css('borderLeftWidth')); + } else { + containerPos = { top: 0, left: 0 }; + } + + var winPad = that.options.windowPadding; + + this.sizeInfo.selectOffsetTop = pos.top - containerPos.top - $window.scrollTop(); + this.sizeInfo.selectOffsetBot = $window.height() - this.sizeInfo.selectOffsetTop - this.sizeInfo.selectHeight - containerPos.top - winPad[2]; + this.sizeInfo.selectOffsetLeft = pos.left - containerPos.left - $window.scrollLeft(); + this.sizeInfo.selectOffsetRight = $window.width() - this.sizeInfo.selectOffsetLeft - this.sizeInfo.selectWidth - containerPos.left - winPad[1]; + this.sizeInfo.selectOffsetTop -= winPad[0]; + this.sizeInfo.selectOffsetLeft -= winPad[3]; + }, + + setMenuSize: function (isAuto) { + this.getSelectPosition(); + + var selectWidth = this.sizeInfo.selectWidth, + liHeight = this.sizeInfo.liHeight, + headerHeight = this.sizeInfo.headerHeight, + searchHeight = this.sizeInfo.searchHeight, + actionsHeight = this.sizeInfo.actionsHeight, + doneButtonHeight = this.sizeInfo.doneButtonHeight, + divHeight = this.sizeInfo.dividerHeight, + menuPadding = this.sizeInfo.menuPadding, + menuInnerHeight, + menuHeight, + divLength = 0, + minHeight, + _minHeight, + maxHeight, + menuInnerMinHeight, + estimate, + isDropup; + + if (this.options.dropupAuto) { + // Get the estimated height of the menu without scrollbars. + // This is useful for smaller menus, where there might be plenty of room + // below the button without setting dropup, but we can't know + // the exact height of the menu until createView is called later + estimate = liHeight * this.selectpicker.current.elements.length + menuPadding.vert; + + isDropup = this.sizeInfo.selectOffsetTop - this.sizeInfo.selectOffsetBot > this.sizeInfo.menuExtras.vert && estimate + this.sizeInfo.menuExtras.vert + 50 > this.sizeInfo.selectOffsetBot; + + // ensure dropup doesn't change while searching (so menu doesn't bounce back and forth) + if (this.selectpicker.isSearching === true) { + isDropup = this.selectpicker.dropup; + } + + this.$newElement.toggleClass(classNames.DROPUP, isDropup); + this.selectpicker.dropup = isDropup; + } + + if (this.options.size === 'auto') { + _minHeight = this.selectpicker.current.elements.length > 3 ? this.sizeInfo.liHeight * 3 + this.sizeInfo.menuExtras.vert - 2 : 0; + menuHeight = this.sizeInfo.selectOffsetBot - this.sizeInfo.menuExtras.vert; + minHeight = _minHeight + headerHeight + searchHeight + actionsHeight + doneButtonHeight; + menuInnerMinHeight = Math.max(_minHeight - menuPadding.vert, 0); + + if (this.$newElement.hasClass(classNames.DROPUP)) { + menuHeight = this.sizeInfo.selectOffsetTop - this.sizeInfo.menuExtras.vert; + } + + maxHeight = menuHeight; + menuInnerHeight = menuHeight - headerHeight - searchHeight - actionsHeight - doneButtonHeight - menuPadding.vert; + } else if (this.options.size && this.options.size != 'auto' && this.selectpicker.current.elements.length > this.options.size) { + for (var i = 0; i < this.options.size; i++) { + if (this.selectpicker.current.data[i].type === 'divider') divLength++; + } + + menuHeight = liHeight * this.options.size + divLength * divHeight + menuPadding.vert; + menuInnerHeight = menuHeight - menuPadding.vert; + maxHeight = menuHeight + headerHeight + searchHeight + actionsHeight + doneButtonHeight; + minHeight = menuInnerMinHeight = ''; + } + + this.$menu.css({ + 'max-height': maxHeight + 'px', + 'overflow': 'hidden', + 'min-height': minHeight + 'px' + }); + + this.$menuInner.css({ + 'max-height': menuInnerHeight + 'px', + 'overflow-y': 'auto', + 'min-height': menuInnerMinHeight + 'px' + }); + + // ensure menuInnerHeight is always a positive number to prevent issues calculating chunkSize in createView + this.sizeInfo.menuInnerHeight = Math.max(menuInnerHeight, 1); + + if (this.selectpicker.current.data.length && this.selectpicker.current.data[this.selectpicker.current.data.length - 1].position > this.sizeInfo.menuInnerHeight) { + this.sizeInfo.hasScrollBar = true; + this.sizeInfo.totalMenuWidth = this.sizeInfo.menuWidth + this.sizeInfo.scrollBarWidth; + } + + if (this.options.dropdownAlignRight === 'auto') { + this.$menu.toggleClass(classNames.MENURIGHT, this.sizeInfo.selectOffsetLeft > this.sizeInfo.selectOffsetRight && this.sizeInfo.selectOffsetRight < (this.sizeInfo.totalMenuWidth - selectWidth)); + } + + if (this.dropdown && this.dropdown._popper) this.dropdown._popper.update(); + }, + + setSize: function (refresh) { + this.liHeight(refresh); + + if (this.options.header) this.$menu.css('padding-top', 0); + + if (this.options.size !== false) { + var that = this, + $window = $(window); + + this.setMenuSize(); + + if (this.options.liveSearch) { + this.$searchbox + .off('input.setMenuSize propertychange.setMenuSize') + .on('input.setMenuSize propertychange.setMenuSize', function () { + return that.setMenuSize(); + }); + } + + if (this.options.size === 'auto') { + $window + .off('resize' + EVENT_KEY + '.' + this.selectId + '.setMenuSize' + ' scroll' + EVENT_KEY + '.' + this.selectId + '.setMenuSize') + .on('resize' + EVENT_KEY + '.' + this.selectId + '.setMenuSize' + ' scroll' + EVENT_KEY + '.' + this.selectId + '.setMenuSize', function () { + return that.setMenuSize(); + }); + } else if (this.options.size && this.options.size != 'auto' && this.selectpicker.current.elements.length > this.options.size) { + $window.off('resize' + EVENT_KEY + '.' + this.selectId + '.setMenuSize' + ' scroll' + EVENT_KEY + '.' + this.selectId + '.setMenuSize'); + } + } + + this.createView(false, true, refresh); + }, + + setWidth: function () { + var that = this; + + if (this.options.width === 'auto') { + requestAnimationFrame(function () { + that.$menu.css('min-width', '0'); + + that.$element.on('loaded' + EVENT_KEY, function () { + that.liHeight(); + that.setMenuSize(); + + // Get correct width if element is hidden + var $selectClone = that.$newElement.clone().appendTo('body'), + btnWidth = $selectClone.css('width', 'auto').children('button').outerWidth(); + + $selectClone.remove(); + + // Set width to whatever's larger, button title or longest option + that.sizeInfo.selectWidth = Math.max(that.sizeInfo.totalMenuWidth, btnWidth); + that.$newElement.css('width', that.sizeInfo.selectWidth + 'px'); + }); + }); + } else if (this.options.width === 'fit') { + // Remove inline min-width so width can be changed from 'auto' + this.$menu.css('min-width', ''); + this.$newElement.css('width', '').addClass('fit-width'); + } else if (this.options.width) { + // Remove inline min-width so width can be changed from 'auto' + this.$menu.css('min-width', ''); + this.$newElement.css('width', this.options.width); + } else { + // Remove inline min-width/width so width can be changed + this.$menu.css('min-width', ''); + this.$newElement.css('width', ''); + } + // Remove fit-width class if width is changed programmatically + if (this.$newElement.hasClass('fit-width') && this.options.width !== 'fit') { + this.$newElement[0].classList.remove('fit-width'); + } + }, + + selectPosition: function () { + this.$bsContainer = $('
                                                                                                                                                                                                                                                                                                          '); + + var that = this, + $container = $(this.options.container), + pos, + containerPos, + actualHeight, + getPlacement = function ($element) { + var containerPosition = {}, + // fall back to dropdown's default display setting if display is not manually set + display = that.options.display || ( + // Bootstrap 3 doesn't have $.fn.dropdown.Constructor.Default + $.fn.dropdown.Constructor.Default ? $.fn.dropdown.Constructor.Default.display + : false + ); + + that.$bsContainer.addClass($element.attr('class').replace(/form-control|fit-width/gi, '')).toggleClass(classNames.DROPUP, $element.hasClass(classNames.DROPUP)); + pos = $element.offset(); + + if (!$container.is('body')) { + containerPos = $container.offset(); + containerPos.top += parseInt($container.css('borderTopWidth')) - $container.scrollTop(); + containerPos.left += parseInt($container.css('borderLeftWidth')) - $container.scrollLeft(); + } else { + containerPos = { top: 0, left: 0 }; + } + + actualHeight = $element.hasClass(classNames.DROPUP) ? 0 : $element[0].offsetHeight; + + // Bootstrap 4+ uses Popper for menu positioning + if (version.major < 4 || display === 'static') { + containerPosition.top = pos.top - containerPos.top + actualHeight; + containerPosition.left = pos.left - containerPos.left; + } + + containerPosition.width = $element[0].offsetWidth; + + that.$bsContainer.css(containerPosition); + }; + + this.$button.on('click.bs.dropdown.data-api', function () { + if (that.isDisabled()) { + return; + } + + getPlacement(that.$newElement); + + that.$bsContainer + .appendTo(that.options.container) + .toggleClass(classNames.SHOW, !that.$button.hasClass(classNames.SHOW)) + .append(that.$menu); + }); + + $(window) + .off('resize' + EVENT_KEY + '.' + this.selectId + ' scroll' + EVENT_KEY + '.' + this.selectId) + .on('resize' + EVENT_KEY + '.' + this.selectId + ' scroll' + EVENT_KEY + '.' + this.selectId, function () { + var isActive = that.$newElement.hasClass(classNames.SHOW); + + if (isActive) getPlacement(that.$newElement); + }); + + this.$element.on('hide' + EVENT_KEY, function () { + that.$menu.data('height', that.$menu.height()); + that.$bsContainer.detach(); + }); + }, + + setOptionStatus: function (selectedOnly) { + var that = this; + + that.noScroll = false; + + if (that.selectpicker.view.visibleElements && that.selectpicker.view.visibleElements.length) { + for (var i = 0; i < that.selectpicker.view.visibleElements.length; i++) { + var liData = that.selectpicker.current.data[i + that.selectpicker.view.position0], + option = liData.option; + + if (option) { + if (selectedOnly !== true) { + that.setDisabled( + liData.index, + liData.disabled + ); + } + + that.setSelected( + liData.index, + option.selected + ); + } + } + } + }, + + /** + * @param {number} index - the index of the option that is being changed + * @param {boolean} selected - true if the option is being selected, false if being deselected + */ + setSelected: function (index, selected) { + var li = this.selectpicker.main.elements[index], + liData = this.selectpicker.main.data[index], + activeIndexIsSet = this.activeIndex !== undefined, + thisIsActive = this.activeIndex === index, + prevActive, + a, + // if current option is already active + // OR + // if the current option is being selected, it's NOT multiple, and + // activeIndex is undefined: + // - when the menu is first being opened, OR + // - after a search has been performed, OR + // - when retainActive is false when selecting a new option (i.e. index of the newly selected option is not the same as the current activeIndex) + keepActive = thisIsActive || (selected && !this.multiple && !activeIndexIsSet); + + liData.selected = selected; + + a = li.firstChild; + + if (selected) { + this.selectedIndex = index; + } + + li.classList.toggle('selected', selected); + + if (keepActive) { + this.focusItem(li, liData); + this.selectpicker.view.currentActive = li; + this.activeIndex = index; + } else { + this.defocusItem(li); + } + + if (a) { + a.classList.toggle('selected', selected); + + if (selected) { + a.setAttribute('aria-selected', true); + } else { + if (this.multiple) { + a.setAttribute('aria-selected', false); + } else { + a.removeAttribute('aria-selected'); + } + } + } + + if (!keepActive && !activeIndexIsSet && selected && this.prevActiveIndex !== undefined) { + prevActive = this.selectpicker.main.elements[this.prevActiveIndex]; + + this.defocusItem(prevActive); + } + }, + + /** + * @param {number} index - the index of the option that is being disabled + * @param {boolean} disabled - true if the option is being disabled, false if being enabled + */ + setDisabled: function (index, disabled) { + var li = this.selectpicker.main.elements[index], + a; + + this.selectpicker.main.data[index].disabled = disabled; + + a = li.firstChild; + + li.classList.toggle(classNames.DISABLED, disabled); + + if (a) { + if (version.major === '4') a.classList.toggle(classNames.DISABLED, disabled); + + if (disabled) { + a.setAttribute('aria-disabled', disabled); + a.setAttribute('tabindex', -1); + } else { + a.removeAttribute('aria-disabled'); + a.setAttribute('tabindex', 0); + } + } + }, + + isDisabled: function () { + return this.$element[0].disabled; + }, + + checkDisabled: function () { + if (this.isDisabled()) { + this.$newElement[0].classList.add(classNames.DISABLED); + this.$button.addClass(classNames.DISABLED).attr('aria-disabled', true); + } else { + if (this.$button[0].classList.contains(classNames.DISABLED)) { + this.$newElement[0].classList.remove(classNames.DISABLED); + this.$button.removeClass(classNames.DISABLED).attr('aria-disabled', false); + } + } + }, + + clickListener: function () { + var that = this, + $document = $(document); + + $document.data('spaceSelect', false); + + this.$button.on('keyup', function (e) { + if (/(32)/.test(e.keyCode.toString(10)) && $document.data('spaceSelect')) { + e.preventDefault(); + $document.data('spaceSelect', false); + } + }); + + this.$newElement.on('show.bs.dropdown', function () { + if (version.major > 3 && !that.dropdown) { + that.dropdown = that.$button.data('bs.dropdown'); + that.dropdown._menu = that.$menu[0]; + } + }); + + this.$button.on('click.bs.dropdown.data-api', function () { + if (!that.$newElement.hasClass(classNames.SHOW)) { + that.setSize(); + } + }); + + function setFocus () { + if (that.options.liveSearch) { + that.$searchbox.trigger('focus'); + } else { + that.$menuInner.trigger('focus'); + } + } + + function checkPopperExists () { + if (that.dropdown && that.dropdown._popper && that.dropdown._popper.state.isCreated) { + setFocus(); + } else { + requestAnimationFrame(checkPopperExists); + } + } + + this.$element.on('shown' + EVENT_KEY, function () { + if (that.$menuInner[0].scrollTop !== that.selectpicker.view.scrollTop) { + that.$menuInner[0].scrollTop = that.selectpicker.view.scrollTop; + } + + if (version.major > 3) { + requestAnimationFrame(checkPopperExists); + } else { + setFocus(); + } + }); + + // ensure posinset and setsize are correct before selecting an option via a click + this.$menuInner.on('mouseenter', 'li a', function (e) { + var hoverLi = this.parentElement, + position0 = that.isVirtual() ? that.selectpicker.view.position0 : 0, + index = Array.prototype.indexOf.call(hoverLi.parentElement.children, hoverLi), + hoverData = that.selectpicker.current.data[index + position0]; + + that.focusItem(hoverLi, hoverData, true); + }); + + this.$menuInner.on('click', 'li a', function (e, retainActive) { + var $this = $(this), + element = that.$element[0], + position0 = that.isVirtual() ? that.selectpicker.view.position0 : 0, + clickedData = that.selectpicker.current.data[$this.parent().index() + position0], + clickedIndex = clickedData.index, + prevValue = getSelectValues(element), + prevIndex = element.selectedIndex, + prevOption = element.options[prevIndex], + triggerChange = true; + + // Don't close on multi choice menu + if (that.multiple && that.options.maxOptions !== 1) { + e.stopPropagation(); + } + + e.preventDefault(); + + // Don't run if the select is disabled + if (!that.isDisabled() && !$this.parent().hasClass(classNames.DISABLED)) { + var option = clickedData.option, + $option = $(option), + state = option.selected, + $optgroup = $option.parent('optgroup'), + $optgroupOptions = $optgroup.find('option'), + maxOptions = that.options.maxOptions, + maxOptionsGrp = $optgroup.data('maxOptions') || false; + + if (clickedIndex === that.activeIndex) retainActive = true; + + if (!retainActive) { + that.prevActiveIndex = that.activeIndex; + that.activeIndex = undefined; + } + + if (!that.multiple) { // Deselect all others if not multi select box + if (prevOption) prevOption.selected = false; + option.selected = true; + that.setSelected(clickedIndex, true); + } else { // Toggle the one we have chosen if we are multi select. + option.selected = !state; + + that.setSelected(clickedIndex, !state); + that.focusedParent.focus(); + + if (maxOptions !== false || maxOptionsGrp !== false) { + var maxReached = maxOptions < getSelectedOptions(element).length, + maxReachedGrp = maxOptionsGrp < $optgroup.find('option:selected').length; + + if ((maxOptions && maxReached) || (maxOptionsGrp && maxReachedGrp)) { + if (maxOptions && maxOptions == 1) { + element.selectedIndex = -1; + option.selected = true; + that.setOptionStatus(true); + } else if (maxOptionsGrp && maxOptionsGrp == 1) { + for (var i = 0; i < $optgroupOptions.length; i++) { + var _option = $optgroupOptions[i]; + _option.selected = false; + that.setSelected(_option.liIndex, false); + } + + option.selected = true; + that.setSelected(clickedIndex, true); + } else { + var maxOptionsText = typeof that.options.maxOptionsText === 'string' ? [that.options.maxOptionsText, that.options.maxOptionsText] : that.options.maxOptionsText, + maxOptionsArr = typeof maxOptionsText === 'function' ? maxOptionsText(maxOptions, maxOptionsGrp) : maxOptionsText, + maxTxt = maxOptionsArr[0].replace('{n}', maxOptions), + maxTxtGrp = maxOptionsArr[1].replace('{n}', maxOptionsGrp), + $notify = $('
                                                                                                                                                                                                                                                                                                          '); + // If {var} is set in array, replace it + /** @deprecated */ + if (maxOptionsArr[2]) { + maxTxt = maxTxt.replace('{var}', maxOptionsArr[2][maxOptions > 1 ? 0 : 1]); + maxTxtGrp = maxTxtGrp.replace('{var}', maxOptionsArr[2][maxOptionsGrp > 1 ? 0 : 1]); + } + + option.selected = false; + + that.$menu.append($notify); + + if (maxOptions && maxReached) { + $notify.append($('
                                                                                                                                                                                                                                                                                                          ' + maxTxt + '
                                                                                                                                                                                                                                                                                                          ')); + triggerChange = false; + that.$element.trigger('maxReached' + EVENT_KEY); + } + + if (maxOptionsGrp && maxReachedGrp) { + $notify.append($('
                                                                                                                                                                                                                                                                                                          ' + maxTxtGrp + '
                                                                                                                                                                                                                                                                                                          ')); + triggerChange = false; + that.$element.trigger('maxReachedGrp' + EVENT_KEY); + } + + setTimeout(function () { + that.setSelected(clickedIndex, false); + }, 10); + + $notify[0].classList.add('fadeOut'); + + setTimeout(function () { + $notify.remove(); + }, 1050); + } + } + } + } + + if (!that.multiple || (that.multiple && that.options.maxOptions === 1)) { + that.$button.trigger('focus'); + } else if (that.options.liveSearch) { + that.$searchbox.trigger('focus'); + } + + // Trigger select 'change' + if (triggerChange) { + if (that.multiple || prevIndex !== element.selectedIndex) { + // $option.prop('selected') is current option state (selected/unselected). prevValue is the value of the select prior to being changed. + changedArguments = [option.index, $option.prop('selected'), prevValue]; + that.$element + .triggerNative('change'); + } + } + } + }); + + this.$menu.on('click', 'li.' + classNames.DISABLED + ' a, .' + classNames.POPOVERHEADER + ', .' + classNames.POPOVERHEADER + ' :not(.close)', function (e) { + if (e.currentTarget == this) { + e.preventDefault(); + e.stopPropagation(); + if (that.options.liveSearch && !$(e.target).hasClass('close')) { + that.$searchbox.trigger('focus'); + } else { + that.$button.trigger('focus'); + } + } + }); + + this.$menuInner.on('click', '.divider, .dropdown-header', function (e) { + e.preventDefault(); + e.stopPropagation(); + if (that.options.liveSearch) { + that.$searchbox.trigger('focus'); + } else { + that.$button.trigger('focus'); + } + }); + + this.$menu.on('click', '.' + classNames.POPOVERHEADER + ' .close', function () { + that.$button.trigger('click'); + }); + + this.$searchbox.on('click', function (e) { + e.stopPropagation(); + }); + + this.$menu.on('click', '.actions-btn', function (e) { + if (that.options.liveSearch) { + that.$searchbox.trigger('focus'); + } else { + that.$button.trigger('focus'); + } + + e.preventDefault(); + e.stopPropagation(); + + if ($(this).hasClass('bs-select-all')) { + that.selectAll(); + } else { + that.deselectAll(); + } + }); + + this.$button + .on('focus' + EVENT_KEY, function (e) { + var tabindex = that.$element[0].getAttribute('tabindex'); + + // only change when button is actually focused + if (tabindex !== undefined && e.originalEvent && e.originalEvent.isTrusted) { + // apply select element's tabindex to ensure correct order is followed when tabbing to the next element + this.setAttribute('tabindex', tabindex); + // set element's tabindex to -1 to allow for reverse tabbing + that.$element[0].setAttribute('tabindex', -1); + that.selectpicker.view.tabindex = tabindex; + } + }) + .on('blur' + EVENT_KEY, function (e) { + // revert everything to original tabindex + if (that.selectpicker.view.tabindex !== undefined && e.originalEvent && e.originalEvent.isTrusted) { + that.$element[0].setAttribute('tabindex', that.selectpicker.view.tabindex); + this.setAttribute('tabindex', -1); + that.selectpicker.view.tabindex = undefined; + } + }); + + this.$element + .on('change' + EVENT_KEY, function () { + that.render(); + that.$element.trigger('changed' + EVENT_KEY, changedArguments); + changedArguments = null; + }) + .on('focus' + EVENT_KEY, function () { + if (!that.options.mobile) that.$button[0].focus(); + }); + }, + + liveSearchListener: function () { + var that = this; + + this.$button.on('click.bs.dropdown.data-api', function () { + if (!!that.$searchbox.val()) { + that.$searchbox.val(''); + that.selectpicker.search.previousValue = undefined; + } + }); + + this.$searchbox.on('click.bs.dropdown.data-api focus.bs.dropdown.data-api touchend.bs.dropdown.data-api', function (e) { + e.stopPropagation(); + }); + + this.$searchbox.on('input propertychange', function () { + var searchValue = that.$searchbox[0].value; + + that.selectpicker.search.elements = []; + that.selectpicker.search.data = []; + + if (searchValue) { + var i, + searchMatch = [], + q = searchValue.toUpperCase(), + cache = {}, + cacheArr = [], + searchStyle = that._searchStyle(), + normalizeSearch = that.options.liveSearchNormalize; + + if (normalizeSearch) q = normalizeToBase(q); + + for (var i = 0; i < that.selectpicker.main.data.length; i++) { + var li = that.selectpicker.main.data[i]; + + if (!cache[i]) { + cache[i] = stringSearch(li, q, searchStyle, normalizeSearch); + } + + if (cache[i] && li.headerIndex !== undefined && cacheArr.indexOf(li.headerIndex) === -1) { + if (li.headerIndex > 0) { + cache[li.headerIndex - 1] = true; + cacheArr.push(li.headerIndex - 1); + } + + cache[li.headerIndex] = true; + cacheArr.push(li.headerIndex); + + cache[li.lastIndex + 1] = true; + } + + if (cache[i] && li.type !== 'optgroup-label') cacheArr.push(i); + } + + for (var i = 0, cacheLen = cacheArr.length; i < cacheLen; i++) { + var index = cacheArr[i], + prevIndex = cacheArr[i - 1], + li = that.selectpicker.main.data[index], + liPrev = that.selectpicker.main.data[prevIndex]; + + if (li.type !== 'divider' || (li.type === 'divider' && liPrev && liPrev.type !== 'divider' && cacheLen - 1 !== i)) { + that.selectpicker.search.data.push(li); + searchMatch.push(that.selectpicker.main.elements[index]); + } + } + + that.activeIndex = undefined; + that.noScroll = true; + that.$menuInner.scrollTop(0); + that.selectpicker.search.elements = searchMatch; + that.createView(true); + showNoResults.call(that, searchMatch, searchValue); + } else if (that.selectpicker.search.previousValue) { // for IE11 (#2402) + that.$menuInner.scrollTop(0); + that.createView(false); + } + + that.selectpicker.search.previousValue = searchValue; + }); + }, + + _searchStyle: function () { + return this.options.liveSearchStyle || 'contains'; + }, + + val: function (value) { + var element = this.$element[0]; + + if (typeof value !== 'undefined') { + var prevValue = getSelectValues(element); + + changedArguments = [null, null, prevValue]; + + this.$element + .val(value) + .trigger('changed' + EVENT_KEY, changedArguments); + + if (this.$newElement.hasClass(classNames.SHOW)) { + if (this.multiple) { + this.setOptionStatus(true); + } else { + var liSelectedIndex = (element.options[element.selectedIndex] || {}).liIndex; + + if (typeof liSelectedIndex === 'number') { + this.setSelected(this.selectedIndex, false); + this.setSelected(liSelectedIndex, true); + } + } + } + + this.render(); + + changedArguments = null; + + return this.$element; + } else { + return this.$element.val(); + } + }, + + changeAll: function (status) { + if (!this.multiple) return; + if (typeof status === 'undefined') status = true; + + var element = this.$element[0], + previousSelected = 0, + currentSelected = 0, + prevValue = getSelectValues(element); + + element.classList.add('bs-select-hidden'); + + for (var i = 0, data = this.selectpicker.current.data, len = data.length; i < len; i++) { + var liData = data[i], + option = liData.option; + + if (option && !liData.disabled && liData.type !== 'divider') { + if (liData.selected) previousSelected++; + option.selected = status; + if (status === true) currentSelected++; + } + } + + element.classList.remove('bs-select-hidden'); + + if (previousSelected === currentSelected) return; + + this.setOptionStatus(); + + changedArguments = [null, null, prevValue]; + + this.$element + .triggerNative('change'); + }, + + selectAll: function () { + return this.changeAll(true); + }, + + deselectAll: function () { + return this.changeAll(false); + }, + + toggle: function (e) { + e = e || window.event; + + if (e) e.stopPropagation(); + + this.$button.trigger('click.bs.dropdown.data-api'); + }, + + keydown: function (e) { + var $this = $(this), + isToggle = $this.hasClass('dropdown-toggle'), + $parent = isToggle ? $this.closest('.dropdown') : $this.closest(Selector.MENU), + that = $parent.data('this'), + $items = that.findLis(), + index, + isActive, + liActive, + activeLi, + offset, + updateScroll = false, + downOnTab = e.which === keyCodes.TAB && !isToggle && !that.options.selectOnTab, + isArrowKey = REGEXP_ARROW.test(e.which) || downOnTab, + scrollTop = that.$menuInner[0].scrollTop, + isVirtual = that.isVirtual(), + position0 = isVirtual === true ? that.selectpicker.view.position0 : 0; + + // do nothing if a function key is pressed + if (e.which >= 112 && e.which <= 123) return; + + isActive = that.$newElement.hasClass(classNames.SHOW); + + if ( + !isActive && + ( + isArrowKey || + (e.which >= 48 && e.which <= 57) || + (e.which >= 96 && e.which <= 105) || + (e.which >= 65 && e.which <= 90) + ) + ) { + that.$button.trigger('click.bs.dropdown.data-api'); + + if (that.options.liveSearch) { + that.$searchbox.trigger('focus'); + return; + } + } + + if (e.which === keyCodes.ESCAPE && isActive) { + e.preventDefault(); + that.$button.trigger('click.bs.dropdown.data-api').trigger('focus'); + } + + if (isArrowKey) { // if up or down + if (!$items.length) return; + + liActive = that.selectpicker.main.elements[that.activeIndex]; + index = liActive ? Array.prototype.indexOf.call(liActive.parentElement.children, liActive) : -1; + + if (index !== -1) { + that.defocusItem(liActive); + } + + if (e.which === keyCodes.ARROW_UP) { // up + if (index !== -1) index--; + if (index + position0 < 0) index += $items.length; + + if (!that.selectpicker.view.canHighlight[index + position0]) { + index = that.selectpicker.view.canHighlight.slice(0, index + position0).lastIndexOf(true) - position0; + if (index === -1) index = $items.length - 1; + } + } else if (e.which === keyCodes.ARROW_DOWN || downOnTab) { // down + index++; + if (index + position0 >= that.selectpicker.view.canHighlight.length) index = that.selectpicker.view.firstHighlightIndex; + + if (!that.selectpicker.view.canHighlight[index + position0]) { + index = index + 1 + that.selectpicker.view.canHighlight.slice(index + position0 + 1).indexOf(true); + } + } + + e.preventDefault(); + + var liActiveIndex = position0 + index; + + if (e.which === keyCodes.ARROW_UP) { // up + // scroll to bottom and highlight last option + if (position0 === 0 && index === $items.length - 1) { + that.$menuInner[0].scrollTop = that.$menuInner[0].scrollHeight; + + liActiveIndex = that.selectpicker.current.elements.length - 1; + } else { + activeLi = that.selectpicker.current.data[liActiveIndex]; + offset = activeLi.position - activeLi.height; + + updateScroll = offset < scrollTop; + } + } else if (e.which === keyCodes.ARROW_DOWN || downOnTab) { // down + // scroll to top and highlight first option + if (index === that.selectpicker.view.firstHighlightIndex) { + that.$menuInner[0].scrollTop = 0; + + liActiveIndex = that.selectpicker.view.firstHighlightIndex; + } else { + activeLi = that.selectpicker.current.data[liActiveIndex]; + offset = activeLi.position - that.sizeInfo.menuInnerHeight; + + updateScroll = offset > scrollTop; + } + } + + liActive = that.selectpicker.current.elements[liActiveIndex]; + + that.activeIndex = that.selectpicker.current.data[liActiveIndex].index; + + that.focusItem(liActive); + + that.selectpicker.view.currentActive = liActive; + + if (updateScroll) that.$menuInner[0].scrollTop = offset; + + if (that.options.liveSearch) { + that.$searchbox.trigger('focus'); + } else { + $this.trigger('focus'); + } + } else if ( + (!$this.is('input') && !REGEXP_TAB_OR_ESCAPE.test(e.which)) || + (e.which === keyCodes.SPACE && that.selectpicker.keydown.keyHistory) + ) { + var searchMatch, + matches = [], + keyHistory; + + e.preventDefault(); + + that.selectpicker.keydown.keyHistory += keyCodeMap[e.which]; + + if (that.selectpicker.keydown.resetKeyHistory.cancel) clearTimeout(that.selectpicker.keydown.resetKeyHistory.cancel); + that.selectpicker.keydown.resetKeyHistory.cancel = that.selectpicker.keydown.resetKeyHistory.start(); + + keyHistory = that.selectpicker.keydown.keyHistory; + + // if all letters are the same, set keyHistory to just the first character when searching + if (/^(.)\1+$/.test(keyHistory)) { + keyHistory = keyHistory.charAt(0); + } + + // find matches + for (var i = 0; i < that.selectpicker.current.data.length; i++) { + var li = that.selectpicker.current.data[i], + hasMatch; + + hasMatch = stringSearch(li, keyHistory, 'startsWith', true); + + if (hasMatch && that.selectpicker.view.canHighlight[i]) { + matches.push(li.index); + } + } + + if (matches.length) { + var matchIndex = 0; + + $items.removeClass('active').find('a').removeClass('active'); + + // either only one key has been pressed or they are all the same key + if (keyHistory.length === 1) { + matchIndex = matches.indexOf(that.activeIndex); + + if (matchIndex === -1 || matchIndex === matches.length - 1) { + matchIndex = 0; + } else { + matchIndex++; + } + } + + searchMatch = matches[matchIndex]; + + activeLi = that.selectpicker.main.data[searchMatch]; + + if (scrollTop - activeLi.position > 0) { + offset = activeLi.position - activeLi.height; + updateScroll = true; + } else { + offset = activeLi.position - that.sizeInfo.menuInnerHeight; + // if the option is already visible at the current scroll position, just keep it the same + updateScroll = activeLi.position > scrollTop + that.sizeInfo.menuInnerHeight; + } + + liActive = that.selectpicker.main.elements[searchMatch]; + + that.activeIndex = matches[matchIndex]; + + that.focusItem(liActive); + + if (liActive) liActive.firstChild.focus(); + + if (updateScroll) that.$menuInner[0].scrollTop = offset; + + $this.trigger('focus'); + } + } + + // Select focused option if "Enter", "Spacebar" or "Tab" (when selectOnTab is true) are pressed inside the menu. + if ( + isActive && + ( + (e.which === keyCodes.SPACE && !that.selectpicker.keydown.keyHistory) || + e.which === keyCodes.ENTER || + (e.which === keyCodes.TAB && that.options.selectOnTab) + ) + ) { + if (e.which !== keyCodes.SPACE) e.preventDefault(); + + if (!that.options.liveSearch || e.which !== keyCodes.SPACE) { + that.$menuInner.find('.active a').trigger('click', true); // retain active class + $this.trigger('focus'); + + if (!that.options.liveSearch) { + // Prevent screen from scrolling if the user hits the spacebar + e.preventDefault(); + // Fixes spacebar selection of dropdown items in FF & IE + $(document).data('spaceSelect', true); + } + } + } + }, + + mobile: function () { + // ensure mobile is set to true if mobile function is called after init + this.options.mobile = true; + this.$element[0].classList.add('mobile-device'); + }, + + refresh: function () { + // update options if data attributes have been changed + var config = $.extend({}, this.options, this.$element.data()); + this.options = config; + + this.checkDisabled(); + this.buildData(); + this.setStyle(); + this.render(); + this.buildList(); + this.setWidth(); + + this.setSize(true); + + this.$element.trigger('refreshed' + EVENT_KEY); + }, + + hide: function () { + this.$newElement.hide(); + }, + + show: function () { + this.$newElement.show(); + }, + + remove: function () { + this.$newElement.remove(); + this.$element.remove(); + }, + + destroy: function () { + this.$newElement.before(this.$element).remove(); + + if (this.$bsContainer) { + this.$bsContainer.remove(); + } else { + this.$menu.remove(); + } + + if (this.selectpicker.view.titleOption && this.selectpicker.view.titleOption.parentNode) { + this.selectpicker.view.titleOption.parentNode.removeChild(this.selectpicker.view.titleOption); + } + + this.$element + .off(EVENT_KEY) + .removeData('selectpicker') + .removeClass('bs-select-hidden selectpicker'); + + $(window).off(EVENT_KEY + '.' + this.selectId); + } + }; + + // SELECTPICKER PLUGIN DEFINITION + // ============================== + function Plugin (option) { + // get the args of the outer function.. + var args = arguments; + // The arguments of the function are explicitly re-defined from the argument list, because the shift causes them + // to get lost/corrupted in android 2.3 and IE9 #715 #775 + var _option = option; + + [].shift.apply(args); + + // if the version was not set successfully + if (!version.success) { + // try to retreive it again + try { + version.full = ($.fn.dropdown.Constructor.VERSION || '').split(' ')[0].split('.'); + } catch (err) { + // fall back to use BootstrapVersion if set + if (Selectpicker.BootstrapVersion) { + version.full = Selectpicker.BootstrapVersion.split(' ')[0].split('.'); + } else { + version.full = [version.major, '0', '0']; + + console.warn( + 'There was an issue retrieving Bootstrap\'s version. ' + + 'Ensure Bootstrap is being loaded before bootstrap-select and there is no namespace collision. ' + + 'If loading Bootstrap asynchronously, the version may need to be manually specified via $.fn.selectpicker.Constructor.BootstrapVersion.', + err + ); + } + } + + version.major = version.full[0]; + version.success = true; + } + + if (version.major === '4') { + // some defaults need to be changed if using Bootstrap 4 + // check to see if they have already been manually changed before forcing them to update + var toUpdate = []; + + if (Selectpicker.DEFAULTS.style === classNames.BUTTONCLASS) toUpdate.push({ name: 'style', className: 'BUTTONCLASS' }); + if (Selectpicker.DEFAULTS.iconBase === classNames.ICONBASE) toUpdate.push({ name: 'iconBase', className: 'ICONBASE' }); + if (Selectpicker.DEFAULTS.tickIcon === classNames.TICKICON) toUpdate.push({ name: 'tickIcon', className: 'TICKICON' }); + + classNames.DIVIDER = 'dropdown-divider'; + classNames.SHOW = 'show'; + classNames.BUTTONCLASS = 'btn-light'; + classNames.POPOVERHEADER = 'popover-header'; + classNames.ICONBASE = ''; + classNames.TICKICON = 'bs-ok-default'; + + for (var i = 0; i < toUpdate.length; i++) { + var option = toUpdate[i]; + Selectpicker.DEFAULTS[option.name] = classNames[option.className]; + } + } + + var value; + var chain = this.each(function () { + var $this = $(this); + if ($this.is('select')) { + var data = $this.data('selectpicker'), + options = typeof _option == 'object' && _option; + + if (!data) { + var dataAttributes = $this.data(); + + for (var dataAttr in dataAttributes) { + if (Object.prototype.hasOwnProperty.call(dataAttributes, dataAttr) && $.inArray(dataAttr, DISALLOWED_ATTRIBUTES) !== -1) { + delete dataAttributes[dataAttr]; + } + } + + var config = $.extend({}, Selectpicker.DEFAULTS, $.fn.selectpicker.defaults || {}, dataAttributes, options); + config.template = $.extend({}, Selectpicker.DEFAULTS.template, ($.fn.selectpicker.defaults ? $.fn.selectpicker.defaults.template : {}), dataAttributes.template, options.template); + $this.data('selectpicker', (data = new Selectpicker(this, config))); + } else if (options) { + for (var i in options) { + if (Object.prototype.hasOwnProperty.call(options, i)) { + data.options[i] = options[i]; + } + } + } + + if (typeof _option == 'string') { + if (data[_option] instanceof Function) { + value = data[_option].apply(data, args); + } else { + value = data.options[_option]; + } + } + } + }); + + if (typeof value !== 'undefined') { + // noinspection JSUnusedAssignment + return value; + } else { + return chain; + } + } + + var old = $.fn.selectpicker; + $.fn.selectpicker = Plugin; + $.fn.selectpicker.Constructor = Selectpicker; + + // SELECTPICKER NO CONFLICT + // ======================== + $.fn.selectpicker.noConflict = function () { + $.fn.selectpicker = old; + return this; + }; + + // get Bootstrap's keydown event handler for either Bootstrap 4 or Bootstrap 3 + function keydownHandler () { + if ($.fn.dropdown) { + // wait to define until function is called in case Bootstrap isn't loaded yet + var bootstrapKeydown = $.fn.dropdown.Constructor._dataApiKeydownHandler || $.fn.dropdown.Constructor.prototype.keydown; + return bootstrapKeydown.apply(this, arguments); + } + } + + $(document) + .off('keydown.bs.dropdown.data-api') + .on('keydown.bs.dropdown.data-api', ':not(.bootstrap-select) > [data-toggle="dropdown"]', keydownHandler) + .on('keydown.bs.dropdown.data-api', ':not(.bootstrap-select) > .dropdown-menu', keydownHandler) + .on('keydown' + EVENT_KEY, '.bootstrap-select [data-toggle="dropdown"], .bootstrap-select [role="listbox"], .bootstrap-select .bs-searchbox input', Selectpicker.prototype.keydown) + .on('focusin.modal', '.bootstrap-select [data-toggle="dropdown"], .bootstrap-select [role="listbox"], .bootstrap-select .bs-searchbox input', function (e) { + e.stopPropagation(); + }); + + // SELECTPICKER DATA-API + // ===================== + $(window).on('load' + EVENT_KEY + '.data-api', function () { + $('.selectpicker').each(function () { + var $selectpicker = $(this); + Plugin.call($selectpicker, $selectpicker.data()); + }) + }); +})(jQuery); + + +})); diff --git a/alive-admin/target/classes/static/ajax/libs/bootstrap-select/bootstrap-select.min.css b/alive-admin/target/classes/static/ajax/libs/bootstrap-select/bootstrap-select.min.css new file mode 100644 index 0000000..8d0f049 --- /dev/null +++ b/alive-admin/target/classes/static/ajax/libs/bootstrap-select/bootstrap-select.min.css @@ -0,0 +1,6 @@ +/*! + * Bootstrap-select v1.13.18 (https://developer.snapappointments.com/bootstrap-select) + * + * Copyright 2012-2020 SnapAppointments, LLC + * Licensed under MIT (https://github.com/snapappointments/bootstrap-select/blob/master/LICENSE) + */@-webkit-keyframes bs-notify-fadeOut{0%{opacity:.9}100%{opacity:0}}@-o-keyframes bs-notify-fadeOut{0%{opacity:.9}100%{opacity:0}}@keyframes bs-notify-fadeOut{0%{opacity:.9}100%{opacity:0}}.bootstrap-select>select.bs-select-hidden,select.bs-select-hidden,select.selectpicker{display:none!important}.bootstrap-select{width:220px\0;vertical-align:middle}.bootstrap-select>.dropdown-toggle{position:relative;width:100%;text-align:right;white-space:nowrap;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}.bootstrap-select>.dropdown-toggle:after{margin-top:-1px}.bootstrap-select>.dropdown-toggle.bs-placeholder,.bootstrap-select>.dropdown-toggle.bs-placeholder:active,.bootstrap-select>.dropdown-toggle.bs-placeholder:focus,.bootstrap-select>.dropdown-toggle.bs-placeholder:hover{color:#999}.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-danger,.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-danger:active,.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-danger:focus,.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-danger:hover,.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-dark,.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-dark:active,.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-dark:focus,.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-dark:hover,.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-info,.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-info:active,.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-info:focus,.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-info:hover,.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-primary,.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-primary:active,.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-primary:focus,.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-primary:hover,.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-secondary,.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-secondary:active,.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-secondary:focus,.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-secondary:hover,.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-success,.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-success:active,.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-success:focus,.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-success:hover{color:rgba(255,255,255,.5)}.bootstrap-select>select{position:absolute!important;bottom:0;left:50%;display:block!important;width:.5px!important;height:100%!important;padding:0!important;opacity:0!important;border:none;z-index:0!important}.bootstrap-select>select.mobile-device{top:0;left:0;display:block!important;width:100%!important;z-index:2!important}.bootstrap-select.is-invalid .dropdown-toggle,.error .bootstrap-select .dropdown-toggle,.has-error .bootstrap-select .dropdown-toggle,.was-validated .bootstrap-select select:invalid+.dropdown-toggle{border-color:#b94a48}.bootstrap-select.is-valid .dropdown-toggle,.was-validated .bootstrap-select select:valid+.dropdown-toggle{border-color:#28a745}.bootstrap-select.fit-width{width:auto!important}.bootstrap-select:not([class*=col-]):not([class*=form-control]):not(.input-group-btn){width:220px}.bootstrap-select .dropdown-toggle:focus,.bootstrap-select>select.mobile-device:focus+.dropdown-toggle{outline:thin dotted #333!important;outline:5px auto -webkit-focus-ring-color!important;outline-offset:-2px}.bootstrap-select.form-control{margin-bottom:0;padding:0;border:none;height:auto}:not(.input-group)>.bootstrap-select.form-control:not([class*=col-]){width:100%}.bootstrap-select.form-control.input-group-btn{float:none;z-index:auto}.form-inline .bootstrap-select,.form-inline .bootstrap-select.form-control:not([class*=col-]){width:auto}.bootstrap-select:not(.input-group-btn),.bootstrap-select[class*=col-]{float:none;display:inline-block;margin-left:0}.bootstrap-select.dropdown-menu-right,.bootstrap-select[class*=col-].dropdown-menu-right,.row .bootstrap-select[class*=col-].dropdown-menu-right{float:right}.form-group .bootstrap-select,.form-horizontal .bootstrap-select,.form-inline .bootstrap-select{margin-bottom:0}.form-group-lg .bootstrap-select.form-control,.form-group-sm .bootstrap-select.form-control{padding:0}.form-group-lg .bootstrap-select.form-control .dropdown-toggle,.form-group-sm .bootstrap-select.form-control .dropdown-toggle{height:100%;font-size:inherit;line-height:inherit;border-radius:inherit}.bootstrap-select.form-control-lg .dropdown-toggle,.bootstrap-select.form-control-sm .dropdown-toggle{font-size:inherit;line-height:inherit;border-radius:inherit}.bootstrap-select.form-control-sm .dropdown-toggle{padding:.25rem .5rem}.bootstrap-select.form-control-lg .dropdown-toggle{padding:.5rem 1rem}.form-inline .bootstrap-select .form-control{width:100%}.bootstrap-select.disabled,.bootstrap-select>.disabled{cursor:not-allowed}.bootstrap-select.disabled:focus,.bootstrap-select>.disabled:focus{outline:0!important}.bootstrap-select.bs-container{position:absolute;top:0;left:0;height:0!important;padding:0!important}.bootstrap-select.bs-container .dropdown-menu{z-index:1060}.bootstrap-select .dropdown-toggle .filter-option{position:static;top:0;left:0;float:left;height:100%;width:100%;text-align:left;overflow:hidden;-webkit-box-flex:0;-webkit-flex:0 1 auto;-ms-flex:0 1 auto;flex:0 1 auto}.bs3.bootstrap-select .dropdown-toggle .filter-option{padding-right:inherit}.input-group .bs3-has-addon.bootstrap-select .dropdown-toggle .filter-option{position:absolute;padding-top:inherit;padding-bottom:inherit;padding-left:inherit;float:none}.input-group .bs3-has-addon.bootstrap-select .dropdown-toggle .filter-option .filter-option-inner{padding-right:inherit}.bootstrap-select .dropdown-toggle .filter-option-inner-inner{overflow:hidden}.bootstrap-select .dropdown-toggle .filter-expand{width:0!important;float:left;opacity:0!important;overflow:hidden}.bootstrap-select .dropdown-toggle .caret{position:absolute;top:50%;right:12px;margin-top:-2px;vertical-align:middle}.input-group .bootstrap-select.form-control .dropdown-toggle{border-radius:inherit}.bootstrap-select[class*=col-] .dropdown-toggle{width:100%}.bootstrap-select .dropdown-menu{min-width:100%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.bootstrap-select .dropdown-menu>.inner:focus{outline:0!important}.bootstrap-select .dropdown-menu.inner{position:static;float:none;border:0;padding:0;margin:0;border-radius:0;-webkit-box-shadow:none;box-shadow:none}.bootstrap-select .dropdown-menu li{position:relative}.bootstrap-select .dropdown-menu li.active small{color:rgba(255,255,255,.5)!important}.bootstrap-select .dropdown-menu li.disabled a{cursor:not-allowed}.bootstrap-select .dropdown-menu li a{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bootstrap-select .dropdown-menu li a.opt{position:relative;padding-left:2.25em}.bootstrap-select .dropdown-menu li a span.check-mark{display:none}.bootstrap-select .dropdown-menu li a span.text{display:inline-block}.bootstrap-select .dropdown-menu li small{padding-left:.5em}.bootstrap-select .dropdown-menu .notify{position:absolute;bottom:5px;width:96%;margin:0 2%;min-height:26px;padding:3px 5px;background:#f5f5f5;border:1px solid #e3e3e3;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.05);box-shadow:inset 0 1px 1px rgba(0,0,0,.05);pointer-events:none;opacity:.9;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.bootstrap-select .dropdown-menu .notify.fadeOut{-webkit-animation:.3s linear 750ms forwards bs-notify-fadeOut;-o-animation:.3s linear 750ms forwards bs-notify-fadeOut;animation:.3s linear 750ms forwards bs-notify-fadeOut}.bootstrap-select .no-results{padding:3px;background:#f5f5f5;margin:0 5px;white-space:nowrap}.bootstrap-select.fit-width .dropdown-toggle .filter-option{position:static;display:inline;padding:0}.bootstrap-select.fit-width .dropdown-toggle .filter-option-inner,.bootstrap-select.fit-width .dropdown-toggle .filter-option-inner-inner{display:inline}.bootstrap-select.fit-width .dropdown-toggle .bs-caret:before{content:'\00a0'}.bootstrap-select.fit-width .dropdown-toggle .caret{position:static;top:auto;margin-top:-1px}.bootstrap-select.show-tick .dropdown-menu .selected span.check-mark{position:absolute;display:inline-block;right:15px;top:5px}.bootstrap-select.show-tick .dropdown-menu li a span.text{margin-right:34px}.bootstrap-select .bs-ok-default:after{content:'';display:block;width:.5em;height:1em;border-style:solid;border-width:0 .26em .26em 0;-webkit-transform-style:preserve-3d;transform-style:preserve-3d;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);-o-transform:rotate(45deg);transform:rotate(45deg)}.bootstrap-select.show-menu-arrow.open>.dropdown-toggle,.bootstrap-select.show-menu-arrow.show>.dropdown-toggle{z-index:1061}.bootstrap-select.show-menu-arrow .dropdown-toggle .filter-option:before{content:'';border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid rgba(204,204,204,.2);position:absolute;bottom:-4px;left:9px;display:none}.bootstrap-select.show-menu-arrow .dropdown-toggle .filter-option:after{content:'';border-left:6px solid transparent;border-right:6px solid transparent;border-bottom:6px solid #fff;position:absolute;bottom:-4px;left:10px;display:none}.bootstrap-select.show-menu-arrow.dropup .dropdown-toggle .filter-option:before{bottom:auto;top:-4px;border-top:7px solid rgba(204,204,204,.2);border-bottom:0}.bootstrap-select.show-menu-arrow.dropup .dropdown-toggle .filter-option:after{bottom:auto;top:-4px;border-top:6px solid #fff;border-bottom:0}.bootstrap-select.show-menu-arrow.pull-right .dropdown-toggle .filter-option:before{right:12px;left:auto}.bootstrap-select.show-menu-arrow.pull-right .dropdown-toggle .filter-option:after{right:13px;left:auto}.bootstrap-select.show-menu-arrow.open>.dropdown-toggle .filter-option:after,.bootstrap-select.show-menu-arrow.open>.dropdown-toggle .filter-option:before,.bootstrap-select.show-menu-arrow.show>.dropdown-toggle .filter-option:after,.bootstrap-select.show-menu-arrow.show>.dropdown-toggle .filter-option:before{display:block}.bs-actionsbox,.bs-donebutton,.bs-searchbox{padding:4px 8px}.bs-actionsbox{width:100%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.bs-actionsbox .btn-group button{width:50%}.bs-donebutton{float:left;width:100%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.bs-donebutton .btn-group button{width:100%}.bs-searchbox+.bs-actionsbox{padding:0 8px 4px}.bs-searchbox .form-control{margin-bottom:0;width:100%;float:none} \ No newline at end of file diff --git a/alive-admin/target/classes/static/ajax/libs/bootstrap-select/bootstrap-select.min.js b/alive-admin/target/classes/static/ajax/libs/bootstrap-select/bootstrap-select.min.js new file mode 100644 index 0000000..46cf10e --- /dev/null +++ b/alive-admin/target/classes/static/ajax/libs/bootstrap-select/bootstrap-select.min.js @@ -0,0 +1,8 @@ +/*! + * Bootstrap-select v1.13.18 (https://developer.snapappointments.com/bootstrap-select) + * + * Copyright 2012-2020 SnapAppointments, LLC + * Licensed under MIT (https://github.com/snapappointments/bootstrap-select/blob/master/LICENSE) + */ + +!function(e,t){void 0===e&&void 0!==window&&(e=window),"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e)}):"object"==typeof module&&module.exports?module.exports=t(require("jquery")):t(e.jQuery)}(this,function(e){!function(P){"use strict";var d=["sanitize","whiteList","sanitizeFn"],r=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],e={"*":["class","dir","id","lang","role","tabindex","style",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},l=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,a=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i;function v(e,t){var i=e.nodeName.toLowerCase();if(-1!==P.inArray(i,t))return-1===P.inArray(i,r)||Boolean(e.nodeValue.match(l)||e.nodeValue.match(a));for(var s=P(t).filter(function(e,t){return t instanceof RegExp}),n=0,o=s.length;n]+>/g,"")),s&&(a=w(a)),a=a.toUpperCase(),o="contains"===i?0<=a.indexOf(t):a.startsWith(t)))break}return o}function N(e){return parseInt(e,10)||0}P.fn.triggerNative=function(e){var t,i=this[0];i.dispatchEvent?(u?t=new Event(e,{bubbles:!0}):(t=document.createEvent("Event")).initEvent(e,!0,!1),i.dispatchEvent(t)):i.fireEvent?((t=document.createEventObject()).eventType=e,i.fireEvent("on"+e,t)):this.trigger(e)};var f={"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"},m=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,g=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\u1ab0-\\u1aff\\u1dc0-\\u1dff]","g");function b(e){return f[e]}function w(e){return(e=e.toString())&&e.replace(m,b).replace(g,"")}var I,x,y,$,S=(I={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},x="(?:"+Object.keys(I).join("|")+")",y=RegExp(x),$=RegExp(x,"g"),function(e){return e=null==e?"":""+e,y.test(e)?e.replace($,E):e});function E(e){return I[e]}var C={32:" ",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",65:"A",66:"B",67:"C",68:"D",69:"E",70:"F",71:"G",72:"H",73:"I",74:"J",75:"K",76:"L",77:"M",78:"N",79:"O",80:"P",81:"Q",82:"R",83:"S",84:"T",85:"U",86:"V",87:"W",88:"X",89:"Y",90:"Z",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9"},A=27,L=13,D=32,H=9,B=38,R=40,M={success:!1,major:"3"};try{M.full=(P.fn.dropdown.Constructor.VERSION||"").split(" ")[0].split("."),M.major=M.full[0],M.success=!0}catch(e){}var U=0,j=".bs.select",V={DISABLED:"disabled",DIVIDER:"divider",SHOW:"open",DROPUP:"dropup",MENU:"dropdown-menu",MENURIGHT:"dropdown-menu-right",MENULEFT:"dropdown-menu-left",BUTTONCLASS:"btn-default",POPOVERHEADER:"popover-title",ICONBASE:"glyphicon",TICKICON:"glyphicon-ok"},F={MENU:"."+V.MENU},_={div:document.createElement("div"),span:document.createElement("span"),i:document.createElement("i"),subtext:document.createElement("small"),a:document.createElement("a"),li:document.createElement("li"),whitespace:document.createTextNode("\xa0"),fragment:document.createDocumentFragment()};_.noResults=_.li.cloneNode(!1),_.noResults.className="no-results",_.a.setAttribute("role","option"),_.a.className="dropdown-item",_.subtext.className="text-muted",_.text=_.span.cloneNode(!1),_.text.className="text",_.checkMark=_.span.cloneNode(!1);var G=new RegExp(B+"|"+R),q=new RegExp("^"+H+"$|"+A),K={li:function(e,t,i){var s=_.li.cloneNode(!1);return e&&(1===e.nodeType||11===e.nodeType?s.appendChild(e):s.innerHTML=e),void 0!==t&&""!==t&&(s.className=t),null!=i&&s.classList.add("optgroup-"+i),s},a:function(e,t,i){var s=_.a.cloneNode(!0);return e&&(11===e.nodeType?s.appendChild(e):s.insertAdjacentHTML("beforeend",e)),void 0!==t&&""!==t&&s.classList.add.apply(s.classList,t.split(/\s+/)),i&&s.setAttribute("style",i),s},text:function(e,t){var i,s,n=_.text.cloneNode(!1);if(e.content)n.innerHTML=e.content;else{if(n.textContent=e.text,e.icon){var o=_.whitespace.cloneNode(!1);(s=(!0===t?_.i:_.span).cloneNode(!1)).className=this.options.iconBase+" "+e.icon,_.fragment.appendChild(s),_.fragment.appendChild(o)}e.subtext&&((i=_.subtext.cloneNode(!1)).textContent=e.subtext,n.appendChild(i))}if(!0===t)for(;0'},maxOptions:!1,mobile:!1,selectOnTab:!1,dropdownAlignRight:!1,windowPadding:0,virtualScroll:600,display:!1,sanitize:!0,sanitizeFn:null,whiteList:e},Y.prototype={constructor:Y,init:function(){var i=this,e=this.$element.attr("id"),t=this.$element[0],s=t.form;U++,this.selectId="bs-select-"+U,t.classList.add("bs-select-hidden"),this.multiple=this.$element.prop("multiple"),this.autofocus=this.$element.prop("autofocus"),t.classList.contains("show-tick")&&(this.options.showTick=!0),this.$newElement=this.createDropdown(),this.buildData(),this.$element.after(this.$newElement).prependTo(this.$newElement),s&&null===t.form&&(s.id||(s.id="form-"+this.selectId),t.setAttribute("form",s.id)),this.$button=this.$newElement.children("button"),this.$menu=this.$newElement.children(F.MENU),this.$menuInner=this.$menu.children(".inner"),this.$searchbox=this.$menu.find("input"),t.classList.remove("bs-select-hidden"),!0===this.options.dropdownAlignRight&&this.$menu[0].classList.add(V.MENURIGHT),void 0!==e&&this.$button.attr("data-id",e),this.checkDisabled(),this.clickListener(),this.options.liveSearch?(this.liveSearchListener(),this.focusedParent=this.$searchbox[0]):this.focusedParent=this.$menuInner[0],this.setStyle(),this.render(),this.setWidth(),this.options.container?this.selectPosition():this.$element.on("hide"+j,function(){if(i.isVirtual()){var e=i.$menuInner[0],t=e.firstChild.cloneNode(!1);e.replaceChild(t,e.firstChild),e.scrollTop=0}}),this.$menu.data("this",this),this.$newElement.data("this",this),this.options.mobile&&this.mobile(),this.$newElement.on({"hide.bs.dropdown":function(e){i.$element.trigger("hide"+j,e)},"hidden.bs.dropdown":function(e){i.$element.trigger("hidden"+j,e)},"show.bs.dropdown":function(e){i.$element.trigger("show"+j,e)},"shown.bs.dropdown":function(e){i.$element.trigger("shown"+j,e)}}),t.hasAttribute("required")&&this.$element.on("invalid"+j,function(){i.$button[0].classList.add("bs-invalid"),i.$element.on("shown"+j+".invalid",function(){i.$element.val(i.$element.val()).off("shown"+j+".invalid")}).on("rendered"+j,function(){this.validity.valid&&i.$button[0].classList.remove("bs-invalid"),i.$element.off("rendered"+j)}),i.$button.on("blur"+j,function(){i.$element.trigger("focus").trigger("blur"),i.$button.off("blur"+j)})}),setTimeout(function(){i.buildList(),i.$element.trigger("loaded"+j)})},createDropdown:function(){var e=this.multiple||this.options.showTick?" show-tick":"",t=this.multiple?' aria-multiselectable="true"':"",i="",s=this.autofocus?" autofocus":"";M.major<4&&this.$element.parent().hasClass("input-group")&&(i=" input-group-btn");var n,o="",r="",l="",a="";return this.options.header&&(o='
                                                                                                                                                                                                                                                                                                          '+this.options.header+"
                                                                                                                                                                                                                                                                                                          "),this.options.liveSearch&&(r=''),this.multiple&&this.options.actionsBox&&(l='
                                                                                                                                                                                                                                                                                                          "),this.multiple&&this.options.doneButton&&(a='
                                                                                                                                                                                                                                                                                                          "),n='",P(n)},setPositionData:function(){this.selectpicker.view.canHighlight=[],this.selectpicker.view.size=0,this.selectpicker.view.firstHighlightIndex=!1;for(var e=0;e=this.options.virtualScroll||!0===this.options.virtualScroll},createView:function(N,e,t){var A,L,D=this,i=0,H=[];if(this.selectpicker.isSearching=N,this.selectpicker.current=N?this.selectpicker.search:this.selectpicker.main,this.setPositionData(),e)if(t)i=this.$menuInner[0].scrollTop;else if(!D.multiple){var s=D.$element[0],n=(s.options[s.selectedIndex]||{}).liIndex;if("number"==typeof n&&!1!==D.options.size){var o=D.selectpicker.main.data[n],r=o&&o.position;r&&(i=r-(D.sizeInfo.menuInnerHeight+D.sizeInfo.liHeight)/2)}}function l(e,t){var i,s,n,o,r,l,a,c,d=D.selectpicker.current.elements.length,h=[],p=!0,u=D.isVirtual();D.selectpicker.view.scrollTop=e,i=Math.ceil(D.sizeInfo.menuInnerHeight/D.sizeInfo.liHeight*1.5),s=Math.round(d/i)||1;for(var f=0;fd-1?0:D.selectpicker.current.data[d-1].position-D.selectpicker.current.data[D.selectpicker.view.position1-1].position,b.firstChild.style.marginTop=v+"px",b.firstChild.style.marginBottom=g+"px"):(b.firstChild.style.marginTop=0,b.firstChild.style.marginBottom=0),b.firstChild.appendChild(w),!0===u&&D.sizeInfo.hasScrollBar){var C=b.firstChild.offsetWidth;if(t&&CD.sizeInfo.selectWidth)b.firstChild.style.minWidth=D.sizeInfo.menuInnerInnerWidth+"px";else if(C>D.sizeInfo.menuInnerInnerWidth){D.$menu[0].style.minWidth=0;var O=b.firstChild.offsetWidth;O>D.sizeInfo.menuInnerInnerWidth&&(D.sizeInfo.menuInnerInnerWidth=O,b.firstChild.style.minWidth=D.sizeInfo.menuInnerInnerWidth+"px"),D.$menu[0].style.minWidth=""}}}if(D.prevActiveIndex=D.activeIndex,D.options.liveSearch){if(N&&t){var z,T=0;D.selectpicker.view.canHighlight[T]||(T=1+D.selectpicker.view.canHighlight.slice(1).indexOf(!0)),z=D.selectpicker.view.visibleElements[T],D.defocusItem(D.selectpicker.view.currentActive),D.activeIndex=(D.selectpicker.current.data[T]||{}).index,D.focusItem(z)}}else D.$menuInner.trigger("focus")}l(i,!0),this.$menuInner.off("scroll.createView").on("scroll.createView",function(e,t){D.noScroll||l(this.scrollTop,t),D.noScroll=!1}),P(window).off("resize"+j+"."+this.selectId+".createView").on("resize"+j+"."+this.selectId+".createView",function(){D.$newElement.hasClass(V.SHOW)&&l(D.$menuInner[0].scrollTop)})},focusItem:function(e,t,i){if(e){t=t||this.selectpicker.main.data[this.activeIndex];var s=e.firstChild;s&&(s.setAttribute("aria-setsize",this.selectpicker.view.size),s.setAttribute("aria-posinset",t.posinset),!0!==i&&(this.focusedParent.setAttribute("aria-activedescendant",s.id),e.classList.add("active"),s.classList.add("active")))}},defocusItem:function(e){e&&(e.classList.remove("active"),e.firstChild&&e.firstChild.classList.remove("active"))},setPlaceholder:function(){var e=this,t=!1;if(this.options.title&&!this.multiple){this.selectpicker.view.titleOption||(this.selectpicker.view.titleOption=document.createElement("option")),t=!0;var i=this.$element[0],s=!1,n=!this.selectpicker.view.titleOption.parentNode,o=i.selectedIndex,r=i.options[o],l=window.performance&&window.performance.getEntriesByType("navigation"),a=l&&l.length?"back_forward"!==l[0].type:2!==window.performance.navigation.type;n&&(this.selectpicker.view.titleOption.className="bs-title-option",this.selectpicker.view.titleOption.value="",s=!r||0===o&&!1===r.defaultSelected&&void 0===this.$element.data("selected")),!n&&0===this.selectpicker.view.titleOption.index||i.insertBefore(this.selectpicker.view.titleOption,i.firstChild),s&&a?i.selectedIndex=0:"complete"!==document.readyState&&window.addEventListener("pageshow",function(){e.selectpicker.view.displayedValue!==i.value&&e.render()})}return t},buildData:function(){var p=':not([hidden]):not([data-hidden="true"])',u=[],f=0,m=this.setPlaceholder()?1:0;this.options.hideDisabled&&(p+=":not(:disabled)");var e=this.$element[0].querySelectorAll("select > *"+p);function v(e){var t=u[u.length-1];t&&"divider"===t.type&&(t.optID||e.optID)||((e=e||{}).type="divider",u.push(e))}function g(e,t){if((t=t||{}).divider="true"===e.getAttribute("data-divider"),t.divider)v({optID:t.optID});else{var i=u.length,s=e.style.cssText,n=s?S(s):"",o=(e.className||"")+(t.optgroupClass||"");t.optID&&(o="opt "+o),t.optionClass=o.trim(),t.inlineStyle=n,t.text=e.textContent,t.content=e.getAttribute("data-content"),t.tokens=e.getAttribute("data-tokens"),t.subtext=e.getAttribute("data-subtext"),t.icon=e.getAttribute("data-icon"),e.liIndex=i,t.display=t.content||t.text,t.type="option",t.index=i,t.option=e,t.selected=!!e.selected,t.disabled=t.disabled||!!e.disabled,u.push(t)}}function t(e,t){var i=t[e],s=!(e-1 li")},render:function(){var e,t=this,i=this.$element[0],s=this.setPlaceholder()&&0===i.selectedIndex,n=O(i,this.options.hideDisabled),o=n.length,r=this.$button[0],l=r.querySelector(".filter-option-inner-inner"),a=document.createTextNode(this.options.multipleSeparator),c=_.fragment.cloneNode(!1),d=!1;if(r.classList.toggle("bs-placeholder",t.multiple?!o:!z(i,n)),t.multiple||1!==n.length||(t.selectpicker.view.displayedValue=z(i,n)),"static"===this.options.selectedTextFormat)c=K.text.call(this,{text:this.options.title},!0);else if(!1===(this.multiple&&-1!==this.options.selectedTextFormat.indexOf("count")&&1")).length&&o>e[1]||1===e.length&&2<=o))){if(!s){for(var h=0;h option"+m+", optgroup"+m+" option"+m).length,g="function"==typeof this.options.countSelectedText?this.options.countSelectedText(o,v):this.options.countSelectedText;c=K.text.call(this,{text:g.replace("{0}",o.toString()).replace("{1}",v.toString())},!0)}if(null==this.options.title&&(this.options.title=this.$element.attr("title")),c.childNodes.length||(c=K.text.call(this,{text:void 0!==this.options.title?this.options.title:this.options.noneSelectedText},!0)),r.title=c.textContent.replace(/<[^>]*>?/g,"").trim(),this.options.sanitize&&d&&W([c],t.options.whiteList,t.options.sanitizeFn),l.innerHTML="",l.appendChild(c),M.major<4&&this.$newElement[0].classList.contains("bs3-has-addon")){var b=r.querySelector(".filter-expand"),w=l.cloneNode(!0);w.className="filter-expand",b?r.replaceChild(w,b):r.appendChild(w)}this.$element.trigger("rendered"+j)},setStyle:function(e,t){var i,s=this.$button[0],n=this.$newElement[0],o=this.options.style.trim();this.$element.attr("class")&&this.$newElement.addClass(this.$element.attr("class").replace(/selectpicker|mobile-device|bs-select-hidden|validate\[.*\]/gi,"")),M.major<4&&(n.classList.add("bs3"),n.parentNode.classList&&n.parentNode.classList.contains("input-group")&&(n.previousElementSibling||n.nextElementSibling)&&(n.previousElementSibling||n.nextElementSibling).classList.contains("input-group-addon")&&n.classList.add("bs3-has-addon")),i=e?e.trim():o,"add"==t?i&&s.classList.add.apply(s.classList,i.split(" ")):"remove"==t?i&&s.classList.remove.apply(s.classList,i.split(" ")):(o&&s.classList.remove.apply(s.classList,o.split(" ")),i&&s.classList.add.apply(s.classList,i.split(" ")))},liHeight:function(e){if(e||!1!==this.options.size&&!Object.keys(this.sizeInfo).length){var t,i=_.div.cloneNode(!1),s=_.div.cloneNode(!1),n=_.div.cloneNode(!1),o=document.createElement("ul"),r=_.li.cloneNode(!1),l=_.li.cloneNode(!1),a=_.a.cloneNode(!1),c=_.span.cloneNode(!1),d=this.options.header&&0this.sizeInfo.menuExtras.vert&&l+this.sizeInfo.menuExtras.vert+50>this.sizeInfo.selectOffsetBot,!0===this.selectpicker.isSearching&&(a=this.selectpicker.dropup),this.$newElement.toggleClass(V.DROPUP,a),this.selectpicker.dropup=a),"auto"===this.options.size)n=3this.options.size){for(var b=0;bthis.sizeInfo.menuInnerHeight&&(this.sizeInfo.hasScrollBar=!0,this.sizeInfo.totalMenuWidth=this.sizeInfo.menuWidth+this.sizeInfo.scrollBarWidth),"auto"===this.options.dropdownAlignRight&&this.$menu.toggleClass(V.MENURIGHT,this.sizeInfo.selectOffsetLeft>this.sizeInfo.selectOffsetRight&&this.sizeInfo.selectOffsetRightthis.options.size&&i.off("resize"+j+"."+this.selectId+".setMenuSize scroll"+j+"."+this.selectId+".setMenuSize")}this.createView(!1,!0,e)},setWidth:function(){var i=this;"auto"===this.options.width?requestAnimationFrame(function(){i.$menu.css("min-width","0"),i.$element.on("loaded"+j,function(){i.liHeight(),i.setMenuSize();var e=i.$newElement.clone().appendTo("body"),t=e.css("width","auto").children("button").outerWidth();e.remove(),i.sizeInfo.selectWidth=Math.max(i.sizeInfo.totalMenuWidth,t),i.$newElement.css("width",i.sizeInfo.selectWidth+"px")})}):"fit"===this.options.width?(this.$menu.css("min-width",""),this.$newElement.css("width","").addClass("fit-width")):this.options.width?(this.$menu.css("min-width",""),this.$newElement.css("width",this.options.width)):(this.$menu.css("min-width",""),this.$newElement.css("width","")),this.$newElement.hasClass("fit-width")&&"fit"!==this.options.width&&this.$newElement[0].classList.remove("fit-width")},selectPosition:function(){this.$bsContainer=P('
                                                                                                                                                                                                                                                                                                          ');function e(e){var t={},i=r.options.display||!!P.fn.dropdown.Constructor.Default&&P.fn.dropdown.Constructor.Default.display;r.$bsContainer.addClass(e.attr("class").replace(/form-control|fit-width/gi,"")).toggleClass(V.DROPUP,e.hasClass(V.DROPUP)),s=e.offset(),l.is("body")?n={top:0,left:0}:((n=l.offset()).top+=parseInt(l.css("borderTopWidth"))-l.scrollTop(),n.left+=parseInt(l.css("borderLeftWidth"))-l.scrollLeft()),o=e.hasClass(V.DROPUP)?0:e[0].offsetHeight,(M.major<4||"static"===i)&&(t.top=s.top-n.top+o,t.left=s.left-n.left),t.width=e[0].offsetWidth,r.$bsContainer.css(t)}var s,n,o,r=this,l=P(this.options.container);this.$button.on("click.bs.dropdown.data-api",function(){r.isDisabled()||(e(r.$newElement),r.$bsContainer.appendTo(r.options.container).toggleClass(V.SHOW,!r.$button.hasClass(V.SHOW)).append(r.$menu))}),P(window).off("resize"+j+"."+this.selectId+" scroll"+j+"."+this.selectId).on("resize"+j+"."+this.selectId+" scroll"+j+"."+this.selectId,function(){r.$newElement.hasClass(V.SHOW)&&e(r.$newElement)}),this.$element.on("hide"+j,function(){r.$menu.data("height",r.$menu.height()),r.$bsContainer.detach()})},setOptionStatus:function(e){var t=this;if(t.noScroll=!1,t.selectpicker.view.visibleElements&&t.selectpicker.view.visibleElements.length)for(var i=0;i
                                                                                                                                                                                                                                                                                                          ');y[2]&&($=$.replace("{var}",y[2][1"+$+"
                                                                                                                                                                                                                                                                                                          ")),d=!1,C.$element.trigger("maxReached"+j)),g&&w&&(E.append(P("
                                                                                                                                                                                                                                                                                                          "+S+"
                                                                                                                                                                                                                                                                                                          ")),d=!1,C.$element.trigger("maxReachedGrp"+j)),setTimeout(function(){C.setSelected(r,!1)},10),E[0].classList.add("fadeOut"),setTimeout(function(){E.remove()},1050)}}}else c&&(c.selected=!1),h.selected=!0,C.setSelected(r,!0);!C.multiple||C.multiple&&1===C.options.maxOptions?C.$button.trigger("focus"):C.options.liveSearch&&C.$searchbox.trigger("focus"),d&&(!C.multiple&&a===s.selectedIndex||(T=[h.index,p.prop("selected"),l],C.$element.triggerNative("change")))}}),this.$menu.on("click","li."+V.DISABLED+" a, ."+V.POPOVERHEADER+", ."+V.POPOVERHEADER+" :not(.close)",function(e){e.currentTarget==this&&(e.preventDefault(),e.stopPropagation(),C.options.liveSearch&&!P(e.target).hasClass("close")?C.$searchbox.trigger("focus"):C.$button.trigger("focus"))}),this.$menuInner.on("click",".divider, .dropdown-header",function(e){e.preventDefault(),e.stopPropagation(),C.options.liveSearch?C.$searchbox.trigger("focus"):C.$button.trigger("focus")}),this.$menu.on("click","."+V.POPOVERHEADER+" .close",function(){C.$button.trigger("click")}),this.$searchbox.on("click",function(e){e.stopPropagation()}),this.$menu.on("click",".actions-btn",function(e){C.options.liveSearch?C.$searchbox.trigger("focus"):C.$button.trigger("focus"),e.preventDefault(),e.stopPropagation(),P(this).hasClass("bs-select-all")?C.selectAll():C.deselectAll()}),this.$button.on("focus"+j,function(e){var t=C.$element[0].getAttribute("tabindex");void 0!==t&&e.originalEvent&&e.originalEvent.isTrusted&&(this.setAttribute("tabindex",t),C.$element[0].setAttribute("tabindex",-1),C.selectpicker.view.tabindex=t)}).on("blur"+j,function(e){void 0!==C.selectpicker.view.tabindex&&e.originalEvent&&e.originalEvent.isTrusted&&(C.$element[0].setAttribute("tabindex",C.selectpicker.view.tabindex),this.setAttribute("tabindex",-1),C.selectpicker.view.tabindex=void 0)}),this.$element.on("change"+j,function(){C.render(),C.$element.trigger("changed"+j,T),T=null}).on("focus"+j,function(){C.options.mobile||C.$button[0].focus()})},liveSearchListener:function(){var u=this;this.$button.on("click.bs.dropdown.data-api",function(){u.$searchbox.val()&&(u.$searchbox.val(""),u.selectpicker.search.previousValue=void 0)}),this.$searchbox.on("click.bs.dropdown.data-api focus.bs.dropdown.data-api touchend.bs.dropdown.data-api",function(e){e.stopPropagation()}),this.$searchbox.on("input propertychange",function(){var e=u.$searchbox[0].value;if(u.selectpicker.search.elements=[],u.selectpicker.search.data=[],e){var t=[],i=e.toUpperCase(),s={},n=[],o=u._searchStyle(),r=u.options.liveSearchNormalize;r&&(i=w(i));for(var l=0;l=a.selectpicker.view.canHighlight.length&&(t=a.selectpicker.view.firstHighlightIndex),a.selectpicker.view.canHighlight[t+f]||(t=t+1+a.selectpicker.view.canHighlight.slice(t+f+1).indexOf(!0))),e.preventDefault();var m=f+t;e.which===B?0===f&&t===c.length-1?(a.$menuInner[0].scrollTop=a.$menuInner[0].scrollHeight,m=a.selectpicker.current.elements.length-1):d=(o=(n=a.selectpicker.current.data[m]).position-n.height)u+a.sizeInfo.menuInnerHeight),s=a.selectpicker.main.elements[v],a.activeIndex=b[x],a.focusItem(s),s&&s.firstChild.focus(),d&&(a.$menuInner[0].scrollTop=o),r.trigger("focus")}}i&&(e.which===D&&!a.selectpicker.keydown.keyHistory||e.which===L||e.which===H&&a.options.selectOnTab)&&(e.which!==D&&e.preventDefault(),a.options.liveSearch&&e.which===D||(a.$menuInner.find(".active a").trigger("click",!0),r.trigger("focus"),a.options.liveSearch||(e.preventDefault(),P(document).data("spaceSelect",!0))))}},mobile:function(){this.options.mobile=!0,this.$element[0].classList.add("mobile-device")},refresh:function(){var e=P.extend({},this.options,this.$element.data());this.options=e,this.checkDisabled(),this.buildData(),this.setStyle(),this.render(),this.buildList(),this.setWidth(),this.setSize(!0),this.$element.trigger("refreshed"+j)},hide:function(){this.$newElement.hide()},show:function(){this.$newElement.show()},remove:function(){this.$newElement.remove(),this.$element.remove()},destroy:function(){this.$newElement.before(this.$element).remove(),this.$bsContainer?this.$bsContainer.remove():this.$menu.remove(),this.selectpicker.view.titleOption&&this.selectpicker.view.titleOption.parentNode&&this.selectpicker.view.titleOption.parentNode.removeChild(this.selectpicker.view.titleOption),this.$element.off(j).removeData("selectpicker").removeClass("bs-select-hidden selectpicker"),P(window).off(j+"."+this.selectId)}};var J=P.fn.selectpicker;function Q(){if(P.fn.dropdown)return(P.fn.dropdown.Constructor._dataApiKeydownHandler||P.fn.dropdown.Constructor.prototype.keydown).apply(this,arguments)}P.fn.selectpicker=Z,P.fn.selectpicker.Constructor=Y,P.fn.selectpicker.noConflict=function(){return P.fn.selectpicker=J,this},P(document).off("keydown.bs.dropdown.data-api").on("keydown.bs.dropdown.data-api",':not(.bootstrap-select) > [data-toggle="dropdown"]',Q).on("keydown.bs.dropdown.data-api",":not(.bootstrap-select) > .dropdown-menu",Q).on("keydown"+j,'.bootstrap-select [data-toggle="dropdown"], .bootstrap-select [role="listbox"], .bootstrap-select .bs-searchbox input',Y.prototype.keydown).on("focusin.modal",'.bootstrap-select [data-toggle="dropdown"], .bootstrap-select [role="listbox"], .bootstrap-select .bs-searchbox input',function(e){e.stopPropagation()}),P(window).on("load"+j+".data-api",function(){P(".selectpicker").each(function(){var e=P(this);Z.call(e,e.data())})})}(e)}); \ No newline at end of file diff --git a/alive-admin/target/classes/static/ajax/libs/bootstrap-table/bootstrap-table.min.css b/alive-admin/target/classes/static/ajax/libs/bootstrap-table/bootstrap-table.min.css new file mode 100644 index 0000000..7e150cf --- /dev/null +++ b/alive-admin/target/classes/static/ajax/libs/bootstrap-table/bootstrap-table.min.css @@ -0,0 +1,6 @@ +/** + * @author zhixin wen + * version: 1.19.1 + * https://github.com/wenzhixin/bootstrap-table/ + */ +.bootstrap-table .fixed-table-toolbar::after{content:"";display:block;clear:both}.bootstrap-table .fixed-table-toolbar .bs-bars,.bootstrap-table .fixed-table-toolbar .columns,.bootstrap-table .fixed-table-toolbar .search{position:relative;margin-top:10px;margin-bottom:10px}.bootstrap-table .fixed-table-toolbar .columns .btn-group>.btn-group{display:inline-block;margin-left:-1px!important}.bootstrap-table .fixed-table-toolbar .columns .btn-group>.btn-group>.btn{border-radius:0}.bootstrap-table .fixed-table-toolbar .columns .btn-group>.btn-group:first-child>.btn{border-top-left-radius:4px;border-bottom-left-radius:4px}.bootstrap-table .fixed-table-toolbar .columns .btn-group>.btn-group:last-child>.btn{border-top-right-radius:4px;border-bottom-right-radius:4px}.bootstrap-table .fixed-table-toolbar .columns .dropdown-menu{text-align:left;max-height:300px;overflow:auto;-ms-overflow-style:scrollbar;z-index:1001}.bootstrap-table .fixed-table-toolbar .columns label{display:block;padding:3px 20px;clear:both;font-weight:400;line-height:1.428571429}.bootstrap-table .fixed-table-toolbar .columns-left{margin-right:5px}.bootstrap-table .fixed-table-toolbar .columns-right{margin-left:5px}.bootstrap-table .fixed-table-toolbar .pull-right .dropdown-menu{right:0;left:auto}.bootstrap-table .fixed-table-container{position:relative;clear:both}.bootstrap-table .fixed-table-container .table{width:100%;margin-bottom:0!important}.bootstrap-table .fixed-table-container .table td,.bootstrap-table .fixed-table-container .table th{vertical-align:middle;box-sizing:border-box}.bootstrap-table .fixed-table-container .table thead th{vertical-align:bottom;padding:0;margin:0}.bootstrap-table .fixed-table-container .table thead th:focus{outline:0 solid transparent}.bootstrap-table .fixed-table-container .table thead th.detail{width:30px}.bootstrap-table .fixed-table-container .table thead th .th-inner{padding:.75rem;vertical-align:bottom;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bootstrap-table .fixed-table-container .table thead th .sortable{cursor:pointer;background-position:right;background-repeat:no-repeat;padding-right:30px!important}.bootstrap-table .fixed-table-container .table thead th .both{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAQAAADYWf5HAAAAkElEQVQoz7X QMQ5AQBCF4dWQSJxC5wwax1Cq1e7BAdxD5SL+Tq/QCM1oNiJidwox0355mXnG/DrEtIQ6azioNZQxI0ykPhTQIwhCR+BmBYtlK7kLJYwWCcJA9M4qdrZrd8pPjZWPtOqdRQy320YSV17OatFC4euts6z39GYMKRPCTKY9UnPQ6P+GtMRfGtPnBCiqhAeJPmkqAAAAAElFTkSuQmCC")}.bootstrap-table .fixed-table-container .table thead th .asc{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAYAAAByUDbMAAAAZ0lEQVQ4y2NgGLKgquEuFxBPAGI2ahhWCsS/gDibUoO0gPgxEP8H4ttArEyuQYxAPBdqEAxPBImTY5gjEL9DM+wTENuQahAvEO9DMwiGdwAxOymGJQLxTyD+jgWDxCMZRsEoGAVoAADeemwtPcZI2wAAAABJRU5ErkJggg==")}.bootstrap-table .fixed-table-container .table thead th .desc{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAYAAAByUDbMAAAAZUlEQVQ4y2NgGAWjYBSggaqGu5FA/BOIv2PBIPFEUgxjB+IdQPwfC94HxLykus4GiD+hGfQOiB3J8SojEE9EM2wuSJzcsFMG4ttQgx4DsRalkZENxL+AuJQaMcsGxBOAmGvopk8AVz1sLZgg0bsAAAAASUVORK5CYII= ")}.bootstrap-table .fixed-table-container .table tbody tr.selected td{background-color:rgba(0,0,0,.075)}.bootstrap-table .fixed-table-container .table tbody tr.no-records-found td{text-align:center}.bootstrap-table .fixed-table-container .table tbody tr .card-view{display:flex}.bootstrap-table .fixed-table-container .table tbody tr .card-view .card-view-title{font-weight:700;display:inline-block;min-width:30%;width:auto!important;text-align:left!important}.bootstrap-table .fixed-table-container .table tbody tr .card-view .card-view-value{width:100%!important}.bootstrap-table .fixed-table-container .table .bs-checkbox{text-align:center}.bootstrap-table .fixed-table-container .table .bs-checkbox label{margin-bottom:0}.bootstrap-table .fixed-table-container .table .bs-checkbox label input[type=checkbox],.bootstrap-table .fixed-table-container .table .bs-checkbox label input[type=radio]{margin:0 auto!important}.bootstrap-table .fixed-table-container .table.table-sm .th-inner{padding:.3rem}.bootstrap-table .fixed-table-container.fixed-height:not(.has-footer){border-bottom:1px solid #dee2e6}.bootstrap-table .fixed-table-container.fixed-height.has-card-view{border-top:1px solid #dee2e6;border-bottom:1px solid #dee2e6}.bootstrap-table .fixed-table-container.fixed-height .fixed-table-border{border-left:1px solid #dee2e6;border-right:1px solid #dee2e6}.bootstrap-table .fixed-table-container.fixed-height .table thead th{border-bottom:1px solid #dee2e6}.bootstrap-table .fixed-table-container.fixed-height .table-dark thead th{border-bottom:1px solid #32383e}.bootstrap-table .fixed-table-container .fixed-table-header{overflow:hidden}.bootstrap-table .fixed-table-container .fixed-table-body{overflow-x:auto;overflow-y:auto;height:100%}.bootstrap-table .fixed-table-container .fixed-table-body .fixed-table-loading{align-items:center;background:#fff;display:flex;justify-content:center;position:absolute;bottom:0;width:100%;max-width:100%;z-index:1000;transition:visibility 0s,opacity .15s ease-in-out;opacity:0;visibility:hidden}.bootstrap-table .fixed-table-container .fixed-table-body .fixed-table-loading.open{visibility:visible;opacity:1}.bootstrap-table .fixed-table-container .fixed-table-body .fixed-table-loading .loading-wrap{align-items:baseline;display:flex;justify-content:center}.bootstrap-table .fixed-table-container .fixed-table-body .fixed-table-loading .loading-wrap .loading-text{margin-right:6px}.bootstrap-table .fixed-table-container .fixed-table-body .fixed-table-loading .loading-wrap .animation-wrap{align-items:center;display:flex;justify-content:center}.bootstrap-table .fixed-table-container .fixed-table-body .fixed-table-loading .loading-wrap .animation-dot,.bootstrap-table .fixed-table-container .fixed-table-body .fixed-table-loading .loading-wrap .animation-wrap::after,.bootstrap-table .fixed-table-container .fixed-table-body .fixed-table-loading .loading-wrap .animation-wrap::before{content:"";animation-duration:1.5s;animation-iteration-count:infinite;animation-name:LOADING;background:#212529;border-radius:50%;display:block;height:5px;margin:0 4px;opacity:0;width:5px}.bootstrap-table .fixed-table-container .fixed-table-body .fixed-table-loading .loading-wrap .animation-dot{animation-delay:.3s}.bootstrap-table .fixed-table-container .fixed-table-body .fixed-table-loading .loading-wrap .animation-wrap::after{animation-delay:.6s}.bootstrap-table .fixed-table-container .fixed-table-body .fixed-table-loading.table-dark{background:#212529}.bootstrap-table .fixed-table-container .fixed-table-body .fixed-table-loading.table-dark .animation-dot,.bootstrap-table .fixed-table-container .fixed-table-body .fixed-table-loading.table-dark .animation-wrap::after,.bootstrap-table .fixed-table-container .fixed-table-body .fixed-table-loading.table-dark .animation-wrap::before{background:#fff}.bootstrap-table .fixed-table-container .fixed-table-footer{overflow:hidden}.bootstrap-table .fixed-table-pagination::after{content:"";display:block;clear:both}.bootstrap-table .fixed-table-pagination>.pagination,.bootstrap-table .fixed-table-pagination>.pagination-detail{margin-top:10px;margin-bottom:10px}.bootstrap-table .fixed-table-pagination>.pagination-detail .pagination-info{line-height:34px;margin-right:5px}.bootstrap-table .fixed-table-pagination>.pagination-detail .page-list{display:inline-block}.bootstrap-table .fixed-table-pagination>.pagination-detail .page-list .btn-group{position:relative;display:inline-block;vertical-align:middle}.bootstrap-table .fixed-table-pagination>.pagination-detail .page-list .btn-group .dropdown-menu{margin-bottom:0}.bootstrap-table .fixed-table-pagination>.pagination ul.pagination{margin:0}.bootstrap-table .fixed-table-pagination>.pagination ul.pagination li.page-intermediate a{color:#c8c8c8}.bootstrap-table .fixed-table-pagination>.pagination ul.pagination li.page-intermediate a::before{content:'\2B05'}.bootstrap-table .fixed-table-pagination>.pagination ul.pagination li.page-intermediate a::after{content:'\27A1'}.bootstrap-table .fixed-table-pagination>.pagination ul.pagination li.disabled a{pointer-events:none;cursor:default}.bootstrap-table.fullscreen{position:fixed;top:0;left:0;z-index:1050;width:100%!important;background:#fff;height:calc(100vh);overflow-y:scroll}.bootstrap-table.bootstrap4 .pagination-lg .page-link,.bootstrap-table.bootstrap5 .pagination-lg .page-link{padding:.5rem 1rem}.bootstrap-table.bootstrap5 .float-left{float:left}.bootstrap-table.bootstrap5 .float-right{float:right}div.fixed-table-scroll-inner{width:100%;height:200px}div.fixed-table-scroll-outer{top:0;left:0;visibility:hidden;width:200px;height:150px;overflow:hidden}@keyframes LOADING{0%{opacity:0}50%{opacity:1}to{opacity:0}} \ No newline at end of file diff --git a/alive-admin/target/classes/static/ajax/libs/bootstrap-table/bootstrap-table.min.js b/alive-admin/target/classes/static/ajax/libs/bootstrap-table/bootstrap-table.min.js new file mode 100644 index 0000000..ac557c8 --- /dev/null +++ b/alive-admin/target/classes/static/ajax/libs/bootstrap-table/bootstrap-table.min.js @@ -0,0 +1,6 @@ +/** + * @author zhixin wen + * version: 1.19.1 + * https://github.com/wenzhixin/bootstrap-table/ + */ +function getRememberRowIds(t,e){return $.isArray(t)?props=$.map(t,function(t){return t[e]}):props=[t[e]],props}function addRememberRow(t,e){var i=null==table.options.uniqueId?table.options.columns[1].field:table.options.uniqueId,n=getRememberRowIds(t,i);-1==$.inArray(e[i],n)&&(t[t.length]=e)}function removeRememberRow(t,e){var i=null==table.options.uniqueId?table.options.columns[1].field:table.options.uniqueId,n=getRememberRowIds(t,i),o=$.inArray(e[i],n);-1!=o&&t.splice(o,1)}!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],e):(t="undefined"!=typeof globalThis?globalThis:t||self,t.BootstrapTable=e(t.jQuery))}(this,function(t){function e(t){return t&&"object"==typeof t&&"default" in t?t:{"default":t}}function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function n(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function o(t,e){for(var i=0;it.length)&&(e=t.length);for(var i=0,n=Array(e);e>i;i++){n[i]=t[i]}return n}function p(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function g(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function v(t,e){var i;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(i=d(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,r=!1;return{s:function(){i=t[Symbol.iterator]()},n:function(){var t=i.next();return s=t.done,t},e:function(t){r=!0,a=t},f:function(){try{s||null==i["return"]||i["return"]()}finally{if(r){throw a}}}}}function b(t,e){return e={exports:{}},t(e,e.exports),e.exports}function m(t,e){return RegExp(t,e)}var y=e(t),w="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},S=function(t){return t&&t.Math==Math&&t},x=S("object"==typeof globalThis&&globalThis)||S("object"==typeof window&&window)||S("object"==typeof self&&self)||S("object"==typeof w&&w)||function(){return this}()||Function("return this")(),k=function(t){try{return !!t()}catch(e){return !0}},O=!k(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),T={}.propertyIsEnumerable,C=Object.getOwnPropertyDescriptor,P=C&&!T.call({1:2},1),I=P?function(t){var e=C(this,t);return !!e&&e.enumerable}:T,A={f:I},$=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},R={}.toString,E=function(t){return R.call(t).slice(8,-1)},j="".split,_=k(function(){return !Object("z").propertyIsEnumerable(0)})?function(t){return"String"==E(t)?j.call(t,""):Object(t)}:Object,N=function(t){if(void 0==t){throw TypeError("Can't call method on "+t)}return t},F=function(t){return _(N(t))},D=function(t){return"object"==typeof t?null!==t:"function"==typeof t},V=function(t,e){if(!D(t)){return t}var i,n;if(e&&"function"==typeof(i=t.toString)&&!D(n=i.call(t))){return n}if("function"==typeof(i=t.valueOf)&&!D(n=i.call(t))){return n}if(!e&&"function"==typeof(i=t.toString)&&!D(n=i.call(t))){return n}throw TypeError("Can't convert object to primitive value")},B={}.hasOwnProperty,L=function(t,e){return B.call(t,e)},H=x.document,M=D(H)&&D(H.createElement),U=function(t){return M?H.createElement(t):{}},q=!O&&!k(function(){return 7!=Object.defineProperty(U("div"),"a",{get:function(){return 7}}).a}),z=Object.getOwnPropertyDescriptor,W=O?z:function(t,e){if(t=F(t),e=V(e,!0),q){try{return z(t,e)}catch(i){}}return L(t,e)?$(!A.f.call(t,e),t[e]):void 0},G={f:W},K=function(t){if(!D(t)){throw TypeError(t+" is not an object")}return t},Y=Object.defineProperty,X=O?Y:function(t,e,i){if(K(t),e=V(e,!0),K(i),q){try{return Y(t,e,i)}catch(n){}}if("get" in i||"set" in i){throw TypeError("Accessors not supported")}return"value" in i&&(t[e]=i.value),t},J={f:X},Q=O?function(t,e,i){return J.f(t,e,$(1,i))}:function(t,e,i){return t[e]=i,t},Z=function(t,e){try{Q(x,t,e)}catch(i){x[t]=e}return e},tt="__core-js_shared__",et=x[tt]||Z(tt,{}),it=et,nt=Function.toString;"function"!=typeof it.inspectSource&&(it.inspectSource=function(t){return nt.call(t)});var ot,at,st,rt=it.inspectSource,lt=x.WeakMap,ct="function"==typeof lt&&/native code/.test(rt(lt)),ht=b(function(t){(t.exports=function(t,e){return it[t]||(it[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.10.1",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),ut=0,dt=Math.random(),ft=function(t){return"Symbol("+((void 0===t?"":t)+"")+")_"+(++ut+dt).toString(36)},pt=ht("keys"),gt=function(t){return pt[t]||(pt[t]=ft(t))},vt={},bt=x.WeakMap,mt=function(t){return st(t)?at(t):ot(t,{})},yt=function(t){return function(e){var i;if(!D(e)||(i=at(e)).type!==t){throw TypeError("Incompatible receiver, "+t+" required")}return i}};if(ct){var wt=it.state||(it.state=new bt),St=wt.get,xt=wt.has,kt=wt.set;ot=function(t,e){return e.facade=t,kt.call(wt,t,e),e},at=function(t){return St.call(wt,t)||{}},st=function(t){return xt.call(wt,t)}}else{var Ot=gt("state");vt[Ot]=!0,ot=function(t,e){return e.facade=t,Q(t,Ot,e),e},at=function(t){return L(t,Ot)?t[Ot]:{}},st=function(t){return L(t,Ot)}}var Tt={set:ot,get:at,has:st,enforce:mt,getterFor:yt},Ct=b(function(t){var e=Tt.get,i=Tt.enforce,n=(String+"").split("String");(t.exports=function(t,e,o,a){var s,r=a?!!a.unsafe:!1,l=a?!!a.enumerable:!1,c=a?!!a.noTargetGet:!1;return"function"==typeof o&&("string"!=typeof e||L(o,"name")||Q(o,"name",e),s=i(o),s.source||(s.source=n.join("string"==typeof e?e:""))),t===x?void (l?t[e]=o:Z(e,o)):(r?!c&&t[e]&&(l=!0):delete t[e],void (l?t[e]=o:Q(t,e,o)))})(Function.prototype,"toString",function(){return"function"==typeof this&&e(this).source||rt(this)})}),Pt=x,It=function(t){return"function"==typeof t?t:void 0},At=function(t,e){return arguments.length<2?It(Pt[t])||It(x[t]):Pt[t]&&Pt[t][e]||x[t]&&x[t][e]},$t=Math.ceil,Rt=Math.floor,Et=function(t){return isNaN(t=+t)?0:(t>0?Rt:$t)(t)},jt=Math.min,_t=function(t){return t>0?jt(Et(t),9007199254740991):0},Nt=Math.max,Ft=Math.min,Dt=function(t,e){var i=Et(t);return 0>i?Nt(i+e,0):Ft(i,e)},Vt=function(t){return function(e,i,n){var o,a=F(e),s=_t(a.length),r=Dt(n,s);if(t&&i!=i){for(;s>r;){if(o=a[r++],o!=o){return !0}}}else{for(;s>r;r++){if((t||r in a)&&a[r]===i){return t||r||0}}}return !t&&-1}},Bt={includes:Vt(!0),indexOf:Vt(!1)},Lt=Bt.indexOf,Ht=function(t,e){var i,n=F(t),o=0,a=[];for(i in n){!L(vt,i)&&L(n,i)&&a.push(i)}for(;e.length>o;){L(n,i=e[o++])&&(~Lt(a,i)||a.push(i))}return a},Mt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ut=Mt.concat("length","prototype"),qt=Object.getOwnPropertyNames||function(t){return Ht(t,Ut)},zt={f:qt},Wt=Object.getOwnPropertySymbols,Gt={f:Wt},Kt=At("Reflect","ownKeys")||function(t){var e=zt.f(K(t)),i=Gt.f;return i?e.concat(i(t)):e},Yt=function(t,e){for(var i=Kt(e),n=J.f,o=G.f,a=0;a0&&(!a.multiline||a.multiline&&"\n"!==t[a.lastIndex-1])&&(l="(?: "+l+")",h=" "+h,c++),i=RegExp("^(?:"+l+")",r)),Pe&&(i=RegExp("^"+l+"$(?!\\s)",r)),Te&&(e=a.lastIndex),n=xe.call(s?i:a,h),s?n?(n.input=n.input.slice(c),n[0]=n[0].slice(c),n.index=a.lastIndex,a.lastIndex+=n[0].length):a.lastIndex=0:Te&&n&&(a.lastIndex=a.global?n.index+n[0].length:e),Pe&&n&&n.length>1&&ke.call(n[0],i,function(){for(o=1;o=74)&&($e=je.match(/Chrome\/(\d+)/),$e&&(Re=$e[1])));var De=Re&&+Re,Ve=!!Object.getOwnPropertySymbols&&!k(function(){return !Symbol.sham&&(Ee?38===De:De>37&&41>De)}),Be=Ve&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Le=ht("wks"),He=x.Symbol,Me=Be?He:He&&He.withoutSetter||ft,Ue=function(t){return(!L(Le,t)||!Ve&&"string"!=typeof Le[t])&&(Ve&&L(He,t)?Le[t]=He[t]:Le[t]=Me("Symbol."+t)),Le[t]},qe=Ue("species"),ze=!k(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$")}),We=function(){return"$0"==="a".replace(/./,"$0")}(),Ge=Ue("replace"),Ke=function(){return/./[Ge]?""===/./[Ge]("a","$0"):!1}(),Ye=!k(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var i="ab".split(t);return 2!==i.length||"a"!==i[0]||"b"!==i[1]}),Xe=function(t,e,i,n){var o=Ue(t),a=!k(function(){var e={};return e[o]=function(){return 7},7!=""[t](e)}),s=a&&!k(function(){var e=!1,i=/a/;return"split"===t&&(i={},i.constructor={},i.constructor[qe]=function(){return i},i.flags="",i[o]=/./[o]),i.exec=function(){return e=!0,null},i[o](""),!e});if(!a||!s||"replace"===t&&(!ze||!We||Ke)||"split"===t&&!Ye){var r=/./[o],l=i(o,""[t],function(t,e,i,n,o){return e.exec===RegExp.prototype.exec?a&&!o?{done:!0,value:r.call(e,i,n)}:{done:!0,value:t.call(i,e,n)}:{done:!1}},{REPLACE_KEEPS_$0:We,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:Ke}),c=l[0],h=l[1];Ct(String.prototype,t,c),Ct(RegExp.prototype,o,2==e?function(t,e){return h.call(t,this,e)}:function(t){return h.call(t,this)})}n&&Q(RegExp.prototype[o],"sham",!0)},Je=Ue("match"),Qe=function(t){var e;return D(t)&&(void 0!==(e=t[Je])?!!e:"RegExp"==E(t))},Ze=function(t){if("function"!=typeof t){throw TypeError(t+" is not a function")}return t},ti=Ue("species"),ei=function(t,e){var i,n=K(t).constructor;return void 0===n||void 0==(i=K(n)[ti])?e:Ze(i)},ii=function(t){return function(e,i){var n,o,a=N(e)+"",s=Et(i),r=a.length;return 0>s||s>=r?t?"":void 0:(n=a.charCodeAt(s),55296>n||n>56319||s+1===r||(o=a.charCodeAt(s+1))<56320||o>57343?t?a.charAt(s):n:t?a.slice(s,s+2):(n-55296<<10)+(o-56320)+65536)}},ni={codeAt:ii(!1),charAt:ii(!0)},oi=ni.charAt,ai=function(t,e,i){return e+(i?oi(t,e).length:1)},si=function(t,e){var i=t.exec;if("function"==typeof i){var n=i.call(t,e);if("object"!=typeof n){throw TypeError("RegExp exec method returned something other than an Object or null")}return n}if("RegExp"!==E(t)){throw TypeError("RegExp#exec called on incompatible receiver")}return Ae.call(t,e)},ri=Se.UNSUPPORTED_Y,li=[].push,ci=Math.min,hi=4294967295;Xe("split",2,function(t,e,i){var n;return n="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,i){var n=N(this)+"",o=void 0===i?hi:i>>>0;if(0===o){return[]}if(void 0===t){return[n]}if(!Qe(t)){return e.call(n,t,o)}for(var a,s,r,l=[],c=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),h=0,u=RegExp(t.source,c+"g");(a=Ae.call(u,n))&&(s=u.lastIndex,!(s>h&&(l.push(n.slice(h,a.index)),a.length>1&&a.index=o)));){u.lastIndex===a.index&&u.lastIndex++}return h===n.length?(r||!u.test(""))&&l.push(""):l.push(n.slice(h)),l.length>o?l.slice(0,o):l}:"0".split(void 0,0).length?function(t,i){return void 0===t&&0===i?[]:e.call(this,t,i)}:e,[function(e,i){var o=N(this),a=void 0==e?void 0:e[t];return void 0!==a?a.call(e,o,i):n.call(o+"",e,i)},function(t,o){var a=i(n,t,this,o,n!==e);if(a.done){return a.value}var s=K(t),r=this+"",l=ei(s,RegExp),c=s.unicode,h=(s.ignoreCase?"i":"")+(s.multiline?"m":"")+(s.unicode?"u":"")+(ri?"g":"y"),u=new l(ri?"^(?:"+s.source+")":s,h),d=void 0===o?hi:o>>>0;if(0===d){return[]}if(0===r.length){return null===si(u,r)?[r]:[]}for(var f=0,p=0,g=[];ps;){i=o[s++],(!O||di.call(n,i))&&r.push(t?[i,n[i]]:n[i])}return r}},pi={entries:fi(!0),values:fi(!1)},gi=pi.entries;oe({target:"Object",stat:!0},{entries:function(t){return gi(t)}});var vi,bi=O?Object.defineProperties:function(t,e){K(t);for(var i,n=ui(e),o=n.length,a=0;o>a;){J.f(t,i=n[a++],e[i])}return t},mi=At("document","documentElement"),yi=">",wi="<",Si="prototype",xi="script",ki=gt("IE_PROTO"),Oi=function(){},Ti=function(t){return wi+xi+yi+t+wi+"/"+xi+yi},Ci=function(t){t.write(Ti("")),t.close();var e=t.parentWindow.Object;return t=null,e},Pi=function(){var t,e=U("iframe"),i="java"+xi+":";return e.style.display="none",mi.appendChild(e),e.src=i+"",t=e.contentWindow.document,t.open(),t.write(Ti("document.F=Object")),t.close(),t.F},Ii=function(){try{vi=document.domain&&new ActiveXObject("htmlfile")}catch(t){}Ii=vi?Ci(vi):Pi();for(var e=Mt.length;e--;){delete Ii[Si][Mt[e]]}return Ii()};vt[ki]=!0;var Ai=Object.create||function(t,e){var i;return null!==t?(Oi[Si]=K(t),i=new Oi,Oi[Si]=null,i[ki]=t):i=Ii(),void 0===e?i:bi(i,e)},$i=Ue("unscopables"),Ri=Array.prototype;void 0==Ri[$i]&&J.f(Ri,$i,{configurable:!0,value:Ai(null)});var Ei=function(t){Ri[$i][t]=!0},ji=Bt.includes;oe({target:"Array",proto:!0},{includes:function(t){return ji(this,t,arguments.length>1?arguments[1]:void 0)}}),Ei("includes");var _i=Array.isArray||function(t){return"Array"==E(t)},Ni=function(t){return Object(N(t))},Fi=function(t,e,i){var n=V(e);n in t?J.f(t,n,$(0,i)):t[n]=i},Di=Ue("species"),Vi=function(t,e){var i;return _i(t)&&(i=t.constructor,"function"!=typeof i||i!==Array&&!_i(i.prototype)?D(i)&&(i=i[Di],null===i&&(i=void 0)):i=void 0),new (void 0===i?Array:i)(0===e?0:e)},Bi=Ue("species"),Li=function(t){return De>=51||!k(function(){var e=[],i=e.constructor={};return i[Bi]=function(){return{foo:1}},1!==e[t](Boolean).foo})},Hi=Ue("isConcatSpreadable"),Mi=9007199254740991,Ui="Maximum allowed index exceeded",qi=De>=51||!k(function(){var t=[];return t[Hi]=!1,t.concat()[0]!==t}),zi=Li("concat"),Wi=function(t){if(!D(t)){return !1}var e=t[Hi];return void 0!==e?!!e:_i(t)},Gi=!qi||!zi;oe({target:"Array",proto:!0,forced:Gi},{concat:function(t){var e,i,n,o,a,s=Ni(this),r=Vi(s,0),l=0;for(e=-1,n=arguments.length;n>e;e++){if(a=-1===e?s:arguments[e],Wi(a)){if(o=_t(a.length),l+o>Mi){throw TypeError(Ui)}for(i=0;o>i;i++,l++){i in a&&Fi(r,l,a[i])}}else{if(l>=Mi){throw TypeError(Ui)}Fi(r,l++,a)}}return r.length=l,r}});var Ki=function(t,e,i){if(Ze(t),void 0===e){return t}switch(i){case 0:return function(){return t.call(e)};case 1:return function(i){return t.call(e,i)};case 2:return function(i,n){return t.call(e,i,n)};case 3:return function(i,n,o){return t.call(e,i,n,o)}}return function(){return t.apply(e,arguments)}},Yi=[].push,Xi=function(t){var e=1==t,i=2==t,n=3==t,o=4==t,a=6==t,s=7==t,r=5==t||a;return function(l,c,h,u){for(var d,f,p=Ni(l),g=_(p),v=Ki(c,h,3),b=_t(g.length),m=0,y=u||Vi,w=e?y(l,b):i||s?y(l,0):void 0;b>m;m++){if((r||m in g)&&(d=g[m],f=v(d,m,p),t)){if(e){w[m]=f}else{if(f){switch(t){case 3:return !0;case 5:return d;case 6:return m;case 2:Yi.call(w,d)}}else{switch(t){case 4:return !1;case 7:Yi.call(w,d)}}}}}return a?-1:n||o?o:w}},Ji={forEach:Xi(0),map:Xi(1),filter:Xi(2),some:Xi(3),every:Xi(4),find:Xi(5),findIndex:Xi(6),filterOut:Xi(7)},Qi=Ji.find,Zi="find",tn=!0;Zi in []&&Array(1)[Zi](function(){tn=!1}),oe({target:"Array",proto:!0,forced:tn},{find:function(t){return Qi(this,t,arguments.length>1?arguments[1]:void 0)}}),Ei(Zi);var en=function(t){if(Qe(t)){throw TypeError("The method doesn't accept regular expressions")}return t},nn=Ue("match"),on=function(t){var e=/./;try{"/./"[t](e)}catch(i){try{return e[nn]=!1,"/./"[t](e)}catch(n){}}return !1};oe({target:"String",proto:!0,forced:!on("includes")},{includes:function(t){return !!~(N(this)+"").indexOf(en(t),arguments.length>1?arguments[1]:void 0)}});var an={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},sn=Ji.forEach,rn=pe("forEach"),ln=rn?[].forEach:function(t){return sn(this,t,arguments.length>1?arguments[1]:void 0)};for(var cn in an){var hn=x[cn],un=hn&&hn.prototype;if(un&&un.forEach!==ln){try{Q(un,"forEach",ln)}catch(dn){un.forEach=ln}}}var fn=he.trim,pn=x.parseFloat,gn=1/pn(ae+"-0")!==-(1/0),vn=gn?function(t){var e=fn(t+""),i=pn(e);return 0===i&&"-"==e.charAt(0)?-0:i}:pn;oe({global:!0,forced:parseFloat!=vn},{parseFloat:vn});var bn=Bt.indexOf,mn=[].indexOf,yn=!!mn&&1/[1].indexOf(1,-0)<0,wn=pe("indexOf");oe({target:"Array",proto:!0,forced:yn||!wn},{indexOf:function(t){return yn?mn.apply(this,arguments)||0:bn(this,t,arguments.length>1?arguments[1]:void 0)}});var Sn=[],xn=Sn.sort,kn=k(function(){Sn.sort(void 0)}),On=k(function(){Sn.sort(null)}),Tn=pe("sort"),Cn=kn||!On||!Tn;oe({target:"Array",proto:!0,forced:Cn},{sort:function(t){return void 0===t?xn.call(Ni(this)):xn.call(Ni(this),Ze(t))}});var Pn=Math.floor,In="".replace,An=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,$n=/\$([$&'`]|\d{1,2})/g,Rn=function(t,e,i,n,o,a){var s=i+t.length,r=n.length,l=$n;return void 0!==o&&(o=Ni(o),l=An),In.call(a,l,function(a,l){var c;switch(l.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,i);case"'":return e.slice(s);case"<":c=o[l.slice(1,-1)];break;default:var h=+l;if(0===h){return a}if(h>r){var u=Pn(h/10);return 0===u?a:r>=u?void 0===n[u-1]?l.charAt(1):n[u-1]+l.charAt(1):a}c=n[h-1]}return void 0===c?"":c})},En=Math.max,jn=Math.min,_n=function(t){return void 0===t?t:t+""};Xe("replace",2,function(t,e,i,n){var o=n.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,a=n.REPLACE_KEEPS_$0,s=o?"$":"$0";return[function(i,n){var o=N(this),a=void 0==i?void 0:i[t];return void 0!==a?a.call(i,o,n):e.call(o+"",i,n)},function(t,n){if(!o&&a||"string"==typeof n&&-1===n.indexOf(s)){var r=i(e,t,this,n);if(r.done){return r.value}}var l=K(t),c=this+"",h="function"==typeof n;h||(n+="");var u=l.global;if(u){var d=l.unicode;l.lastIndex=0}for(var f=[];;){var p=si(l,c);if(null===p){break}if(f.push(p),!u){break}var g=p[0]+"";""===g&&(l.lastIndex=ai(c,_t(l.lastIndex),d))}for(var v="",b=0,m=0;m=b&&(v+=c.slice(b,w)+T,b=w+y.length)}return v+c.slice(b)}]});var Nn=Object.assign,Fn=Object.defineProperty,Dn=!Nn||k(function(){if(O&&1!==Nn({b:1},Nn(Fn({},"a",{enumerable:!0,get:function(){Fn(this,"b",{value:3,enumerable:!1})}}),{b:2})).b){return !0}var t={},e={},i=Symbol(),n="abcdefghijklmnopqrst";return t[i]=7,n.split("").forEach(function(t){e[t]=t}),7!=Nn({},t)[i]||ui(Nn({},e)).join("")!=n})?function(t,e){for(var i=Ni(t),n=arguments.length,o=1,a=Gt.f,s=A.f;n>o;){for(var r,l=_(arguments[o++]),c=a?ui(l).concat(a(l)):ui(l),h=c.length,u=0;h>u;){r=c[u++],(!O||s.call(l,r))&&(i[r]=l[r])}}return i}:Nn;oe({target:"Object",stat:!0,forced:Object.assign!==Dn},{assign:Dn});var Vn=Ji.filter,Bn=Li("filter");oe({target:"Array",proto:!0,forced:!Bn},{filter:function(t){return Vn(this,t,arguments.length>1?arguments[1]:void 0)}});var Ln=Object.is||function(t,e){return t===e?0!==t||1/t===1/e:t!=t&&e!=e};Xe("search",1,function(t,e,i){return[function(e){var i=N(this),n=void 0==e?void 0:e[t];return void 0!==n?n.call(e,i):RegExp(e)[t](i+"")},function(t){var n=i(e,t,this);if(n.done){return n.value}var o=K(t),a=this+"",s=o.lastIndex;Ln(s,0)||(o.lastIndex=0);var r=si(o,a);return Ln(o.lastIndex,s)||(o.lastIndex=s),null===r?-1:r.index}]});var Hn=he.trim,Mn=x.parseInt,Un=/^[+-]?0[Xx]/,qn=8!==Mn(ae+"08")||22!==Mn(ae+"0x16"),zn=qn?function(t,e){var i=Hn(t+"");return Mn(i,e>>>0||(Un.test(i)?16:10))}:Mn;oe({global:!0,forced:parseInt!=zn},{parseInt:zn});var Wn=Ji.map,Gn=Li("map");oe({target:"Array",proto:!0,forced:!Gn},{map:function(t){return Wn(this,t,arguments.length>1?arguments[1]:void 0)}});var Kn=Ji.findIndex,Yn="findIndex",Xn=!0;Yn in []&&Array(1)[Yn](function(){Xn=!1}),oe({target:"Array",proto:!0,forced:Xn},{findIndex:function(t){return Kn(this,t,arguments.length>1?arguments[1]:void 0)}}),Ei(Yn);var Jn=function(t){if(!D(t)&&null!==t){throw TypeError("Can't set "+(t+"")+" as a prototype")}return t},Qn=Object.setPrototypeOf||("__proto__" in {}?function(){var t,e=!1,i={};try{t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,t.call(i,[]),e=i instanceof Array}catch(n){}return function(i,n){return K(i),Jn(n),e?t.call(i,n):i.__proto__=n,i}}():void 0),Zn=function(t,e,i){var n,o;return Qn&&"function"==typeof(n=e.constructor)&&n!==i&&D(o=n.prototype)&&o!==i.prototype&&Qn(t,o),t},to=Ue("species"),eo=function(t){var e=At(t),i=J.f;O&&e&&!e[to]&&i(e,to,{configurable:!0,get:function(){return this}})},io=J.f,no=zt.f,oo=Tt.set,ao=Ue("match"),so=x.RegExp,ro=so.prototype,lo=/a/g,co=/a/g,ho=new so(lo)!==lo,uo=Se.UNSUPPORTED_Y,fo=O&&ie("RegExp",!ho||uo||k(function(){return co[ao]=!1,so(lo)!=lo||so(co)==co||"/a/i"!=so(lo,"i")}));if(fo){for(var po=function(t,e){var i,n=this instanceof po,o=Qe(t),a=void 0===e;if(!n&&o&&t.constructor===po&&a){return t}ho?o&&!a&&(t=t.source):t instanceof po&&(a&&(e=me.call(t)),t=t.source),uo&&(i=!!e&&e.indexOf("y")>-1,i&&(e=e.replace(/y/g,"")));var s=Zn(ho?new so(t,e):so(t,e),n?this:ro,po);return uo&&i&&oo(s,{sticky:i}),s},go=(function(t){t in po||io(po,t,{configurable:!0,get:function(){return so[t]},set:function(e){so[t]=e}})}),vo=no(so),bo=0;vo.length>bo;){go(vo[bo++])}ro.constructor=po,po.prototype=ro,Ct(x,"RegExp",po)}eo("RegExp");var mo="toString",yo=RegExp.prototype,wo=yo[mo],So=k(function(){return"/a/b"!=wo.call({source:"a",flags:"b"})}),xo=wo.name!=mo;(So||xo)&&Ct(RegExp.prototype,mo,function(){var t=K(this),e=t.source+"",i=t.flags,n=(void 0===i&&t instanceof RegExp&&!("flags" in yo)?me.call(t):i)+"";return"/"+e+"/"+n},{unsafe:!0});var ko=Ue("toStringTag"),Oo={};Oo[ko]="z";var To=Oo+""=="[object z]",Co=Ue("toStringTag"),Po="Arguments"==E(function(){return arguments}()),Io=function(t,e){try{return t[e]}catch(i){}},Ao=To?E:function(t){var e,i,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=Io(e=Object(t),Co))?i:Po?E(e):"Object"==(n=E(e))&&"function"==typeof e.callee?"Arguments":n},$o=To?{}.toString:function(){return"[object "+Ao(this)+"]"};To||Ct(Object.prototype,"toString",$o,{unsafe:!0});var Ro=Li("slice"),Eo=Ue("species"),jo=[].slice,_o=Math.max;oe({target:"Array",proto:!0,forced:!Ro},{slice:function(t,e){var i,n,o,a=F(this),s=_t(a.length),r=Dt(t,s),l=Dt(void 0===e?s:e,s);if(_i(a)&&(i=a.constructor,"function"!=typeof i||i!==Array&&!_i(i.prototype)?D(i)&&(i=i[Eo],null===i&&(i=void 0)):i=void 0,i===Array||void 0===i)){return jo.call(a,r,l)}for(n=new (void 0===i?Array:i)(_o(l-r,0)),o=0;l>r;r++,o++){r in a&&Fi(n,o,a[r])}return n.length=o,n}});var No,Fo,Do,Vo=!k(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),Bo=gt("IE_PROTO"),Lo=Object.prototype,Ho=Vo?Object.getPrototypeOf:function(t){return t=Ni(t),L(t,Bo)?t[Bo]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?Lo:null},Mo=Ue("iterator"),Uo=!1,qo=function(){return this};[].keys&&(Do=[].keys(),"next" in Do?(Fo=Ho(Ho(Do)),Fo!==Object.prototype&&(No=Fo)):Uo=!0);var zo=void 0==No||k(function(){var t={};return No[Mo].call(t)!==t});zo&&(No={}),L(No,Mo)||Q(No,Mo,qo);var Wo={IteratorPrototype:No,BUGGY_SAFARI_ITERATORS:Uo},Go=J.f,Ko=Ue("toStringTag"),Yo=function(t,e,i){t&&!L(t=i?t:t.prototype,Ko)&&Go(t,Ko,{configurable:!0,value:e})},Xo=Wo.IteratorPrototype,Jo=function(t,e,i){var n=e+" Iterator";return t.prototype=Ai(Xo,{next:$(1,i)}),Yo(t,n,!1),t},Qo=Wo.IteratorPrototype,Zo=Wo.BUGGY_SAFARI_ITERATORS,ta=Ue("iterator"),ea="keys",ia="values",na="entries",oa=function(){return this},aa=function(t,e,i,n,o,a,s){Jo(i,e,n);var r,l,c,h=function(t){if(t===o&&g){return g}if(!Zo&&t in f){return f[t]}switch(t){case ea:return function(){return new i(this,t)};case ia:return function(){return new i(this,t)};case na:return function(){return new i(this,t)}}return function(){return new i(this)}},u=e+" Iterator",d=!1,f=t.prototype,p=f[ta]||f["@@iterator"]||o&&f[o],g=!Zo&&p||h(o),v="Array"==e?f.entries||p:p;if(v&&(r=Ho(v.call(new t)),Qo!==Object.prototype&&r.next&&(Ho(r)!==Qo&&(Qn?Qn(r,Qo):"function"!=typeof r[ta]&&Q(r,ta,oa)),Yo(r,u,!0))),o==ia&&p&&p.name!==ia&&(d=!0,g=function(){return p.call(this)}),f[ta]!==g&&Q(f,ta,g),o){if(l={values:h(ia),keys:a?g:h(ea),entries:h(na)},s){for(c in l){!Zo&&!d&&c in f||Ct(f,c,l[c])}}else{oe({target:e,proto:!0,forced:Zo||d},l)}}return l},sa="Array Iterator",ra=Tt.set,la=Tt.getterFor(sa),ca=aa(Array,"Array",function(t,e){ra(this,{type:sa,target:F(t),index:0,kind:e})},function(){var t=la(this),e=t.target,i=t.kind,n=t.index++;return !e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==i?{value:n,done:!1}:"values"==i?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}},"values");Ei("keys"),Ei("values"),Ei("entries");var ha=Ue("iterator"),ua=Ue("toStringTag"),da=ca.values;for(var fa in an){var pa=x[fa],ga=pa&&pa.prototype;if(ga){if(ga[ha]!==da){try{Q(ga,ha,da)}catch(dn){ga[ha]=da}}if(ga[ua]||Q(ga,ua,fa),an[fa]){for(var va in ca){if(ga[va]!==ca[va]){try{Q(ga,va,ca[va])}catch(dn){ga[va]=ca[va]}}}}}}var ba=Li("splice"),ma=Math.max,ya=Math.min,wa=9007199254740991,Sa="Maximum allowed length exceeded";oe({target:"Array",proto:!0,forced:!ba},{splice:function(t,e){var i,n,o,a,s,r,l=Ni(this),c=_t(l.length),h=Dt(t,c),u=arguments.length;if(0===u?i=n=0:1===u?(i=0,n=c-h):(i=u-2,n=ya(ma(Et(e),0),c-h)),c+i-n>wa){throw TypeError(Sa)}for(o=Vi(l,n),a=0;n>a;a++){s=h+a,s in l&&Fi(o,a,l[s])}if(o.length=n,n>i){for(a=h;c-n>a;a++){s=a+n,r=a+i,s in l?l[r]=l[s]:delete l[r]}for(a=c;a>c-n+i;a--){delete l[a-1]}}else{if(i>n){for(a=c-n;a>h;a--){s=a+n-1,r=a+i-1,s in l?l[r]=l[s]:delete l[r]}}}for(a=0;i>a;a++){l[a+h]=arguments[a+2]}return l.length=c-n+i,o}});var xa=zt.f,ka=G.f,Oa=J.f,Ta=he.trim,Ca="Number",Pa=x[Ca],Ia=Pa.prototype,Aa=E(Ai(Ia))==Ca,$a=function(t){var e,i,n,o,a,s,r,l,c=V(t,!1);if("string"==typeof c&&c.length>2){if(c=Ta(c),e=c.charCodeAt(0),43===e||45===e){if(i=c.charCodeAt(2),88===i||120===i){return NaN}}else{if(48===e){switch(c.charCodeAt(1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return +c}for(a=c.slice(2),s=a.length,r=0;s>r;r++){if(l=a.charCodeAt(r),48>l||l>o){return NaN}}return parseInt(a,n)}}}return +c};if(ie(Ca,!Pa(" 0o1")||!Pa("0b1")||Pa("+0x1"))){for(var Ra,Ea=function(t){var e=arguments.length<1?0:t,i=this;return i instanceof Ea&&(Aa?k(function(){Ia.valueOf.call(i)}):E(i)!=Ca)?Zn(new Pa($a(e)),i,Ea):$a(e)},ja=O?xa(Pa):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),_a=0;ja.length>_a;_a++){L(Pa,Ra=ja[_a])&&!L(Ea,Ra)&&Oa(Ea,Ra,ka(Pa,Ra))}Ea.prototype=Ia,Ia.constructor=Ea,Ct(x,Ca,Ea)}var Na=[].reverse,Fa=[1,2];oe({target:"Array",proto:!0,forced:Fa+""==Fa.reverse()+""},{reverse:function(){return _i(this)&&(this.length=this.length),Na.call(this)}});var Da="1.19.1",Va=4;try{var Ba=y["default"].fn.dropdown.Constructor.VERSION;void 0!==Ba&&(Va=parseInt(Ba,10))}catch(La){}try{var Ha=bootstrap.Tooltip.VERSION;void 0!==Ha&&(Va=parseInt(Ha,10))}catch(La){}var Ma={3:{iconsPrefix:"glyphicon",icons:{paginationSwitchDown:"glyphicon-collapse-down icon-chevron-down",paginationSwitchUp:"glyphicon-collapse-up icon-chevron-up",refresh:"glyphicon-refresh icon-refresh",toggleOff:"glyphicon-list-alt icon-list-alt",toggleOn:"glyphicon-list-alt icon-list-alt",columns:"glyphicon-th icon-th",detailOpen:"glyphicon-plus icon-plus",detailClose:"glyphicon-minus icon-minus",fullscreen:"glyphicon-fullscreen",search:"glyphicon-search",clearSearch:"glyphicon-trash"},classes:{buttonsPrefix:"btn",buttons:"default",buttonsGroup:"btn-group",buttonsDropdown:"btn-group",pull:"pull",inputGroup:"input-group",inputPrefix:"input-",input:"form-control",paginationDropdown:"btn-group dropdown",dropup:"dropup",dropdownActive:"active",paginationActive:"active",buttonActive:"active"},html:{toolbarDropdown:['"],toolbarDropdownItem:'
                                                                                                                                                                                                                                                                                                        • ',toolbarDropdownSeparator:'
                                                                                                                                                                                                                                                                                                        • ',pageDropdown:['"],pageDropdownItem:'
                                                                                                                                                                                                                                                                                                          ',dropdownCaret:'',pagination:['
                                                                                                                                                                                                                                                                                                            ',"
                                                                                                                                                                                                                                                                                                          "],paginationItem:'
                                                                                                                                                                                                                                                                                                        • %s
                                                                                                                                                                                                                                                                                                        • ',icon:'',inputGroup:'
                                                                                                                                                                                                                                                                                                          %s%s
                                                                                                                                                                                                                                                                                                          ',searchInput:'',searchButton:'',searchClearButton:''}},4:{iconsPrefix:"fa",icons:{paginationSwitchDown:"fa-caret-square-down",paginationSwitchUp:"fa-caret-square-up",refresh:"fa-sync",toggleOff:"fa-toggle-off",toggleOn:"fa-toggle-on",columns:"fa-th-list",detailOpen:"fa-plus",detailClose:"fa-minus",fullscreen:"fa-arrows-alt",search:"fa-search",clearSearch:"fa-trash"},classes:{buttonsPrefix:"btn",buttons:"secondary",buttonsGroup:"btn-group",buttonsDropdown:"btn-group",pull:"float",inputGroup:"btn-group",inputPrefix:"form-control-",input:"form-control",paginationDropdown:"btn-group dropdown",dropup:"dropup",dropdownActive:"active",paginationActive:"active",buttonActive:"active"},html:{toolbarDropdown:['"],toolbarDropdownItem:'',pageDropdown:['"],pageDropdownItem:'%s',toolbarDropdownSeparator:'',dropdownCaret:'',pagination:['
                                                                                                                                                                                                                                                                                                            ',"
                                                                                                                                                                                                                                                                                                          "],paginationItem:'
                                                                                                                                                                                                                                                                                                        • %s
                                                                                                                                                                                                                                                                                                        • ',icon:'',inputGroup:'
                                                                                                                                                                                                                                                                                                          %s
                                                                                                                                                                                                                                                                                                          %s
                                                                                                                                                                                                                                                                                                          ',searchInput:'',searchButton:'',searchClearButton:''}},5:{iconsPrefix:"bi",icons:{paginationSwitchDown:"bi-caret-down-square",paginationSwitchUp:"bi-caret-up-square",refresh:"bi-arrow-clockwise",toggleOff:"bi-toggle-off",toggleOn:"bi-toggle-on",columns:"bi-list-ul",detailOpen:"bi-plus",detailClose:"bi-dash",fullscreen:"bi-arrows-move",search:"bi-search",clearSearch:"bi-trash"},classes:{buttonsPrefix:"btn",buttons:"secondary",buttonsGroup:"btn-group",buttonsDropdown:"btn-group",pull:"float",inputGroup:"btn-group",inputPrefix:"form-control-",input:"form-control",paginationDropdown:"btn-group dropdown",dropup:"dropup",dropdownActive:"active",paginationActive:"active",buttonActive:"active"},html:{dataToggle:"data-bs-toggle",toolbarDropdown:['"],toolbarDropdownItem:'',pageDropdown:['"],pageDropdownItem:'%s',toolbarDropdownSeparator:'',dropdownCaret:'',pagination:['
                                                                                                                                                                                                                                                                                                            ',"
                                                                                                                                                                                                                                                                                                          "],paginationItem:'
                                                                                                                                                                                                                                                                                                        • %s
                                                                                                                                                                                                                                                                                                        • ',icon:'',inputGroup:'
                                                                                                                                                                                                                                                                                                          %s%s
                                                                                                                                                                                                                                                                                                          ',searchInput:'',searchButton:'',searchClearButton:''}}}[Va],Ua={id:void 0,firstLoad:!0,height:void 0,classes:"table table-bordered table-hover",buttons:{},theadClasses:"",striped:!1,headerStyle:function(t){return{}},rowStyle:function(t,e){return{}},rowAttributes:function(t,e){return{}},undefinedText:"-",locale:void 0,virtualScroll:!1,virtualScrollItemHeight:void 0,sortable:!0,sortClass:void 0,silentSort:!0,sortName:void 0,sortOrder:void 0,sortReset:!1,sortStable:!1,rememberOrder:!1,serverSort:!0,customSort:void 0,columns:[[]],data:[],url:void 0,method:"get",cache:!0,contentType:"application/json",dataType:"json",ajax:void 0,ajaxOptions:{},queryParams:function(t){return t},queryParamsType:"limit",responseHandler:function(t){return t},totalField:"total",totalNotFilteredField:"totalNotFiltered",dataField:"rows",footerField:"footer",pagination:!1,paginationParts:["pageInfo","pageSize","pageList"],showExtendedPagination:!1,paginationLoop:!0,sidePagination:"client",totalRows:0,totalNotFiltered:0,pageNumber:1,pageSize:10,pageList:[10,25,50,100],paginationHAlign:"right",paginationVAlign:"bottom",paginationDetailHAlign:"left",paginationPreText:"‹",paginationNextText:"›",paginationSuccessivelySize:5,paginationPagesBySide:1,paginationUseIntermediate:!1,search:!1,searchHighlight:!1,searchOnEnterKey:!1,strictSearch:!1,regexSearch:!1,searchSelector:!1,visibleSearch:!1,showButtonIcons:!0,showButtonText:!1,showSearchButton:!1,showSearchClearButton:!1,trimOnSearch:!0,searchAlign:"right",searchTimeOut:500,searchText:"",customSearch:void 0,showHeader:!0,showFooter:!1,footerStyle:function(t){return{}},searchAccentNeutralise:!1,showColumns:!1,showSearch:!1,showPageGo:!1,showColumnsToggleAll:!1,showColumnsSearch:!1,minimumCountColumns:1,showPaginationSwitch:!1,showRefresh:!1,showToggle:!1,showFullscreen:!1,smartDisplay:!0,escape:!1,filterOptions:{filterAlgorithm:"and"},idField:void 0,selectItemName:"btSelectItem",clickToSelect:!1,ignoreClickToSelectOn:function(t){var e=t.tagName;return["A","BUTTON"].includes(e)},singleSelect:!1,checkboxHeader:!0,maintainMetaData:!1,multipleSelectRow:!1,uniqueId:void 0,cardView:!1,detailView:!1,detailViewIcon:!0,detailViewByClick:!1,detailViewAlign:"left",detailFormatter:function(t,e){return""},detailFilter:function(t,e){return !0},toolbar:void 0,toolbarAlign:"left",buttonsToolbar:void 0,buttonsAlign:"right",buttonsOrder:["search","paginationSwitch","refresh","toggle","fullscreen","columns"],buttonsPrefix:Ma.classes.buttonsPrefix,buttonsClass:Ma.classes.buttons,icons:Ma.icons,iconSize:void 0,iconsPrefix:Ma.iconsPrefix,loadingFontSize:"auto",loadingTemplate:function(t){return'\n '.concat(t,'\n \n \n ')},onAll:function(t,e){return !1},onClickCell:function(t,e,i,n){return !1},onDblClickCell:function(t,e,i,n){return !1},onClickRow:function(t,e){return !1},onDblClickRow:function(t,e){return !1},onSort:function(t,e){return !1},onCheck:function(t){return !1},onUncheck:function(t){return !1},onCheckAll:function(t){return !1},onUncheckAll:function(t){return !1},onCheckSome:function(t){return !1},onUncheckSome:function(t){return !1},onLoadSuccess:function(t){return !1},onLoadError:function(t){return !1},onColumnSwitch:function(t,e){return !1},onPageChange:function(t,e){return !1},onSearch:function(t){return !1},onShowSearch:function(){return !1},onToggle:function(t){return !1},onPreBody:function(t){return !1},onPostBody:function(){return !1},onPostHeader:function(){return !1},onPostFooter:function(){return !1},onExpandRow:function(t,e,i){return !1},onCollapseRow:function(t,e){return !1},onRefreshOptions:function(t){return !1},onRefresh:function(t){return !1},onResetView:function(){return !1},onScrollBody:function(){return !1},onTogglePagination:function(t){return !1}},qa={formatLoadingMessage:function(){return"Loading, please wait"},formatRecordsPerPage:function(t){return"".concat(t," rows per page")},formatShowingRows:function(t,e,i,n){return void 0!==n&&n>0&&n>i?"Showing ".concat(t," to ").concat(e," of ").concat(i," rows (filtered from ").concat(n," total rows)"):"Showing ".concat(t," to ").concat(e," of ").concat(i," rows")},formatSRPaginationPreText:function(){return"previous page"},formatSRPaginationPageText:function(t){return"to page ".concat(t)},formatSRPaginationNextText:function(){return"next page"},formatDetailPagination:function(t){return"Showing ".concat(t," rows")},formatSearch:function(){return"Search"},formatShowSearch:function(){return"Show Search"},formatPageGo:function(){return"Go"},formatClearSearch:function(){return"Clear Search"},formatNoMatches:function(){return"No matching records found"},formatPaginationSwitch:function(){return"Hide/Show pagination"},formatPaginationSwitchDown:function(){return"Show pagination"},formatPaginationSwitchUp:function(){return"Hide pagination"},formatRefresh:function(){return"Refresh"},formatToggle:function(){return"Toggle"},formatToggleOn:function(){return"Show card view"},formatToggleOff:function(){return"Hide card view"},formatColumns:function(){return"Columns"},formatColumnsToggleAll:function(){return"Toggle all"},formatFullscreen:function(){return"Fullscreen"},formatAllRows:function(){return"All"}},za={field:void 0,title:void 0,titleTooltip:void 0,"class":void 0,width:void 0,widthUnit:"px",rowspan:void 0,colspan:void 0,align:void 0,halign:void 0,falign:void 0,valign:void 0,cellStyle:void 0,radio:!1,checkbox:!1,checkboxEnabled:!0,clickToSelect:!0,showSelectTitle:!1,sortable:!1,sortName:void 0,order:"asc",sorter:void 0,visible:!0,ignore:!1,switchable:!0,cardVisible:!0,searchable:!0,formatter:void 0,footerFormatter:void 0,detailFormatter:void 0,searchFormatter:!0,searchHighlightFormatter:!1,escape:!1,events:void 0},Wa=["getOptions","refreshOptions","getData","getSelections","load","append","prepend","remove","removeAll","insertRow","updateRow","getRowByUniqueId","updateByUniqueId","removeByUniqueId","updateCell","updateCellByUniqueId","showRow","hideRow","getHiddenRows","showColumn","hideColumn","getVisibleColumns","getHiddenColumns","showAllColumns","hideAllColumns","mergeCells","checkAll","uncheckAll","checkInvert","check","uncheck","checkBy","uncheckBy","refresh","destroy","resetView","showLoading","hideLoading","togglePagination","toggleFullscreen","toggleView","resetSearch","filterBy","scrollTo","getScrollPosition","selectPage","prevPage","nextPage","toggleDetailView","expandRow","collapseRow","expandRowByUniqueId","collapseRowByUniqueId","expandAllRows","collapseAllRows","updateColumnTitle","updateFormatText"],Ga={"all.bs.table":"onAll","click-row.bs.table":"onClickRow","dbl-click-row.bs.table":"onDblClickRow","click-cell.bs.table":"onClickCell","dbl-click-cell.bs.table":"onDblClickCell","sort.bs.table":"onSort","check.bs.table":"onCheck","uncheck.bs.table":"onUncheck","check-all.bs.table":"onCheckAll","uncheck-all.bs.table":"onUncheckAll","check-some.bs.table":"onCheckSome","uncheck-some.bs.table":"onUncheckSome","load-success.bs.table":"onLoadSuccess","load-error.bs.table":"onLoadError","column-switch.bs.table":"onColumnSwitch","page-change.bs.table":"onPageChange","search.bs.table":"onSearch","toggle.bs.table":"onToggle","pre-body.bs.table":"onPreBody","post-body.bs.table":"onPostBody","post-header.bs.table":"onPostHeader","post-footer.bs.table":"onPostFooter","expand-row.bs.table":"onExpandRow","collapse-row.bs.table":"onCollapseRow","refresh-options.bs.table":"onRefreshOptions","reset-view.bs.table":"onResetView","refresh.bs.table":"onRefresh","scroll-body.bs.table":"onScrollBody","toggle-pagination.bs.table":"onTogglePagination","virtual-scroll.bs.table":"onVirtualScroll"};Object.assign(Ua,qa);var Ka={VERSION:Da,THEME:"bootstrap".concat(Va),CONSTANTS:Ma,DEFAULTS:Ua,COLUMN_DEFAULTS:za,METHODS:Wa,EVENTS:Ga,LOCALES:{en:qa,"en-US":qa}},Ya=k(function(){ui(1)});oe({target:"Object",stat:!0,forced:Ya},{keys:function(t){return ui(Ni(t))}}),Xe("match",1,function(t,e,i){return[function(e){var i=N(this),n=void 0==e?void 0:e[t];return void 0!==n?n.call(e,i):RegExp(e)[t](i+"")},function(t){var n=i(e,t,this);if(n.done){return n.value}var o=K(t),a=this+"";if(!o.global){return si(o,a)}var s=o.unicode;o.lastIndex=0;for(var r,l=[],c=0;null!==(r=si(o,a));){var h=r[0]+"";l[c]=h,""===h&&(o.lastIndex=ai(a,_t(o.lastIndex),s)),c++}return 0===c?null:l}]});var Xa=G.f,Ja="".startsWith,Qa=Math.min,Za=on("startsWith"),ts=!Za&&!!function(){var t=Xa(String.prototype,"startsWith");return t&&!t.writable}();oe({target:"String",proto:!0,forced:!ts&&!Za},{startsWith:function(t){var e=N(this)+"";en(t);var i=_t(Qa(arguments.length>1?arguments[1]:void 0,e.length)),n=t+"";return Ja?Ja.call(e,n,i):e.slice(i,i+n.length)===n}});var es=G.f,is="".endsWith,ns=Math.min,os=on("endsWith"),as=!os&&!!function(){var t=es(String.prototype,"endsWith");return t&&!t.writable}();oe({target:"String",proto:!0,forced:!as&&!os},{endsWith:function(t){var e=N(this)+"";en(t);var i=arguments.length>1?arguments[1]:void 0,n=_t(e.length),o=void 0===i?n:ns(_t(i),n),a=t+"";return is?is.call(e,a,o):e.slice(o-a.length,o)===a}});var ss={getSearchInput:function(t){return"string"==typeof t.options.searchSelector?y["default"](t.options.searchSelector):t.$toolbar.find(".search input")},sprintf:function(t){for(var e=arguments.length,i=Array(e>1?e-1:0),n=1;e>n;n++){i[n-1]=arguments[n]}var o=!0,a=0,s=t.replace(/%s/g,function(){var t=i[a++];return void 0===t?(o=!1,""):t});return o?s:""},isObject:function(t){return t instanceof Object&&!Array.isArray(t)},isEmptyObject:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return 0===Object.entries(t).length&&t.constructor===Object},isNumeric:function(t){return !isNaN(parseFloat(t))&&isFinite(t)},getFieldTitle:function(t,e){var i,n=v(t);try{for(n.s();!(i=n.n()).done;){var o=i.value;if(o.field===e){return o.title}}}catch(a){n.e(a)}finally{n.f()}return""},setFieldIndex:function(t){var e,i=0,n=[],o=v(t[0]);try{for(o.s();!(e=o.n()).done;){var a=e.value;i+=a.colspan||1}}catch(s){o.e(s)}finally{o.f()}for(var r=0;rl;l++){n[r][l]=!1}}for(var c=0;cb;b++){for(var m=0;p>m;m++){n[c+b][g+m]=!0}}}}catch(s){u.e(s)}finally{u.f()}}},normalizeAccent:function(t){return"string"!=typeof t?t:t.normalize("NFD").replace(/[\u0300-\u036f]/g,"")},updateFieldGroup:function(t){var e,i,n=(e=[]).concat.apply(e,r(t)),o=v(t);try{for(o.s();!(i=o.n()).done;){var a,s=i.value,l=v(s);try{for(l.s();!(a=l.n()).done;){var c=a.value;if(c.colspanGroup>1){for(var h=0,u=function(t){var e=n.find(function(e){return e.fieldIndex===t});e.visible&&h++},d=c.colspanIndex;d0}}}catch(f){l.e(f)}finally{l.f()}}}catch(f){o.e(f)}finally{o.f()}},getScrollBarWidth:function(){if(void 0===this.cachedWidth){var t=y["default"]("
                                                                                                                                                                                                                                                                                                          ").addClass("fixed-table-scroll-inner"),e=y["default"]("
                                                                                                                                                                                                                                                                                                          ").addClass("fixed-table-scroll-outer");e.append(t),y["default"]("body").append(e);var i=t[0].offsetWidth;e.css("overflow","scroll");var n=t[0].offsetWidth;i===n&&(n=e[0].clientWidth),e.remove(),this.cachedWidth=i-n}return this.cachedWidth},calculateObjectValue:function(t,e,n,o){var a=e;if("string"==typeof e){var s=e.split(".");if(s.length>1){a=window;var l,c=v(s);try{for(c.s();!(l=c.n()).done;){var h=l.value;a=a[h]}}catch(u){c.e(u)}finally{c.f()}}else{a=window[e]}}return null!==a&&"object"===i(a)?a:"function"==typeof a?a.apply(t,n||[]):!a&&"string"==typeof e&&this.sprintf.apply(this,[e].concat(r(n)))?this.sprintf.apply(this,[e].concat(r(n))):o},compareObjects:function(t,e,i){var n=Object.keys(t),o=Object.keys(e);if(i&&n.length!==o.length){return !1}for(var a=0,s=n;a/g,">").replace(/"/g,""").replace(/'/g,"'"):t},unescapeHTML:function(t){return t?(""+t).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/'/g,"'"):t},getRealDataAttr:function(t){for(var e=0,i=Object.entries(t);etd,>th").each(function(n,a){for(var s=y["default"](a),l=+s.attr("colspan")||1,c=+s.attr("rowspan")||1,h=n;o[e]&&o[e][h];h++){}for(var u=h;h+l>u;u++){for(var d=e;e+c>d;d++){o[d]||(o[d]=[]),o[d][u]=!0}}var f=t[h].field;r[f]=s.html().trim(),r["_".concat(f,"_id")]=s.attr("id"),r["_".concat(f,"_class")]=s.attr("class"),r["_".concat(f,"_rowspan")]=s.attr("rowspan"),r["_".concat(f,"_colspan")]=s.attr("colspan"),r["_".concat(f,"_title")]=s.attr("title"),r["_".concat(f,"_data")]=i.getRealDataAttr(s.data()),r["_".concat(f,"_style")]=s.attr("style")}),n.push(r)}),n},sort:function(t,e,i,n,o,a){return(void 0===t||null===t)&&(t=""),(void 0===e||null===e)&&(e=""),n&&t===e&&(t=o,e=a),this.isNumeric(t)&&this.isNumeric(e)?(t=parseFloat(t),e=parseFloat(e),e>t?-1*i:t>e?i:0):t===e?0:("string"!=typeof t&&(t=""+t),-1===t.localeCompare(e)?-1*i:i)},getEventName:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e=e||"".concat(+new Date).concat(~~(1000000*Math.random())),"".concat(t,"-").concat(e)},hasDetailViewIcon:function(t){return t.detailView&&t.detailViewIcon&&!t.cardView},getDetailViewIndexOffset:function(t){return this.hasDetailViewIcon(t)&&"right"!==t.detailViewAlign?1:0},checkAutoMergeCells:function(t){var e,i=v(t);try{for(i.s();!(e=i.n()).done;){for(var n=e.value,o=0,a=Object.keys(n);oo&&r++;for(var l=i;n>l;l++){t[l]&&s.push(t[l])}return{start:i,end:n,topOffset:o,bottomOffset:a,rowsAbove:r,rows:s}}},{key:"checkChanges",value:function(t,e){var i=e!==this.cache[t];return this.cache[t]=e,i}},{key:"getExtra",value:function(t,e){var i=document.createElement("tr");return i.className="virtual-scroll-".concat(t),e&&(i.style.height="".concat(e,"px")),i.outerHTML}}]),t}(),hs=function(){function e(t,i){n(this,e),this.options=i,this.$el=y["default"](t),this.$el_=this.$el.clone(),this.timeoutId_=0,this.timeoutFooter_=0}return a(e,[{key:"init",value:function(){this.initConstants(),this.initLocale(),this.initContainer(),this.initTable(),this.initHeader(),this.initData(),this.initHiddenRows(),this.initToolbar(),this.initPagination(),this.initBody(),this.initSearchText(),this.initServer()}},{key:"initConstants",value:function(){var t=this.options;this.constants=Ka.CONSTANTS,this.constants.theme=y["default"].fn.bootstrapTable.theme,this.constants.dataToggle=this.constants.html.dataToggle||"data-toggle";var e=t.buttonsPrefix?"".concat(t.buttonsPrefix,"-"):"";this.constants.buttonsClass=[t.buttonsPrefix,e+t.buttonsClass,ss.sprintf("".concat(e,"%s"),t.iconSize)].join(" ").trim(),this.buttons=ss.calculateObjectValue(this,t.buttons,[],{}),"object"!==i(this.buttons)&&(this.buttons={}),"string"==typeof t.icons&&(t.icons=ss.calculateObjectValue(null,t.icons))}},{key:"initLocale",value:function(){if(this.options.locale){var t=y["default"].fn.bootstrapTable.locales,i=this.options.locale.split(/-|_/);i[0]=i[0].toLowerCase(),i[1]&&(i[1]=i[1].toUpperCase());var n={};t[this.options.locale]?n=t[this.options.locale]:t[i.join("-")]?n=t[i.join("-")]:t[i[0]]&&(n=t[i[0]]);for(var o=0,a=Object.entries(n);o
                                                                                                                                                                                                                                                                                                          ':"",e=["bottom","both"].includes(this.options.paginationVAlign)?'
                                                                                                                                                                                                                                                                                                          ':"",i=ss.calculateObjectValue(this.options,this.options.loadingTemplate,[this.options.formatLoadingMessage()]);this.$container=y["default"]('\n
                                                                                                                                                                                                                                                                                                          \n
                                                                                                                                                                                                                                                                                                          \n ').concat(t,'\n
                                                                                                                                                                                                                                                                                                          \n
                                                                                                                                                                                                                                                                                                          \n
                                                                                                                                                                                                                                                                                                          \n
                                                                                                                                                                                                                                                                                                          \n ').concat(i,'\n
                                                                                                                                                                                                                                                                                                          \n
                                                                                                                                                                                                                                                                                                          \n \n
                                                                                                                                                                                                                                                                                                          \n ').concat(e,"\n
                                                                                                                                                                                                                                                                                                          \n ")),this.$container.insertAfter(this.$el),this.$tableContainer=this.$container.find(".fixed-table-container"),this.$tableHeader=this.$container.find(".fixed-table-header"),this.$tableBody=this.$container.find(".fixed-table-body"),this.$tableLoading=this.$container.find(".fixed-table-loading"),this.$tableFooter=this.$el.find("tfoot"),this.options.buttonsToolbar?this.$toolbar=y["default"]("body").find(this.options.buttonsToolbar):this.$toolbar=this.$container.find(".fixed-table-toolbar"),this.$pagination=this.$container.find(".fixed-table-pagination"),this.$tableBody.append(this.$el),this.$container.after('
                                                                                                                                                                                                                                                                                                          '),this.$el.addClass(this.options.classes),this.$tableLoading.addClass(this.options.classes),this.options.striped&&this.$el.addClass("table-striped"),this.options.height&&(this.$tableContainer.addClass("fixed-height"),this.options.showFooter&&this.$tableContainer.addClass("has-footer"),this.options.classes.split(" ").includes("table-bordered")&&(this.$tableBody.append('
                                                                                                                                                                                                                                                                                                          '),this.$tableBorder=this.$tableBody.find(".fixed-table-border"),this.$tableLoading.addClass("fixed-table-border")),this.$tableFooter=this.$container.find(".fixed-table-footer"))}},{key:"initTable",value:function(){var t=this,i=[];if(this.$header=this.$el.find(">thead"),this.$header.length?this.options.theadClasses&&this.$header.addClass(this.options.theadClasses):this.$header=y["default"]('')).appendTo(this.$el),this._headerTrClasses=[],this._headerTrStyles=[],this.$header.find("tr").each(function(e,n){var o=y["default"](n),a=[];o.find("th").each(function(t,e){var i=y["default"](e);void 0!==i.data("field")&&i.data("field","".concat(i.data("field"))),a.push(y["default"].extend({},{title:i.html(),"class":i.attr("class"),titleTooltip:i.attr("title"),rowspan:i.attr("rowspan")?+i.attr("rowspan"):void 0,colspan:i.attr("colspan")?+i.attr("colspan"):void 0},i.data()))}),i.push(a),o.attr("class")&&t._headerTrClasses.push(o.attr("class")),o.attr("style")&&t._headerTrStyles.push(o.attr("style"))}),Array.isArray(this.options.columns[0])||(this.options.columns=[this.options.columns]),this.options.columns=y["default"].extend(!0,[],i,this.options.columns),this.columns=[],this.fieldsColumnsIndex=[],ss.setFieldIndex(this.options.columns),this.options.columns.forEach(function(i,n){i.forEach(function(i,o){var a=y["default"].extend({},e.COLUMN_DEFAULTS,i);void 0!==a.fieldIndex&&(t.columns[a.fieldIndex]=a,t.fieldsColumnsIndex[a.field]=a.fieldIndex),t.options.columns[n][o]=a})}),!this.options.data.length){var n=ss.trToData(this.columns,this.$el.find(">tbody>tr"));n.length&&(this.options.data=n,this.fromHtml=!0)}this.options.pagination&&"server"!==this.options.sidePagination||(this.footerData=ss.trToData(this.columns,this.$el.find(">tfoot>tr"))),this.footerData&&this.$el.find("tfoot").html(""),!this.options.showFooter||this.options.cardView?this.$tableFooter.hide():this.$tableFooter.show()}},{key:"initHeader",value:function(){var t=this,e={},i=[];this.header={fields:[],styles:[],classes:[],formatters:[],detailFormatters:[],events:[],sorters:[],sortNames:[],cellStyles:[],searchables:[]},ss.updateFieldGroup(this.options.columns),this.options.columns.forEach(function(n,o){var a=[];a.push(""));var r="";if(0===o&&ss.hasDetailViewIcon(t.options)){var l=t.options.columns.length>1?' rowspan="'.concat(t.options.columns.length,'"'):"";r='\n
                                                                                                                                                                                                                                                                                                          \n ')}r&&"right"!==t.options.detailViewAlign&&a.push(r),n.forEach(function(i,n){var r=ss.sprintf(' class="%s"',i["class"]),l=i.widthUnit,c=parseFloat(i.width),h=ss.sprintf("text-align: %s; ",i.halign?i.halign:i.align),u=ss.sprintf("text-align: %s; ",i.align),d=ss.sprintf("vertical-align: %s; ",i.valign);if(d+=ss.sprintf("width: %s; ",!i.checkbox&&!i.radio||c?c?c+l:void 0:i.showSelectTitle?void 0:"36px"),void 0!==i.fieldIndex||i.visible){var f=ss.calculateObjectValue(null,t.options.headerStyle,[i]),p=[],g="";if(f&&f.css){for(var v=0,b=Object.entries(f.css);v0?" data-not-first-th":"",">"),a.push(ss.sprintf('
                                                                                                                                                                                                                                                                                                          ',t.options.sortable&&i.sortable?"sortable both":""));var S=t.options.escape?ss.escapeHTML(i.title):i.title,x=S;i.checkbox&&(S="",!t.options.singleSelect&&t.options.checkboxHeader&&(S=''),t.header.stateField=i.field),i.radio&&(S="",t.header.stateField=i.field),!S&&i.showSelectTitle&&(S+=x),a.push(S),a.push("
                                                                                                                                                                                                                                                                                                          "),a.push('
                                                                                                                                                                                                                                                                                                          '),a.push("
                                                                                                                                                                                                                                                                                                          "),a.push("")}}),r&&"right"===t.options.detailViewAlign&&a.push(r),a.push(""),a.length>3&&i.push(a.join(""))}),this.$header.html(i.join("")),this.$header.find("th[data-field]").each(function(t,i){y["default"](i).data(e[y["default"](i).data("field")])}),this.$container.off("click",".th-inner").on("click",".th-inner",function(e){var i=y["default"](e.currentTarget);return t.options.detailView&&!i.parent().hasClass("bs-checkbox")&&i.closest(".bootstrap-table")[0]!==t.$container[0]?!1:void (t.options.sortable&&i.parent().data().sortable&&t.onSort(e))});var n=ss.getEventName("resize.bootstrap-table",this.$el.attr("id"));y["default"](window).off(n),!this.options.showHeader||this.options.cardView?(this.$header.hide(),this.$tableHeader.hide(),this.$tableLoading.css("top",0)):(this.$header.show(),this.$tableHeader.show(),this.$tableLoading.css("top",this.$header.outerHeight()+1),this.getCaret(),y["default"](window).on(n,function(){return t.resetView()})),this.$selectAll=this.$header.find('[name="btSelectAll"]'),this.$selectAll.off("click").on("click",function(e){e.stopPropagation();var i=y["default"](e.currentTarget).prop("checked");t[i?"checkAll":"uncheckAll"](),t.updateSelected()})}},{key:"initData",value:function(t,e){"append"===e?this.options.data=this.options.data.concat(t):"prepend"===e?this.options.data=[].concat(t).concat(this.options.data):(t=t||ss.deepCopy(this.options.data),this.options.data=Array.isArray(t)?t:t[this.options.dataField]),this.data=r(this.options.data),this.options.sortReset&&(this.unsortedData=r(this.data)),"server"!==this.options.sidePagination&&this.initSort()}},{key:"initSort",value:function(){var t=this,e=this.options.sortName,i="desc"===this.options.sortOrder?-1:1,n=this.header.fields.indexOf(this.options.sortName),o=0;-1!==n?(this.options.sortStable&&this.data.forEach(function(t,e){t.hasOwnProperty("_position")||(t._position=e)}),this.options.customSort?ss.calculateObjectValue(this.options,this.options.customSort,[this.options.sortName,this.options.sortOrder,this.data]):this.data.sort(function(o,a){t.header.sortNames[n]&&(e=t.header.sortNames[n]);var s=ss.getItemField(o,e,t.options.escape),r=ss.getItemField(a,e,t.options.escape),l=ss.calculateObjectValue(t.header,t.header.sorters[n],[s,r,o,a]);return void 0!==l?t.options.sortStable&&0===l?i*(o._position-a._position):i*l:ss.sort(s,r,i,t.options.sortStable,o._position,a._position)}),void 0!==this.options.sortClass&&(clearTimeout(o),o=setTimeout(function(){t.$el.removeClass(t.options.sortClass);var e=t.$header.find('[data-field="'.concat(t.options.sortName,'"]')).index();t.$el.find("tr td:nth-child(".concat(e+1,")")).addClass(t.options.sortClass)},250))):this.options.sortReset&&(this.data=r(this.unsortedData))}},{key:"onSort",value:function(t){var e=t.type,i=t.currentTarget,n="keypress"===e?y["default"](i):y["default"](i).parent(),o=this.$header.find("th").eq(n.index());if(this.$header.add(this.$header_).find("span.order").remove(),this.options.sortName===n.data("field")){var a=this.options.sortOrder;void 0===a?this.options.sortOrder="asc":"asc"===a?this.options.sortOrder="desc":"desc"===this.options.sortOrder&&(this.options.sortOrder=this.options.sortReset?void 0:"asc"),void 0===this.options.sortOrder&&(this.options.sortName=void 0)}else{this.options.sortName=n.data("field"),this.options.rememberOrder?this.options.sortOrder="asc"===n.data("order")?"desc":"asc":this.options.sortOrder=this.columns[this.fieldsColumnsIndex[n.data("field")]].sortOrder||this.columns[this.fieldsColumnsIndex[n.data("field")]].order}return this.trigger("sort",this.options.sortName,this.options.sortOrder),n.add(o).data("order",this.options.sortOrder),this.getCaret(),"server"===this.options.sidePagination&&this.options.serverSort?(this.options.pageNumber=1,void this.initServer(this.options.silentSort)):(this.initSort(),void this.initBody())}},{key:"initToolbar",value:function(){var t,e=this,n=this.options,o=[],a=0,r=0;this.$toolbar.find(".bs-bars").children().length&&y["default"]("body").append(y["default"](n.toolbar)),this.$toolbar.html(""),("string"==typeof n.toolbar||"object"===i(n.toolbar))&&y["default"](ss.sprintf('
                                                                                                                                                                                                                                                                                                          ',this.constants.classes.pull,n.toolbarAlign)).appendTo(this.$toolbar).append(y["default"](n.toolbar)),o=['
                                                                                                                                                                                                                                                                                                          ')],"string"==typeof n.buttonsOrder&&(n.buttonsOrder=n.buttonsOrder.replace(/\[|\]| |'/g,"").split(",")),this.buttons=Object.assign(this.buttons,{search:{text:n.formatSearch(),icon:n.icons.search,render:!1,event:this.toggleShowSearch,attributes:{"aria-label":n.formatShowSearch(),title:n.formatShowSearch()}},paginationSwitch:{text:n.pagination?n.formatPaginationSwitchUp():n.formatPaginationSwitchDown(),icon:n.pagination?n.icons.paginationSwitchDown:n.icons.paginationSwitchUp,render:!1,event:this.togglePagination,attributes:{"aria-label":n.formatPaginationSwitch(),title:n.formatPaginationSwitch()}},refresh:{text:n.formatRefresh(),icon:n.icons.refresh,render:!1,event:this.refresh,attributes:{"aria-label":n.formatRefresh(),title:n.formatRefresh()}},toggle:{text:n.formatToggle(),icon:n.icons.toggleOff,render:!1,event:this.toggleView,attributes:{"aria-label":n.formatToggleOn(),title:n.formatToggleOn()}},fullscreen:{text:n.formatFullscreen(),icon:n.icons.fullscreen,render:!1,event:this.toggleFullscreen,attributes:{"aria-label":n.formatFullscreen(),title:n.formatFullscreen()}},columns:{render:!1,html:function X(){var X=[];if(X.push('
                                                                                                                                                                                                                                                                                                          \n \n ").concat(e.constants.html.toolbarDropdown[0])),n.showColumnsSearch&&(X.push(ss.sprintf(e.constants.html.toolbarDropdownItem,ss.sprintf('',e.constants.classes.input,n.formatSearch()))),X.push(e.constants.html.toolbarDropdownSeparator)),n.showColumnsToggleAll){var t=e.getVisibleColumns().length===e.columns.filter(function(t){return !e.isSelectionColumn(t)}).length;X.push(ss.sprintf(e.constants.html.toolbarDropdownItem,ss.sprintf(' %s',t?'checked="checked"':"",n.formatColumnsToggleAll()))),X.push(e.constants.html.toolbarDropdownSeparator)}var i=0;return e.columns.forEach(function(t){t.visible&&i++}),e.columns.forEach(function(t,o){if(!e.isSelectionColumn(t)&&(!n.cardView||t.cardVisible)&&!t.ignore){var a=t.visible?' checked="checked"':"",s=i<=n.minimumCountColumns&&a?' disabled="disabled"':"";t.switchable&&(X.push(ss.sprintf(e.constants.html.toolbarDropdownItem,ss.sprintf(' %s',t.field,o,a,s,t.title))),r++)}}),X.push(e.constants.html.toolbarDropdown[1],"
                                                                                                                                                                                                                                                                                                          "),X.join("")}}});for(var l={},c=0,h=Object.entries(this.buttons);c"}l[d]=p;var x="show".concat(d.charAt(0).toUpperCase()).concat(d.substring(1)),k=n[x];!(!f.hasOwnProperty("render")||f.hasOwnProperty("render")&&f.render)||void 0!==k&&k!==!0||(n[x]=!0),n.buttonsOrder.includes(d)||n.buttonsOrder.push(d)}var O,T=v(n.buttonsOrder);try{for(T.s();!(O=T.n()).done;){var C=O.value,P=n["show".concat(C.charAt(0).toUpperCase()).concat(C.substring(1))];P&&o.push(l[C])}}catch(I){T.e(I)}finally{T.f()}o.push("
                                                                                                                                                                                                                                                                                                          "),(this.showToolbar||o.length>2)&&this.$toolbar.append(o.join("")),n.showSearch&&this.$toolbar.find('button[name="showSearch"]').off("click").on("click",function(){return e.toggleShowSearch()});for(var A=0,$=Object.entries(this.buttons);A<$.length;A++){var R=s($[A],2),E=R[0],j=R[1];if(j.hasOwnProperty("event")){if("function"==typeof j.event||"string"==typeof j.event){var _=function(){var t="string"==typeof j.event?window[j.event]:j.event;return e.$toolbar.find('button[name="'.concat(E,'"]')).off("click").on("click",function(){return t.call(e)}),"continue"}();if("continue"===_){continue}}for(var N=function(){var t=s(D[F],2),i=t[0],n=t[1],o="string"==typeof n?window[n]:n;e.$toolbar.find('button[name="'.concat(E,'"]')).off(i).on(i,function(){return o.call(e)})},F=0,D=Object.entries(j.event);F'),W=z;if(n.showSearchButton||n.showSearchClearButton){var G=(n.showSearchButton?U:"")+(n.showSearchClearButton?q:"");W=n.search?ss.sprintf(this.constants.html.inputGroup,z,G):G}o.push(ss.sprintf('\n
                                                                                                                                                                                                                                                                                                          \n %s\n
                                                                                                                                                                                                                                                                                                          \n '),W)),this.$toolbar.append(o.join(""));var K=ss.getSearchInput(this);n.showSearchButton?(this.$toolbar.find(".search button[name=search]").off("click").on("click",function(){clearTimeout(a),a=setTimeout(function(){e.onSearch({currentTarget:K})},n.searchTimeOut)}),n.searchOnEnterKey&&M(K)):M(K),n.showSearchClearButton&&this.$toolbar.find(".search button[name=clearSearch]").click(function(){e.resetSearch()})}else{if("string"==typeof n.searchSelector){var Y=ss.getSearchInput(this);M(Y)}}}},{key:"onSearch",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.currentTarget,i=t.firedByInitSearchText,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:!0;if(void 0!==e&&y["default"](e).length&&n){var o=y["default"](e).val().trim();if(this.options.trimOnSearch&&y["default"](e).val()!==o&&y["default"](e).val(o),this.searchText===o){return}var a=ss.getSearchInput(this),s=e instanceof jQuery?e:y["default"](e);(s.is(a)||s.hasClass("search-input"))&&(this.searchText=o,this.options.searchText=o)}i||(this.options.pageNumber=1),this.initSearch(),i?"client"===this.options.sidePagination&&this.updatePagination():this.updatePagination(),this.trigger("search",this.searchText)}},{key:"initSearch",value:function(){var t=this;if(this.filterOptions=this.filterOptions||this.options.filterOptions,"server"!==this.options.sidePagination){if(this.options.customSearch){return this.data=ss.calculateObjectValue(this.options,this.options.customSearch,[this.options.data,this.searchText,this.filterColumns]),void (this.options.sortReset&&(this.unsortedData=r(this.data)))}var e=this.searchText&&(this.fromHtml?ss.escapeHTML(this.searchText):this.searchText),i=e?e.toLowerCase():"",n=ss.isEmptyObject(this.filterColumns)?null:this.filterColumns;this.options.searchAccentNeutralise&&(i=ss.normalizeAccent(i)),"function"==typeof this.filterOptions.filterAlgorithm?this.data=this.options.data.filter(function(e){return t.filterOptions.filterAlgorithm.apply(null,[e,n])}):"string"==typeof this.filterOptions.filterAlgorithm&&(this.data=n?this.options.data.filter(function(e){var i=t.filterOptions.filterAlgorithm;if("and"===i){for(var o in n){if(Array.isArray(n[o])&&!n[o].includes(e[o])||!Array.isArray(n[o])&&e[o]!==n[o]){return !1}}}else{if("or"===i){var a=!1;for(var s in n){(Array.isArray(n[s])&&n[s].includes(e[s])||!Array.isArray(n[s])&&e[s]===n[s])&&(a=!0)}return a}}return !0}):r(this.options.data));var o=this.getVisibleFields();this.data=i?this.data.filter(function(n,a){for(var s=0;s|=<|>=|>|<)(?:\s+)?(-?\d+)?|(-?\d+)?(\s+)?(<=|=>|=<|>=|>|<))/gm,f=d.exec(t.searchText),p=!1;if(f){var g=f[1]||"".concat(f[5],"l"),v=f[2]||f[3],b=parseInt(c,10),m=parseInt(v,10);switch(g){case">":case"m;break;case"<":case">l":p=m>b;break;case"<=":case"=<":case">=l":case"=>l":p=m>=b;break;case">=":case"=>":case"<=l":case"==m}}if(p||"".concat(c).toLowerCase().includes(i)){return !0}}}}return !1}):this.data,this.options.sortReset&&(this.unsortedData=r(this.data)),this.initSort()}}},{key:"initPagination",value:function(){var e=this,i=this.options;if(!i.pagination){return void this.$pagination.hide()}this.$pagination.show();var n,o,a,s,r,l,c,h=[],u=!1,d=this.getData({includeHiddenRows:!1}),f=i.pageList;if("string"==typeof f&&(f=f.replace(/\[|\]| /g,"").toLowerCase().split(",")),f=f.map(function(t){return"string"==typeof t?t.toLowerCase()===i.formatAllRows().toLowerCase()||["all","unlimited"].includes(t.toLowerCase())?i.formatAllRows():+t:t}),this.paginationParts=i.paginationParts,"string"==typeof this.paginationParts&&(this.paginationParts=this.paginationParts.replace(/\[|\]| |'/g,"").split(",")),"server"!==i.sidePagination&&(i.totalRows=d.length),this.totalPages=0,i.totalRows&&(i.pageSize===i.formatAllRows()&&(i.pageSize=i.totalRows,u=!0),this.totalPages=~~((i.totalRows-1)/i.pageSize)+1,i.totalPages=this.totalPages),this.totalPages>0&&i.pageNumber>this.totalPages&&(i.pageNumber=this.totalPages),this.pageFrom=(i.pageNumber-1)*i.pageSize+1,this.pageTo=i.pageNumber*i.pageSize,this.pageTo>i.totalRows&&(this.pageTo=i.totalRows),this.options.pagination&&"server"!==this.options.sidePagination&&(this.options.totalNotFiltered=this.options.data.length),this.options.showExtendedPagination||(this.options.totalNotFiltered=void 0),(this.paginationParts.includes("pageInfo")||this.paginationParts.includes("pageInfoShort")||this.paginationParts.includes("pageSize"))&&h.push('
                                                                                                                                                                                                                                                                                                          ')),this.paginationParts.includes("pageInfo")||this.paginationParts.includes("pageInfoShort")){var p=this.paginationParts.includes("pageInfoShort")?i.formatDetailPagination(i.totalRows):i.formatShowingRows(this.pageFrom,this.pageTo,i.totalRows,i.totalNotFiltered);h.push('\n '.concat(p,"\n "))}if(this.paginationParts.includes("pageSize")){h.push('
                                                                                                                                                                                                                                                                                                          ');var g=['
                                                                                                                                                                                                                                                                                                          \n \n ").concat(this.constants.html.pageDropdown[0])];f.forEach(function(t,n){if(!i.smartDisplay||0===n||f[n-1]")),h.push(i.formatRecordsPerPage(g.join("")))}if((this.paginationParts.includes("pageInfo")||this.paginationParts.includes("pageInfoShort")||this.paginationParts.includes("pageSize"))&&h.push("
                                                                                                                                                                                                                                                                                                          "),this.paginationParts.includes("pageList")){h.push('
                                                                                                                                                                                                                                                                                                          '),ss.sprintf(this.constants.html.pagination[0],ss.sprintf(" pagination-%s",i.iconSize)),ss.sprintf(this.constants.html.paginationItem," page-pre",i.formatSRPaginationPreText(),i.paginationPreText)),this.totalPagesthis.totalPages-o&&(o=o-(i.paginationSuccessivelySize-(this.totalPages-o))+1),1>o&&(o=1),a>this.totalPages&&(a=this.totalPages);var v=Math.round(i.paginationPagesBySide/2),b=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return ss.sprintf(e.constants.html.paginationItem,n+(t===i.pageNumber?" ".concat(e.constants.classes.paginationActive):""),i.formatSRPaginationPageText(t),t)};if(o>1){var m=i.paginationPagesBySide;for(m>=o&&(m=o-1),n=1;m>=n;n++){h.push(b(n))}o-1===m+1?(n=o-1,h.push(b(n))):o-1>m&&(o-2*i.paginationPagesBySide>i.paginationPagesBySide&&i.paginationUseIntermediate?(n=Math.round((o-v)/2+v),h.push(b(n," page-intermediate"))):h.push(ss.sprintf(this.constants.html.paginationItem," page-first-separator disabled","","...")))}for(n=o;a>=n;n++){h.push(b(n))}if(this.totalPages>a){var y=this.totalPages-(i.paginationPagesBySide-1);for(a>=y&&(y=a+1),a+1===y-1?(n=a+1,h.push(b(n))):y>a+1&&(this.totalPages-a>2*i.paginationPagesBySide&&i.paginationUseIntermediate?(n=Math.round((this.totalPages-v-a)/2+a),h.push(b(n," page-intermediate"))):h.push(ss.sprintf(this.constants.html.paginationItem," page-last-separator disabled","","..."))),n=y;n<=this.totalPages;n++){h.push(b(n))}}h.push(ss.sprintf(this.constants.html.paginationItem," page-next",i.formatSRPaginationNextText(),i.paginationNextText)),h.push(this.constants.html.pagination[1],"
                                                                                                                                                                                                                                                                                                          ")}this.$pagination.html(h.join(""));var w=["bottom","both"].includes(i.paginationVAlign)?" ".concat(this.constants.classes.dropup):"";if(this.$pagination.last().find(".page-list > div").addClass(w),!i.onlyInfoPagination&&(s=this.$pagination.find(".page-list a"),r=this.$pagination.find(".page-pre"),l=this.$pagination.find(".page-next"),c=this.$pagination.find(".page-item").not(".page-next, .page-pre, .page-last-separator, .page-first-separator"),this.totalPages<=1&&this.$pagination.find("div.pagination").hide(),i.smartDisplay&&(f.length<2||i.totalRows<=f[0])&&this.$pagination.find("div.page-list").hide(),this.$pagination[this.getData().length?"show":"hide"](),i.paginationLoop||(1===i.pageNumber&&r.addClass("disabled"),i.pageNumber===this.totalPages&&l.addClass("disabled")),u&&(i.pageSize=i.formatAllRows()),s.off("click").on("click",function(t){return e.onPageListChange(t)}),r.off("click").on("click",function(t){return e.onPagePre(t)}),l.off("click").on("click",function(t){return e.onPageNext(t)}),c.off("click").on("click",function(t){return e.onPageNumber(t)}),this.options.showPageGo)){var S=this,x=this.$pagination.find("ul.pagination"),k=x.find("li.pageGo");k.length||(k=t('
                                                                                                                                                                                                                                                                                                        • '+ss.sprintf('',this.options.pageNumber)+('
                                                                                                                                                                                                                                                                                                        • ").appendTo(x),k.find("button").click(function(){var t=parseInt(k.find("input").val())||1;(1>t||t>S.options.totalPages)&&(t=1),S.selectPage(t)}))}}},{key:"updatePagination",value:function(t){t&&y["default"](t.currentTarget).hasClass("disabled")||(this.options.maintainMetaData||this.resetRows(),this.initPagination(),this.trigger("page-change",this.options.pageNumber,this.options.pageSize),"server"===this.options.sidePagination?this.initServer():this.initBody())}},{key:"onPageListChange",value:function(t){t.preventDefault();var e=y["default"](t.currentTarget);return e.parent().addClass(this.constants.classes.dropdownActive).siblings().removeClass(this.constants.classes.dropdownActive),this.options.pageSize=e.text().toUpperCase()===this.options.formatAllRows().toUpperCase()?this.options.formatAllRows():+e.text(),this.$toolbar.find(".page-size").text(this.options.pageSize),this.updatePagination(t),!1}},{key:"onPagePre",value:function(t){return y["default"](t.target).hasClass("disabled")?void 0:(t.preventDefault(),this.options.pageNumber-1===0?this.options.pageNumber=this.options.totalPages:this.options.pageNumber--,this.updatePagination(t),!1)}},{key:"onPageNext",value:function(t){return y["default"](t.target).hasClass("disabled")?void 0:(t.preventDefault(),this.options.pageNumber+1>this.options.totalPages?this.options.pageNumber=1:this.options.pageNumber++,this.updatePagination(t),!1)}},{key:"onPageNumber",value:function(t){return t.preventDefault(),this.options.pageNumber!==+y["default"](t.currentTarget).text()?(this.options.pageNumber=+y["default"](t.currentTarget).text(),this.updatePagination(t),!1):void 0}},{key:"initRow",value:function(t,e,n,o){var a=this,r=[],l={},c=[],h="",u={},d=[];if(!(ss.findIndex(this.hiddenRows,t)>-1)){if(l=ss.calculateObjectValue(this.options,this.options.rowStyle,[t,e],l),l&&l.css){for(var f=0,p=Object.entries(l.css);f"),this.options.cardView&&r.push('
                                                                                                                                                                                                                                                                                                          '));var I="";return ss.hasDetailViewIcon(this.options)&&(I="",ss.calculateObjectValue(null,this.options.detailFilter,[e,t])&&(I+='\n \n '.concat(ss.sprintf(this.constants.html.icon,this.options.iconsPrefix,this.options.icons.detailOpen),"\n \n ")),I+=""),I&&"right"!==this.options.detailViewAlign&&r.push(I),this.header.fields.forEach(function(i,n){var o="",l=ss.getItemField(t,i,a.options.escape),h="",u="",d={},f="",p=a.header.classes[n],g="",v="",b="",m="",y="",w="",S=a.columns[n];if((!a.fromHtml&&!a.autoMergeCells||void 0!==l||S.checkbox||S.radio)&&S.visible&&(!a.options.cardView||S.cardVisible)){if(S.escape&&(l=ss.escapeHTML(l)),c.concat([a.header.styles[n]]).length&&(v+="".concat(c.concat([a.header.styles[n]]).join("; "))),t["_".concat(i,"_style")]&&(v+="".concat(t["_".concat(i,"_style")])),v&&(g=' style="'.concat(v,'"')),t["_".concat(i,"_id")]&&(f=ss.sprintf(' id="%s"',t["_".concat(i,"_id")])),t["_".concat(i,"_class")]&&(p=ss.sprintf(' class="%s"',t["_".concat(i,"_class")])),t["_".concat(i,"_rowspan")]&&(m=ss.sprintf(' rowspan="%s"',t["_".concat(i,"_rowspan")])),t["_".concat(i,"_colspan")]&&(y=ss.sprintf(' colspan="%s"',t["_".concat(i,"_colspan")])),t["_".concat(i,"_title")]&&(w=ss.sprintf(' title="%s"',t["_".concat(i,"_title")])),d=ss.calculateObjectValue(a.header,a.header.cellStyles[n],[l,t,e,i],d),d.classes&&(p=' class="'.concat(d.classes,'"')),d.css){for(var x=[],k=0,O=Object.entries(d.css);k$1",R=h&&/<(?=.*? .*?\/ ?>|br|hr|input|!--|wbr)[a-z]+.*?>|<([a-z]+).*?<\/\1>/i.test(h);if(R){var E=(new DOMParser).parseFromString(""+h,"text/html").documentElement.textContent,j=E.replace(A,$);E=E.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),I=h.replace(RegExp("(>\\s*)(".concat(E,")(\\s*)"),"gm"),"$1".concat(j,"$3"))}else{I=(""+h).replace(A,$)}h=ss.calculateObjectValue(S,S.searchHighlightFormatter,[h,a.searchText],I)}if(t["_".concat(i,"_data")]&&!ss.isEmptyObject(t["_".concat(i,"_data")])){for(var _=0,N=Object.entries(t["_".concat(i,"_data")]);_'):'"))+'")+(a.header.formatters[n]&&"string"==typeof h?h:"")+(a.options.cardView?"
                                                                                                                                                                                                                                                                                                          ":""),t[a.header.stateField]=h===!0||!!l||h&&h.checked}else{if(a.options.cardView){var M=a.options.showHeader?'").concat(ss.getFieldTitle(a.columns,i),""):"";o='
                                                                                                                                                                                                                                                                                                          '.concat(M,'").concat(h,"
                                                                                                                                                                                                                                                                                                          "),a.options.smartDisplay&&""===h&&(o='
                                                                                                                                                                                                                                                                                                          ')}else{o="").concat(h,"")}}r.push(o)}}),I&&"right"===this.options.detailViewAlign&&r.push(I),this.options.cardView&&r.push("
                                                                                                                                                                                                                                                                                                          "),r.push(""),r.join("")}}},{key:"initBody",value:function(t,e){var i=this,n=this.getData();this.trigger("pre-body",n),this.$body=this.$el.find(">tbody"),this.$body.length||(this.$body=y["default"]("").appendTo(this.$el)),this.options.pagination&&"server"!==this.options.sidePagination||(this.pageFrom=1,this.pageTo=n.length);var o=[],a=y["default"](document.createDocumentFragment()),s=!1,r=[];this.autoMergeCells=ss.checkAutoMergeCells(n.slice(this.pageFrom-1,this.pageTo));for(var l=this.pageFrom-1;l tr[data-uniqueid="%s"][data-has-detail-view]',d)),p=f.next();p.is("tr.detail-view")&&(r.push(l),e&&d===e||(h+=p[0].outerHTML))}this.options.virtualScroll?o.push(h):a.append(h)}}s?this.options.virtualScroll?(this.virtualScroll&&this.virtualScroll.destroy(),this.virtualScroll=new cs({rows:o,fixedScroll:t,scrollEl:this.$tableBody[0],contentEl:this.$body[0],itemHeight:this.options.virtualScrollItemHeight,callback:function(t,e){i.fitHeader(),i.initBodyEvent(),i.trigger("virtual-scroll",t,e)}})):this.$body.html(a):this.$body.html(''.concat(ss.sprintf('%s',this.getVisibleFields().length+ss.getDetailViewIndexOffset(this.options),this.options.formatNoMatches()),"")),r.forEach(function(t){i.expandRow(t)}),t||this.scrollTo(0),this.initBodyEvent(),this.initFooter(),this.resetView(),this.updateSelected(),"server"!==this.options.sidePagination&&(this.options.totalRows=n.length),this.trigger("post-body",n)}},{key:"initBodyEvent",value:function(){var t=this;this.$body.find("> tr[data-index] > td").off("click dblclick").on("click dblclick",function(e){var i=y["default"](e.currentTarget),n=i.parent(),o=y["default"](e.target).parents(".card-views").children(),a=y["default"](e.target).parents(".card-view"),s=n.data("index"),r=t.data[s],l=t.options.cardView?o.index(a):i[0].cellIndex,c=t.getVisibleFields(),h=c[l-ss.getDetailViewIndexOffset(t.options)],u=t.columns[t.fieldsColumnsIndex[h]],d=ss.getItemField(r,h,t.options.escape);if(!i.find(".detail-icon").length){if(t.trigger("click"===e.type?"click-cell":"dbl-click-cell",h,d,r,i),t.trigger("click"===e.type?"click-row":"dbl-click-row",r,n,h),"click"===e.type&&t.options.clickToSelect&&u.clickToSelect&&!ss.calculateObjectValue(t.options,t.options.ignoreClickToSelectOn,[e.target])){var f=n.find(ss.sprintf('[name="%s"]',t.options.selectItemName));f.length&&f[0].click()}"click"===e.type&&t.options.detailViewByClick&&t.toggleDetailView(s,t.header.detailFormatters[t.fieldsColumnsIndex[h]])}}).off("mousedown").on("mousedown",function(e){t.multipleSelectRowCtrlKey=e.ctrlKey||e.metaKey,t.multipleSelectRowShiftKey=e.shiftKey}),this.$body.find("> tr[data-index] > td > .detail-icon").off("click").on("click",function(e){return e.preventDefault(),t.toggleDetailView(y["default"](e.currentTarget).parent().parent().data("index")),!1}),this.$selectItem=this.$body.find(ss.sprintf('[name="%s"]',this.options.selectItemName)),this.$selectItem.off("click").on("click",function(e){e.stopImmediatePropagation();var i=y["default"](e.currentTarget);t._toggleCheck(i.prop("checked"),i.data("index"))}),this.header.events.forEach(function(e,i){var n=e;if(n){"string"==typeof n&&(n=ss.calculateObjectValue(null,n));var o=t.header.fields[i],a=t.getVisibleFields().indexOf(o);if(-1!==a){a+=ss.getDetailViewIndexOffset(t.options);var s=function(e){if(!n.hasOwnProperty(e)){return"continue"}var i=n[e];t.$body.find(">tr:not(.no-records-found)").each(function(n,s){var r=y["default"](s),l=r.find(t.options.cardView?".card-views>.card-view":">td").eq(a),c=e.indexOf(" "),h=e.substring(0,c),u=e.substring(c+1);l.find(u).off(h).on(h,function(e){var n=r.data("index"),a=t.data[n],s=a[o];i.apply(t,[e,s,a,n])})})};for(var r in n){s(r)}}}})}},{key:"initServer",value:function(t,e,i){var n=this,o={},a=this.header.fields.indexOf(this.options.sortName),s={searchText:this.searchText,sortName:this.options.sortName,sortOrder:this.options.sortOrder};if(this.header.sortNames[a]&&(s.sortName=this.header.sortNames[a]),this.options.pagination&&"server"===this.options.sidePagination&&(s.pageSize=this.options.pageSize===this.options.formatAllRows()?this.options.totalRows:this.options.pageSize,s.pageNumber=this.options.pageNumber),!this.options.firstLoad&&!firstLoadTable.includes(this.options.id)){return void firstLoadTable.push(this.options.id)}if(i||this.options.url||this.options.ajax){if("limit"===this.options.queryParamsType&&(s={search:s.searchText,sort:s.sortName,order:s.sortOrder},this.options.pagination&&"server"===this.options.sidePagination&&(s.offset=this.options.pageSize===this.options.formatAllRows()?0:this.options.pageSize*(this.options.pageNumber-1),s.limit=this.options.pageSize,(0===s.limit||this.options.pageSize===this.options.formatAllRows())&&delete s.limit)),this.options.search&&"server"===this.options.sidePagination&&this.columns.filter(function(t){return !t.searchable}).length){s.searchable=[];var r,l=v(this.columns);try{for(l.s();!(r=l.n()).done;){var c=r.value;!c.checkbox&&c.searchable&&(this.options.visibleSearch&&c.visible||!this.options.visibleSearch)&&s.searchable.push(c.field)}}catch(h){l.e(h)}finally{l.f()}}if(ss.isEmptyObject(this.filterColumnsPartial)||(s.filter=JSON.stringify(this.filterColumnsPartial,null)),y["default"].extend(s,e||{}),o=ss.calculateObjectValue(this.options,this.options.queryParams,[s],o),o!==!1){t||this.showLoading();var u=y["default"].extend({},ss.calculateObjectValue(null,this.options.ajaxOptions),{type:this.options.method,url:i||this.options.url,data:"application/json"===this.options.contentType&&"post"===this.options.method?JSON.stringify(o):o,cache:this.options.cache,contentType:this.options.contentType,dataType:this.options.dataType,success:function(e,i,o){var a=ss.calculateObjectValue(n.options,n.options.responseHandler,[e,o],e);n.load(a),n.trigger("load-success",a,o&&o.status,o),t||n.hideLoading(),"server"===n.options.sidePagination&&n.options.pageNumber>1&&a[n.options.totalField]>0&&!a[n.options.dataField].length&&n.updatePagination()},error:function(e){if(e&&0===e.status&&n._xhrAbort){return void (n._xhrAbort=!1)}var i=[];"server"===n.options.sidePagination&&(i={},i[n.options.totalField]=0,i[n.options.dataField]=[]),n.load(i),n.trigger("load-error",e&&e.status,e),t||n.$tableLoading.hide()}});return this.options.ajax?ss.calculateObjectValue(this,this.options.ajax,[u],null):(this._xhr&&4!==this._xhr.readyState&&(this._xhrAbort=!0,this._xhr.abort()),this._xhr=y["default"].ajax(u)),o}}}},{key:"initSearchText",value:function(){if(this.options.search&&(this.searchText="",""!==this.options.searchText)){var t=ss.getSearchInput(this);t.val(this.options.searchText),this.onSearch({currentTarget:t,firedByInitSearchText:!0})}}},{key:"getCaret",value:function(){var t=this;this.$header.find("th").each(function(e,i){y["default"](i).find(".sortable").removeClass("desc asc").addClass(y["default"](i).data("field")===t.options.sortName?t.options.sortOrder:"both")})}},{key:"updateSelected",value:function(){var t=this.$selectItem.filter(":enabled").length&&this.$selectItem.filter(":enabled").length===this.$selectItem.filter(":enabled").filter(":checked").length;this.$selectAll.add(this.$selectAll_).prop("checked",t),this.$selectItem.each(function(t,e){y["default"](e).closest("tr")[y["default"](e).prop("checked")?"addClass":"removeClass"]("selected")})}},{key:"updateRows",value:function(){var t=this;this.$selectItem.each(function(e,i){t.data[y["default"](i).data("index")][t.header.stateField]=y["default"](i).prop("checked")})}},{key:"resetRows",value:function(){var t,e=v(this.data);try{for(e.s();!(t=e.n()).done;){var i=t.value;this.$selectAll.prop("checked",!1),this.$selectItem.prop("checked",!1),this.header.stateField&&(i[this.header.stateField]=!1)}}catch(n){e.e(n)}finally{e.f()}this.initHiddenRows()}},{key:"trigger",value:function(t){for(var i,n,o="".concat(t,".bs.table"),a=arguments.length,s=Array(a>1?a-1:0),r=1;a>r;r++){s[r-1]=arguments[r]}(i=this.options)[e.EVENTS[o]].apply(i,[].concat(s,[this])),this.$el.trigger(y["default"].Event(o,{sender:this}),s),(n=this.options).onAll.apply(n,[o].concat([].concat(s,[this]))),this.$el.trigger(y["default"].Event("all.bs.table",{sender:this}),[o,s])}},{key:"resetHeader",value:function(){var t=this;clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(function(){return t.fitHeader()},this.$el.is(":hidden")?100:0)}},{key:"fitHeader",value:function(){var t=this;if(this.$el.is(":hidden")){return void (this.timeoutId_=setTimeout(function(){return t.fitHeader()},100))}var e=this.$tableBody.get(0),i=e.scrollWidth>e.clientWidth&&e.scrollHeight>e.clientHeight+this.$header.outerHeight()?ss.getScrollBarWidth():0;this.$el.css("margin-top",-this.$header.outerHeight());var n=y["default"](":focus");if(n.length>0){var o=n.parents("th");if(o.length>0){var a=o.attr("data-field");if(void 0!==a){var s=this.$header.find("[data-field='".concat(a,"']"));s.length>0&&s.find(":input").addClass("focus-temp")}}}this.$header_=this.$header.clone(!0,!0),this.$selectAll_=this.$header_.find('[name="btSelectAll"]'),this.$tableHeader.css("margin-right",i).find("table").css("width",this.$el.outerWidth()).html("").attr("class",this.$el.attr("class")).append(this.$header_),this.$tableLoading.css("width",this.$el.outerWidth());var r=y["default"](".focus-temp:visible:eq(0)");r.length>0&&(r.focus(),this.$header.find(".focus-temp").removeClass("focus-temp")),this.$header.find("th[data-field]").each(function(e,i){t.$header_.find(ss.sprintf('th[data-field="%s"]',y["default"](i).data("field"))).data(y["default"](i).data())});for(var l=this.getVisibleFields(),c=this.$header_.find("th"),h=this.$body.find(">tr:not(.no-records-found,.virtual-scroll-top)").eq(0);h.length&&h.find('>td[colspan]:not([colspan="1"])').length;){h=h.next()}var u=h.find("> *").length;h.find("> *").each(function(e,i){var n=y["default"](i);if(ss.hasDetailViewIcon(t.options)&&(0===e&&"right"!==t.options.detailViewAlign||e===u-1&&"right"===t.options.detailViewAlign)){var o=c.filter(".detail"),a=o.innerWidth()-o.find(".fht-cell").width();return void o.find(".fht-cell").width(n.innerWidth()-a)}var s=e-ss.getDetailViewIndexOffset(t.options),r=t.$header_.find(ss.sprintf('th[data-field="%s"]',l[s]));r.length>1&&(r=y["default"](c[n[0].cellIndex]));var h=r.innerWidth()-r.find(".fht-cell").width();r.find(".fht-cell").width(n.innerWidth()-h)}),this.horizontalScroll(),this.trigger("post-header")}},{key:"initFooter",value:function(){if(this.options.showFooter&&!this.options.cardView){var t=this.getData(),e=[],i="";ss.hasDetailViewIcon(this.options)&&(i='
                                                                                                                                                                                                                                                                                                          '),i&&"right"!==this.options.detailViewAlign&&e.push(i);var n,o=v(this.columns);try{for(o.s();!(n=o.n()).done;){var a=n.value,r="",l="",c=[],h={},u=ss.sprintf(' class="%s"',a["class"]);if(a.visible&&(!(this.footerData&&this.footerData.length>0)||a.field in this.footerData[0])){if(this.options.cardView&&!a.cardVisible){return}if(r=ss.sprintf("text-align: %s; ",a.falign?a.falign:a.align),l=ss.sprintf("vertical-align: %s; ",a.valign),h=ss.calculateObjectValue(null,this.options.footerStyle,[a]),h&&h.css){for(var d=0,f=Object.entries(h.css);d0&&(m=this.footerData[0]["_".concat(a.field,"_colspan")]||0),m&&e.push(' colspan="'.concat(m,'" ')),e.push(">"),e.push('
                                                                                                                                                                                                                                                                                                          ');var y="";this.footerData&&this.footerData.length>0&&(y=this.footerData[0][a.field]||""),e.push(ss.calculateObjectValue(a,a.footerFormatter,[t,y],y)),e.push("
                                                                                                                                                                                                                                                                                                          "),e.push('
                                                                                                                                                                                                                                                                                                          '),e.push(""),e.push("")}}}catch(w){o.e(w)}finally{o.f()}i&&"right"===this.options.detailViewAlign&&e.push(i),this.options.height||this.$tableFooter.length||(this.$el.append(""),this.$tableFooter=this.$el.find("tfoot")),this.$tableFooter.find("tr").length||this.$tableFooter.html("
                                                                                                                                                                                                                                                                                                          "),this.$tableFooter.find("tr").html(e.join("")),this.trigger("post-footer",this.$tableFooter)}}},{key:"fitFooter",value:function(){var t=this;if(this.$el.is(":hidden")){return void setTimeout(function(){return t.fitFooter()},100)}var e=this.$tableBody.get(0),i=e.scrollWidth>e.clientWidth&&e.scrollHeight>e.clientHeight+this.$header.outerHeight()?ss.getScrollBarWidth():0;this.$tableFooter.css("margin-right",i).find("table").css("width",this.$el.outerWidth()).attr("class",this.$el.attr("class"));var n=this.$tableFooter.find("th"),o=this.$body.find(">tr:first-child:not(.no-records-found)");for(n.find(".fht-cell").width("auto");o.length&&o.find('>td[colspan]:not([colspan="1"])').length;){o=o.next()}var a=o.find("> *").length;o.find("> *").each(function(e,i){var o=y["default"](i);if(ss.hasDetailViewIcon(t.options)&&(0===e&&"left"===t.options.detailViewAlign||e===a-1&&"right"===t.options.detailViewAlign)){var s=n.filter(".detail"),r=s.innerWidth()-s.find(".fht-cell").width();return void s.find(".fht-cell").width(o.innerWidth()-r)}var l=n.eq(e),c=l.innerWidth()-l.find(".fht-cell").width();l.find(".fht-cell").width(o.innerWidth()-c)}),this.horizontalScroll()}},{key:"horizontalScroll",value:function(){var t=this;this.$tableBody.off("scroll").on("scroll",function(){var e=t.$tableBody.scrollLeft();t.options.showHeader&&t.options.height&&t.$tableHeader.scrollLeft(e),t.options.showFooter&&!t.options.cardView&&t.$tableFooter.scrollLeft(e),t.trigger("scroll-body",t.$tableBody)})}},{key:"getVisibleFields",value:function(){var t,e=[],i=v(this.header.fields);try{for(i.s();!(t=i.n()).done;){var n=t.value,o=this.columns[this.fieldsColumnsIndex[n]];o&&o.visible&&e.push(n)}}catch(a){i.e(a)}finally{i.f()}return e}},{key:"initHiddenRows",value:function(){this.hiddenRows=[]}},{key:"getOptions",value:function(){var t=y["default"].extend({},this.options);return delete t.data,y["default"].extend(!0,{},t)}},{key:"refreshOptions",value:function(t){ss.compareObjects(this.options,t,!0)||(this.options=y["default"].extend(this.options,t),this.trigger("refresh-options",this.options),this.destroy(),this.init())}},{key:"getData",value:function(t){var e=this,i=this.options.data;if(!(this.searchText||this.options.customSearch||void 0!==this.options.sortName||this.enableCustomSort)&&ss.isEmptyObject(this.filterColumns)&&ss.isEmptyObject(this.filterColumnsPartial)||t&&t.unfiltered||(i=this.data),t&&t.useCurrentPage&&(i=i.slice(this.pageFrom-1,this.pageTo)),t&&!t.includeHiddenRows){var n=this.getHiddenRows();i=i.filter(function(t){return -1===ss.findIndex(n,t)})}return t&&t.formatted&&i.forEach(function(t){for(var i=0,n=Object.entries(t);i=0;i--){var n=this.options.data[i];(n.hasOwnProperty(t.field)||"$index"===t.field)&&(!n.hasOwnProperty(t.field)&&"$index"===t.field&&t.values.includes(i)||t.values.includes(n[t.field]))&&(e++,this.options.data.splice(i,1))}e&&("server"===this.options.sidePagination&&(this.options.totalRows-=e,this.data=r(this.options.data)),this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0))}},{key:"removeAll",value:function(){this.options.data.length>0&&(this.options.data.splice(0,this.options.data.length),this.initSearch(),this.initPagination(),this.initBody(!0))}},{key:"insertRow",value:function(t){t.hasOwnProperty("index")&&t.hasOwnProperty("row")&&(this.options.data.splice(t.index,0,t.row),this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0))}},{key:"updateRow",value:function(t){var e,i=Array.isArray(t)?t:[t],n=v(i);try{for(n.s();!(e=n.n()).done;){var o=e.value;o.hasOwnProperty("index")&&o.hasOwnProperty("row")&&(o.hasOwnProperty("replace")&&o.replace?this.options.data[o.index]=o.row:y["default"].extend(this.options.data[o.index],o.row))}}catch(a){n.e(a)}finally{n.f()}this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0)}},{key:"getRowByUniqueId",value:function(t){var e,i,n,o=this.options.uniqueId,a=this.options.data.length,s=t,r=null;for(e=a-1;e>=0;e--){if(i=this.options.data[e],i.hasOwnProperty(o)){n=i[o]}else{if(!i._data||!i._data.hasOwnProperty(o)){continue}n=i._data[o]}if("string"==typeof n?s=""+s:"number"==typeof n&&(+n===n&&n%1===0?s=parseInt(s,10):n===+n&&0!==n&&(s=parseFloat(s))),n===s){r=i;break}}return r}},{key:"updateByUniqueId",value:function(t){var e,i=Array.isArray(t)?t:[t],n=null,o=v(i);try{for(o.s();!(e=o.n()).done;){var a=e.value;if(a.hasOwnProperty("id")&&a.hasOwnProperty("row")){var s=this.options.data.indexOf(this.getRowByUniqueId(a.id));-1!==s&&(a.hasOwnProperty("replace")&&a.replace?this.options.data[s]=a.row:y["default"].extend(this.options.data[s],a.row),n=a.id)}}}catch(r){o.e(r)}finally{o.f()}this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0,n)}},{key:"removeByUniqueId",value:function(t){var e=this.options.data.length,i=this.getRowByUniqueId(t);i&&this.options.data.splice(this.options.data.indexOf(i),1),e!==this.options.data.length&&("server"===this.options.sidePagination&&(this.options.totalRows-=1,this.data=r(this.options.data)),this.initSearch(),this.initPagination(),this.initBody(!0))}},{key:"updateCell",value:function(t){t.hasOwnProperty("index")&&t.hasOwnProperty("field")&&t.hasOwnProperty("value")&&(this.data[t.index][t.field]=t.value,t.reinit!==!1&&(this.initSort(),this.initBody(!0)))}},{key:"updateCellByUniqueId",value:function(t){var e=this,i=Array.isArray(t)?t:[t];i.forEach(function(t){var i=t.id,n=t.field,o=t.value,a=e.options.data.indexOf(e.getRowByUniqueId(i));-1!==a&&(e.options.data[a][n]=o)}),t.reinit!==!1&&(this.initSort(),this.initBody(!0))}},{key:"showRow",value:function(t){this._toggleRow(t,!0)}},{key:"hideRow",value:function(t){this._toggleRow(t,!1)}},{key:"_toggleRow",value:function(t,e){var i;if(t.hasOwnProperty("index")?i=this.getData()[t.index]:t.hasOwnProperty("uniqueId")&&(i=this.getRowByUniqueId(t.uniqueId)),i){var n=ss.findIndex(this.hiddenRows,i);e||-1!==n?e&&n>-1&&this.hiddenRows.splice(n,1):this.hiddenRows.push(i),this.initBody(!0),this.initPagination()}}},{key:"getHiddenRows",value:function(t){if(t){return this.initHiddenRows(),this.initBody(!0),void this.initPagination()}var e,i=this.getData(),n=[],o=v(i);try{for(o.s();!(e=o.n()).done;){var a=e.value;this.hiddenRows.includes(a)&&n.push(a)}}catch(s){o.e(s)}finally{o.f()}return this.hiddenRows=n,n}},{key:"showColumn",value:function(t){var e=this,i=Array.isArray(t)?t:[t];i.forEach(function(t){e._toggleColumn(e.fieldsColumnsIndex[t],!0,!0)})}},{key:"hideColumn",value:function(t){var e=this,i=Array.isArray(t)?t:[t];i.forEach(function(t){e._toggleColumn(e.fieldsColumnsIndex[t],!1,!0)})}},{key:"_toggleColumn",value:function(t,e,i){if(-1!==t&&this.columns[t].visible!==e&&(this.columns[t].visible=e,this.initHeader(),this.initSearch(),this.initPagination(),this.initBody(),this.options.showColumns)){var n=this.$toolbar.find('.keep-open input:not(".toggle-all")').prop("disabled",!1);i&&n.filter(ss.sprintf('[value="%s"]',t)).prop("checked",e),n.filter(":checked").length<=this.options.minimumCountColumns&&n.filter(":checked").prop("disabled",!0)}}},{key:"getVisibleColumns",value:function(){var t=this;return this.columns.filter(function(e){return e.visible&&!t.isSelectionColumn(e)})}},{key:"getHiddenColumns",value:function(){return this.columns.filter(function(t){var e=t.visible;return !e})}},{key:"isSelectionColumn",value:function(t){return t.radio||t.checkbox}},{key:"showAllColumns",value:function(){this._toggleAllColumns(!0)}},{key:"hideAllColumns",value:function(){this._toggleAllColumns(!1)}},{key:"_toggleAllColumns",value:function(t){var e,i=this,n=v(this.columns.slice().reverse());try{for(n.s();!(e=n.n()).done;){var o=e.value;if(o.switchable){if(!t&&this.options.showColumns&&this.getVisibleColumns().length===this.options.minimumCountColumns){continue}o.visible=t}}}catch(a){n.e(a)}finally{n.f()}if(this.initHeader(),this.initSearch(),this.initPagination(),this.initBody(),this.options.showColumns){var s=this.$toolbar.find('.keep-open input[type="checkbox"]:not(".toggle-all")').prop("disabled",!1);t?s.prop("checked",t):s.get().reverse().forEach(function(e){s.filter(":checked").length>i.options.minimumCountColumns&&y["default"](e).prop("checked",t)}),s.filter(":checked").length<=this.options.minimumCountColumns&&s.filter(":checked").prop("disabled",!0)}}},{key:"mergeCells",value:function(t){var e,i,n=t.index,o=this.getVisibleFields().indexOf(t.field),a=t.rowspan||1,s=t.colspan||1,r=this.$body.find(">tr[data-index]");o+=ss.getDetailViewIndexOffset(this.options);var l=r.eq(n).find(">td").eq(o);if(!(0>n||0>o||n>=this.data.length)){for(e=n;n+a>e;e++){for(i=o;o+s>i;i++){r.eq(e).find(">td").eq(i).hide()}}l.attr("rowspan",a).attr("colspan",s).show()}}},{key:"checkAll",value:function(){this._toggleCheckAll(!0)}},{key:"uncheckAll",value:function(){this._toggleCheckAll(!1)}},{key:"_toggleCheckAll",value:function(t){var e=this.getSelections();this.$selectAll.add(this.$selectAll_).prop("checked",t),this.$selectItem.filter(":enabled").prop("checked",t),this.updateRows(),this.updateSelected();var i=this.getSelections();return t?void this.trigger("check-all",i,e):void this.trigger("uncheck-all",i,e)}},{key:"checkInvert",value:function(){var t=this.$selectItem.filter(":enabled"),e=t.filter(":checked");t.each(function(t,e){y["default"](e).prop("checked",!y["default"](e).prop("checked"))}),this.updateRows(),this.updateSelected(),this.trigger("uncheck-some",e),e=this.getSelections(),this.trigger("check-some",e)}},{key:"check",value:function(t){this._toggleCheck(!0,t)}},{key:"uncheck",value:function(t){this._toggleCheck(!1,t)}},{key:"_toggleCheck",value:function(t,e){var i=this.$selectItem.filter('[data-index="'.concat(e,'"]')),n=this.data[e];if(i.is(":radio")||this.options.singleSelect||this.options.multipleSelectRow&&!this.multipleSelectRowCtrlKey&&!this.multipleSelectRowShiftKey){var o,a=v(this.options.data);try{for(a.s();!(o=a.n()).done;){var r=o.value;r[this.header.stateField]=!1}}catch(l){a.e(l)}finally{a.f()}this.$selectItem.filter(":checked").not(i).prop("checked",!1)}if(n[this.header.stateField]=t,this.options.multipleSelectRow){if(this.multipleSelectRowShiftKey&&this.multipleSelectRowLastSelectedIndex>=0){for(var c=this.multipleSelectRowLastSelectedIndexf;f++){this.data[f][this.header.stateField]=!0,this.$selectItem.filter('[data-index="'.concat(f,'"]')).prop("checked",!0)}}this.multipleSelectRowCtrlKey=!1,this.multipleSelectRowShiftKey=!1,this.multipleSelectRowLastSelectedIndex=t?e:-1}i.prop("checked",t),this.updateSelected(),this.trigger(t?"check":"uncheck",this.data[e],i)}},{key:"checkBy",value:function(t){this._toggleCheckBy(!0,t)}},{key:"uncheckBy",value:function(t){this._toggleCheckBy(!1,t)}},{key:"_toggleCheckBy",value:function(t,e){var i=this;if(e.hasOwnProperty("field")&&e.hasOwnProperty("values")){var n=[];this.data.forEach(function(o,a){if(!o.hasOwnProperty(e.field)){return !1}if(e.values.includes(o[e.field])){var s=i.$selectItem.filter(":enabled").filter(ss.sprintf('[data-index="%s"]',a)),r=e.hasOwnProperty("onlyCurrentPage")?e.onlyCurrentPage:!1;if(s=t?s.not(":checked"):s.filter(":checked"),!s.length&&r){return}s.prop("checked",t),o[i.header.stateField]=t,n.push(o),i.trigger(t?"check":"uncheck",o,s)}}),this.updateSelected(),this.trigger(t?"check-some":"uncheck-some",n)}}},{key:"refresh",value:function(t){t&&t.url&&(this.options.url=t.url),t&&t.pageNumber&&(this.options.pageNumber=t.pageNumber),t&&t.pageSize&&(this.options.pageSize=t.pageSize),table.rememberSelecteds={},table.rememberSelectedIds={},this.trigger("refresh",this.initServer(t&&t.silent,t&&t.query,t&&t.url))}},{key:"destroy",value:function(){this.$el.insertBefore(this.$container),y["default"](this.options.toolbar).insertBefore(this.$el),this.$container.next().remove(),this.$container.remove(),this.$el.html(this.$el_.html()).css("margin-top","0").attr("class",this.$el_.attr("class")||"")}},{key:"resetView",value:function(t){var e=0;if(t&&t.height&&(this.options.height=t.height),this.$tableContainer.toggleClass("has-card-view",this.options.cardView),!this.options.cardView&&this.options.showHeader&&this.options.height?(this.$tableHeader.show(),this.resetHeader(),e+=this.$header.outerHeight(!0)+1):(this.$tableHeader.hide(),this.trigger("post-header")),!this.options.cardView&&this.options.showFooter&&(this.$tableFooter.show(),this.fitFooter(),this.options.height&&(e+=this.$tableFooter.outerHeight(!0))),this.$container.hasClass("fullscreen")){this.$tableContainer.css("height",""),this.$tableContainer.css("width","")}else{if(this.options.height){this.$tableBorder&&(this.$tableBorder.css("width",""),this.$tableBorder.css("height",""));var i=this.$toolbar.outerHeight(!0),n=this.$pagination.outerHeight(!0),o=this.options.height-i-n,a=this.$tableBody.find(">table"),s=a.outerHeight();if(this.$tableContainer.css("height","".concat(o,"px")),this.$tableBorder&&a.is(":visible")){var r=o-s-2;this.$tableBody[0].scrollWidth-this.$tableBody.innerWidth()&&(r-=ss.getScrollBarWidth()),this.$tableBorder.css("width","".concat(a.outerWidth(),"px")),this.$tableBorder.css("height","".concat(r,"px"))}}}this.options.cardView?(this.$el.css("margin-top","0"),this.$tableContainer.css("padding-bottom","0"),this.$tableFooter.hide()):(this.getCaret(),this.$tableContainer.css("padding-bottom","".concat(e,"px"))),this.trigger("reset-view")}},{key:"showLoading",value:function(){this.$tableLoading.toggleClass("open",!0);var t=this.options.loadingFontSize;"auto"===this.options.loadingFontSize&&(t=0.04*this.$tableLoading.width(),t=Math.max(12,t),t=Math.min(32,t),t="".concat(t,"px")),this.$tableLoading.find(".loading-text").css("font-size",t)}},{key:"hideLoading",value:function(){this.$tableLoading.toggleClass("open",!1)}},{key:"toggleShowSearch",value:function(){this.$el.parents(".select-table").siblings().slideToggle()}},{key:"togglePagination",value:function(){this.options.pagination=!this.options.pagination;var t=this.options.showButtonIcons?this.options.pagination?this.options.icons.paginationSwitchDown:this.options.icons.paginationSwitchUp:"",e=this.options.showButtonText?this.options.pagination?this.options.formatPaginationSwitchUp():this.options.formatPaginationSwitchDown():"";this.$toolbar.find('button[name="paginationSwitch"]').html("".concat(ss.sprintf(this.constants.html.icon,this.options.iconsPrefix,t)," ").concat(e)),this.updatePagination(),this.trigger("toggle-pagination",this.options.pagination)}},{key:"toggleFullscreen",value:function(){this.$el.closest(".bootstrap-table").toggleClass("fullscreen"),this.resetView()}},{key:"toggleView",value:function(){this.options.cardView=!this.options.cardView,this.initHeader();var t=this.options.showButtonIcons?this.options.cardView?this.options.icons.toggleOn:this.options.icons.toggleOff:"",e=this.options.showButtonText?this.options.cardView?this.options.formatToggleOff():this.options.formatToggleOn():"";this.$toolbar.find('button[name="toggle"]').html("".concat(ss.sprintf(this.constants.html.icon,this.options.iconsPrefix,t)," ").concat(e)),this.initBody(),this.trigger("toggle",this.options.cardView)}},{key:"resetSearch",value:function(t){var e=ss.getSearchInput(this);e.val(t||""),this.onSearch({currentTarget:e})}},{key:"filterBy",value:function(t,e){this.filterOptions=ss.isEmptyObject(e)?this.options.filterOptions:y["default"].extend(this.options.filterOptions,e),this.filterColumns=ss.isEmptyObject(t)?{}:t,this.options.pageNumber=1,this.initSearch(),this.updatePagination()}},{key:"scrollTo",value:function o(t){var e={unit:"px",value:0};"object"===i(t)?e=Object.assign(e,t):"string"==typeof t&&"bottom"===t?e.value=this.$tableBody[0].scrollHeight:("string"==typeof t||"number"==typeof t)&&(e.value=t);var o=e.value;"rows"===e.unit&&(o=0,this.$body.find("> tr:lt(".concat(e.value,")")).each(function(t,e){o+=y["default"](e).outerHeight(!0)})),this.$tableBody.scrollTop(o)}},{key:"getScrollPosition",value:function(){return this.$tableBody.scrollTop()}},{key:"selectPage",value:function(t){t>0&&t<=this.options.totalPages&&(this.options.pageNumber=t,this.updatePagination())}},{key:"prevPage",value:function(){this.options.pageNumber>1&&(this.options.pageNumber--,this.updatePagination())}},{key:"nextPage",value:function(){this.options.pageNumber tr[data-index="%s"]',t));i.next().is("tr.detail-view")?this.collapseRow(t):this.expandRow(t,e),this.resetView()}},{key:"expandRow",value:function(t,e){var i=this.data[t],n=this.$body.find(ss.sprintf('> tr[data-index="%s"][data-has-detail-view]',t));if(this.options.detailViewIcon&&n.find("a.detail-icon").html(ss.sprintf(this.constants.html.icon,this.options.iconsPrefix,this.options.icons.detailClose)),!n.next().is("tr.detail-view")){n.after(ss.sprintf('',n.children("td").length));var o=n.next().find("td"),a=e||this.options.detailFormatter,s=ss.calculateObjectValue(this.options,a,[t,i,o],"");1===o.length&&o.append(s),this.trigger("expand-row",t,i,o)}}},{key:"expandRowByUniqueId",value:function(t){var e=this.getRowByUniqueId(t);e&&this.expandRow(this.data.indexOf(e))}},{key:"collapseRow",value:function(t){var e=this.data[t],i=this.$body.find(ss.sprintf('> tr[data-index="%s"][data-has-detail-view]',t));i.next().is("tr.detail-view")&&(this.options.detailViewIcon&&i.find("a.detail-icon").html(ss.sprintf(this.constants.html.icon,this.options.iconsPrefix,this.options.icons.detailOpen)),this.trigger("collapse-row",t,e,i.next()),i.next().remove())}},{key:"collapseRowByUniqueId",value:function(t){var e=this.getRowByUniqueId(t);e&&this.collapseRow(this.data.indexOf(e))}},{key:"expandAllRows",value:function(){for(var t=this.$body.find("> tr[data-index][data-has-detail-view]"),e=0;e tr[data-index][data-has-detail-view]"),e=0;e1?e-1:0),o=1;e>o;o++){n[o-1]=arguments[o]}var a;return this.each(function(e,o){var s=y["default"](o).data("bootstrap.table"),r=y["default"].extend({},hs.DEFAULTS,y["default"](o).data(),"object"===i(t)&&t);if("string"==typeof t){var l;if(!Ka.METHODS.includes(t)){throw Error("Unknown method: ".concat(t))}if(!s){return}a=(l=s)[t].apply(l,n),"destroy"===t&&y["default"](o).removeData("bootstrap.table")}s||(s=new y["default"].BootstrapTable(o,r),y["default"](o).data("bootstrap.table",s),s.init())}),void 0===a?this:a},y["default"].fn.bootstrapTable.Constructor=hs,y["default"].fn.bootstrapTable.theme=Ka.THEME,y["default"].fn.bootstrapTable.VERSION=Ka.VERSION,y["default"].fn.bootstrapTable.defaults=hs.DEFAULTS,y["default"].fn.bootstrapTable.columnDefaults=hs.COLUMN_DEFAULTS,y["default"].fn.bootstrapTable.events=hs.EVENTS,y["default"].fn.bootstrapTable.locales=hs.LOCALES,y["default"].fn.bootstrapTable.methods=hs.METHODS,y["default"].fn.bootstrapTable.utils=ss,y["default"](function(){y["default"]('[data-toggle="table"]').bootstrapTable()}),hs});var TABLE_EVENTS="all.bs.table click-cell.bs.table dbl-click-cell.bs.table click-row.bs.table dbl-click-row.bs.table sort.bs.table check.bs.table uncheck.bs.table onUncheck check-all.bs.table uncheck-all.bs.table check-some.bs.table uncheck-some.bs.table load-success.bs.table load-error.bs.table column-switch.bs.table page-change.bs.table search.bs.table toggle.bs.table show-search.bs.table expand-row.bs.table collapse-row.bs.table refresh-options.bs.table reset-view.bs.table refresh.bs.table",firstLoadTable=[],union=function(t,e){return $.isPlainObject(e)?addRememberRow(t,e):$.isArray(e)?$.each(e,function(e,i){$.isPlainObject(i)?addRememberRow(t,i):-1==$.inArray(i,t)&&(t[t.length]=i)}):-1==$.inArray(e,t)&&(t[t.length]=e),t},difference=function(t,e){if($.isPlainObject(e)){removeRememberRow(t,e)}else{if($.isArray(e)){$.each(e,function(e,i){if($.isPlainObject(i)){removeRememberRow(t,i)}else{var n=$.inArray(i,t);-1!=n&&t.splice(n,1)}})}else{var i=$.inArray(e,t);-1!=i&&t.splice(i,1)}}return t},_={union:union,difference:difference}; \ No newline at end of file diff --git a/alive-admin/target/classes/static/ajax/libs/bootstrap-table/extensions/auto-refresh/bootstrap-table-auto-refresh.js b/alive-admin/target/classes/static/ajax/libs/bootstrap-table/extensions/auto-refresh/bootstrap-table-auto-refresh.js new file mode 100644 index 0000000..f142185 --- /dev/null +++ b/alive-admin/target/classes/static/ajax/libs/bootstrap-table/extensions/auto-refresh/bootstrap-table-auto-refresh.js @@ -0,0 +1,95 @@ +/** + * @author: Alec Fenichel + * @webSite: https://fenichelar.com + * @update: zhixin wen + */ + +var Utils = $.fn.bootstrapTable.utils + +$.extend($.fn.bootstrapTable.defaults, { + autoRefresh: false, + showAutoRefresh: true, + autoRefreshInterval: 60, + autoRefreshSilent: true, + autoRefreshStatus: true, + autoRefreshFunction: null +}) + +$.extend($.fn.bootstrapTable.defaults.icons, { + autoRefresh: { + bootstrap3: 'glyphicon-time icon-time', + bootstrap5: 'bi-clock', + materialize: 'access_time', + 'bootstrap-table': 'icon-clock' + }[$.fn.bootstrapTable.theme] || 'fa-clock' +}) + +$.extend($.fn.bootstrapTable.locales, { + formatAutoRefresh () { + return 'Auto Refresh' + } +}) + +$.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales) + +$.BootstrapTable = class extends $.BootstrapTable { + init (...args) { + super.init(...args) + + if (this.options.autoRefresh && this.options.autoRefreshStatus) { + this.setupRefreshInterval() + } + } + + initToolbar (...args) { + if (this.options.autoRefresh) { + this.buttons = Object.assign(this.buttons, { + autoRefresh: { + html: ` + + `, + event: this.toggleAutoRefresh + } + }) + } + + super.initToolbar(...args) + } + + toggleAutoRefresh () { + if (this.options.autoRefresh) { + if (this.options.autoRefreshStatus) { + clearInterval(this.options.autoRefreshFunction) + this.$toolbar.find('>.columns .auto-refresh') + .removeClass(this.constants.classes.buttonActive) + } else { + this.setupRefreshInterval() + this.$toolbar.find('>.columns .auto-refresh') + .addClass(this.constants.classes.buttonActive) + } + this.options.autoRefreshStatus = !this.options.autoRefreshStatus + } + } + + destroy () { + if (this.options.autoRefresh && this.options.autoRefreshStatus) { + clearInterval(this.options.autoRefreshFunction) + } + + super.destroy() + } + + setupRefreshInterval () { + this.options.autoRefreshFunction = setInterval(() => { + if (!this.options.autoRefresh || !this.options.autoRefreshStatus) { + return + } + this.refresh({ silent: this.options.autoRefreshSilent }) + }, this.options.autoRefreshInterval * 1000) + } +} diff --git a/alive-admin/target/classes/static/ajax/libs/bootstrap-table/extensions/auto-refresh/bootstrap-table-auto-refresh.min.js b/alive-admin/target/classes/static/ajax/libs/bootstrap-table/extensions/auto-refresh/bootstrap-table-auto-refresh.min.js new file mode 100644 index 0000000..2b72af7 --- /dev/null +++ b/alive-admin/target/classes/static/ajax/libs/bootstrap-table/extensions/auto-refresh/bootstrap-table-auto-refresh.min.js @@ -0,0 +1,10 @@ +/** + * bootstrap-table - An extended table to integration with some of the most widely used CSS frameworks. (Supports Bootstrap, Semantic UI, Bulma, Material Design, Foundation) + * + * @version v1.17.1 + * @homepage https://bootstrap-table.com + * @author wenzhixin (http://wenzhixin.net.cn/) + * @license MIT + */ + +!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],e):e((t=t||self).jQuery)}(this,(function(t){"use strict";t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t;var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(t,e){return t(e={exports:{}},e.exports),e.exports}var r=function(t){return t&&t.Math==Math&&t},o=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof e&&e)||Function("return this")(),i=function(t){try{return!!t()}catch(t){return!0}},u=!i((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})),c={}.propertyIsEnumerable,f=Object.getOwnPropertyDescriptor,a={f:f&&!c.call({1:2},1)?function(t){var e=f(this,t);return!!e&&e.enumerable}:c},s=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},l={}.toString,p=function(t){return l.call(t).slice(8,-1)},h="".split,y=i((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==p(t)?h.call(t,""):Object(t)}:Object,d=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},b=function(t){return y(d(t))},v=function(t){return"object"==typeof t?null!==t:"function"==typeof t},g=function(t,e){if(!v(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!v(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!v(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!v(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")},m={}.hasOwnProperty,w=function(t,e){return m.call(t,e)},O=o.document,j=v(O)&&v(O.createElement),S=function(t){return j?O.createElement(t):{}},R=!u&&!i((function(){return 7!=Object.defineProperty(S("div"),"a",{get:function(){return 7}}).a})),T=Object.getOwnPropertyDescriptor,P={f:u?T:function(t,e){if(t=b(t),e=g(e,!0),R)try{return T(t,e)}catch(t){}if(w(t,e))return s(!a.f.call(t,e),t[e])}},x=function(t){if(!v(t))throw TypeError(String(t)+" is not an object");return t},A=Object.defineProperty,E={f:u?A:function(t,e,n){if(x(t),e=g(e,!0),x(n),R)try{return A(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},_=u?function(t,e,n){return E.f(t,e,s(1,n))}:function(t,e,n){return t[e]=n,t},I=function(t,e){try{_(o,t,e)}catch(n){o[t]=e}return e},k=o["__core-js_shared__"]||I("__core-js_shared__",{}),M=Function.toString;"function"!=typeof k.inspectSource&&(k.inspectSource=function(t){return M.call(t)});var F,C,B,L=k.inspectSource,N=o.WeakMap,q="function"==typeof N&&/native code/.test(L(N)),z=n((function(t){(t.exports=function(t,e){return k[t]||(k[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.0",mode:"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})})),D=0,W=Math.random(),$=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++D+W).toString(36)},G=z("keys"),K=function(t){return G[t]||(G[t]=$(t))},Q={},V=o.WeakMap;if(q){var X=new V,Y=X.get,H=X.has,J=X.set;F=function(t,e){return J.call(X,t,e),e},C=function(t){return Y.call(X,t)||{}},B=function(t){return H.call(X,t)}}else{var U=K("state");Q[U]=!0,F=function(t,e){return _(t,U,e),e},C=function(t){return w(t,U)?t[U]:{}},B=function(t){return w(t,U)}}var Z,tt,et={set:F,get:C,has:B,enforce:function(t){return B(t)?C(t):F(t,{})},getterFor:function(t){return function(e){var n;if(!v(e)||(n=C(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}},nt=n((function(t){var e=et.get,n=et.enforce,r=String(String).split("String");(t.exports=function(t,e,i,u){var c=!!u&&!!u.unsafe,f=!!u&&!!u.enumerable,a=!!u&&!!u.noTargetGet;"function"==typeof i&&("string"!=typeof e||w(i,"name")||_(i,"name",e),n(i).source=r.join("string"==typeof e?e:"")),t!==o?(c?!a&&t[e]&&(f=!0):delete t[e],f?t[e]=i:_(t,e,i)):f?t[e]=i:I(e,i)})(Function.prototype,"toString",(function(){return"function"==typeof this&&e(this).source||L(this)}))})),rt=o,ot=function(t){return"function"==typeof t?t:void 0},it=function(t,e){return arguments.length<2?ot(rt[t])||ot(o[t]):rt[t]&&rt[t][e]||o[t]&&o[t][e]},ut=Math.ceil,ct=Math.floor,ft=function(t){return isNaN(t=+t)?0:(t>0?ct:ut)(t)},at=Math.min,st=function(t){return t>0?at(ft(t),9007199254740991):0},lt=Math.max,pt=Math.min,ht=function(t){return function(e,n,r){var o,i=b(e),u=st(i.length),c=function(t,e){var n=ft(t);return n<0?lt(n+e,0):pt(n,e)}(r,u);if(t&&n!=n){for(;u>c;)if((o=i[c++])!=o)return!0}else for(;u>c;c++)if((t||c in i)&&i[c]===n)return t||c||0;return!t&&-1}},yt={includes:ht(!0),indexOf:ht(!1)}.indexOf,dt=function(t,e){var n,r=b(t),o=0,i=[];for(n in r)!w(Q,n)&&w(r,n)&&i.push(n);for(;e.length>o;)w(r,n=e[o++])&&(~yt(i,n)||i.push(n));return i},bt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],vt=bt.concat("length","prototype"),gt={f:Object.getOwnPropertyNames||function(t){return dt(t,vt)}},mt={f:Object.getOwnPropertySymbols},wt=it("Reflect","ownKeys")||function(t){var e=gt.f(x(t)),n=mt.f;return n?e.concat(n(t)):e},Ot=function(t,e){for(var n=wt(e),r=E.f,o=P.f,i=0;i=74)&&(Z=Wt.match(/Chrome\/(\d+)/))&&(tt=Z[1]);var Qt,Vt=tt&&+tt,Xt=qt("species"),Yt=qt("isConcatSpreadable"),Ht=Vt>=51||!i((function(){var t=[];return t[Yt]=!1,t.concat()[0]!==t})),Jt=(Qt="concat",Vt>=51||!i((function(){var t=[];return(t.constructor={})[Xt]=function(){return{foo:1}},1!==t[Qt](Boolean).foo}))),Ut=function(t){if(!v(t))return!1;var e=t[Yt];return void 0!==e?!!e:It(t)};_t({target:"Array",proto:!0,forced:!Ht||!Jt},{concat:function(t){var e,n,r,o,i,u=kt(this),c=Dt(u,0),f=0;for(e=-1,r=arguments.length;e9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n=9007199254740991)throw TypeError("Maximum allowed index exceeded");Mt(c,f++,i)}return c.length=f,c}});var Zt,te=function(t,e,n){if(function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function")}(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}},ee=[].push,ne=function(t){var e=1==t,n=2==t,r=3==t,o=4==t,i=6==t,u=5==t||i;return function(c,f,a,s){for(var l,p,h=kt(c),d=y(h),b=te(f,a,3),v=st(d.length),g=0,m=s||Dt,w=e?m(c,v):n?m(c,0):void 0;v>g;g++)if((u||g in d)&&(p=b(l=d[g],g,h),t))if(e)w[g]=p;else if(p)switch(t){case 3:return!0;case 5:return l;case 6:return g;case 2:ee.call(w,l)}else if(o)return!1;return i?-1:r||o?o:w}},re={forEach:ne(0),map:ne(1),filter:ne(2),some:ne(3),every:ne(4),find:ne(5),findIndex:ne(6)},oe=Object.keys||function(t){return dt(t,bt)},ie=u?Object.defineProperties:function(t,e){x(t);for(var n,r=oe(e),o=r.length,i=0;o>i;)E.f(t,n=r[i++],e[n]);return t},ue=it("document","documentElement"),ce=K("IE_PROTO"),fe=function(){},ae=function(t){return" + + +
                                                                                                                                                                                                                                                                                                          + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          + + +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                          • setting 配置详解
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                            • zTree 方法详解
                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                              • treeNode 节点数据详解
                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                + + + +
                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                + + + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/API_en.html b/alive-admin/target/classes/static/ztree/api/API_en.html new file mode 100644 index 0000000..e2a992f --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/API_en.html @@ -0,0 +1,102 @@ + + + + + API Document [zTree -- jQuery tree plug-ins.] + + + + + +
                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                • setting details
                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                  • zTree method details
                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                    • treeNode data details
                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      + + +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      + + + +
                                                                                                                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      + + + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/apiCss/api.js b/alive-admin/target/classes/static/ztree/api/apiCss/api.js new file mode 100644 index 0000000..bdfe22f --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/apiCss/api.js @@ -0,0 +1,589 @@ +var apiContent = { + zTree_Setting: null, + zTree_Node: null, + zTree_Function: null, + overlayDiv : null, + overlayContent : null, + overlayDetailDiv : null, + overlayCloseBtn: null, + overlayArrow: null, + contentBoxDiv : null, + settingDiv : null, + functionDiv : null, + overlaySearch: null, + searchKey: null, + searchResultInput: null, + searchPrevBtn: null, + searchNextBtn: null, + apiCache: {}, + lastValue: "", + searchNodes: [], + searchNodesCur: 0, + + _init: function() { + this.overlayDiv = $("#overlayDiv"); + this.overlayContent = $("#overlayContent"); + this.overlayDetailDiv = $("#overlayDetailDiv"); + this.overlayCloseBtn = $("#overlayDivCloseBtn"); + this.overlayArrow = $("#overlayDivArrow"); + this.contentBoxDiv = $("#contentBox"); + this.settingDiv = $("#api_setting"); + this.functionDiv = $("#api_function"); + this.searchKey = $(".searchKey"); + this.overlaySearch = $(".overlaySearch"); + this.searchResultInput = $(".searchResult"); + this.searchPrevBtn = $(".searchPrev"); + this.searchNextBtn = $(".searchNext"); + var setting = { + view: { + fontCss: this.getFontCss, + showLine: false, + showIcon: this.showIcon, + showTitle: this.getTitle, + selectedMulti: false, + dblClickExpand: false + }, + data: { + key: { + title: "tt" + }, + simpleData: { + enable:true, + idKey: "id", + pIdKey: "pId", + rootPId: "" + } + }, + callback: { + onNodeCreated: this.onNodeCreated, + beforeClick: this.beforeClick + } + } + var setting_nodes =[ + {id:1, pId:0, t: "setting", name:"var setting = {", open:true}, + {id:11, pId:1, t:"treeId", name:"treeId : \"\",", iconSkin:"core", showAPI:true}, + {id:12, pId:1, t:"treeObj", name:"treeObj : null,", iconSkin:"core", showAPI:true}, + {id:121, pId:1, name:""}, + + {id:20, pId:1, t:"async", name:"async : {", open:true}, + {id:201, pId:20, t:"autoParam", name:"autoParam : [],", iconSkin:"core", showAPI:true}, + {id:208, pId:20, t:"contentType", name:"contentType : \"application...\",", iconSkin:"core", showAPI:true}, + {id:202, pId:20, t:"dataFilter", name:"dataFilter : null,", iconSkin:"core", showAPI:true}, + {id:203, pId:20, t:"dataType", name:"dataType : \"text\",", iconSkin:"core", showAPI:true}, + {id:204, pId:20, t:"enable", name:"enable : false,", iconSkin:"core", showAPI:true}, + {id:205, pId:20, t:"otherParam", name:"otherParam : [],", iconSkin:"core", showAPI:true}, + {id:206, pId:20, t:"type", name:"type : \"post\",", iconSkin:"core", showAPI:true}, + {id:207, pId:20, t:"url", name:"url : \"\"", iconSkin:"core", showAPI:true}, + {id:21, pId:1, name:"},"}, + {id:22, pId:1, name:""}, + + {id:30, pId:1, t:"callback", name:"callback : {", open:true}, + {id:3001, pId:30, t:"beforeAsync", name:"beforeAsync : null,", iconSkin:"core", showAPI:true}, + {id:3002, pId:30, t:"beforeCheck", name:"beforeCheck : null,", iconSkin:"check", showAPI:true}, + {id:3003, pId:30, t:"beforeClick", name:"beforeClick : null,", iconSkin:"core", showAPI:true}, + {id:3004, pId:30, t:"beforeCollapse", name:"beforeCollapse : null,", iconSkin:"core", showAPI:true}, + {id:3004, pId:30, t:"beforeDblClick", name:"beforeDblClick : null,", iconSkin:"core", showAPI:true}, + {id:3005, pId:30, t:"beforeDrag", name:"beforeDrag : null,", iconSkin:"edit", showAPI:true}, + {id:3006, pId:30, t:"beforeDragOpen", name:"beforeDragOpen : null,", iconSkin:"edit", showAPI:true}, + {id:3007, pId:30, t:"beforeDrop", name:"beforeDrop : null,", iconSkin:"edit", showAPI:true}, + {id:3029, pId:30, t:"beforeEditName", name:"beforeEditName : null,", iconSkin:"edit", showAPI:true}, + {id:3008, pId:30, t:"beforeExpand", name:"beforeExpand : null,", iconSkin:"core", showAPI:true}, + {id:3009, pId:30, t:"beforeMouseDown", name:"beforeMouseDown : null,", iconSkin:"core", showAPI:true}, + {id:3010, pId:30, t:"beforeMouseUp", name:"beforeMouseUp : null,", iconSkin:"core", showAPI:true}, + {id:3011, pId:30, t:"beforeRemove", name:"beforeRemove : null,", iconSkin:"edit", showAPI:true}, + {id:3012, pId:30, t:"beforeRename", name:"beforeRename : null,", iconSkin:"edit", showAPI:true}, + {id:3013, pId:30, t:"beforeRightClick", name:"beforeRightClick : null,", iconSkin:"core", showAPI:true}, + {id:3014, pId:30, name:""}, + {id:3015, pId:30, t:"onAsyncError", name:"onAsyncError : null,", iconSkin:"core", showAPI:true}, + {id:3016, pId:30, t:"onAsyncSuccess", name:"onAsyncSuccess : null,", iconSkin:"core", showAPI:true}, + {id:3017, pId:30, t:"onCheck", name:"onCheck : null,", iconSkin:"check", showAPI:true}, + {id:3018, pId:30, t:"onClick", name:"onClick : null,", iconSkin:"core", showAPI:true}, + {id:3019, pId:30, t:"onCollapse", name:"onCollapse : null,", iconSkin:"core", showAPI:true}, + {id:3019, pId:30, t:"onDblClick", name:"onDblClick : null,", iconSkin:"core", showAPI:true}, + {id:3020, pId:30, t:"onDrag", name:"onDrag : null,", iconSkin:"edit", showAPI:true}, + {id:3021, pId:30, t:"onDrop", name:"onDrop : null,", iconSkin:"edit", showAPI:true}, + {id:3022, pId:30, t:"onExpand", name:"onExpand : null,", iconSkin:"core", showAPI:true}, + {id:3023, pId:30, t:"onMouseDown", name:"onMouseDown : null,", iconSkin:"core", showAPI:true}, + {id:3024, pId:30, t:"onMouseUp", name:"onMouseUp : null,", iconSkin:"core", showAPI:true}, + {id:3025, pId:30, t:"onNodeCreated", name:"onNodeCreated : null,", iconSkin:"core", showAPI:true}, + {id:3026, pId:30, t:"onRemove", name:"onRemove : null,", iconSkin:"edit", showAPI:true}, + {id:3027, pId:30, t:"onRename", name:"onRename : null,", iconSkin:"edit", showAPI:true}, + {id:3028, pId:30, t:"onRightClick", name:"onRightClick : null", iconSkin:"core", showAPI:true}, + {id:31, pId:1, name:"},"}, + {id:32, pId:1, name:""}, + + {id:40, pId:1, t:"check", name:"check : {", open:true}, + {id:405, pId:40, t:"autoCheckTrigger", name:"autoCheckTrigger : false,", iconSkin:"check", showAPI:true}, + {id:401, pId:40, t:"chkboxType", name:"chkboxType : {\"Y\": \"ps\", \"N\": \"ps\"},", iconSkin:"check", showAPI:true}, + {id:402, pId:40, t:"chkStyle", name:"chkStyle : \"checkbox\",", iconSkin:"check", showAPI:true}, + {id:403, pId:40, t:"enable", name:"enable : false,", iconSkin:"check", showAPI:true}, + {id:406, pId:40, t:"nocheckInherit", name:"nocheckInherit : false", iconSkin:"check", showAPI:true}, + {id:404, pId:40, t:"radioType", name:"radioType : \"level\"", iconSkin:"check", showAPI:true}, + {id:41, pId:1, name:"},"}, + {id:42, pId:1, name:""}, + + {id:50, pId:1, t:"data", name:"data : {", open:true}, + {id:500, pId:50, t:"keep", name:"keep : {", open:true}, + {id:5001, pId:500, t:"leaf", name:"leaf : false,", iconSkin:"core", showAPI:true}, + {id:5002, pId:500, t:"parent", name:"parent : false", iconSkin:"core", showAPI:true}, + {id:501, pId:50, name:"},"}, + + {id:510, pId:50, t:"key", name:"key : {", open:true}, + {id:5101, pId:510, t:"checked", name:"checked : \"checked\",", iconSkin:"check", showAPI:true}, + {id:5102, pId:510, t:"children", name:"children : \"children\",", iconSkin:"core", showAPI:true}, + {id:5103, pId:510, t:"name", name:"name : \"name\",", iconSkin:"core", showAPI:true}, + {id:5104, pId:510, t:"title", name:"title : \"\"", iconSkin:"core", showAPI:true}, + {id:5105, pId:510, t:"url", name:"url : \"url\"", iconSkin:"core", showAPI:true}, + {id:511, pId:50, name:"},"}, + + {id:520, pId:50, t:"simpleData", name:"simpleData : {", open:true}, + {id:5201, pId:520, t:"enable", name:"enable : false,", iconSkin:"core", showAPI:true}, + {id:5202, pId:520, t:"idKey", name:"idKey : \"id\",", iconSkin:"core", showAPI:true}, + {id:5203, pId:520, t:"pIdKey", name:"pIdKey : \"pId\",", iconSkin:"core", showAPI:true}, + {id:5204, pId:520, t:"rootPId", name:"rootPId : null", iconSkin:"core", showAPI:true}, + {id:521, pId:50, name:"}"}, + {id:51, pId:1, name:"},"}, + {id:52, pId:1, name:""}, + + {id:60, pId:1, t:"edit", name:"edit : {", open:true}, + {id:601, pId:60, t:"drag", name:"drag : {", open:true}, + {id:60111, pId:601, t:"autoExpandTrigger", name:"autoExpandTrigger : true,", iconSkin:"edit", showAPI:true}, + {id:60101, pId:601, t:"isCopy", name:"isCopy : true,", iconSkin:"edit", showAPI:true}, + {id:60102, pId:601, t:"isMove", name:"isMove : true,", iconSkin:"edit", showAPI:true}, + {id:60103, pId:601, t:"prev", name:"prev : true,", iconSkin:"edit", showAPI:true}, + {id:60104, pId:601, t:"next", name:"next : true,", iconSkin:"edit", showAPI:true}, + {id:60105, pId:601, t:"inner", name:"inner : true,", iconSkin:"edit", showAPI:true}, + {id:60107, pId:601, t:"borderMax", name:"borderMax : 10,", iconSkin:"edit", showAPI:true}, + {id:60108, pId:601, t:"borderMin", name:"borderMin : -5,", iconSkin:"edit", showAPI:true}, + {id:60106, pId:601, t:"minMoveSize", name:"minMoveSize : 5,", iconSkin:"edit", showAPI:true}, + {id:60109, pId:601, t:"maxShowNodeNum", name:"maxShowNodeNum : 5,", iconSkin:"edit", showAPI:true}, + {id:60110, pId:601, t:"autoOpenTime", name:"autoOpenTime : 500", iconSkin:"edit", showAPI:true}, + {id:602, pId:60, name:"},"}, + {id:608, pId:60, t:"editNameSelectAll", name:"editNameSelectAll : false,", iconSkin:"edit", showAPI:true}, + {id:603, pId:60, t:"enable", name:"enable : false,", iconSkin:"edit", showAPI:true}, + {id:604, pId:60, t:"removeTitle", name:"removeTitle : \"remove\",", iconSkin:"edit", showAPI:true}, + {id:605, pId:60, t:"renameTitle", name:"renameTitle : \"rename\",", iconSkin:"edit", showAPI:true}, + {id:606, pId:60, t:"showRemoveBtn", name:"showRemoveBtn : true,", iconSkin:"edit", showAPI:true}, + {id:607, pId:60, t:"showRenameBtn", name:"showRenameBtn : true", iconSkin:"edit", showAPI:true}, + {id:61, pId:1, name:"},"}, + {id:62, pId:1, name:""}, + + {id:70, pId:1, t:"view", name:"view : {", open:true}, + {id:7001, pId:70, t:"addDiyDom", name:"addDiyDom : null,", iconSkin:"core", showAPI:true}, + {id:7002, pId:70, t:"addHoverDom", name:"addHoverDom : null,", iconSkin:"edit", showAPI:true}, + {id:7003, pId:70, t:"autoCancelSelected", name:"autoCancelSelected : true,", iconSkin:"core", showAPI:true}, + {id:7004, pId:70, t:"dblClickExpand", name:"dblClickExpand : true,", iconSkin:"core", showAPI:true}, + {id:7005, pId:70, t:"expandSpeed", name:"expandSpeed : \"fast\",", iconSkin:"core", showAPI:true}, + {id:7006, pId:70, t:"fontCss", name:"fontCss : {},", iconSkin:"core", showAPI:true}, + {id:7012, pId:70, t:"nameIsHTML", name:"nameIsHTML : false,", iconSkin:"core", showAPI:true}, + {id:7007, pId:70, t:"removeHoverDom", name:"removeHoverDom : null,", iconSkin:"edit", showAPI:true}, + {id:7008, pId:70, t:"selectedMulti", name:"selectedMulti : true,", iconSkin:"core", showAPI:true}, + {id:7009, pId:70, t:"showIcon", name:"showIcon : true,", iconSkin:"core", showAPI:true}, + {id:7010, pId:70, t:"showLine", name:"showLine : true,", iconSkin:"core", showAPI:true}, + {id:7011, pId:70, t:"showTitle", name:"showTitle : true", iconSkin:"core", showAPI:true}, + {id:71, pId:1, name:"}"}, + + {id:2, pId:0, name:"}"} + ]; + + var treenode_nodes =[ + {id:1, pId:0, t:"treeNode", name:"treeNode : {", open:true}, + {id:101, pId:1, t:"checked", name:"checked", iconSkin:"check", showAPI:true}, + {id:102, pId:1, t:"children", name:"children", iconSkin:"core", showAPI:true}, + {id:128, pId:1, t:"chkDisabled", name:"chkDisabled", iconSkin:"check", showAPI:true}, + {id:127, pId:1, t:"click", name:"click", iconSkin:"core", showAPI:true}, + {id:103, pId:1, t:"getCheckStatus", name:"getCheckStatus ()", iconSkin:"check", showAPI:true}, + {id:104, pId:1, t:"getNextNode", name:"getNextNode ()", iconSkin:"core", showAPI:true}, + {id:105, pId:1, t:"getParentNode", name:"getParentNode ()", iconSkin:"core", showAPI:true}, + {id:106, pId:1, t:"getPreNode", name:"getPreNode ()", iconSkin:"core", showAPI:true}, + {id:129, pId:1, t:"halfCheck", name:"halfCheck", iconSkin:"check", showAPI:true}, + {id:107, pId:1, t:"icon", name:"icon", iconSkin:"core", showAPI:true}, + {id:108, pId:1, t:"iconClose", name:"iconClose", iconSkin:"core", showAPI:true}, + {id:109, pId:1, t:"iconOpen", name:"iconOpen", iconSkin:"core", showAPI:true}, + {id:110, pId:1, t:"iconSkin", name:"iconSkin", iconSkin:"core", showAPI:true}, + {id:131, pId:1, t:"isHidden", name:"isHidden", iconSkin:"hide", showAPI:true}, + {id:111, pId:1, t:"isParent", name:"isParent", iconSkin:"core", showAPI:true}, + {id:132, pId:1, t:"name", name:"name", iconSkin:"core", showAPI:true}, + {id:112, pId:1, t:"nocheck", name:"nocheck", iconSkin:"check", showAPI:true}, + {id:113, pId:1, t:"open", name:"open", iconSkin:"core", showAPI:true}, + {id:133, pId:1, t:"target", name:"target", iconSkin:"core", showAPI:true}, + {id:134, pId:1, t:"url", name:"url", iconSkin:"core", showAPI:true}, + {id:114, pId:1, t:"diy", name:"*DIY*", iconSkin:"core", showAPI:true}, + {id:115, pId:1, name:""}, + {id:116, pId:1, t:"check_Child_State", name:"[check_Child_State]", iconSkin:"check", showAPI:true}, + {id:117, pId:1, t:"check_Focus", name:"[check_Focus]", iconSkin:"check", showAPI:true}, + {id:118, pId:1, t:"checkedOld", name:"[checkedOld]", iconSkin:"check", showAPI:true}, + {id:119, pId:1, t:"editNameFlag", name:"[editNameFlag]", iconSkin:"edit", showAPI:true}, + {id:120, pId:1, t:"isAjaxing", name:"[isAjaxing]", iconSkin:"core", showAPI:true}, + {id:121, pId:1, t:"isFirstNode", name:"[isFirstNode]", iconSkin:"core", showAPI:true}, + {id:122, pId:1, t:"isHover", name:"[isHover]", iconSkin:"edit", showAPI:true}, + {id:123, pId:1, t:"isLastNode", name:"[isLastNode]", iconSkin:"core", showAPI:true}, + {id:124, pId:1, t:"level", name:"[level]", iconSkin:"core", showAPI:true}, + {id:125, pId:1, t:"parentTId", name:"[parentTId]", iconSkin:"core", showAPI:true}, + {id:126, pId:1, t:"tId", name:"[tId]", iconSkin:"core", showAPI:true}, + {id:130, pId:1, t:"zAsync", name:"[zAsync]", iconSkin:"core", showAPI:true}, + {id:2, pId:0, name:"}"} + ]; + + var function_nodes =[ + {id:1, pId:0, t:"$.fn.zTree", name:"$.fn.zTree : {", open:true}, + {id:11, pId:1, t:"init", name:"init (obj, zSetting, zNodes)", iconSkin:"core", showAPI:true}, + {id:12, pId:1, t:"getZTreeObj", name:"getZTreeObj (treeId)", iconSkin:"core", showAPI:true}, + {id:14, pId:1, t:"destroy", name:"destroy (treeId)", iconSkin:"core", showAPI:true}, + {id:13, pId:1, t:"_z", name:"_z : {tools, view, event, data}", iconSkin:"core", showAPI:true}, + {id:2, pId:0, name:"}"}, + {id:3, pId:0, name:""}, + {id:4, pId:0, t:"zTreeObj", name:"zTreeObj : {", open:true}, + {id:401, pId:4, t:"setting", name:"setting", iconSkin:"core", showAPI:true}, + {id:402, pId:4, t:"addNodes", name:"addNodes (parentNode, newNodes, isSilent)", iconSkin:"core", showAPI:true}, + {id:403, pId:4, t:"cancelEditName", name:"cancelEditName (newName)", iconSkin:"edit", showAPI:true}, + {id:404, pId:4, t:"cancelSelectedNode", name:"cancelSelectedNode (node)", iconSkin:"core", showAPI:true}, + {id:405, pId:4, t:"checkAllNodes", name:"checkAllNodes (checked)", iconSkin:"check", showAPI:true}, + {id:406, pId:4, t:"checkNode", name:"checkNode (node, checked, checkTypeFlag, callbackFlag)", iconSkin:"check", showAPI:true}, + {id:407, pId:4, t:"copyNode", name:"copyNode (targetNode, node, moveType, isSilent)", iconSkin:"edit", showAPI:true}, + {id:436, pId:4, t:"destroy", name:"destroy ()", iconSkin:"core", showAPI:true}, + {id:408, pId:4, t:"editName", name:"editName (node)", iconSkin:"edit", showAPI:true}, + {id:409, pId:4, t:"expandAll", name:"expandAll (expandFlag)", iconSkin:"core", showAPI:true}, + {id:410, pId:4, t:"expandNode", name:"expandNode (node, expandFlag, sonSign, focus, callbackFlag)", iconSkin:"core", showAPI:true}, + {id:411, pId:4, t:"getChangeCheckedNodes", name:"getChangeCheckedNodes ()", iconSkin:"check", showAPI:true}, + {id:412, pId:4, t:"getCheckedNodes", name:"getCheckedNodes (checked)", iconSkin:"check", showAPI:true}, + {id:413, pId:4, t:"getNodeByParam", name:"getNodeByParam (key, value, parentNode)", iconSkin:"core", showAPI:true}, + {id:414, pId:4, t:"getNodeByTId", name:"getNodeByTId (tId)", iconSkin:"core", showAPI:true}, + {id:415, pId:4, t:"getNodeIndex", name:"getNodeIndex (node)", iconSkin:"core", showAPI:true}, + {id:416, pId:4, t:"getNodes", name:"getNodes ()", iconSkin:"core", showAPI:true}, + {id:431, pId:4, t:"getNodesByFilter", name:"getNodesByFilter (filter, isSingle, parentNode, invokeParam)", iconSkin:"core", showAPI:true}, + {id:417, pId:4, t:"getNodesByParam", name:"getNodesByParam (key, value, parentNode)", iconSkin:"core", showAPI:true}, + {id:418, pId:4, t:"getNodesByParamFuzzy", name:"getNodesByParamFuzzy (key, value, parentNode)", iconSkin:"core", showAPI:true}, + {id:419, pId:4, t:"getSelectedNodes", name:"getSelectedNodes ()", iconSkin:"core", showAPI:true}, + {id:432, pId:4, t:"hideNode", name:"hideNode (node)", iconSkin:"hide", showAPI:true}, + {id:433, pId:4, t:"hideNodes", name:"hideNodes (nodes)", iconSkin:"hide", showAPI:true}, + {id:420, pId:4, t:"moveNode", name:"moveNode (targetNode, node, moveType, isSilent)", iconSkin:"edit", showAPI:true}, + {id:421, pId:4, t:"reAsyncChildNodes", name:"reAsyncChildNodes (parentNode, reloadType, isSilent)", iconSkin:"core", showAPI:true}, + {id:422, pId:4, t:"refresh", name:"refresh ()", iconSkin:"core", showAPI:true}, + {id:423, pId:4, t:"removeChildNodes", name:"removeChildNodes (parentNode)", iconSkin:"core", showAPI:true}, + {id:424, pId:4, t:"removeNode", name:"removeNode (node, callbackFlag)", iconSkin:"core", showAPI:true}, + {id:425, pId:4, t:"selectNode", name:"selectNode (node, addFlag)", iconSkin:"core", showAPI:true}, + {id:430, pId:4, t:"setChkDisabled", name:"setChkDisabled (node, disabled)", iconSkin:"check", showAPI:true}, + {id:426, pId:4, t:"setEditable", name:"setEditable (editable)", iconSkin:"edit", showAPI:true}, + {id:434, pId:4, t:"showNode", name:"showNode (node)", iconSkin:"hide", showAPI:true}, + {id:435, pId:4, t:"showNodes", name:"showNodes (nodes)", iconSkin:"hide", showAPI:true}, + {id:427, pId:4, t:"transformToArray", name:"transformToArray (nodes)", iconSkin:"core", showAPI:true}, + {id:428, pId:4, t:"transformTozTreeNodes", name:"transformTozTreeNodes (simpleNodes)", iconSkin:"core", showAPI:true}, + {id:429, pId:4, t:"updateNode", name:"updateNode (node, checkTypeFlag)", iconSkin:"core", showAPI:true}, + {id:5, pId:0, name:"}"} + ]; + + apiContent.zTree_Setting = $.fn.zTree.init($("#settingTree"), $.fn.zTree._z.tools.clone(setting), setting_nodes); + apiContent.zTree_Node = $.fn.zTree.init($("#treenodeTree"), $.fn.zTree._z.tools.clone(setting), treenode_nodes); + apiContent.zTree_Function = $.fn.zTree.init($("#functionTree"), $.fn.zTree._z.tools.clone(setting), function_nodes); + this.bindEvent(); + + }, + bindEvent: function() { + $(document).bind("keydown", this.listenKeyDown) + this.overlayCloseBtn.bind("click", apiContent.overlayClose); + this.searchResultInput.bind("click", function(e) { + $(this).prev().get(0).focus(); + this.blur(); + }).bind("focus", function(e) { + this.blur(); + }); + this.searchKey.bind("focus", this.focusKey) + .bind("blur", this.blurKey) + .bind("propertychange", this.searchNode) + .bind("input", this.searchNode); + this.searchPrevBtn.bind("click", this.searchPrev); + this.searchNextBtn.bind("click", this.searchNext); + }, + setSameKey: function(value) { + apiContent.searchKey.attr("value", value); + }, + focusKey: function(e) { + if (apiContent.searchKey.hasClass("empty")) { + apiContent.searchKey.removeClass("empty"); + } + }, + blurKey: function(e) { + apiContent.setSameKey(e.target.value); + if (e.target.value === "") { + apiContent.searchKey.addClass("empty"); + } + }, + listenKeyDown: function(e) { + if (e.keyCode=="13" && apiContent.overlayDiv.is(":hidden")) { + apiContent.openAPI(); + } else if (e.keyCode=="37") { + apiContent.searchPrev(); + } else if (e.keyCode=="13" || e.keyCode=="39") { + apiContent.searchNext(); + } + }, + openAPI: function() { + if (apiContent.searchNodes.length > 0) { + var setting_zTree = $.fn.zTree.getZTreeObj("settingTree"), + treenode_zTree = $.fn.zTree.getZTreeObj("treenodeTree"), + function_zTree = $.fn.zTree.getZTreeObj("functionTree"); + if (apiContent.searchNodesCur < 0 || apiContent.searchNodesCur > apiContent.searchNodes.length -1) { + apiContent.searchNodesCur = 0; + } + var node = apiContent.searchNodes[apiContent.searchNodesCur]; + + if (node.tId.indexOf("setting") > -1) { + setting_zTree.selectNode(node); + } else if (node.tId.indexOf("treenode") > -1) { + treenode_zTree.selectNode(node); + } else { + function_zTree.selectNode(node); + } + apiContent.beforeClick(node.tId.substring(0, node.tId.indexOf("_")), node, true); + apiContent.searchCur(); + } + }, + searchNode: function(e) { + var setting_zTree = $.fn.zTree.getZTreeObj("settingTree"), + treenode_zTree = $.fn.zTree.getZTreeObj("treenodeTree"), + function_zTree = $.fn.zTree.getZTreeObj("functionTree"); + if (apiContent.curKey == e.target.value) return; + apiContent.curKey = e.target.value; + var value = $.trim(apiContent.curKey); + apiContent.setSameKey(apiContent.curKey); + if (apiContent.searchKey.hasClass("empty")) { + value = ""; + apiContent.searchResultInput.removeClass("noResult").attr("value",""); + } + if (apiContent.lastValue === value) return; + + apiContent.updateNodes(false); + apiContent.lastValue = value; + if (value === "" || value.length < 2) { + apiContent.searchNodes = []; + apiContent.searchNodesCur = -1; + apiContent.searchCur(true); + return; + } + + var settingNodeList = setting_zTree.getNodesByFilter(apiContent.searchFilter); + var functionNodeList = function_zTree.getNodesByFilter(apiContent.searchFilter); + var treenodeNodeList = treenode_zTree.getNodesByFilter(apiContent.searchFilter); + apiContent.searchNodes = settingNodeList.concat(functionNodeList).concat(treenodeNodeList); + apiContent.searchNodesCur = -1; + apiContent.searchCur(); + apiContent.updateNodes(true); + }, + searchFilter: function(node) { + var value = $.trim(apiContent.searchKey.get(0).value).toLowerCase(); + return (node.showAPI && node.name.toLowerCase().indexOf(value) > -1); + }, + searchPrev: function(e) { + if (apiContent.searchPrevBtn.hasClass("disabled")) return; + apiContent.searchNodesCur--; + if (apiContent.searchNodesCur < 0 || apiContent.searchNodesCur > apiContent.searchNodes.length -1) { + apiContent.searchNodesCur = apiContent.searchNodes.length -1; + } + apiContent.openAPI(); + }, + searchNext: function(e) { + if (apiContent.searchNextBtn.hasClass("disabled")) return; + apiContent.searchNodesCur++; + apiContent.openAPI(); + }, + searchCur: function(init) { + var result = apiContent.searchNodes; + if (init) { + apiContent.searchResultInput.removeClass("noResult").attr("value",""); + } else if (result.length == 0) { + apiContent.searchResultInput.addClass("noResult").attr("value"," [ 0 / 0 ] "); + } else { + apiContent.searchResultInput.removeClass("noResult").attr("value"," [ " + (apiContent.searchNodesCur > -1 ? apiContent.searchNodesCur+1 : "?")+ " / " + result.length + " ] "); + } + if (result.length > 0) { + apiContent.searchPrevBtn.removeClass("disabled"); + apiContent.searchNextBtn.removeClass("disabled"); + } else { + apiContent.searchPrevBtn.addClass("disabled"); + apiContent.searchNextBtn.addClass("disabled"); + } + }, + updateNodes: function(highlight) { + var setting_zTree = $.fn.zTree.getZTreeObj("settingTree"), + treenode_zTree = $.fn.zTree.getZTreeObj("treenodeTree"), + function_zTree = $.fn.zTree.getZTreeObj("functionTree"), + node = null; + for( var i=0, l=apiContent.searchNodes.length; i 0) { + node.highlight = highlight; + if (node.tId.indexOf("setting") > -1) { + setting_zTree.updateNode(node); + } else if (node.tId.indexOf("treenode") > -1) { + treenode_zTree.updateNode(node); + } else { + function_zTree.updateNode(node); + } + } + } + }, + getFontCss: function(treeId, treeNode) { + return (!!treeNode.highlight) ? {color:"#A60000", "font-weight":"bold"} : {color:"#333", "font-weight":"normal"}; + }, + getTitle: function(treeId, node) { + var t = [], n = node; + while (n && !!n.t) { + t.push(n.t); + n = n.getParentNode(); + } + t = t.reverse(); + node.tt = t.join('.'); + return true; + }, + showIcon: function(treeId, node) { + return (!!node.iconSkin); + }, + onNodeCreated: function (e, treeId, node) { + var a = $("#" + node.tId + "_a"); + if (node.showAPI) { + a.attr("rel", "#overlayDiv"); + } else { + a.css({cursor: "default"}); + } + }, + beforeClick: function (treeId, node, noClear) { + if (!node.showAPI) return false; + var o = $("#" + node.tId + "_a"); + if (!!apiContent.apiCache[node.tId]) { + apiContent.tmpDiv.html(apiContent.apiCache[node.tId]); + apiContent.overlayShow(o, (apiContent.lastNode === node)); + } else { + apiContent.overlayAjax(treeId, node); + } + apiContent.lastNode = node; + if (node.tId.indexOf("settingTree")>-1) { + apiContent.settingDiv.removeClass("right").addClass("left"); + apiContent.functionDiv.removeClass("left").addClass("right"); + } else { + apiContent.settingDiv.removeClass("left").addClass("right"); + apiContent.functionDiv.removeClass("right").addClass("left"); + } + + if (!noClear) { + apiContent.clearSelectedNode(); + } + return true; + }, + clearSelectedNode: function() { + apiContent.zTree_Setting.cancelSelectedNode(); + apiContent.zTree_Node.cancelSelectedNode(); + apiContent.zTree_Function.cancelSelectedNode(); + }, + overlayAutoClose: function(e) { + var eId = e.target.id, eRel = e.target.getAttribute("rel"), eClass = e.target.className; + if (eId === "overlayDiv" || eId === "overlayDivArrow" || eClass.indexOf("searchPrev") > -1 || eClass.indexOf("searchNext") > -1 || !!eRel) return; + if (!$(e.target).parents("[rel]").length && !$(e.target).parents("#overlayDiv").length) { + apiContent.overlayClose(); + } + }, + overlayClose: function() { + var o = apiContent.overlayDiv; + o.stop(); + apiContent.clearSelectedNode(); + if (ie) { + o.hide(); + } else { + setTimeout(function() {o.fadeTo("fast", 0, function(){o.hide();})}, 200); + } + $(document).unbind("click", apiContent.overlayAutoClose); + }, + overlayShow: function(target, isSameNode) { + var w = $(window), o = apiContent.overlayDiv, a = apiContent.overlayArrow, + oc = apiContent.overlayContent, c = apiContent.contentBoxDiv, + t = target.offset().top - 30, + cMaxLeft = c.offset().left + c.outerWidth({margin:true}) - o.outerWidth({margin:true}) - 10, + l = Math.min(cMaxLeft, target.offset().left + target.width() + 40), + arrowT = target.offset().top + 16, + wMinTop = 100, footerHeight = 50, onlyFade = false, + wHeight = w.height(), wScrollTop=w.scrollTop(), wMaxTop = wHeight + wScrollTop - footerHeight; + if (!apiContent.overlayMaxTop) { + apiContent.overlayMaxTop = apiContent.contentBoxDiv.offset().top + apiContent.contentBoxDiv.height(); + } + o.stop(); + if (o.css("display") !== "block") { + o.css({top: t, left: l}); + a.css({top:arrowT - t}); + $(document).bind("click", apiContent.overlayAutoClose); + } + if (ie) { + onlyFade = true; + o.show(); + } else { + o.fadeTo("fast", 1); + } + + var h = apiContent.tmpDiv.outerHeight({margin:true}) + apiContent.overlaySearch.outerHeight(); + if ((t + h) > wMaxTop) { + t = wMaxTop - h; + } + if ((t + h) > apiContent.overlayMaxTop) { + t = apiContent.overlayMaxTop - h; + } + t = Math.max(t, wScrollTop, wMinTop); + if ((t + h) > ($("body").height()-footerHeight-20)) { + o.css("padding-bottom", footerHeight + "px"); + } else { + o.css("padding-bottom", "0"); + } + apiContent.overlayDetailDiv.empty(); + apiContent.overlayDetailDiv.append(apiContent.tmpDiv.children()); + if (!onlyFade) { + onlyFade = (isSameNode && t === parseInt(o.css("top").replace("px", ""))); + } + + a.removeClass("reverse"); + if ( (arrowT - t) > (h-55) ) { + a.addClass("reverse"); + arrowT -= 55; + } + + if (onlyFade) { + o.css({top: t, left: l}); + oc.css({height: h}); + a.css({top:arrowT - t}); + } else { + o.animate({top: t, left: l}, {duration: "normal",easing: "swing", complete:null}); + oc.animate({height: h}, {duration: "fast",easing: "swing", complete:null}); + a.animate({top:arrowT - t}, {duration: "normal",easing: "linear", complete:null}); + } + }, + overlayAjax: function(treeId, node) { + var o = $("#" + node.tId + "_a"); + if (node.isAjax) return; + node.isAjax = true; + $.ajax({ + type: "get", + url: "" + lang + "/" + node.tt.replace("$.", "") + ".html", + data: null, + dataType: "text", + success: function(msg) { + if (!apiContent.tmpDiv) { + var tmpDiv = $(document.createElement("div")); + tmpDiv.addClass("baby_overlay_tmp"); + $("body").append(tmpDiv) + apiContent.tmpDiv = $(document.createElement("div")); + apiContent.tmpDiv.addClass("details"); + tmpDiv.append(apiContent.tmpDiv); + + } else { + apiContent.tmpDiv.empty(); + } + apiContent.tmpDiv.html(msg); + apiContent.overlayShow(o, false); + apiContent.apiCache[node.tId] = msg; + node.isAjax = false; + }, + error: function(XMLHttpRequest, textStatus, errorThrown) { + alert(ajaxMsg) + if (apiContent.tmpDiv) apiContent.tmpDiv.empty(); + node.isAjax = false; + } + }); + } +} \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/apiCss/common.css b/alive-admin/target/classes/static/ztree/api/apiCss/common.css new file mode 100644 index 0000000..358edf8 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/apiCss/common.css @@ -0,0 +1,219 @@ +/* Resets */ +html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td { + margin: 0;padding: 0;border: 0;outline: 0;font-weight: inherit;font-style: inherit;font-size: 100%;font-family: inherit;vertical-align: baseline;} +:focus {outline: 0;} +body {color: #2f332a;font: 15px/21px Arial, Helvetica, simsun, sans-serif;background: #528036 url(img/background.jpg) no-repeat fixed 0 0;} +p {padding-bottom: 20px;} +ol, ul {list-style: none;} +table {border-collapse: separate;border-spacing: 0;} +caption, th, td {text-align: left;font-weight: normal;} +strong {font-weight: bold;} +em {font-style: italic;} +hr {display: none;} +.font1 {color: white;background-color: #528036;} +.right {float: right;} +.left {float: left;} +.hide {display: none;} +.round {-moz-border-radius: 15px;-webkit-border-radius: 15px;-khtml-border-radius: 15px;border-radius: 15px;} +.clear {clear: both;} +.clearfix {display: block;} +.clearfix:after {content: ".";display: block;clear: both;visibility: hidden;line-height: 0;height: 0;} +html[xmlns] .clearfix {display: block;} +* html .clearfix {height: 1%;} + +/* Link Styles */ +a {color: #528036;} +a:link, a:visited {text-decoration: none;} +a:hover {color: #000;text-decoration: none;} +a:active {text-decoration: none;} + +/* Headings */ +h1, h2, h3, h4, h5, h6 {color: #2f332a;font-weight: bold;font-family: Helvetica, Arial, simsun, sans-serif;padding-bottom: 5px;} +h1 {font-size: 36px;line-height: 44px;} +h2 {font-size: 20px;line-height: 20px;} +h3 {font-size: 14px;line-height: 14px;} +h4 {font-size: 14px;font-weight: normal;line-height: 25px;} + +/* Wraps */ +.header_wrap {position: relative;min-width: 940px;padding: 100px 30px 0 30px;} +.content_wrap {position: relative;min-width: 940px;padding: 0 30px 50px 30px;} +.footer_wrap {bottom: 0;height: 47px;width: 100%;background-color: #1b1b1b;border-top: 1px solid #749e58;} + +/* Header */ +.header {position: relative;width: 940px;margin: 0 auto;height: 160px;border: 1px solid white;background: transparent url(img/header-bg.png) repeat-x 0 -50px;} +.header-text {padding: 40px 75px 15px 130px;font-size: 18px;line-height: 24px;color: #747d67;font-family: Helvetica, sans-serif;} +.header-text img {padding-bottom: 5px;} +.shortcuts {white-space: nowrap;text-align: right;position: absolute;top: -45px;right: 5px;} +.shortcuts.language {top: -85px;right:0px;} +.shortcuts li {display: inline;font-size: 18px;line-height: 28px;font-family: Helvetica, Arial, simsun, sans-serif;padding-bottom: 5px;margin-left: 30px;cursor: pointer;} +.shortcuts li button {cursor: pointer;} +.shortcuts li span {border-bottom: 1px dotted white;} +.shortcuts li span.selected {padding: 2px;background-color: #528036;} +.shortcuts li a {color: #fff;} +.ieSuggest {display:none;font-size: 12px;color: silver;position: absolute;left: 10px;top: 2px;} +.google_plus {position: absolute;right: 10px; top:10px;} +.light-bulb {position: absolute;left: -20px;bottom: -35px;width:116px;height:180px;background-image:url(img/lightbulb.png);background-repeat: no-repeat;} + +/* Content */ +.content {position: relative;width: 940px;margin: 0 auto;} +.nav_section {position: relative;height: 20px;font-family: "Myriad Pro", "Trebuchet MS", sans-serif;font-size: 15px;color: #253;padding: 20px 0;} +.nav_section ul {position: absolute;right: 10px;} +.nav_section ul li {display: inline;line-height: 20px;margin: 0 5px 0 20px;border-bottom: 1px dotted white;} +.nav_section ul li.noline {border-bottom: 0;} +.nav_section ul li a {color: #fff;} +.nav_section ul li a.selected {padding: 2px;background-color: #528036;} +.nav_section ul li.first {border: none;} +.content .title {margin: 50px 30px 20px 70px;} +.content li {margin-bottom: 5px;} +.contentBox {position: relative;overflow: hidden;border: 1px solid white;min-height: 200px;line-height: 25px;background: transparent url(img/contact-bg.png) repeat-x 0 0;} + +.zTreeInfo {display:none;width: 940px;position: absolute;} +.zTreeInfo p {padding-bottom: 50px;} +.zTreeInfo-left {float: left;width: 280px;height:300px;padding: 0 50px 60px 75px;background:url(img/zTreeIntroduction.jpg) no-repeat 30px 30px;} +.zTreeInfo-right {position: relative;float: right;width: 475px;padding: 0 50px 60px 0;} +.zTreeInfo-right li {font-size: 12px;list-style-type: disc;} + +.license {display:none;width: 940px;position: absolute;} + +.donateInfo {display:block;width: 940px;position: absolute;} + +.links {display:none;width: 940px;position: absolute;} +.links .content {float: left;width: 160px;height:200px;padding: 0 10px 10px 2px;text-align: center;} +.links .content.first {margin-left: 30px;} + +.contact {display:none;width: 940px;position: absolute;} +.contact .myhome { position: absolute; top:10px; left:620px; width:300px; height:266px; background: transparent url(img/myhome.gif) scroll no-repeat 0 0;} + +.siteTag {position: absolute;left: -16px;top: 109px;z-index: 10;width: 65px;height: 46px;padding:0;margin:0 10px 0 0; + vertical-align:middle;border:0 none;background: transparent url(img/siteTag.png) scroll no-repeat 0 0;} +.siteTag.tag_zTreeInfo {background-position: 0 0} +.siteTag.tag_license {background-position: 0 -46px} +.siteTag.tag_donate {background-position: 0 -92px} +.siteTag.tag_contact {background-position: 0 -138px} + +.apiContent {width: 940px;} +.apiContent .right {float: right;padding-right: 100px;} +.apiContent .left {float: left;padding-right: 20px;border-right: 1px dotted silver;} +.api_setting {position: relative;margin:20px 0 20px 20px;} +.api_function {position: relative;margin:20px 0 20px 30px;padding-right: 10px;} +.api_content_title {text-align: center;font-weight: bold;} + +.demoContent {width: 940px;} +.demoContent .right {float: right;padding: 20px;width: 600px;} +.demoContent .left {float: left;padding: 20px;} +.demoContent iframe {width:600px;min-height: 530px;} + +.faqContent {width: 940px;} +.faqContent .right {float: right;padding: 20px;width: 600px;} +.faqContent .left {float: left;padding: 20px;} +.faqContent iframe {width:600px;min-height: 300px;} + +.baby_overlay_tmp {position: absolute;top:0; left:-5000px;display:block;visibility: hidden;width:640px;font-size:11px;} +.baby_overlay_tmp .details {padding: 20px;} +.baby_overlay {display:none;position:absolute;z-index:99;left:0; top:0;width:640px;color:#fff;font-size:11px;} +.baby_overlay .content {width:100%; height:100px;overflow: hidden;background: transparent url(img/overlay_bg.png) scroll repeat 0 0;} +.baby_overlay .details {padding:0 20px 20px 20px;} +.baby_overlay .close {background-image:url(img/close.png);position:absolute; right:5px; top:5px;cursor:pointer;height:36px;width:36px;} +.baby_overlay_arrow {background-image:url(img/overlay_arrow.png);background-position:0 0;position:absolute;height:40px;width:40px;left: -40px;} +.baby_overlay_arrow.reverse {background-position:0 -40px;} + +/* Footer */ +.footer {position: relative;min-width: 1000px;font: 14px/24px arial, helvetica, sans-serif;} +.footer ul {position:absolute;left: 0px;border:1px solid #393939;background:#262626;padding:12px 0px;line-height: 18px;display: none;list-style: none;} +.footer ul li a {display:block;padding: 2px 15px;color: #9c9c9c;text-indent: 0;} +.footer ul li a:hover {text-decoration:none;color: #fff;} +.footer-logo {position:absolute;margin: 10px 0 0 30px;width:122px; height:24px;top:0; left:0;background: transparent url(img/footer-logo.png) no-repeat 0 0;} +.footer_mii {position: absolute;right: 558px;top: 8px;z-index: 10;padding: 4px 0;} +.footer_mii a {font-size:10px;color:#649140} +.footer_mii a:hover {color:#B6D76F} +.footer_siteMap {position: absolute;right: 358px;top: 8px;width: 155px;z-index: 10;padding: 4px 0;} +.footer_siteMap .footer_siteMap_header {width:155px;text-indent: -9999px;background: transparent url(img/footer_siteMap.gif) no-repeat 0 0;} +.footer_siteMap ul {top:-202px;width:180px;} +.footer_siteMap:hover ul {left: 0} +.footer_contact {position: absolute;right: 193px;top: 8px;width: 155px;z-index: 10;padding: 4px 0;} +.footer_contact .footer_contact_header {width:155px;text-indent: -9999px;background: transparent url(img/footer_contact.gif) no-repeat 0px 0px;} +.footer_contact ul {top:-113px;width:153px;} +.footer_contact:hover ul {left: 0} +.footer_download {position: absolute;right: 60px;top: 8px;width: 123px;z-index: 10;padding: 4px 0;} +.footer_download .footer_download_header {width:123px;text-indent: -9999px;background: transparent url(img/footer_download.png) no-repeat 0px 0px;} +.footer_download ul {top:-113px;width:140px;} +.footer_download:hover ul {left: 0} + +/* button icon */ +button {vertical-align:middle;border:0 none;background: transparent no-repeat 0 0 scroll;} + +.shortcuts button.ico {width:24px; height:24px;padding:0; margin:0 10px 0 0;background-image:url(img/menuIcon.png)} +.shortcuts button.home {background-position: 0 0} +.shortcuts button.demo {background-position: 0 -24px} +.shortcuts button.api {background-position: 0 -48px} +.shortcuts button.faq {background-position: 0 -72px} +.shortcuts button.donate {background-position: 0 -144px} +.shortcuts button.download {background-position: 0 -96px} +.shortcuts button.face {background-position: 0 -120px} +.shortcuts button.cn {width:48px; height:24px;padding:0; margin:0 10px 0 0;background-image:url(img/chinese.png)} +.shortcuts button.en {width:48px; height:24px;padding:0; margin:0 10px 0 0;background-image:url(img/english.png)} + +.content button.ico {width:24px; height:24px;padding:0; margin:0 10px 0 0;} + +.content button.ico16 {width:16px; height:16px;padding:0; margin:0 5px 0 0;background-image:url("img/apiMenu.png");} +button.z_core {margin-top: -4px;background-position:0 0;} +button.z_check {margin-top: -4px;background-position:0 -16px;} +button.z_edit {margin-top: -4px;background-position:0 -32px;} +button.z_hide {margin-top: -4px;background-position:0 -64px;} +button.z_search {margin-top: -4px;background-position:0 -48px;} +button.searchPrev {margin-top: -4px;background-position:-16px 0;cursor:pointer} +button.searchNext {margin-top: -4px;background-position:-16px -16px;cursor:pointer} +button.searchPrev.disabled {margin-top: -4px;background-position:-16px -32px;cursor:auto} +button.searchNext.disabled {margin-top: -4px;background-position:-16px -48px;cursor:auto} +input.search {margin:0;padding:2px 0; border:0;} +input.searchKey {width:150px;} +input.searchResult {margin-left:-3px;width:65px;text-align:right;background-color:white;color:#707070} +input.searchResult.noResult {background-color:#ff6666;color:black} +.baby_overlay div.overlaySearch {text-align:right;padding-right:50px;padding-top:12px;} + +/* api overlay*/ +.apiDetail .topLine {border-top: 1px dashed #376B29;margin-top: 5px;padding-top: 5px;} +.apiDetail .highlight_red {color:#A60000;} +.apiDetail .highlight_green {color:#A7F43D;} +.apiDetail h1, .apiDetail h2, .apiDetail h3, .apiDetail h4, .apiDetail h5, .apiDetail h6 {color: white;padding: 0;} +.apiDetail h2 {color: #A7F43D;margin: 5px auto;padding: 5px;font-size: 20px;} +.apiDetail h2 span {font-size: 14px;float: right;font-weight: normal;margin: 2px 20px 0 0;vertical-align: bottom;} +.apiDetail h2 span.path {float: left;margin: 2px 0 0 0;vertical-align: bottom;} +.apiDetail h3 {margin: 5px auto;padding: 5px;font-size: 14px;font-weight: normal;} +.apiDetail h3 span.h3_info {margin-left: 20px;font-size: 12px;} +.apiDetail h4 {margin: 0 auto;padding: 0 5px;font-size: 12px;font-weight: normal;line-height: 16px;} +.apiDetail .desc h4 {color: black;} +.apiDetail h4 b{width: 150px;display:inline-block;} +.apiDetail h4 span{width: 230px;display:inline-block;} + +.apiDetail pre, .apiDetail .desc {background: #E8FCD6;color: black;margin: 10px;padding: 10px;display: block;} +.apiDetail pre {word-wrap: break-word;} +.apiDetail p{margin-left: 5px;padding: 0;} +.apiDetail .longdesc {margin-top: 5px;} +.apiDetail .longdesc p{font-size: 12px;line-height:1.5;margin:3px 0;} +.apiDetail .longdesc b{font-size: 14px;} +.apiDetail table {border-collapse:collapse;} +.apiDetail table td {border:1px solid silver;text-align: center;vertical-align: middle;} +.apiDetail table thead td {font-weight: bold} + +.apiDetail button {width:16px; height:16px; vertical-align:middle; border:0 none; cursor: pointer; + background-color:transparent; background-repeat:no-repeat; background-attachment: scroll; + background-image:url("zTreeStyle/img/zTreeStandard.png");} + +.apiDetail button.chk {width:13px; height:13px; margin:0 3px 2px 0; cursor: auto} +.apiDetail button.chk.checkbox_false_full {background-position:0 0} +.apiDetail button.chk.checkbox_false_full_focus {background-position:0 -14px} +.apiDetail button.chk.checkbox_false_part {background-position:0 -28px} +.apiDetail button.chk.checkbox_false_part_focus {background-position:0 -42px} +.apiDetail button.chk.checkbox_true_full {background-position:-14px 0} +.apiDetail button.chk.checkbox_true_full_focus {background-position:-14px -14px} +.apiDetail button.chk.checkbox_true_part {background-position:-14px -28px} +.apiDetail button.chk.checkbox_true_part_focus {background-position:-14px -42px} +.apiDetail button.chk.radio_false_full {background-position:-28px 0} +.apiDetail button.chk.radio_false_full_focus {background-position:-28px -14px} +.apiDetail button.chk.radio_false_part {background-position:-28px -28px} +.apiDetail button.chk.radio_false_part_focus {background-position:-28px -42px} +.apiDetail button.chk.radio_true_full {background-position:-42px 0} +.apiDetail button.chk.radio_true_full_focus {background-position:-42px -14px} +.apiDetail button.chk.radio_true_part {background-position:-42px -28px} +.apiDetail button.chk.radio_true_part_focus {background-position:-42px -42px} \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/apiCss/common_ie6.css b/alive-admin/target/classes/static/ztree/api/apiCss/common_ie6.css new file mode 100644 index 0000000..aacaf59 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/apiCss/common_ie6.css @@ -0,0 +1,23 @@ +* html{ +/* background-image:url(about:blank);*/ + background-attachment:fixed; +} +html pre {word-wrap: break-word} +.header {background-image: none;background-color: #F0F6E4;} + +.ieSuggest {display:block;} +.shortcuts button.cn {filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='apiCss/img/chinese.png');background-image: none;} +.shortcuts button.en {filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='apiCss/img/english.png');background-image: none;} + +.light-bulb {filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='apiCss/img/lightbulb.png');background-image: none;} +.contentBox {background-image: none;background-color: #F0F6E4;} +.zTreeInfo {background-image: none;background-color: #F0F6E4;} + +.content button.ico16 {*background-image:url("img/apiMenu.gif")} +.siteTag {background-image: none;} +.apiContent .right {float: right;padding-right: 50px;} + +div.baby_overlay {background-color: #3C6E31;background-image:none;color:#fff;} +div.baby_overlay .close {filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='apiCss/img/overlay_close_IE6.gif');background-image: none;} +.baby_overlay_arrow {background-image:url(img/overlay_arrow.gif);} +.apiDetail button {background-image:url("img/zTreeStandard.gif")} \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/apiCss/img/apiMenu.gif b/alive-admin/target/classes/static/ztree/api/apiCss/img/apiMenu.gif new file mode 100644 index 0000000..066fc8e Binary files /dev/null and b/alive-admin/target/classes/static/ztree/api/apiCss/img/apiMenu.gif differ diff --git a/alive-admin/target/classes/static/ztree/api/apiCss/img/apiMenu.png b/alive-admin/target/classes/static/ztree/api/apiCss/img/apiMenu.png new file mode 100644 index 0000000..9acec50 Binary files /dev/null and b/alive-admin/target/classes/static/ztree/api/apiCss/img/apiMenu.png differ diff --git a/alive-admin/target/classes/static/ztree/api/apiCss/img/background.jpg b/alive-admin/target/classes/static/ztree/api/apiCss/img/background.jpg new file mode 100644 index 0000000..003375f Binary files /dev/null and b/alive-admin/target/classes/static/ztree/api/apiCss/img/background.jpg differ diff --git a/alive-admin/target/classes/static/ztree/api/apiCss/img/chinese.png b/alive-admin/target/classes/static/ztree/api/apiCss/img/chinese.png new file mode 100644 index 0000000..d3b57fc Binary files /dev/null and b/alive-admin/target/classes/static/ztree/api/apiCss/img/chinese.png differ diff --git a/alive-admin/target/classes/static/ztree/api/apiCss/img/close.png b/alive-admin/target/classes/static/ztree/api/apiCss/img/close.png new file mode 100644 index 0000000..69e41e3 Binary files /dev/null and b/alive-admin/target/classes/static/ztree/api/apiCss/img/close.png differ diff --git a/alive-admin/target/classes/static/ztree/api/apiCss/img/contact-bg.png b/alive-admin/target/classes/static/ztree/api/apiCss/img/contact-bg.png new file mode 100644 index 0000000..a3d7a5f Binary files /dev/null and b/alive-admin/target/classes/static/ztree/api/apiCss/img/contact-bg.png differ diff --git a/alive-admin/target/classes/static/ztree/api/apiCss/img/english.png b/alive-admin/target/classes/static/ztree/api/apiCss/img/english.png new file mode 100644 index 0000000..2ad2d7d Binary files /dev/null and b/alive-admin/target/classes/static/ztree/api/apiCss/img/english.png differ diff --git a/alive-admin/target/classes/static/ztree/api/apiCss/img/header-bg.png b/alive-admin/target/classes/static/ztree/api/apiCss/img/header-bg.png new file mode 100644 index 0000000..a2baacf Binary files /dev/null and b/alive-admin/target/classes/static/ztree/api/apiCss/img/header-bg.png differ diff --git a/alive-admin/target/classes/static/ztree/api/apiCss/img/lightbulb.png b/alive-admin/target/classes/static/ztree/api/apiCss/img/lightbulb.png new file mode 100644 index 0000000..c99357a Binary files /dev/null and b/alive-admin/target/classes/static/ztree/api/apiCss/img/lightbulb.png differ diff --git a/alive-admin/target/classes/static/ztree/api/apiCss/img/overlay_arrow.gif b/alive-admin/target/classes/static/ztree/api/apiCss/img/overlay_arrow.gif new file mode 100644 index 0000000..e7c3e6d Binary files /dev/null and b/alive-admin/target/classes/static/ztree/api/apiCss/img/overlay_arrow.gif differ diff --git a/alive-admin/target/classes/static/ztree/api/apiCss/img/overlay_arrow.png b/alive-admin/target/classes/static/ztree/api/apiCss/img/overlay_arrow.png new file mode 100644 index 0000000..d790a11 Binary files /dev/null and b/alive-admin/target/classes/static/ztree/api/apiCss/img/overlay_arrow.png differ diff --git a/alive-admin/target/classes/static/ztree/api/apiCss/img/overlay_bg.png b/alive-admin/target/classes/static/ztree/api/apiCss/img/overlay_bg.png new file mode 100644 index 0000000..5f81ee6 Binary files /dev/null and b/alive-admin/target/classes/static/ztree/api/apiCss/img/overlay_bg.png differ diff --git a/alive-admin/target/classes/static/ztree/api/apiCss/img/overlay_close_IE6.gif b/alive-admin/target/classes/static/ztree/api/apiCss/img/overlay_close_IE6.gif new file mode 100644 index 0000000..42cb8d8 Binary files /dev/null and b/alive-admin/target/classes/static/ztree/api/apiCss/img/overlay_close_IE6.gif differ diff --git a/alive-admin/target/classes/static/ztree/api/apiCss/img/zTreeStandard.gif b/alive-admin/target/classes/static/ztree/api/apiCss/img/zTreeStandard.gif new file mode 100644 index 0000000..3f69a5b Binary files /dev/null and b/alive-admin/target/classes/static/ztree/api/apiCss/img/zTreeStandard.gif differ diff --git a/alive-admin/target/classes/static/ztree/api/apiCss/img/zTreeStandard.png b/alive-admin/target/classes/static/ztree/api/apiCss/img/zTreeStandard.png new file mode 100644 index 0000000..33c9e84 Binary files /dev/null and b/alive-admin/target/classes/static/ztree/api/apiCss/img/zTreeStandard.png differ diff --git a/alive-admin/target/classes/static/ztree/api/apiCss/jquery-1.6.2.min.js b/alive-admin/target/classes/static/ztree/api/apiCss/jquery-1.6.2.min.js new file mode 100644 index 0000000..8cdc80e --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/apiCss/jquery-1.6.2.min.js @@ -0,0 +1,18 @@ +/*! + * jQuery JavaScript Library v1.6.2 + * http://jquery.com/ + * + * Copyright 2011, John Resig + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * Includes Sizzle.js + * http://sizzlejs.com/ + * Copyright 2011, The Dojo Foundation + * Released under the MIT, BSD, and GPL Licenses. + * + * Date: Thu Jun 30 14:16:56 2011 -0400 + */ +(function(a,b){function cv(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cs(a){if(!cg[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ch||(ch=c.createElement("iframe"),ch.frameBorder=ch.width=ch.height=0),b.appendChild(ch);if(!ci||!ch.createElement)ci=(ch.contentWindow||ch.contentDocument).document,ci.write((c.compatMode==="CSS1Compat"?"":"")+""),ci.close();d=ci.createElement(a),ci.body.appendChild(d),e=f.css(d,"display"),b.removeChild(ch)}cg[a]=e}return cg[a]}function cr(a,b){var c={};f.each(cm.concat.apply([],cm.slice(0,b)),function(){c[this]=a});return c}function cq(){cn=b}function cp(){setTimeout(cq,0);return cn=f.now()}function cf(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function ce(){try{return new a.XMLHttpRequest}catch(b){}}function b$(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var d=a.dataTypes,e={},g,h,i=d.length,j,k=d[0],l,m,n,o,p;for(g=1;g0){c!=="border"&&f.each(e,function(){c||(d-=parseFloat(f.css(a,"padding"+this))||0),c==="margin"?d+=parseFloat(f.css(a,c+this))||0:d-=parseFloat(f.css(a,"border"+this+"Width"))||0});return d+"px"}d=bx(a,b,b);if(d<0||d==null)d=a.style[b]||0;d=parseFloat(d)||0,c&&f.each(e,function(){d+=parseFloat(f.css(a,"padding"+this))||0,c!=="padding"&&(d+=parseFloat(f.css(a,"border"+this+"Width"))||0),c==="margin"&&(d+=parseFloat(f.css(a,c+this))||0)});return d+"px"}function bm(a,b){b.src?f.ajax({url:b.src,async:!1,dataType:"script"}):f.globalEval((b.text||b.textContent||b.innerHTML||"").replace(be,"/*$0*/")),b.parentNode&&b.parentNode.removeChild(b)}function bl(a){f.nodeName(a,"input")?bk(a):"getElementsByTagName"in a&&f.grep(a.getElementsByTagName("input"),bk)}function bk(a){if(a.type==="checkbox"||a.type==="radio")a.defaultChecked=a.checked}function bj(a){return"getElementsByTagName"in a?a.getElementsByTagName("*"):"querySelectorAll"in a?a.querySelectorAll("*"):[]}function bi(a,b){var c;if(b.nodeType===1){b.clearAttributes&&b.clearAttributes(),b.mergeAttributes&&b.mergeAttributes(a),c=b.nodeName.toLowerCase();if(c==="object")b.outerHTML=a.outerHTML;else if(c!=="input"||a.type!=="checkbox"&&a.type!=="radio"){if(c==="option")b.selected=a.defaultSelected;else if(c==="input"||c==="textarea")b.defaultValue=a.defaultValue}else a.checked&&(b.defaultChecked=b.checked=a.checked),b.value!==a.value&&(b.value=a.value);b.removeAttribute(f.expando)}}function bh(a,b){if(b.nodeType===1&&!!f.hasData(a)){var c=f.expando,d=f.data(a),e=f.data(b,d);if(d=d[c]){var g=d.events;e=e[c]=f.extend({},d);if(g){delete e.handle,e.events={};for(var h in g)for(var i=0,j=g[h].length;i=0===c})}function V(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function N(a,b){return(a&&a!=="*"?a+".":"")+b.replace(z,"`").replace(A,"&")}function M(a){var b,c,d,e,g,h,i,j,k,l,m,n,o,p=[],q=[],r=f._data(this,"events");if(!(a.liveFired===this||!r||!r.live||a.target.disabled||a.button&&a.type==="click")){a.namespace&&(n=new RegExp("(^|\\.)"+a.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)")),a.liveFired=this;var s=r.live.slice(0);for(i=0;ic)break;a.currentTarget=e.elem,a.data=e.handleObj.data,a.handleObj=e.handleObj,o=e.handleObj.origHandler.apply(e.elem,arguments);if(o===!1||a.isPropagationStopped()){c=e.level,o===!1&&(b=!1);if(a.isImmediatePropagationStopped())break}}return b}}function K(a,c,d){var e=f.extend({},d[0]);e.type=a,e.originalEvent={},e.liveFired=b,f.event.handle.call(c,e),e.isDefaultPrevented()&&d[0].preventDefault()}function E(){return!0}function D(){return!1}function m(a,c,d){var e=c+"defer",g=c+"queue",h=c+"mark",i=f.data(a,e,b,!0);i&&(d==="queue"||!f.data(a,g,b,!0))&&(d==="mark"||!f.data(a,h,b,!0))&&setTimeout(function(){!f.data(a,g,b,!0)&&!f.data(a,h,b,!0)&&(f.removeData(a,e,!0),i.resolve())},0)}function l(a){for(var b in a)if(b!=="toJSON")return!1;return!0}function k(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(j,"$1-$2").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:f.isNaN(d)?i.test(d)?f.parseJSON(d):d:parseFloat(d)}catch(g){}f.data(a,c,d)}else d=b}return d}var c=a.document,d=a.navigator,e=a.location,f=function(){function J(){if(!e.isReady){try{c.documentElement.doScroll("left")}catch(a){setTimeout(J,1);return}e.ready()}}var e=function(a,b){return new e.fn.init(a,b,h)},f=a.jQuery,g=a.$,h,i=/^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,j=/\S/,k=/^\s+/,l=/\s+$/,m=/\d/,n=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,o=/^[\],:{}\s]*$/,p=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,q=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,r=/(?:^|:|,)(?:\s*\[)+/g,s=/(webkit)[ \/]([\w.]+)/,t=/(opera)(?:.*version)?[ \/]([\w.]+)/,u=/(msie) ([\w.]+)/,v=/(mozilla)(?:.*? rv:([\w.]+))?/,w=/-([a-z])/ig,x=function(a,b){return b.toUpperCase()},y=d.userAgent,z,A,B,C=Object.prototype.toString,D=Object.prototype.hasOwnProperty,E=Array.prototype.push,F=Array.prototype.slice,G=String.prototype.trim,H=Array.prototype.indexOf,I={};e.fn=e.prototype={constructor:e,init:function(a,d,f){var g,h,j,k;if(!a)return this;if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!d&&c.body){this.context=c,this[0]=c.body,this.selector=a,this.length=1;return this}if(typeof a=="string"){a.charAt(0)!=="<"||a.charAt(a.length-1)!==">"||a.length<3?g=i.exec(a):g=[null,a,null];if(g&&(g[1]||!d)){if(g[1]){d=d instanceof e?d[0]:d,k=d?d.ownerDocument||d:c,j=n.exec(a),j?e.isPlainObject(d)?(a=[c.createElement(j[1])],e.fn.attr.call(a,d,!0)):a=[k.createElement(j[1])]:(j=e.buildFragment([g[1]],[k]),a=(j.cacheable?e.clone(j.fragment):j.fragment).childNodes);return e.merge(this,a)}h=c.getElementById(g[2]);if(h&&h.parentNode){if(h.id!==g[2])return f.find(a);this.length=1,this[0]=h}this.context=c,this.selector=a;return this}return!d||d.jquery?(d||f).find(a):this.constructor(d).find(a)}if(e.isFunction(a))return f.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return e.makeArray(a,this)},selector:"",jquery:"1.6.2",length:0,size:function(){return this.length},toArray:function(){return F.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=this.constructor();e.isArray(a)?E.apply(d,a):e.merge(d,a),d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")");return d},each:function(a,b){return e.each(this,a,b)},ready:function(a){e.bindReady(),A.done(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(F.apply(this,arguments),"slice",F.call(arguments).join(","))},map:function(a){return this.pushStack(e.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:E,sort:[].sort,splice:[].splice},e.fn.init.prototype=e.fn,e.extend=e.fn.extend=function(){var a,c,d,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i=="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!="object"&&!e.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j0)return;A.resolveWith(c,[e]),e.fn.trigger&&e(c).trigger("ready").unbind("ready")}},bindReady:function(){if(!A){A=e._Deferred();if(c.readyState==="complete")return setTimeout(e.ready,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",B,!1),a.addEventListener("load",e.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",B),a.attachEvent("onload",e.ready);var b=!1;try{b=a.frameElement==null}catch(d){}c.documentElement.doScroll&&b&&J()}}},isFunction:function(a){return e.type(a)==="function"},isArray:Array.isArray||function(a){return e.type(a)==="array"},isWindow:function(a){return a&&typeof a=="object"&&"setInterval"in a},isNaN:function(a){return a==null||!m.test(a)||isNaN(a)},type:function(a){return a==null?String(a):I[C.call(a)]||"object"},isPlainObject:function(a){if(!a||e.type(a)!=="object"||a.nodeType||e.isWindow(a))return!1;if(a.constructor&&!D.call(a,"constructor")&&!D.call(a.constructor.prototype,"isPrototypeOf"))return!1;var c;for(c in a);return c===b||D.call(a,c)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw a},parseJSON:function(b){if(typeof b!="string"||!b)return null;b=e.trim(b);if(a.JSON&&a.JSON.parse)return a.JSON.parse(b);if(o.test(b.replace(p,"@").replace(q,"]").replace(r,"")))return(new Function("return "+b))();e.error("Invalid JSON: "+b)},parseXML:function(b,c,d){a.DOMParser?(d=new DOMParser,c=d.parseFromString(b,"text/xml")):(c=new ActiveXObject("Microsoft.XMLDOM"),c.async="false",c.loadXML(b)),d=c.documentElement,(!d||!d.nodeName||d.nodeName==="parsererror")&&e.error("Invalid XML: "+b);return c},noop:function(){},globalEval:function(b){b&&j.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(w,x)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var f,g=0,h=a.length,i=h===b||e.isFunction(a);if(d){if(i){for(f in a)if(c.apply(a[f],d)===!1)break}else for(;g0&&a[0]&&a[j-1]||j===0||e.isArray(a));if(k)for(;i1?h.call(arguments,0):c,--e||g.resolveWith(g,h.call(b,0))}}var b=arguments,c=0,d=b.length,e=d,g=d<=1&&a&&f.isFunction(a.promise)?a:f.Deferred();if(d>1){for(;c
                                                                                                                                                                                                                                                                                                                      a",d=a.getElementsByTagName("*"),e=a.getElementsByTagName("a")[0];if(!d||!d.length||!e)return{};g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=a.getElementsByTagName("input")[0],k={leadingWhitespace:a.firstChild.nodeType===3,tbody:!a.getElementsByTagName("tbody").length,htmlSerialize:!!a.getElementsByTagName("link").length,style:/top/.test(e.getAttribute("style")),hrefNormalized:e.getAttribute("href")==="/a",opacity:/^0.55$/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected,getSetAttribute:a.className!=="t",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0},i.checked=!0,k.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,k.optDisabled=!h.disabled;try{delete a.test}catch(v){k.deleteExpando=!1}!a.addEventListener&&a.attachEvent&&a.fireEvent&&(a.attachEvent("onclick",function(){k.noCloneEvent=!1}),a.cloneNode(!0).fireEvent("onclick")),i=c.createElement("input"),i.value="t",i.setAttribute("type","radio"),k.radioValue=i.value==="t",i.setAttribute("checked","checked"),a.appendChild(i),l=c.createDocumentFragment(),l.appendChild(a.firstChild),k.checkClone=l.cloneNode(!0).cloneNode(!0).lastChild.checked,a.innerHTML="",a.style.width=a.style.paddingLeft="1px",m=c.getElementsByTagName("body")[0],o=c.createElement(m?"div":"body"),p={visibility:"hidden",width:0,height:0,border:0,margin:0},m&&f.extend(p,{position:"absolute",left:-1e3,top:-1e3});for(t in p)o.style[t]=p[t];o.appendChild(a),n=m||b,n.insertBefore(o,n.firstChild),k.appendChecked=i.checked,k.boxModel=a.offsetWidth===2,"zoom"in a.style&&(a.style.display="inline",a.style.zoom=1,k.inlineBlockNeedsLayout=a.offsetWidth===2,a.style.display="",a.innerHTML="
                                                                                                                                                                                                                                                                                                                      ",k.shrinkWrapBlocks=a.offsetWidth!==2),a.innerHTML="
                                                                                                                                                                                                                                                                                                                      t
                                                                                                                                                                                                                                                                                                                      ",q=a.getElementsByTagName("td"),u=q[0].offsetHeight===0,q[0].style.display="",q[1].style.display="none",k.reliableHiddenOffsets=u&&q[0].offsetHeight===0,a.innerHTML="",c.defaultView&&c.defaultView.getComputedStyle&&(j=c.createElement("div"),j.style.width="0",j.style.marginRight="0",a.appendChild(j),k.reliableMarginRight=(parseInt((c.defaultView.getComputedStyle(j,null)||{marginRight:0}).marginRight,10)||0)===0),o.innerHTML="",n.removeChild(o);if(a.attachEvent)for(t in{submit:1,change:1,focusin:1})s="on"+t,u=s in a,u||(a.setAttribute(s,"return;"),u=typeof a[s]=="function"),k[t+"Bubbles"]=u;o=l=g=h=m=j=a=i=null;return k}(),f.boxModel=f.support.boxModel;var i=/^(?:\{.*\}|\[.*\])$/,j=/([a-z])([A-Z])/g;f.extend({cache:{},uuid:0,expando:"jQuery"+(f.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?f.cache[a[f.expando]]:a[f.expando];return!!a&&!l(a)},data:function(a,c,d,e){if(!!f.acceptData(a)){var g=f.expando,h=typeof c=="string",i,j=a.nodeType,k=j?f.cache:a,l=j?a[f.expando]:a[f.expando]&&f.expando;if((!l||e&&l&&!k[l][g])&&h&&d===b)return;l||(j?a[f.expando]=l=++f.uuid:l=f.expando),k[l]||(k[l]={},j||(k[l].toJSON=f.noop));if(typeof c=="object"||typeof c=="function")e?k[l][g]=f.extend(k[l][g],c):k[l]=f.extend(k[l],c);i=k[l],e&&(i[g]||(i[g]={}),i=i[g]),d!==b&&(i[f.camelCase(c)]=d);if(c==="events"&&!i[c])return i[g]&&i[g].events;return h?i[f.camelCase(c)]||i[c]:i}},removeData:function(b,c,d){if(!!f.acceptData(b)){var e=f.expando,g=b.nodeType,h=g?f.cache:b,i=g?b[f.expando]:f.expando;if(!h[i])return;if(c){var j=d?h[i][e]:h[i];if(j){delete j[c];if(!l(j))return}}if(d){delete h[i][e];if(!l(h[i]))return}var k=h[i][e];f.support.deleteExpando||h!=a?delete h[i]:h[i]=null,k?(h[i]={},g||(h[i].toJSON=f.noop),h[i][e]=k):g&&(f.support.deleteExpando?delete b[f.expando]:b.removeAttribute?b.removeAttribute(f.expando):b[f.expando]=null)}},_data:function(a,b,c){return f.data(a,b,c,!0)},acceptData:function(a){if(a.nodeName){var b=f.noData[a.nodeName.toLowerCase()];if(b)return b!==!0&&a.getAttribute("classid")===b}return!0}}),f.fn.extend({data:function(a,c){var d=null;if(typeof a=="undefined"){if(this.length){d=f.data(this[0]);if(this[0].nodeType===1){var e=this[0].attributes,g;for(var h=0,i=e.length;h-1)return!0;return!1},val:function(a){var c,d,e=this[0];if(!arguments.length){if(e){c=f.valHooks[e.nodeName.toLowerCase()]||f.valHooks[e.type];if(c&&"get"in c&&(d=c.get(e,"value"))!==b)return d;d=e.value;return typeof d=="string"?d.replace(p,""):d==null?"":d}return b}var g=f.isFunction(a);return this.each(function(d){var e=f(this),h;if(this.nodeType===1){g?h=a.call(this,d,e.val()):h=a,h==null?h="":typeof h=="number"?h+="":f.isArray(h)&&(h=f.map(h,function(a){return a==null?"":a+""})),c=f.valHooks[this.nodeName.toLowerCase()]||f.valHooks[this.type];if(!c||!("set"in c)||c.set(this,h,"value")===b)this.value=h}})}}),f.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,c=a.selectedIndex,d=[],e=a.options,g=a.type==="select-one";if(c<0)return null;for(var h=g?c:0,i=g?c+1:e.length;h=0}),c.length||(a.selectedIndex=-1);return c}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attrFix:{tabindex:"tabIndex"},attr:function(a,c,d,e){var g=a.nodeType;if(!a||g===3||g===8||g===2)return b;if(e&&c in f.attrFn)return f(a)[c](d);if(!("getAttribute"in a))return f.prop(a,c,d);var h,i,j=g!==1||!f.isXMLDoc(a);j&&(c=f.attrFix[c]||c,i=f.attrHooks[c],i||(t.test(c)?i=w:v&&c!=="className"&&(f.nodeName(a,"form")||u.test(c))&&(i=v)));if(d!==b){if(d===null){f.removeAttr(a,c);return b}if(i&&"set"in i&&j&&(h=i.set(a,d,c))!==b)return h;a.setAttribute(c,""+d);return d}if(i&&"get"in i&&j&&(h=i.get(a,c))!==null)return h;h=a.getAttribute(c);return h===null?b:h},removeAttr:function(a,b){var c;a.nodeType===1&&(b=f.attrFix[b]||b,f.support.getSetAttribute?a.removeAttribute(b):(f.attr(a,b,""),a.removeAttributeNode(a.getAttributeNode(b))),t.test(b)&&(c=f.propFix[b]||b)in a&&(a[c]=!1))},attrHooks:{type:{set:function(a,b){if(q.test(a.nodeName)&&a.parentNode)f.error("type property can't be changed");else if(!f.support.radioValue&&b==="radio"&&f.nodeName(a,"input")){var c=a.value;a.setAttribute("type",b),c&&(a.value=c);return b}}},tabIndex:{get:function(a){var c=a.getAttributeNode("tabIndex");return c&&c.specified?parseInt(c.value,10):r.test(a.nodeName)||s.test(a.nodeName)&&a.href?0:b}},value:{get:function(a,b){if(v&&f.nodeName(a,"button"))return v.get(a,b);return b in a?a.value:null},set:function(a,b,c){if(v&&f.nodeName(a,"button"))return v.set(a,b,c);a.value=b}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(a,c,d){var e=a.nodeType;if(!a||e===3||e===8||e===2)return b;var g,h,i=e!==1||!f.isXMLDoc(a);i&&(c=f.propFix[c]||c,h=f.propHooks[c]);return d!==b?h&&"set"in h&&(g=h.set(a,d,c))!==b?g:a[c]=d:h&&"get"in h&&(g=h.get(a,c))!==b?g:a[c]},propHooks:{}}),w={get:function(a,c){return f.prop(a,c)?c.toLowerCase():b},set:function(a,b,c){var d;b===!1?f.removeAttr(a,c):(d=f.propFix[c]||c,d in a&&(a[d]=!0),a.setAttribute(c,c.toLowerCase()));return c}},f.support.getSetAttribute||(f.attrFix=f.propFix,v=f.attrHooks.name=f.attrHooks.title=f.valHooks.button={get:function(a,c){var d;d=a.getAttributeNode(c);return d&&d.nodeValue!==""?d.nodeValue:b},set:function(a,b,c){var d=a.getAttributeNode(c);if(d){d.nodeValue=b;return b}}},f.each(["width","height"],function(a,b){f.attrHooks[b]=f.extend(f.attrHooks[b],{set:function(a,c){if(c===""){a.setAttribute(b,"auto");return c}}})})),f.support.hrefNormalized||f.each(["href","src","width","height"],function(a,c){f.attrHooks[c]=f.extend(f.attrHooks[c],{get:function(a){var d=a.getAttribute(c,2);return d===null?b:d}})}),f.support.style||(f.attrHooks.style={get:function(a){return a.style.cssText.toLowerCase()||b},set:function(a,b){return a.style.cssText=""+b}}),f.support.optSelected||(f.propHooks.selected=f.extend(f.propHooks.selected,{get:function(a){var b=a.parentNode;b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex)}})),f.support.checkOn||f.each(["radio","checkbox"],function(){f.valHooks[this]={get:function(a){return a.getAttribute("value")===null?"on":a.value}}}),f.each(["radio","checkbox"],function(){f.valHooks[this]=f.extend(f.valHooks[this],{set:function(a,b){if(f.isArray(b))return a.checked=f.inArray(f(a).val(),b)>=0}})});var x=/\.(.*)$/,y=/^(?:textarea|input|select)$/i,z=/\./g,A=/ /g,B=/[^\w\s.|`]/g,C=function(a){return a.replace(B,"\\$&")};f.event={add:function(a,c,d,e){if(a.nodeType!==3&&a.nodeType!==8){if(d===!1)d=D;else if(!d)return;var g,h;d.handler&&(g=d,d=g.handler),d.guid||(d.guid=f.guid++);var i=f._data(a);if(!i)return;var j=i.events,k=i.handle;j||(i.events=j={}),k||(i.handle=k=function(a){return typeof f!="undefined"&&(!a||f.event.triggered!==a.type)?f.event.handle.apply(k.elem,arguments):b}),k.elem=a,c=c.split(" ");var l,m=0,n;while(l=c[m++]){h=g?f.extend({},g):{handler:d,data:e},l.indexOf(".")>-1?(n=l.split("."),l=n.shift(),h.namespace=n.slice(0).sort().join(".")):(n=[],h.namespace=""),h.type=l,h.guid||(h.guid=d.guid);var o=j[l],p=f.event.special[l]||{};if(!o){o=j[l]=[];if(!p.setup||p.setup.call(a,e,n,k)===!1)a.addEventListener?a.addEventListener(l,k,!1):a.attachEvent&&a.attachEvent("on"+l,k)}p.add&&(p.add.call(a,h),h.handler.guid||(h.handler.guid=d.guid)),o.push(h),f.event.global[l]=!0}a=null}},global:{},remove:function(a,c,d,e){if(a.nodeType!==3&&a.nodeType!==8){d===!1&&(d=D);var g,h,i,j,k=0,l,m,n,o,p,q,r,s=f.hasData(a)&&f._data(a),t=s&&s.events;if(!s||!t)return;c&&c.type&&(d=c.handler,c=c.type);if(!c||typeof c=="string"&&c.charAt(0)==="."){c=c||"";for(h in t)f.event.remove(a,h+c);return}c=c.split(" ");while(h=c[k++]){r=h,q=null,l=h.indexOf(".")<0,m=[],l||(m=h.split("."),h=m.shift(),n=new RegExp("(^|\\.)"+f.map(m.slice(0).sort(),C).join("\\.(?:.*\\.)?")+"(\\.|$)")),p=t[h];if(!p)continue;if(!d){for(j=0;j=0&&(h=h.slice(0,-1),j=!0),h.indexOf(".")>=0&&(i=h.split("."),h=i. +shift(),i.sort());if(!!e&&!f.event.customEvent[h]||!!f.event.global[h]){c=typeof c=="object"?c[f.expando]?c:new f.Event(h,c):new f.Event(h),c.type=h,c.exclusive=j,c.namespace=i.join("."),c.namespace_re=new RegExp("(^|\\.)"+i.join("\\.(?:.*\\.)?")+"(\\.|$)");if(g||!e)c.preventDefault(),c.stopPropagation();if(!e){f.each(f.cache,function(){var a=f.expando,b=this[a];b&&b.events&&b.events[h]&&f.event.trigger(c,d,b.handle.elem)});return}if(e.nodeType===3||e.nodeType===8)return;c.result=b,c.target=e,d=d!=null?f.makeArray(d):[],d.unshift(c);var k=e,l=h.indexOf(":")<0?"on"+h:"";do{var m=f._data(k,"handle");c.currentTarget=k,m&&m.apply(k,d),l&&f.acceptData(k)&&k[l]&&k[l].apply(k,d)===!1&&(c.result=!1,c.preventDefault()),k=k.parentNode||k.ownerDocument||k===c.target.ownerDocument&&a}while(k&&!c.isPropagationStopped());if(!c.isDefaultPrevented()){var n,o=f.event.special[h]||{};if((!o._default||o._default.call(e.ownerDocument,c)===!1)&&(h!=="click"||!f.nodeName(e,"a"))&&f.acceptData(e)){try{l&&e[h]&&(n=e[l],n&&(e[l]=null),f.event.triggered=h,e[h]())}catch(p){}n&&(e[l]=n),f.event.triggered=b}}return c.result}},handle:function(c){c=f.event.fix(c||a.event);var d=((f._data(this,"events")||{})[c.type]||[]).slice(0),e=!c.exclusive&&!c.namespace,g=Array.prototype.slice.call(arguments,0);g[0]=c,c.currentTarget=this;for(var h=0,i=d.length;h-1?f.map(a.options,function(a){return a.selected}).join("-"):"":f.nodeName(a,"select")&&(c=a.selectedIndex);return c},J=function(c){var d=c.target,e,g;if(!!y.test(d.nodeName)&&!d.readOnly){e=f._data(d,"_change_data"),g=I(d),(c.type!=="focusout"||d.type!=="radio")&&f._data(d,"_change_data",g);if(e===b||g===e)return;if(e!=null||g)c.type="change",c.liveFired=b,f.event.trigger(c,arguments[1],d)}};f.event.special.change={filters:{focusout:J,beforedeactivate:J,click:function(a){var b=a.target,c=f.nodeName(b,"input")?b.type:"";(c==="radio"||c==="checkbox"||f.nodeName(b,"select"))&&J.call(this,a)},keydown:function(a){var b=a.target,c=f.nodeName(b,"input")?b.type:"";(a.keyCode===13&&!f.nodeName(b,"textarea")||a.keyCode===32&&(c==="checkbox"||c==="radio")||c==="select-multiple")&&J.call(this,a)},beforeactivate:function(a){var b=a.target;f._data(b,"_change_data",I(b))}},setup:function(a,b){if(this.type==="file")return!1;for(var c in H)f.event.add(this,c+".specialChange",H[c]);return y.test(this.nodeName)},teardown:function(a){f.event.remove(this,".specialChange");return y.test(this.nodeName)}},H=f.event.special.change.filters,H.focus=H.beforeactivate}f.support.focusinBubbles||f.each({focus:"focusin",blur:"focusout"},function(a,b){function e(a){var c=f.event.fix(a);c.type=b,c.originalEvent={},f.event.trigger(c,null,c.target),c.isDefaultPrevented()&&a.preventDefault()}var d=0;f.event.special[b]={setup:function(){d++===0&&c.addEventListener(a,e,!0)},teardown:function(){--d===0&&c.removeEventListener(a,e,!0)}}}),f.each(["bind","one"],function(a,c){f.fn[c]=function(a,d,e){var g;if(typeof a=="object"){for(var h in a)this[c](h,d,a[h],e);return this}if(arguments.length===2||d===!1)e=d,d=b;c==="one"?(g=function(a){f(this).unbind(a,g);return e.apply(this,arguments)},g.guid=e.guid||f.guid++):g=e;if(a==="unload"&&c!=="one")this.one(a,d,e);else for(var i=0,j=this.length;i0?this.bind(b,a,c):this.trigger(b)},f.attrFn&&(f.attrFn[b]=!0)}),function(){function u(a,b,c,d,e,f){for(var g=0,h=d.length;g0){j=i;break}}i=i[a]}d[g]=j}}}function t(a,b,c,d,e,f){for(var g=0,h=d.length;g+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,d=0,e=Object.prototype.toString,g=!1,h=!0,i=/\\/g,j=/\W/;[0,0].sort(function(){h=!1;return 0});var k=function(b,d,f,g){f=f||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!="string")return f;var i,j,n,o,q,r,s,t,u=!0,w=k.isXML(d),x=[],y=b;do{a.exec(""),i=a.exec(y);if(i){y=i[3],x.push(i[1]);if(i[2]){o=i[3];break}}}while(i);if(x.length>1&&m.exec(b))if(x.length===2&&l.relative[x[0]])j=v(x[0]+x[1],d);else{j=l.relative[x[0]]?[d]:k(x.shift(),d);while(x.length)b=x.shift(),l.relative[b]&&(b+=x.shift()),j=v(b,j)}else{!g&&x.length>1&&d.nodeType===9&&!w&&l.match.ID.test(x[0])&&!l.match.ID.test(x[x.length-1])&&(q=k.find(x.shift(),d,w),d=q.expr?k.filter(q.expr,q.set)[0]:q.set[0]);if(d){q=g?{expr:x.pop(),set:p(g)}:k.find(x.pop(),x.length===1&&(x[0]==="~"||x[0]==="+")&&d.parentNode?d.parentNode:d,w),j=q.expr?k.filter(q.expr,q.set):q.set,x.length>0?n=p(j):u=!1;while(x.length)r=x.pop(),s=r,l.relative[r]?s=x.pop():r="",s==null&&(s=d),l.relative[r](n,s,w)}else n=x=[]}n||(n=j),n||k.error(r||b);if(e.call(n)==="[object Array]")if(!u)f.push.apply(f,n);else if(d&&d.nodeType===1)for(t=0;n[t]!=null;t++)n[t]&&(n[t]===!0||n[t].nodeType===1&&k.contains(d,n[t]))&&f.push(j[t]);else for(t=0;n[t]!=null;t++)n[t]&&n[t].nodeType===1&&f.push(j[t]);else p(n,f);o&&(k(o,h,f,g),k.uniqueSort(f));return f};k.uniqueSort=function(a){if(r){g=h,a.sort(r);if(g)for(var b=1;b0},k.find=function(a,b,c){var d;if(!a)return[];for(var e=0,f=l.order.length;e":function(a,b){var c,d=typeof b=="string",e=0,f=a.length;if(d&&!j.test(b)){b=b.toLowerCase();for(;e=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].replace(i,"")},TAG:function(a,b){return a[1].replace(i,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||k.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else a[2]&&k.error(a[0]);a[0]=d++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(i,"");!f&&l.attrMap[g]&&(a[1]=l.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(i,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not")if((a.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[3]=k(b[3],null,null,c);else{var g=k.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return!1}else if(l.match.POS.test(b[0])||l.match.CHILD.test(b[0]))return!0;return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!k(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return a.nodeName.toLowerCase()==="input"&&"text"===c&&(b===c||b===null)},radio:function(a){return a.nodeName.toLowerCase()==="input"&&"radio"===a.type},checkbox:function(a){return a.nodeName.toLowerCase()==="input"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()==="input"&&"file"===a.type},password:function(a){return a.nodeName.toLowerCase()==="input"&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&"button"===a.type||b==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return bc[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=l.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||k.getText([a])||"").indexOf(b[3])>=0;if(e==="not"){var g=b[3];for(var h=0,i=g.length;h=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=l.attrHandle[c]?l.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=l.setFilters[e];if(f)return f(a,c,b,d)}}},m=l.match.POS,n=function(a,b){return"\\"+(b-0+1)};for(var o in l.match)l.match[o]=new RegExp(l.match[o].source+/(?![^\[]*\])(?![^\(]*\))/.source),l.leftMatch[o]=new RegExp(/(^(?:.|\r|\n)*?)/.source+l.match[o].source.replace(/\\(\d+)/g,n));var p=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(q){p=function(a,b){var c=0,d=b||[];if(e.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length=="number")for(var f=a.length;c",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(l.find.ID=function(a,c,d){if(typeof c.getElementById!="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},l.filter.ID=function(a,b){var c=typeof a.getAttributeNode!="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(l.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c}),a.innerHTML="",a.firstChild&&typeof a.firstChild.getAttribute!="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(l.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=k,b=c.createElement("div"),d="__sizzle__";b.innerHTML="

                                                                                                                                                                                                                                                                                                                      ";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){k=function(b,e,f,g){e=e||c;if(!g&&!k.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])return p(e.getElementsByTagName(b),f);if(h[2]&&l.find.CLASS&&e.getElementsByClassName)return p(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"&&e.body)return p([e.body],f);if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode)return p([],f);if(i.id===h[3])return p([i],f)}try{return p(e.querySelectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var m=e,n=e.getAttribute("id"),o=n||d,q=e.parentNode,r=/^\s*[+~]/.test(b);n?o=o.replace(/'/g,"\\$&"):e.setAttribute("id",o),r&&q&&(e=e.parentNode);try{if(!r||q)return p(e.querySelectorAll("[id='"+o+"'] "+b),f)}catch(s){}finally{n||m.removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)k[e]=a[e];b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var d=!b.call(c.createElement("div"),"div"),e=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(f){e=!0}k.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!k.isXML(a))try{if(e||!l.match.PSEUDO.test(c)&&!/!=/.test(c)){var f=b.call(a,c);if(f||!d||a.document&&a.document.nodeType!==11)return f}}catch(g){}return k(c,null,null,[a]).length>0}}}(),function(){var a=c.createElement("div");a.innerHTML="
                                                                                                                                                                                                                                                                                                                      ";if(!!a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;l.order.splice(1,0,"CLASS"),l.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}}(),c.documentElement.contains?k.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?k.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:k.contains=function(){return!1},k.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var v=function(a,b){var c,d=[],e="",f=b.nodeType?[b]:b;while(c=l.match.PSEUDO.exec(a))e+=c[0],a=a.replace(l.match.PSEUDO,"");a=l.relative[a]?a+"*":a;for(var g=0,h=f.length;g0)for(h=g;h0:this.filter(a).length>0)},closest:function(a,b){var c=[],d,e,g=this[0];if(f.isArray(a)){var h,i,j={},k=1;if(g&&a.length){for(d=0,e=a.length;d-1:f(g).is(h))&&c.push({selector:i,elem:g,level:k});g=g.parentNode,k++}}return c}var l=T.test(a)||typeof a!="string"?f(a,b||this.context):0;for(d=0,e=this.length;d-1:f.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b||g.nodeType===11)break}}c=c.length>1?f.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a||typeof a=="string")return f.inArray(this[0],a?f(a):this.parent().children());return f.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a=="string"?f(a,b):f.makeArray(a&&a.nodeType?[a]:a),d=f.merge(this.get(),c);return this.pushStack(V(c[0])||V(d[0])?d:f.unique(d))},andSelf:function(){return this.add(this.prevObject)}}),f.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return f.dir(a,"parentNode")},parentsUntil:function(a,b,c){return f.dir(a,"parentNode",c)},next:function(a){return f.nth(a,2,"nextSibling")},prev:function(a){return f.nth(a,2,"previousSibling")},nextAll:function(a){return f.dir(a,"nextSibling")},prevAll:function(a){return f.dir(a,"previousSibling")},nextUntil:function(a,b,c){return f.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return f.dir(a,"previousSibling",c)},siblings:function(a){return f.sibling(a.parentNode.firstChild,a)},children:function(a){return f.sibling(a.firstChild)},contents:function(a){return f.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:f.makeArray(a.childNodes)}},function(a,b){f.fn[a]=function(c,d){var e=f.map(this,b,c),g=S.call(arguments);O.test(a)||(d=c),d&&typeof d=="string"&&(e=f.filter(d,e)),e=this.length>1&&!U[a]?f.unique(e):e,(this.length>1||Q.test(d))&&P.test(a)&&(e=e.reverse());return this.pushStack(e,a,g.join(","))}}),f.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?f.find.matchesSelector(b[0],a)?[b[0]]:[]:f.find.matches(a,b)},dir:function(a,c,d){var e=[],g=a[c];while(g&&g.nodeType!==9&&(d===b||g.nodeType!==1||!f(g).is(d)))g.nodeType===1&&e.push(g),g=g[c];return e},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var X=/ jQuery\d+="(?:\d+|null)"/g,Y=/^\s+/,Z=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,$=/<([\w:]+)/,_=/",""],legend:[1,"
                                                                                                                                                                                                                                                                                                                      ","
                                                                                                                                                                                                                                                                                                                      "],thead:[1,"","
                                                                                                                                                                                                                                                                                                                      "],tr:[2,"","
                                                                                                                                                                                                                                                                                                                      "],td:[3,"","
                                                                                                                                                                                                                                                                                                                      "],col:[2,"","
                                                                                                                                                                                                                                                                                                                      "],area:[1,"",""],_default:[0,"",""]};bf.optgroup=bf.option,bf.tbody=bf.tfoot=bf.colgroup=bf.caption=bf.thead,bf.th=bf.td,f.support.htmlSerialize||(bf._default=[1,"div
                                                                                                                                                                                                                                                                                                                      ","
                                                                                                                                                                                                                                                                                                                      "]),f.fn.extend({text:function(a){if(f.isFunction(a))return this.each(function(b){var c=f(this);c.text(a.call(this,b,c.text()))});if(typeof a!="object"&&a!==b)return this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a));return f.text(this)},wrapAll:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapAll(a.call(this,b))});if(this[0]){var b=f(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapInner(a.call(this,b))});return this.each(function(){var b=f(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){f(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){f.nodeName(this,"body")||f(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=f(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,f(arguments[0]).toArray());return a}},remove:function(a,b){for(var c=0,d;(d=this[c])!=null;c++)if(!a||f.filter(a,[d]).length)!b&&d.nodeType===1&&(f.cleanData(d.getElementsByTagName("*")),f.cleanData([d])),d.parentNode&&d.parentNode.removeChild(d);return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&f.cleanData(b.getElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return f.clone(this,a,b)})},html:function(a){if(a===b)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(X,""):null;if(typeof a=="string"&&!bb.test(a)&&(f.support.leadingWhitespace||!Y.test(a))&&!bf[($.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Z,"<$1>");try{for(var c=0,d=this.length;c1&&l0?this.clone(!0):this).get();f(e[h])[b](j),d=d.concat(j +)}return this.pushStack(d,a,e.selector)}}),f.extend({clone:function(a,b,c){var d=a.cloneNode(!0),e,g,h;if((!f.support.noCloneEvent||!f.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!f.isXMLDoc(a)){bi(a,d),e=bj(a),g=bj(d);for(h=0;e[h];++h)bi(e[h],g[h])}if(b){bh(a,d);if(c){e=bj(a),g=bj(d);for(h=0;e[h];++h)bh(e[h],g[h])}}e=g=null;return d},clean:function(a,b,d,e){var g;b=b||c,typeof b.createElement=="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);var h=[],i;for(var j=0,k;(k=a[j])!=null;j++){typeof k=="number"&&(k+="");if(!k)continue;if(typeof k=="string")if(!ba.test(k))k=b.createTextNode(k);else{k=k.replace(Z,"<$1>");var l=($.exec(k)||["",""])[1].toLowerCase(),m=bf[l]||bf._default,n=m[0],o=b.createElement("div");o.innerHTML=m[1]+k+m[2];while(n--)o=o.lastChild;if(!f.support.tbody){var p=_.test(k),q=l==="table"&&!p?o.firstChild&&o.firstChild.childNodes:m[1]===""&&!p?o.childNodes:[];for(i=q.length-1;i>=0;--i)f.nodeName(q[i],"tbody")&&!q[i].childNodes.length&&q[i].parentNode.removeChild(q[i])}!f.support.leadingWhitespace&&Y.test(k)&&o.insertBefore(b.createTextNode(Y.exec(k)[0]),o.firstChild),k=o.childNodes}var r;if(!f.support.appendChecked)if(k[0]&&typeof (r=k.length)=="number")for(i=0;i=0)return b+"px"}}}),f.support.opacity||(f.cssHooks.opacity={get:function(a,b){return bo.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle;c.zoom=1;var e=f.isNaN(b)?"":"alpha(opacity="+b*100+")",g=d&&d.filter||c.filter||"";c.filter=bn.test(g)?g.replace(bn,e):g+" "+e}}),f(function(){f.support.reliableMarginRight||(f.cssHooks.marginRight={get:function(a,b){var c;f.swap(a,{display:"inline-block"},function(){b?c=bx(a,"margin-right","marginRight"):c=a.style.marginRight});return c}})}),c.defaultView&&c.defaultView.getComputedStyle&&(by=function(a,c){var d,e,g;c=c.replace(bp,"-$1").toLowerCase();if(!(e=a.ownerDocument.defaultView))return b;if(g=e.getComputedStyle(a,null))d=g.getPropertyValue(c),d===""&&!f.contains(a.ownerDocument.documentElement,a)&&(d=f.style(a,c));return d}),c.documentElement.currentStyle&&(bz=function(a,b){var c,d=a.currentStyle&&a.currentStyle[b],e=a.runtimeStyle&&a.runtimeStyle[b],f=a.style;!bq.test(d)&&br.test(d)&&(c=f.left,e&&(a.runtimeStyle.left=a.currentStyle.left),f.left=b==="fontSize"?"1em":d||0,d=f.pixelLeft+"px",f.left=c,e&&(a.runtimeStyle.left=e));return d===""?"auto":d}),bx=by||bz,f.expr&&f.expr.filters&&(f.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!f.support.reliableHiddenOffsets&&(a.style.display||f.css(a,"display"))==="none"},f.expr.filters.visible=function(a){return!f.expr.filters.hidden(a)});var bB=/%20/g,bC=/\[\]$/,bD=/\r?\n/g,bE=/#.*$/,bF=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bG=/^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bH=/^(?:about|app|app\-storage|.+\-extension|file|widget):$/,bI=/^(?:GET|HEAD)$/,bJ=/^\/\//,bK=/\?/,bL=/)<[^<]*)*<\/script>/gi,bM=/^(?:select|textarea)/i,bN=/\s+/,bO=/([?&])_=[^&]*/,bP=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,bQ=f.fn.load,bR={},bS={},bT,bU;try{bT=e.href}catch(bV){bT=c.createElement("a"),bT.href="",bT=bT.href}bU=bP.exec(bT.toLowerCase())||[],f.fn.extend({load:function(a,c,d){if(typeof a!="string"&&bQ)return bQ.apply(this,arguments);if(!this.length)return this;var e=a.indexOf(" ");if(e>=0){var g=a.slice(e,a.length);a=a.slice(0,e)}var h="GET";c&&(f.isFunction(c)?(d=c,c=b):typeof c=="object"&&(c=f.param(c,f.ajaxSettings.traditional),h="POST"));var i=this;f.ajax({url:a,type:h,dataType:"html",data:c,complete:function(a,b,c){c=a.responseText,a.isResolved()&&(a.done(function(a){c=a}),i.html(g?f("
                                                                                                                                                                                                                                                                                                                      ").append(c.replace(bL,"")).find(g):c)),d&&i.each(d,[c,b,a])}});return this},serialize:function(){return f.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?f.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bM.test(this.nodeName)||bG.test(this.type))}).map(function(a,b){var c=f(this).val();return c==null?null:f.isArray(c)?f.map(c,function(a,c){return{name:b.name,value:a.replace(bD,"\r\n")}}):{name:b.name,value:c.replace(bD,"\r\n")}}).get()}}),f.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){f.fn[b]=function(a){return this.bind(b,a)}}),f.each(["get","post"],function(a,c){f[c]=function(a,d,e,g){f.isFunction(d)&&(g=g||e,e=d,d=b);return f.ajax({type:c,url:a,data:d,success:e,dataType:g})}}),f.extend({getScript:function(a,c){return f.get(a,b,c,"script")},getJSON:function(a,b,c){return f.get(a,b,c,"json")},ajaxSetup:function(a,b){b?f.extend(!0,a,f.ajaxSettings,b):(b=a,a=f.extend(!0,f.ajaxSettings,b));for(var c in{context:1,url:1})c in b?a[c]=b[c]:c in f.ajaxSettings&&(a[c]=f.ajaxSettings[c]);return a},ajaxSettings:{url:bT,isLocal:bH.test(bU[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":"*/*"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":f.parseJSON,"text xml":f.parseXML}},ajaxPrefilter:bW(bR),ajaxTransport:bW(bS),ajax:function(a,c){function w(a,c,l,m){if(s!==2){s=2,q&&clearTimeout(q),p=b,n=m||"",v.readyState=a?4:0;var o,r,u,w=l?bZ(d,v,l):b,x,y;if(a>=200&&a<300||a===304){if(d.ifModified){if(x=v.getResponseHeader("Last-Modified"))f.lastModified[k]=x;if(y=v.getResponseHeader("Etag"))f.etag[k]=y}if(a===304)c="notmodified",o=!0;else try{r=b$(d,w),c="success",o=!0}catch(z){c="parsererror",u=z}}else{u=c;if(!c||a)c="error",a<0&&(a=0)}v.status=a,v.statusText=c,o?h.resolveWith(e,[r,c,v]):h.rejectWith(e,[v,c,u]),v.statusCode(j),j=b,t&&g.trigger("ajax"+(o?"Success":"Error"),[v,d,o?r:u]),i.resolveWith(e,[v,c]),t&&(g.trigger("ajaxComplete",[v,d]),--f.active||f.event.trigger("ajaxStop"))}}typeof a=="object"&&(c=a,a=b),c=c||{};var d=f.ajaxSetup({},c),e=d.context||d,g=e!==d&&(e.nodeType||e instanceof f)?f(e):f.event,h=f.Deferred(),i=f._Deferred(),j=d.statusCode||{},k,l={},m={},n,o,p,q,r,s=0,t,u,v={readyState:0,setRequestHeader:function(a,b){if(!s){var c=a.toLowerCase();a=m[c]=m[c]||a,l[a]=b}return this},getAllResponseHeaders:function(){return s===2?n:null},getResponseHeader:function(a){var c;if(s===2){if(!o){o={};while(c=bF.exec(n))o[c[1].toLowerCase()]=c[2]}c=o[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){s||(d.mimeType=a);return this},abort:function(a){a=a||"abort",p&&p.abort(a),w(0,a);return this}};h.promise(v),v.success=v.done,v.error=v.fail,v.complete=i.done,v.statusCode=function(a){if(a){var b;if(s<2)for(b in a)j[b]=[j[b],a[b]];else b=a[v.status],v.then(b,b)}return this},d.url=((a||d.url)+"").replace(bE,"").replace(bJ,bU[1]+"//"),d.dataTypes=f.trim(d.dataType||"*").toLowerCase().split(bN),d.crossDomain==null&&(r=bP.exec(d.url.toLowerCase()),d.crossDomain=!(!r||r[1]==bU[1]&&r[2]==bU[2]&&(r[3]||(r[1]==="http:"?80:443))==(bU[3]||(bU[1]==="http:"?80:443)))),d.data&&d.processData&&typeof d.data!="string"&&(d.data=f.param(d.data,d.traditional)),bX(bR,d,c,v);if(s===2)return!1;t=d.global,d.type=d.type.toUpperCase(),d.hasContent=!bI.test(d.type),t&&f.active++===0&&f.event.trigger("ajaxStart");if(!d.hasContent){d.data&&(d.url+=(bK.test(d.url)?"&":"?")+d.data),k=d.url;if(d.cache===!1){var x=f.now(),y=d.url.replace(bO,"$1_="+x);d.url=y+(y===d.url?(bK.test(d.url)?"&":"?")+"_="+x:"")}}(d.data&&d.hasContent&&d.contentType!==!1||c.contentType)&&v.setRequestHeader("Content-Type",d.contentType),d.ifModified&&(k=k||d.url,f.lastModified[k]&&v.setRequestHeader("If-Modified-Since",f.lastModified[k]),f.etag[k]&&v.setRequestHeader("If-None-Match",f.etag[k])),v.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+(d.dataTypes[0]!=="*"?", */*; q=0.01":""):d.accepts["*"]);for(u in d.headers)v.setRequestHeader(u,d.headers[u]);if(d.beforeSend&&(d.beforeSend.call(e,v,d)===!1||s===2)){v.abort();return!1}for(u in{success:1,error:1,complete:1})v[u](d[u]);p=bX(bS,d,c,v);if(!p)w(-1,"No Transport");else{v.readyState=1,t&&g.trigger("ajaxSend",[v,d]),d.async&&d.timeout>0&&(q=setTimeout(function(){v.abort("timeout")},d.timeout));try{s=1,p.send(l,w)}catch(z){status<2?w(-1,z):f.error(z)}}return v},param:function(a,c){var d=[],e=function(a,b){b=f.isFunction(b)?b():b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=f.ajaxSettings.traditional);if(f.isArray(a)||a.jquery&&!f.isPlainObject(a))f.each(a,function(){e(this.name,this.value)});else for(var g in a)bY(g,a[g],c,e);return d.join("&").replace(bB,"+")}}),f.extend({active:0,lastModified:{},etag:{}});var b_=f.now(),ca=/(\=)\?(&|$)|\?\?/i;f.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return f.expando+"_"+b_++}}),f.ajaxPrefilter("json jsonp",function(b,c,d){var e=b.contentType==="application/x-www-form-urlencoded"&&typeof b.data=="string";if(b.dataTypes[0]==="jsonp"||b.jsonp!==!1&&(ca.test(b.url)||e&&ca.test(b.data))){var g,h=b.jsonpCallback=f.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],j=b.url,k=b.data,l="$1"+h+"$2";b.jsonp!==!1&&(j=j.replace(ca,l),b.url===j&&(e&&(k=k.replace(ca,l)),b.data===k&&(j+=(/\?/.test(j)?"&":"?")+b.jsonp+"="+h))),b.url=j,b.data=k,a[h]=function(a){g=[a]},d.always(function(){a[h]=i,g&&f.isFunction(i)&&a[h](g[0])}),b.converters["script json"]=function(){g||f.error(h+" was not called");return g[0]},b.dataTypes[0]="json";return"script"}}),f.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){f.globalEval(a);return a}}}),f.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),f.ajaxTransport("script",function(a){if(a.crossDomain){var d,e=c.head||c.getElementsByTagName("head")[0]||c.documentElement;return{send:function(f,g){d=c.createElement("script"),d.async="async",a.scriptCharset&&(d.charset=a.scriptCharset),d.src=a.url,d.onload=d.onreadystatechange=function(a,c){if(c||!d.readyState||/loaded|complete/.test(d.readyState))d.onload=d.onreadystatechange=null,e&&d.parentNode&&e.removeChild(d),d=b,c||g(200,"success")},e.insertBefore(d,e.firstChild)},abort:function(){d&&d.onload(0,1)}}}});var cb=a.ActiveXObject?function(){for(var a in cd)cd[a](0,1)}:!1,cc=0,cd;f.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&ce()||cf()}:ce,function(a){f.extend(f.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})}(f.ajaxSettings.xhr()),f.support.ajax&&f.ajaxTransport(function(c){if(!c.crossDomain||f.support.cors){var d;return{send:function(e,g){var h=c.xhr(),i,j;c.username?h.open(c.type,c.url,c.async,c.username,c.password):h.open(c.type,c.url,c.async);if(c.xhrFields)for(j in c.xhrFields)h[j]=c.xhrFields[j];c.mimeType&&h.overrideMimeType&&h.overrideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(j in e)h.setRequestHeader(j,e[j])}catch(k){}h.send(c.hasContent&&c.data||null),d=function(a,e){var j,k,l,m,n;try{if(d&&(e||h.readyState===4)){d=b,i&&(h.onreadystatechange=f.noop,cb&&delete cd[i]);if(e)h.readyState!==4&&h.abort();else{j=h.status,l=h.getAllResponseHeaders(),m={},n=h.responseXML,n&&n.documentElement&&(m.xml=n),m.text=h.responseText;try{k=h.statusText}catch(o){k=""}!j&&c.isLocal&&!c.crossDomain?j=m.text?200:404:j===1223&&(j=204)}}}catch(p){e||g(-1,p)}m&&g(j,k,m,l)},!c.async||h.readyState===4?d():(i=++cc,cb&&(cd||(cd={},f(a).unload(cb)),cd[i]=d),h.onreadystatechange=d)},abort:function(){d&&d(0,1)}}}});var cg={},ch,ci,cj=/^(?:toggle|show|hide)$/,ck=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,cl,cm=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],cn,co=a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame;f.fn.extend({show:function(a,b,c){var d,e;if(a||a===0)return this.animate(cr("show",3),a,b,c);for(var g=0,h=this.length;g=e.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),e.animatedProperties[this.prop]=!0;for(g in e.animatedProperties)e.animatedProperties[g]!==!0&&(c=!1);if(c){e.overflow!=null&&!f.support.shrinkWrapBlocks&&f.each(["","X","Y"],function(a,b){d.style["overflow"+b]=e.overflow[a]}),e.hide&&f(d).hide();if(e.hide||e.show)for(var i in e.animatedProperties)f.style(d,i,e.orig[i]);e.complete.call(d)}return!1}e.duration==Infinity?this.now=b:(h=b-this.startTime,this.state=h/e.duration,this.pos=f.easing[e.animatedProperties[this.prop]](this.state,h,0,1,e.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update();return!0}},f.extend(f.fx,{tick:function(){for(var a=f.timers,b=0;b
                                                                                                                                                                                                                                                                                                                      ";f.extend(b.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"}),b.innerHTML=j,a.insertBefore(b,a.firstChild),d=b.firstChild,e=d.firstChild,h=d.nextSibling.firstChild.firstChild,this.doesNotAddBorder=e.offsetTop!==5,this.doesAddBorderForTableAndCells=h.offsetTop===5,e.style.position="fixed",e.style.top="20px",this.supportsFixedPosition=e.offsetTop===20||e.offsetTop===15,e.style.position=e.style.top="",d.style.overflow="hidden",d.style.position="relative",this.subtractsBorderForOverflowNotVisible=e.offsetTop===-5,this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==i,a.removeChild(b),f.offset.initialize=f.noop},bodyOffset:function(a){var b=a.offsetTop,c=a.offsetLeft;f.offset.initialize(),f.offset.doesNotIncludeMarginInBodyOffset&&(b+=parseFloat(f.css(a,"marginTop"))||0,c+=parseFloat(f.css(a,"marginLeft"))||0);return{top:b,left:c}},setOffset:function(a,b,c){var d=f.css(a,"position");d==="static"&&(a.style.position="relative");var e=f(a),g=e.offset(),h=f.css(a,"top"),i=f.css(a,"left"),j=(d==="absolute"||d==="fixed")&&f.inArray("auto",[h,i])>-1,k={},l={},m,n;j?(l=e.position(),m=l.top,n=l.left):(m=parseFloat(h)||0,n=parseFloat(i)||0),f.isFunction(b)&&(b=b.call(a,c,g)),b.top!=null&&(k.top=b.top-g.top+m),b.left!=null&&(k.left=b.left-g.left+n),"using"in b?b.using.call(a,k):e.css(k)}},f.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),d=cu.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(f.css(a,"marginTop"))||0,c.left-=parseFloat(f.css(a,"marginLeft"))||0,d.top+=parseFloat(f.css(b[0],"borderTopWidth"))||0,d.left+=parseFloat(f.css(b[0],"borderLeftWidth"))||0;return{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||c.body;while(a&&!cu.test(a.nodeName)&&f.css(a,"position")==="static")a=a.offsetParent;return a})}}),f.each(["Left","Top"],function(a,c){var d="scroll"+c;f.fn[d]=function(c){var e,g;if(c===b){e=this[0];if(!e)return null;g=cv(e);return g?"pageXOffset"in g?g[a?"pageYOffset":"pageXOffset"]:f.support.boxModel&&g.document.documentElement[d]||g.document.body[d]:e[d]}return this.each(function(){g=cv(this),g?g.scrollTo(a?f(g).scrollLeft():c,a?c:f(g).scrollTop()):this[d]=c})}}),f.each(["Height","Width"],function(a,c){var d=c.toLowerCase();f.fn["inner"+c]=function(){var a=this[0];return a&&a.style?parseFloat(f.css(a,d,"padding")):null},f.fn["outer"+c]=function(a){var b=this[0];return b&&b.style?parseFloat(f.css(b,d,a?"margin":"border")):null},f.fn[d]=function(a){var e=this[0];if(!e)return a==null?null:this;if(f.isFunction(a))return this.each(function(b){var c=f(this);c[d](a.call(this,b,c[d]()))});if(f.isWindow(e)){var g=e.document.documentElement["client"+c];return e.document.compatMode==="CSS1Compat"&&g||e.document.body["client"+c]||g}if(e.nodeType===9)return Math.max(e.documentElement["client"+c],e.body["scroll"+c],e.documentElement["scroll"+c],e.body["offset"+c],e.documentElement["offset"+c]);if(a===b){var h=f.css(e,d),i=parseFloat(h);return f.isNaN(i)?h:i}return this.css(d,typeof a=="string"?a:a+"px")}}),a.jQuery=a.$=f})(window); \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/apiCss/jquery.ztree.core-3.5.js b/alive-admin/target/classes/static/ztree/api/apiCss/jquery.ztree.core-3.5.js new file mode 100644 index 0000000..cd38985 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/apiCss/jquery.ztree.core-3.5.js @@ -0,0 +1,70 @@ +/* + * JQuery zTree core 3.5 + * http://zTree.me/ + * + * Copyright (c) 2010 Hunter.z + * + * Licensed same as jquery - MIT License + * http://www.opensource.org/licenses/mit-license.php + * + * email: hunter.z@263.net + * Date: 2012-11-20 + */ +(function(k){var E,F,G,H,I,J,r={},K={},s={},L={treeId:"",treeObj:null,view:{addDiyDom:null,autoCancelSelected:!0,dblClickExpand:!0,expandSpeed:"fast",fontCss:{},nameIsHTML:!1,selectedMulti:!0,showIcon:!0,showLine:!0,showTitle:!0},data:{key:{children:"children",name:"name",title:"",url:"url"},simpleData:{enable:!1,idKey:"id",pIdKey:"pId",rootPId:null},keep:{parent:!1,leaf:!1}},async:{enable:!1,contentType:"application/x-www-form-urlencoded",type:"post",dataType:"text",url:"",autoParam:[],otherParam:[], +dataFilter:null},callback:{beforeAsync:null,beforeClick:null,beforeDblClick:null,beforeRightClick:null,beforeMouseDown:null,beforeMouseUp:null,beforeExpand:null,beforeCollapse:null,beforeRemove:null,onAsyncError:null,onAsyncSuccess:null,onNodeCreated:null,onClick:null,onDblClick:null,onRightClick:null,onMouseDown:null,onMouseUp:null,onExpand:null,onCollapse:null,onRemove:null}},t=[function(b){var a=b.treeObj,c=e.event;a.bind(c.NODECREATED,function(a,c,h){j.apply(b.callback.onNodeCreated,[a,c,h])}); +a.bind(c.CLICK,function(a,c,h,l,g){j.apply(b.callback.onClick,[c,h,l,g])});a.bind(c.EXPAND,function(a,c,h){j.apply(b.callback.onExpand,[a,c,h])});a.bind(c.COLLAPSE,function(a,c,h){j.apply(b.callback.onCollapse,[a,c,h])});a.bind(c.ASYNC_SUCCESS,function(a,c,h,l){j.apply(b.callback.onAsyncSuccess,[a,c,h,l])});a.bind(c.ASYNC_ERROR,function(a,c,h,l,g,e){j.apply(b.callback.onAsyncError,[a,c,h,l,g,e])})}],u=[function(b){var a=e.event;b.treeObj.unbind(a.NODECREATED).unbind(a.CLICK).unbind(a.EXPAND).unbind(a.COLLAPSE).unbind(a.ASYNC_SUCCESS).unbind(a.ASYNC_ERROR)}], +v=[function(b){var a=g.getCache(b);a||(a={},g.setCache(b,a));a.nodes=[];a.doms=[]}],w=[function(b,a,c,d,f,h){if(c){var l=g.getRoot(b),e=b.data.key.children;c.level=a;c.tId=b.treeId+"_"+ ++l.zId;c.parentTId=d?d.tId:null;if(c[e]&&c[e].length>0){if(typeof c.open=="string")c.open=j.eqs(c.open,"true");c.open=!!c.open;c.isParent=!0;c.zAsync=!0}else{c.open=!1;if(typeof c.isParent=="string")c.isParent=j.eqs(c.isParent,"true");c.isParent=!!c.isParent;c.zAsync=!c.isParent}c.isFirstNode=f;c.isLastNode=h;c.getParentNode= +function(){return g.getNodeCache(b,c.parentTId)};c.getPreNode=function(){return g.getPreNode(b,c)};c.getNextNode=function(){return g.getNextNode(b,c)};c.isAjaxing=!1;g.fixPIdKeyValue(b,c)}}],x=[function(b){var a=b.target,c=g.getSetting(b.data.treeId),d="",f=null,h="",l="",i=null,n=null,q=null;if(j.eqs(b.type,"mousedown"))l="mousedown";else if(j.eqs(b.type,"mouseup"))l="mouseup";else if(j.eqs(b.type,"contextmenu"))l="contextmenu";else if(j.eqs(b.type,"click"))if(j.eqs(a.tagName,"span")&&a.getAttribute("treeNode"+ +e.id.SWITCH)!==null)d=(k(a).parent("li").get(0)||k(a).parentsUntil("li").parent().get(0)).id,h="switchNode";else{if(q=j.getMDom(c,a,[{tagName:"a",attrName:"treeNode"+e.id.A}]))d=(k(q).parent("li").get(0)||k(q).parentsUntil("li").parent().get(0)).id,h="clickNode"}else if(j.eqs(b.type,"dblclick")&&(l="dblclick",q=j.getMDom(c,a,[{tagName:"a",attrName:"treeNode"+e.id.A}])))d=(k(q).parent("li").get(0)||k(q).parentsUntil("li").parent().get(0)).id,h="switchNode";if(l.length>0&&d.length==0&&(q=j.getMDom(c, +a,[{tagName:"a",attrName:"treeNode"+e.id.A}])))d=(k(q).parent("li").get(0)||k(q).parentsUntil("li").parent().get(0)).id;if(d.length>0)switch(f=g.getNodeCache(c,d),h){case "switchNode":f.isParent?j.eqs(b.type,"click")||j.eqs(b.type,"dblclick")&&j.apply(c.view.dblClickExpand,[c.treeId,f],c.view.dblClickExpand)?i=E:h="":h="";break;case "clickNode":i=F}switch(l){case "mousedown":n=G;break;case "mouseup":n=H;break;case "dblclick":n=I;break;case "contextmenu":n=J}return{stop:!1,node:f,nodeEventType:h,nodeEventCallback:i, +treeEventType:l,treeEventCallback:n}}],y=[function(b){var a=g.getRoot(b);a||(a={},g.setRoot(b,a));a[b.data.key.children]=[];a.expandTriggerFlag=!1;a.curSelectedList=[];a.noSelection=!0;a.createdNodes=[];a.zId=0;a._ver=(new Date).getTime()}],z=[],A=[],B=[],C=[],D=[],g={addNodeCache:function(b,a){g.getCache(b).nodes[g.getNodeCacheId(a.tId)]=a},getNodeCacheId:function(b){return b.substring(b.lastIndexOf("_")+1)},addAfterA:function(b){A.push(b)},addBeforeA:function(b){z.push(b)},addInnerAfterA:function(b){C.push(b)}, +addInnerBeforeA:function(b){B.push(b)},addInitBind:function(b){t.push(b)},addInitUnBind:function(b){u.push(b)},addInitCache:function(b){v.push(b)},addInitNode:function(b){w.push(b)},addInitProxy:function(b){x.push(b)},addInitRoot:function(b){y.push(b)},addNodesData:function(b,a,c){var d=b.data.key.children;a[d]||(a[d]=[]);if(a[d].length>0)a[d][a[d].length-1].isLastNode=!1,i.setNodeLineIcos(b,a[d][a[d].length-1]);a.isParent=!0;a[d]=a[d].concat(c)},addSelectedNode:function(b,a){var c=g.getRoot(b);g.isSelectedNode(b, +a)||c.curSelectedList.push(a)},addCreatedNode:function(b,a){(b.callback.onNodeCreated||b.view.addDiyDom)&&g.getRoot(b).createdNodes.push(a)},addZTreeTools:function(b){D.push(b)},exSetting:function(b){k.extend(!0,L,b)},fixPIdKeyValue:function(b,a){b.data.simpleData.enable&&(a[b.data.simpleData.pIdKey]=a.parentTId?a.getParentNode()[b.data.simpleData.idKey]:b.data.simpleData.rootPId)},getAfterA:function(b,a,c){for(var d=0,f=A.length;d-1&&h.push(a[l]),h=h.concat(g.getNodesByParamFuzzy(b,a[l][f],c,d));return h},getNodesByFilter:function(b,a,c,d,f){if(!a)return d?null:[];for(var h=b.data.key.children,l=d?null: +[],e=0,i=a.length;e0)},clone:function(b){if(b===null)return null;var a=b.constructor===Array?[]:{},c;for(c in b)b.hasOwnProperty(c)&&(a[c]=typeof b[c]==="object"?arguments.callee(b[c]):b[c]);return a},eqs:function(b,a){return b.toLowerCase()===a.toLowerCase()},isArray:function(b){return Object.prototype.toString.apply(b)=== +"[object Array]"},getMDom:function(b,a,c){if(!a)return null;for(;a&&a.id!==b.treeId;){for(var d=0,f=c.length;a.tagName&&d0&&(m=i.appendNodes(b,a+1,o[j],o,f,h&&o.open));h&&(i.makeDOMNodeMainBefore(e,b,o),i.makeDOMNodeLine(e,b,o),g.getBeforeA(b,o,e),i.makeDOMNodeNameBefore(e,b,o),g.getInnerBeforeA(b,o,e),i.makeDOMNodeIcon(e,b,o),g.getInnerAfterA(b,o,e),i.makeDOMNodeNameAfter(e,b,o),g.getAfterA(b,o,e),o.isParent&&o.open&&i.makeUlHtml(b,o,e,m.join("")), +i.makeDOMNodeMainAfter(e,b,o),g.addCreatedNode(b,o))}return e},appendParentULDom:function(b,a){var c=[],d=k("#"+a.tId),f=k("#"+a.tId+e.id.UL),h=i.appendNodes(b,a.level+1,a[b.data.key.children],a,!1,!0);i.makeUlHtml(b,a,c,h.join(""));!d.get(0)&&a.parentTId&&(i.appendParentULDom(b,a.getParentNode()),d=k("#"+a.tId));f.get(0)&&f.remove();d.append(c.join(""))},asyncNode:function(b,a,c,d){var f,h;if(a&&!a.isParent)return j.apply(d),!1;else if(a&&a.isAjaxing)return!1;else if(j.apply(b.callback.beforeAsync, +[b.treeId,a],!0)==!1)return j.apply(d),!1;if(a)a.isAjaxing=!0,k("#"+a.tId+e.id.ICON).attr({style:"","class":"button ico_loading"});var l=b.async.contentType=="application/json",p=l?"{":"",n="";for(f=0,h=b.async.autoParam.length;a&&f1&&(o=m[1],m=m[0]);l?(n=typeof a[m]=="string"?'"':"",p+='"'+o+('":'+n+a[m]).replace(/'/g,"\\'")+n+","):p+=o+("="+a[m]).replace(/&/g,"%26")+"&"}if(j.isArray(b.async.otherParam))for(f=0,h=b.async.otherParam.length;f< +h;f+=2)l?(n=typeof b.async.otherParam[f+1]=="string"?'"':"",p+='"'+b.async.otherParam[f]+('":'+n+b.async.otherParam[f+1]).replace(/'/g,"\\'")+n+","):p+=b.async.otherParam[f]+("="+b.async.otherParam[f+1]).replace(/&/g,"%26")+"&";else for(var r in b.async.otherParam)l?(n=typeof b.async.otherParam[r]=="string"?'"':"",p+='"'+r+('":'+n+b.async.otherParam[r]).replace(/'/g,"\\'")+n+","):p+=r+("="+b.async.otherParam[r]).replace(/&/g,"%26")+"&";p.length>1&&(p=p.substring(0,p.length-1));l&&(p+="}");var s=g.getRoot(b)._ver; +k.ajax({contentType:b.async.contentType,type:b.async.type,url:j.apply(b.async.url,[b.treeId,a],b.async.url),data:p,dataType:b.async.dataType,success:function(f){if(s==g.getRoot(b)._ver){var h=[];try{h=!f||f.length==0?[]:typeof f=="string"?eval("("+f+")"):f}catch(l){h=f}if(a)a.isAjaxing=null,a.zAsync=!0;i.setNodeLineIcos(b,a);h&&h!==""?(h=j.apply(b.async.dataFilter,[b.treeId,a,h],h),i.addNodes(b,a,h?j.clone(h):[],!!c)):i.addNodes(b,a,[],!!c);b.treeObj.trigger(e.event.ASYNC_SUCCESS,[b.treeId,a,f]); +j.apply(d)}},error:function(c,d,f){if(s==g.getRoot(b)._ver){if(a)a.isAjaxing=null;i.setNodeLineIcos(b,a);b.treeObj.trigger(e.event.ASYNC_ERROR,[b.treeId,a,c,d,f])}}});return!0},cancelPreSelectedNode:function(b,a){for(var c=g.getRoot(b).curSelectedList,d=c.length-1;d>=0;d--)if(!a||a===c[d])if(k("#"+c[d].tId+e.id.A).removeClass(e.node.CURSELECTED),a){g.removeSelectedNode(b,a);break}if(!a)g.getRoot(b).curSelectedList=[]},createNodeCallback:function(b){if(b.callback.onNodeCreated||b.view.addDiyDom)for(var a= +g.getRoot(b);a.createdNodes.length>0;){var c=a.createdNodes.shift();j.apply(b.view.addDiyDom,[b.treeId,c]);b.callback.onNodeCreated&&b.treeObj.trigger(e.event.NODECREATED,[b.treeId,c])}},createNodes:function(b,a,c,d){if(c&&c.length!=0){var f=g.getRoot(b),h=b.data.key.children,h=!d||d.open||!!k("#"+d[h][0].tId).get(0);f.createdNodes=[];a=i.appendNodes(b,a,c,d,!0,h);d?(d=k("#"+d.tId+e.id.UL),d.get(0)&&d.append(a.join(""))):b.treeObj.append(a.join(""));i.createNodeCallback(b)}},destroy:function(b){b&& +(g.initCache(b),g.initRoot(b),m.unbindTree(b),m.unbindEvent(b),b.treeObj.empty())},expandCollapseNode:function(b,a,c,d,f){var h=g.getRoot(b),l=b.data.key.children;if(a){if(h.expandTriggerFlag){var p=f,f=function(){p&&p();a.open?b.treeObj.trigger(e.event.EXPAND,[b.treeId,a]):b.treeObj.trigger(e.event.COLLAPSE,[b.treeId,a])};h.expandTriggerFlag=!1}if(!a.open&&a.isParent&&(!k("#"+a.tId+e.id.UL).get(0)||a[l]&&a[l].length>0&&!k("#"+a[l][0].tId).get(0)))i.appendParentULDom(b,a),i.createNodeCallback(b); +if(a.open==c)j.apply(f,[]);else{var c=k("#"+a.tId+e.id.UL),h=k("#"+a.tId+e.id.SWITCH),n=k("#"+a.tId+e.id.ICON);a.isParent?(a.open=!a.open,a.iconOpen&&a.iconClose&&n.attr("style",i.makeNodeIcoStyle(b,a)),a.open?(i.replaceSwitchClass(a,h,e.folder.OPEN),i.replaceIcoClass(a,n,e.folder.OPEN),d==!1||b.view.expandSpeed==""?(c.show(),j.apply(f,[])):a[l]&&a[l].length>0?c.slideDown(b.view.expandSpeed,f):(c.show(),j.apply(f,[]))):(i.replaceSwitchClass(a,h,e.folder.CLOSE),i.replaceIcoClass(a,n,e.folder.CLOSE), +d==!1||b.view.expandSpeed==""||!(a[l]&&a[l].length>0)?(c.hide(),j.apply(f,[])):c.slideUp(b.view.expandSpeed,f))):j.apply(f,[])}}else j.apply(f,[])},expandCollapseParentNode:function(b,a,c,d,f){a&&(a.parentTId?(i.expandCollapseNode(b,a,c,d),a.parentTId&&i.expandCollapseParentNode(b,a.getParentNode(),c,d,f)):i.expandCollapseNode(b,a,c,d,f))},expandCollapseSonNode:function(b,a,c,d,f){var h=g.getRoot(b),e=b.data.key.children,h=a?a[e]:h[e],e=a?!1:d,j=g.getRoot(b).expandTriggerFlag;g.getRoot(b).expandTriggerFlag= +!1;if(h)for(var k=0,m=h.length;k/g,">");b.push("",d,"")},makeDOMNodeLine:function(b, +a,c){b.push("")},makeDOMNodeMainAfter:function(b){b.push("")},makeDOMNodeMainBefore:function(b,a,c){b.push("
                                                                                                                                                                                                                                                                                                                    • ")},makeDOMNodeNameAfter:function(b){b.push("")},makeDOMNodeNameBefore:function(b,a,c){var d=g.getNodeTitle(a,c),f=i.makeNodeUrl(a,c),h=i.makeNodeFontCss(a,c),l=[],k;for(k in h)l.push(k,":",h[k], +";");b.push("0?"href='"+f+"'":""," target='",i.makeNodeTarget(c),"' style='",l.join(""),"'");j.apply(a.view.showTitle,[a.treeId,c],a.view.showTitle)&&d&&b.push("title='",d.replace(/'/g,"'").replace(//g,">"),"'");b.push(">")},makeNodeFontCss:function(b,a){var c=j.apply(b.view.fontCss,[b.treeId,a],b.view.fontCss);return c&&typeof c!="function"?c:{}},makeNodeIcoClass:function(b, +a){var c=["ico"];a.isAjaxing||(c[0]=(a.iconSkin?a.iconSkin+"_":"")+c[0],a.isParent?c.push(a.open?e.folder.OPEN:e.folder.CLOSE):c.push(e.folder.DOCU));return"button "+c.join("_")},makeNodeIcoStyle:function(b,a){var c=[];if(!a.isAjaxing){var d=a.isParent&&a.iconOpen&&a.iconClose?a.open?a.iconOpen:a.iconClose:a.icon;d&&c.push("background:url(",d,") 0 0 no-repeat;");(b.view.showIcon==!1||!j.apply(b.view.showIcon,[b.treeId,a],!0))&&c.push("width:0px;height:0px;")}return c.join("")},makeNodeLineClass:function(b, +a){var c=[];b.view.showLine?a.level==0&&a.isFirstNode&&a.isLastNode?c.push(e.line.ROOT):a.level==0&&a.isFirstNode?c.push(e.line.ROOTS):a.isLastNode?c.push(e.line.BOTTOM):c.push(e.line.CENTER):c.push(e.line.NOLINE);a.isParent?c.push(a.open?e.folder.OPEN:e.folder.CLOSE):c.push(e.folder.DOCU);return i.makeNodeLineClassEx(a)+c.join("_")},makeNodeLineClassEx:function(b){return"button level"+b.level+" switch "},makeNodeTarget:function(b){return b.target||"_blank"},makeNodeUrl:function(b,a){var c=b.data.key.url; +return a[c]?a[c]:null},makeUlHtml:function(b,a,c,d){c.push("
                                                                                                                                                                                                                                                                                                                        ");c.push(d);c.push("
                                                                                                                                                                                                                                                                                                                      ")},makeUlLineClass:function(b,a){return b.view.showLine&&!a.isLastNode?e.line.LINE:""},removeChildNodes:function(b,a){if(a){var c=b.data.key.children,d=a[c];if(d){for(var f=0,h=d.length;f0)a[c][0].isFirstNode=!0},setLastNode:function(b,a){var c=b.data.key.children,d=a[c].length;if(d>0)a[c][d-1].isLastNode=!0},removeNode:function(b,a){var c=g.getRoot(b),d=b.data.key.children,f=a.parentTId?a.getParentNode():c;a.isFirstNode=!1;a.isLastNode= +!1;a.getPreNode=function(){return null};a.getNextNode=function(){return null};if(g.getNodeCache(b,a.tId)){k("#"+a.tId).remove();g.removeNodeCache(b,a);g.removeSelectedNode(b,a);for(var h=0,l=f[d].length;h0){var n=f[d][h-1],h=k("#"+n.tId+e.id.UL),l=k("#"+n.tId+e.id.SWITCH);j=k("#"+n.tId+e.id.ICON);f==c?f[d].length==1?i.replaceSwitchClass(n,l,e.line.ROOT):(c=k("#"+f[d][0].tId+e.id.SWITCH),i.replaceSwitchClass(f[d][0],c,e.line.ROOTS),i.replaceSwitchClass(n,l,e.line.BOTTOM)):i.replaceSwitchClass(n,l,e.line.BOTTOM);h.removeClass(e.line.LINE)}}},replaceIcoClass:function(b,a,c){if(a&&!b.isAjaxing&&(b=a.attr("class"),b!=void 0)){b=b.split("_"); +switch(c){case e.folder.OPEN:case e.folder.CLOSE:case e.folder.DOCU:b[b.length-1]=c}a.attr("class",b.join("_"))}},replaceSwitchClass:function(b,a,c){if(a){var d=a.attr("class");if(d!=void 0){d=d.split("_");switch(c){case e.line.ROOT:case e.line.ROOTS:case e.line.CENTER:case e.line.BOTTOM:case e.line.NOLINE:d[0]=i.makeNodeLineClassEx(b)+c;break;case e.folder.OPEN:case e.folder.CLOSE:case e.folder.DOCU:d[1]=c}a.attr("class",d.join("_"));c!==e.folder.DOCU?a.removeAttr("disabled"):a.attr("disabled","disabled")}}}, +selectNode:function(b,a,c){c||i.cancelPreSelectedNode(b);k("#"+a.tId+e.id.A).addClass(e.node.CURSELECTED);g.addSelectedNode(b,a)},setNodeFontCss:function(b,a){var c=k("#"+a.tId+e.id.A),d=i.makeNodeFontCss(b,a);d&&c.css(d)},setNodeLineIcos:function(b,a){if(a){var c=k("#"+a.tId+e.id.SWITCH),d=k("#"+a.tId+e.id.UL),f=k("#"+a.tId+e.id.ICON),h=i.makeUlLineClass(b,a);h.length==0?d.removeClass(e.line.LINE):d.addClass(h);c.attr("class",i.makeNodeLineClass(b,a));a.isParent?c.removeAttr("disabled"):c.attr("disabled", +"disabled");f.removeAttr("style");f.attr("style",i.makeNodeIcoStyle(b,a));f.attr("class",i.makeNodeIcoClass(b,a))}},setNodeName:function(b,a){var c=g.getNodeTitle(b,a),d=k("#"+a.tId+e.id.SPAN);d.empty();b.view.nameIsHTML?d.html(g.getNodeName(b,a)):d.text(g.getNodeName(b,a));j.apply(b.view.showTitle,[b.treeId,a],b.view.showTitle)&&k("#"+a.tId+e.id.A).attr("title",!c?"":c)},setNodeTarget:function(b){k("#"+b.tId+e.id.A).attr("target",i.makeNodeTarget(b))},setNodeUrl:function(b,a){var c=k("#"+a.tId+e.id.A), +d=i.makeNodeUrl(b,a);d==null||d.length==0?c.removeAttr("href"):c.attr("href",d)},switchNode:function(b,a){a.open||!j.canAsync(b,a)?i.expandCollapseNode(b,a,!a.open):b.async.enable?i.asyncNode(b,a)||i.expandCollapseNode(b,a,!a.open):a&&i.expandCollapseNode(b,a,!a.open)}};k.fn.zTree={consts:{event:{NODECREATED:"ztree_nodeCreated",CLICK:"ztree_click",EXPAND:"ztree_expand",COLLAPSE:"ztree_collapse",ASYNC_SUCCESS:"ztree_async_success",ASYNC_ERROR:"ztree_async_error"},id:{A:"_a",ICON:"_ico",SPAN:"_span", +SWITCH:"_switch",UL:"_ul"},line:{ROOT:"root",ROOTS:"roots",CENTER:"center",BOTTOM:"bottom",NOLINE:"noline",LINE:"line"},folder:{OPEN:"open",CLOSE:"close",DOCU:"docu"},node:{CURSELECTED:"curSelectedNode"}},_z:{tools:j,view:i,event:m,data:g},getZTreeObj:function(b){return(b=g.getZTreeTools(b))?b:null},destroy:function(b){if(b&&b.length>0)i.destroy(g.getSetting(b));else for(var a in r)i.destroy(r[a])},init:function(b,a,c){var d=j.clone(L);k.extend(!0,d,a);d.treeId=b.attr("id");d.treeObj=b;d.treeObj.empty(); +r[d.treeId]=d;if(k.browser.msie&&parseInt(k.browser.version)<7)d.view.expandSpeed="";g.initRoot(d);b=g.getRoot(d);a=d.data.key.children;c=c?j.clone(j.isArray(c)?c:[c]):[];b[a]=d.data.simpleData.enable?g.transformTozTreeFormat(d,c):c;g.initCache(d);m.unbindTree(d);m.bindTree(d);m.unbindEvent(d);m.bindEvent(d);c={setting:d,addNodes:function(a,b,c){function e(){i.addNodes(d,a,g,c==!0)}if(!b)return null;a||(a=null);if(a&&!a.isParent&&d.data.keep.leaf)return null;var g=j.clone(j.isArray(b)?b:[b]);j.canAsync(d, +a)?i.asyncNode(d,a,c,e):e();return g},cancelSelectedNode:function(a){i.cancelPreSelectedNode(this.setting,a)},destroy:function(){i.destroy(this.setting)},expandAll:function(a){a=!!a;i.expandCollapseSonNode(this.setting,null,a,!0);return a},expandNode:function(a,b,c,e,m){if(!a||!a.isParent)return null;b!==!0&&b!==!1&&(b=!a.open);if((m=!!m)&&b&&j.apply(d.callback.beforeExpand,[d.treeId,a],!0)==!1)return null;else if(m&&!b&&j.apply(d.callback.beforeCollapse,[d.treeId,a],!0)==!1)return null;b&&a.parentTId&& +i.expandCollapseParentNode(this.setting,a.getParentNode(),b,!1);if(b===a.open&&!c)return null;g.getRoot(d).expandTriggerFlag=m;if(c)i.expandCollapseSonNode(this.setting,a,b,!0,function(){if(e!==!1)try{k("#"+a.tId).focus().blur()}catch(b){}});else if(a.open=!b,i.switchNode(this.setting,a),e!==!1)try{k("#"+a.tId).focus().blur()}catch(q){}return b},getNodes:function(){return g.getNodes(this.setting)},getNodeByParam:function(a,b,c){return!a?null:g.getNodeByParam(this.setting,c?c[this.setting.data.key.children]: +g.getNodes(this.setting),a,b)},getNodeByTId:function(a){return g.getNodeCache(this.setting,a)},getNodesByParam:function(a,b,c){return!a?null:g.getNodesByParam(this.setting,c?c[this.setting.data.key.children]:g.getNodes(this.setting),a,b)},getNodesByParamFuzzy:function(a,b,c){return!a?null:g.getNodesByParamFuzzy(this.setting,c?c[this.setting.data.key.children]:g.getNodes(this.setting),a,b)},getNodesByFilter:function(a,b,c,d){b=!!b;return!a||typeof a!="function"?b?null:[]:g.getNodesByFilter(this.setting, +c?c[this.setting.data.key.children]:g.getNodes(this.setting),a,b,d)},getNodeIndex:function(a){if(!a)return null;for(var b=d.data.key.children,c=a.parentTId?a.getParentNode():g.getRoot(this.setting),e=0,i=c[b].length;e0?i.createNodes(d,0,b[a]):d.async.enable&&d.async.url&&d.async.url!==""&&i.asyncNode(d);return c}};var M=k.fn.zTree,e=M.consts})(jQuery); diff --git a/alive-admin/target/classes/static/ztree/api/apiCss/zTreeStyleForApi.css b/alive-admin/target/classes/static/ztree/api/apiCss/zTreeStyleForApi.css new file mode 100644 index 0000000..bb4717b --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/apiCss/zTreeStyleForApi.css @@ -0,0 +1,49 @@ +/*------------------------------------- +zTree Style + +version: 3.0 +author: Hunter.z +email: hunter.z@263.net +website: http://code.google.com/p/jquerytree/ + +-------------------------------------*/ + +.ztree * {padding:0; margin:0; font-size:12px; font-family: Verdana, Arial, Helvetica, AppleGothic, sans-serif} +.ztree {margin:0; padding:5px; color:#333} +.ztree li{padding:0; margin:0; list-style:none; line-height:14px; text-align:left; white-space:nowrap} +.ztree li ul{ margin:0; padding:0 0 0 18px} +.ztree li ul.line{ background:url(./img/line_conn.gif) 0 0 repeat-y;} + +.ztree li a {padding:1px 3px 0 0; margin:0; cursor:pointer; color:#333; height:17px; text-decoration:none; vertical-align:top; display: inline-block} +.ztree li a:hover {text-decoration:none} +.ztree li a.curSelectedNode {padding-top:0px; background-color:#FFE6B0; color:black; height:16px; border:1px #FFB951 solid;} +.ztree li a.curSelectedNode_Edit {padding-top:0px; background-color:#FFE6B0; color:black; height:16px; border:1px #FFB951 solid; opacity:0.8; filter:alpha(opacity=80)} +.ztree li a.tmpTargetNode_inner {padding-top:0px; background-color:#316AC5; color:white; height:16px; border:1px #316AC5 solid; opacity:0.8; filter:alpha(opacity=80)} +.ztree li a.tmpTargetNode_prev {} +.ztree li a.tmpTargetNode_next {} +.ztree li a input.rename {height:14px; width:80px; padding:0; margin:0; + font-size:12px; border:1px #7EC4CC solid; *border:0px} +.ztree li span {line-height:16px; margin-right: 2px} +.ztree li span.button {line-height:0; margin:0;width:16px; height:16px; display: inline-block; vertical-align:middle; + border:0 none; cursor: pointer; + background-color:transparent; background-repeat:no-repeat; background-attachment: scroll; + background-image:url("./img/zTreeStandard.png"); *background-image:url("./img/zTreeStandard.gif")} + +.ztree li span.button.switch {width:1px; height:18px; visibility: hidden} + +.zTreeDragUL {margin:0; padding:0; position:absolute; background-color:#cfcfcf; border:1px #00B83F dotted; opacity:0.8; filter:alpha(opacity=80)} +.zTreeMask {z-index:10000; background-color:#cfcfcf; opacity:0.0; filter:alpha(opacity=0); position:absolute} + +/* level 等级样式*/ +/*.ztree li button.level0 { + display:none; +} +.ztree li ul.level0 { + padding:0; + background:none; +}*/ + +.ztree li span.button.core_ico_docu{margin-right:2px; background-position:-126px 0; vertical-align:top; *vertical-align:middle} +.ztree li span.button.check_ico_docu{margin-right:2px; background-position:-126px -16px; vertical-align:top; *vertical-align:middle} +.ztree li span.button.edit_ico_docu{margin-right:2px; background-position:-126px -32px; vertical-align:top; *vertical-align:middle} +.ztree li span.button.hide_ico_docu{margin-right:2px; background-position:-160px 0; vertical-align:top; *vertical-align:middle} diff --git a/alive-admin/target/classes/static/ztree/api/cn/fn.zTree._z.html b/alive-admin/target/classes/static/ztree/api/cn/fn.zTree._z.html new file mode 100644 index 0000000..7af3e40 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/fn.zTree._z.html @@ -0,0 +1,13 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      JSON$.fn.zTree._z

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.core 核心 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      zTree v3.x 内部的全部方法都可以通过 $.fn.zTree._z 进行调用,开放出来是为了更便于大家开发制作自己的 zTree 插件。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      如无特殊需求请勿使用此对象,以及修改此对象内部的各个函数。

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/fn.zTree.destroy.html b/alive-admin/target/classes/static/ztree/api/cn/fn.zTree.destroy.html new file mode 100644 index 0000000..7105807 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/fn.zTree.destroy.html @@ -0,0 +1,28 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(treeId)$.fn.zTree.destroy

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.core 核心 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      从 zTree v3.4 开始提供销毁 zTree 的方法。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1、用此方法可以销毁指定 treeId 的 zTree,也可以销毁当前页面全部的 zTree。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2、销毁指定 treeId 的 zTree 也可以使用 zTreeObj.destroy() 方法。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      3、重新使用已经被销毁的树,必须要使用 init 方法进行初始化。

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function 参数说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      zTree 的 DOM 容器的 id

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      省略 treeId,表示销毁当前页面全部的 zTree

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      目前无任何返回值

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      function 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 销毁 id 为 "treeDemo" 的 zTree

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      $.fn.zTree.destroy("treeDemo");
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2. 销毁全部 的 zTree

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      $.fn.zTree.destroy();
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/fn.zTree.getZTreeObj.html b/alive-admin/target/classes/static/ztree/api/cn/fn.zTree.getZTreeObj.html new file mode 100644 index 0000000..b1d1db4 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/fn.zTree.getZTreeObj.html @@ -0,0 +1,24 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(treeId)$.fn.zTree.getZTreeObj

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.core 核心 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      zTree v3.x 专门提供的根据 treeId 获取 zTree 对象的方法。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      必须在初始化 zTree 以后才可以使用此方法。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      有了这个方法,用户不再需要自己设定全局变量来保存 zTree 初始化后得到的对象了,而且在所有回调函数中全都会返回 treeId 属性,用户可以随时使用此方法获取需要进行操作的 zTree 对象

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function 参数说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      zTree 的 DOM 容器的 id

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值JSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      zTree 对象,提供操作 zTree 的各种方法,对于通过 js 操作 zTree 来说必须通过此对象

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      function 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 获取 id 为 tree 的 zTree 对象

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/fn.zTree.init.html b/alive-admin/target/classes/static/ztree/api/cn/fn.zTree.init.html new file mode 100644 index 0000000..8db6d2c --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/fn.zTree.init.html @@ -0,0 +1,74 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(obj, zSetting, zNodes)$.fn.zTree.init

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.core 核心 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      zTree 初始化方法,创建 zTree 必须使用此方法

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1、页面需要进行 W3C 申明,例如:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2、需要首先加载 jquery-1.4.2.js 或其他更高版本的 jQuery 。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      3、需要加载 jquery-ztree.core-3.0.js,如果需要用到 编辑功能 或 checkbox / radio 还需要分别加载 jquery-ztree.exedit-3.0.js 和 jquery-ztree.excheck-3.0.js 。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      4、需要加载 zTreeStyle.css 以及 zTreeStyle 目录下的 img 文件。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      5、如果需要使用自定义图标请参考相应的Demo。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      6、请注意设置 zTree 的容器样式 class="ztree",其中 "ztree" 这个 className,可以根据需要随意修改,别忘了修改 css 中对应名字就是了,对于容器如果需要增加其他特殊样式,可根据自己的需要进行修改。

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function 参数说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      objjQuery Object

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      用于展现 zTree 的 DOM 容器

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      zSettingJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      zTree 的配置数据,具体请参考 “setting 配置详解”中的各个属性详细说明

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      zNodesArray(JSON) / JSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      zTree 的节点数据,具体请参考 “treeNode 节点数据详解”中的各个属性详细说明

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1、v3.x 支持单独添加一个节点,即如果只新增一个节点,不用必须包在数组中

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2、如果需要异步加载根节点,可以设置为 null 或 [ ]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      3、使用简单数据模式,请参考 setting.data.simpleData 内的属性说明

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值JSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      zTree 对象,提供操作 zTree 的各种方法,对于通过 js 操作 zTree 来说必须通过此对象

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      如果不需要自行设定全局变量保存,可以利用 $.fn.zTree.getZTreeObj 方法随时获取

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      setting & function 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 简单创建 zTree 演示

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      <!DOCTYPE html>
                                                                                                                                                                                                                                                                                                                      +<HTML>
                                                                                                                                                                                                                                                                                                                      + <HEAD>
                                                                                                                                                                                                                                                                                                                      +  <TITLE> ZTREE DEMO </TITLE>
                                                                                                                                                                                                                                                                                                                      +  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
                                                                                                                                                                                                                                                                                                                      +  <link rel="stylesheet" href="zTreeStyle/zTreeStyle.css" type="text/css">
                                                                                                                                                                                                                                                                                                                      +  <script type="text/javascript" src="jquery-1.4.2.js"></script>
                                                                                                                                                                                                                                                                                                                      +  <script type="text/javascript" src="jquery.ztree.core-3.5.js"></script>
                                                                                                                                                                                                                                                                                                                      +<!--
                                                                                                                                                                                                                                                                                                                      +  <script type="text/javascript" src="jquery.ztree.excheck-3.5.js"></script>
                                                                                                                                                                                                                                                                                                                      +  <script type="text/javascript" src="jquery.ztree.exedit-3.5.js"></script>
                                                                                                                                                                                                                                                                                                                      +-->
                                                                                                                                                                                                                                                                                                                      +  <SCRIPT type="text/javascript" >
                                                                                                                                                                                                                                                                                                                      +	var zTreeObj,
                                                                                                                                                                                                                                                                                                                      +	setting = {
                                                                                                                                                                                                                                                                                                                      +		view: {
                                                                                                                                                                                                                                                                                                                      +			selectedMulti: false
                                                                                                                                                                                                                                                                                                                      +		}
                                                                                                                                                                                                                                                                                                                      +	},
                                                                                                                                                                                                                                                                                                                      +	zTreeNodes = [
                                                                                                                                                                                                                                                                                                                      +		{"name":"网站导航", open:true, children: [
                                                                                                                                                                                                                                                                                                                      +			{ "name":"google", "url":"http://g.cn", "target":"_blank"},
                                                                                                                                                                                                                                                                                                                      +			{ "name":"baidu", "url":"http://baidu.com", "target":"_blank"},
                                                                                                                                                                                                                                                                                                                      +			{ "name":"sina", "url":"http://www.sina.com.cn", "target":"_blank"}
                                                                                                                                                                                                                                                                                                                      +			]
                                                                                                                                                                                                                                                                                                                      +		}
                                                                                                                                                                                                                                                                                                                      +	];
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +	$(document).ready(function(){
                                                                                                                                                                                                                                                                                                                      +		zTreeObj = $.fn.zTree.init($("#tree"), setting, zTreeNodes);
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +	});
                                                                                                                                                                                                                                                                                                                      +  </SCRIPT>
                                                                                                                                                                                                                                                                                                                      + </HEAD>
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +<BODY>
                                                                                                                                                                                                                                                                                                                      +<ul id="tree" class="ztree" style="width:230px; overflow:auto;"></ul>
                                                                                                                                                                                                                                                                                                                      + </BODY>
                                                                                                                                                                                                                                                                                                                      +</HTML>
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/setting.async.autoParam.html b/alive-admin/target/classes/static/ztree/api/cn/setting.async.autoParam.html new file mode 100644 index 0000000..cf0f4d2 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/setting.async.autoParam.html @@ -0,0 +1,39 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Array(String)setting.async.autoParam

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.core 核心 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      异步加载时需要自动提交父节点属性的参数。[setting.async.enable = true 时生效]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值:[ ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Array(String) 格式说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1、将需要作为参数提交的属性名称,制作成 Array 即可,例如:["id", "name"]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2、可以设置提交时的参数名称,例如 server 只接受 zId : ["id=zId"]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      setting 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 设置 id 属性为自动提交的参数

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	async: {
                                                                                                                                                                                                                                                                                                                      +		enable: true,
                                                                                                                                                                                                                                                                                                                      +		url: "http://host/getNode.php",
                                                                                                                                                                                                                                                                                                                      +		autoParam: ["id"]
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +假设 异步加载 父节点(node = {id:1, name:"test"}) 的子节点时,将提交参数 id=1
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2. 设置 id 属性作为 zId 成为自动提交的参数

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	async: {
                                                                                                                                                                                                                                                                                                                      +		enable: true,
                                                                                                                                                                                                                                                                                                                      +		url: "http://host/getNode.php",
                                                                                                                                                                                                                                                                                                                      +		autoParam: ["id=zId"]
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +假设 对父节点 node = {id:1, name:"test"},进行异步加载时,将提交参数 zId=1
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/setting.async.contentType.html b/alive-admin/target/classes/static/ztree/api/cn/setting.async.contentType.html new file mode 100644 index 0000000..db0c92f --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/setting.async.contentType.html @@ -0,0 +1,29 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Stringsetting.async.contentType

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.core 核心 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Ajax 提交参数的数据类型。[setting.async.enable = true 时生效]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值:"application/x-www-form-urlencoded"

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      String 格式说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      contentType = "application/x-www-form-urlencoded" 可以满足绝大部分请求,按照标准的 Form 格式提交参数

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      contentType = "application/json" 可以满足 .Net 的编程需要,按照 JSON 格式提交参数

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      setting 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 设置 Ajax 提交参数的数据类型为 JSON 格式

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	async: {
                                                                                                                                                                                                                                                                                                                      +		enable: true,
                                                                                                                                                                                                                                                                                                                      +		contentType: "application/json",
                                                                                                                                                                                                                                                                                                                      +		url: "http://host/getNode.php",
                                                                                                                                                                                                                                                                                                                      +		autoParam: ["id", "name"]
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/setting.async.dataFilter.html b/alive-admin/target/classes/static/ztree/api/cn/setting.async.dataFilter.html new file mode 100644 index 0000000..f174bf0 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/setting.async.dataFilter.html @@ -0,0 +1,45 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(treeId, parentNode, responseData)setting.async.dataFilter

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.core 核心 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      用于对 Ajax 返回数据进行预处理的函数。[setting.async.enable = true 时生效]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值:null

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function 参数说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      对应 zTree 的 treeId,便于用户操控

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      parentNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      进行异步加载的父节点 JSON 数据对象

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      对根进行异步加载时,parentNode = null

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      responseDataArray(JSON) / JSON / String

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      异步加载获取到的数据转换后的 Array(JSON) / JSON / String 数据对象

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      v3.4开始 支持 XML 数据格式的 String

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值Array(JSON) / JSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值是 zTree 支持的JSON 数据结构即可。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      v3.x 支持单个 JSON 节点数据进行加载

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      setting & function 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 修改异步获取到的节点name属性

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      function ajaxDataFilter(treeId, parentNode, responseData) {
                                                                                                                                                                                                                                                                                                                      +    if (responseData) {
                                                                                                                                                                                                                                                                                                                      +      for(var i =0; i < responseData.length; i++) {
                                                                                                                                                                                                                                                                                                                      +        responseData[i].name += "_filter";
                                                                                                                                                                                                                                                                                                                      +      }
                                                                                                                                                                                                                                                                                                                      +    }
                                                                                                                                                                                                                                                                                                                      +    return responseData;
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +var setting = {
                                                                                                                                                                                                                                                                                                                      +	async: {
                                                                                                                                                                                                                                                                                                                      +		enable: true,
                                                                                                                                                                                                                                                                                                                      +		url: "http://host/getNode.php",
                                                                                                                                                                                                                                                                                                                      +		dataFilter: ajaxDataFilter
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/setting.async.dataType.html b/alive-admin/target/classes/static/ztree/api/cn/setting.async.dataType.html new file mode 100644 index 0000000..6d639b7 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/setting.async.dataType.html @@ -0,0 +1,29 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Stringsetting.async.dataType

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.core 核心 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Ajax 获取的数据类型。[setting.async.enable = true 时生效]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值:"text"

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      String 格式说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      dataType = "text" 可以满足绝大部分请求

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      其余 dataType 类型请参考 jQuery ajax 中的 dataType 参数

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      setting 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 设置 Ajax 获取的数据类型为 纯文本

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	async: {
                                                                                                                                                                                                                                                                                                                      +		enable: true,
                                                                                                                                                                                                                                                                                                                      +		dataType: "text",
                                                                                                                                                                                                                                                                                                                      +		url: "http://host/getNode.php",
                                                                                                                                                                                                                                                                                                                      +		autoParam: ["id", "name"]
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/setting.async.enable.html b/alive-admin/target/classes/static/ztree/api/cn/setting.async.enable.html new file mode 100644 index 0000000..9079ae1 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/setting.async.enable.html @@ -0,0 +1,30 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Booleansetting.async.enable

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.core 核心 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      设置 zTree 是否开启异步加载模式

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值:false

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Boolean 格式说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      true 表示 开启 异步加载模式

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      false 表示 关闭 异步加载模式

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      如果设置为 true,请务必设置 setting.async 内的其它参数。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      如果需要根节点也异步加载,初始化时 treeNodes 参数设置为 null 即可。

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      setting 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 需要开启异步加载模式

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	async: {
                                                                                                                                                                                                                                                                                                                      +		enable: true,
                                                                                                                                                                                                                                                                                                                      +		url: "http://host/getNode.php",
                                                                                                                                                                                                                                                                                                                      +		autoParam: ["id", "name"]
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/setting.async.otherParam.html b/alive-admin/target/classes/static/ztree/api/cn/setting.async.otherParam.html new file mode 100644 index 0000000..981715f --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/setting.async.otherParam.html @@ -0,0 +1,40 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Array(String) / JSONsetting.async.otherParam

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.core 核心 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Ajax 请求提交的静态参数键值对。[setting.async.enable = true 时生效]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值:[ ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Array(String) 格式说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      可以为空[ ],如果有 key,则必须存在 value。 例如:[key, value]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      JSON 格式说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      直接用 JSON 格式制作键值对,例如:{ key1:value1, key2:value2 }

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      setting 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 设置 Array(String) 格式的参数

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	async: {
                                                                                                                                                                                                                                                                                                                      +		enable: true,
                                                                                                                                                                                                                                                                                                                      +		url: "http://host/getNode.php",
                                                                                                                                                                                                                                                                                                                      +		otherParam: ["id", "1", "name", "test"]
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +进行异步加载时,将提交参数 id=1&name=test
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2. 设置 JSON 格式的参数

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	async: {
                                                                                                                                                                                                                                                                                                                      +		enable: true,
                                                                                                                                                                                                                                                                                                                      +		url: "http://host/getNode.php",
                                                                                                                                                                                                                                                                                                                      +		otherParam: { "id":"1", "name":"test"}
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +进行异步加载时,将提交参数 id=1&name=test
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/setting.async.type.html b/alive-admin/target/classes/static/ztree/api/cn/setting.async.type.html new file mode 100644 index 0000000..20d9a6b --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/setting.async.type.html @@ -0,0 +1,30 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Stringsetting.async.type

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.core 核心 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Ajax 的 http 请求模式。[setting.async.enable = true 时生效]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值:"post"

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      String 格式说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      type = "post" 表示异步加载采用 post 方法请求

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      type = "get" 表示异步加载采用 get 方法请求

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      对应于 jQuery ajax 中的 type 参数

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      setting 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 设置使用 get 方式请求数据

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	async: {
                                                                                                                                                                                                                                                                                                                      +		enable: true,
                                                                                                                                                                                                                                                                                                                      +		type: "get",
                                                                                                                                                                                                                                                                                                                      +		url: "http://host/getNode.php",
                                                                                                                                                                                                                                                                                                                      +		autoParam: ["id", "name"]
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/setting.async.url.html b/alive-admin/target/classes/static/ztree/api/cn/setting.async.url.html new file mode 100644 index 0000000..a5209af --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/setting.async.url.html @@ -0,0 +1,50 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      String / Function(treeId, treeNode)setting.async.url

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.core 核心 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Ajax 获取数据的 URL 地址。[setting.async.enable = true 时生效]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值:""

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      String 格式说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      设置固定的异步加载 url 字符串,请注意地址的路径,确保页面能正常加载

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      url 内也可以带参数,这些参数就只能是通过 get 方式提交了,并且请注意进行转码

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function 参数说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      对应 zTree 的 treeId,便于用户操控

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      需要异步加载子节点的的父节点 JSON 数据对象

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      针对根进行异步加载时,treeNode = null

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值String

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值同 String 格式的数据

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      setting & function 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 设置异步获取节点的 URL 为 nodes.php

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	async: {
                                                                                                                                                                                                                                                                                                                      +		enable: true,
                                                                                                                                                                                                                                                                                                                      +		url: "nodes.php",
                                                                                                                                                                                                                                                                                                                      +		autoParam: ["id", "name"]
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2. 设置异步获取节点的 URL 为 function 动态获取

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      function getAsyncUrl(treeId, treeNode) {
                                                                                                                                                                                                                                                                                                                      +    return treeNode.isParent ? "nodes1.php" : "nodes2.php";
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +var setting = {
                                                                                                                                                                                                                                                                                                                      +	async: {
                                                                                                                                                                                                                                                                                                                      +		enable: true,
                                                                                                                                                                                                                                                                                                                      +		url: getAsyncUrl,
                                                                                                                                                                                                                                                                                                                      +		autoParam: ["id", "name"]
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/setting.callback.beforeAsync.html b/alive-admin/target/classes/static/ztree/api/cn/setting.callback.beforeAsync.html new file mode 100644 index 0000000..70ba0fc --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/setting.callback.beforeAsync.html @@ -0,0 +1,35 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(treeId, treeNode)setting.callback.beforeAsync

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.core 核心 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      用于捕获异步加载之前的事件回调函数,zTree 根据返回值确定是否允许进行异步加载

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值:null

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function 参数说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      对应 zTree 的 treeId,便于用户操控

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      进行异步加载的父节点 JSON 数据对象

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      针对根进行异步加载时,treeNode = null

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值Boolean

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值是 true / false

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      如果返回 false,zTree 将不进行异步加载,也无法触发 onAsyncSuccess / onAsyncError 事件回调函数

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      setting & function 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 禁止 id 为 1 的父节点进行异步加载操作

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      function zTreeBeforeAsync(treeId, treeNode) {
                                                                                                                                                                                                                                                                                                                      +    return (treeNode.id !== 1);
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +var setting = {
                                                                                                                                                                                                                                                                                                                      +	callback: {
                                                                                                                                                                                                                                                                                                                      +		beforeAsync: zTreeBeforeAsync
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/setting.callback.beforeCheck.html b/alive-admin/target/classes/static/ztree/api/cn/setting.callback.beforeCheck.html new file mode 100644 index 0000000..a0e1f42 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/setting.callback.beforeCheck.html @@ -0,0 +1,34 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(treeId, treeNode)setting.callback.beforeCheck

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.excheck 扩展 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      用于捕获 勾选 或 取消勾选 之前的事件回调函数,并且根据返回值确定是否允许 勾选 或 取消勾选

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值:null

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function 参数说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      对应 zTree 的 treeId,便于用户操控

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      进行 勾选 或 取消勾选 的节点 JSON 数据对象

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值Boolean

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值是 true / false

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      如果返回 false,将不会改变勾选状态,并且无法触发 onCheck 事件回调函数

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      setting & function 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 禁止所有勾选操作,保持初始化的勾选状态

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      function zTreeBeforeCheck(treeId, treeNode) {
                                                                                                                                                                                                                                                                                                                      +    return false;
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +var setting = {
                                                                                                                                                                                                                                                                                                                      +	callback: {
                                                                                                                                                                                                                                                                                                                      +		beforeCheck: zTreeBeforeCheck
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/setting.callback.beforeClick.html b/alive-admin/target/classes/static/ztree/api/cn/setting.callback.beforeClick.html new file mode 100644 index 0000000..6d6e748 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/setting.callback.beforeClick.html @@ -0,0 +1,49 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(treeId, treeNode, clickFlag)setting.callback.beforeClick

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.core 核心 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      用于捕获单击节点之前的事件回调函数,并且根据返回值确定是否允许单击操作

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值:null

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function 参数说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      对应 zTree 的 treeId,便于用户操控

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      被单击的节点 JSON 数据对象

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      clickFlagNumber

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      节点被点击后的选中操作类型,详细看下表

                                                                                                                                                                                                                                                                                                                      + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                      clickFlagselectedMultiautoCancelSelected
                                                                                                                                                                                                                                                                                                                      &&
                                                                                                                                                                                                                                                                                                                      event.ctrlKey
                                                                                                                                                                                                                                                                                                                      isSelected选中操作
                                                                                                                                                                                                                                                                                                                      1truefalsefalse普通选中
                                                                                                                                                                                                                                                                                                                      1truefalsetrue普通选中
                                                                                                                                                                                                                                                                                                                      2truetruefalse追加选中
                                                                                                                                                                                                                                                                                                                      0truetruetrue取消选中
                                                                                                                                                                                                                                                                                                                      1falsefalsefalse普通选中
                                                                                                                                                                                                                                                                                                                      1falsefalsetrue普通选中
                                                                                                                                                                                                                                                                                                                      1falsetruefalse普通选中
                                                                                                                                                                                                                                                                                                                      0falsetruetrue取消选中
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值Boolean

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值是 true / false

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      如果返回 false,zTree 将不会选中节点,也无法触发 onClick 事件回调函数

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      setting & function 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 禁止节点被选中

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      function zTreeBeforeClick(treeId, treeNode, clickFlag) {
                                                                                                                                                                                                                                                                                                                      +    return (treeNode.id !== 1);
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +var setting = {
                                                                                                                                                                                                                                                                                                                      +	callback: {
                                                                                                                                                                                                                                                                                                                      +		beforeClick: zTreeBeforeClick
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/setting.callback.beforeCollapse.html b/alive-admin/target/classes/static/ztree/api/cn/setting.callback.beforeCollapse.html new file mode 100644 index 0000000..d778e9c --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/setting.callback.beforeCollapse.html @@ -0,0 +1,34 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(treeId, treeNode)setting.callback.beforeCollapse

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.core 核心 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      用于捕获父节点折叠之前的事件回调函数,并且根据返回值确定是否允许折叠操作

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值:null

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function 参数说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      对应 zTree 的 treeId,便于用户操控

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      要折叠的父节点 JSON 数据对象

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值Boolean

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值是 true / false

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      如果返回 false,zTree 将不会折叠节点,也无法触发 onCollapse 事件回调函数

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      setting & function 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 禁止所有已展开的父节点折叠

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      function zTreeBeforeCollapse(treeId, treeNode) {
                                                                                                                                                                                                                                                                                                                      +    return false;
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +var setting = {
                                                                                                                                                                                                                                                                                                                      +	callback: {
                                                                                                                                                                                                                                                                                                                      +		beforeCollapse: zTreeBeforeCollapse
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/setting.callback.beforeDblClick.html b/alive-admin/target/classes/static/ztree/api/cn/setting.callback.beforeDblClick.html new file mode 100644 index 0000000..ed7e4dc --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/setting.callback.beforeDblClick.html @@ -0,0 +1,36 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(treeId, treeNode)setting.callback.beforeDblClick

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.core 核心 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      用于捕获 zTree 上鼠标双击之前的事件回调函数,并且根据返回值确定触发 onDblClick 事件回调函数

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值:null

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function 参数说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      对应 zTree 的 treeId,便于用户操控

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      鼠标双击时所在节点的 JSON 数据对象

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      如果不在节点上,则返回 null

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值Boolean

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值是 true / false

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      如果返回 false,将仅仅无法触发 onDblClick 事件回调函数,对其他操作无任何影响

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      此事件回调函数对双击节点展开功能无任何影响,如果需要设置请参考 setting.view.dblClickExpand 属性

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      setting & function 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 禁止 onDblClick 事件

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      function zTreeBeforeDblClick(treeId, treeNode) {
                                                                                                                                                                                                                                                                                                                      +    return false;
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +var setting = {
                                                                                                                                                                                                                                                                                                                      +	callback: {
                                                                                                                                                                                                                                                                                                                      +		beforeDblClick: zTreeBeforeDblClick
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/setting.callback.beforeDrag.html b/alive-admin/target/classes/static/ztree/api/cn/setting.callback.beforeDrag.html new file mode 100644 index 0000000..1e783a3 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/setting.callback.beforeDrag.html @@ -0,0 +1,39 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(treeId, treeNodes)setting.callback.beforeDrag

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      用于捕获节点被拖拽之前的事件回调函数,并且根据返回值确定是否允许开启拖拽操作

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值:null

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function 参数说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      被拖拽的节点 treeNodes 所在 zTree 的 treeId,便于用户操控

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodesArray(JSON)

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      要被拖拽的节点 JSON 数据集合

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      v3.x 允许多个同级节点同时被拖拽,因此将此参数修改为 Array(JSON)

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      如果拖拽时多个被选择的节点不是同级关系,则只能拖拽鼠标当前所在位置的节点

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值Boolean

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值是 true / false

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      如果返回 false,zTree 将终止拖拽,也无法触发 onDrag / beforeDrop / onDrop 事件回调函数

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      setting & function 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 禁止全部拖拽操作

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      function zTreeBeforeDrag(treeId, treeNodes) {
                                                                                                                                                                                                                                                                                                                      +    return false;
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +var setting = {
                                                                                                                                                                                                                                                                                                                      +	edit: {
                                                                                                                                                                                                                                                                                                                      +		enable: true
                                                                                                                                                                                                                                                                                                                      +	},
                                                                                                                                                                                                                                                                                                                      +	callback: {
                                                                                                                                                                                                                                                                                                                      +		beforeDrag: zTreeBeforeDrag
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/setting.callback.beforeDragOpen.html b/alive-admin/target/classes/static/ztree/api/cn/setting.callback.beforeDragOpen.html new file mode 100644 index 0000000..ceab2d3 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/setting.callback.beforeDragOpen.html @@ -0,0 +1,37 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(treeId, treeNode)setting.callback.beforeDragOpen

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      用于捕获拖拽节点移动到折叠状态的父节点后,即将自动展开该父节点之前的事件回调函数,并且根据返回值确定是否允许自动展开操作

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值:null

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function 参数说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      需要被展开的父节点 treeNode 所在 zTree 的 treeId,便于用户操控

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      要被自动展开的父节点 JSON 数据对象

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值Boolean

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值是 true / false

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      如果返回 false,zTree 将无法进行自动展开操作

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      setting & function 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 禁止全部拖拽时的自动展开操作

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      function zTreeBeforeDragOpen(treeId, treeNode) {
                                                                                                                                                                                                                                                                                                                      +    return false;
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +var setting = {
                                                                                                                                                                                                                                                                                                                      +	edit: {
                                                                                                                                                                                                                                                                                                                      +		enable: true
                                                                                                                                                                                                                                                                                                                      +	},
                                                                                                                                                                                                                                                                                                                      +	callback: {
                                                                                                                                                                                                                                                                                                                      +		beforeDragOpen: zTreeBeforeDragOpen
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/setting.callback.beforeDrop.html b/alive-admin/target/classes/static/ztree/api/cn/setting.callback.beforeDrop.html new file mode 100644 index 0000000..4123743 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/setting.callback.beforeDrop.html @@ -0,0 +1,48 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(treeId, treeNodes, targetNode, moveType, isCopy)setting.callback.beforeDrop

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      用于捕获节点拖拽操作结束之前的事件回调函数,并且根据返回值确定是否允许此拖拽操作

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值:null

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      如未拖拽到有效位置,则不触发此回调函数,直接将节点恢复原位置

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function 参数说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      目标节点 targetNode 所在 zTree 的 treeId,便于用户操控

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodesArray(JSON)

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      被拖拽的节点 JSON 数据集合

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      无论拖拽操作为 复制 还是 移动,treeNodes 都是当前被拖拽节点的数据集合。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      targetNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodes 被拖拽放开的目标节点 JSON 数据对象。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      如果拖拽成为根节点,则 targetNode = null

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      moveTypeString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      指定移动到目标节点的相对位置

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      "inner":成为子节点,"prev":成为同级前一个节点,"next":成为同级后一个节点

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      isCopyBoolean

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      拖拽节点操作是 复制 或 移动

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      true:复制;false:移动

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值Boolean

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值是 true / false

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      如果返回 false,zTree 将恢复被拖拽的节点,也无法触发 onDrop 事件回调函数

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      setting & function 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 禁止将节点拖拽成为根节点

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      function zTreeBeforeDrop(treeId, treeNodes, targetNode, moveType) {
                                                                                                                                                                                                                                                                                                                      +    return !(targetNode == null || (moveType != "inner" && !targetNode.parentTId));
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +var setting = {
                                                                                                                                                                                                                                                                                                                      +	edit: {
                                                                                                                                                                                                                                                                                                                      +		enable: true
                                                                                                                                                                                                                                                                                                                      +	},
                                                                                                                                                                                                                                                                                                                      +	callback: {
                                                                                                                                                                                                                                                                                                                      +		beforeDrop: zTreeBeforeDrop
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/setting.callback.beforeEditName.html b/alive-admin/target/classes/static/ztree/api/cn/setting.callback.beforeEditName.html new file mode 100644 index 0000000..9df3ca2 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/setting.callback.beforeEditName.html @@ -0,0 +1,38 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(treeId, treeNode)setting.callback.beforeEditName

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      用于捕获节点编辑按钮的 click 事件,并且根据返回值确定是否允许进入名称编辑状态

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      此事件回调函数最主要是用于捕获编辑按钮的点击事件,然后触发自定义的编辑界面操作。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值:null

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function 参数说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      对应 zTree 的 treeId,便于用户操控

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      将要进入编辑名称状态的节点 JSON 数据对象

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值Boolean

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值是 true / false

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      如果返回 false,节点将无法进入 zTree 默认的编辑名称状态

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      setting & function 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 禁止修改父节点的名称

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      function zTreeBeforeEditName(treeId, treeNode) {
                                                                                                                                                                                                                                                                                                                      +	return !treeNode.isParent;
                                                                                                                                                                                                                                                                                                                      +}
                                                                                                                                                                                                                                                                                                                      +var setting = {
                                                                                                                                                                                                                                                                                                                      +	edit: {
                                                                                                                                                                                                                                                                                                                      +		enable: true
                                                                                                                                                                                                                                                                                                                      +	},
                                                                                                                                                                                                                                                                                                                      +	callback: {
                                                                                                                                                                                                                                                                                                                      +		beforeEditName: zTreeBeforeEditName
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/setting.callback.beforeExpand.html b/alive-admin/target/classes/static/ztree/api/cn/setting.callback.beforeExpand.html new file mode 100644 index 0000000..350972b --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/setting.callback.beforeExpand.html @@ -0,0 +1,34 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(treeId, treeNode)setting.callback.beforeExpand

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.core 核心 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      用于捕获父节点展开之前的事件回调函数,并且根据返回值确定是否允许展开操作

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值:null

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function 参数说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      对应 zTree 的 treeId,便于用户操控

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      要展开的父节点 JSON 数据对象

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值Boolean

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值是 true / false

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      如果返回 false,zTree 将不会展开节点,也无法触发 onExpand 事件回调函数

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      setting & function 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 禁止所有已折叠的父节点展开

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      function zTreeBeforeExpand(treeId, treeNode) {
                                                                                                                                                                                                                                                                                                                      +    return false;
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +var setting = {
                                                                                                                                                                                                                                                                                                                      +	callback: {
                                                                                                                                                                                                                                                                                                                      +		beforeExpand: zTreeBeforeExpand
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/setting.callback.beforeMouseDown.html b/alive-admin/target/classes/static/ztree/api/cn/setting.callback.beforeMouseDown.html new file mode 100644 index 0000000..2c3f28d --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/setting.callback.beforeMouseDown.html @@ -0,0 +1,35 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(treeId, treeNode)setting.callback.beforeMouseDown

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.core 核心 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      用于捕获 zTree 上鼠标按键按下之前的事件回调函数,并且根据返回值确定触发 onMouseDown 事件回调函数

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值:null

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function 参数说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      对应 zTree 的 treeId,便于用户操控

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      鼠标按键按下时所在节点的 JSON 数据对象

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      如果不在节点上,则返回 null

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值Boolean

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值是 true / false

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      如果返回 false,将仅仅无法触发 onMouseDown 事件回调函数,对其他操作无任何影响

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      setting & function 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 禁止 onMouseDown 事件

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      function zTreeBeforeMouseDown(treeId, treeNode) {
                                                                                                                                                                                                                                                                                                                      +    return false;
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +var setting = {
                                                                                                                                                                                                                                                                                                                      +	callback: {
                                                                                                                                                                                                                                                                                                                      +		beforeMouseDown: zTreeBeforeMouseDown
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/setting.callback.beforeMouseUp.html b/alive-admin/target/classes/static/ztree/api/cn/setting.callback.beforeMouseUp.html new file mode 100644 index 0000000..f0b01b9 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/setting.callback.beforeMouseUp.html @@ -0,0 +1,35 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(treeId, treeNode)setting.callback.beforeMouseUp

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.core 核心 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      用于捕获 zTree 上鼠标按键松开之前的事件回调函数,并且根据返回值确定触发 onMouseUp 事件回调函数

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值:null

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function 参数说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      对应 zTree 的 treeId,便于用户操控

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      鼠标按键松开时所在节点的 JSON 数据对象

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      如果不在节点上,则返回 null

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值Boolean

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值是 true / false

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      如果返回 false,将仅仅无法触发 onMouseUp 事件回调函数,对其他操作无任何影响

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      setting & function 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 禁止 onMouseUp 事件

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      function zTreeBeforeMouseUp(treeId, treeNode) {
                                                                                                                                                                                                                                                                                                                      +    return false;
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +var setting = {
                                                                                                                                                                                                                                                                                                                      +	callback: {
                                                                                                                                                                                                                                                                                                                      +		beforeMouseUp: zTreeBeforeMouseUp
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/setting.callback.beforeRemove.html b/alive-admin/target/classes/static/ztree/api/cn/setting.callback.beforeRemove.html new file mode 100644 index 0000000..0edb3fd --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/setting.callback.beforeRemove.html @@ -0,0 +1,37 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(treeId, treeNode)setting.callback.beforeRemove

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      用于捕获节点被删除之前的事件回调函数,并且根据返回值确定是否允许删除操作

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值:null

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function 参数说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      对应 zTree 的 treeId,便于用户操控

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      将要删除的节点 JSON 数据对象

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值Boolean

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值是 true / false

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      如果返回 false,zTree 将不删除节点,也无法触发 onRemove 事件回调函数

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      setting & function 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 禁止全部删除操作

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      function zTreeBeforeRemove(treeId, treeNode) {
                                                                                                                                                                                                                                                                                                                      +	return false;
                                                                                                                                                                                                                                                                                                                      +}
                                                                                                                                                                                                                                                                                                                      +var setting = {
                                                                                                                                                                                                                                                                                                                      +	edit: {
                                                                                                                                                                                                                                                                                                                      +		enable: true
                                                                                                                                                                                                                                                                                                                      +	},
                                                                                                                                                                                                                                                                                                                      +	callback: {
                                                                                                                                                                                                                                                                                                                      +		beforeRemove: zTreeBeforeRemove
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/setting.callback.beforeRename.html b/alive-admin/target/classes/static/ztree/api/cn/setting.callback.beforeRename.html new file mode 100644 index 0000000..b130469 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/setting.callback.beforeRename.html @@ -0,0 +1,41 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(treeId, treeNode, newName)setting.callback.beforeRename

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      用于捕获节点编辑名称结束(Input 失去焦点 或 按下 Enter 键)之后,更新节点名称数据之前的事件回调函数,并且根据返回值确定是否允许更改名称的操作

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      节点进入编辑名称状态后,按 ESC 键可以放弃当前修改,恢复原名称,取消编辑名称状态

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值:null

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function 参数说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      对应 zTree 的 treeId,便于用户操控

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      将要更改名称的节点 JSON 数据对象

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      newNameString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      修改后的新名称

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值Boolean

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值是 true / false

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      如果返回 false,zTree 将保持名称编辑状态,无法触发 onRename 事件回调函数,并且会导致屏蔽其它事件,直到修改名称使得 beforeRename 返回 true

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      如果返回 false,不会让 input 输入框获取焦点,避免由于警告信息而导致反复触发 beforeRename。 请在关闭提示警告信息后,利用 editName 方法让 input 重新获取焦点。

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      setting & function 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 禁止修改的名称的长度小于 5

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      function zTreeBeforeRename(treeId, treeNode, newName) {
                                                                                                                                                                                                                                                                                                                      +	return newName.length > 5;
                                                                                                                                                                                                                                                                                                                      +}
                                                                                                                                                                                                                                                                                                                      +var setting = {
                                                                                                                                                                                                                                                                                                                      +	edit: {
                                                                                                                                                                                                                                                                                                                      +		enable: true
                                                                                                                                                                                                                                                                                                                      +	},
                                                                                                                                                                                                                                                                                                                      +	callback: {
                                                                                                                                                                                                                                                                                                                      +		beforeRename: zTreeBeforeRename
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/setting.callback.beforeRightClick.html b/alive-admin/target/classes/static/ztree/api/cn/setting.callback.beforeRightClick.html new file mode 100644 index 0000000..1a5bdaa --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/setting.callback.beforeRightClick.html @@ -0,0 +1,35 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(treeId, treeNode)setting.callback.beforeRightClick

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.core 核心 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      用于捕获 zTree 上鼠标右键点击之前的事件回调函数,并且根据返回值确定触发 onRightClick 事件回调函数

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值:null

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function 参数说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      对应 zTree 的 treeId,便于用户操控

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      鼠标右键点击时所在节点的 JSON 数据对象

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      如果不在节点上,则返回 null

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值Boolean

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值是 true / false

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      如果返回 false,将仅仅无法触发 onRightClick 事件回调函数,对其他操作无任何影响

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      setting & function 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 禁止 onRightClick 事件

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      function zTreeBeforeRightClick(treeId, treeNode) {
                                                                                                                                                                                                                                                                                                                      +    return false;
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +var setting = {
                                                                                                                                                                                                                                                                                                                      +	callback: {
                                                                                                                                                                                                                                                                                                                      +		beforeRightClick: zTreeBeforeRightClick
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/setting.callback.onAsyncError.html b/alive-admin/target/classes/static/ztree/api/cn/setting.callback.onAsyncError.html new file mode 100644 index 0000000..c469e11 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/setting.callback.onAsyncError.html @@ -0,0 +1,42 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      setting.callback.onAsyncError

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(event, treeId, treeNode, XMLHttpRequest, textStatus, errorThrown) 

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.core 核心 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      用于捕获异步加载出现异常错误的事件回调函数

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      如果设置了 setting.callback.beforeAsync 方法,且返回 false,将无法触发 onAsyncSuccess / onAsyncError 事件回调函数。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值:null

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function 参数说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      eventjs event 对象

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      标准的 js event 对象

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      对应 zTree 的 treeId,便于用户操控

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      进行异步加载的父节点 JSON 数据对象

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      针对根进行异步加载时,treeNode = null

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      XMLHttpRequestString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      标准 XMLHttpRequest 对象,请参考 JQuery API 文档。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      textStatusString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      请求状态:success,error,请参考 JQuery API 文档。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      errorThrownString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      errorThrown 只有当异常发生时才会被传递,请参考 JQuery API 文档。

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      setting & function 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 异步加载出现异常后,弹出错误信息

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      function zTreeOnAsyncError(event, treeId, treeNode, XMLHttpRequest, textStatus, errorThrown) {
                                                                                                                                                                                                                                                                                                                      +    alert(XMLHttpRequest);
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +var setting = {
                                                                                                                                                                                                                                                                                                                      +	callback: {
                                                                                                                                                                                                                                                                                                                      +		onAsyncError: zTreeOnAsyncError
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/setting.callback.onAsyncSuccess.html b/alive-admin/target/classes/static/ztree/api/cn/setting.callback.onAsyncSuccess.html new file mode 100644 index 0000000..081e9d7 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/setting.callback.onAsyncSuccess.html @@ -0,0 +1,38 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(event, treeId, treeNode, msg)setting.callback.onAsyncSuccess

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.core 核心 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      用于捕获异步加载正常结束的事件回调函数

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      如果设置了 setting.callback.beforeAsync 方法,且返回 false,将无法触发 onAsyncSuccess / onAsyncError 事件回调函数。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值:null

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function 参数说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      eventjs event 对象

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      标准的 js event 对象

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      对应 zTree 的 treeId,便于用户操控

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      进行异步加载的父节点 JSON 数据对象

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      针对根进行异步加载时,treeNode = null

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      msgString / Object

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      异步获取的节点数据字符串,主要便于用户调试使用。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      实际数据类型会受 setting.async.dataType 的设置影响,请参考 JQuery API 文档。

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      setting & function 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 异步加载成功后,弹出提示信息

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      function zTreeOnAsyncSuccess(event, treeId, treeNode, msg) {
                                                                                                                                                                                                                                                                                                                      +    alert(msg);
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +var setting = {
                                                                                                                                                                                                                                                                                                                      +	callback: {
                                                                                                                                                                                                                                                                                                                      +		onAsyncSuccess: zTreeOnAsyncSuccess
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/setting.callback.onCheck.html b/alive-admin/target/classes/static/ztree/api/cn/setting.callback.onCheck.html new file mode 100644 index 0000000..113eee9 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/setting.callback.onCheck.html @@ -0,0 +1,34 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(event, treeId, treeNode)setting.callback.onCheck

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.excheck 扩展 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      用于捕获 checkbox / radio 被勾选 或 取消勾选的事件回调函数

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      如果设置了 setting.callback.beforeCheck 方法,且返回 false,将无法触发 onCheck 事件回调函数。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值:null

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function 参数说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      eventjs event 对象

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      标准的 js event 对象

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      对应 zTree 的 treeId,便于用户操控

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      被勾选 或 取消勾选的节点 JSON 数据对象

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      setting & function 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 每次点击 checkbox 或 radio 后, 弹出该节点的 tId、name 以及当前勾选状态的信息

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      function zTreeOnCheck(event, treeId, treeNode) {
                                                                                                                                                                                                                                                                                                                      +    alert(treeNode.tId + ", " + treeNode.name + "," + treeNode.checked);
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +var setting = {
                                                                                                                                                                                                                                                                                                                      +	callback: {
                                                                                                                                                                                                                                                                                                                      +		onCheck: zTreeOnCheck
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/setting.callback.onClick.html b/alive-admin/target/classes/static/ztree/api/cn/setting.callback.onClick.html new file mode 100644 index 0000000..19d2948 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/setting.callback.onClick.html @@ -0,0 +1,49 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(event, treeId, treeNode, clickFlag)setting.callback.onClick

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.core 核心 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      用于捕获节点被点击的事件回调函数

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      如果设置了 setting.callback.beforeClick 方法,且返回 false,将无法触发 onClick 事件回调函数。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值:null

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function 参数说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      eventjs event 对象

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      标准的 js event 对象

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      对应 zTree 的 treeId,便于用户操控

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      被点击的节点 JSON 数据对象

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      clickFlagNumber

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      节点被点击后的选中操作类型,详细看下表

                                                                                                                                                                                                                                                                                                                      + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                      clickFlagselectedMultiautoCancelSelected
                                                                                                                                                                                                                                                                                                                      &&
                                                                                                                                                                                                                                                                                                                      event.ctrlKey
                                                                                                                                                                                                                                                                                                                      isSelected选中操作
                                                                                                                                                                                                                                                                                                                      1truefalsefalse普通选中
                                                                                                                                                                                                                                                                                                                      1truefalsetrue普通选中
                                                                                                                                                                                                                                                                                                                      2truetruefalse追加选中
                                                                                                                                                                                                                                                                                                                      0truetruetrue取消选中
                                                                                                                                                                                                                                                                                                                      1falsefalsefalse普通选中
                                                                                                                                                                                                                                                                                                                      1falsefalsetrue普通选中
                                                                                                                                                                                                                                                                                                                      1falsetruefalse普通选中
                                                                                                                                                                                                                                                                                                                      0falsetruetrue取消选中
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      setting & function 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 每次点击节点后, 弹出该节点的 tId、name 的信息

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      function zTreeOnClick(event, treeId, treeNode) {
                                                                                                                                                                                                                                                                                                                      +    alert(treeNode.tId + ", " + treeNode.name);
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +var setting = {
                                                                                                                                                                                                                                                                                                                      +	callback: {
                                                                                                                                                                                                                                                                                                                      +		onClick: zTreeOnClick
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/setting.callback.onCollapse.html b/alive-admin/target/classes/static/ztree/api/cn/setting.callback.onCollapse.html new file mode 100644 index 0000000..1c816c2 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/setting.callback.onCollapse.html @@ -0,0 +1,34 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(event, treeId, treeNode)setting.callback.onCollapse

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.core 核心 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      用于捕获节点被折叠的事件回调函数

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      如果设置了 setting.callback.beforeCollapse 方法,且返回 false,将无法触发 onCollapse 事件回调函数。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值:null

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function 参数说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      eventjs event 对象

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      标准的 js event 对象

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      对应 zTree 的 treeId,便于用户操控

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      被折叠的节点 JSON 数据对象

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      setting & function 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 每次折叠节点后, 弹出该节点的 tId、name 的信息

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      function zTreeOnCollapse(event, treeId, treeNode) {
                                                                                                                                                                                                                                                                                                                      +    alert(treeNode.tId + ", " + treeNode.name);
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +var setting = {
                                                                                                                                                                                                                                                                                                                      +	callback: {
                                                                                                                                                                                                                                                                                                                      +		onCollapse: zTreeOnCollapse
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/setting.callback.onDblClick.html b/alive-admin/target/classes/static/ztree/api/cn/setting.callback.onDblClick.html new file mode 100644 index 0000000..deb8e62 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/setting.callback.onDblClick.html @@ -0,0 +1,35 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(event, treeId, treeNode)setting.callback.onDblClick

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.core 核心 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      用于捕获 zTree 上鼠标双击之后的事件回调函数

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      如果设置了 setting.callback.beforeDblClick 方法,且返回 false,将无法触发 onDblClick 事件回调函数。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值:null

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function 参数说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      eventjs event 对象

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      标准的 js event 对象

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      对应 zTree 的 treeId,便于用户操控

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      鼠标双击时所在节点的 JSON 数据对象

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      如果不在节点上,则返回 null

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      setting & function 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 每次鼠标双击后, 弹出鼠标所在节点的 tId、name 的信息

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      function zTreeOnDblClick(event, treeId, treeNode) {
                                                                                                                                                                                                                                                                                                                      +    alert(treeNode ? treeNode.tId + ", " + treeNode.name : "isRoot");
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +var setting = {
                                                                                                                                                                                                                                                                                                                      +	callback: {
                                                                                                                                                                                                                                                                                                                      +		onDblClick: zTreeOnDblClick
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/setting.callback.onDrag.html b/alive-admin/target/classes/static/ztree/api/cn/setting.callback.onDrag.html new file mode 100644 index 0000000..176e694 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/setting.callback.onDrag.html @@ -0,0 +1,35 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(event, treeId, treeNodes)setting.callback.onDrag

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      用于捕获节点被拖拽的事件回调函数

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      如果设置了 setting.callback.beforeDrag 方法,且返回 false,将无法触发 onDrag 事件回调函数。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值:null

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function 参数说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      eventjs event 对象

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      标准的 js event 对象

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      被拖拽的节点 treeNodes 所在 zTree 的 treeId,便于用户操控

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodesArray(JSON)

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      要被拖拽的节点 JSON 数据集合

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      setting & function 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 每次开始进行拖拽节点后, 弹出被拖拽节点的个数信息

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      function zTreeOnDrag(event, treeId, treeNodes) {
                                                                                                                                                                                                                                                                                                                      +    
                                                                                                                                                                                                                                                                                                                      +		alert(100);
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +var setting = {
                                                                                                                                                                                                                                                                                                                      +	callback: {
                                                                                                                                                                                                                                                                                                                      +		onDrag: zTreeOnDrag
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/setting.callback.onDrop.html b/alive-admin/target/classes/static/ztree/api/cn/setting.callback.onDrop.html new file mode 100644 index 0000000..c6773a8 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/setting.callback.onDrop.html @@ -0,0 +1,46 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(event, treeId, treeNodes, targetNode, moveType, isCopy)setting.callback.onDrop

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      用于捕获节点拖拽操作结束的事件回调函数

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      如果设置了 setting.callback.beforeDrop 方法,且返回 false,将无法触发 onDrop 事件回调函数。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值:null

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function 参数说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      eventjs event 对象

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      标准的 js event 对象

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      目标节点 targetNode 所在 zTree 的 treeId,便于用户操控

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodesArray(JSON)

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      被拖拽的节点 JSON 数据集合

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      如果拖拽操作为 移动,treeNodes 是当前被拖拽节点的数据集合。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      如果拖拽操作为 复制,treeNodes 是复制后 clone 得到的新节点数据。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      targetNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      成为 treeNodes 拖拽结束的目标节点 JSON 数据对象。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      如果拖拽成为根节点,则 targetNode = null

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      moveTypeString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      指定移动到目标节点的相对位置

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      "inner":成为子节点,"prev":成为同级前一个节点,"next":成为同级后一个节点

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      如果 moveType = null,表明拖拽无效

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      isCopyBoolean

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      拖拽节点操作是 复制 或 移动

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      true:复制;false:移动

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      setting & function 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 每次拖拽操作结束后, 弹出该被拖拽节点的个数以及目标节点的 tId、name 的信息

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      function zTreeOnDrop(event, treeId, treeNodes, targetNode, moveType) {
                                                                                                                                                                                                                                                                                                                      +    alert(treeNodes.length + "," + (targetNode ? (targetNode.tId + ", " + targetNode.name) : "isRoot" ));
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +var setting = {
                                                                                                                                                                                                                                                                                                                      +	callback: {
                                                                                                                                                                                                                                                                                                                      +		onDrop: zTreeOnDrop
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/setting.callback.onExpand.html b/alive-admin/target/classes/static/ztree/api/cn/setting.callback.onExpand.html new file mode 100644 index 0000000..791c5f6 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/setting.callback.onExpand.html @@ -0,0 +1,34 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(event, treeId, treeNode)setting.callback.onExpand

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.core 核心 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      用于捕获节点被展开的事件回调函数

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      如果设置了 setting.callback.beforeExpand 方法,且返回 false,将无法触发 onExpand 事件回调函数。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值:null

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function 参数说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      eventjs event 对象

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      标准的 js event 对象

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      对应 zTree 的 treeId,便于用户操控

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      被展开的节点 JSON 数据对象

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      setting & function 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 每次展开节点后, 弹出该节点的 tId、name 的信息

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      function zTreeOnExpand(event, treeId, treeNode) {
                                                                                                                                                                                                                                                                                                                      +    alert(treeNode.tId + ", " + treeNode.name);
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +var setting = {
                                                                                                                                                                                                                                                                                                                      +	callback: {
                                                                                                                                                                                                                                                                                                                      +		onExpand: zTreeOnExpand
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/setting.callback.onMouseDown.html b/alive-admin/target/classes/static/ztree/api/cn/setting.callback.onMouseDown.html new file mode 100644 index 0000000..bc9d0ea --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/setting.callback.onMouseDown.html @@ -0,0 +1,35 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(event, treeId, treeNode)setting.callback.onMouseDown

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.core 核心 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      用于捕获 zTree 上鼠标按键按下后的事件回调函数

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      如果设置了 setting.callback.beforeMouseDown 方法,且返回 false,将无法触发 onMouseDown 事件回调函数。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值:null

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function 参数说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      eventjs event 对象

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      标准的 js event 对象

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      对应 zTree 的 treeId,便于用户操控

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      鼠标按键按下时所在节点的 JSON 数据对象

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      如果不在节点上,则返回 null

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      setting & function 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 每次鼠标按键按下后, 弹出鼠标所在节点的 tId、name 的信息

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      function zTreeOnMouseDown(event, treeId, treeNode) {
                                                                                                                                                                                                                                                                                                                      +    alert(treeNode ? treeNode.tId + ", " + treeNode.name : "isRoot");
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +var setting = {
                                                                                                                                                                                                                                                                                                                      +	callback: {
                                                                                                                                                                                                                                                                                                                      +		onMouseDown: zTreeOnMouseDown
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/setting.callback.onMouseUp.html b/alive-admin/target/classes/static/ztree/api/cn/setting.callback.onMouseUp.html new file mode 100644 index 0000000..a969fef --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/setting.callback.onMouseUp.html @@ -0,0 +1,35 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(event, treeId, treeNode)setting.callback.onMouseUp

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.core 核心 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      用于捕获 zTree 上鼠标按键松开后的事件回调函数

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      如果设置了 setting.callback.beforeMouseUp 方法,且返回 false,将无法触发 onMouseUp 事件回调函数。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值:null

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function 参数说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      eventjs event 对象

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      标准的 js event 对象

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      对应 zTree 的 treeId,便于用户操控

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      鼠标按键松开时所在节点的 JSON 数据对象

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      如果不在节点上,则返回 null

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      setting & function 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 每次鼠标按键松开后, 弹出鼠标所在节点的 tId、name 的信息

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      function zTreeOnMouseUp(event, treeId, treeNode) {
                                                                                                                                                                                                                                                                                                                      +    alert(treeNode ? treeNode.tId + ", " + treeNode.name : "isRoot");
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +var setting = {
                                                                                                                                                                                                                                                                                                                      +	callback: {
                                                                                                                                                                                                                                                                                                                      +		onMouseUp: zTreeOnMouseUp
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/setting.callback.onNodeCreated.html b/alive-admin/target/classes/static/ztree/api/cn/setting.callback.onNodeCreated.html new file mode 100644 index 0000000..2ebaee6 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/setting.callback.onNodeCreated.html @@ -0,0 +1,35 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(event, treeId, treeNode)setting.callback.onNodeCreated

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.core 核心 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      用于捕获节点生成 DOM 后的事件回调函数

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      v3.x 采用了延迟加载技术,因此对于父节点未展开的子节点来说,初始化后是不会触发此回调函数,直到其父节点被展开

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      大数据量的节点加载请注意:不设置 onNodeCreated,可以提升一部分初始化性能

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值:null

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function 参数说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      eventjs event 对象

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      标准的 js event 对象

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      对应 zTree 的 treeId,便于用户操控

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      生成 DOM 完毕的节点的 JSON 数据对象

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      setting & function 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 创建节点 DOM 后, 弹出该节点的 tId、name 的信息

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      function zTreeOnNodeCreated(event, treeId, treeNode) {
                                                                                                                                                                                                                                                                                                                      +    alert(treeNode.tId + ", " + treeNode.name);
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +var setting = {
                                                                                                                                                                                                                                                                                                                      +	callback: {
                                                                                                                                                                                                                                                                                                                      +		onNodeCreated: zTreeOnNodeCreated
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/setting.callback.onRemove.html b/alive-admin/target/classes/static/ztree/api/cn/setting.callback.onRemove.html new file mode 100644 index 0000000..e7e625d --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/setting.callback.onRemove.html @@ -0,0 +1,34 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(event, treeId, treeNode)setting.callback.onRemove

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      用于捕获删除节点之后的事件回调函数。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      如果用户设置了 beforeRemove 回调函数,并返回 false,将无法触发 onRemove 事件回调函数。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值:null

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function 参数说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      eventjs event 对象

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      标准的 js event 对象

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      对应 zTree 的 treeId,便于用户操控

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      将要删除的节点 JSON 数据对象

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      setting & function 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 删除节点时,弹出被删除的节点的 tId 以及 name 信息

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      function zTreeOnRemove(event, treeId, treeNode) {
                                                                                                                                                                                                                                                                                                                      +	alert(treeNode.tId + ", " + treeNode.name);
                                                                                                                                                                                                                                                                                                                      +}
                                                                                                                                                                                                                                                                                                                      +var setting = {
                                                                                                                                                                                                                                                                                                                      +	callback: {
                                                                                                                                                                                                                                                                                                                      +		onRemove: zTreeOnRemove
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/setting.callback.onRename.html b/alive-admin/target/classes/static/ztree/api/cn/setting.callback.onRename.html new file mode 100644 index 0000000..6457716 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/setting.callback.onRename.html @@ -0,0 +1,35 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(event, treeId, treeNode)setting.callback.onRename

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      用于捕获节点编辑名称结束之后的事件回调函数。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1、节点进入编辑名称状态,并且修改节点名称后触发此回调函数。如果用户设置了 beforeRename 回调函数,并返回 false,将无法触发 onRename 事件回调函数。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2、如果通过直接修改 treeNode 的数据,并且利用 updateNode 方法更新,是不会触发此回调函数的。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值:null

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function 参数说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      eventjs event 对象

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      标准的 js event 对象

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      对应 zTree 的 treeId,便于用户操控

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      被修改名称的节点 JSON 数据对象

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      setting & function 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 修改名称后,弹出被修改名称的节点的 tId 以及 name 信息

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      function zTreeOnRename(event, treeId, treeNode) {
                                                                                                                                                                                                                                                                                                                      +	alert(treeNode.tId + ", " + treeNode.name);
                                                                                                                                                                                                                                                                                                                      +}
                                                                                                                                                                                                                                                                                                                      +var setting = {
                                                                                                                                                                                                                                                                                                                      +	callback: {
                                                                                                                                                                                                                                                                                                                      +		onRename: zTreeOnRename
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/setting.callback.onRightClick.html b/alive-admin/target/classes/static/ztree/api/cn/setting.callback.onRightClick.html new file mode 100644 index 0000000..d51c68d --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/setting.callback.onRightClick.html @@ -0,0 +1,36 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(event, treeId, treeNode)setting.callback.onRightClick

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.core 核心 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      用于捕获 zTree 上鼠标右键点击之后的事件回调函数

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1、如果设置了 setting.callback.beforeRightClick 方法,且返回 false,将无法触发 onRightClick 事件回调函数。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2、只要将 function 的引用赋给 onRightClick 属性,则右键点击 zTree 时,将屏蔽浏览器的右键菜单。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值:null

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function 参数说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      eventjs event 对象

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      标准的 js event 对象

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      对应 zTree 的 treeId,便于用户操控

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      鼠标右键点击时所在节点的 JSON 数据对象

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      如果不在节点上,则返回 null

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      setting & function 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 每次鼠标右键点击后, 弹出鼠标所在节点的 tId、name 的信息

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      function zTreeOnRightClick(event, treeId, treeNode) {
                                                                                                                                                                                                                                                                                                                      +    alert(treeNode ? treeNode.tId + ", " + treeNode.name : "isRoot");
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +var setting = {
                                                                                                                                                                                                                                                                                                                      +	callback: {
                                                                                                                                                                                                                                                                                                                      +		onRightClick: zTreeOnRightClick
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/setting.check.autoCheckTrigger.html b/alive-admin/target/classes/static/ztree/api/cn/setting.check.autoCheckTrigger.html new file mode 100644 index 0000000..d1efd77 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/setting.check.autoCheckTrigger.html @@ -0,0 +1,28 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Booleansetting.check.autoCheckTrigger

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.excheck 扩展 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      设置自动关联勾选时是否触发 beforeCheck / onCheck 事件回调函数。[setting.check.enable = true 且 setting.check.chkStyle = "checkbox" 时生效]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1、如果设置 setting.check.chkboxType = { "Y": "", "N": "" },将不会有任何自动关联勾选的操作。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2、如果开启触发,对于节点较多的树将会影响性能,因为所有被联动勾选的操作都会触发事件回调函数,请根据需要决定是否使用此功能。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值: false

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Boolean 格式说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      true / false 分别表示 触发 / 不触发 事件回调函数

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      setting 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 需要触发自动关联勾选操作

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	check: {
                                                                                                                                                                                                                                                                                                                      +		enable: true,
                                                                                                                                                                                                                                                                                                                      +		autoCheckTrigger: true
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/setting.check.chkStyle.html b/alive-admin/target/classes/static/ztree/api/cn/setting.check.chkStyle.html new file mode 100644 index 0000000..9706c13 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/setting.check.chkStyle.html @@ -0,0 +1,48 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Stringsetting.check.chkStyle

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.excheck 扩展 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      勾选框类型(checkbox 或 radio)[setting.check.enable = true 时生效]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值:"checkbox"

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      String 格式说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      chkStyle = "checkbox" 时,显示 checkbox 选择框,setting.check.chkboxType 属性有效。 +
                                                                                                                                                                                                                                                                                                                      chkStyle = "radio" 时,显示 radio 选择框, setting.check.radioType 属性有效。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      请注意大小写,不要改变

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      checkbox 状态说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      未勾选;如果是父节点,则无子节点被勾选。鼠标移到该节点上显示为:

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      未勾选;(只有父节点存在此状态)存在被勾选的子节点。鼠标移到该节点上显示为:

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      被勾选;如果是父节点,则全部子节点都被勾选。鼠标移到该节点上显示为:

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      被勾选;(只有父节点存在此状态)且部分或无子节点被勾选。鼠标移到该节点上显示为:

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      radio 状态说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      未勾选;如果是父节点,则没有子节点被勾选。鼠标移到该节点上显示为:

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      未勾选;(只有父节点存在此状态)且存在被勾选的子节点。鼠标移到该节点上显示为:

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      被勾选;如果是父节点,则没有子节点被勾选。鼠标移到该节点上显示为:

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      被勾选;(只有父节点存在此状态)且存在被勾选的子节点。鼠标移到该节点上显示为:

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      setting 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 设置选择框为 radio

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	check: {
                                                                                                                                                                                                                                                                                                                      +		enable: true,
                                                                                                                                                                                                                                                                                                                      +		chkStyle: "radio"
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/setting.check.chkboxType.html b/alive-admin/target/classes/static/ztree/api/cn/setting.check.chkboxType.html new file mode 100644 index 0000000..da06b6c --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/setting.check.chkboxType.html @@ -0,0 +1,31 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      JSONsetting.check.chkboxType

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.excheck 扩展 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      勾选 checkbox 对于父子节点的关联关系。[setting.check.enable = true 且 setting.check.chkStyle = "checkbox" 时生效]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值:{ "Y": "ps", "N": "ps" }

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      JSON 格式说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Y 属性定义 checkbox 被勾选后的情况; +
                                                                                                                                                                                                                                                                                                                      N 属性定义 checkbox 取消勾选后的情况; +
                                                                                                                                                                                                                                                                                                                      "p" 表示操作会影响父级节点; +
                                                                                                                                                                                                                                                                                                                      "s" 表示操作会影响子级节点。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      请注意大小写,不要改变

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      setting 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. checkbox 勾选操作,只影响父级节点;取消勾选操作,只影响子级节点

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	check: {
                                                                                                                                                                                                                                                                                                                      +		enable: true,
                                                                                                                                                                                                                                                                                                                      +		chkStyle: "checkbox",
                                                                                                                                                                                                                                                                                                                      +		chkboxType: { "Y": "p", "N": "s" }
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/setting.check.enable.html b/alive-admin/target/classes/static/ztree/api/cn/setting.check.enable.html new file mode 100644 index 0000000..8b1387e --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/setting.check.enable.html @@ -0,0 +1,25 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Booleansetting.check.enable

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.excheck 扩展 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      设置 zTree 的节点上是否显示 checkbox / radio

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值: false

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Boolean 格式说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      true / false 分别表示 显示 / 不显示 复选框或单选框

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      setting 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 需要显示 checkbox

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	check: {
                                                                                                                                                                                                                                                                                                                      +		enable: true
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/setting.check.nocheckInherit.html b/alive-admin/target/classes/static/ztree/api/cn/setting.check.nocheckInherit.html new file mode 100644 index 0000000..caf9902 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/setting.check.nocheckInherit.html @@ -0,0 +1,28 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Booleansetting.check.nocheckInherit

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.excheck 扩展 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      当父节点设置 nocheck = true 时,设置子节点是否自动继承 nocheck = true 。[setting.check.enable = true 时生效]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1、只使用于初始化节点时,便于批量操作。 对于已存在的节点请利用 updateNode 方法单个节点设置。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值: false

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Boolean 格式说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      true 表示 新加入子节点时,自动继承父节点 nocheck = true 的属性。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      false 表示 新加入子节点时,不继承父节点 nocheck 的属性。

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      setting 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 需要子节点自动继承 nocheck = true

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	check: {
                                                                                                                                                                                                                                                                                                                      +		enable: true,
                                                                                                                                                                                                                                                                                                                      +		nocheckInherit: true
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/setting.check.radioType.html b/alive-admin/target/classes/static/ztree/api/cn/setting.check.radioType.html new file mode 100644 index 0000000..19f84ca --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/setting.check.radioType.html @@ -0,0 +1,29 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Stringsetting.check.radioType

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.excheck 扩展 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      radio 的分组范围。[setting.check.enable = true 且 setting.check.chkStyle = "radio" 时生效]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值:"level"

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      String 格式说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      radioType = "level" 时,在每一级节点范围内当做一个分组。 +
                                                                                                                                                                                                                                                                                                                      radioType = "all" 时,在整棵树范围内当做一个分组。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      请注意大小写,不要改变

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      setting 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 设置 radio 的判别规则为整棵树内

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	check: {
                                                                                                                                                                                                                                                                                                                      +		enable: true,
                                                                                                                                                                                                                                                                                                                      +		chkStyle: "radio",
                                                                                                                                                                                                                                                                                                                      +		radioType: "all"
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/setting.data.keep.leaf.html b/alive-admin/target/classes/static/ztree/api/cn/setting.data.keep.leaf.html new file mode 100644 index 0000000..af3a721 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/setting.data.keep.leaf.html @@ -0,0 +1,28 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Booleansetting.data.keep.leaf

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.core 核心 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      zTree 的节点叶子节点属性锁,是否始终保持 isParent = false

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值:false

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Boolean 格式说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      true / false 分别表示 锁定 / 不锁定 叶子节点属性

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      如果设置为 true,则所有 isParent = false 的节点,都无法添加子节点。

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      setting 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 需要锁定叶子节点状态

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	data: {
                                                                                                                                                                                                                                                                                                                      +		keep: {
                                                                                                                                                                                                                                                                                                                      +			leaf: true
                                                                                                                                                                                                                                                                                                                      +		}
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/setting.data.keep.parent.html b/alive-admin/target/classes/static/ztree/api/cn/setting.data.keep.parent.html new file mode 100644 index 0000000..c4975df --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/setting.data.keep.parent.html @@ -0,0 +1,28 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Booleansetting.data.keep.parent

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.core 核心 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      zTree 的节点父节点属性锁,是否始终保持 isParent = true

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值:false

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Boolean 格式说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      true / false 分别表示 锁定 / 不锁定 父节点属性

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      如果设置为 true,则所有 isParent = true 的节点,即使该节点的子节点被全部删除或移走,依旧保持父节点状态。

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      setting 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 需要锁定父节点状态

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	data: {
                                                                                                                                                                                                                                                                                                                      +		keep: {
                                                                                                                                                                                                                                                                                                                      +			parent: true
                                                                                                                                                                                                                                                                                                                      +		}
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/setting.data.key.checked.html b/alive-admin/target/classes/static/ztree/api/cn/setting.data.key.checked.html new file mode 100644 index 0000000..ac9fdc1 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/setting.data.key.checked.html @@ -0,0 +1,24 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Stringsetting.data.key.checked

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.excheck 扩展 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      zTree 节点数据中保存 check 状态的属性名称。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值:"checked"

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      请勿与 zTree 节点数据的其他参数冲突,例如:checkedOld

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      setting 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 设置 zTree 显示节点时,将 treeNode 的 isChecked 属性当做节点名称

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	data: {
                                                                                                                                                                                                                                                                                                                      +		key: {
                                                                                                                                                                                                                                                                                                                      +			checked: "isChecked"
                                                                                                                                                                                                                                                                                                                      +		}
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/setting.data.key.children.html b/alive-admin/target/classes/static/ztree/api/cn/setting.data.key.children.html new file mode 100644 index 0000000..66a49a7 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/setting.data.key.children.html @@ -0,0 +1,23 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Stringsetting.data.key.children

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.core 核心 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      zTree 节点数据中保存子节点数据的属性名称。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值:"children"

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      setting 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 设置 zTree 显示节点时,将 treeNode 的 nodes 属性当做节点名称

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	data: {
                                                                                                                                                                                                                                                                                                                      +		key: {
                                                                                                                                                                                                                                                                                                                      +			children: "nodes"
                                                                                                                                                                                                                                                                                                                      +		}
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/setting.data.key.name.html b/alive-admin/target/classes/static/ztree/api/cn/setting.data.key.name.html new file mode 100644 index 0000000..c25d250 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/setting.data.key.name.html @@ -0,0 +1,23 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Stringsetting.data.key.name

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.core 核心 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      zTree 节点数据保存节点名称的属性名称。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值:"name"

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      setting 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 设置 zTree 显示节点时,将 treeNode 的 ename 属性当做节点名称

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	data: {
                                                                                                                                                                                                                                                                                                                      +		key: {
                                                                                                                                                                                                                                                                                                                      +			name: "ename"
                                                                                                                                                                                                                                                                                                                      +		}
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/setting.data.key.title.html b/alive-admin/target/classes/static/ztree/api/cn/setting.data.key.title.html new file mode 100644 index 0000000..43e6855 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/setting.data.key.title.html @@ -0,0 +1,24 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Stringsetting.data.key.title

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.core 核心 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      zTree 节点数据保存节点提示信息的属性名称。[setting.view.showTitle = true 时生效]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      如果设置为 "" ,则自动与 setting.data.key.name 保持一致,避免用户反复设置

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值:""

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      setting 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 设置 zTree 显示节点时,将 treeNode 的 fullName 属性当做节点名称

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	data: {
                                                                                                                                                                                                                                                                                                                      +		key: {
                                                                                                                                                                                                                                                                                                                      +			title: "fullName"
                                                                                                                                                                                                                                                                                                                      +		}
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/setting.data.key.url.html b/alive-admin/target/classes/static/ztree/api/cn/setting.data.key.url.html new file mode 100644 index 0000000..e534d98 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/setting.data.key.url.html @@ -0,0 +1,24 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Stringsetting.data.key.url

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.core 核心 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      zTree 节点数据保存节点链接的目标 URL 的属性名称。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      特殊用途:当后台数据只能生成 url 属性,又不想实现点击节点跳转的功能时,可以直接修改此属性为其他不存在的属性名称

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值:"url"

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      setting 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 设置 zTree 显示节点时,将 treeNode 的 xUrl 属性当做节点链接的目标 URL

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	data: {
                                                                                                                                                                                                                                                                                                                      +		key: {
                                                                                                                                                                                                                                                                                                                      +			url: "xUrl"
                                                                                                                                                                                                                                                                                                                      +		}
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/setting.data.simpleData.enable.html b/alive-admin/target/classes/static/ztree/api/cn/setting.data.simpleData.enable.html new file mode 100644 index 0000000..65bd407 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/setting.data.simpleData.enable.html @@ -0,0 +1,38 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Booleansetting.data.simpleData.enable

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.core 核心 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      确定 zTree 初始化时的节点数据、异步加载时的节点数据、或 addNodes 方法中输入的 newNodes 数据是否采用简单数据模式 (Array)

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      不需要用户再把数据库中取出的 List 强行转换为复杂的 JSON 嵌套格式

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值:false

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Boolean 格式说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      true / false 分别表示 使用 / 不使用 简单数据模式

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      如果设置为 true,请务必设置 setting.data.simpleData 内的其他参数: idKey / pIdKey / rootPId,并且让数据满足父子关系。

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      setting 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 使用简单 Array 格式的数据

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	data: {
                                                                                                                                                                                                                                                                                                                      +		simpleData: {
                                                                                                                                                                                                                                                                                                                      +			enable: true,
                                                                                                                                                                                                                                                                                                                      +			idKey: "id",
                                                                                                                                                                                                                                                                                                                      +			pIdKey: "pId",
                                                                                                                                                                                                                                                                                                                      +			rootPId: 0,
                                                                                                                                                                                                                                                                                                                      +		}
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +var treeNodes = [
                                                                                                                                                                                                                                                                                                                      +    {"id":1, "pId":0, "name":"test1"},
                                                                                                                                                                                                                                                                                                                      +    {"id":11, "pId":1, "name":"test11"},
                                                                                                                                                                                                                                                                                                                      +    {"id":12, "pId":1, "name":"test12"},
                                                                                                                                                                                                                                                                                                                      +    {"id":111, "pId":11, "name":"test111"}
                                                                                                                                                                                                                                                                                                                      +];
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/setting.data.simpleData.idKey.html b/alive-admin/target/classes/static/ztree/api/cn/setting.data.simpleData.idKey.html new file mode 100644 index 0000000..81129e9 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/setting.data.simpleData.idKey.html @@ -0,0 +1,32 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Stringsetting.data.simpleData.idKey

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.core 核心 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      节点数据中保存唯一标识的属性名称。[setting.data.simpleData.enable = true 时生效]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值:"id"

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      setting 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 使用简单 Array 格式的数据

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	data: {
                                                                                                                                                                                                                                                                                                                      +		simpleData: {
                                                                                                                                                                                                                                                                                                                      +			enable: true,
                                                                                                                                                                                                                                                                                                                      +			idKey: "id",
                                                                                                                                                                                                                                                                                                                      +			pIdKey: "pId",
                                                                                                                                                                                                                                                                                                                      +			rootPId: 0,
                                                                                                                                                                                                                                                                                                                      +		}
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +var treeNodes = [
                                                                                                                                                                                                                                                                                                                      +    {"id":1, "pId":0, "name":"test1"},
                                                                                                                                                                                                                                                                                                                      +    {"id":11, "pId":1, "name":"test11"},
                                                                                                                                                                                                                                                                                                                      +    {"id":12, "pId":1, "name":"test12"},
                                                                                                                                                                                                                                                                                                                      +    {"id":111, "pId":11, "name":"test111"}
                                                                                                                                                                                                                                                                                                                      +];
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/setting.data.simpleData.pIdKey.html b/alive-admin/target/classes/static/ztree/api/cn/setting.data.simpleData.pIdKey.html new file mode 100644 index 0000000..d434bc3 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/setting.data.simpleData.pIdKey.html @@ -0,0 +1,32 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Stringsetting.data.simpleData.pIdKey

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.core 核心 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      节点数据中保存其父节点唯一标识的属性名称。[setting.data.simpleData.enable = true 时生效]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值:"pId"

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      setting 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 使用简单 Array 格式的数据

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	data: {
                                                                                                                                                                                                                                                                                                                      +		simpleData: {
                                                                                                                                                                                                                                                                                                                      +			enable: true,
                                                                                                                                                                                                                                                                                                                      +			idKey: "id",
                                                                                                                                                                                                                                                                                                                      +			pIdKey: "pId",
                                                                                                                                                                                                                                                                                                                      +			rootPId: 0
                                                                                                                                                                                                                                                                                                                      +		}
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +var treeNodes = [
                                                                                                                                                                                                                                                                                                                      +    {"id":1, "pId":0, "name":"test1"},
                                                                                                                                                                                                                                                                                                                      +    {"id":11, "pId":1, "name":"test11"},
                                                                                                                                                                                                                                                                                                                      +    {"id":12, "pId":1, "name":"test12"},
                                                                                                                                                                                                                                                                                                                      +    {"id":111, "pId":11, "name":"test111"}
                                                                                                                                                                                                                                                                                                                      +];
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/setting.data.simpleData.rootPId.html b/alive-admin/target/classes/static/ztree/api/cn/setting.data.simpleData.rootPId.html new file mode 100644 index 0000000..8cff82d --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/setting.data.simpleData.rootPId.html @@ -0,0 +1,32 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      String / Numbersetting.data.simpleData.rootPId

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.core 核心 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      用于修正根节点父节点数据,即 pIdKey 指定的属性值。[setting.data.simpleData.enable = true 时生效]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值:null

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      setting 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 使用简单 Array 格式的数据

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	data: {
                                                                                                                                                                                                                                                                                                                      +		simpleData: {
                                                                                                                                                                                                                                                                                                                      +			enable: true,
                                                                                                                                                                                                                                                                                                                      +			idKey: "id",
                                                                                                                                                                                                                                                                                                                      +			pIdKey: "pId",
                                                                                                                                                                                                                                                                                                                      +			rootPId: 0
                                                                                                                                                                                                                                                                                                                      +		}
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +var treeNodes = [
                                                                                                                                                                                                                                                                                                                      +    {"id":1, "pId":0, "name":"test1"},
                                                                                                                                                                                                                                                                                                                      +    {"id":11, "pId":1, "name":"test11"},
                                                                                                                                                                                                                                                                                                                      +    {"id":12, "pId":1, "name":"test12"},
                                                                                                                                                                                                                                                                                                                      +    {"id":111, "pId":11, "name":"test111"}
                                                                                                                                                                                                                                                                                                                      +];
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/setting.edit.drag.autoExpandTrigger.html b/alive-admin/target/classes/static/ztree/api/cn/setting.edit.drag.autoExpandTrigger.html new file mode 100644 index 0000000..126b8a8 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/setting.edit.drag.autoExpandTrigger.html @@ -0,0 +1,28 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Booleansetting.edit.drag.autoExpandTrigger

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      拖拽时父节点自动展开是否触发 onExpand 事件回调函数。[setting.edit.enable = true 时生效]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值:false

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Boolean 格式说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      true / false 分别表示 触发 / 不触发 onExpand 事件回调函数。

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      setting 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 设置拖拽时父节点自动展开触发 onExpand 事件回调函数

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	edit: {
                                                                                                                                                                                                                                                                                                                      +		enable: true,
                                                                                                                                                                                                                                                                                                                      +		drag: {
                                                                                                                                                                                                                                                                                                                      +			autoExpandTrigger: true
                                                                                                                                                                                                                                                                                                                      +		}
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/setting.edit.drag.autoOpenTime.html b/alive-admin/target/classes/static/ztree/api/cn/setting.edit.drag.autoOpenTime.html new file mode 100644 index 0000000..df78339 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/setting.edit.drag.autoOpenTime.html @@ -0,0 +1,25 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Numbersetting.edit.drag.autoOpenTime

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      拖拽时父节点自动展开的延时间隔。 (单位:ms)[setting.edit.enable = true 时生效]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值:500

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      请根据自己的需求适当调整此值

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      setting 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 设置拖拽到父节点上立刻自动展开

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	edit: {
                                                                                                                                                                                                                                                                                                                      +		enable: true,
                                                                                                                                                                                                                                                                                                                      +		drag: {
                                                                                                                                                                                                                                                                                                                      +			autoOpenTime: 0
                                                                                                                                                                                                                                                                                                                      +		}
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/setting.edit.drag.borderMax.html b/alive-admin/target/classes/static/ztree/api/cn/setting.edit.drag.borderMax.html new file mode 100644 index 0000000..1d4dd68 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/setting.edit.drag.borderMax.html @@ -0,0 +1,25 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Numbersetting.edit.drag.borderMax

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      拖拽节点成为根节点时的 Tree 内边界范围 (单位:px)。[setting.edit.enable = true 时生效]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值:10

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      请根据自己的需求适当调整此值

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      setting 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 更改拖拽操作节点成为根节点时的 Tree 内边界范围为20px

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	edit: {
                                                                                                                                                                                                                                                                                                                      +		enable: true,
                                                                                                                                                                                                                                                                                                                      +		drag: {
                                                                                                                                                                                                                                                                                                                      +			borderMax: 20
                                                                                                                                                                                                                                                                                                                      +		}
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/setting.edit.drag.borderMin.html b/alive-admin/target/classes/static/ztree/api/cn/setting.edit.drag.borderMin.html new file mode 100644 index 0000000..463eb2b --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/setting.edit.drag.borderMin.html @@ -0,0 +1,25 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Numbersetting.edit.drag.borderMin

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      拖拽节点成为根节点时的 Tree 外边界范围 (单位:px)。[setting.edit.enable = true 时生效]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值:-5

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      请根据自己的需求适当调整此值

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      setting 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 更改拖拽操作节点成为根节点时的 Tree 外边界范围为10px

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	edit: {
                                                                                                                                                                                                                                                                                                                      +		enable: true,
                                                                                                                                                                                                                                                                                                                      +		drag: {
                                                                                                                                                                                                                                                                                                                      +			borderMin: -10
                                                                                                                                                                                                                                                                                                                      +		}
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/setting.edit.drag.inner.html b/alive-admin/target/classes/static/ztree/api/cn/setting.edit.drag.inner.html new file mode 100644 index 0000000..06679e1 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/setting.edit.drag.inner.html @@ -0,0 +1,59 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Boolean / Function(treeId, treeNodes, targetNode)setting.edit.drag.inner

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      拖拽到目标节点时,设置是否允许成为目标节点的子节点。[setting.edit.enable = true 时生效]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      拖拽目标是 根 的时候,不触发 prev 和 next,只会触发 inner

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      此功能主要作用是对拖拽进行适当限制(辅助箭头),需要结合 prev、next 一起使用,才能实现完整功能。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值:true

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Boolean 格式说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      true / false 分别表示 允许 / 不允许 成为目标节点的子节点

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function 参数说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      对应 zTree 的 treeId,便于用户操控(多棵树拖拽时,是目标节点所在树的 treeId)

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodesArray(JSON)

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      被拖拽的节点 JSON 数据集合

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      targetNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      拖拽时的目标节点 JSON 数据对象

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      如果拖拽的节点要成为根节点,则 targetNode = null

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值Boolean

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值同 Boolean 格式的数据

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      setting & function 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 禁止拖拽成为目标节点的子节点

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	edit: {
                                                                                                                                                                                                                                                                                                                      +		enable: true,
                                                                                                                                                                                                                                                                                                                      +		drag: {
                                                                                                                                                                                                                                                                                                                      +			prev: true,
                                                                                                                                                                                                                                                                                                                      +			next: true,
                                                                                                                                                                                                                                                                                                                      +			inner: false
                                                                                                                                                                                                                                                                                                                      +		}
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2. 禁止拖拽成为根节点的子节点

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      function canInner(treeId, nodes, targetNode) {
                                                                                                                                                                                                                                                                                                                      +	return !(targetNode && targetNode.level === 0);
                                                                                                                                                                                                                                                                                                                      +}
                                                                                                                                                                                                                                                                                                                      +var setting = {
                                                                                                                                                                                                                                                                                                                      +	edit: {
                                                                                                                                                                                                                                                                                                                      +		enable: true,
                                                                                                                                                                                                                                                                                                                      +		drag: {
                                                                                                                                                                                                                                                                                                                      +			prev: true,
                                                                                                                                                                                                                                                                                                                      +			next: true,
                                                                                                                                                                                                                                                                                                                      +			inner: canInner
                                                                                                                                                                                                                                                                                                                      +		}
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/setting.edit.drag.isCopy.html b/alive-admin/target/classes/static/ztree/api/cn/setting.edit.drag.isCopy.html new file mode 100644 index 0000000..f77ead4 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/setting.edit.drag.isCopy.html @@ -0,0 +1,32 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Booleansetting.edit.drag.isCopy

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      拖拽时, 设置是否允许复制节点。[setting.edit.enable = true 时生效]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值:true

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      规则说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1、isCopy = true; isMove = true 时,拖拽节点按下 Ctrl 键表示 copy; 否则为 move

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2、isCopy = true; isMove = false 时,所有拖拽操作都是 copy

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      3、isCopy = false; isMove = true 时,所有拖拽操作都是 move

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      4、isCopy = false; isMove = false 时,禁止拖拽操作

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      setting 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 设置所有拖拽操作都是 copy

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	edit: {
                                                                                                                                                                                                                                                                                                                      +		enable: true,
                                                                                                                                                                                                                                                                                                                      +		drag: {
                                                                                                                                                                                                                                                                                                                      +			isCopy: true,
                                                                                                                                                                                                                                                                                                                      +			isMove: false
                                                                                                                                                                                                                                                                                                                      +		}
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/setting.edit.drag.isMove.html b/alive-admin/target/classes/static/ztree/api/cn/setting.edit.drag.isMove.html new file mode 100644 index 0000000..d860286 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/setting.edit.drag.isMove.html @@ -0,0 +1,32 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Booleansetting.edit.drag.isMove

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      拖拽时, 设置是否允许移动节点。[setting.edit.enable = true 时生效]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值:true

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      规则说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1、isCopy = true; isMove = true 时,拖拽节点按下 Ctrl 键表示 copy; 否则为 move

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2、isCopy = true; isMove = false 时,所有拖拽操作都是 copy

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      3、isCopy = false; isMove = true 时,所有拖拽操作都是 move

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      4、isCopy = false; isMove = false 时,禁止拖拽操作

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      setting 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 设置所有拖拽操作都是 move

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	edit: {
                                                                                                                                                                                                                                                                                                                      +		enable: true,
                                                                                                                                                                                                                                                                                                                      +		drag: {
                                                                                                                                                                                                                                                                                                                      +			isCopy: false,
                                                                                                                                                                                                                                                                                                                      +			isMove: true
                                                                                                                                                                                                                                                                                                                      +		}
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/setting.edit.drag.maxShowNodeNum.html b/alive-admin/target/classes/static/ztree/api/cn/setting.edit.drag.maxShowNodeNum.html new file mode 100644 index 0000000..3e7a3d2 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/setting.edit.drag.maxShowNodeNum.html @@ -0,0 +1,25 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Numbersetting.edit.drag.maxShowNodeNum

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      拖拽多个兄弟节点时,浮动图层中显示的最大节点数。 多余的节点用...代替。[setting.edit.enable = true 时生效]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值:5

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      请根据自己的需求适当调整此值

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      setting 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 设置拖拽时最多可显示10个节点

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	edit: {
                                                                                                                                                                                                                                                                                                                      +		enable: true,
                                                                                                                                                                                                                                                                                                                      +		drag: {
                                                                                                                                                                                                                                                                                                                      +			maxShowNodeNum: 10
                                                                                                                                                                                                                                                                                                                      +		}
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/setting.edit.drag.minMoveSize.html b/alive-admin/target/classes/static/ztree/api/cn/setting.edit.drag.minMoveSize.html new file mode 100644 index 0000000..904be41 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/setting.edit.drag.minMoveSize.html @@ -0,0 +1,25 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Numbersetting.edit.drag.minMoveSize

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      判定是否拖拽操作的最小位移值 (单位:px)。[setting.edit.enable = true 时生效]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      根据自己的需求可适当调整此值,如果太小容易导致点击鼠标时误操作进行拖拽

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值:5

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      setting 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 更改拖拽操作启动位移值为10px

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	edit: {
                                                                                                                                                                                                                                                                                                                      +		enable: true,
                                                                                                                                                                                                                                                                                                                      +		drag: {
                                                                                                                                                                                                                                                                                                                      +			minMoveSize: 10
                                                                                                                                                                                                                                                                                                                      +		}
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/setting.edit.drag.next.html b/alive-admin/target/classes/static/ztree/api/cn/setting.edit.drag.next.html new file mode 100644 index 0000000..ffc874a --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/setting.edit.drag.next.html @@ -0,0 +1,58 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Boolean / Function(treeId, treeNodes, targetNode)setting.edit.drag.next

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      拖拽到目标节点时,设置是否允许移动到目标节点后面的操作。[setting.edit.enable = true 时生效]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      拖拽目标是 根 的时候,不触发 prev 和 next,只会触发 inner

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      此功能主要作用是对拖拽进行适当限制(辅助箭头),需要结合 prev、inner 一起使用,才能实现完整功能。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值:true

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Boolean 格式说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      true / false 分别表示 允许 / 不允许 移动到目标节点后面

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function 参数说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      对应 zTree 的 treeId,便于用户操控(多棵树拖拽时,是目标节点所在树的 treeId)

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodesArray(JSON)

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      被拖拽的节点 JSON 数据集合

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      targetNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      拖拽时的目标节点 JSON 数据对象

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值Boolean

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值同 Boolean 格式的数据

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      setting & function 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 禁止拖拽到节点后面的操作

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	edit: {
                                                                                                                                                                                                                                                                                                                      +		enable: true,
                                                                                                                                                                                                                                                                                                                      +		drag: {
                                                                                                                                                                                                                                                                                                                      +			prev: true,
                                                                                                                                                                                                                                                                                                                      +			next: false,
                                                                                                                                                                                                                                                                                                                      +			inner: true
                                                                                                                                                                                                                                                                                                                      +		}
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2. 禁止拖拽到父节点后面的操作

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      function canNext(treeId, nodes, targetNode) {
                                                                                                                                                                                                                                                                                                                      +	return !targetNode.isParent;
                                                                                                                                                                                                                                                                                                                      +}
                                                                                                                                                                                                                                                                                                                      +var setting = {
                                                                                                                                                                                                                                                                                                                      +	edit: {
                                                                                                                                                                                                                                                                                                                      +		enable: true,
                                                                                                                                                                                                                                                                                                                      +		drag: {
                                                                                                                                                                                                                                                                                                                      +			prev: true,
                                                                                                                                                                                                                                                                                                                      +			next: canNext,
                                                                                                                                                                                                                                                                                                                      +			inner: true
                                                                                                                                                                                                                                                                                                                      +		}
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/setting.edit.drag.prev.html b/alive-admin/target/classes/static/ztree/api/cn/setting.edit.drag.prev.html new file mode 100644 index 0000000..bd05361 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/setting.edit.drag.prev.html @@ -0,0 +1,58 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Boolean / Function(treeId, treeNodes, targetNode)setting.edit.drag.prev

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      拖拽到目标节点时,设置是否允许移动到目标节点前面的操作。[setting.edit.enable = true 时生效]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      拖拽目标是 根 的时候,不触发 prev 和 next,只会触发 inner

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      此功能主要作用是对拖拽进行适当限制(辅助箭头),需要结合 next、inner 一起使用,才能实现完整功能。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值:true

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Boolean 格式说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      true / false 分别表示 允许 / 不允许 移动到目标节点前面

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function 参数说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      对应 zTree 的 treeId,便于用户操控(多棵树拖拽时,是目标节点所在树的 treeId)

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodesArray(JSON)

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      被拖拽的节点 JSON 数据集合

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      targetNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      拖拽时的目标节点 JSON 数据对象

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值Boolean

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值同 Boolean 格式的数据

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      setting & function 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 禁止拖拽到节点前面的操作

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	edit: {
                                                                                                                                                                                                                                                                                                                      +		enable: true,
                                                                                                                                                                                                                                                                                                                      +		drag: {
                                                                                                                                                                                                                                                                                                                      +			prev: false,
                                                                                                                                                                                                                                                                                                                      +			next: true,
                                                                                                                                                                                                                                                                                                                      +			inner: true
                                                                                                                                                                                                                                                                                                                      +		}
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2. 禁止拖拽到父节点前面的操作

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      function canPrev(treeId, nodes, targetNode) {
                                                                                                                                                                                                                                                                                                                      +	return !targetNode.isParent;
                                                                                                                                                                                                                                                                                                                      +}
                                                                                                                                                                                                                                                                                                                      +var setting = {
                                                                                                                                                                                                                                                                                                                      +	edit: {
                                                                                                                                                                                                                                                                                                                      +		enable: true,
                                                                                                                                                                                                                                                                                                                      +		drag: {
                                                                                                                                                                                                                                                                                                                      +			prev: canPrev,
                                                                                                                                                                                                                                                                                                                      +			next: true,
                                                                                                                                                                                                                                                                                                                      +			inner: true
                                                                                                                                                                                                                                                                                                                      +		}
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/setting.edit.editNameSelectAll.html b/alive-admin/target/classes/static/ztree/api/cn/setting.edit.editNameSelectAll.html new file mode 100644 index 0000000..30784f3 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/setting.edit.editNameSelectAll.html @@ -0,0 +1,27 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Booleansetting.edit.editNameSelectAll

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      节点编辑名称 input 初次显示时,设置 txt 内容是否为全选状态。 [setting.edit.enable = true 时生效]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值: false

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Boolean 格式说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      true 表示 全选状态

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      false 表示 不是全选状态,光标默认在最后

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      setting 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 设置节点编辑名称 input 初次显示时,txt内容为全选状态

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	edit: {
                                                                                                                                                                                                                                                                                                                      +		enable: true,
                                                                                                                                                                                                                                                                                                                      +		editNameSelectAll: true
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/setting.edit.enable.html b/alive-admin/target/classes/static/ztree/api/cn/setting.edit.enable.html new file mode 100644 index 0000000..de1afea --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/setting.edit.enable.html @@ -0,0 +1,38 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Booleansetting.edit.enable

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      设置 zTree 是否处于编辑状态

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      请在初始化之前设置,初始化后需要改变编辑状态请使用 zTreeObj.setEditable() 方法

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值: false

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Boolean 格式说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      true / false 分别表示 可以 / 不可以 编辑

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      编辑状态规则说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1、点击节点时,不会打开 node.url 指定的 URL。 +
                                                                                                                                                                                                                                                                                                                      2、全面支持 编辑 与 异步加载 状态共存。 +
                                                                                                                                                                                                                                                                                                                      3、可以对节点进行拖拽,且支持多棵树之间进行拖拽。 +
                                                                                                                                                                                                                                                                                                                      4、支持拖拽时 复制/移动 节点。(参考: setting.edit.drag.isCopy / setting.edit.drag.isMove) +
                                                                                                                                                                                                                                                                                                                      5、可以通过编辑按钮修改 name 属性。 +
                                                                                                                                                                                                                                                                                                                      6、可以通过删除按钮删除节点。 +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      请注意大小写,不要改变

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      setting 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 设置 zTree 进入编辑状态

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	edit: {
                                                                                                                                                                                                                                                                                                                      +		enable: true
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/setting.edit.removeTitle.html b/alive-admin/target/classes/static/ztree/api/cn/setting.edit.removeTitle.html new file mode 100644 index 0000000..55257da --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/setting.edit.removeTitle.html @@ -0,0 +1,48 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      String / Function(treeId, treeNode)setting.edit.removeTitle

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      删除按钮的 Title 辅助信息。[setting.edit.enable = true & setting.edit.showRemoveBtn = true 时生效]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值:"remove"

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      String 格式说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      鼠标移动到 删除按钮 上时,浏览器自动弹出的辅助信息内容,可根据用户需要自行修改

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function 参数说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      对应 zTree 的 treeId,便于用户操控

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      需要设置删除按钮 Title 信息的节点 JSON 数据对象

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值String

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值同 String 格式的数据

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      setting & function 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 设置删除按钮的 Title 辅助信息为: "删除节点"

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	edit: {
                                                                                                                                                                                                                                                                                                                      +		enable: true,
                                                                                                                                                                                                                                                                                                                      +		showRemoveBtn: true,
                                                                                                                                                                                                                                                                                                                      +		removeTitle: "删除节点"
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2. 设置父节点删除按钮的 Title 辅助信息为: "删除父节点"

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      function setRemoveTitle(treeId, treeNode) {
                                                                                                                                                                                                                                                                                                                      +	return treeNode.isParent ? "删除父节点":"删除叶子节点";
                                                                                                                                                                                                                                                                                                                      +}
                                                                                                                                                                                                                                                                                                                      +var setting = {
                                                                                                                                                                                                                                                                                                                      +	edit: {
                                                                                                                                                                                                                                                                                                                      +		enable: true,
                                                                                                                                                                                                                                                                                                                      +		showRemoveBtn: true,
                                                                                                                                                                                                                                                                                                                      +		removeTitle: setRemoveTitle
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/setting.edit.renameTitle.html b/alive-admin/target/classes/static/ztree/api/cn/setting.edit.renameTitle.html new file mode 100644 index 0000000..2dfbcca --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/setting.edit.renameTitle.html @@ -0,0 +1,48 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      String / Function(treeId, treeNode)setting.edit.renameTitle

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      编辑名称按钮的 Title 辅助信息。[setting.edit.enable = true & setting.edit.showRenameBtn = true 时生效]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值:"rename"

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      String 格式说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      设置鼠标移动到 编辑名称按钮 上时,浏览器自动弹出的辅助信息内容,可根据用户需要自行修改

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function 参数说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      对应 zTree 的 treeId,便于用户操控

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      需要设置编辑名称按钮 Title 信息的节点 JSON 数据对象

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值String

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值同 String 格式的数据

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      setting & function 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 设置编辑名称按钮的 Title 辅助信息为: "编辑节点名称"

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	edit: {
                                                                                                                                                                                                                                                                                                                      +		enable: true,
                                                                                                                                                                                                                                                                                                                      +		showRenameBtn: true,
                                                                                                                                                                                                                                                                                                                      +		renameTitle: "编辑节点名称"
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2. 设置父节点编辑名称按钮的 Title 辅助信息为: "编辑父节点名称"

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      function setRenameTitle(treeId, treeNode) {
                                                                                                                                                                                                                                                                                                                      +	return treeNode.isParent ? "编辑父节点名称":"编辑叶子节点名称";
                                                                                                                                                                                                                                                                                                                      +}
                                                                                                                                                                                                                                                                                                                      +var setting = {
                                                                                                                                                                                                                                                                                                                      +	edit: {
                                                                                                                                                                                                                                                                                                                      +		enable: true,
                                                                                                                                                                                                                                                                                                                      +		showRenameBtn: true,
                                                                                                                                                                                                                                                                                                                      +		renameTitle: setRenameTitle
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/setting.edit.showRemoveBtn.html b/alive-admin/target/classes/static/ztree/api/cn/setting.edit.showRemoveBtn.html new file mode 100644 index 0000000..db62053 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/setting.edit.showRemoveBtn.html @@ -0,0 +1,49 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Boolean / Function(treeId, treeNode)setting.edit.showRemoveBtn

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      设置是否显示删除按钮。[setting.edit.enable = true 时生效]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      当点击某节点的删除按钮时:

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1、首先触发 setting.callback.beforeRemove 回调函数,用户可判定是否进行删除操作。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2、如果未设置 beforeRemove 或 beforeRemove 返回 true,则删除节点并触发 setting.callback.onRemove 回调函数。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值:true

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Boolean 格式说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      true / false 分别表示 显示 / 隐藏 删除按钮

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function 参数说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      对应 zTree 的 treeId,便于用户操控

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      需要设置是否显示删除按钮的节点 JSON 数据对象

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值Boolean

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值同 Boolean 格式的数据

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      setting & function 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 不显示删除按钮

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	edit: {
                                                                                                                                                                                                                                                                                                                      +		enable: true,
                                                                                                                                                                                                                                                                                                                      +		showRemoveBtn: false
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2. 设置所有的父节点不显示删除按钮

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      function setRemoveBtn(treeId, treeNode) {
                                                                                                                                                                                                                                                                                                                      +	return !treeNode.isParent;
                                                                                                                                                                                                                                                                                                                      +}
                                                                                                                                                                                                                                                                                                                      +var setting = {
                                                                                                                                                                                                                                                                                                                      +	edit: {
                                                                                                                                                                                                                                                                                                                      +		enable: true,
                                                                                                                                                                                                                                                                                                                      +		showRemoveBtn: setRemoveBtn
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/setting.edit.showRenameBtn.html b/alive-admin/target/classes/static/ztree/api/cn/setting.edit.showRenameBtn.html new file mode 100644 index 0000000..33dd37a --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/setting.edit.showRenameBtn.html @@ -0,0 +1,51 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Boolean / Function(treeId, treeNode)setting.edit.showRenameBtn

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      设置是否显示编辑名称按钮。[setting.edit.enable = true 时生效]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      当点击某节点的编辑名称按钮时:

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1、进入节点编辑名称状态。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2、编辑名称完毕(Input 失去焦点 或 按下 Enter 键),会触发 setting.callback.beforeRename 回调函数,用户可根据自己的规则判定是否允许修改名称。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      3、如果 beforeRename 返回 false,则继续保持编辑名称状态,直到名称符合规则位置 (按下 ESC 键可取消编辑名称状态,恢复原名称)。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      4、如果未设置 beforeRename 或 beforeRename 返回 true,则结束节点编辑名称状态,更新节点名称,并触发 setting.callback.onRename 回调函数。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值:true

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Boolean 格式说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      true / false 分别表示 显示 / 隐藏 编辑名称按钮

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function 参数说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      对应 zTree 的 treeId,便于用户操控

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      需要设置是否显示编辑名称按钮的节点 JSON 数据对象

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值Boolean

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值同 Boolean 格式的数据

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      setting & function 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 不显示编辑名称按钮

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	edit: {
                                                                                                                                                                                                                                                                                                                      +		enable: true,
                                                                                                                                                                                                                                                                                                                      +		showRenameBtn: false
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2. 设置所有的父节点不显示编辑名称按钮

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      function setRenameBtn(treeId, treeNode) {
                                                                                                                                                                                                                                                                                                                      +	return !treeNode.isParent;
                                                                                                                                                                                                                                                                                                                      +}
                                                                                                                                                                                                                                                                                                                      +var setting = {
                                                                                                                                                                                                                                                                                                                      +	edit: {
                                                                                                                                                                                                                                                                                                                      +		enable: true,
                                                                                                                                                                                                                                                                                                                      +		showRenameBtn: setRenameBtn
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/setting.treeId.html b/alive-admin/target/classes/static/ztree/api/cn/setting.treeId.html new file mode 100644 index 0000000..819743e --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/setting.treeId.html @@ -0,0 +1,14 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Stringsetting.treeId

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.core 核心 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      zTree 的唯一标识,初始化后,等于 用户定义的 zTree 容器的 id 属性值。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      请勿进行初始化 或 修改,属于内部参数。

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/setting.treeObj.html b/alive-admin/target/classes/static/ztree/api/cn/setting.treeObj.html new file mode 100644 index 0000000..37684a1 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/setting.treeObj.html @@ -0,0 +1,14 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Objectsetting.treeObj

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.core 核心 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      zTree 容器的 jQuery 对象,主要功能:便于操作。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      请勿进行初始化 或 修改,属于内部参数。

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/setting.view.addDiyDom.html b/alive-admin/target/classes/static/ztree/api/cn/setting.view.addDiyDom.html new file mode 100644 index 0000000..0a508ac --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/setting.view.addDiyDom.html @@ -0,0 +1,40 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(treeId, treeNode)setting.view.addDiyDom

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.core 核心 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      用于在节点上固定显示用户自定义控件

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 大数据量的节点加载请注意:在 addDiyDom 中针对每个节点 查找 DOM 对象并且添加新 DOM 控件,肯定会影响初始化性能;如果不是必须使用,建议不使用此功能

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2. 属于高级应用,使用时请确保对 zTree 比较了解。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值:null

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function 参数说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      对应 zTree 的 treeId,便于用户操控

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      需要显示自定义控件的节点 JSON 数据对象

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      setting & function 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 设置节点后面显示一个按钮

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	view: {
                                                                                                                                                                                                                                                                                                                      +		addDiyDom: addDiyDom
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +function addDiyDom(treeId, treeNode) {
                                                                                                                                                                                                                                                                                                                      +	var aObj = $("#" + treeNode.tId + "_a");
                                                                                                                                                                                                                                                                                                                      +	if ($("#diyBtn_"+treeNode.id).length>0) return;
                                                                                                                                                                                                                                                                                                                      +	var editStr = "<span id='diyBtn_space_" +treeNode.id+ "' > </span>"
                                                                                                                                                                                                                                                                                                                      +		+ "<button type='button' class='diyBtn1' id='diyBtn_" + treeNode.id
                                                                                                                                                                                                                                                                                                                      +		+ "' title='"+treeNode.name+"' onfocus='this.blur();'></button>";
                                                                                                                                                                                                                                                                                                                      +	aObj.append(editStr);
                                                                                                                                                                                                                                                                                                                      +	var btn = $("#diyBtn_"+treeNode.id);
                                                                                                                                                                                                                                                                                                                      +	if (btn) btn.bind("click", function(){alert("diy Button for " + treeNode.name);});
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/setting.view.addHoverDom.html b/alive-admin/target/classes/static/ztree/api/cn/setting.view.addHoverDom.html new file mode 100644 index 0000000..f073e79 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/setting.view.addHoverDom.html @@ -0,0 +1,45 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(treeId, treeNode)setting.view.addHoverDom

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      用于当鼠标移动到节点上时,显示用户自定义控件,显示隐藏状态同 zTree 内部的编辑、删除按钮

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      请务必与 setting.view.removeHoverDom 同时使用;属于高级应用,使用时请确保对 zTree 比较了解。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值:null

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function 参数说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      对应 zTree 的 treeId,便于用户操控

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      需要显示自定义控件的节点 JSON 数据对象

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      setting & function 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 设置鼠标移到节点上,在后面显示一个按钮

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	view: {
                                                                                                                                                                                                                                                                                                                      +		addHoverDom: addHoverDom,
                                                                                                                                                                                                                                                                                                                      +		removeHoverDom: removeHoverDom,
                                                                                                                                                                                                                                                                                                                      +		......
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +function addHoverDom(treeId, treeNode) {
                                                                                                                                                                                                                                                                                                                      +	var aObj = $("#" + treeNode.tId + "_a");
                                                                                                                                                                                                                                                                                                                      +	if ($("#diyBtn_"+treeNode.id).length>0) return;
                                                                                                                                                                                                                                                                                                                      +	var editStr = "<span id='diyBtn_space_" +treeNode.id+ "' > </span>"
                                                                                                                                                                                                                                                                                                                      +		+ "<button type='button' class='diyBtn1' id='diyBtn_" + treeNode.id
                                                                                                                                                                                                                                                                                                                      +		+ "' title='"+treeNode.name+"' onfocus='this.blur();'></button>";
                                                                                                                                                                                                                                                                                                                      +	aObj.append(editStr);
                                                                                                                                                                                                                                                                                                                      +	var btn = $("#diyBtn_"+treeNode.id);
                                                                                                                                                                                                                                                                                                                      +	if (btn) btn.bind("click", function(){alert("diy Button for " + treeNode.name);});
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +function removeHoverDom(treeId, treeNode) {
                                                                                                                                                                                                                                                                                                                      +	$("#diyBtn_"+treeNode.id).unbind().remove();
                                                                                                                                                                                                                                                                                                                      +	$("#diyBtn_space_" +treeNode.id).unbind().remove();
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/setting.view.autoCancelSelected.html b/alive-admin/target/classes/static/ztree/api/cn/setting.view.autoCancelSelected.html new file mode 100644 index 0000000..aff1078 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/setting.view.autoCancelSelected.html @@ -0,0 +1,26 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Booleansetting.view.autoCancelSelected

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.core 核心 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      点击节点时,按下 Ctrl 键是否允许取消选择操作。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      如果不需要此功能,请设置为 false。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值: true

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Boolean 格式说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      true / false 分别表示 支持 / 不支持 配合 Ctrl 键进行取消节点选择的操作

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      setting 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 禁止配合 Ctrl 键进行取消节点选择的操作

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	view: {
                                                                                                                                                                                                                                                                                                                      +		autoCancelSelected: false
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/setting.view.dblClickExpand.html b/alive-admin/target/classes/static/ztree/api/cn/setting.view.dblClickExpand.html new file mode 100644 index 0000000..5f3db96 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/setting.view.dblClickExpand.html @@ -0,0 +1,44 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Boolean / Function(treeId, treeNode)setting.view.dblClickExpand

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.core 核心 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      双击节点时,是否自动展开父节点的标识

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值: true

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Boolean 格式说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      true / false 分别表示双击节点 切换 / 不切换 展开状态

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function 参数说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      对应 zTree 的 treeId,便于用户操控

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      需要设置是否双击切换展开状态的节点 JSON 数据对象

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值Boolean

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值同 Boolean 格式的数据

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      setting 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 取消默认双击展开父节点的功能

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	view: {
                                                                                                                                                                                                                                                                                                                      +		dblClickExpand: false
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2. 设置 zTree 仅仅 level=0 的父节点取消双击展开的功能

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      function dblClickExpand(treeId, treeNode) {
                                                                                                                                                                                                                                                                                                                      +	return treeNode.level > 0;
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +var setting = {
                                                                                                                                                                                                                                                                                                                      +	view: {
                                                                                                                                                                                                                                                                                                                      +		dblClickExpand: dblClickExpand
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/setting.view.expandSpeed.html b/alive-admin/target/classes/static/ztree/api/cn/setting.view.expandSpeed.html new file mode 100644 index 0000000..3b799c3 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/setting.view.expandSpeed.html @@ -0,0 +1,31 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      String / Numbersetting.view.expandSpeed

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.core 核心 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      zTree 节点展开、折叠时的动画速度,设置方法同 JQuery 动画效果中 speed 参数。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      IE6 下会自动关闭动画效果,以保证 zTree 的操作速度

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值:"fast"

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      String 格式说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      三种预定速度之一的字符串("slow", "normal", or "fast")

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      设置为 "" 时,不显示动画效果

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Number 格式说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      表示动画时长的毫秒数值 (如:1000)

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      setting 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 设置为慢速显示动画效果

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	view: {
                                                                                                                                                                                                                                                                                                                      +		expandSpeed: "slow"
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/setting.view.fontCss.html b/alive-admin/target/classes/static/ztree/api/cn/setting.view.fontCss.html new file mode 100644 index 0000000..54efb1b --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/setting.view.fontCss.html @@ -0,0 +1,42 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      JSON / Function(treeId, treeNode)setting.view.fontCss

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.core 核心 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      个性化文字样式,只针对 zTree 在节点上显示的<A>对象。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值:{}

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      JSON 格式说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      JSON 格式为 JQuery css方法中的 JSON 对象格式,例如:{color:"#ff0011", background:"blue"}

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function 参数说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      对应 zTree 的 treeId,便于用户操控

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      需要设置自定义样式的节点 JSON 数据对象

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值JSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值同 JSON 格式的数据,例如:{color:"#ff0011", background:"blue"}

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      setting & function 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 不修改CSS,设置全部节点 name 显示为红色

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	view: {
                                                                                                                                                                                                                                                                                                                      +		fontCss : {color:"red"}
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2. 设置 level=0 的节点 name 显示为红色

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      function setFontCss(treeId, treeNode) {
                                                                                                                                                                                                                                                                                                                      +	return treeNode.level == 0 ? {color:"red"} : {};
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +var setting = {
                                                                                                                                                                                                                                                                                                                      +	view: {
                                                                                                                                                                                                                                                                                                                      +		fontCss: setFontCss
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/setting.view.nameIsHTML.html b/alive-admin/target/classes/static/ztree/api/cn/setting.view.nameIsHTML.html new file mode 100644 index 0000000..a1d916c --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/setting.view.nameIsHTML.html @@ -0,0 +1,27 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Booleansetting.view.nameIsHTML

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.core 核心 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      设置 name 属性是否支持 HTML 脚本

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      如果允许 HTML 脚本,请根据自己的需求做校验,避免出现 js 注入等安全问题。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值: false

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Boolean 格式说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      true / false 分别表示 支持 / 不支持 HTML 脚本

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      setting 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 设置 name 属性支持 HTML 脚本

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	view: {
                                                                                                                                                                                                                                                                                                                      +		nameIsHTML: true
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +var node = {"name":"<font color='red'>test</font>"};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/setting.view.removeHoverDom.html b/alive-admin/target/classes/static/ztree/api/cn/setting.view.removeHoverDom.html new file mode 100644 index 0000000..bb1a9aa --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/setting.view.removeHoverDom.html @@ -0,0 +1,45 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(treeId, treeNode)setting.view.removeHoverDom

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      用于当鼠标移出节点时,隐藏用户自定义控件,显示隐藏状态同 zTree 内部的编辑、删除按钮

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      请务必与 addHoverDom 同时使用;属于高级应用,使用时请确保对 zTree 比较了解。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值:null

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function 参数说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      对应 zTree 的 treeId,便于用户操控

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      需要隐藏自定义控件的节点 JSON 数据对象

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      setting & function 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 设置鼠标移到节点上,在后面显示一个按钮

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	view: {
                                                                                                                                                                                                                                                                                                                      +		addHoverDom: addHoverDom,
                                                                                                                                                                                                                                                                                                                      +		removeHoverDom: removeHoverDom,
                                                                                                                                                                                                                                                                                                                      +		......
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +function addHoverDom(treeId, treeNode) {
                                                                                                                                                                                                                                                                                                                      +	var aObj = $("#" + treeNode.tId + "_a");
                                                                                                                                                                                                                                                                                                                      +	if ($("#diyBtn_"+treeNode.id).length>0) return;
                                                                                                                                                                                                                                                                                                                      +	var editStr = "<span id='diyBtn_space_" +treeNode.id+ "' > </span>"
                                                                                                                                                                                                                                                                                                                      +		+ "<button type='button' class='diyBtn1' id='diyBtn_" + treeNode.id
                                                                                                                                                                                                                                                                                                                      +		+ "' title='"+treeNode.name+"' onfocus='this.blur();'></button>";
                                                                                                                                                                                                                                                                                                                      +	aObj.append(editStr);
                                                                                                                                                                                                                                                                                                                      +	var btn = $("#diyBtn_"+treeNode.id);
                                                                                                                                                                                                                                                                                                                      +	if (btn) btn.bind("click", function(){alert("diy Button for " + treeNode.name);});
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +function removeHoverDom(treeId, treeNode) {
                                                                                                                                                                                                                                                                                                                      +	$("#diyBtn_"+treeNode.id).unbind().remove();
                                                                                                                                                                                                                                                                                                                      +	$("#diyBtn_space_" +treeNode.id).unbind().remove();
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/setting.view.selectedMulti.html b/alive-admin/target/classes/static/ztree/api/cn/setting.view.selectedMulti.html new file mode 100644 index 0000000..d73820d --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/setting.view.selectedMulti.html @@ -0,0 +1,27 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Booleansetting.view.selectedMulti

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.core 核心 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      设置是否允许同时选中多个节点。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值: true

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Boolean 格式说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      true / false 分别表示 支持 / 不支持 同时选中多个节点

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1、设置为 true时,按下 Ctrl 键可以选中多个节点

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2、设置为 true / false 都不影响按下 Ctrl 键可以让已选中的节点取消选中状态( 取消选中状态可以参考 setting.view.autoCancelSelected )

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      setting 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 禁止多点同时选中的功能

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	view: {
                                                                                                                                                                                                                                                                                                                      +		selectedMulti: false
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/setting.view.showIcon.html b/alive-admin/target/classes/static/ztree/api/cn/setting.view.showIcon.html new file mode 100644 index 0000000..ebe423c --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/setting.view.showIcon.html @@ -0,0 +1,44 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Boolean / Function(treeId, treeNode)setting.view.showIcon

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.core 核心 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      设置 zTree 是否显示节点的图标。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值:true

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Boolean 格式说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      true / false 分别表示 显示 / 隐藏 图标

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function 参数说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      对应 zTree 的 treeId,便于用户操控

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      需要设置是否显示图标的节点 JSON 数据对象

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值Boolean

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值同 Boolean 格式的数据

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      setting & function 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 设置 zTree 不显示图标

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	view: {
                                                                                                                                                                                                                                                                                                                      +		showIcon: false
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2. 设置 zTree 仅仅 level=2 的节点不显示图标

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      function showIconForTree(treeId, treeNode) {
                                                                                                                                                                                                                                                                                                                      +	return treeNode.level != 2;
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +var setting = {
                                                                                                                                                                                                                                                                                                                      +	view: {
                                                                                                                                                                                                                                                                                                                      +		showIcon: showIconForTree
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/setting.view.showLine.html b/alive-admin/target/classes/static/ztree/api/cn/setting.view.showLine.html new file mode 100644 index 0000000..02ab5eb --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/setting.view.showLine.html @@ -0,0 +1,25 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Booleansetting.view.showLine

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.core 核心 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      设置 zTree 是否显示节点之间的连线。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值:true

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Boolean 格式说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      true / false 分别表示 显示 / 不显示 连线

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      setting 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 设置 zTree 不显示节点之间的连线

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	view: {
                                                                                                                                                                                                                                                                                                                      +		showLine: false
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/setting.view.showTitle.html b/alive-admin/target/classes/static/ztree/api/cn/setting.view.showTitle.html new file mode 100644 index 0000000..5bcb860 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/setting.view.showTitle.html @@ -0,0 +1,46 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Boolean / Function(treeId, treeNode)setting.view.showTitle

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.core 核心 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      设置 zTree 是否显示节点的 title 提示信息(即节点 DOM 的 title 属性)。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      请务必与 setting.data.key.title 同时使用。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值:true

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Boolean 格式说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      true / false 分别表示 显示 / 隐藏 提示信息

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      如果 setting.view.showTitle = true & setting.data.key.title = '',zTree 会自动使用 setting.data.key.name 指定的节点名称当做 title

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function 参数说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      对应 zTree 的 treeId,便于用户操控

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      需要设置是否显示提示信息的节点 JSON 数据对象

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值Boolean

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值同 Boolean 格式的数据

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      setting & function 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 设置 zTree 不显示提示信息

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	view: {
                                                                                                                                                                                                                                                                                                                      +		showTitle: false
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2. 设置 zTree 仅仅 level=2 的节点不显示提示信息

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      function showTitleForTree(treeId, treeNode) {
                                                                                                                                                                                                                                                                                                                      +	return treeNode.level != 2;
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +var setting = {
                                                                                                                                                                                                                                                                                                                      +	view: {
                                                                                                                                                                                                                                                                                                                      +		showTitle: showTitleForTree
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/treeNode.check_Child_State.html b/alive-admin/target/classes/static/ztree/api/cn/treeNode.check_Child_State.html new file mode 100644 index 0000000..fa37899 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/treeNode.check_Child_State.html @@ -0,0 +1,43 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      NumbertreeNode.check_Child_State

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.excheck 扩展 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      用于设置节点的子节点的 checkBox / radio 的半选状态。[setting.check.enable = true 时有效]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      v3.x 针对节点数据对象提供 treeNode.getCheckStatus() 方法获取标准的半选状态

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      zTree 内部使用,请勿进行初始化 或 随意修改

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值:true

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Number 格式说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      规则如下:

                                                                                                                                                                                                                                                                                                                      + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                      setting.check.checkType = "checkbox"
                                                                                                                                                                                                                                                                                                                      treeNode.check_Child_State勾选状态说明
                                                                                                                                                                                                                                                                                                                      -1不存在子节点 或 子节点全部设置为 nocheck = true
                                                                                                                                                                                                                                                                                                                      0无 子节点被勾选
                                                                                                                                                                                                                                                                                                                      1部分 子节点被勾选
                                                                                                                                                                                                                                                                                                                      2全部 子节点被勾选
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                      setting.check.checkType = "radio"
                                                                                                                                                                                                                                                                                                                      treeNode.check_Child_State勾选状态说明
                                                                                                                                                                                                                                                                                                                      -1不存在子节点 或 子节点全部设置为 nocheck = true
                                                                                                                                                                                                                                                                                                                      0无 子节点被勾选
                                                                                                                                                                                                                                                                                                                      2有 子节点被勾选
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/treeNode.check_Focus.html b/alive-admin/target/classes/static/ztree/api/cn/treeNode.check_Focus.html new file mode 100644 index 0000000..785aec9 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/treeNode.check_Focus.html @@ -0,0 +1,19 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      BooleantreeNode.check_Focus

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.excheck 扩展 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      用于设置节点的 checkBox / radio 的 focus 状态。[setting.check.enable = true 时有效]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      zTree 内部使用,请勿进行初始化 或 随意修改

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值:false

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Boolean 格式说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      true 表示当前鼠标移动到输入框内

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      false 表示当前鼠标移动到输入框外

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/treeNode.checked.html b/alive-admin/target/classes/static/ztree/api/cn/treeNode.checked.html new file mode 100644 index 0000000..049d6ba --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/treeNode.checked.html @@ -0,0 +1,32 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      BooleantreeNode.checked

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.excheck 扩展 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      节点的 checkBox / radio 的 勾选状态。[setting.check.enable = true & treeNode.nocheck = false 时有效]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1、如果不使用 checked 属性设置勾选状态,请修改 setting.data.key.checked

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2、建立 treeNode 数据时设置 treeNode.checked = true 可以让节点的输入框默认为勾选状态

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      3、修改节点勾选状态,可以使用 treeObj.checkNode / checkAllNodes / updateNode 方法,具体使用哪种请根据自己的需求而定

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      4、为了解决部分朋友生成 json 数据出现的兼容问题, 支持 "false","true" 字符串格式的数据

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值:false

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Boolean 格式说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      true 表示节点的输入框被勾选

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      false 表示节点的输入框未勾选

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNode 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 初始化的数据设置 默认为勾选状态

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var nodes = [
                                                                                                                                                                                                                                                                                                                      +{ "id":1, "name":"test1", checked:true },
                                                                                                                                                                                                                                                                                                                      +{ "id":2, "name":"test2", checked:true }
                                                                                                                                                                                                                                                                                                                      +]
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2. 获取第一个根节点的勾选状态

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var checked = treeObj.getNodes()[0].checked;
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/treeNode.checkedOld.html b/alive-admin/target/classes/static/ztree/api/cn/treeNode.checkedOld.html new file mode 100644 index 0000000..cab717e --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/treeNode.checkedOld.html @@ -0,0 +1,25 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      BooleantreeNode.checkedOld

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.excheck 扩展 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      节点的 checkBox / radio 在初始化时的 勾选状态。[setting.check.enable = true & treeNode.nocheck = false 时有效]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1、zTree 初始化节点数据时会对此属性进行赋值,因此请勿对此属性初始化

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2、如需配合 zTreeObj.getChangeCheckedNodes 方法实现特殊功能,可以根据需求在使用中自行修改 checkedOld 数据

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值:checked的初始化值

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Boolean 格式说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      true 表示节点初始化时 输入框被勾选

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      false 表示节点初始化时 输入框未勾选

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNode 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 获取第一个根节点的初始勾选状态

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var checkedOld = treeObj.getNodes()[0].checkedOld;
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/treeNode.children.html b/alive-admin/target/classes/static/ztree/api/cn/treeNode.children.html new file mode 100644 index 0000000..4bab835 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/treeNode.children.html @@ -0,0 +1,35 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Array(JSON)treeNode.children

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.core 核心 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      节点的子节点数据集合。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1、如果不使用 children 属性保存子节点数据,请修改 setting.data.key.children

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2、异步加载时,对于设置了 isParent = true 的节点,在展开时将进行异步加载

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值:无

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Array(JSON) 格式说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      标准的 JSON 数据对象

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNode 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 初始化的标准嵌套格式的 JSON 数据对象

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var nodes = [
                                                                                                                                                                                                                                                                                                                      +{ "id":1, "name":"test1",
                                                                                                                                                                                                                                                                                                                      +	children: [
                                                                                                                                                                                                                                                                                                                      +	{ "id":3, "name":"test3"},
                                                                                                                                                                                                                                                                                                                      +	{ "id":4, "name":"test4"},
                                                                                                                                                                                                                                                                                                                      +	{ "id":5, "name":"test5"}
                                                                                                                                                                                                                                                                                                                      +	]
                                                                                                                                                                                                                                                                                                                      +},
                                                                                                                                                                                                                                                                                                                      +{ "id":2, "name":"test2"  }
                                                                                                                                                                                                                                                                                                                      +]
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2. 获取第一个根节点的子节点

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var nodes = treeObj.getNodes()[0].children;
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/treeNode.chkDisabled.html b/alive-admin/target/classes/static/ztree/api/cn/treeNode.chkDisabled.html new file mode 100644 index 0000000..84aaea2 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/treeNode.chkDisabled.html @@ -0,0 +1,28 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      BooleantreeNode.chkDisabled

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.excheck 扩展 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1、设置节点的 checkbox / radio 是否禁用 [setting.check.enable = true 时有效]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2、为了解决部分朋友生成 json 数据出现的兼容问题, 支持 "false","true" 字符串格式的数据

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      3、请勿对已加载的节点修改此属性,禁止 或 取消禁止 请使用 setChkDisabled() 方法

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      4、父节点被禁用后,其全部的子孙节点也会被禁用

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值:false

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Boolean 格式说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      true 表示此节点的 checkbox / radio 被禁用。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      false 表示此节点的 checkbox / radio 可以使用。

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNode 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 禁用节点 checkbox / radio

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var nodes = [
                                                                                                                                                                                                                                                                                                                      +	{ "id":1, "name":"test1", "checked":true, "chkDisabled":true},
                                                                                                                                                                                                                                                                                                                      +	{ "id":2, "name":"test2", "chkDisabled":true},
                                                                                                                                                                                                                                                                                                                      +	{ "id":3, "name":"test3"}
                                                                                                                                                                                                                                                                                                                      +]
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/treeNode.click.html b/alive-admin/target/classes/static/ztree/api/cn/treeNode.click.html new file mode 100644 index 0000000..833c678 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/treeNode.click.html @@ -0,0 +1,24 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      StringtreeNode.click

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.core 核心 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      最简单的 click 事件操作。相当于 onclick="..." 的内容。 如果操作较复杂,请使用 onClick 事件回调函数。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      由于 IE 对于 onclick 和 click事件共存时的处理与其他浏览器不同,所以请不要利用此参数控制是否允许跳转的操作(例如:treeNode.click = "return false;")。如有类似需求,请不要使用 url 属性设置网址,同时利用 onClick 回调函数控制跳转。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值:无

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      String 格式说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      标准 javascript 语法, 例如:alert("test"); 等

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNode 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 设置某节点点击时,弹出信息框

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var nodes = [
                                                                                                                                                                                                                                                                                                                      +	{ "id":1, "name":"Google CN", "url":"http://g.cn", "click":"alert('test');"},
                                                                                                                                                                                                                                                                                                                      +	......
                                                                                                                                                                                                                                                                                                                      +]
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/treeNode.diy.html b/alive-admin/target/classes/static/ztree/api/cn/treeNode.diy.html new file mode 100644 index 0000000..b2fb0d9 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/treeNode.diy.html @@ -0,0 +1,15 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      ?treeNode.* DIY *

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.core 核心 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      用于保存节点的其他自定义数据信息,不要与 zTree 使用的属性相同即可,用户可随意设定。

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNode 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 设置节点的备用英文名称

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var node = { "id":1, "name":"test1", "ename":"test eName"};
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/treeNode.editNameFlag.html b/alive-admin/target/classes/static/ztree/api/cn/treeNode.editNameFlag.html new file mode 100644 index 0000000..51162b8 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/treeNode.editNameFlag.html @@ -0,0 +1,19 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      BooleantreeNode.editNameFlag

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      用于记录节点是否处于编辑名称状态。[setting.edit.enable = true 时有效]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      zTree 内部使用,请勿进行初始化 或 随意修改

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值:false

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Boolean 格式说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      true 表示节点处于编辑名称状态

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      false 表示节点未处于编辑名称状态

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/treeNode.getCheckStatus.html b/alive-admin/target/classes/static/ztree/api/cn/treeNode.getCheckStatus.html new file mode 100644 index 0000000..fc20eac --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/treeNode.getCheckStatus.html @@ -0,0 +1,63 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function()treeNode.getCheckStatus

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.excheck 扩展 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      获取节点 checkbox / radio 半勾选状态。[setting.check.enable = true 时有效]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      初始化节点数据时,由 zTree 增加此属性,请勿提前赋值

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function 参数说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值JSON

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      {
                                                                                                                                                                                                                                                                                                                      +	checked: true, //等同于 treeNode.checked
                                                                                                                                                                                                                                                                                                                      +	half: true  //规则见下表
                                                                                                                                                                                                                                                                                                                      +}
                                                                                                                                                                                                                                                                                                                      + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                      setting.check.checkType = "checkbox"
                                                                                                                                                                                                                                                                                                                      treeNode.checkedtreeNode.check_Child_StatetreeNode.halfCheck half
                                                                                                                                                                                                                                                                                                                      --truetrue
                                                                                                                                                                                                                                                                                                                       
                                                                                                                                                                                                                                                                                                                      true-1falsefalse
                                                                                                                                                                                                                                                                                                                      true0falsetrue
                                                                                                                                                                                                                                                                                                                      true1falsetrue
                                                                                                                                                                                                                                                                                                                      true2falsefalse
                                                                                                                                                                                                                                                                                                                       
                                                                                                                                                                                                                                                                                                                      false-1falsefalse
                                                                                                                                                                                                                                                                                                                      false0falsefalse
                                                                                                                                                                                                                                                                                                                      false1falsetrue
                                                                                                                                                                                                                                                                                                                      false2falsetrue
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                      setting.check.checkType = "radio"
                                                                                                                                                                                                                                                                                                                      treeNode.checkedtreeNode.check_Child_StatetreeNode.halfCheck half
                                                                                                                                                                                                                                                                                                                      --truetrue
                                                                                                                                                                                                                                                                                                                       
                                                                                                                                                                                                                                                                                                                      true-1falsefalse
                                                                                                                                                                                                                                                                                                                      true0falsefalse
                                                                                                                                                                                                                                                                                                                      true2falsetrue
                                                                                                                                                                                                                                                                                                                       
                                                                                                                                                                                                                                                                                                                      false-1falsefalse
                                                                                                                                                                                                                                                                                                                      false0falsefalse
                                                                                                                                                                                                                                                                                                                      false2falsetrue
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNode 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 获取第一个根节点的半选状态

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var halfCheck = treeObj.getNodes()[0].getCheckStatus();
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/treeNode.getNextNode.html b/alive-admin/target/classes/static/ztree/api/cn/treeNode.getNextNode.html new file mode 100644 index 0000000..7a0fa5c --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/treeNode.getNextNode.html @@ -0,0 +1,27 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function()treeNode.getNextNode

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.core 核心 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      获取与 treeNode 节点相邻的后一个节点。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      初始化节点数据时,由 zTree 增加此属性,请勿提前赋值

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function 参数说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值JSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      与 treeNode 节点相邻的后一个节点。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      如果 treeNode 是最后一个节点,返回 null 。

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNode 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 获取当前被选中的节点的下一个节点

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var sNodes = treeObj.getSelectedNodes();
                                                                                                                                                                                                                                                                                                                      +if (sNodes.length > 0) {
                                                                                                                                                                                                                                                                                                                      +	var node = sNodes[0].getNextNode();
                                                                                                                                                                                                                                                                                                                      +}
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/treeNode.getParentNode.html b/alive-admin/target/classes/static/ztree/api/cn/treeNode.getParentNode.html new file mode 100644 index 0000000..31309a6 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/treeNode.getParentNode.html @@ -0,0 +1,27 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function()treeNode.getParentNode

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.core 核心 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      获取 treeNode 节点的父节点。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      初始化节点数据时,由 zTree 增加此属性,请勿提前赋值

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function 参数说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值JSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNode 节点的父节点 JSON 数据对象。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      如果 treeNode 是根节点,返回 null 。

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNode 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 获取当前被选中的节点的父节点

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var sNodes = treeObj.getSelectedNodes();
                                                                                                                                                                                                                                                                                                                      +if (sNodes.length > 0) {
                                                                                                                                                                                                                                                                                                                      +	var node = sNodes[0].getParentNode();
                                                                                                                                                                                                                                                                                                                      +}
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/treeNode.getPreNode.html b/alive-admin/target/classes/static/ztree/api/cn/treeNode.getPreNode.html new file mode 100644 index 0000000..9d84184 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/treeNode.getPreNode.html @@ -0,0 +1,27 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function()treeNode.getPreNode

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.core 核心 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      获取与 treeNode 节点相邻的前一个节点。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      初始化节点数据时,由 zTree 增加此属性,请勿提前赋值

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function 参数说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值JSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      与 treeNode 节点相邻的前一个节点。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      如果 treeNode 是第一个节点,返回 null 。

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNode 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 获取当前被选中的节点的前一个节点

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var sNodes = treeObj.getSelectedNodes();
                                                                                                                                                                                                                                                                                                                      +if (sNodes.length > 0) {
                                                                                                                                                                                                                                                                                                                      +	var node = sNodes[0].getPreNode();
                                                                                                                                                                                                                                                                                                                      +}
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/treeNode.halfCheck.html b/alive-admin/target/classes/static/ztree/api/cn/treeNode.halfCheck.html new file mode 100644 index 0000000..23ac744 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/treeNode.halfCheck.html @@ -0,0 +1,29 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      BooleantreeNode.halfCheck

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.excheck 扩展 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      强制节点的 checkBox / radio 的 半勾选状态。[setting.check.enable = true & treeNode.nocheck = false 时有效]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1、强制为半勾选状态后,不再进行自动计算半勾选状态

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2、设置 treeNode.halfCheck = false 或 null 才能恢复自动计算半勾选状态

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      3、为了解决部分朋友生成 json 数据出现的兼容问题, 支持 "false","true" 字符串格式的数据

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值:false

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Boolean 格式说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      true 表示节点的输入框 强行设置为半勾选

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      false 表示节点的输入框 根据 zTree 的规则自动计算半勾选状态

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNode 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 初始化的数据设置 默认为半勾选状态

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var nodes = [
                                                                                                                                                                                                                                                                                                                      +{ "id":1, "name":"test1", isParent:true, checked:true, halfCheck:true },
                                                                                                                                                                                                                                                                                                                      +{ "id":2, "name":"test2", isParent:true, checked:false, halfCheck:true },
                                                                                                                                                                                                                                                                                                                      +{ "id":3, "name":"test3", isParent:true, checked:true },
                                                                                                                                                                                                                                                                                                                      +{ "id":4, "name":"test4", isParent:true, checked:false }
                                                                                                                                                                                                                                                                                                                      +]
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/treeNode.icon.html b/alive-admin/target/classes/static/ztree/api/cn/treeNode.icon.html new file mode 100644 index 0000000..69c5db1 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/treeNode.icon.html @@ -0,0 +1,33 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      StringtreeNode.icon

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.core 核心 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      节点自定义图标的 URL 路径。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1、父节点如果只设置 icon ,会导致展开、折叠时都使用同一个图标

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2、父节点展开、折叠使用不同的个性化图标需要同时设置 treeNode.iconOpen / treeNode.iconClose 两个属性

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      3、如果想利用 className 设置个性化图标,需要设置 treeNode.iconSkin 属性

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值:无

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      String 格式说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      图标图片的 url 可以是相对路径也可以是绝对路径

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      设置相对路径请注意页面与图片之间的关系,确保图片能够正常加载

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNode 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 设置节点的个性化图标

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var nodes = [
                                                                                                                                                                                                                                                                                                                      +	//父节点展开 折叠时使用相同的图标
                                                                                                                                                                                                                                                                                                                      +	{ name:"父节点1", icon:"/img/parent.gif"},
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +	//父节点展开 折叠时分别使用不同的图标
                                                                                                                                                                                                                                                                                                                      +	{ name:"父节点2", iconOpen:"/img/open.gif", iconClose:"/img/close.gif"}, 
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +	//叶子节点个性化图标
                                                                                                                                                                                                                                                                                                                      +	{ name:"叶子节点", icon:"/img/leaf.gif"}
                                                                                                                                                                                                                                                                                                                      +]
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/treeNode.iconClose.html b/alive-admin/target/classes/static/ztree/api/cn/treeNode.iconClose.html new file mode 100644 index 0000000..f51da9c --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/treeNode.iconClose.html @@ -0,0 +1,33 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      StringtreeNode.iconClose

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.core 核心 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      父节点自定义折叠时图标的 URL 路径。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1、此属性只针对父节点有效

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2、此属性必须与 iconOpen 同时使用

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      3、如果想利用 className 设置个性化图标,需要设置 treeNode.iconSkin 属性

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值:无

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      String 格式说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      图标图片的 url 可以是相对路径也可以是绝对路径

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      设置相对路径请注意页面与图片之间的关系,确保图片能够正常加载

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNode 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 设置节点的个性化图标

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var nodes = [
                                                                                                                                                                                                                                                                                                                      +	//父节点展开 折叠时使用相同的图标
                                                                                                                                                                                                                                                                                                                      +	{ name:"父节点1", icon:"/img/parent.gif"},
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +	//父节点展开 折叠时分别使用不同的图标
                                                                                                                                                                                                                                                                                                                      +	{ name:"父节点2", iconOpen:"/img/open.gif", iconClose:"/img/close.gif"}, 
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +	//叶子节点个性化图标
                                                                                                                                                                                                                                                                                                                      +	{ name:"叶子节点", icon:"/img/leaf.gif"}
                                                                                                                                                                                                                                                                                                                      +]
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/treeNode.iconOpen.html b/alive-admin/target/classes/static/ztree/api/cn/treeNode.iconOpen.html new file mode 100644 index 0000000..29c9baa --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/treeNode.iconOpen.html @@ -0,0 +1,33 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      StringtreeNode.iconOpen

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.core 核心 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      父节点自定义展开时图标的 URL 路径。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1、此属性只针对父节点有效

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2、此属性必须与 iconClose 同时使用

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      3、如果想利用 className 设置个性化图标,需要设置 treeNode.iconSkin 属性

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值:无

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      String 格式说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      图标图片的 url 可以是相对路径也可以是绝对路径

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      设置相对路径请注意页面与图片之间的关系,确保图片能够正常加载

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNode 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 设置节点的个性化图标

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var nodes = [
                                                                                                                                                                                                                                                                                                                      +	//父节点展开 折叠时使用相同的图标
                                                                                                                                                                                                                                                                                                                      +	{ name:"父节点1", icon:"/img/parent.gif"},
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +	//父节点展开 折叠时分别使用不同的图标
                                                                                                                                                                                                                                                                                                                      +	{ name:"父节点2", iconOpen:"/img/open.gif", iconClose:"/img/close.gif"}, 
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +	//叶子节点个性化图标
                                                                                                                                                                                                                                                                                                                      +	{ name:"叶子节点", icon:"/img/leaf.gif"}
                                                                                                                                                                                                                                                                                                                      +]
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/treeNode.iconSkin.html b/alive-admin/target/classes/static/ztree/api/cn/treeNode.iconSkin.html new file mode 100644 index 0000000..d5d9726 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/treeNode.iconSkin.html @@ -0,0 +1,43 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      StringtreeNode.iconSkin

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.core 核心 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      节点自定义图标的 className

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1、需要修改 css,增加相应 className 的设置

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2、css 方式简单、方便,并且同时支持父节点展开、折叠状态切换图片

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      3、css 建议采用图片分割渲染的方式以减少反复加载图片,并且避免图片闪动

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      4、zTree v3.x 的 iconSkin 同样支持 IE6

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      5、如果想直接使用 图片的Url路径 设置节点的个性化图标,需要设置 treeNode.icon / treeNode.iconOpen / treeNode.iconClose 属性

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值:无

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      String 格式说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      设置个性图标的 className

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      css & treeNode 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 设置节点的个性化图标

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      css 内容:
                                                                                                                                                                                                                                                                                                                      +.ztree li span.button.diy01_ico_open, .ztree li span.button.diy01_ico_close{...}
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +.ztree li span.button.diy02_ico_open{...}
                                                                                                                                                                                                                                                                                                                      +.ztree li span.button.diy02_ico_close{...}
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +.ztree li span.button.diy03_ico_docu{...}
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +js中节点数据:
                                                                                                                                                                                                                                                                                                                      +var nodes = [
                                                                                                                                                                                                                                                                                                                      +	//父节点展开 折叠时使用相同的图标
                                                                                                                                                                                                                                                                                                                      +	{ name:"父节点1", iconSkin:"diy01"},
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +	//父节点展开 折叠时分别使用不同的图标
                                                                                                                                                                                                                                                                                                                      +	{ name:"父节点2", iconSkin:"diy02"},
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +	//叶子节点个性化图标
                                                                                                                                                                                                                                                                                                                      +	{ name:"叶子节点", iconSkin:"diy03"}
                                                                                                                                                                                                                                                                                                                      +]
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/treeNode.isAjaxing.html b/alive-admin/target/classes/static/ztree/api/cn/treeNode.isAjaxing.html new file mode 100644 index 0000000..330c120 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/treeNode.isAjaxing.html @@ -0,0 +1,26 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      BooleantreeNode.isAjaxing

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.core 核心 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      记录 treeNode 节点是否正在进行异步加载。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      初始化节点数据时,由 zTree 增加此属性,请勿提前赋值

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Boolean 格式说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      true 表示节点正在进行异步加载

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      false 表示节点没有进行异步加载

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNode 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 查看当前被选中的节点是否节点正在进行异步加载

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var sNodes = treeObj.getSelectedNodes();
                                                                                                                                                                                                                                                                                                                      +if (sNodes.length > 0) {
                                                                                                                                                                                                                                                                                                                      +	var isAjaxing = sNodes[0].isAjaxing;
                                                                                                                                                                                                                                                                                                                      +}
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/treeNode.isFirstNode.html b/alive-admin/target/classes/static/ztree/api/cn/treeNode.isFirstNode.html new file mode 100644 index 0000000..83b80bd --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/treeNode.isFirstNode.html @@ -0,0 +1,28 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      BooleantreeNode.isFirstNode

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.core 核心 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      记录 treeNode 节点是否为同级节点中的第一个节点。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      使用 exhide 扩展后,只针对显示的节点设置此属性

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      初始化节点数据时,由 zTree 增加此属性,请勿提前赋值

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Boolean 格式说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      true 表示是同级节点中的第一个节点

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      false 表示不是同级节点中的第一个节点

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      节点被隐藏后,isFirstNode = false

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNode 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 查看当前被选中的节点是否是同级节点中的第一个节点

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var sNodes = treeObj.getSelectedNodes();
                                                                                                                                                                                                                                                                                                                      +if (sNodes.length > 0) {
                                                                                                                                                                                                                                                                                                                      +	var isFirstNode = sNodes[0].isFirstNode;
                                                                                                                                                                                                                                                                                                                      +}
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/treeNode.isHidden.html b/alive-admin/target/classes/static/ztree/api/cn/treeNode.isHidden.html new file mode 100644 index 0000000..5fb388e --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/treeNode.isHidden.html @@ -0,0 +1,27 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      BooleantreeNode.isHidden

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.exhide 扩展 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      判断 treeNode 节点是否被隐藏。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1、初始化 zTree 时,如果节点设置 isHidden = true,会被自动隐藏

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2、请勿对已加载的节点修改此属性,隐藏 / 显示 请使用 hideNode() / hideNodes() / showNode() / showNodes() 方法

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Boolean 格式说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      true 表示被隐藏

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      false 表示被显示

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNode 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 查看第一个根节点是否被隐藏

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var sNodes = treeObj.getNodes();
                                                                                                                                                                                                                                                                                                                      +if (sNodes.length > 0) {
                                                                                                                                                                                                                                                                                                                      +	var isHidden = sNodes[0].isHidden;
                                                                                                                                                                                                                                                                                                                      +}
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/treeNode.isHover.html b/alive-admin/target/classes/static/ztree/api/cn/treeNode.isHover.html new file mode 100644 index 0000000..dcef6eb --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/treeNode.isHover.html @@ -0,0 +1,19 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      BooleantreeNode.isHover

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      记录节点 的 hover 状态,主要用于 setting.view.addHoverDom / removeHoverDom 。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      zTree 内部使用,请勿进行初始化 或 随意修改

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值:false

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Boolean 格式说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      true 表示节点处于 hover 状态

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      false 表示节点未处于 hover 状态

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/treeNode.isLastNode.html b/alive-admin/target/classes/static/ztree/api/cn/treeNode.isLastNode.html new file mode 100644 index 0000000..5d5ac82 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/treeNode.isLastNode.html @@ -0,0 +1,28 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      BooleantreeNode.isLastNode

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.core 核心 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      记录 treeNode 节点是否为同级节点中的最后一个节点。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      使用 exhide 扩展后,只针对显示的节点设置此属性

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      初始化节点数据时,由 zTree 增加此属性,请勿提前赋值

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Boolean 格式说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      true 表示是同级节点中的最后一个节点

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      false 表示不是同级节点中的最后一个节点

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      节点被隐藏后,isLastNode = false

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNode 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 查看当前被选中的节点是否是同级节点中的最后一个节点

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var sNodes = treeObj.getSelectedNodes();
                                                                                                                                                                                                                                                                                                                      +if (sNodes.length > 0) {
                                                                                                                                                                                                                                                                                                                      +	var isLastNode = sNodes[0].isLastNode;
                                                                                                                                                                                                                                                                                                                      +}
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/treeNode.isParent.html b/alive-admin/target/classes/static/ztree/api/cn/treeNode.isParent.html new file mode 100644 index 0000000..bab887e --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/treeNode.isParent.html @@ -0,0 +1,28 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      BooleantreeNode.isParent

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.core 核心 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      记录 treeNode 节点是否为父节点。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1、初始化节点数据时,根据 treeNode.children 属性判断,有子节点则设置为 true,否则为 false

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2、初始化节点数据时,如果设定 treeNode.isParent = true,即使无子节点数据,也会设置为父节点

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      3、为了解决部分朋友生成 json 数据出现的兼容问题, 支持 "false","true" 字符串格式的数据

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Boolean 格式说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      true 表示是父节点

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      false 表示不是父节点

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNode 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 查看当前被选中的节点是否是父节点

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var sNodes = treeObj.getSelectedNodes();
                                                                                                                                                                                                                                                                                                                      +if (sNodes.length > 0) {
                                                                                                                                                                                                                                                                                                                      +	var isParent = sNodes[0].isParent;
                                                                                                                                                                                                                                                                                                                      +}
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/treeNode.level.html b/alive-admin/target/classes/static/ztree/api/cn/treeNode.level.html new file mode 100644 index 0000000..aff3254 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/treeNode.level.html @@ -0,0 +1,25 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      NumbertreeNode.level

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.core 核心 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      记录节点的层级

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      初始化节点数据时,由 zTree 增加此属性,请勿提前赋值

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Number 格式说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      根节点 level = 0,依次递增

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNode 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 查看当前被选中的节点的级数

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var sNodes = treeObj.getSelectedNodes();
                                                                                                                                                                                                                                                                                                                      +if (sNodes.length > 0) {
                                                                                                                                                                                                                                                                                                                      +	var level = sNodes[0].level;
                                                                                                                                                                                                                                                                                                                      +}
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/treeNode.name.html b/alive-admin/target/classes/static/ztree/api/cn/treeNode.name.html new file mode 100644 index 0000000..918f2b4 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/treeNode.name.html @@ -0,0 +1,25 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      StringtreeNode.name

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.core 核心 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      节点名称。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1、如果不使用 name 属性保存节点名称,请修改 setting.data.key.name

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值:无

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      String 格式说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      节点显示的名称字符串,标准 String 即可,所有特殊字符都会被自动转义

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNode 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 设置节点的名称为 test1、test2、test3

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var nodes = [
                                                                                                                                                                                                                                                                                                                      +	{ "id":1, "name":"test1"},
                                                                                                                                                                                                                                                                                                                      +	{ "id":2, "name":"test2"},
                                                                                                                                                                                                                                                                                                                      +	{ "id":3, "name":"test3"}
                                                                                                                                                                                                                                                                                                                      +]
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/treeNode.nocheck.html b/alive-admin/target/classes/static/ztree/api/cn/treeNode.nocheck.html new file mode 100644 index 0000000..afaa62f --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/treeNode.nocheck.html @@ -0,0 +1,26 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      BooleantreeNode.nocheck

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.excheck 扩展 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1、设置节点是否隐藏 checkbox / radio [setting.check.enable = true 时有效]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2、为了解决部分朋友生成 json 数据出现的兼容问题, 支持 "false","true" 字符串格式的数据

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值:false

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Boolean 格式说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      true 表示此节点不显示 checkbox / radio,不影响勾选的关联关系,不影响父节点的半选状态。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      false 表示节点具有正常的勾选功能

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNode 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 不显示某个节点的 checkbox / radio

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var nodes = [
                                                                                                                                                                                                                                                                                                                      +	{ "id":1, "name":"test1", "nocheck":true},
                                                                                                                                                                                                                                                                                                                      +	{ "id":2, "name":"test2"},
                                                                                                                                                                                                                                                                                                                      +	{ "id":3, "name":"test3"}
                                                                                                                                                                                                                                                                                                                      +]
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/treeNode.open.html b/alive-admin/target/classes/static/ztree/api/cn/treeNode.open.html new file mode 100644 index 0000000..953a551 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/treeNode.open.html @@ -0,0 +1,29 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      BooleantreeNode.open

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.core 核心 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      记录 treeNode 节点的 展开 / 折叠 状态。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1、初始化节点数据时,如果设定 treeNode.open = true,则会直接展开此节点

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2、叶子节点 treeNode.open = false

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      3、为了解决部分朋友生成 json 数据出现的兼容问题, 支持 "false","true" 字符串格式的数据

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值:false

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Boolean 格式说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      true 表示节点为 展开 状态

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      false 表示节点为 折叠 状态

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNode 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 查看当前被选中的节点的 展开 / 折叠 状态

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var sNodes = treeObj.getSelectedNodes();
                                                                                                                                                                                                                                                                                                                      +if (sNodes.length > 0) {
                                                                                                                                                                                                                                                                                                                      +	var isOpen = sNodes[0].open;
                                                                                                                                                                                                                                                                                                                      +}
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/treeNode.parentTId.html b/alive-admin/target/classes/static/ztree/api/cn/treeNode.parentTId.html new file mode 100644 index 0000000..d228a23 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/treeNode.parentTId.html @@ -0,0 +1,27 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      StringtreeNode.parentTId

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.core 核心 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNode 节点的父节点唯一标识 tId。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1、v3.x 用 parentTId 替换了原先的 parentNode 属性,同时增加了 getParentNode 方法,以避免原先 parentNode 造成的 clone 死循环

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2、初始化节点数据时,由 zTree 增加此属性,请勿提前赋值

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      String 格式说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      zTree 内部生成的节点唯一标识,请参考 treeNode.tId 的说明

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      如果 treeNode 是根节点,则 parentTId = null

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNode 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 查看当前被选中的节点的父节点 tId

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var sNodes = treeObj.getSelectedNodes();
                                                                                                                                                                                                                                                                                                                      +if (sNodes.length > 0) {
                                                                                                                                                                                                                                                                                                                      +	var parentTId = sNodes[0].parentTId;
                                                                                                                                                                                                                                                                                                                      +}
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/treeNode.tId.html b/alive-admin/target/classes/static/ztree/api/cn/treeNode.tId.html new file mode 100644 index 0000000..c32285c --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/treeNode.tId.html @@ -0,0 +1,25 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      StringtreeNode.tId

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.core 核心 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNode 节点的唯一标识 tId。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      初始化节点数据时,由 zTree 增加此属性,请勿提前赋值

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      String 格式说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      生成规则:setting.treeId + "_" + 内部计数

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNode 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 查看当前被选中的节点的 tId

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var sNodes = treeObj.getSelectedNodes();
                                                                                                                                                                                                                                                                                                                      +if (sNodes.length > 0) {
                                                                                                                                                                                                                                                                                                                      +	var tId = sNodes[0].tId;
                                                                                                                                                                                                                                                                                                                      +}
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/treeNode.target.html b/alive-admin/target/classes/static/ztree/api/cn/treeNode.target.html new file mode 100644 index 0000000..f7c1b6b --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/treeNode.target.html @@ -0,0 +1,24 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      StringtreeNode.target

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.core 核心 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      设置点击节点后在何处打开 url。[treeNode.url 存在时有效]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值:无

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      String 格式说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      同超链接 target 属性: "_blank", "_self" 或 其他指定窗口名称

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      省略此属性,则默认为 "_blank"

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNode 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 设置点击某节点时,弹出新页面

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var nodes = [
                                                                                                                                                                                                                                                                                                                      +	{ "id":1, "name":"test1", "url":"http://myTest.com", "target":"_blank"},
                                                                                                                                                                                                                                                                                                                      +	......
                                                                                                                                                                                                                                                                                                                      +]
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/treeNode.url.html b/alive-admin/target/classes/static/ztree/api/cn/treeNode.url.html new file mode 100644 index 0000000..0b2e007 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/treeNode.url.html @@ -0,0 +1,25 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      StringtreeNode.url

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.core 核心 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      节点链接的目标 URL

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1、编辑模式 (setting.edit.enable = true) 下此属性功能失效,如果必须使用类似功能,请利用 onClick 事件回调函数自行控制。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2、如果需要在 onClick 事件回调函数中进行跳转控制,那么请将 URL 地址保存在其他自定义的属性内,请勿使用 url

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值:无

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      String 格式说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      同超链接 href 属性

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNode 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 设置某节点点击时,跳转到 g.cn

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var nodes = [
                                                                                                                                                                                                                                                                                                                      +	{ "id":1, "name":"Google CN", "url":"http://g.cn"},
                                                                                                                                                                                                                                                                                                                      +	......
                                                                                                                                                                                                                                                                                                                      +]
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/treeNode.zAsync.html b/alive-admin/target/classes/static/ztree/api/cn/treeNode.zAsync.html new file mode 100644 index 0000000..00e48f3 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/treeNode.zAsync.html @@ -0,0 +1,28 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      BooleantreeNode.zAsync

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.core 核心 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      记录 treeNode 节点是否已经进行过异步加载,避免父节点反复异步加载数据。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      初始化节点数据时,由 zTree 增加此属性,请勿提前赋值

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      默认值:false (无子节点的父节点); true (有子节点的父节点 & 叶子节点)

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Boolean 格式说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      true 表示父节点展开时不需要自动异步加载

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      false 表示父节点展开时需要自动异步加载

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      此参数不会对 reAsyncChildNodes 方法造成任何影响

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNode 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 查看当前被选中的节点是否节点是否需要自动异步加载

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var sNodes = treeObj.getSelectedNodes();
                                                                                                                                                                                                                                                                                                                      +if (sNodes.length > 0) {
                                                                                                                                                                                                                                                                                                                      +	var zAsync = sNodes[0].zAsync;
                                                                                                                                                                                                                                                                                                                      +}
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.addNodes.html b/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.addNodes.html new file mode 100644 index 0000000..eac2152 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.addNodes.html @@ -0,0 +1,42 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(parentNode, newNodes, isSilent)zTreeObj.addNodes

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.core 扩展 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      添加节点。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      v3.x 为了避免原先反复初始化造成的数据重复问题,在 初始化 和 添加节点 时内部进行 clone 操作。如果需要获取数据在 zTree 内的对象,请获取此方法的返回值。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      请通过 zTree 对象执行此方法。

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function 参数说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      parentNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      指定的父节点,如果增加根节点,请设置 parentNode 为 null 即可。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      请务必保证此节点数据对象 是 zTree 内部的数据对象

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      newNodesJSON / Array(JSON)

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      需要增加的节点数据 JSON 对象集合,数据只需要满足 zTree 的节点数据必需的属性即可,详细请参考“treeNode 节点数据详解”

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1、v3.x 支持单独添加一个节点,即如果只新增一个节点,不用必须包在数组中

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2、使用简单数据模式,请参考 setting.data.simpleData 内的属性说明

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      isSilentBoolean

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      设定增加节点后是否自动展开父节点。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      isSilent = true 时,不展开父节点,其他值或缺省状态都自动展开。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值Array(JSON)

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值是 zTree 最终添加的节点数据集合

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      如果 newNodes 是单个节点数据 JSON,返回值也是将其包在 Array 内

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      请务必记住:返回值中的数据对象 是 newNodes 被 clone 后的,所以绝对不相等!

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      function 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 对于 id = "tree" 的 zTree 增加 1 个根节点

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var newNode = {name:"newNode1"};
                                                                                                                                                                                                                                                                                                                      +newNode = treeObj.addNodes(null, newNode);
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2. 对于 id = "tree" 的 zTree 增加 3 个根节点

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var newNodes = [{name:"newNode1"}, {name:"newNode2"}, {name:"newNode3"}];
                                                                                                                                                                                                                                                                                                                      +newNodes = treeObj.addNodes(null, newNodes);
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.cancelEditName.html b/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.cancelEditName.html new file mode 100644 index 0000000..9df098f --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.cancelEditName.html @@ -0,0 +1,30 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(newName)zTreeObj.cancelEditName

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      取消节点的编辑名称状态,可以恢复原名称,也可以强行赋给新的名称。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      请通过 zTree 对象执行此方法。

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function 参数说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      newNameString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      重新给定的新名称。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      如果省略此参数,则恢复原名称。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      目前无任何返回值

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      function 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 取消 zTree 的编辑名称状态,恢复该节点原有名称

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +treeObj.cancelEditName();
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2. 取消 zTree 的编辑名称状态,并且重新设定该节点名称

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +treeObj.cancelEditName("test_new_name");
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.cancelSelectedNode.html b/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.cancelSelectedNode.html new file mode 100644 index 0000000..26d5706 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.cancelSelectedNode.html @@ -0,0 +1,35 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(treeNode)zTreeObj.cancelSelectedNode

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.core 核心 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      取消节点的选中状态。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      v3.x 支持多点同时选中,因此取消选中状态可以全部取消,也可以单独取消某个节点的选中状态。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      请通过 zTree 对象执行此方法。

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function 参数说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      需要取消选中状态的节点。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      请务必保证此节点数据对象 是 zTree 内部的数据对象

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      如果省略此参数,则将取消全部被选中节点的选中状态。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      目前无任何返回值

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      function 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 取消当前所有被选中节点的选中状态

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +treeObj.cancelSelectedNode();
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2. 取消当前第一个被选中节点的选中状态

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var nodes = treeObj.getSelectedNode();
                                                                                                                                                                                                                                                                                                                      +if (nodes.length>0) { 
                                                                                                                                                                                                                                                                                                                      +	treeObj.cancelSelectedNode(nodes[0]);
                                                                                                                                                                                                                                                                                                                      +}
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.checkAllNodes.html b/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.checkAllNodes.html new file mode 100644 index 0000000..d6eaadf --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.checkAllNodes.html @@ -0,0 +1,29 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(checked)zTreeObj.checkAllNodes

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.excheck 扩展 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      勾选 或 取消勾选 全部节点。[setting.check.enable = true 且 setting.check.chkStyle = "checkbox" 时有效]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      此方法不会触发 beforeCheck / onCheck 事件回调函数。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      请通过 zTree 对象执行此方法。

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function 参数说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      checkedBoolean

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      checked = true 表示勾选全部节点

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      checked = false 表示全部节点取消勾选

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      不会影响 treeNode.nochecked = true 的节点。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      不会影响未加载的节点。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      目前无任何返回值

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      function 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 勾选全部节点

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +treeObj.checkAllNodes(true);
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.checkNode.html b/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.checkNode.html new file mode 100644 index 0000000..cb8bb7d --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.checkNode.html @@ -0,0 +1,44 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(treeNode, checked, checkTypeFlag, callbackFlag)zTreeObj.checkNode

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.excheck 扩展 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      勾选 或 取消勾选 单个节点。[setting.check.enable = true 时有效]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      v3.x 中 checkNode() 方法可以触发 beforeCheck / onCheck 事件回调函数。便于减少冗余代码

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      请通过 zTree 对象执行此方法。

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function 参数说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      需要勾选 或 取消勾选 的节点数据

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      请务必保证此节点数据对象 是 zTree 内部的数据对象

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      checkedBoolean

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      checked = true 表示勾选节点

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      checked = false 表示节点取消勾选

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      省略此参数,则根据对此节点的勾选状态进行 toggle 切换

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      不影响 treeNode.nochecked = true 的节点。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      checkTypeFlagBoolean

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      checkTypeFlag = true 表示按照 setting.check.chkboxType 属性进行父子节点的勾选联动操作

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      checkTypeFlag = false 表示只修改此节点勾选状态,无任何勾选联动操作

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      checkTypeFlag = false 且 treeNode.checked = checked 时,不会触发回调函数,直接返回

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      不影响父子节点中 treeNode.nochecked = true 的节点。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      callbackFlagBoolean

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      callbackFlag = true 表示执行此方法时触发 beforeCheck & onCheck 事件回调函数

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      callbackFlag = false 表示执行此方法时不触发事件回调函数

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      省略此参数,等同于 false

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      目前无任何返回值

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      function 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 勾选当前选中的节点

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var nodes = treeObj.getSelectedNodes();
                                                                                                                                                                                                                                                                                                                      +for (var i=0, l=nodes.length; i < l; i++) {
                                                                                                                                                                                                                                                                                                                      +	treeObj.checkNode(nodes[i], true, true);
                                                                                                                                                                                                                                                                                                                      +}
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.copyNode.html b/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.copyNode.html new file mode 100644 index 0000000..f1b624b --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.copyNode.html @@ -0,0 +1,44 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(targetNode, treeNode, moveType, isSilent)zTreeObj.copyNode

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      复制节点。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      v3.x 复制节点时进行 clone 操作。如果需要获取数据在 zTree 内的对象,请获取此方法的返回值。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      请通过 zTree 对象执行此方法。

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function 参数说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      targetNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      要复制到的目标节点 JSON 数据

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      如果复制成为根节点,请设置 targetNode 为 null 即可

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      请务必保证此节点数据对象 是 zTree 内部的数据对象

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      需要被复制的节点数据

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      请务必保证此节点数据对象 是 zTree 内部的数据对象

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      moveTypeString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      复制到目标节点的相对位置

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      "inner":成为子节点,"prev":成为同级前一个节点,"next":成为同级后一个节点

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      isSilentBoolean

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      设定复制节点后是否自动展开父节点。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      isSilent = true 时,不展开父节点,其他值或缺省状态都自动展开。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值JSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值是最终加入到 zTree 内的节点数据

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      请务必记住:返回值中的数据对象 是 treeNode 被 clone 后的,所以绝对不相等!

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      function 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 将根节点中第二个节点 复制成为 第一个节点的子节点

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var nodes = treeObj.getNodes();
                                                                                                                                                                                                                                                                                                                      +treeObj.copyNode(nodes[0], nodes[1], "inner");
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2. 将根节点中第二个节点 复制成为 第一个节点的前一个节点

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var nodes = treeObj.getNodes();
                                                                                                                                                                                                                                                                                                                      +treeObj.copyNode(nodes[0], nodes[1], "before");
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.destroy.html b/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.destroy.html new file mode 100644 index 0000000..d9f6da0 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.destroy.html @@ -0,0 +1,25 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(treeId)zTreeObj.destroy

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.core 核心 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      从 zTree v3.4 开始提供销毁 zTree 的方法。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1、用此方法可以销毁 zTreeObj 代表的 zTree。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2、销毁当前页面全部的 zTree,也可以使用 $.fn.zTree.destroy() 方法。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      3、重新使用已经被销毁的树,必须要使用 init 方法进行初始化。

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function Parameter Descriptions

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      目前无任何返回值

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      function 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 销毁 id 为 "treeDemo" 的 zTree

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var zTreeObj = $.fn.zTree.getZTreeObj("treeDemo");
                                                                                                                                                                                                                                                                                                                      +zTreeObj.destroy();
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.editName.html b/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.editName.html new file mode 100644 index 0000000..2d4eaf7 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.editName.html @@ -0,0 +1,29 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(treeNode)zTreeObj.editName

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      设置某节点进入编辑名称状态。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1、如果需要用 js 取消编辑名称状态,请使用 cancelEditName(newName) 方法。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2、可利用此方法让当前正编辑的节点 input 输入框获取焦点。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      3、请通过 zTree 对象执行此方法。

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function 参数说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      指定进入编辑名称状态的节点 JSON 数据

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      请务必保证此节点数据对象 是 zTree 内部的数据对象

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      目前无任何返回值

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      function 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 设置根节点第一个节点进入编辑名称状态

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var nodes = treeObj.getNodes();
                                                                                                                                                                                                                                                                                                                      +treeObj.editName(nodes[0]);
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.expandAll.html b/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.expandAll.html new file mode 100644 index 0000000..aaa3e46 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.expandAll.html @@ -0,0 +1,30 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(expandFlag)zTreeObj.expandAll

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.core 核心 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      展开 / 折叠 全部节点

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      此方法不会触发 beforeExpand / onExpand 和 beforeCollapse / onCollapse 事件回调函数。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      请通过 zTree 对象执行此方法。

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function 参数说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      expandFlagBoolean

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      expandFlag = true 表示 展开 全部节点

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      expandFlag = false 表示 折叠 全部节点

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值Boolean

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值表示最终实际操作情况

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      true 表示 展开 全部节点

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      false 表示 折叠 全部节点

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      null 表示 不存在任何父节点

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      function 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 展开全部节点

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +treeObj.expandAll(true);
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.expandNode.html b/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.expandNode.html new file mode 100644 index 0000000..26f563a --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.expandNode.html @@ -0,0 +1,50 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(treeNode, expandFlag, sonSign, focus, callbackFlag)zTreeObj.expandNode

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.core 核心 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      展开 / 折叠 指定的节点

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      v3.x 中执行此方法可以触发 beforeExpand / onExpand 或 beforeCollapse / onCollapse 事件回调函数。便于减少冗余代码

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      请通过 zTree 对象执行此方法。

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function 参数说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      需要 展开 / 折叠 的节点数据

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      请务必保证此节点数据对象 是 zTree 内部的数据对象

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      expandFlagBoolean

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      expandFlag = true 表示 展开 节点

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      expandFlag = false 表示 折叠 节点

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      省略此参数,则根据对此节点的展开状态进行 toggle 切换

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      sonSignBoolean

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      sonSign = true 表示 全部子孙节点 进行与 expandFlag 相同的操作

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      sonSign = false 表示 只影响此节点,对于其 子孙节点无任何影响

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      sonSign = false 且 treeNode.open = expandFlag 时,不会触发回调函数,直接返回

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      省略此参数,等同于 false

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      focusBoolean

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      focus = true 表示 展开 / 折叠 操作后,通过设置焦点保证此焦点进入可视区域内

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      focus = false 表示 展开 / 折叠 操作后,不设置任何焦点

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      省略此参数,等同于 true

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      callbackFlagBoolean

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      callbackFlag = true 表示执行此方法时触发 beforeExpand / onExpand 或 beforeCollapse / onCollapse 事件回调函数

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      callbackFlag = false 表示执行此方法时不触发事件回调函数

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      省略此参数,等同于 false

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值Boolean

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值表示最终实际操作情况

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      true 表示 展开 节点

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      false 表示 折叠 节点

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      null 表示 不是父节点

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      function 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 展开当前选择的第一个节点(包括其全部子节点)

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var nodes = treeObj.getSelectedNode();
                                                                                                                                                                                                                                                                                                                      +if (nodes.length>0) {
                                                                                                                                                                                                                                                                                                                      +	treeObj.expandNode(nodes[0], true, true, true);
                                                                                                                                                                                                                                                                                                                      +}
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.getChangeCheckedNodes.html b/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.getChangeCheckedNodes.html new file mode 100644 index 0000000..ba86534 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.getChangeCheckedNodes.html @@ -0,0 +1,24 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function()zTreeObj.getChangeCheckedNodes

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.excheck 扩展 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      获取输入框勾选状态被改变的节点集合(与原始数据 checkedOld 对比)。[setting.check.enable = true 时有效]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      请通过 zTree 对象执行此方法。

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function 参数说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值Array(JSON)

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回全部勾选状态被改变的节点集合 Array

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      如果需要获取每次操作后全部被改变勾选状态的节点数据,请在每次勾选操作后,遍历所有被改变勾选状态的节点数据,让其 checkedOld = checked 就可以了。

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      function 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 获取当前勾选状态被改变的节点集合

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var nodes = treeObj.getChangeCheckedNodes();
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.getCheckedNodes.html b/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.getCheckedNodes.html new file mode 100644 index 0000000..85f4ba0 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.getCheckedNodes.html @@ -0,0 +1,28 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(checked)zTreeObj.getCheckedNodes

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.excheck 扩展 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      获取输入框被勾选 或 未勾选的节点集合。[setting.check.enable = true 时有效]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      请通过 zTree 对象执行此方法。

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function 参数说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      checkedBoolean

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      checked = true 表示获取 被勾选 的节点集合

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      checked = false 表示获取 未勾选 的节点集合

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      省略此参数,等同于 true。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      对于 treeNode.nochecked = true 的节点不进行获取。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值Array(JSON)

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回全部符合要求的节点集合 Array

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      function 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 获取当前被勾选的节点集合

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var nodes = treeObj.getCheckedNodes(true);
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.getNodeByParam.html b/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.getNodeByParam.html new file mode 100644 index 0000000..89e72c7 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.getNodeByParam.html @@ -0,0 +1,32 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(key, value, parentNode)zTreeObj.getNodeByParam

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.core 核心 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      根据节点数据的属性搜索,获取条件完全匹配的节点数据 JSON 对象

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      请通过 zTree 对象执行此方法。

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function 参数说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      keyString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      需要精确匹配的属性名称

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      value?

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      需要精确匹配的属性值,可以是任何类型,只要保证与 key 指定的属性值保持一致即可

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      parentNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      搜索范围,指定在某个父节点下的子节点中进行搜索

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      忽略此参数,表示在全部节点中搜索

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值JSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      匹配精确搜索的节点数据

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1、如无结果,返回 null

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2、如有多个节点满足查询条件,只返回第一个匹配到的节点

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      function 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 查找 id = 1 的节点数据

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var node = treeObj.getNodeByParam("id", 1, null);
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.getNodeByTId.html b/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.getNodeByTId.html new file mode 100644 index 0000000..76fcc48 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.getNodeByTId.html @@ -0,0 +1,27 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(tId)zTreeObj.getNodeByTId

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.core 核心 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      根据 zTree 的唯一标识 tId 快速获取节点 JSON 数据对象

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      通过内部的 cache 获取,不需要遍历节点。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      请通过 zTree 对象执行此方法。

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function 参数说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      tIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      节点在 zTree 内的唯一标识 tId

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值JSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      tId 对应的节点 JSON 数据对象

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      如无结果,返回 null

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      function 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 获取 tId = "tree_10" 的节点数据

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var node = treeObj.getNodeByTId("tree_10");
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.getNodeIndex.html b/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.getNodeIndex.html new file mode 100644 index 0000000..b2c757d --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.getNodeIndex.html @@ -0,0 +1,30 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(treeNode)zTreeObj.getNodeIndex

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.core 核心 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      获取某节点在同级节点中的序号(从0开始)

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      请通过 zTree 对象执行此方法。

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function 参数说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      需要查询顺序的节点 JSON 数据对象

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      请务必保证此节点数据对象 是 zTree 内部的数据对象

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值Number

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值从 0 开始计数

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      如果不存在该节点数据,返回 -1

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      function 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 获取当前选中的第一个节点在同级节点中的序号

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var nodes = treeObj.getSelectedNodes();
                                                                                                                                                                                                                                                                                                                      +if (nodes.length>0) {
                                                                                                                                                                                                                                                                                                                      +	var index = treeObj.getNodeIndex(nodes[0]);
                                                                                                                                                                                                                                                                                                                      +}
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.getNodes.html b/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.getNodes.html new file mode 100644 index 0000000..b368535 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.getNodes.html @@ -0,0 +1,26 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function()zTreeObj.getNodes

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.core 核心 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      获取 zTree 的全部节点数据

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      请通过 zTree 对象执行此方法。

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function 参数说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值Array(JSON)

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      全部节点数据

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1、Array 仅仅是根节点的集合(默认情况子节点都处于 children 属性下);

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2、如需遍历全部节点需要利用递归,或利用 transformToArray 方法 将数据变成简单的 Array 集合

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      3、对于异步加载模式下,尚未加载的子节点是无法通过此方法获取的。

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      function 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 获取全部节点数据

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var nodes = treeObj.getNodes();
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.getNodesByFilter.html b/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.getNodesByFilter.html new file mode 100644 index 0000000..6917425 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.getNodesByFilter.html @@ -0,0 +1,43 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(filter, isSingle, parentNode, invokeParam)zTreeObj.getNodesByFilter

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.core 核心 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      根据自定义规则搜索节点数据 JSON 对象集合 或 单个节点数据

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      可自定义复杂的搜索规则

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      请通过 zTree 对象执行此方法。

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function 参数说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      filterFunction

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      自定义过滤器函数 function filter(node) {...}

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      filter 参数:node (节点数据 JSON)

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      filter 返回值:boolean (true 表示符合搜索条件;false 表示不符合搜索条件)

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      isSingleBoolean

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      isSingle = true 表示只查找单个节点

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      isSingle = false 表示查找节点集合

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      忽略此参数,表示查找节点集合

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      parentNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      可以指定在某个父节点下的子节点中搜索

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      忽略此参数,表示在全部节点中搜索

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      invokeParam任意类型

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      用户自定义的数据对象,用于 filter 中进行计算

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值Array(JSON) / JSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      isSingle = true 返回 第一个找到的节点数据 JSON,无结果时返回 null

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      isSingle = false 返回 节点数据集合 Array(JSON),无结果时返回 [ ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      function 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 查找 level = 2 & name 中包含 "test" 的节点数据

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      function filter(node) {
                                                                                                                                                                                                                                                                                                                      +    return (node.level == 2 && node.name.indexOf("test")>-1);
                                                                                                                                                                                                                                                                                                                      +}
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var node = treeObj.getNodesByFilter(filter, true); // 仅查找一个节点
                                                                                                                                                                                                                                                                                                                      +var nodes = treeObj.getNodesByFilter(filter); // 查找节点集合
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.getNodesByParam.html b/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.getNodesByParam.html new file mode 100644 index 0000000..cf45939 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.getNodesByParam.html @@ -0,0 +1,31 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(key, value, parentNode)zTreeObj.getNodesByParam

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.core 核心 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      根据节点数据的属性搜索,获取条件完全匹配的节点数据 JSON 对象集合

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      请通过 zTree 对象执行此方法。

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function 参数说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      keyString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      需要精确匹配的属性名称

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      value?

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      需要精确匹配的属性值,可以是任何类型,只要保证与 key 指定的属性值保持一致即可

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      parentNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      可以指定在某个父节点下的子节点中搜索

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      忽略此参数,表示在全部节点中搜索

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值Array(JSON)

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      匹配精确搜索的节点数据集合

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      如无结果,返回 [ ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      function 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 查找 name = "test" 的节点数据

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var nodes = treeObj.getNodesByParam("name", "test", null);
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.getNodesByParamFuzzy.html b/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.getNodesByParamFuzzy.html new file mode 100644 index 0000000..04d183f --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.getNodesByParamFuzzy.html @@ -0,0 +1,32 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(key, value, parentNode)zTreeObj.getNodesByParamFuzzy

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.core 核心 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      根据节点数据的属性搜索,获取条件模糊匹配的节点数据 JSON 对象集合

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      请通过 zTree 对象执行此方法。

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function 参数说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      keyString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      需要模糊匹配的属性名称

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      valueString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      需要模糊匹配的属性值

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      模糊匹配只能针对 String 类型的数据

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      parentNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      可以指定在某个父节点下的子节点中搜索

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      忽略此参数,表示在全部节点中搜索

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值Array(JSON)

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      匹配模糊搜索的节点数据集合

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      如无结果,返回 [ ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      function 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 查找 name 包含 "test" 的节点数据

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var nodes = treeObj.getNodesByParamFuzzy("name", "test", null);
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.getSelectedNodes.html b/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.getSelectedNodes.html new file mode 100644 index 0000000..ab36f8e --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.getSelectedNodes.html @@ -0,0 +1,23 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function()zTreeObj.getSelectedNodes

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.core 核心 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      获取 zTree 当前被选中的节点数据集合

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      请通过 zTree 对象执行此方法。

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function 参数说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值Array(JSON)

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      当前被选中的节点数据集合

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      function 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 获取当前被选中的节点数据集合

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var nodes = treeObj.getSelectedNodes();
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.hideNode.html b/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.hideNode.html new file mode 100644 index 0000000..a1996b8 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.hideNode.html @@ -0,0 +1,29 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(treeNode)zTreeObj.hideNode

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.exhide 扩展 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      隐藏某个节点。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1、此功能不支持 exedit 扩展,因此不要在编辑状态时使用隐藏节点的方法。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2、隐藏/显示节点,会影响节点的 isFirstNode 和 isLastNode 属性。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      3、请通过 zTree 对象执行此方法。

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function 参数说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      指定被隐藏的节点 JSON 数据

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      请务必保证此节点数据对象 是 zTree 内部的数据对象

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      目前无任何返回值

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      function 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 隐藏根节点第一个节点

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var nodes = treeObj.getNodes();
                                                                                                                                                                                                                                                                                                                      +treeObj.hideNode(nodes[0]);
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.hideNodes.html b/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.hideNodes.html new file mode 100644 index 0000000..cf752b5 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.hideNodes.html @@ -0,0 +1,29 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(treeNodes)zTreeObj.hideNodes

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.exhide 扩展 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      隐藏一批节点。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1、此功能不支持 exedit 扩展,因此不要在编辑状态时使用隐藏节点的方法。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2、隐藏/显示节点,会影响节点的 isFirstNode 和 isLastNode 属性。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      3、请通过 zTree 对象执行此方法。

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function 参数说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodesArray(JSON)

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      指定被隐藏的节点 JSON 数据集合

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      请务必保证这些节点数据对象 是 zTree 内部的数据对象

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      目前无任何返回值

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      function 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 隐藏根节点第一个节点的子节点

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var nodes = treeObj.getNodes();
                                                                                                                                                                                                                                                                                                                      +treeObj.hideNodes(nodes[0].children);
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.moveNode.html b/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.moveNode.html new file mode 100644 index 0000000..27f225a --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.moveNode.html @@ -0,0 +1,46 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(targetNode, treeNode, moveType, isSilent)zTreeObj.moveNode

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      移动节点。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      请通过 zTree 对象执行此方法。

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function 参数说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      targetNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      要移动到的目标节点 JSON 数据

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      如果移动成为根节点,请设置 targetNode 为 null 即可

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      请务必保证此节点数据对象 是 zTree 内部的数据对象

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      需要被移动的节点数据

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      请务必保证此节点数据对象 是 zTree 内部的数据对象

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      moveTypeString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      指定移动到目标节点的相对位置

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      "inner":成为子节点,"prev":成为同级前一个节点,"next":成为同级后一个节点

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      isSilentBoolean

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      设定移动节点后是否自动展开父节点。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      isSilent = true 时,不展开父节点,其他值或缺省状态都自动展开。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值JSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值是最终被移动的节点数据,正常情况下与 treeNode 参数完全相同

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      如果 返回值 为 null,说明 移动失败,主要原因有:
                                                                                                                                                                                                                                                                                                                      +  1、targetNode 是 treeNode 父节点,且 moveType = "inner"
                                                                                                                                                                                                                                                                                                                      +  2、targetNode 是 treeNode 子孙节点 +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      function 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 将根节点中第二个节点 移动成为 第一个节点的子节点

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var nodes = treeObj.getNodes();
                                                                                                                                                                                                                                                                                                                      +treeObj.moveNode(nodes[0], nodes[1], "inner");
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2. 将根节点中第二个节点 移动成为 第一个节点的前一个节点

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var nodes = treeObj.getNodes();
                                                                                                                                                                                                                                                                                                                      +treeObj.moveNode(nodes[0], nodes[1], "before");
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.reAsyncChildNodes.html b/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.reAsyncChildNodes.html new file mode 100644 index 0000000..4a354e2 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.reAsyncChildNodes.html @@ -0,0 +1,42 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(parentNode, reloadType, isSilent)zTreeObj.reAsyncChildNodes

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.core 核心 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      强行异步加载父节点的子节点。[setting.async.enable = true 时有效]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      已经加载过的父节点可反复使用此方法重新加载。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      请通过 zTree 对象执行此方法。

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function 参数说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      parentNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      指定需要异步加载的父节点 JSON 数据

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1、parentNode = null 时,相当于从根节点 Root 进行异步加载

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2、parentNode.isParent = false 时,不进行异步加载

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      3、请务必保证此节点数据对象 是 zTree 内部的数据对象

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      reloadTypeString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      reloadType = "refresh" 表示清空后重新加载。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      reloadType != "refresh" 时,表示追加子节点处理。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      isSilentBoolean

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      设定异步加载后是否自动展开父节点。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      isSilent = true 时,不展开父节点,其他值或缺省状态都自动展开。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      目前无任何返回值

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      function 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 重新异步加载 zTree

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +treeObj.reAsyncChildNodes(null, "refresh");
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2. 重新异步加载当前选中的第一个节点

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var nodes = treeObj.getSelectedNodes();
                                                                                                                                                                                                                                                                                                                      +if (nodes.length>0) {
                                                                                                                                                                                                                                                                                                                      +	treeObj.reAsyncChildNodes(nodes[0], "refresh");
                                                                                                                                                                                                                                                                                                                      +}
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.refresh.html b/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.refresh.html new file mode 100644 index 0000000..09a74ca --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.refresh.html @@ -0,0 +1,24 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function()zTreeObj.refresh

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.core 核心 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      刷新 zTree 。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      没有特殊必要,尽量不要使用此方法。单个节点更新请使用 updateNode 方法,异步加载模式下请使用 reAsyncChildNodes 方法。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      请通过 zTree 对象执行此方法。

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function 参数说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      目前无任何返回值

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      function 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 刷新 zTree

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +treeObj.refresh();
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.removeChildNodes.html b/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.removeChildNodes.html new file mode 100644 index 0000000..588639f --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.removeChildNodes.html @@ -0,0 +1,32 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(parentNode)zTreeObj.removeChildNodes

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.core 扩展 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      清空某父节点的子节点。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1、清空子节点后,父节点会自动变为叶子节点,如需要父节点保持父节点状态,请设置 setting.data.keep.parent 属性。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2、请勿用此方法清空根节点,如果需要清空根节点,直接初始化 zTree,并且设置初始节点为 null 即可。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      3、此方法不会触发任何事件回调函数。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      请通过 zTree 对象执行此方法。

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function 参数说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      parentNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      需要清空子节点的父节点数据

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      请务必保证此节点数据对象 是 zTree 内部的数据对象

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值Array(JSON)

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      将该父节点的子节点数据返回,如果不存在则返回 null

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      function 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 清空选中的第一个节点的子节点

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var nodes = treeObj.getSelectedNodes();
                                                                                                                                                                                                                                                                                                                      +if (nodes && nodes.length>0) {
                                                                                                                                                                                                                                                                                                                      +	treeObj.removeChildNodes(nodes[0]);
                                                                                                                                                                                                                                                                                                                      +}
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.removeNode.html b/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.removeNode.html new file mode 100644 index 0000000..d28e017 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.removeNode.html @@ -0,0 +1,34 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(treeNode, callbackFlag)zTreeObj.removeNode

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.core 扩展 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      删除节点。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      v3.x 中删除节点可以触发 beforeRemove / onRemove 事件回调函数。便于减少冗余代码

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      请通过 zTree 对象执行此方法。

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function 参数说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      需要被删除的节点数据

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      请务必保证此节点数据对象 是 zTree 内部的数据对象

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      callbackFlagBoolean

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      callbackFlag = true 表示执行此方法时触发 beforeCheck & onCheck 事件回调函数

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      callbackFlag = false 表示执行此方法时不触发事件回调函数

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      省略此参数,等同于 false

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      目前无任何返回值

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      function 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 删除所有选中的节点

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var nodes = treeObj.getSelectedNodes();
                                                                                                                                                                                                                                                                                                                      +for (var i=0, l=nodes.length; i < l; i++) {
                                                                                                                                                                                                                                                                                                                      +	treeObj.removeNode(nodes[i]);
                                                                                                                                                                                                                                                                                                                      +}
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.selectNode.html b/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.selectNode.html new file mode 100644 index 0000000..6e80d81 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.selectNode.html @@ -0,0 +1,34 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(treeNode, addFlag)zTreeObj.selectNode

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.core 核心 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      选中指定节点

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      v3.x 支持同时选中多个节点。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      请通过 zTree 对象执行此方法。

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function 参数说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      需要被选中的节点数据

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      请务必保证此节点数据对象 是 zTree 内部的数据对象

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      addFlagBoolean

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      addFlag = true 表示追加选中,会出现多点同时被选中的情况

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      addFlag = false 表示单独选中,原先被选中的节点会被取消选中状态

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      setting.view.selectedMulti = false 时,此参数无效,始终进行单独选中

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      目前无任何返回值

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      function 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 单独选中根节点中第一个节点

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var nodes = treeObj.getNodes();
                                                                                                                                                                                                                                                                                                                      +if (nodes.length>0) {
                                                                                                                                                                                                                                                                                                                      +	treeObj.selectNode(nodes[0]);
                                                                                                                                                                                                                                                                                                                      +}
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.setChkDisabled.html b/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.setChkDisabled.html new file mode 100644 index 0000000..f6c7d06 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.setChkDisabled.html @@ -0,0 +1,36 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(node, disabled)zTreeObj.setChkDisabled

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.excheck 扩展 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      禁用 或 解禁 某个节点的 checkbox / radio [setting.check.enable = true 时有效]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1、节点的 checkbox / radio 被禁用后,无法勾选或取消勾选,但能够影响父节点的半选状态

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2、请不要直接修改已加载节点的 treeNode.chkDisabled 属性。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      3、请通过 zTree 对象执行此方法。

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function 参数说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      需要禁用 或 解禁 checkbox / radio 的节点数据

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      请务必保证此节点数据对象 是 zTree 内部的数据对象

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      disabledBoolean

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      disabled = true 表示禁用 checkbox / radio

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      disabled = false 表示解禁 checkbox / radio

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      省略此参数,等同于 disabled = false

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      不影响 treeNode.nochecked = true 的节点。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      目前无任何返回值

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      function 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 禁用当前选中的节点的 checkbox / radio

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var nodes = treeObj.getSelectedNodes();
                                                                                                                                                                                                                                                                                                                      +for (var i=0, l=nodes.length; i < l; i++) {
                                                                                                                                                                                                                                                                                                                      +	treeObj.setChkDisabled(nodes[i], true);
                                                                                                                                                                                                                                                                                                                      +}
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.setEditable.html b/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.setEditable.html new file mode 100644 index 0000000..c90c8de --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.setEditable.html @@ -0,0 +1,27 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(editable)zTreeObj.setEditable

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.exedit 扩展 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      设置 zTree 进入 / 取消 编辑状态。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      对于编辑状态的各种功能需要提前设置对应 setting 中的不同属性

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      请通过 zTree 对象执行此方法。

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function 参数说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      editableBoolean

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      true 表示进入 编辑状态

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      false 表示取消 编辑状态

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      目前无任何返回值

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      function 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 设置 zTree 进入编辑状态

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +treeObj.setEditable(true);
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.setting.html b/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.setting.html new file mode 100644 index 0000000..61abd53 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.setting.html @@ -0,0 +1,13 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      JSONzTreeObj.setting

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.core 核心 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      zTree 对象使用的 setting 配置数据,详细请参考 “setting 配置详解”中的各个属性详细说明

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      v3.x 取消了原先操作 setting 的方法,让用户可以较自由的修改参数,但请注意,对于 zTree 初始化有影响的参数后期修改是不会起作用的,请对各个属性有较深入的了解以后再考虑进行修改。

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.showNode.html b/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.showNode.html new file mode 100644 index 0000000..ed22d51 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.showNode.html @@ -0,0 +1,31 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(treeNode)zTreeObj.showNode

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.exhide 扩展 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      显示某个被隐藏的节点。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1、此功能不支持 exedit 扩展,因此不要在编辑状态时使用隐藏节点的方法。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2、隐藏/显示节点,会影响节点的 isFirstNode 和 isLastNode 属性。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      3、请通过 zTree 对象执行此方法。

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function 参数说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      指定被显示的节点 JSON 数据

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      请务必保证此节点数据对象 是 zTree 内部的数据对象

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      目前无任何返回值

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      function 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 显示某个隐藏的节点

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var node = treeObj.getNodeByParam("isHidden", true);
                                                                                                                                                                                                                                                                                                                      +if (node) {
                                                                                                                                                                                                                                                                                                                      +  treeObj.showNode(node);
                                                                                                                                                                                                                                                                                                                      +}
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.showNodes.html b/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.showNodes.html new file mode 100644 index 0000000..b090657 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.showNodes.html @@ -0,0 +1,29 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(treeNodes)zTreeObj.showNodes

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.exhide 扩展 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      显示一批已经被隐藏的节点。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1、此功能不支持 exedit 扩展,因此不要在编辑状态时使用隐藏节点的方法。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2、隐藏/显示节点,会影响节点的 isFirstNode 和 isLastNode 属性。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      3、请通过 zTree 对象执行此方法。

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function 参数说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodesArray(JSON)

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      指定被显示的节点 JSON 数据集合

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      请务必保证这些节点数据对象 是 zTree 内部的数据对象

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      目前无任何返回值

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      function 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 显示全部隐藏的节点

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var nodes = treeObj.getNodesByParam("isHidden", true);
                                                                                                                                                                                                                                                                                                                      +treeObj.showNodes(nodes);
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.transformToArray.html b/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.transformToArray.html new file mode 100644 index 0000000..a46dc61 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.transformToArray.html @@ -0,0 +1,25 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(treeNodes)zTreeObj.transformToArray

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.core 核心 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      将 zTree 使用的标准 JSON 嵌套格式的数据转换为简单 Array 格式。(免去用户自行编写递归遍历全部节点的麻烦)

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      请通过 zTree 对象执行此方法。

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function 参数说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodesArray(JSON) / JSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      需要被转换的 zTree 节点数据对象集合 或 某个单独节点的数据对象

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值Array(JSON)

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      转换后的简单 Array 数据格式

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      function 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 将 zTree 节点数据转换为简单 Array 格式

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var nodes = treeObj.transformToArray(treeObj.getNodes());
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.transformTozTreeNodes.html b/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.transformTozTreeNodes.html new file mode 100644 index 0000000..8a52770 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.transformTozTreeNodes.html @@ -0,0 +1,43 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(simpleNodes)zTreeObj.transformTozTreeNodes

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.core 核心 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      将简单 Array 格式数据转换为 zTree 使用的标准 JSON 嵌套数据格式。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      使用此方法,请务必设置节点唯一标识属性名称 setting.data.simpleData.idKey 和 父节点唯一标识属性名称 setting.data.simpleData.pIdKey,并且让数据满足父子关系。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      请通过 zTree 对象执行此方法。

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function 参数说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      simpleNodesArray(JSON) / JSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      需要被转换的简单 Array 格式数据 或 某个单独的数据对象

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值Array(JSON)

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      zTree 使用的标准数据,子节点都存在于父节点数据的 children 属性中

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      如果 simpleNodes 是一个 JSON 对象,则被简单封装成长度为 1 的数组。

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      function 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 将简单 Array 格式转换为zTree使用的标准格式

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	data: {
                                                                                                                                                                                                                                                                                                                      +		simpleData: {
                                                                                                                                                                                                                                                                                                                      +			enable: true,
                                                                                                                                                                                                                                                                                                                      +			idKey: "id",
                                                                                                                                                                                                                                                                                                                      +			pIdKey: "pId",
                                                                                                                                                                                                                                                                                                                      +			rootPId: 0,
                                                                                                                                                                                                                                                                                                                      +		}
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +var simpleNodes = [
                                                                                                                                                                                                                                                                                                                      +    {"id":1, "pId":0, "name":"test1"},
                                                                                                                                                                                                                                                                                                                      +    {"id":11, "pId":1, "name":"test11"},
                                                                                                                                                                                                                                                                                                                      +    {"id":12, "pId":1, "name":"test12"},
                                                                                                                                                                                                                                                                                                                      +    {"id":111, "pId":11, "name":"test111"}
                                                                                                                                                                                                                                                                                                                      +];
                                                                                                                                                                                                                                                                                                                      +var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var nodes = treeObj.transformTozTreeNodes(simpleNodes);
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.updateNode.html b/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.updateNode.html new file mode 100644 index 0000000..847fa6e --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/cn/zTreeObj.updateNode.html @@ -0,0 +1,37 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(treeNode, checkTypeFlag)zTreeObj.updateNode

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      概述[ 依赖 jquery.ztree.core 核心 js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      更新某节点数据,主要用于该节点显示属性的更新。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1、可针对 name、target、 url、icon、 iconSkin、checked、nocheck 等这几个用于显示效果的参数进行更新,其他用于 zTreeNodes 的参数请不要随意更新,对于展开节点,还请调用 expandNode方法,因此请勿随意修改 open 属性。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2、用此方法修改 checked 勾选状态不会触发 beforeCheck / onCheck 事件回调函数。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      请通过 zTree 对象执行此方法。

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function 参数说明

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      指定需要更新的节点 JSON 数据

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      请务必保证此节点数据对象 是 zTree 内部的数据对象

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      checkTypeFlagBoolean

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      checkTypeFlag = true 表示按照 setting.check.chkboxType 属性进行父子节点的勾选联动操作

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      checkTypeFlag = false 表示只修改此节点勾选状态,无任何勾选联动操作

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      当 setting.check.enable = true 且 setting.check.chkStyle = "checkbox" 时才有效

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      不影响父子节点中 treeNode.nochecked = true 的节点。

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      返回值

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      目前无任何返回值

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      function 举例

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 更新根节点中第一个节点的名称

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var nodes = treeObj.getNodes();
                                                                                                                                                                                                                                                                                                                      +if (nodes.length>0) {
                                                                                                                                                                                                                                                                                                                      +	nodes[0].name = "test";
                                                                                                                                                                                                                                                                                                                      +	treeObj.updateNode(nodes[0]);
                                                                                                                                                                                                                                                                                                                      +}
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/fn.zTree._z.html b/alive-admin/target/classes/static/ztree/api/en/fn.zTree._z.html new file mode 100644 index 0000000..61da261 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/fn.zTree._z.html @@ -0,0 +1,13 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      JSON$.fn.zTree._z

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.core js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      All of the methods in zTree v3.x are available through the '$. fn.zTree._z' calls, open it for you to develop your own zTree plug-ins.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If you have no special requirements, please don't use this object, and don't modify the methods in this object.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/fn.zTree.destroy.html b/alive-admin/target/classes/static/ztree/api/en/fn.zTree.destroy.html new file mode 100644 index 0000000..3a31699 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/fn.zTree.destroy.html @@ -0,0 +1,28 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(treeId)$.fn.zTree.destroy

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.core js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      From zTree v3.4, zTree support the method for destruction.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. This method can destroy the zTree with specify treeId, and can destroy all of the zTrees.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2. If you want to destory some one zTree, you can use the 'zTreeObj.destroy()' method.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      3. If you want to use the tree which has been destroyed, you must use the 'init()' method at first.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function Parameter Descriptions

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      zTree unique identifier

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If this parameter is omitted, then will destroy all of the zTrees.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Return none

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      no return value

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of function

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. destroy the zTree which its id is 'treeDemo'

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      $.fn.zTree.destroy("treeDemo");
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2. destroy all of the zTrees

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      $.fn.zTree.destroy();
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/fn.zTree.getZTreeObj.html b/alive-admin/target/classes/static/ztree/api/en/fn.zTree.getZTreeObj.html new file mode 100644 index 0000000..2bc0447 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/fn.zTree.getZTreeObj.html @@ -0,0 +1,25 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(treeId)$.fn.zTree.getZTreeObj

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.core js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      zTree v3.x specifically provide the method which can use the tree's Id to get zTree object.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Please initialize zTree first, then you can use this method.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Users don't need to set the global variable to hold the zTree object, and all of the callback will return 'treeId' parameters, the user can always use this method to get the zTree object.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function Parameter Descriptions

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      zTree unique identifier

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Return JSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      zTree object

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      This object can provide the methods of operate the zTree

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of function

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. Get the zTree object which id is 'tree'

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/fn.zTree.init.html b/alive-admin/target/classes/static/ztree/api/en/fn.zTree.init.html new file mode 100644 index 0000000..cf97d2b --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/fn.zTree.init.html @@ -0,0 +1,75 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(obj, zSetting, zNodes)$.fn.zTree.init

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.core js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      The method which used to create zTree.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. The web page need to use W3C markup. For example: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2. Need to load jquery-1.4.2.js or other higher versions.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      3. Need to load jquery-ztree.core-3.0.js. If you need to use the edit mode or checkbox / radio mode, you need to load jquery-ztree.exedit-3.0.js and jquery-ztree.excheck-3.0.js.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      4. Need to load zTreeStyle.css and image files

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      5. If you need to use custom icons, please refer to the appropriate Demo.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      6. Note: You need to set zTree container's class name to "ztree". If you need to change, don't forget to modify the css file. If you need other special styles, can modify the css file to their own needs.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function Parameter Descriptions

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      objectjQuery Object

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      DOM Container for zTree

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      zSettingJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      zTree's configuration data, please refer to "setting details" in the API Document.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      zNodesArray(JSON) / JSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      zTree's node data, please refer to "treeNode data details" in the API Document.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. zTree v3.x support to add single node, that is, if only to add one node, you can use JSON without using Array.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2. If you need asynchronous load root nodes, can be set to null or [ ]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      3. If you use simple data mode, please refer to "setting.data.simpleData" in the API Document.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Return JSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      zTree object

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      This object can provide the methods of operate the zTree

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      You can use $.fn.zTree.getZTreeObj method at any time to obtain.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of setting & function

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. create a simple tree

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      <!DOCTYPE html>
                                                                                                                                                                                                                                                                                                                      +<HTML>
                                                                                                                                                                                                                                                                                                                      + <HEAD>
                                                                                                                                                                                                                                                                                                                      +  <TITLE> ZTREE DEMO </TITLE>
                                                                                                                                                                                                                                                                                                                      +  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
                                                                                                                                                                                                                                                                                                                      +  <link rel="stylesheet" href="zTreeStyle/zTreeStyle.css" type="text/css">
                                                                                                                                                                                                                                                                                                                      +  <script type="text/javascript" src="jquery-1.4.2.js"></script>
                                                                                                                                                                                                                                                                                                                      +  <script type="text/javascript" src="jquery.ztree.core-3.5.js"></script>
                                                                                                                                                                                                                                                                                                                      +<!--
                                                                                                                                                                                                                                                                                                                      +  <script type="text/javascript" src="jquery.ztree.excheck-3.5.js"></script>
                                                                                                                                                                                                                                                                                                                      +  <script type="text/javascript" src="jquery.ztree.exedit-3.5.js"></script>
                                                                                                                                                                                                                                                                                                                      +-->
                                                                                                                                                                                                                                                                                                                      +  <SCRIPT type="text/javascript" >
                                                                                                                                                                                                                                                                                                                      +	var zTreeObj,
                                                                                                                                                                                                                                                                                                                      +	setting = {
                                                                                                                                                                                                                                                                                                                      +		view: {
                                                                                                                                                                                                                                                                                                                      +			selectedMulti: false
                                                                                                                                                                                                                                                                                                                      +		}
                                                                                                                                                                                                                                                                                                                      +	},
                                                                                                                                                                                                                                                                                                                      +	zTreeNodes = [
                                                                                                                                                                                                                                                                                                                      +		{"name":"Site Map", open:true, children: [
                                                                                                                                                                                                                                                                                                                      +			{ "name":"google", "url":"http://www.google.com", "target":"_blank"},
                                                                                                                                                                                                                                                                                                                      +			{ "name":"baidu", "url":"http://baidu.com", "target":"_blank"},
                                                                                                                                                                                                                                                                                                                      +			{ "name":"sina", "url":"http://www.sina.com.cn", "target":"_blank"}
                                                                                                                                                                                                                                                                                                                      +			]
                                                                                                                                                                                                                                                                                                                      +		}
                                                                                                                                                                                                                                                                                                                      +	];
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +	$(document).ready(function(){
                                                                                                                                                                                                                                                                                                                      +		zTreeObj = $.fn.zTree.init($("#tree"), setting, zTreeNodes);
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +	});
                                                                                                                                                                                                                                                                                                                      +  </SCRIPT>
                                                                                                                                                                                                                                                                                                                      + </HEAD>
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +<BODY>
                                                                                                                                                                                                                                                                                                                      +<ul id="tree" class="ztree" style="width:230px; overflow:auto;"></ul>
                                                                                                                                                                                                                                                                                                                      + </BODY>
                                                                                                                                                                                                                                                                                                                      +</HTML>
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/setting.async.autoParam.html b/alive-admin/target/classes/static/ztree/api/en/setting.async.autoParam.html new file mode 100644 index 0000000..85cd469 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/setting.async.autoParam.html @@ -0,0 +1,39 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Array(String)setting.async.autoParam

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.core js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Required automatically submit the parameters about the properties of the parent node, when the asynchronous load. It is valid when [setting.async.enable = true]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default:[ ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Array(String) Format

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. Just save the attribute name of node to the array. For example: ["id", "name"]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2. You can change the parameter name. For example: server only accepts "zId" -- ["id=zId"]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of setting

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. set auto commit 'id' attribute

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	async: {
                                                                                                                                                                                                                                                                                                                      +		enable: true,
                                                                                                                                                                                                                                                                                                                      +		url: "http://host/getNode.php",
                                                                                                                                                                                                                                                                                                                      +		autoParam: ["id"]
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +If have the parent node: {id:1, name:"test"}, When asynchronously load this parent node's child nodes, will be submitted parameters: id=1
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2. set auto commit 'id' attribute, but parameter name is 'zId'

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	async: {
                                                                                                                                                                                                                                                                                                                      +		enable: true,
                                                                                                                                                                                                                                                                                                                      +		url: "http://host/getNode.php",
                                                                                                                                                                                                                                                                                                                      +		autoParam: ["id=zId"]
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +If have the parent node: {id:1, name:"test"}, When asynchronously load this parent node's child nodes, will be submitted parameters: zId=1
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/setting.async.contentType.html b/alive-admin/target/classes/static/ztree/api/en/setting.async.contentType.html new file mode 100644 index 0000000..cc9bfcd --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/setting.async.contentType.html @@ -0,0 +1,29 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Stringsetting.async.contentType

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.core js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      When Ajax sending data to the server, use this content-type. It is valid when [setting.async.enable = true]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default:"application/x-www-form-urlencoded"

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      String Format

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      contentType = "application/x-www-form-urlencoded", means: the sending data format is "form" format.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      contentType = "application/json", means: the sending data format is "json" format. (for .Net)

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of setting

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. set the sending data format to "json" format.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	async: {
                                                                                                                                                                                                                                                                                                                      +		enable: true,
                                                                                                                                                                                                                                                                                                                      +		contentType: "application/json",
                                                                                                                                                                                                                                                                                                                      +		url: "http://host/getNode.php",
                                                                                                                                                                                                                                                                                                                      +		autoParam: ["id", "name"]
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/setting.async.dataFilter.html b/alive-admin/target/classes/static/ztree/api/en/setting.async.dataFilter.html new file mode 100644 index 0000000..34733e4 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/setting.async.dataFilter.html @@ -0,0 +1,45 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(treeId, parentNode, responseData)setting.async.dataFilter

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.core js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function used to pre-process for the return data of Ajax. It is valid when [setting.async.enable = true]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: null

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function Parameter Descriptions

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      zTree unique identifier: treeId, easy for users to control.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      parentNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Parent node's JSON data object

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      When asynchronously loading the root, the parentNode = null

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      responseDataArray(JSON) / JSON / String

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Ajax got Array (JSON) / JSON / String data objects

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      From v3.4, support the string with XML format.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Return Array(JSON) / JSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      The return value should be the JSON data structure which is supported by the zTree.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      v3.x supports to load single node JSON data object.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of setting & function

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. Modify the node name attribute which is ajax got.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      function ajaxDataFilter(treeId, parentNode, responseData) {
                                                                                                                                                                                                                                                                                                                      +    if (responseData) {
                                                                                                                                                                                                                                                                                                                      +      for(var i =0; i < responseData.length; i++) {
                                                                                                                                                                                                                                                                                                                      +        responseData[i].name += "_filter";
                                                                                                                                                                                                                                                                                                                      +      }
                                                                                                                                                                                                                                                                                                                      +    }
                                                                                                                                                                                                                                                                                                                      +    return responseData;
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +var setting = {
                                                                                                                                                                                                                                                                                                                      +	async: {
                                                                                                                                                                                                                                                                                                                      +		enable: true,
                                                                                                                                                                                                                                                                                                                      +		url: "http://host/getNode.php",
                                                                                                                                                                                                                                                                                                                      +		dataFilter: ajaxDataFilter
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/setting.async.dataType.html b/alive-admin/target/classes/static/ztree/api/en/setting.async.dataType.html new file mode 100644 index 0000000..e6672e9 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/setting.async.dataType.html @@ -0,0 +1,29 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Stringsetting.async.dataType

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.core js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      The data type of Ajax. It is valid when [setting.async.enable = true]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default:"text"

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      String Format

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      dataType = "text", It can meet most of the needs.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      The 'dataType' in zTree and jQuery's ajax is same.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of setting

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. Set the dataType which ajax got is text.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	async: {
                                                                                                                                                                                                                                                                                                                      +		enable: true,
                                                                                                                                                                                                                                                                                                                      +		dataType: "text",
                                                                                                                                                                                                                                                                                                                      +		url: "http://host/getNode.php",
                                                                                                                                                                                                                                                                                                                      +		autoParam: ["id", "name"]
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/setting.async.enable.html b/alive-admin/target/classes/static/ztree/api/en/setting.async.enable.html new file mode 100644 index 0000000..806ba6c --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/setting.async.enable.html @@ -0,0 +1,30 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Booleansetting.async.enable

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.core js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Set zTree asynchronous loading mode is turned on or off.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: false

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Boolean Format

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      true - turn on asynchronous loading mode

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      false - turn off asynchronous loading mode

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If set it is true, you must set attributes in setting.async

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If you don't pass 'treeNodes' parameter when initialize zTree, the root nodes will get by ajax.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of setting

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. Turn on asynchronous loading mode

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	async: {
                                                                                                                                                                                                                                                                                                                      +		enable: true,
                                                                                                                                                                                                                                                                                                                      +		url: "http://host/getNode.php",
                                                                                                                                                                                                                                                                                                                      +		autoParam: ["id", "name"]
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/setting.async.otherParam.html b/alive-admin/target/classes/static/ztree/api/en/setting.async.otherParam.html new file mode 100644 index 0000000..2e37390 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/setting.async.otherParam.html @@ -0,0 +1,40 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Array(String) / JSONsetting.async.otherParam

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.core js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      The static parameters of the Ajax request. (key - value) It is valid when [setting.async.enable = true]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: [ ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Array(String) Format

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Can be empty array. e.g. [ ]. If set key, you must set value, e.g. [key, value]. ([key] or [key, value, key] is wrong!!)

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      JSON Format

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Use JSON data format set the key-value. e.g. { key1:value1, key2:value2 }

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of setting

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. Use Array(String) Format

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	async: {
                                                                                                                                                                                                                                                                                                                      +		enable: true,
                                                                                                                                                                                                                                                                                                                      +		url: "http://host/getNode.php",
                                                                                                                                                                                                                                                                                                                      +		otherParam: ["id", "1", "name", "test"]
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +when zTree send ajax, the parameters will has: id=1&name=test
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2. Use JSON data Format

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	async: {
                                                                                                                                                                                                                                                                                                                      +		enable: true,
                                                                                                                                                                                                                                                                                                                      +		url: "http://host/getNode.php",
                                                                                                                                                                                                                                                                                                                      +		otherParam: { "id":"1", "name":"test"}
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +when zTree send ajax, the parameters will has: id=1&name=test
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/setting.async.type.html b/alive-admin/target/classes/static/ztree/api/en/setting.async.type.html new file mode 100644 index 0000000..ae54338 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/setting.async.type.html @@ -0,0 +1,30 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Stringsetting.async.type

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.core js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Http request mode in ajax. It is valid when [setting.async.enable = true]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Defalut: "post"

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      String Format

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      "post" - http request mode

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      "get" - http request mode

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      The 'type' in zTree and jQuery's ajax is same.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of setting

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. Set http request mode is 'get'

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	async: {
                                                                                                                                                                                                                                                                                                                      +		enable: true,
                                                                                                                                                                                                                                                                                                                      +		type: "get",
                                                                                                                                                                                                                                                                                                                      +		url: "http://host/getNode.php",
                                                                                                                                                                                                                                                                                                                      +		autoParam: ["id", "name"]
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/setting.async.url.html b/alive-admin/target/classes/static/ztree/api/en/setting.async.url.html new file mode 100644 index 0000000..5587f29 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/setting.async.url.html @@ -0,0 +1,50 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      String / Function(treeId, treeNode)setting.async.url

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.core js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      The URL to which the ajax request is sent. It is valid when [setting.async.enable = true]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: ""

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      String Format

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      A url string(e.g. "http://www.domain.com"). Note: please ensure that the url can be loaded

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Url can also take parameters, please note that transcode.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function Parameter Descriptions

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      zTree unique identifier: treeId, easy for users to control.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Parent node's JSON data object

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      When asynchronously loading the root, the treeNode = null

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Return String

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Return value is same as 'String Format'

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of setting & function

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. set ajax url is "nodes.php"

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	async: {
                                                                                                                                                                                                                                                                                                                      +		enable: true,
                                                                                                                                                                                                                                                                                                                      +		url: "nodes.php",
                                                                                                                                                                                                                                                                                                                      +		autoParam: ["id", "name"]
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2. set ajax url is "function"

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      function getAsyncUrl(treeId, treeNode) {
                                                                                                                                                                                                                                                                                                                      +    return treeNode.isParent ? "nodes1.php" : "nodes2.php";
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +var setting = {
                                                                                                                                                                                                                                                                                                                      +	async: {
                                                                                                                                                                                                                                                                                                                      +		enable: true,
                                                                                                                                                                                                                                                                                                                      +		url: getAsyncUrl,
                                                                                                                                                                                                                                                                                                                      +		autoParam: ["id", "name"]
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/setting.callback.beforeAsync.html b/alive-admin/target/classes/static/ztree/api/en/setting.callback.beforeAsync.html new file mode 100644 index 0000000..6563ff2 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/setting.callback.beforeAsync.html @@ -0,0 +1,35 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(treeId, treeNode)setting.callback.beforeAsync

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.core js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Used to capture the event before zTree execute ajax, zTree based on return value to determine whether to execute ajax.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: null

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function Parameter Descriptions

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      zTree unique identifier: treeId, easy for users to control.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      JSON data object of the parent node

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      When asynchronously loading the root, the treeNode = null

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Return Boolean

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      return true or false

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If return false, zTree will not execute ajax, and will not trigger the 'onAsyncSuccess / onAsyncError' callback.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of setting & function

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. If the parent node's attribute 'id' is 1, zTree will not execute ajax.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      function zTreeBeforeAsync(treeId, treeNode) {
                                                                                                                                                                                                                                                                                                                      +    return (treeNode.id !== 1);
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +var setting = {
                                                                                                                                                                                                                                                                                                                      +	callback: {
                                                                                                                                                                                                                                                                                                                      +		beforeAsync: zTreeBeforeAsync
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/setting.callback.beforeCheck.html b/alive-admin/target/classes/static/ztree/api/en/setting.callback.beforeCheck.html new file mode 100644 index 0000000..5260412 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/setting.callback.beforeCheck.html @@ -0,0 +1,34 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(treeId, treeNode)setting.callback.beforeCheck

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.excheck js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Used to capture the event before check or uncheck node, zTree based on return value to determine whether to change check state.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: null

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function Parameter Descriptions

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      zTree unique identifier: treeId, easy for users to control.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      JSON data object of the node which is checked or unchecked

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Return Boolean

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      return true or false

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If return false, zTree will not change check state, and will not trigger the 'onCheck' callback.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of setting & function

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. disable to change check state of all nodes, and keep the check state initialization

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      function zTreeBeforeCheck(treeId, treeNode) {
                                                                                                                                                                                                                                                                                                                      +    return false;
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +var setting = {
                                                                                                                                                                                                                                                                                                                      +	callback: {
                                                                                                                                                                                                                                                                                                                      +		beforeCheck: zTreeBeforeCheck
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/setting.callback.beforeClick.html b/alive-admin/target/classes/static/ztree/api/en/setting.callback.beforeClick.html new file mode 100644 index 0000000..8a65448 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/setting.callback.beforeClick.html @@ -0,0 +1,49 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(treeId, treeNode, clickFlag)setting.callback.beforeClick

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.core js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Used to capture the event before click node, zTree based on return value to determine whether to trigger the 'onClick' callback.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: null

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function Parameter Descriptions

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      zTree unique identifier: treeId, easy for users to control.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      JSON data object of the node which is clicked

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      clickFlagNumber

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Node is selected or deselected state, please see table below for details

                                                                                                                                                                                                                                                                                                                      + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                      clickFlagselectedMultiautoCancelSelected
                                                                                                                                                                                                                                                                                                                      &&
                                                                                                                                                                                                                                                                                                                      event.ctrlKey
                                                                                                                                                                                                                                                                                                                      isSelectedoperate for selected
                                                                                                                                                                                                                                                                                                                      1truefalsefalsenode is selected (single)
                                                                                                                                                                                                                                                                                                                      1truefalsetruenode is selected (single)
                                                                                                                                                                                                                                                                                                                      2truetruefalsenode is selected (multi)
                                                                                                                                                                                                                                                                                                                      0truetruetruenode is deselected
                                                                                                                                                                                                                                                                                                                      1falsefalsefalsenode is selected (single)
                                                                                                                                                                                                                                                                                                                      1falsefalsetruenode is selected (single)
                                                                                                                                                                                                                                                                                                                      1falsetruefalsenode is selected (single)
                                                                                                                                                                                                                                                                                                                      0falsetruetruenode is deselected
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Return Boolean

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      return true or false

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If return false, zTree will not change selected state, and will not trigger the 'onClick' callback.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of setting & function

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. disabled to click the node

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      function zTreeBeforeClick(treeId, treeNode, clickFlag) {
                                                                                                                                                                                                                                                                                                                      +    return (treeNode.id !== 1);
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +var setting = {
                                                                                                                                                                                                                                                                                                                      +	callback: {
                                                                                                                                                                                                                                                                                                                      +		beforeClick: zTreeBeforeClick
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/setting.callback.beforeCollapse.html b/alive-admin/target/classes/static/ztree/api/en/setting.callback.beforeCollapse.html new file mode 100644 index 0000000..b2713e8 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/setting.callback.beforeCollapse.html @@ -0,0 +1,34 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(treeId, treeNode)setting.callback.beforeCollapse

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.core js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Used to capture the event before collapse node, zTree based on return value to determine whether to collapse node.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: null

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function Parameter Descriptions

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      zTree unique identifier: treeId, easy for users to control.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      JSON data object of the node which will be collapsed

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Return Boolean

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      return true or false

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If return false, zTree will not collapse node, and will not trigger the 'onCollapse' callback.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of setting & function

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. disabled to collapse node which is expanded

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      function zTreeBeforeCollapse(treeId, treeNode) {
                                                                                                                                                                                                                                                                                                                      +    return false;
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +var setting = {
                                                                                                                                                                                                                                                                                                                      +	callback: {
                                                                                                                                                                                                                                                                                                                      +		beforeCollapse: zTreeBeforeCollapse
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/setting.callback.beforeDblClick.html b/alive-admin/target/classes/static/ztree/api/en/setting.callback.beforeDblClick.html new file mode 100644 index 0000000..6f1c743 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/setting.callback.beforeDblClick.html @@ -0,0 +1,36 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(treeId, treeNode)setting.callback.beforeDblClick

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.core js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Used to capture the dblclick event before the 'onDblClick' callback, zTree based on return value to determine whether to trigger the 'onDblClick' callback.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: null

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function Parameter Descriptions

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      zTree unique identifier: treeId, easy for users to control.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      JSON data object of the node which is double clicked

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If the DOM which dblclicked isn't a node, it will return null.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Return Boolean

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      return true or false

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If return false, ztree will not trigger the 'onDblClick' callback, no effect on other operations.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      This callback function does not affect the dblclick the parent node to auto expand, please refer to setting.view.dblClickExpand properties.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of setting & function

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. disable to trigger the 'onDblClick' callback

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      function zTreeBeforeDblClick(treeId, treeNode) {
                                                                                                                                                                                                                                                                                                                      +    return false;
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +var setting = {
                                                                                                                                                                                                                                                                                                                      +	callback: {
                                                                                                                                                                                                                                                                                                                      +		beforeDblClick: zTreeBeforeDblClick
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/setting.callback.beforeDrag.html b/alive-admin/target/classes/static/ztree/api/en/setting.callback.beforeDrag.html new file mode 100644 index 0000000..5175244 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/setting.callback.beforeDrag.html @@ -0,0 +1,39 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(treeId, treeNodes)setting.callback.beforeDrag

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.exedit js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Used to capture the event before drag node, zTree based on return value to determine whether to start to drag node.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: null

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function Parameter Descriptions

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      zTree unique identifier: treeId, the tree is what the treeNodes are belong to, easy for users to control.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodesArray(JSON)

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      A collection of the nodes which will be dragged

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      v3.x allows drag and drop multiple sibling nodes, so this parameter is modified to Array(JSON).

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If the selected nodes aren't the sibling nodes, you can only drag one node which mouse over.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Return Boolean

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      return true or false

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If return false, zTree will stop drag, and will not trigger the 'onDrag / beforeDrop / onDrop' callback.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of setting & function

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. disable to drag all node

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      function zTreeBeforeDrag(treeId, treeNodes) {
                                                                                                                                                                                                                                                                                                                      +    return false;
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +var setting = {
                                                                                                                                                                                                                                                                                                                      +	edit: {
                                                                                                                                                                                                                                                                                                                      +		enable: true
                                                                                                                                                                                                                                                                                                                      +	},
                                                                                                                                                                                                                                                                                                                      +	callback: {
                                                                                                                                                                                                                                                                                                                      +		beforeDrag: zTreeBeforeDrag
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/setting.callback.beforeDragOpen.html b/alive-admin/target/classes/static/ztree/api/en/setting.callback.beforeDragOpen.html new file mode 100644 index 0000000..ed1ae97 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/setting.callback.beforeDragOpen.html @@ -0,0 +1,37 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(treeId, treeNode)setting.callback.beforeDragOpen

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.exedit js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Used to capture the event when drag node to collapsed parent node, zTree based on return value to determine whether to auto expand parent node.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: null

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function Parameter Descriptions

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      zTree unique identifier: treeId, the tree is what the treeNode(parent node) is belong to, easy for users to control.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      JSON data object of the parent node which will be auto expanded

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Return Boolean

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      return true or false

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If return false, zTree will not auto expand parent node.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of setting & function

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. disable to auto expand parent node.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      function zTreeBeforeDragOpen(treeId, treeNode) {
                                                                                                                                                                                                                                                                                                                      +    return false;
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +var setting = {
                                                                                                                                                                                                                                                                                                                      +	edit: {
                                                                                                                                                                                                                                                                                                                      +		enable: true
                                                                                                                                                                                                                                                                                                                      +	},
                                                                                                                                                                                                                                                                                                                      +	callback: {
                                                                                                                                                                                                                                                                                                                      +		beforeDragOpen: zTreeBeforeDragOpen
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/setting.callback.beforeDrop.html b/alive-admin/target/classes/static/ztree/api/en/setting.callback.beforeDrop.html new file mode 100644 index 0000000..7014321 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/setting.callback.beforeDrop.html @@ -0,0 +1,50 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(treeId, treeNodes, targetNode, moveType, isCopy)setting.callback.beforeDrop

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.exedit js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Used to capture the event before drag-drop node, zTree based on return value to determine whether to allow drag-drop node.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: null

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      When drop the nodes, if the dragged nodes is not in a valid location, this callback will not triggered, and will restore the original position.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function Parameter Descriptions

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      zTree unique identifier: treeId, the tree is what the targetNode is belong to, easy for users to control.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodesArray(JSON)

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      A collection of the nodes which has been dragged

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      The treeNodes are the data of the nodes which has been dragged, when copy nodes or move nodes.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      targetNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      JSON data object of the target node which treeNodes are drag-dropped.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If the treeNodes will be root node, the targetNode = null

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      moveTypeString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      the relative position of move to the target node

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      "inner": will be child of targetNode

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      "prev": will be sibling node, and be in front of targetNode

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      "next": will be sibling node, and be behind targetNode

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      isCopyBoolean

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      the flag used to judge copy node or move node

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      true: copy node; false: move node

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Return Boolean

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      return true or false

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If return false, zTree will restore the dragged nodes, and will not trigger the 'onDrop' callback.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of setting & function

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. disable to drag nodes to root

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      function zTreeBeforeDrop(treeId, treeNodes, targetNode, moveType) {
                                                                                                                                                                                                                                                                                                                      +    return !(targetNode == null || (moveType != "inner" && !targetNode.parentTId));
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +var setting = {
                                                                                                                                                                                                                                                                                                                      +	edit: {
                                                                                                                                                                                                                                                                                                                      +		enable: true
                                                                                                                                                                                                                                                                                                                      +	},
                                                                                                                                                                                                                                                                                                                      +	callback: {
                                                                                                                                                                                                                                                                                                                      +		beforeDrop: zTreeBeforeDrop
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/setting.callback.beforeEditName.html b/alive-admin/target/classes/static/ztree/api/en/setting.callback.beforeEditName.html new file mode 100644 index 0000000..8772a3e --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/setting.callback.beforeEditName.html @@ -0,0 +1,38 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(treeId, treeNode)setting.callback.beforeEditName

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.exedit js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Used to capture the event before click edit button, zTree based on return value to determine whether to allow to edit the name.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      This callback is used to capture the event which edit button is clicked, then trigger the custom editing operation.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: null

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function Parameter Descriptions

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      zTree unique identifier: treeId, easy for users to control.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      JSON data object of the node which will be edited name.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Return Boolean

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      return true or false

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If return false, the node will not be able to edit the name.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of setting & function

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. disable to edit the parent node's name

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      function zTreeBeforeEditName(treeId, treeNode) {
                                                                                                                                                                                                                                                                                                                      +	return !treeNode.isParent;
                                                                                                                                                                                                                                                                                                                      +}
                                                                                                                                                                                                                                                                                                                      +var setting = {
                                                                                                                                                                                                                                                                                                                      +	edit: {
                                                                                                                                                                                                                                                                                                                      +		enable: true
                                                                                                                                                                                                                                                                                                                      +	},
                                                                                                                                                                                                                                                                                                                      +	callback: {
                                                                                                                                                                                                                                                                                                                      +		beforeEditName: zTreeBeforeEditName
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/setting.callback.beforeExpand.html b/alive-admin/target/classes/static/ztree/api/en/setting.callback.beforeExpand.html new file mode 100644 index 0000000..73cf55a --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/setting.callback.beforeExpand.html @@ -0,0 +1,34 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(treeId, treeNode)setting.callback.beforeExpand

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.core js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Used to capture the event before expand node, zTree based on return value to determine whether to expand node.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: null

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function Parameter Descriptions

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      zTree unique identifier: treeId, easy for users to control.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      JSON data object of the node which will be expanded

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Return Boolean

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      return true or false

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If return false, zTree will not expand node, and will not trigger the 'onExpand' callback.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of setting & function

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. disabled to expand node which is collapsed

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      function zTreeBeforeExpand(treeId, treeNode) {
                                                                                                                                                                                                                                                                                                                      +    return false;
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +var setting = {
                                                                                                                                                                                                                                                                                                                      +	callback: {
                                                                                                                                                                                                                                                                                                                      +		beforeExpand: zTreeBeforeExpand
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/setting.callback.beforeMouseDown.html b/alive-admin/target/classes/static/ztree/api/en/setting.callback.beforeMouseDown.html new file mode 100644 index 0000000..4af0818 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/setting.callback.beforeMouseDown.html @@ -0,0 +1,35 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(treeId, treeNode)setting.callback.beforeMouseDown

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.core js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Used to capture the mousedown event before the 'onMouseDown' callback, zTree based on return value to determine whether to trigger the 'onMouseDown' callback.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: null

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function Parameter Descriptions

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      zTree unique identifier: treeId, easy for users to control.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      JSON data object of the node which mouse over

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If the DOM which mouse over isn't a node, it will return null.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Return Boolean

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      return true or false

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If return false, zTree will not trigger the 'onMouseDown' callback, no effect on other operations.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of setting & function

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. disable to trigger the 'onMouseDown' callback

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      function zTreeBeforeMouseDown(treeId, treeNode) {
                                                                                                                                                                                                                                                                                                                      +    return false;
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +var setting = {
                                                                                                                                                                                                                                                                                                                      +	callback: {
                                                                                                                                                                                                                                                                                                                      +		beforeMouseDown: zTreeBeforeMouseDown
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/setting.callback.beforeMouseUp.html b/alive-admin/target/classes/static/ztree/api/en/setting.callback.beforeMouseUp.html new file mode 100644 index 0000000..0c008fc --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/setting.callback.beforeMouseUp.html @@ -0,0 +1,35 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(treeId, treeNode)setting.callback.beforeMouseUp

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.core js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Used to capture the mouseup event before the 'onMouseUp' callback, zTree based on return value to determine whether to trigger the 'onMouseUp' callback.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: null

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function Parameter Descriptions

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      zTree unique identifier: treeId, easy for users to control.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      JSON data object of the node which mouse over

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If the DOM which mouse over isn't a node, it will return null.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Return Boolean

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      return true or false

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If return false, zTree will not trigger the 'onMouseUp' callback, no effect on other operations.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of setting & function

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. disable to trigger the 'onMouseUp' callback

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      function zTreeBeforeMouseUp(treeId, treeNode) {
                                                                                                                                                                                                                                                                                                                      +    return false;
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +var setting = {
                                                                                                                                                                                                                                                                                                                      +	callback: {
                                                                                                                                                                                                                                                                                                                      +		beforeMouseUp: zTreeBeforeMouseUp
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/setting.callback.beforeRemove.html b/alive-admin/target/classes/static/ztree/api/en/setting.callback.beforeRemove.html new file mode 100644 index 0000000..38e14c1 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/setting.callback.beforeRemove.html @@ -0,0 +1,37 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(treeId, treeNode)setting.callback.beforeRemove

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.exedit js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Used to capture the event before remove node, zTree based on return value to determine whether to allow to remove node.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: null

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function Parameter Descriptions

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      zTree unique identifier: treeId, easy for users to control.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      JSON data object of the node which will be removed.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Return Boolean

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      return true or false

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If return false, zTree will not remove node, and will not trigger the 'onRemove' callback.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of setting & function

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. disable to remove node

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      function zTreeBeforeRemove(treeId, treeNode) {
                                                                                                                                                                                                                                                                                                                      +	return false;
                                                                                                                                                                                                                                                                                                                      +}
                                                                                                                                                                                                                                                                                                                      +var setting = {
                                                                                                                                                                                                                                                                                                                      +	edit: {
                                                                                                                                                                                                                                                                                                                      +		enable: true
                                                                                                                                                                                                                                                                                                                      +	},
                                                                                                                                                                                                                                                                                                                      +	callback: {
                                                                                                                                                                                                                                                                                                                      +		beforeRemove: zTreeBeforeRemove
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/setting.callback.beforeRename.html b/alive-admin/target/classes/static/ztree/api/en/setting.callback.beforeRename.html new file mode 100644 index 0000000..0a51283 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/setting.callback.beforeRename.html @@ -0,0 +1,41 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(treeId, treeNode, newName)setting.callback.beforeRename

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.exedit js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Used to capture the event before rename(when input DOM blur or press Enter Key), zTree based on return value to determine whether to allow to rename node.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      When node is editing name, press the ESC key to restore the original name and stop edit name.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: null

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function Parameter Descriptions

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      zTree unique identifier: treeId, easy for users to control.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      JSON data object of the node which will be rename.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      newNameString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      the new name

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Return Boolean

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      return true or false

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If return false, the treeNode will keep the editing name, don't trigger the 'onRename' callback, and will ignore other enents, until the callback return true.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If returns false, zTree will not set the input box to get focus to avoid the warning message which led to repeated triggering ‘beforeRename’ callback. Please use editName() method to set the input box to get focus when user close the warning message.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of setting & function

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. the length of the new name can't less than 5

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      function zTreeBeforeRename(treeId, treeNode, newName) {
                                                                                                                                                                                                                                                                                                                      +	return newName.length > 5;
                                                                                                                                                                                                                                                                                                                      +}
                                                                                                                                                                                                                                                                                                                      +var setting = {
                                                                                                                                                                                                                                                                                                                      +	edit: {
                                                                                                                                                                                                                                                                                                                      +		enable: true
                                                                                                                                                                                                                                                                                                                      +	},
                                                                                                                                                                                                                                                                                                                      +	callback: {
                                                                                                                                                                                                                                                                                                                      +		beforeRename: zTreeBeforeRename
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/setting.callback.beforeRightClick.html b/alive-admin/target/classes/static/ztree/api/en/setting.callback.beforeRightClick.html new file mode 100644 index 0000000..15c38cd --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/setting.callback.beforeRightClick.html @@ -0,0 +1,35 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(treeId, treeNode)setting.callback.beforeRightClick

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.core js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Used to capture the right click event before the 'onRightClick' callback, zTree based on return value to determine whether to trigger the 'onRightClick' callback.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: null

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function Parameter Descriptions

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      zTree unique identifier: treeId, easy for users to control.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      JSON data object of the node which is mouse right clicked

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If the DOM which mouse right clicked isn't a node, it will return null.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      ReturnBoolean

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      return true or false

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If return false, ztree will not trigger the 'onRightClick' callback, no effect on other operations.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of setting & function

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. disable to trigger the 'onRightClick' callback

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      function zTreeBeforeRightClick(treeId, treeNode) {
                                                                                                                                                                                                                                                                                                                      +    return false;
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +var setting = {
                                                                                                                                                                                                                                                                                                                      +	callback: {
                                                                                                                                                                                                                                                                                                                      +		beforeRightClick: zTreeBeforeRightClick
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/setting.callback.onAsyncError.html b/alive-admin/target/classes/static/ztree/api/en/setting.callback.onAsyncError.html new file mode 100644 index 0000000..785c8d8 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/setting.callback.onAsyncError.html @@ -0,0 +1,42 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      setting.callback.onAsyncError

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(event, treeId, treeNode, XMLHttpRequest, textStatus, errorThrown) 

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.core js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Used to capture the error event when execute ajax.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If you set 'setting.callback.beforeAsync',and return false, zTree will not execute ajax, and will not trigger the 'onAsyncSuccess / onAsyncError' callback.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: null

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function Parameter Descriptions

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      eventjs event Object

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      event Object

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      zTree unique identifier: treeId, easy for users to control.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      JSON data object of the parent node

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      When load root nodes, treeNode = null

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      XMLHttpRequestString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      XMLHttpRequest Object, please refer to JQuery API documentation.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      textStatusString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      a string categorizing the status of the request("success", "error"...), please refer to JQuery API documentation.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      errorThrownString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      eWhen an HTTP error occurs, errorThrown receives the textual portion of the HTTP status, please refer to JQuery API documentation.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of setting & function

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. When execute ajax make error, alert message.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      function zTreeOnAsyncError(event, treeId, treeNode, XMLHttpRequest, textStatus, errorThrown) {
                                                                                                                                                                                                                                                                                                                      +    alert(XMLHttpRequest);
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +var setting = {
                                                                                                                                                                                                                                                                                                                      +	callback: {
                                                                                                                                                                                                                                                                                                                      +		onAsyncError: zTreeOnAsyncError
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/setting.callback.onAsyncSuccess.html b/alive-admin/target/classes/static/ztree/api/en/setting.callback.onAsyncSuccess.html new file mode 100644 index 0000000..2722691 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/setting.callback.onAsyncSuccess.html @@ -0,0 +1,38 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(event, treeId, treeNode, msg)setting.callback.onAsyncSuccess

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.core js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Used to capture the complete success event when execute ajax.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If you set 'setting.callback.beforeAsync',and return false, zTree will not execute ajax, and will not trigger the 'onAsyncSuccess / onAsyncError' callback.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: null

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function Parameter Descriptions

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      eventjs event Object

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      event Object

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      zTree unique identifier: treeId, easy for users to control.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      JSON data object of the parent node

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      When load root nodes, treeNode = null

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      msgString / Object

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      The actualnode data which got by ajax. User-friendly debugging.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      The actual data's type of msg is affected by 'setting.async.dataType', please refer to JQuery API documentation.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of setting & function

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. When execute ajax complete success, alert message.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      function zTreeOnAsyncSuccess(event, treeId, treeNode, msg) {
                                                                                                                                                                                                                                                                                                                      +    alert(msg);
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +var setting = {
                                                                                                                                                                                                                                                                                                                      +	callback: {
                                                                                                                                                                                                                                                                                                                      +		onAsyncSuccess: zTreeOnAsyncSuccess
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/setting.callback.onCheck.html b/alive-admin/target/classes/static/ztree/api/en/setting.callback.onCheck.html new file mode 100644 index 0000000..ed33f8d --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/setting.callback.onCheck.html @@ -0,0 +1,34 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(event, treeId, treeNode)setting.callback.onCheck

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.excheck js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Used to capture the check or uncheck event when check or uncheck the checkbox and radio.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If you set 'setting.callback.beforeCheck',and return false, zTree will not change check state, and will not trigger the 'onCheck' callback.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: null

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function Parameter Descriptions

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      eventjs event Object

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      event Object

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      zTree unique identifier: treeId, easy for users to control.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      JSON data object of the node which is checked or unchecked

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of setting & function

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. When check or uncheck the checkbox and radio, alert info about 'tId' and 'name' and 'checked'.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      function zTreeOnCheck(event, treeId, treeNode) {
                                                                                                                                                                                                                                                                                                                      +    alert(treeNode.tId + ", " + treeNode.name + "," + treeNode.checked);
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +var setting = {
                                                                                                                                                                                                                                                                                                                      +	callback: {
                                                                                                                                                                                                                                                                                                                      +		onCheck: zTreeOnCheck
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/setting.callback.onClick.html b/alive-admin/target/classes/static/ztree/api/en/setting.callback.onClick.html new file mode 100644 index 0000000..a6ba29a --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/setting.callback.onClick.html @@ -0,0 +1,49 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(event, treeId, treeNode, clickFlag)setting.callback.onClick

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.core js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Used to capture the click event when click node.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If you set 'setting.callback.beforeClick',and return false, zTree will not change selected state, and will not trigger the 'onClick' callback.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: null

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function Parameter Descriptions

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      eventjs event Object

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      event Object

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      zTree unique identifier: treeId, easy for users to control.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      JSON data object of the node which is clicked

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      clickFlagNumber

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Node is selected or deselected state, please see table below for details

                                                                                                                                                                                                                                                                                                                      + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                      clickFlagselectedMultiautoCancelSelected
                                                                                                                                                                                                                                                                                                                      &&
                                                                                                                                                                                                                                                                                                                      event.ctrlKey
                                                                                                                                                                                                                                                                                                                      isSelectedoperate for selected
                                                                                                                                                                                                                                                                                                                      1truefalsefalsenode is selected (single)
                                                                                                                                                                                                                                                                                                                      1truefalsetruenode is selected (single)
                                                                                                                                                                                                                                                                                                                      2truetruefalsenode is selected (multi)
                                                                                                                                                                                                                                                                                                                      0truetruetruenode is deselected
                                                                                                                                                                                                                                                                                                                      1falsefalsefalsenode is selected (single)
                                                                                                                                                                                                                                                                                                                      1falsefalsetruenode is selected (single)
                                                                                                                                                                                                                                                                                                                      1falsetruefalsenode is selected (single)
                                                                                                                                                                                                                                                                                                                      0falsetruetruenode is deselected
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of setting & function

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. When click node, alert info about 'tId' and 'name'.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      function zTreeOnClick(event, treeId, treeNode) {
                                                                                                                                                                                                                                                                                                                      +    alert(treeNode.tId + ", " + treeNode.name);
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +var setting = {
                                                                                                                                                                                                                                                                                                                      +	callback: {
                                                                                                                                                                                                                                                                                                                      +		onClick: zTreeOnClick
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/setting.callback.onCollapse.html b/alive-admin/target/classes/static/ztree/api/en/setting.callback.onCollapse.html new file mode 100644 index 0000000..d605dc8 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/setting.callback.onCollapse.html @@ -0,0 +1,34 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(event, treeId, treeNode)setting.callback.onCollapse

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.core js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Used to capture the event when collapse node.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If you set 'setting.callback.beforeCollapse',and return false, zTree will not collapse node, and will not trigger the 'onCollapse' callback.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: null

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function Parameter Descriptions

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      eventjs event Object

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      event Object

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      zTree unique identifier: treeId, easy for users to control.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      JSON data object of the node which will be collapsed

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of setting & function

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. When collapse node, alert info about 'tId' and 'name'.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      function zTreeOnCollapse(event, treeId, treeNode) {
                                                                                                                                                                                                                                                                                                                      +    alert(treeNode.tId + ", " + treeNode.name);
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +var setting = {
                                                                                                                                                                                                                                                                                                                      +	callback: {
                                                                                                                                                                                                                                                                                                                      +		onCollapse: zTreeOnCollapse
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/setting.callback.onDblClick.html b/alive-admin/target/classes/static/ztree/api/en/setting.callback.onDblClick.html new file mode 100644 index 0000000..fbd47e8 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/setting.callback.onDblClick.html @@ -0,0 +1,35 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(event, treeId, treeNode)setting.callback.onDblClick

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.core js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Used to capture the dblclick event when double click node.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If you set 'setting.callback.beforeDblClick',and return false, zTree will not trigger the 'onDblClick' callback.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: null

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function Parameter Descriptions

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      eventjs event Object

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      event Object

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      zTree unique identifier: treeId, easy for users to control.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      JSON data object of the node which is double clicked

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If the DOM which dblclicked isn't a node, it will return null.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of setting & function

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. When double click node, alert info about 'tId' and 'name'.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      function zTreeOnDblClick(event, treeId, treeNode) {
                                                                                                                                                                                                                                                                                                                      +    alert(treeNode ? treeNode.tId + ", " + treeNode.name : "isRoot");
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +var setting = {
                                                                                                                                                                                                                                                                                                                      +	callback: {
                                                                                                                                                                                                                                                                                                                      +		onDblClick: zTreeOnDblClick
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/setting.callback.onDrag.html b/alive-admin/target/classes/static/ztree/api/en/setting.callback.onDrag.html new file mode 100644 index 0000000..30c738d --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/setting.callback.onDrag.html @@ -0,0 +1,34 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(event, treeId, treeNodes)setting.callback.onDrag

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.exedit js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Used to capture the drag event when drag node.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If you set 'setting.callback.beforeDrag',and return false, zTree will stop drag, and will not trigger the 'onDrag' callback.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: null

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function Parameter Descriptions

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      eventjs event Object

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      event Object

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      zTree unique identifier: treeId, the tree is what the treeNodes are belong to, easy for users to control.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodesArray(JSON)

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      A collection of the nodes which will be dragged

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of setting & function

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. When drag nodes, alert the number of dragged nodes.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      function zTreeOnDrag(event, treeId, treeNodes) {
                                                                                                                                                                                                                                                                                                                      +    alert(treeNodes.length);
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +var setting = {
                                                                                                                                                                                                                                                                                                                      +	callback: {
                                                                                                                                                                                                                                                                                                                      +		onDrag: zTreeOnDrag
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/setting.callback.onDrop.html b/alive-admin/target/classes/static/ztree/api/en/setting.callback.onDrop.html new file mode 100644 index 0000000..6362463 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/setting.callback.onDrop.html @@ -0,0 +1,48 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(event, treeId, treeNodes, targetNode, moveType, isCopy)setting.callback.onDrop

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.exedit js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Used to capture the drop event when drag-drop node.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If you set 'setting.callback.beforeDrop',and return false, zTree will restore the dragged nodes, and will not trigger the 'onDrop' callback.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: null

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function Parameter Descriptions

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      eventjs event Object

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      event Object

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      zTree unique identifier: treeId, the tree is what the targetNode is belong to, easy for users to control.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodesArray(JSON)

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      A collection of the nodes which has been dragged

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      The treeNodes are the data of the nodes which be dragged, when move nodes.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      The treeNodes are the clone data of the nodes which be dragged, when copy nodes.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      targetNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      JSON data object of the target node which treeNodes are drag-dropped.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If the treeNodes will be root node, the targetNode = null

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      moveTypeString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      the relative position of move to the target node

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      "inner": will be child of targetNode

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      "prev": will be sibling node, and be in front of targetNode

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      "next": will be sibling node, and be behind targetNode

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If moveType is null, means drag & drop is cancel.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      isCopyBoolean

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      the flag used to judge copy node or move node

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      true: copy node; false: move node

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of setting & function

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. When drag-drop nodes complete, alert the number of dragged nodes and info about targetNode.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      function zTreeOnDrop(event, treeId, treeNodes, targetNode, moveType) {
                                                                                                                                                                                                                                                                                                                      +    alert(treeNodes.length + "," + (targetNode ? (targetNode.tId + ", " + targetNode.name) : "isRoot" ));
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +var setting = {
                                                                                                                                                                                                                                                                                                                      +	callback: {
                                                                                                                                                                                                                                                                                                                      +		onDrop: zTreeOnDrop
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/setting.callback.onExpand.html b/alive-admin/target/classes/static/ztree/api/en/setting.callback.onExpand.html new file mode 100644 index 0000000..7b9d8d5 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/setting.callback.onExpand.html @@ -0,0 +1,34 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(event, treeId, treeNode)setting.callback.onExpand

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.core js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Used to capture the event when expand node.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If you set 'setting.callback.beforeExpand',and return false, zTree will not expand node, and will not trigger the 'onExpand' callback.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: null

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function Parameter Descriptions

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      eventjs event Object

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      event Object

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      zTree unique identifier: treeId, easy for users to control.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      JSON data object of the node which will be expanded

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of setting & function

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. When expand node, alert info about 'tId' and 'name'.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      function zTreeOnExpand(event, treeId, treeNode) {
                                                                                                                                                                                                                                                                                                                      +    alert(treeNode.tId + ", " + treeNode.name);
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +var setting = {
                                                                                                                                                                                                                                                                                                                      +	callback: {
                                                                                                                                                                                                                                                                                                                      +		onExpand: zTreeOnExpand
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/setting.callback.onMouseDown.html b/alive-admin/target/classes/static/ztree/api/en/setting.callback.onMouseDown.html new file mode 100644 index 0000000..bfd714c --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/setting.callback.onMouseDown.html @@ -0,0 +1,35 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(event, treeId, treeNode)setting.callback.onMouseDown

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.core js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Used to capture the event when mouse down.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If you set 'setting.callback.beforeMouseDown',and return false, zTree will not trigger the 'onMouseDown' callback.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: null

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function Parameter Descriptions

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      eventjs event Object

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      event Object

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      zTree unique identifier: treeId, easy for users to control.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      JSON data object of the node which mouse over

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If the DOM which mouse over isn't a node, it will return null.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of setting & function

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. When mouse down, alert info about 'tId' and 'name'.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      function zTreeOnMouseDown(event, treeId, treeNode) {
                                                                                                                                                                                                                                                                                                                      +    alert(treeNode ? treeNode.tId + ", " + treeNode.name : "isRoot");
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +var setting = {
                                                                                                                                                                                                                                                                                                                      +	callback: {
                                                                                                                                                                                                                                                                                                                      +		onMouseDown: zTreeOnMouseDown
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/setting.callback.onMouseUp.html b/alive-admin/target/classes/static/ztree/api/en/setting.callback.onMouseUp.html new file mode 100644 index 0000000..93edf31 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/setting.callback.onMouseUp.html @@ -0,0 +1,35 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(event, treeId, treeNode)setting.callback.onMouseUp

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.core js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Used to capture the event when mouse up.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If you set 'setting.callback.beforeMouseUp',and return false, zTree will not trigger the 'onMouseUp' callback.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: null

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function Parameter Descriptions

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      eventjs event Object

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      event Object

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      zTree unique identifier: treeId, easy for users to control.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      JSON data object of the node which mouse over

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If the DOM which mouse over isn't a node, it will return null.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of setting & function

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. When mouse up, alert info about 'tId' and 'name'.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      function zTreeOnMouseUp(event, treeId, treeNode) {
                                                                                                                                                                                                                                                                                                                      +    alert(treeNode ? treeNode.tId + ", " + treeNode.name : "isRoot");
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +var setting = {
                                                                                                                                                                                                                                                                                                                      +	callback: {
                                                                                                                                                                                                                                                                                                                      +		onMouseUp: zTreeOnMouseUp
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/setting.callback.onNodeCreated.html b/alive-admin/target/classes/static/ztree/api/en/setting.callback.onNodeCreated.html new file mode 100644 index 0000000..a98b572 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/setting.callback.onNodeCreated.html @@ -0,0 +1,35 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(event, treeId, treeNode)setting.callback.onNodeCreated

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.core js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Used to capture the event when node's DOM is created.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Because v3.x uses lazy loading technology, so the nodes which doesn't create DOM when initialized will not trigger this callback, until its parent node is expanded.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Large amount of data to load, please note: do not set onNodeCreated, can improve performance as when initialized.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: null

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function Parameter Descriptions

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      eventjs event Object

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      event Object

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      zTree unique identifier: treeId, easy for users to control.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      JSON data object of the node which DOM is created

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of setting & function

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. When node's DOM is created, alert info about 'tId' and 'name'.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      function zTreeOnNodeCreated(event, treeId, treeNode) {
                                                                                                                                                                                                                                                                                                                      +    alert(treeNode.tId + ", " + treeNode.name);
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +var setting = {
                                                                                                                                                                                                                                                                                                                      +	callback: {
                                                                                                                                                                                                                                                                                                                      +		onNodeCreated: zTreeOnNodeCreated
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/setting.callback.onRemove.html b/alive-admin/target/classes/static/ztree/api/en/setting.callback.onRemove.html new file mode 100644 index 0000000..ce29413 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/setting.callback.onRemove.html @@ -0,0 +1,34 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(event, treeId, treeNode)setting.callback.onRemove

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.exedit js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Used to capture the event when remove node.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If you set 'setting.callback.beforeRemove',and return false, zTree will not remove node, and will not trigger the 'onRemove' callback.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: null

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function Parameter Descriptions

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      eventjs event Object

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      event Object

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      zTree unique identifier: treeId, easy for users to control.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      JSON data object of the node which was removed.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of setting & function

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. When remove node, alert info about 'tId' and 'name'.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      function zTreeOnRemove(event, treeId, treeNode) {
                                                                                                                                                                                                                                                                                                                      +	alert(treeNode.tId + ", " + treeNode.name);
                                                                                                                                                                                                                                                                                                                      +}
                                                                                                                                                                                                                                                                                                                      +var setting = {
                                                                                                                                                                                                                                                                                                                      +	callback: {
                                                                                                                                                                                                                                                                                                                      +		onRemove: zTreeOnRemove
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/setting.callback.onRename.html b/alive-admin/target/classes/static/ztree/api/en/setting.callback.onRename.html new file mode 100644 index 0000000..f1659eb --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/setting.callback.onRename.html @@ -0,0 +1,35 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(event, treeId, treeNode)setting.callback.onRename

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.exedit js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Used to capture the event when remove node.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. If you set 'setting.callback.beforeRename',and return false, zTree will keep the editing name, and will not trigger the 'onRename' callback.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2. If you modity treeNode data, and use 'updateNode' function, zTree will not trigger the 'onRename' callback.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: null

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function Parameter Descriptions

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      eventjs event Object

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      event Object

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      zTree unique identifier: treeId, easy for users to control.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      JSON data object of the node which was rename.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of setting & function

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. When rename node, alert info about 'tId' and 'name'.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      function zTreeOnRename(event, treeId, treeNode) {
                                                                                                                                                                                                                                                                                                                      +	alert(treeNode.tId + ", " + treeNode.name);
                                                                                                                                                                                                                                                                                                                      +}
                                                                                                                                                                                                                                                                                                                      +var setting = {
                                                                                                                                                                                                                                                                                                                      +	callback: {
                                                                                                                                                                                                                                                                                                                      +		onRename: zTreeOnRename
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/setting.callback.onRightClick.html b/alive-admin/target/classes/static/ztree/api/en/setting.callback.onRightClick.html new file mode 100644 index 0000000..86b4b01 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/setting.callback.onRightClick.html @@ -0,0 +1,36 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(event, treeId, treeNode)setting.callback.onRightClick

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.core js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Used to capture the event when mouse right click node.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If you set 'setting.callback.beforeRightClick',and return false, zTree will not trigger the 'onRightClick' callback.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If you set 'setting.callback.onRightClick', zTree will shield the browser context menu when mouse right click on zTree.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: null

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function Parameter Descriptions

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      eventjs event Object

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      event Object

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      zTree unique identifier: treeId, easy for users to control.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      JSON data object of the node which is mouse right clicked

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If the DOM which mouse right clicked isn't a node, it will return null.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of setting & function

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. When mouse right click node, alert info about 'tId' and 'name'.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      function zTreeOnRightClick(event, treeId, treeNode) {
                                                                                                                                                                                                                                                                                                                      +    alert(treeNode ? treeNode.tId + ", " + treeNode.name : "isRoot");
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +var setting = {
                                                                                                                                                                                                                                                                                                                      +	callback: {
                                                                                                                                                                                                                                                                                                                      +		onRightClick: zTreeOnRightClick
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/setting.check.autoCheckTrigger.html b/alive-admin/target/classes/static/ztree/api/en/setting.check.autoCheckTrigger.html new file mode 100644 index 0000000..b8b04cc --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/setting.check.autoCheckTrigger.html @@ -0,0 +1,29 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Booleansetting.check.autoCheckTrigger

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.excheck js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      When node is automatically checked or unchecked, this parameter used to set to trigger 'beforeCheck / onCheck' callback. It is valid when [setting.check.enable = true & setting.check.chkStyle = "checkbox"]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. If you set 'setting.check.chkboxType' to { "Y": "", "N": "" }, will not automatically checked or unchecked.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2. If you turn on the trigger and there are many more nodes, will affect the performance, because the check or uncheck node can cause many nodes to be automatically checked or unchecked, it will trigger a lot of callbacks, according to the need to decide whether to use this feature.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: false

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Boolean Format

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      true means: trigger callback

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      false means: don't trigger callback

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of setting

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. When node is automatically checked or unchecked, zTree trigger 'beforeCheck / onCheck' callback.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	check: {
                                                                                                                                                                                                                                                                                                                      +		enable: true,
                                                                                                                                                                                                                                                                                                                      +		autoCheckTrigger: true
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/setting.check.chkStyle.html b/alive-admin/target/classes/static/ztree/api/en/setting.check.chkStyle.html new file mode 100644 index 0000000..d42e757 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/setting.check.chkStyle.html @@ -0,0 +1,48 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Stringsetting.check.chkStyle

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.excheck js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Use the checkbox or radio. It is valid when [setting.check.enable = true]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: "checkbox"

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      String Format

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      When chkStyle = "checkbox", zTree show checkbox, and 'setting.check.chkboxType' attribute is valid. +
                                                                                                                                                                                                                                                                                                                      When chkStyle = "radio", zTree show radio, and 'setting.check.radioType' attribute is valid.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Please note that letter case, do not change.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      checkbox States Descriptions

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      not checked; If node is parent, so its child nodes have been not checked. when mouse over:

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      not checked; (only parent node) some of its child nodes have been checked. when mouse over:

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      be checked; If node is parent, so its all child nodes have been checked. when mouse over:

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      be checked; (only parent node) some of its child nodes or all have been not checked. when mouse over:

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      radio States Descriptions

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      not checked; If node is parent, so its child have been not checked. when mouse over:

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      not checked; (only parent node) some of its child have been checked. when mouse over:

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      be checked; If node is parent, so its child have been not checked. when mouse over:

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      be checked; (only parent node) some of its child have been checked. when mouse over:

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of setting

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. use radio

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	check: {
                                                                                                                                                                                                                                                                                                                      +		enable: true,
                                                                                                                                                                                                                                                                                                                      +		chkStyle: "radio"
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/setting.check.chkboxType.html b/alive-admin/target/classes/static/ztree/api/en/setting.check.chkboxType.html new file mode 100644 index 0000000..5cecc9e --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/setting.check.chkboxType.html @@ -0,0 +1,31 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      JSONsetting.check.chkboxType

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.excheck js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      When one node is checked or unchecked, control its parent node and its child node auto checked or unchecked. It is valid when [setting.check.enable = true & setting.check.chkStyle = "checkbox"]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: { "Y": "ps", "N": "ps" }

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      JSON Format

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      "Y" attribute use to set auto check after checkbox was checked. +
                                                                                                                                                                                                                                                                                                                      "N" attribute use to set auto uncheck after checkbox was unchecked. +
                                                                                                                                                                                                                                                                                                                      If value has "p", so parent nodes will be checked or unchecked. +
                                                                                                                                                                                                                                                                                                                      If value has "s", so child nodes will be checked or unchecked.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Please note that letter case, do not change.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of setting

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. If check the node, so only auto check parent nodes; If uncheck the node, so only auto uncheck child nodes;

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	check: {
                                                                                                                                                                                                                                                                                                                      +		enable: true,
                                                                                                                                                                                                                                                                                                                      +		chkStyle: "checkbox",
                                                                                                                                                                                                                                                                                                                      +		chkboxType: { "Y": "p", "N": "s" }
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/setting.check.enable.html b/alive-admin/target/classes/static/ztree/api/en/setting.check.enable.html new file mode 100644 index 0000000..0236b5f --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/setting.check.enable.html @@ -0,0 +1,26 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Booleansetting.check.enable

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.excheck js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Set to use checkbox or radio in zTree

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: false

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Boolean Format

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      true means: use the checkbox or radio

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      false means: don't use the checkbox or radio

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of setting

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. use the checkbox

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	check: {
                                                                                                                                                                                                                                                                                                                      +		enable: true
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/setting.check.nocheckInherit.html b/alive-admin/target/classes/static/ztree/api/en/setting.check.nocheckInherit.html new file mode 100644 index 0000000..758b437 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/setting.check.nocheckInherit.html @@ -0,0 +1,28 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Booleansetting.check.nocheckInherit

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.excheck js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      When the parent node's 'nocheck' attribute is true, set the child nodes automatically inherit the 'nocheck' attribute. It is valid when [setting.check.enable = true]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. Only be used to initialize the nodes, easy batch operations. Please use the 'updateNode' method modify existing node.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: false

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Boolean Format

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      true means: When add new child nodes, if parent node's 'nocheck' attribute is true, the child nodes automatically inherit the 'nocheck' attribute.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      false means: When add new child nodes, the child nodes don't inherit the 'nocheck' attribute from parent node.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of setting

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. When add new child nodes, the child nodes automatically inherit the 'nocheck' attribute from parent node.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	check: {
                                                                                                                                                                                                                                                                                                                      +		enable: true,
                                                                                                                                                                                                                                                                                                                      +		nocheckInherit: true
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/setting.check.radioType.html b/alive-admin/target/classes/static/ztree/api/en/setting.check.radioType.html new file mode 100644 index 0000000..be867d7 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/setting.check.radioType.html @@ -0,0 +1,29 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Stringsetting.check.radioType

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.excheck js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      The group about radio. It is valid when [setting.check.enable = true & setting.check.chkStyle = "radio"]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: "level"

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      String Format

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      When radioType = "level", will be grouped with same level nodes which have the same parent node. +
                                                                                                                                                                                                                                                                                                                      When radioType = "all", will be grouped with all nodes.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Please note that letter case, do not change.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of setting

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. Set the group about radio is all nodes.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	check: {
                                                                                                                                                                                                                                                                                                                      +		enable: true,
                                                                                                                                                                                                                                                                                                                      +		chkStyle: "radio",
                                                                                                                                                                                                                                                                                                                      +		radioType: "all"
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/setting.data.keep.leaf.html b/alive-admin/target/classes/static/ztree/api/en/setting.data.keep.leaf.html new file mode 100644 index 0000000..71c573e --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/setting.data.keep.leaf.html @@ -0,0 +1,28 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Booleansetting.data.keep.leaf

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.core js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      The leaf node's lock, the leaf node will lock the 'isParent' attribute to false.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: false

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Boolean Format

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      true means: lock the leaf node, and the node which 'isParent' attribute is false can't add child nodes.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      false means: don't lock the leaf node, and the node which 'isParent' attribute is false can add child nodes.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of setting

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. lock the leaf node

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	data: {
                                                                                                                                                                                                                                                                                                                      +		keep: {
                                                                                                                                                                                                                                                                                                                      +			leaf: true
                                                                                                                                                                                                                                                                                                                      +		}
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/setting.data.keep.parent.html b/alive-admin/target/classes/static/ztree/api/en/setting.data.keep.parent.html new file mode 100644 index 0000000..5bab2f1 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/setting.data.keep.parent.html @@ -0,0 +1,28 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Booleansetting.data.keep.parent

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.core js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      The parent node's lock, the parent node will lock 'isParent' attribute to true.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: false

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Boolean Format

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      true means: lock the parent node, and if remove all of the parent node's child nodes, its 'isParent' attribute still keep to be true..

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      false means: don't lock the parent node, and if remove all of the parent node's child nodes, its 'isParent' attribute will change to be false..

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of setting

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. lock the parent node

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	data: {
                                                                                                                                                                                                                                                                                                                      +		keep: {
                                                                                                                                                                                                                                                                                                                      +			parent: true
                                                                                                                                                                                                                                                                                                                      +		}
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/setting.data.key.checked.html b/alive-admin/target/classes/static/ztree/api/en/setting.data.key.checked.html new file mode 100644 index 0000000..2678cf2 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/setting.data.key.checked.html @@ -0,0 +1,24 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Stringsetting.data.key.checked

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.excheck js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      The node data's attribute to save the checked state.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: "checked"

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Please don't set the other node attribute which zTree used. (e.g., checkedOld)

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of setting

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. set the 'isChecked' attribute to save the checked state.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	data: {
                                                                                                                                                                                                                                                                                                                      +		key: {
                                                                                                                                                                                                                                                                                                                      +			checked: "isChecked"
                                                                                                                                                                                                                                                                                                                      +		}
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/setting.data.key.children.html b/alive-admin/target/classes/static/ztree/api/en/setting.data.key.children.html new file mode 100644 index 0000000..321a1a7 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/setting.data.key.children.html @@ -0,0 +1,23 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Stringsetting.data.key.children

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.core js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      The node data's attribute to save the child nodes.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: "children"

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of setting

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. Set the 'nodes' attribute to save the child nodes.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	data: {
                                                                                                                                                                                                                                                                                                                      +		key: {
                                                                                                                                                                                                                                                                                                                      +			children: "nodes"
                                                                                                                                                                                                                                                                                                                      +		}
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/setting.data.key.name.html b/alive-admin/target/classes/static/ztree/api/en/setting.data.key.name.html new file mode 100644 index 0000000..0208c55 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/setting.data.key.name.html @@ -0,0 +1,23 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Stringsetting.data.key.name

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.core js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      The node data's attribute to save the node name.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: "name"

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of setting

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. Set the 'ename' attribute to save the node name.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	data: {
                                                                                                                                                                                                                                                                                                                      +		key: {
                                                                                                                                                                                                                                                                                                                      +			name: "ename"
                                                                                                                                                                                                                                                                                                                      +		}
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/setting.data.key.title.html b/alive-admin/target/classes/static/ztree/api/en/setting.data.key.title.html new file mode 100644 index 0000000..96540eb --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/setting.data.key.title.html @@ -0,0 +1,24 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Stringsetting.data.key.title

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.core js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      The node data's attribute to save the 'title' attribute of node DOM. It is valid when [setting.view.showTitle = true]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If set it to "", the title of node DOM will be same as 'setting.data.key.name' attribute.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: ""

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of setting

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. Set the 'fullName' attribute to save the title of node DOM.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	data: {
                                                                                                                                                                                                                                                                                                                      +		key: {
                                                                                                                                                                                                                                                                                                                      +			title: "fullName"
                                                                                                                                                                                                                                                                                                                      +		}
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/setting.data.key.url.html b/alive-admin/target/classes/static/ztree/api/en/setting.data.key.url.html new file mode 100644 index 0000000..e9a08ce --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/setting.data.key.url.html @@ -0,0 +1,24 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Stringsetting.data.key.url

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.core js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      The node data's attribute to save the node link's url.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Special: If the nodes's data can only use the 'url' attribute, and don't use the link to jump feature, you can modify this attribute to any nonexistent attribute.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: "url"

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of setting

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. Set the 'xUrl' attribute to save the node link's url.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	data: {
                                                                                                                                                                                                                                                                                                                      +		key: {
                                                                                                                                                                                                                                                                                                                      +			url: "xUrl"
                                                                                                                                                                                                                                                                                                                      +		}
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/setting.data.simpleData.enable.html b/alive-admin/target/classes/static/ztree/api/en/setting.data.simpleData.enable.html new file mode 100644 index 0000000..7ea21db --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/setting.data.simpleData.enable.html @@ -0,0 +1,39 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Booleansetting.data.simpleData.enable

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.core js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Set zTree's node to accept the simple data format, when zTree is initialized or when ajax get / or when use addNodes method.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Don't have to generate the complex nested data.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: false

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Boolean Format

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      true means: zTree's node accept the simple data format.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      false means: zTree's node only accept the nested data format.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If set it is true, you must set the other attributes in 'setting.data.simpleData'. (e.g., idKey, pIdKey, rootPId) And let the data satisfy the parent-child relationship.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of setting

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. use the simple data format

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	data: {
                                                                                                                                                                                                                                                                                                                      +		simpleData: {
                                                                                                                                                                                                                                                                                                                      +			enable: true,
                                                                                                                                                                                                                                                                                                                      +			idKey: "id",
                                                                                                                                                                                                                                                                                                                      +			pIdKey: "pId",
                                                                                                                                                                                                                                                                                                                      +			rootPId: 0,
                                                                                                                                                                                                                                                                                                                      +		}
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +var treeNodes = [
                                                                                                                                                                                                                                                                                                                      +    {"id":1, "pId":0, "name":"test1"},
                                                                                                                                                                                                                                                                                                                      +    {"id":11, "pId":1, "name":"test11"},
                                                                                                                                                                                                                                                                                                                      +    {"id":12, "pId":1, "name":"test12"},
                                                                                                                                                                                                                                                                                                                      +    {"id":111, "pId":11, "name":"test111"}
                                                                                                                                                                                                                                                                                                                      +];
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/setting.data.simpleData.idKey.html b/alive-admin/target/classes/static/ztree/api/en/setting.data.simpleData.idKey.html new file mode 100644 index 0000000..43df260 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/setting.data.simpleData.idKey.html @@ -0,0 +1,32 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Stringsetting.data.simpleData.idKey

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.core js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      The node data's attribute to save node data's unique identifier. It is valid when [setting.data.simpleData.enable = true]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: "id"

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of setting

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. use the simple data format

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	data: {
                                                                                                                                                                                                                                                                                                                      +		simpleData: {
                                                                                                                                                                                                                                                                                                                      +			enable: true,
                                                                                                                                                                                                                                                                                                                      +			idKey: "id",
                                                                                                                                                                                                                                                                                                                      +			pIdKey: "pId",
                                                                                                                                                                                                                                                                                                                      +			rootPId: 0,
                                                                                                                                                                                                                                                                                                                      +		}
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +var treeNodes = [
                                                                                                                                                                                                                                                                                                                      +    {"id":1, "pId":0, "name":"test1"},
                                                                                                                                                                                                                                                                                                                      +    {"id":11, "pId":1, "name":"test11"},
                                                                                                                                                                                                                                                                                                                      +    {"id":12, "pId":1, "name":"test12"},
                                                                                                                                                                                                                                                                                                                      +    {"id":111, "pId":11, "name":"test111"}
                                                                                                                                                                                                                                                                                                                      +];
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/setting.data.simpleData.pIdKey.html b/alive-admin/target/classes/static/ztree/api/en/setting.data.simpleData.pIdKey.html new file mode 100644 index 0000000..8378c6e --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/setting.data.simpleData.pIdKey.html @@ -0,0 +1,32 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Stringsetting.data.simpleData.pIdKey

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.core js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      The node data's attribute to save its parent node data's unique identifier. It is valid when [setting.data.simpleData.enable = true]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: "pId"

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of setting

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. use the simple data format

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	data: {
                                                                                                                                                                                                                                                                                                                      +		simpleData: {
                                                                                                                                                                                                                                                                                                                      +			enable: true,
                                                                                                                                                                                                                                                                                                                      +			idKey: "id",
                                                                                                                                                                                                                                                                                                                      +			pIdKey: "pId",
                                                                                                                                                                                                                                                                                                                      +			rootPId: 0
                                                                                                                                                                                                                                                                                                                      +		}
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +var treeNodes = [
                                                                                                                                                                                                                                                                                                                      +    {"id":1, "pId":0, "name":"test1"},
                                                                                                                                                                                                                                                                                                                      +    {"id":11, "pId":1, "name":"test11"},
                                                                                                                                                                                                                                                                                                                      +    {"id":12, "pId":1, "name":"test12"},
                                                                                                                                                                                                                                                                                                                      +    {"id":111, "pId":11, "name":"test111"}
                                                                                                                                                                                                                                                                                                                      +];
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/setting.data.simpleData.rootPId.html b/alive-admin/target/classes/static/ztree/api/en/setting.data.simpleData.rootPId.html new file mode 100644 index 0000000..61c9bbd --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/setting.data.simpleData.rootPId.html @@ -0,0 +1,32 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      String / Numbersetting.data.simpleData.rootPId

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.core js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Set the default value of root's 'pIdKey' specified attribute values​​. It is valid when [setting.data.simpleData.enable = true]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: null

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of setting

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. use the simple data format

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	data: {
                                                                                                                                                                                                                                                                                                                      +		simpleData: {
                                                                                                                                                                                                                                                                                                                      +			enable: true,
                                                                                                                                                                                                                                                                                                                      +			idKey: "id",
                                                                                                                                                                                                                                                                                                                      +			pIdKey: "pId",
                                                                                                                                                                                                                                                                                                                      +			rootPId: 0
                                                                                                                                                                                                                                                                                                                      +		}
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +var treeNodes = [
                                                                                                                                                                                                                                                                                                                      +    {"id":1, "pId":0, "name":"test1"},
                                                                                                                                                                                                                                                                                                                      +    {"id":11, "pId":1, "name":"test11"},
                                                                                                                                                                                                                                                                                                                      +    {"id":12, "pId":1, "name":"test12"},
                                                                                                                                                                                                                                                                                                                      +    {"id":111, "pId":11, "name":"test111"}
                                                                                                                                                                                                                                                                                                                      +];
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/setting.edit.drag.autoExpandTrigger.html b/alive-admin/target/classes/static/ztree/api/en/setting.edit.drag.autoExpandTrigger.html new file mode 100644 index 0000000..804ee66 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/setting.edit.drag.autoExpandTrigger.html @@ -0,0 +1,29 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Booleansetting.edit.drag.autoExpandTrigger

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.exedit js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      When drag node cause the parent node is automatically expanded, set whether to allow to trigger the 'onExpand' callback. It is valid when [setting.edit.enable = true]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: false

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Boolean Format

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      true means: trigger the 'onExpand' callback.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      false means: don't trigger the 'onExpand' callback.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of setting

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. Set to allow to trigger the 'onExpand' callback

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	edit: {
                                                                                                                                                                                                                                                                                                                      +		enable: true,
                                                                                                                                                                                                                                                                                                                      +		drag: {
                                                                                                                                                                                                                                                                                                                      +			autoExpandTrigger: true
                                                                                                                                                                                                                                                                                                                      +		}
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/setting.edit.drag.autoOpenTime.html b/alive-admin/target/classes/static/ztree/api/en/setting.edit.drag.autoOpenTime.html new file mode 100644 index 0000000..74982af --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/setting.edit.drag.autoOpenTime.html @@ -0,0 +1,25 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Numbersetting.edit.drag.autoOpenTime

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.exedit js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Drag to the parent node, the parent node auto expand time interval. (Unit: ms) It is valid when [setting.edit.enable = true]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: 500

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Please adjust the value according to needs.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of setting

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. When drag node to other parent node, expand it at once.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	edit: {
                                                                                                                                                                                                                                                                                                                      +		enable: true,
                                                                                                                                                                                                                                                                                                                      +		drag: {
                                                                                                                                                                                                                                                                                                                      +			autoOpenTime: 0
                                                                                                                                                                                                                                                                                                                      +		}
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/setting.edit.drag.borderMax.html b/alive-admin/target/classes/static/ztree/api/en/setting.edit.drag.borderMax.html new file mode 100644 index 0000000..edbb752 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/setting.edit.drag.borderMax.html @@ -0,0 +1,25 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Numbersetting.edit.drag.borderMax

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.exedit js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      When drag a node to root, the zTree's inner border width. (Unit: px) It is valid when [setting.edit.enable = true]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: 10

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Please adjust the value according to needs.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of setting

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. adjust the inner border width is 20px

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	edit: {
                                                                                                                                                                                                                                                                                                                      +		enable: true,
                                                                                                                                                                                                                                                                                                                      +		drag: {
                                                                                                                                                                                                                                                                                                                      +			borderMax: 20
                                                                                                                                                                                                                                                                                                                      +		}
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/setting.edit.drag.borderMin.html b/alive-admin/target/classes/static/ztree/api/en/setting.edit.drag.borderMin.html new file mode 100644 index 0000000..e845853 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/setting.edit.drag.borderMin.html @@ -0,0 +1,25 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Numbersetting.edit.drag.borderMin

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.exedit js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      When drag a node to root, the zTree's outer border width. (Unit: px) It is valid when [setting.edit.enable = true]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: -5

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Please adjust the value according to needs.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of setting

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. adjust the outer border width is 10px

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	edit: {
                                                                                                                                                                                                                                                                                                                      +		enable: true,
                                                                                                                                                                                                                                                                                                                      +		drag: {
                                                                                                                                                                                                                                                                                                                      +			borderMin: -10
                                                                                                                                                                                                                                                                                                                      +		}
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/setting.edit.drag.inner.html b/alive-admin/target/classes/static/ztree/api/en/setting.edit.drag.inner.html new file mode 100644 index 0000000..1065df3 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/setting.edit.drag.inner.html @@ -0,0 +1,60 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Boolean / Function(treeId, treeNodes, targetNode)setting.edit.drag.inner

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.exedit js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      When drag one node to the target node, set whether to allow the node to be the target node's child. It is valid when [setting.edit.enable = true]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If the target node is root, so zTree will only trigger 'inner' and not trigger 'prev / next'.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      This function mainly for the appropriate limit drag and drop (auxiliary arrow), it requires a combination of 'prev, next' together, to achieve full functionality.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: true

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Boolean Format

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      true means: allow the node to be the target node's child.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      false means: don't allow the node to be the target node's child.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function Parameter Descriptions

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      zTree unique identifier: treeId, easy for users to control.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodesArray(JSON)

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      A collection of the nodes which has been dragged

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      targetNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      JSON data object of the target node which treeNodes are draged over.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If the treeNodes will be root node, the targetNode = null

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Return Boolean

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      return true or false

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of setting & function

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. disable to drag the node to the target node's inner.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	edit: {
                                                                                                                                                                                                                                                                                                                      +		enable: true,
                                                                                                                                                                                                                                                                                                                      +		drag: {
                                                                                                                                                                                                                                                                                                                      +			prev: true,
                                                                                                                                                                                                                                                                                                                      +			next: true,
                                                                                                                                                                                                                                                                                                                      +			inner: false
                                                                                                                                                                                                                                                                                                                      +		}
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2. disable to drag the node to be root node's child.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      function canInner(treeId, nodes, targetNode) {
                                                                                                                                                                                                                                                                                                                      +	return !(targetNode && targetNode.level === 0);
                                                                                                                                                                                                                                                                                                                      +}
                                                                                                                                                                                                                                                                                                                      +var setting = {
                                                                                                                                                                                                                                                                                                                      +	edit: {
                                                                                                                                                                                                                                                                                                                      +		enable: true,
                                                                                                                                                                                                                                                                                                                      +		drag: {
                                                                                                                                                                                                                                                                                                                      +			prev: true,
                                                                                                                                                                                                                                                                                                                      +			next: true,
                                                                                                                                                                                                                                                                                                                      +			inner: canInner
                                                                                                                                                                                                                                                                                                                      +		}
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/setting.edit.drag.isCopy.html b/alive-admin/target/classes/static/ztree/api/en/setting.edit.drag.isCopy.html new file mode 100644 index 0000000..df39a8a --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/setting.edit.drag.isCopy.html @@ -0,0 +1,32 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Booleansetting.edit.drag.isCopy

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.exedit js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      When drag-drop node, set whether to allow to copy node. It is valid when [setting.edit.enable = true]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: true

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Rules Description

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. If isCopy = true and isMove = true, when drag-drop node, press Ctrl-Key can copy node, don't press Ctrl-Key can move node.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2. If isCopy = true and isMove = false, when drag-drop node, will copy node.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      3. If isCopy = false and isMove = true, when drag-drop node, will move node.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      4. If isCopy = false and isMove = false, so disable to drag-drop node.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of setting

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. all of the drag-drop operation will copy node.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	edit: {
                                                                                                                                                                                                                                                                                                                      +		enable: true,
                                                                                                                                                                                                                                                                                                                      +		drag: {
                                                                                                                                                                                                                                                                                                                      +			isCopy: true,
                                                                                                                                                                                                                                                                                                                      +			isMove: false
                                                                                                                                                                                                                                                                                                                      +		}
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/setting.edit.drag.isMove.html b/alive-admin/target/classes/static/ztree/api/en/setting.edit.drag.isMove.html new file mode 100644 index 0000000..78cd8d3 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/setting.edit.drag.isMove.html @@ -0,0 +1,32 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Booleansetting.edit.drag.isMove

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.exedit js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      When drag-drop node, set whether to allow to move node. It is valid when [setting.edit.enable = true]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: true

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Rules Description

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. If isCopy = true and isMove = true, when drag-drop node, press Ctrl-Key can copy node, don't press Ctrl-Key can move node.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2. If isCopy = true and isMove = false, when drag-drop node, will copy node.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      3. If isCopy = false and isMove = true, when drag-drop node, will move node.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      4. If isCopy = false and isMove = false, so disable to drag-drop node.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of setting

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. all of the drag-drop operation will move node.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	edit: {
                                                                                                                                                                                                                                                                                                                      +		enable: true,
                                                                                                                                                                                                                                                                                                                      +		drag: {
                                                                                                                                                                                                                                                                                                                      +			isCopy: false,
                                                                                                                                                                                                                                                                                                                      +			isMove: true
                                                                                                                                                                                                                                                                                                                      +		}
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/setting.edit.drag.maxShowNodeNum.html b/alive-admin/target/classes/static/ztree/api/en/setting.edit.drag.maxShowNodeNum.html new file mode 100644 index 0000000..dbc3ae4 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/setting.edit.drag.maxShowNodeNum.html @@ -0,0 +1,25 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Numbersetting.edit.drag.maxShowNodeNum

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.exedit js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      When dragging more than one sibling node, the floating layer shows the maximum number of nodes. zTree using '...' instead of redundant nodes. It is valid when [setting.edit.enable = true]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: 5

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Please adjust the value according to needs.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of setting

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. Set the maximum number is 10

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	edit: {
                                                                                                                                                                                                                                                                                                                      +		enable: true,
                                                                                                                                                                                                                                                                                                                      +		drag: {
                                                                                                                                                                                                                                                                                                                      +			maxShowNodeNum: 10
                                                                                                                                                                                                                                                                                                                      +		}
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/setting.edit.drag.minMoveSize.html b/alive-admin/target/classes/static/ztree/api/en/setting.edit.drag.minMoveSize.html new file mode 100644 index 0000000..8270a99 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/setting.edit.drag.minMoveSize.html @@ -0,0 +1,25 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Numbersetting.edit.drag.minMoveSize

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.exedit js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      The minimum offset which used to determine the drag operator start. (Unit: px) It is valid when [setting.edit.enable = true]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Please adjust the value according to needs. Note: If it is too small, will easily lead to misoperation when you click mouse.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: 5

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of setting

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. Set the minimum offset is 10px.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	edit: {
                                                                                                                                                                                                                                                                                                                      +		enable: true,
                                                                                                                                                                                                                                                                                                                      +		drag: {
                                                                                                                                                                                                                                                                                                                      +			minMoveSize: 10
                                                                                                                                                                                                                                                                                                                      +		}
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/setting.edit.drag.next.html b/alive-admin/target/classes/static/ztree/api/en/setting.edit.drag.next.html new file mode 100644 index 0000000..82eb6fb --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/setting.edit.drag.next.html @@ -0,0 +1,59 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Boolean / Function(treeId, treeNodes, targetNode)setting.edit.drag.next

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.exedit js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      When drag one node to the target node, set whether to allow the node to be the target node's next sibling. It is valid when [setting.edit.enable = true]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If the target node is root, so zTree will only trigger 'inner' and not trigger 'prev / next'.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      This function mainly for the appropriate limit drag and drop (auxiliary arrow), it requires a combination of 'prev, inner' together, to achieve full functionality.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: true

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Boolean Format

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      true means: allow the node to be the target node's next sibling.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      false means: don't allow the node to be the target node's next sibling.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function Parameter Descriptions

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      zTree unique identifier: treeId, easy for users to control.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodesArray(JSON)

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      A collection of the nodes which has been dragged

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      targetNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      JSON data object of the target node which treeNodes are draged over.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Return Boolean

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      return true or false

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of setting & function

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. disable to drag the node to the target node's next sibling.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	edit: {
                                                                                                                                                                                                                                                                                                                      +		enable: true,
                                                                                                                                                                                                                                                                                                                      +		drag: {
                                                                                                                                                                                                                                                                                                                      +			prev: true,
                                                                                                                                                                                                                                                                                                                      +			next: false,
                                                                                                                                                                                                                                                                                                                      +			inner: true
                                                                                                                                                                                                                                                                                                                      +		}
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2. disable to drag the node to be all of the parent nodes's next sibling.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      function canNext(treeId, nodes, targetNode) {
                                                                                                                                                                                                                                                                                                                      +	return !targetNode.isParent;
                                                                                                                                                                                                                                                                                                                      +}
                                                                                                                                                                                                                                                                                                                      +var setting = {
                                                                                                                                                                                                                                                                                                                      +	edit: {
                                                                                                                                                                                                                                                                                                                      +		enable: true,
                                                                                                                                                                                                                                                                                                                      +		drag: {
                                                                                                                                                                                                                                                                                                                      +			prev: true,
                                                                                                                                                                                                                                                                                                                      +			next: canNext,
                                                                                                                                                                                                                                                                                                                      +			inner: true
                                                                                                                                                                                                                                                                                                                      +		}
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/setting.edit.drag.prev.html b/alive-admin/target/classes/static/ztree/api/en/setting.edit.drag.prev.html new file mode 100644 index 0000000..de6f0c8 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/setting.edit.drag.prev.html @@ -0,0 +1,59 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Boolean / Function(treeId, treeNodes, targetNode)setting.edit.drag.prev

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.exedit js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      When drag one node to the target node, set whether to allow the node to be the target node's previous sibling. It is valid when [setting.edit.enable = true]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If the target node is root, so zTree will only trigger 'inner' and not trigger 'prev / next'.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      This function mainly for the appropriate limit drag and drop (auxiliary arrow), it requires a combination of 'next, inner' together, to achieve full functionality.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: true

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Boolean Format

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      true means: allow the node to be the target node's previous sibling.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      false means: don't allow the node to be the target node's previous sibling.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function Parameter Descriptions

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      zTree unique identifier: treeId, easy for users to control.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodesArray(JSON)

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      A collection of the nodes which has been dragged

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      targetNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      JSON data object of the target node which treeNodes are draged over.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Return Boolean

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      return true or false

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of setting & function

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. disable to drag the node to the target node's previous sibling.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	edit: {
                                                                                                                                                                                                                                                                                                                      +		enable: true,
                                                                                                                                                                                                                                                                                                                      +		drag: {
                                                                                                                                                                                                                                                                                                                      +			prev: false,
                                                                                                                                                                                                                                                                                                                      +			next: true,
                                                                                                                                                                                                                                                                                                                      +			inner: true
                                                                                                                                                                                                                                                                                                                      +		}
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2. disable to drag the node to be all of the parent nodes's previous sibling.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      function canPrev(treeId, nodes, targetNode) {
                                                                                                                                                                                                                                                                                                                      +	return !targetNode.isParent;
                                                                                                                                                                                                                                                                                                                      +}
                                                                                                                                                                                                                                                                                                                      +var setting = {
                                                                                                                                                                                                                                                                                                                      +	edit: {
                                                                                                                                                                                                                                                                                                                      +		enable: true,
                                                                                                                                                                                                                                                                                                                      +		drag: {
                                                                                                                                                                                                                                                                                                                      +			prev: canPrev,
                                                                                                                                                                                                                                                                                                                      +			next: true,
                                                                                                                                                                                                                                                                                                                      +			inner: true
                                                                                                                                                                                                                                                                                                                      +		}
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/setting.edit.editNameSelectAll.html b/alive-admin/target/classes/static/ztree/api/en/setting.edit.editNameSelectAll.html new file mode 100644 index 0000000..a030359 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/setting.edit.editNameSelectAll.html @@ -0,0 +1,27 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Booleansetting.edit.editNameSelectAll

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.exedit js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      When edit node's name, the text in input is selected or unselected. It is valid when [setting.edit.enable = true]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: false

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Boolean Format

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      true means: when show the input, the text in input is selected

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      false means: when show the input, the text in input is not selected

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of setting

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. When edit node's name, the text in input is selected.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	edit: {
                                                                                                                                                                                                                                                                                                                      +		enable: true,
                                                                                                                                                                                                                                                                                                                      +		editNameSelectAll: true
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/setting.edit.enable.html b/alive-admin/target/classes/static/ztree/api/en/setting.edit.enable.html new file mode 100644 index 0000000..ec9d2b3 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/setting.edit.enable.html @@ -0,0 +1,39 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Booleansetting.edit.enable

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.exedit js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Set zTree is in edit mode

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Please set this attribute before zTree initialization. If you need to change the edit mode after the initialization, please use zTreeObj.setEditable() method.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: false

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Boolean Format

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      true means: zTree is in edit mode.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      false means: zTree is not in edit mode.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Editing Rules Description

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. When click the node, it will not open 'node.url' specified URL. +
                                                                                                                                                                                                                                                                                                                      2. Support for dynamic tree editing. +
                                                                                                                                                                                                                                                                                                                      3. You can drag-drop nodes, and support drag-drop nodes between multiple trees. +
                                                                                                                                                                                                                                                                                                                      4. Support use drag-drop to copy or move the node. (Reference: setting.edit.drag.isCopy / setting.edit.drag.isMove) +
                                                                                                                                                                                                                                                                                                                      5. You can use the Edit button to modify the name attribute. +
                                                                                                                                                                                                                                                                                                                      6. You can use the Remove button to remove the node. +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Please note that letter case, do not change.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of setting

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. edit the tree

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	edit: {
                                                                                                                                                                                                                                                                                                                      +		enable: true
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/setting.edit.removeTitle.html b/alive-admin/target/classes/static/ztree/api/en/setting.edit.removeTitle.html new file mode 100644 index 0000000..e217527 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/setting.edit.removeTitle.html @@ -0,0 +1,48 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      String / Function(treeId, treeNode)setting.edit.removeTitle

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.exedit js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      the title of the remove button DOM. It is valid when [setting.edit.enable = true & setting.edit.showRemoveBtn = true]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: "remove"

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      String Format

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      When the mouse over the remove button, the browser auto pop-up message content.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function Parameter Descriptions

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      zTree unique identifier: treeId, easy for users to control.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      JSON data object of the node which show the remove button

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Return String

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Return value is same as 'String Format'

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of setting & function

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. Set title is 'remove the node' about all the remove button

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	edit: {
                                                                                                                                                                                                                                                                                                                      +		enable: true,
                                                                                                                                                                                                                                                                                                                      +		showRemoveBtn: true,
                                                                                                                                                                                                                                                                                                                      +		removeTitle: "remove the node"
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2. Set title is 'remove the parent node' about the parent node, and is 'remove the leaf node' about the leaf node

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      function setRemoveTitle(treeId, treeNode) {
                                                                                                                                                                                                                                                                                                                      +	return treeNode.isParent ? "remove the parent node":"remove the leaf node";
                                                                                                                                                                                                                                                                                                                      +}
                                                                                                                                                                                                                                                                                                                      +var setting = {
                                                                                                                                                                                                                                                                                                                      +	edit: {
                                                                                                                                                                                                                                                                                                                      +		enable: true,
                                                                                                                                                                                                                                                                                                                      +		showRemoveBtn: true,
                                                                                                                                                                                                                                                                                                                      +		removeTitle: setRemoveTitle
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/setting.edit.renameTitle.html b/alive-admin/target/classes/static/ztree/api/en/setting.edit.renameTitle.html new file mode 100644 index 0000000..b8ce5a6 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/setting.edit.renameTitle.html @@ -0,0 +1,48 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      String / Function(treeId, treeNode)setting.edit.renameTitle

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.exedit js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      the title of the rename button DOM. It is valid when [setting.edit.enable = true & setting.edit.showRenameBtn = true]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: "rename"

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      String Format

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      When the mouse over the rename button, the browser auto pop-up message content.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function Parameter Descriptions

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      zTree unique identifier: treeId, easy for users to control.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      JSON data object of the node which show the rename button

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Return String

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      return value is same as 'String Format'

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of setting & function

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. Set title is 'rename the node' about all the rename button

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	edit: {
                                                                                                                                                                                                                                                                                                                      +		enable: true,
                                                                                                                                                                                                                                                                                                                      +		showRenameBtn: true,
                                                                                                                                                                                                                                                                                                                      +		renameTitle: "rename the node"
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2. Set title is 'rename the parent node' about the parent node, and is 'rename the leaf node' about the leaf node

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      function setRenameTitle(treeId, treeNode) {
                                                                                                                                                                                                                                                                                                                      +	return treeNode.isParent ? "rename the parent node":"rename the leaf node";
                                                                                                                                                                                                                                                                                                                      +}
                                                                                                                                                                                                                                                                                                                      +var setting = {
                                                                                                                                                                                                                                                                                                                      +	edit: {
                                                                                                                                                                                                                                                                                                                      +		enable: true,
                                                                                                                                                                                                                                                                                                                      +		showRenameBtn: true,
                                                                                                                                                                                                                                                                                                                      +		renameTitle: setRenameTitle
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/setting.edit.showRemoveBtn.html b/alive-admin/target/classes/static/ztree/api/en/setting.edit.showRemoveBtn.html new file mode 100644 index 0000000..f0f1fe1 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/setting.edit.showRemoveBtn.html @@ -0,0 +1,50 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Boolean / Function(treeId, treeNode)setting.edit.showRemoveBtn

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.exedit js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Set to show or hide the remove button. It is valid when [setting.edit.enable = true]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      When you click the remove button:

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. zTree will trigger the setting.callback.beforeRemove callback, and you can decide whether to allow delete.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2. If you don't set the 'beforeRemove' or the 'beforeRemove' callback return true, so zTree will trigger the setting.callback.onRemove callback after remove the node.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: true

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Boolean Format

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      true means: show the remove button

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      false means: hide the remove button

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function Parameter Descriptions

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      zTree unique identifier: treeId, easy for users to control.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      JSON data object of the node which show the remove button

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Return Boolean

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Return value is same as 'Boolean Format'

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of setting & function

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. Hide the remove button

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	edit: {
                                                                                                                                                                                                                                                                                                                      +		enable: true,
                                                                                                                                                                                                                                                                                                                      +		showRemoveBtn: false
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2. Hide the remove button of parent node

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      function setRemoveBtn(treeId, treeNode) {
                                                                                                                                                                                                                                                                                                                      +	return !treeNode.isParent;
                                                                                                                                                                                                                                                                                                                      +}
                                                                                                                                                                                                                                                                                                                      +var setting = {
                                                                                                                                                                                                                                                                                                                      +	edit: {
                                                                                                                                                                                                                                                                                                                      +		enable: true,
                                                                                                                                                                                                                                                                                                                      +		showRemoveBtn: setRemoveBtn
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/setting.edit.showRenameBtn.html b/alive-admin/target/classes/static/ztree/api/en/setting.edit.showRenameBtn.html new file mode 100644 index 0000000..4fe2f58 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/setting.edit.showRenameBtn.html @@ -0,0 +1,52 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Boolean / Function(treeId, treeNode)setting.edit.showRenameBtn

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.exedit js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Set to show or hide the rename button. It is valid when [setting.edit.enable = true]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      When you click the rename button:

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. Click the rename button, you can rename the node.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2. After rename operation (the input DOM blur or press the Enter Key), zTree will trigger the setting.callback.beforeRename callback, and you can decide whether to allow rename.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      3. If the 'beforeRename' callback return false, so zTree will keep the edit status. (Press the ESC key, can be restored to the original state.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      4. If you don't set the 'beforeRename' or the 'beforeRename' callback return true, so zTree will trigger the setting.callback.onRename callback after rename the node.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: true

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Boolean Format

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      true means: show the rename button

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      false means: hide the rename button

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function Parameter Descriptions

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      zTree unique identifier: treeId, easy for users to control.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      JSON data object of the node which show the rename button

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Return Boolean

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Return value is same as 'Boolean Format'

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of setting & function

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. Hide the rename button

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	edit: {
                                                                                                                                                                                                                                                                                                                      +		enable: true,
                                                                                                                                                                                                                                                                                                                      +		showRenameBtn: false
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2. Hide the rename button of parent node

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      function setRenameBtn(treeId, treeNode) {
                                                                                                                                                                                                                                                                                                                      +	return !treeNode.isParent;
                                                                                                                                                                                                                                                                                                                      +}
                                                                                                                                                                                                                                                                                                                      +var setting = {
                                                                                                                                                                                                                                                                                                                      +	edit: {
                                                                                                                                                                                                                                                                                                                      +		enable: true,
                                                                                                                                                                                                                                                                                                                      +		showRenameBtn: setRenameBtn
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/setting.treeId.html b/alive-admin/target/classes/static/ztree/api/en/setting.treeId.html new file mode 100644 index 0000000..e4b04b3 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/setting.treeId.html @@ -0,0 +1,14 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Stringsetting.treeId

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.core js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      zTree unique identifier. After the initialization, it equals to the id attribute value of the user-defined zTree container.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Do not initialize or modify it, it is an internal argument.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/setting.treeObj.html b/alive-admin/target/classes/static/ztree/api/en/setting.treeObj.html new file mode 100644 index 0000000..30eb66c --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/setting.treeObj.html @@ -0,0 +1,14 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Objectsetting.treeObj

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.core js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      zTree DOM's jQuery object, the main function: easy to internal operations.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Do not initialize or modify it, it is an internal argument.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/setting.view.addDiyDom.html b/alive-admin/target/classes/static/ztree/api/en/setting.view.addDiyDom.html new file mode 100644 index 0000000..fa22bef --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/setting.view.addDiyDom.html @@ -0,0 +1,40 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(treeId, treeNode)setting.view.addDiyDom

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.core js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      This function used to display the custom control on the node.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. If you have huge node data, please note: this function will affect the initialization performance. If not required, it is recommended not to use this function.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2. This function is an advanced application, please make sure that a better understanding of zTree before you use it.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: null

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function Parameter Descriptions

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      zTree unique identifier: treeId, easy for users to control.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      JSON data object of the node which display the custom control.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of setting & function

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. Display button in all nodes.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	view: {
                                                                                                                                                                                                                                                                                                                      +		addDiyDom: addDiyDom
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +function addDiyDom(treeId, treeNode) {
                                                                                                                                                                                                                                                                                                                      +	var aObj = $("#" + treeNode.tId + "_a");
                                                                                                                                                                                                                                                                                                                      +	if ($("#diyBtn_"+treeNode.id).length>0) return;
                                                                                                                                                                                                                                                                                                                      +	var editStr = "<span id='diyBtn_space_" +treeNode.id+ "' > </span>"
                                                                                                                                                                                                                                                                                                                      +		+ "<button type='button' class='diyBtn1' id='diyBtn_" + treeNode.id
                                                                                                                                                                                                                                                                                                                      +		+ "' title='"+treeNode.name+"' onfocus='this.blur();'></button>";
                                                                                                                                                                                                                                                                                                                      +	aObj.append(editStr);
                                                                                                                                                                                                                                                                                                                      +	var btn = $("#diyBtn_"+treeNode.id);
                                                                                                                                                                                                                                                                                                                      +	if (btn) btn.bind("click", function(){alert("diy Button for " + treeNode.name);});
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/setting.view.addHoverDom.html b/alive-admin/target/classes/static/ztree/api/en/setting.view.addHoverDom.html new file mode 100644 index 0000000..1ea8b6d --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/setting.view.addHoverDom.html @@ -0,0 +1,45 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(treeId, treeNode)setting.view.addHoverDom

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.exedit js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Used to display custom control when mouse move over the node. (e.g. the rename and remove button)

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If you use this function, so must set setting.view.removeHoverDom, please make sure that a better understanding of zTree before you use it.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: null

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function Parameter Descriptions

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      zTree unique identifier: treeId, easy for users to control.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      JSON data object of the node which need to display the custom control.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of setting & function

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. Display a button when mouse move over the node, and hide the button when mouse move out.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	view: {
                                                                                                                                                                                                                                                                                                                      +		addHoverDom: addHoverDom,
                                                                                                                                                                                                                                                                                                                      +		removeHoverDom: removeHoverDom,
                                                                                                                                                                                                                                                                                                                      +		......
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +function addHoverDom(treeId, treeNode) {
                                                                                                                                                                                                                                                                                                                      +	var aObj = $("#" + treeNode.tId + "_a");
                                                                                                                                                                                                                                                                                                                      +	if ($("#diyBtn_"+treeNode.id).length>0) return;
                                                                                                                                                                                                                                                                                                                      +	var editStr = "<span id='diyBtn_space_" +treeNode.id+ "' > </span>"
                                                                                                                                                                                                                                                                                                                      +		+ "<button type='button' class='diyBtn1' id='diyBtn_" + treeNode.id
                                                                                                                                                                                                                                                                                                                      +		+ "' title='"+treeNode.name+"' onfocus='this.blur();'></button>";
                                                                                                                                                                                                                                                                                                                      +	aObj.append(editStr);
                                                                                                                                                                                                                                                                                                                      +	var btn = $("#diyBtn_"+treeNode.id);
                                                                                                                                                                                                                                                                                                                      +	if (btn) btn.bind("click", function(){alert("diy Button for " + treeNode.name);});
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +function removeHoverDom(treeId, treeNode) {
                                                                                                                                                                                                                                                                                                                      +	$("#diyBtn_"+treeNode.id).unbind().remove();
                                                                                                                                                                                                                                                                                                                      +	$("#diyBtn_space_" +treeNode.id).unbind().remove();
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/setting.view.autoCancelSelected.html b/alive-admin/target/classes/static/ztree/api/en/setting.view.autoCancelSelected.html new file mode 100644 index 0000000..8cc2fbb --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/setting.view.autoCancelSelected.html @@ -0,0 +1,27 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Booleansetting.view.autoCancelSelected

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.core js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      When click the selected node while pressing the Ctrl key, allow to cancel selected the node.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If you don't need this function, please set to false.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: true

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Boolean Format

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      true means: press the Ctrl key, can cancel selected node.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      false means: press the Ctrl key, can't cancel selected node.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of setting

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. Press the Ctrl key, can't cancel selected node.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	view: {
                                                                                                                                                                                                                                                                                                                      +		autoCancelSelected: false
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/setting.view.dblClickExpand.html b/alive-admin/target/classes/static/ztree/api/en/setting.view.dblClickExpand.html new file mode 100644 index 0000000..2517624 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/setting.view.dblClickExpand.html @@ -0,0 +1,45 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Boolean / Function(treeId, treeNode)setting.view.dblClickExpand

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.core js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      When double-click the parent node, 'dblClickExpand' is used to decide whether to expand the parent node.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: true

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Boolean Format

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      true means: When double-click the parent node, zTree will expand the parent node.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      false means: When double-click the parent node, zTree will not expand the parent node.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function Pamameter Descriptions

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      zTree unique identifier: treeId, easy for users to control.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      JSON data object of the node which be double-clicked.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Return Boolean

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Return value is same as 'Boolean Format'

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Example of setting

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. When double-click the parent node, zTree will not expand the parent node.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	view: {
                                                                                                                                                                                                                                                                                                                      +		dblClickExpand: false
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2. When double-click the parent node, zTree will expand the parent node which level>0.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      function dblClickExpand(treeId, treeNode) {
                                                                                                                                                                                                                                                                                                                      +	return treeNode.level > 0;
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +var setting = {
                                                                                                                                                                                                                                                                                                                      +	view: {
                                                                                                                                                                                                                                                                                                                      +		dblClickExpand: dblClickExpand
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/setting.view.expandSpeed.html b/alive-admin/target/classes/static/ztree/api/en/setting.view.expandSpeed.html new file mode 100644 index 0000000..1911e74 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/setting.view.expandSpeed.html @@ -0,0 +1,31 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      String / Numbersetting.view.expandSpeed

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.core js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      The animation speed of expand or collapse node. As same as 'speed' parameter in jQuery

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      In order to ensure zTree operating speed, if use the IE6, zTree will not use animation.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: "fast"

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      String Format

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      e.g. "slow", "normal", or "fast"

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If set to "", zTree will not use animation.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Number Format

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      How long the animation will run. [Unit: ms] (e.g. 1000)

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of setting

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. Set the animation speed to slow

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	view: {
                                                                                                                                                                                                                                                                                                                      +		expandSpeed: "slow"
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/setting.view.fontCss.html b/alive-admin/target/classes/static/ztree/api/en/setting.view.fontCss.html new file mode 100644 index 0000000..1ad5f51 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/setting.view.fontCss.html @@ -0,0 +1,42 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      JSON / Function(treeId, treeNode)setting.view.fontCss

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.core js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Personalized text style, only applies to <A> object in the node DOM

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: {}

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      JSON Format

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      As same as .css() method in jQuery. e.g. {color:"#ff0011", background:"blue"}

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function Parameter Descriptions

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      zTree unique identifier: treeId, easy for users to control.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      JSON data object of the node which use the personalized text style

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Return JSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Return value is same as 'JSON Format'. e.g. {color:"#ff0011", background:"blue"}

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of setting & function

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. Don't modify css file, and set the node name's color to red

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	view: {
                                                                                                                                                                                                                                                                                                                      +		fontCss : {color:"red"}
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2. Don't modify css file, and set the root node name's color to red

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      function setFontCss(treeId, treeNode) {
                                                                                                                                                                                                                                                                                                                      +	return treeNode.level == 0 ? {color:"red"} : {};
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +var setting = {
                                                                                                                                                                                                                                                                                                                      +	view: {
                                                                                                                                                                                                                                                                                                                      +		fontCss: setFontCss
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/setting.view.nameIsHTML.html b/alive-admin/target/classes/static/ztree/api/en/setting.view.nameIsHTML.html new file mode 100644 index 0000000..4fe19ad --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/setting.view.nameIsHTML.html @@ -0,0 +1,28 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Booleansetting.view.nameIsHTML

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.core js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Set to use HTML in 'name' attribute.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If allow HTML, please do check to avoid security issues, e.g. JavaScript Injection...

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: false

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Boolean Format

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      true means: 'name' attribute can be HTML.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      false means: 'name' attribute is only TEXT.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of setting

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. Set to allow HTML

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	view: {
                                                                                                                                                                                                                                                                                                                      +		nameIsHTML: true
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +var node = {"name":"<font color='red'>test</font>"};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/setting.view.removeHoverDom.html b/alive-admin/target/classes/static/ztree/api/en/setting.view.removeHoverDom.html new file mode 100644 index 0000000..0c70aff --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/setting.view.removeHoverDom.html @@ -0,0 +1,45 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(treeId, treeNode)setting.view.removeHoverDom

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.exedit js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Used to hide custom control when mouse move out the node. (e.g. the rename and remove button)

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If you use this function, so must set setting.view.addHoverDom, please make sure that a better understanding of zTree before you use it.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: null

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function Parameter Descriptions

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      zTree unique identifier: treeId, easy for users to control.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      JSON data object of the node which need to hide the custom control.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of setting & function

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. Display a button when mouse move over the node, and hide the button when mouse move out.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	view: {
                                                                                                                                                                                                                                                                                                                      +		addHoverDom: addHoverDom,
                                                                                                                                                                                                                                                                                                                      +		removeHoverDom: removeHoverDom,
                                                                                                                                                                                                                                                                                                                      +		......
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +function addHoverDom(treeId, treeNode) {
                                                                                                                                                                                                                                                                                                                      +	var aObj = $("#" + treeNode.tId + "_a");
                                                                                                                                                                                                                                                                                                                      +	if ($("#diyBtn_"+treeNode.id).length>0) return;
                                                                                                                                                                                                                                                                                                                      +	var editStr = "<span id='diyBtn_space_" +treeNode.id+ "' > </span>"
                                                                                                                                                                                                                                                                                                                      +		+ "<button type='button' class='diyBtn1' id='diyBtn_" + treeNode.id
                                                                                                                                                                                                                                                                                                                      +		+ "' title='"+treeNode.name+"' onfocus='this.blur();'></button>";
                                                                                                                                                                                                                                                                                                                      +	aObj.append(editStr);
                                                                                                                                                                                                                                                                                                                      +	var btn = $("#diyBtn_"+treeNode.id);
                                                                                                                                                                                                                                                                                                                      +	if (btn) btn.bind("click", function(){alert("diy Button for " + treeNode.name);});
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +function removeHoverDom(treeId, treeNode) {
                                                                                                                                                                                                                                                                                                                      +	$("#diyBtn_"+treeNode.id).unbind().remove();
                                                                                                                                                                                                                                                                                                                      +	$("#diyBtn_space_" +treeNode.id).unbind().remove();
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/setting.view.selectedMulti.html b/alive-admin/target/classes/static/ztree/api/en/setting.view.selectedMulti.html new file mode 100644 index 0000000..ffa129d --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/setting.view.selectedMulti.html @@ -0,0 +1,28 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Booleansetting.view.selectedMulti

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.core js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Set whether to allow select multiple nodes.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: true

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Boolean Format

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      true mean: you can select multiple nodes.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      false mean: you can only select one node.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. Press Ctrl key, you can select multiple nodes.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2、This attribute don't affect the feature of cancel select node. ( please see setting.view.autoCancelSelected )

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of setting

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. Only select one node.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	view: {
                                                                                                                                                                                                                                                                                                                      +		selectedMulti: false
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/setting.view.showIcon.html b/alive-admin/target/classes/static/ztree/api/en/setting.view.showIcon.html new file mode 100644 index 0000000..9adf003 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/setting.view.showIcon.html @@ -0,0 +1,45 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Boolean / Function(treeId, treeNode)setting.view.showIcon

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.core js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Set to show or hide node icon.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: true

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Boolean Format

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      true means: show node icon.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      false means: hide node icon.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function Parameter Descriptions

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      zTree unique identifier: treeId, easy for users to control.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      JSON data object of the node which need to show icon.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Return Boolean

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Return value is same as 'Boolean Format'

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of setting & function

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. Hide node icon

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	view: {
                                                                                                                                                                                                                                                                                                                      +		showIcon: false
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2. Hide node icon which level=2

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      function showIconForTree(treeId, treeNode) {
                                                                                                                                                                                                                                                                                                                      +	return treeNode.level != 2;
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +var setting = {
                                                                                                                                                                                                                                                                                                                      +	view: {
                                                                                                                                                                                                                                                                                                                      +		showIcon: showIconForTree
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/setting.view.showLine.html b/alive-admin/target/classes/static/ztree/api/en/setting.view.showLine.html new file mode 100644 index 0000000..a554014 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/setting.view.showLine.html @@ -0,0 +1,26 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Booleansetting.view.showLine

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.core js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Set to show or hide line.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: true

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Boolean Format

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      true means: show line.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      false means: hide line.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of setting

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. Hide line

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	view: {
                                                                                                                                                                                                                                                                                                                      +		showLine: false
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/setting.view.showTitle.html b/alive-admin/target/classes/static/ztree/api/en/setting.view.showTitle.html new file mode 100644 index 0000000..66bb26e --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/setting.view.showTitle.html @@ -0,0 +1,47 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Boolean / Function(treeId, treeNode)setting.view.showTitle

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.core js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Set to show or hide the 'title' attribute of node DOM.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Please see the setting.data.key.title attribute

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: true

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Boolean Format

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      true means: show the 'title' attribute of node DOM.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      false means: hide the 'title' attribute of node DOM.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      When setting.view.showTitle = true & setting.data.key.title = '', zTree will set the 'setting.data.key.name' attribute to the 'setting.data.key.title'.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function Parameter Descriptions

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      zTree unique identifier: treeId, easy for users to control.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      JSON data object of the node which need to show title.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Return Boolean

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Return value is same as 'Boolean Format'

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of setting & function

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. Hide the 'title' attribute of node DOM.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	view: {
                                                                                                                                                                                                                                                                                                                      +		showTitle: false
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2. Hide the 'title' attribute of node DOM which level=2.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      function showTitleForTree(treeId, treeNode) {
                                                                                                                                                                                                                                                                                                                      +	return treeNode.level != 2;
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +var setting = {
                                                                                                                                                                                                                                                                                                                      +	view: {
                                                                                                                                                                                                                                                                                                                      +		showTitle: showTitleForTree
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/treeNode.check_Child_State.html b/alive-admin/target/classes/static/ztree/api/en/treeNode.check_Child_State.html new file mode 100644 index 0000000..48efb79 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/treeNode.check_Child_State.html @@ -0,0 +1,43 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      NumbertreeNode.check_Child_State

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.excheck js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Used to record the node's half-checked state about its all child nodes's checkbox or radio. It is valid when [setting.check.enable = true]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      zTree v3.x provides treeNode.getCheckStatus () method to get an accurate the half-checked status.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Do not initialize or modify it, it is an internal argument.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: true

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Number Format

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Rules:

                                                                                                                                                                                                                                                                                                                      + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                      setting.check.checkType = "checkbox"
                                                                                                                                                                                                                                                                                                                      treeNode.check_Child_StateChecked Status Description
                                                                                                                                                                                                                                                                                                                      -1Has no child nodes or all child nodes's 'nocheck' attribute is true.
                                                                                                                                                                                                                                                                                                                      0All of the child nodes has not been checked.
                                                                                                                                                                                                                                                                                                                      1Some of the child nodes has been checked.
                                                                                                                                                                                                                                                                                                                      2All of the child nodes has been checked.
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                      setting.check.checkType = "radio"
                                                                                                                                                                                                                                                                                                                      treeNode.check_Child_StateChecked Status Description
                                                                                                                                                                                                                                                                                                                      -1Has no child nodes or all child nodes's 'nocheck' attribute is true.
                                                                                                                                                                                                                                                                                                                      0All of the child nodes has not been checked.
                                                                                                                                                                                                                                                                                                                      2Some of the child nodes has been checked.
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/treeNode.check_Focus.html b/alive-admin/target/classes/static/ztree/api/en/treeNode.check_Focus.html new file mode 100644 index 0000000..77b7359 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/treeNode.check_Focus.html @@ -0,0 +1,19 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      BooleantreeNode.check_Focus

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.excheck js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Used to record the status which the checkbox or radio get focus. It is valid when [setting.check.enable = true]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Do not initialize or modify it, it is an internal argument.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: false

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Boolean Format

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      true means: mouse move over the checkbox

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      false means: mouse move out the checkbox

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/treeNode.checked.html b/alive-admin/target/classes/static/ztree/api/en/treeNode.checked.html new file mode 100644 index 0000000..8a55f3d --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/treeNode.checked.html @@ -0,0 +1,32 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      BooleantreeNode.checked

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.excheck js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      The checked status about node's checkbox or radio. It is valid when [setting.check.enable = true & treeNode.nocheck = false]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. If change the 'checked' to other attribute, please set the 'setting.data.key.checked' attribute.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2. If you create node data, and set 'checked' attribute to true, zTree will check this node's checkbox or radio when zTree is initialized.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      3. Use the treeObj.checkNode or checkAllNodes or updateNode method, you can check or uncheck the node. Please see the API about these methods.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      4. zTree support identification string 'true' & 'false'.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: false

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Boolean Format

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      true means: check the checkbox or radio when zTree is initialized.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      false means: uncheck the checkbox or radio when zTree is initialized.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of treeNode

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. check the checkbox when zTree is initialized

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var nodes = [
                                                                                                                                                                                                                                                                                                                      +{ "id":1, "name":"test1", checked:true },
                                                                                                                                                                                                                                                                                                                      +{ "id":2, "name":"test2", checked:true }
                                                                                                                                                                                                                                                                                                                      +]
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2. Get the checked status of the first root node

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var checked = treeObj.getNodes()[0].checked;
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/treeNode.checkedOld.html b/alive-admin/target/classes/static/ztree/api/en/treeNode.checkedOld.html new file mode 100644 index 0000000..ee51626 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/treeNode.checkedOld.html @@ -0,0 +1,25 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      BooleantreeNode.checkedOld

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.excheck js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      The checked status about node's checkbox or radio when zTree was initialized. It is valid when [setting.check.enable = true & treeNode.nocheck = false]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. Do not initialize it, it will be initialized when the node is initialized.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2. If you need to achieve special features, you can use the zTreeObj.getChangeCheckedNodes method and modify the value of 'checkedOld' attribute.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: the value of 'checked' attribute when zTree is initialized

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Boolean Format

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      true means: the checkbox or radio is checked when zTree is initialized.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      false means: the checkbox or radio is not checked when zTree is initialized.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of treeNode

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. Get the original checked status of the first root node

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var checkedOld = treeObj.getNodes()[0].checkedOld;
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/treeNode.children.html b/alive-admin/target/classes/static/ztree/api/en/treeNode.children.html new file mode 100644 index 0000000..d765bb9 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/treeNode.children.html @@ -0,0 +1,35 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Array(JSON)treeNode.children

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.core js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      The data collections of node's child nodes.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. If change the 'children' to other attribute, please set the 'setting.data.key.children' attribute.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2. If you set to use dynamic tree, when a node is expanded which 'isParent' attribute is true and which has no child nodes, zTree will use ajax to get its child nodes.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: undefined

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Array(JSON) Format

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Standard JSON Data object

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of treeNode

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. Use the standard JSON data object.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var nodes = [
                                                                                                                                                                                                                                                                                                                      +{ "id":1, "name":"test1",
                                                                                                                                                                                                                                                                                                                      +	children: [
                                                                                                                                                                                                                                                                                                                      +	{ "id":3, "name":"test3"},
                                                                                                                                                                                                                                                                                                                      +	{ "id":4, "name":"test4"},
                                                                                                                                                                                                                                                                                                                      +	{ "id":5, "name":"test5"}
                                                                                                                                                                                                                                                                                                                      +	]
                                                                                                                                                                                                                                                                                                                      +},
                                                                                                                                                                                                                                                                                                                      +{ "id":2, "name":"test2"  }
                                                                                                                                                                                                                                                                                                                      +]
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2. Get the first root node's child nodes

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var nodes = treeObj.getNodes()[0].children;
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/treeNode.chkDisabled.html b/alive-admin/target/classes/static/ztree/api/en/treeNode.chkDisabled.html new file mode 100644 index 0000000..f831775 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/treeNode.chkDisabled.html @@ -0,0 +1,28 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      BooleantreeNode.chkDisabled

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.excheck js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. Set node's checkbox / radio to disabled. It is valid when [setting.check.enable = true]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2. zTree support identification string 'true' & 'false'.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      3. Please don't change this attribute of the nodes which have been created. If you want to disable or undisable the nodes, please use 'setChkDisabled()' methods.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      4. If you set the parent node's checkbox / radio to disabled, its child nodes will be disabled too.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: false

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Boolean Format

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      true means: this node's checkbox / radio is disabled.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      false means: this node's checkbox / radio is able.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of treeNode

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. disable some node's checkbox / radio

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var nodes = [
                                                                                                                                                                                                                                                                                                                      +	{ "id":1, "name":"test1", "checked":true, "chkDisabled":true},
                                                                                                                                                                                                                                                                                                                      +	{ "id":2, "name":"test2", "chkDisabled":true},
                                                                                                                                                                                                                                                                                                                      +	{ "id":3, "name":"test3"}
                                                                                                                                                                                                                                                                                                                      +]
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/treeNode.click.html b/alive-admin/target/classes/static/ztree/api/en/treeNode.click.html new file mode 100644 index 0000000..1f9db62 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/treeNode.click.html @@ -0,0 +1,24 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      StringtreeNode.click

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.core js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Simple click event operations. As same as : (onclick ="...") the code. If the operation is more complex, please use the onClick callback.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Because IE is different to other browsers in operating the event of ‘onclick’ and ‘click’ coexistence, please do not use this parameter to control whether to allow the redirection operation (for example: treeNode.click = "return false;"). If there is similar requirements, please do not use the 'url' attribute to save the website address, but use the 'onClick' callback to control jumps.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: undefined

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      String Format

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Standard javascript syntax, for example: alert ("test"); etc.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of treeNode

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. When click this node, will alert msg.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var nodes = [
                                                                                                                                                                                                                                                                                                                      +	{ "id":1, "name":"Google CN", "url":"http://g.cn", "click":"alert('test');"},
                                                                                                                                                                                                                                                                                                                      +	......
                                                                                                                                                                                                                                                                                                                      +]
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/treeNode.diy.html b/alive-admin/target/classes/static/ztree/api/en/treeNode.diy.html new file mode 100644 index 0000000..68c39ba --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/treeNode.diy.html @@ -0,0 +1,15 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      ?treeNode.* DIY *

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.core js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Used to save other custom data of node, do not use the same attribute name with ztree used, the user can freely set.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of treeNode

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. Use 'ename' attribute to save more info

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var node = { "id":1, "name":"test1", "ename":"test eName"};
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/treeNode.editNameFlag.html b/alive-admin/target/classes/static/ztree/api/en/treeNode.editNameFlag.html new file mode 100644 index 0000000..f60ef2a --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/treeNode.editNameFlag.html @@ -0,0 +1,19 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      BooleantreeNode.editNameFlag

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.exedit js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Used to save the node editing name status. It is valid when [setting.edit.enable = true]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Do not initialize or modify it, it is an internal argument.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: false

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Boolean Format

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      true means: node is being edited.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      false means: node is not being edited.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/treeNode.getCheckStatus.html b/alive-admin/target/classes/static/ztree/api/en/treeNode.getCheckStatus.html new file mode 100644 index 0000000..3c9a2e6 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/treeNode.getCheckStatus.html @@ -0,0 +1,63 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function()treeNode.getCheckStatus

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.excheck js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Get the node's half-checked status of checkbox or radio. It is valid when [setting.check.enable = true]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Do not initialize or modify it, it is created by the zTree.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function Parameter Descriptions

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      ReturnJSON

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      {
                                                                                                                                                                                                                                                                                                                      +	checked: true, //As same as 'treeNode.checked'
                                                                                                                                                                                                                                                                                                                      +	half: true  //Rule the table below
                                                                                                                                                                                                                                                                                                                      +}
                                                                                                                                                                                                                                                                                                                      + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                      setting.check.checkType = "checkbox"
                                                                                                                                                                                                                                                                                                                      treeNode.checkedtreeNode.check_Child_StatetreeNode.halfCheck half
                                                                                                                                                                                                                                                                                                                      --truetrue
                                                                                                                                                                                                                                                                                                                       
                                                                                                                                                                                                                                                                                                                      true-1falsefalse
                                                                                                                                                                                                                                                                                                                      true0falsetrue
                                                                                                                                                                                                                                                                                                                      true1falsetrue
                                                                                                                                                                                                                                                                                                                      true2falsefalse
                                                                                                                                                                                                                                                                                                                       
                                                                                                                                                                                                                                                                                                                      false-1falsefalse
                                                                                                                                                                                                                                                                                                                      false0falsefalse
                                                                                                                                                                                                                                                                                                                      false1falsetrue
                                                                                                                                                                                                                                                                                                                      false2falsetrue
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                      setting.check.checkType = "radio"
                                                                                                                                                                                                                                                                                                                      treeNode.checkedtreeNode.check_Child_StatetreeNode.halfCheck half
                                                                                                                                                                                                                                                                                                                      --truetrue
                                                                                                                                                                                                                                                                                                                       
                                                                                                                                                                                                                                                                                                                      true-1falsefalse
                                                                                                                                                                                                                                                                                                                      true0falsefalse
                                                                                                                                                                                                                                                                                                                      true2falsetrue
                                                                                                                                                                                                                                                                                                                       
                                                                                                                                                                                                                                                                                                                      false-1falsefalse
                                                                                                                                                                                                                                                                                                                      false0falsefalse
                                                                                                                                                                                                                                                                                                                      false2falsetrue
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of treeNode

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. Get the first root node's half-checked status

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var halfCheck = treeObj.getNodes()[0].getCheckStatus();
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/treeNode.getNextNode.html b/alive-admin/target/classes/static/ztree/api/en/treeNode.getNextNode.html new file mode 100644 index 0000000..755aa6e --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/treeNode.getNextNode.html @@ -0,0 +1,27 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function()treeNode.getNextNode

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.core js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Get the treeNode's next sibling node.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Do not initialize or modify it, it is created by the zTree.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function Parameter Descriptions

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      ReturnJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      JSON data object of the treeNode's next sibling node

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If have not the next node, return null.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of treeNode

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. Get the first selected node's next sibling node.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var sNodes = treeObj.getSelectedNodes();
                                                                                                                                                                                                                                                                                                                      +if (sNodes.length > 0) {
                                                                                                                                                                                                                                                                                                                      +	var node = sNodes[0].getNextNode();
                                                                                                                                                                                                                                                                                                                      +}
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/treeNode.getParentNode.html b/alive-admin/target/classes/static/ztree/api/en/treeNode.getParentNode.html new file mode 100644 index 0000000..16bab30 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/treeNode.getParentNode.html @@ -0,0 +1,27 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function()treeNode.getParentNode

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.core js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Get the treeNode's parent node.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Do not initialize or modify it, it is created by the zTree.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function Parameter Descriptions

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      ReturnJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      JSON data object of treeNode's parent node.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If treeNode is root, return null.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of treeNode

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. Get the first selected node's parent node.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var sNodes = treeObj.getSelectedNodes();
                                                                                                                                                                                                                                                                                                                      +if (sNodes.length > 0) {
                                                                                                                                                                                                                                                                                                                      +	var node = sNodes[0].getParentNode();
                                                                                                                                                                                                                                                                                                                      +}
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/treeNode.getPreNode.html b/alive-admin/target/classes/static/ztree/api/en/treeNode.getPreNode.html new file mode 100644 index 0000000..f6745b1 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/treeNode.getPreNode.html @@ -0,0 +1,27 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function()treeNode.getPreNode

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.core js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Get the treeNode's previous sibling node.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Do not initialize or modify it, it is created by the zTree.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function Parameter Descriptions

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      ReturnJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      JSON data object of the treeNode's previous sibling node

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If have not the previous node, return null.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of treeNode

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. Get the first selected node's previous sibling node.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var sNodes = treeObj.getSelectedNodes();
                                                                                                                                                                                                                                                                                                                      +if (sNodes.length > 0) {
                                                                                                                                                                                                                                                                                                                      +	var node = sNodes[0].getPreNode();
                                                                                                                                                                                                                                                                                                                      +}
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/treeNode.halfCheck.html b/alive-admin/target/classes/static/ztree/api/en/treeNode.halfCheck.html new file mode 100644 index 0000000..8375326 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/treeNode.halfCheck.html @@ -0,0 +1,29 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      BooleantreeNode.halfCheck

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.excheck js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Force node checkBox / radio to the half-checked status. It is valid when [setting.check.enable = true & treeNode.nocheck = false]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. If you force to the half-checked status, zTree will not automatically calculated the half-checked status about this node.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2. Until you set treeNode.halfCheck to false or null, zTree will automatically calculated the half-checked status about this node.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      3. zTree support identification string 'true' & 'false'.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Defaul: false

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Boolean Format

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      true means: the checkbox or radio is half-checked when zTree is initialized.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      false means: the half-checked status will be automatically calculated

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of treeNode

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. set the half-checked status when zTree is initialized

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var nodes = [
                                                                                                                                                                                                                                                                                                                      +{ "id":1, "name":"test1", isParent:true, checked:true, halfCheck:true },
                                                                                                                                                                                                                                                                                                                      +{ "id":2, "name":"test2", isParent:true, checked:false, halfCheck:true },
                                                                                                                                                                                                                                                                                                                      +{ "id":3, "name":"test3", isParent:true, checked:true },
                                                                                                                                                                                                                                                                                                                      +{ "id":4, "name":"test4", isParent:true, checked:false }
                                                                                                                                                                                                                                                                                                                      +]
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/treeNode.icon.html b/alive-admin/target/classes/static/ztree/api/en/treeNode.icon.html new file mode 100644 index 0000000..4e1c99f --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/treeNode.icon.html @@ -0,0 +1,33 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      StringtreeNode.icon

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.core js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      URL path of node's custom icon.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. If you only set the 'icon' attribute to parent node, the parent node will only show one icon when it is expanded or collapsed.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2. If you need to show two icons when it is expanded or collapsed, please set the 'treeNode.iconOpen' and 'treeNode.iconClose' attribute.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      3. If you need to use css to set the custom icon, please set the 'treeNode.iconSkin' attribute.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: undefined

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      String Format

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Icon image url can be a relative path or absolute path.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If use a relative path, please note the relationship between icon image and the page, ensure the correct image path.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of treeNode

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. Set the custom icon

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var nodes = [
                                                                                                                                                                                                                                                                                                                      +	//Only show one icon when it is expanded or collapsed.
                                                                                                                                                                                                                                                                                                                      +	{ name:"Parent Node 1", icon:"/img/parent.gif"},
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +	//Show two icons when it is expanded or collapsed.
                                                                                                                                                                                                                                                                                                                      +	{ name:"Parent Node 2", iconOpen:"/img/open.gif", iconClose:"/img/close.gif"},
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +	//the custom icon for leaf node
                                                                                                                                                                                                                                                                                                                      +	{ name:"Leaf Node", icon:"/img/leaf.gif"}
                                                                                                                                                                                                                                                                                                                      +]
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/treeNode.iconClose.html b/alive-admin/target/classes/static/ztree/api/en/treeNode.iconClose.html new file mode 100644 index 0000000..2259e8f --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/treeNode.iconClose.html @@ -0,0 +1,33 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      StringtreeNode.iconClose

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.core js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      URL path of parent node's custom icon when it is collapsed.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. Only parent node support this attribute.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2. This attribute must be used simultaneously with 'iconOpen' attribute.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      3. If you need to use css to set the custom icon, please set the 'treeNode.iconSkin' attribute.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: undefined

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      String Format

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Icon image url can be a relative path or absolute path.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If use a relative path, please note the relationship between icon image and the page, ensure the correct image path.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of treeNode

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. Set the custom icon

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var nodes = [
                                                                                                                                                                                                                                                                                                                      +	//Only show one icon when it is expanded or collapsed.
                                                                                                                                                                                                                                                                                                                      +	{ name:"Parent Node 1", icon:"/img/parent.gif"},
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +	//Show two icons when it is expanded or collapsed.
                                                                                                                                                                                                                                                                                                                      +	{ name:"Parent Node 2", iconOpen:"/img/open.gif", iconClose:"/img/close.gif"},
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +	//the custom icon for leaf node
                                                                                                                                                                                                                                                                                                                      +	{ name:"Leaf Node", icon:"/img/leaf.gif"}
                                                                                                                                                                                                                                                                                                                      +]
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/treeNode.iconOpen.html b/alive-admin/target/classes/static/ztree/api/en/treeNode.iconOpen.html new file mode 100644 index 0000000..3203615 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/treeNode.iconOpen.html @@ -0,0 +1,33 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      StringtreeNode.iconOpen

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.core js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      URL path of parent node's custom icon when it is expanded.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. Only parent node support this attribute.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2. This attribute must be used simultaneously with 'iconClose' attribute.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      3. If you need to use css to set the custom icon, please set the 'treeNode.iconSkin' attribute.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: undefined

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      String Format

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Icon image url can be a relative path or absolute path.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If use a relative path, please note the relationship between icon image and the page, ensure the correct image path.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of treeNode

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. Set the custom icon

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var nodes = [
                                                                                                                                                                                                                                                                                                                      +	//Only show one icon when it is expanded or collapsed.
                                                                                                                                                                                                                                                                                                                      +	{ name:"Parent Node 1", icon:"/img/parent.gif"},
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +	//Show two icons when it is expanded or collapsed.
                                                                                                                                                                                                                                                                                                                      +	{ name:"Parent Node 2", iconOpen:"/img/open.gif", iconClose:"/img/close.gif"},
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +	//the custom icon for leaf node
                                                                                                                                                                                                                                                                                                                      +	{ name:"Leaf Node", icon:"/img/leaf.gif"}
                                                                                                                                                                                                                                                                                                                      +]
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/treeNode.iconSkin.html b/alive-admin/target/classes/static/ztree/api/en/treeNode.iconSkin.html new file mode 100644 index 0000000..fca7fbf --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/treeNode.iconSkin.html @@ -0,0 +1,43 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      StringtreeNode.iconSkin

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.core js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      The className of node's custom icon.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. You need to modify the css, add the definition of className.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2. The css is simple, convenient, and support the parent node to switch icons when it is expanded or collapsed.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      3. Recommend the use of CSS Sprites, can reduce repeating load the image, to avoid image flicker.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      4. The 'iconSkin' support IE6 in zTree v3.x.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      5. If you need to use image's URL to set the custom icon, please set the 'treeNode.icon' or 'treeNode.iconOpen' or 'treeNode.iconClose' attribute.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: undefined

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      String Format

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      The string about custom icon's className.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of css & treeNode

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. Set the custom icon

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      css example:
                                                                                                                                                                                                                                                                                                                      +.ztree li span.button.diy01_ico_open, .ztree li span.button.diy01_ico_close{...}
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +.ztree li span.button.diy02_ico_open{...}
                                                                                                                                                                                                                                                                                                                      +.ztree li span.button.diy02_ico_close{...}
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +.ztree li span.button.diy03_ico_docu{...}
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +node's data example:
                                                                                                                                                                                                                                                                                                                      +var nodes = [
                                                                                                                                                                                                                                                                                                                      +	//Only show one icon when it is expanded or collapsed.
                                                                                                                                                                                                                                                                                                                      +	{ name:"Parent Node 1", iconSkin:"diy01"},
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +	//Show two icons when it is expanded or collapsed.
                                                                                                                                                                                                                                                                                                                      +	{ name:"Parent Node 2", iconSkin:"diy02"},
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +	//the custom icon for leaf node
                                                                                                                                                                                                                                                                                                                      +	{ name:"Leaf Node", iconSkin:"diy03"}
                                                                                                                                                                                                                                                                                                                      +]
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/treeNode.isAjaxing.html b/alive-admin/target/classes/static/ztree/api/en/treeNode.isAjaxing.html new file mode 100644 index 0000000..ddadf41 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/treeNode.isAjaxing.html @@ -0,0 +1,26 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      BooleantreeNode.isAjaxing

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.core js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Judge whether the node's child nodes being loaded asynchronously.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Do not initialize or modify it, it is created by the zTree.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Boolean Format

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      true means: the node's child nodes is being loaded asynchronously

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      false means: the node's child nodes is not being loaded asynchronously

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of treeNode

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. Judge whether the first selected node's child nodes being loaded asynchronously

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var sNodes = treeObj.getSelectedNodes();
                                                                                                                                                                                                                                                                                                                      +if (sNodes.length > 0) {
                                                                                                                                                                                                                                                                                                                      +	var isAjaxing = sNodes[0].isAjaxing;
                                                                                                                                                                                                                                                                                                                      +}
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/treeNode.isFirstNode.html b/alive-admin/target/classes/static/ztree/api/en/treeNode.isFirstNode.html new file mode 100644 index 0000000..a8ee61c --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/treeNode.isFirstNode.html @@ -0,0 +1,28 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      BooleantreeNode.isFirstNode

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.core js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Judge whether the node is the sibling nodes's first node.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If you use the 'exhide' pack, so this attribute will only support the node which be shown.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Do not initialize or modify it, it is created by the zTree.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Boolean Format

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      true means: the node is first node.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      false means: the node is not first node.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If the node has been hidden, isFirstNode = false

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of treeNode

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. Judge whether the first selected node is the sibling nodes's first node.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var sNodes = treeObj.getSelectedNodes();
                                                                                                                                                                                                                                                                                                                      +if (sNodes.length > 0) {
                                                                                                                                                                                                                                                                                                                      +	var isFirstNode = sNodes[0].isFirstNode;
                                                                                                                                                                                                                                                                                                                      +}
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/treeNode.isHidden.html b/alive-admin/target/classes/static/ztree/api/en/treeNode.isHidden.html new file mode 100644 index 0000000..3a07b94 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/treeNode.isHidden.html @@ -0,0 +1,28 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      BooleantreeNode.isHidden

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.exhide js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Judge whether the node has been hidden.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. When initialize zTree, the nodes which be set 'isHidden = true' will be hidden.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2. Please don't change this attribute of the nodes which have been created. If you want to hide or show nodes, please use 'hideNode() / hideNodes() / showNode() / showNodes()' methods.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Boolean Format

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      true means: this node is hidden.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      false means: this node is shown.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of treeNode

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. Judge whether the first root node has been hidden.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var sNodes = treeObj.getNodes();
                                                                                                                                                                                                                                                                                                                      +if (sNodes.length > 0) {
                                                                                                                                                                                                                                                                                                                      +	var isHidden = sNodes[0].isHidden;
                                                                                                                                                                                                                                                                                                                      +}
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/treeNode.isHover.html b/alive-admin/target/classes/static/ztree/api/en/treeNode.isHover.html new file mode 100644 index 0000000..e18ed0c --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/treeNode.isHover.html @@ -0,0 +1,19 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      BooleantreeNode.isHover

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.exedit js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Used to record the hover status of node's DOM. For 'setting.view.addHoverDom / removeHoverDom'.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Do not initialize or modify it, it is an internal argument.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: false

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Boolean Format

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      true means: the node's DOM is in hover.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      false means: the node's DOM is not in hover.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/treeNode.isLastNode.html b/alive-admin/target/classes/static/ztree/api/en/treeNode.isLastNode.html new file mode 100644 index 0000000..cd2ca26 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/treeNode.isLastNode.html @@ -0,0 +1,28 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      BooleantreeNode.isLastNode

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.core js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Judge whether the node is the sibling nodes's last node.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If you use the 'exhide' pack, so this attribute will only support the node which be shown.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Do not initialize or modify it, it is created by the zTree.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Boolean Format

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      true means: the node is last node.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      false means: the node is not last node.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If the node has been hidden, isLastNode = false

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of treeNode

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. Judge whether the first selected node is the sibling nodes's last node.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var sNodes = treeObj.getSelectedNodes();
                                                                                                                                                                                                                                                                                                                      +if (sNodes.length > 0) {
                                                                                                                                                                                                                                                                                                                      +	var isLastNode = sNodes[0].isLastNode;
                                                                                                                                                                                                                                                                                                                      +}
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/treeNode.isParent.html b/alive-admin/target/classes/static/ztree/api/en/treeNode.isParent.html new file mode 100644 index 0000000..dad4b81 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/treeNode.isParent.html @@ -0,0 +1,28 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      BooleantreeNode.isParent

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.core js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Judge whether the node is the parent node.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. When zTree initialize the node data, the node which has children is set to true, otherwise false.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2. When zTree initialize the node data, if set treeNode.isParent to true, the node will be set to be parent node.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      3. In order to solve the problem of someone make json data, supporting "false", "true" format of the data string.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Boolean Format

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      true means: the node is parent node.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      false means: the node is not parent node.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of treeNode

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. Judge whether the first selected node is the parent node.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var sNodes = treeObj.getSelectedNodes();
                                                                                                                                                                                                                                                                                                                      +if (sNodes.length > 0) {
                                                                                                                                                                                                                                                                                                                      +	var isParent = sNodes[0].isParent;
                                                                                                                                                                                                                                                                                                                      +}
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/treeNode.level.html b/alive-admin/target/classes/static/ztree/api/en/treeNode.level.html new file mode 100644 index 0000000..d151162 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/treeNode.level.html @@ -0,0 +1,25 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      NumbertreeNode.level

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.core js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      The level of node

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Do not initialize or modify it, it is created by the zTree.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Number Format

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      The root node's level = 0, and next level = 1, ...

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of treeNode

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. Get the first selected node's level

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var sNodes = treeObj.getSelectedNodes();
                                                                                                                                                                                                                                                                                                                      +if (sNodes.length > 0) {
                                                                                                                                                                                                                                                                                                                      +	var level = sNodes[0].level;
                                                                                                                                                                                                                                                                                                                      +}
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/treeNode.name.html b/alive-admin/target/classes/static/ztree/api/en/treeNode.name.html new file mode 100644 index 0000000..fa508cc --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/treeNode.name.html @@ -0,0 +1,25 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      StringtreeNode.name

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.core js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      The node's name

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. If you want to change 'name' attribute, please modify the 'setting.data.key.name' attribute.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: undenfined

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      String Format

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      String object. The HTML special characters are escaped

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of treeNode

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. Set node's name to 'test1', 'test2', 'test3'

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var nodes = [
                                                                                                                                                                                                                                                                                                                      +	{ "id":1, "name":"test1"},
                                                                                                                                                                                                                                                                                                                      +	{ "id":2, "name":"test2"},
                                                                                                                                                                                                                                                                                                                      +	{ "id":3, "name":"test3"}
                                                                                                                                                                                                                                                                                                                      +]
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/treeNode.nocheck.html b/alive-admin/target/classes/static/ztree/api/en/treeNode.nocheck.html new file mode 100644 index 0000000..6c4880c --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/treeNode.nocheck.html @@ -0,0 +1,26 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      BooleantreeNode.nocheck

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.excheck js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. Set node to hide the checkbox or radio. It is valid when [setting.check.enable = true]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2. zTree support identification string 'true' & 'false'.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: false

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Boolean Format

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      true means: the node hide the checkbox or radio, and don't affect the checked association, and don't affect its parent node's half-checked status.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      false means: the node show the checkbox or radio.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of treeNode

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. Hide some node's checkbox / radio

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var nodes = [
                                                                                                                                                                                                                                                                                                                      +	{ "id":1, "name":"test1", "nocheck":true},
                                                                                                                                                                                                                                                                                                                      +	{ "id":2, "name":"test2"},
                                                                                                                                                                                                                                                                                                                      +	{ "id":3, "name":"test3"}
                                                                                                                                                                                                                                                                                                                      +]
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/treeNode.open.html b/alive-admin/target/classes/static/ztree/api/en/treeNode.open.html new file mode 100644 index 0000000..f9d7972 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/treeNode.open.html @@ -0,0 +1,29 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      BooleantreeNode.open

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.core js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Used to record the parent node's expand status.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. When zTree initialize the node data, if you set treeNode.open = true, zTree will default expand this parent node.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2. Leaf node's 'open' attribute is false.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      3. In order to solve the problem of someone make json data, supporting "false", "true" format of the data string.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: false

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Boolean Format

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      true means: the parent node is expanded.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      false means: the parent node is collapsed.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of treeNode

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. Get the first selected node's expand status.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var sNodes = treeObj.getSelectedNodes();
                                                                                                                                                                                                                                                                                                                      +if (sNodes.length > 0) {
                                                                                                                                                                                                                                                                                                                      +	var isOpen = sNodes[0].open;
                                                                                                                                                                                                                                                                                                                      +}
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/treeNode.parentTId.html b/alive-admin/target/classes/static/ztree/api/en/treeNode.parentTId.html new file mode 100644 index 0000000..0bc2a6d --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/treeNode.parentTId.html @@ -0,0 +1,27 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      StringtreeNode.parentTId

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.core js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      The unique identifier of node's parent node.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. zTree v3.x using 'parentTId' replaced the original 'parentNode' attribute, and increased getParentNode () method, in order to avoid the original 'parentNode' cause the clone () method infinite loop.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2. Do not initialize or modify it, it is created by the zTree.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      String Format

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      String object of node's parent node's tId. please see API about 'treeNode.tId'

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If treeNode is root node, parentTId is null.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of treeNode

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. Get the first selected node's parent node's tId

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var sNodes = treeObj.getSelectedNodes();
                                                                                                                                                                                                                                                                                                                      +if (sNodes.length > 0) {
                                                                                                                                                                                                                                                                                                                      +	var parentTId = sNodes[0].parentTId;
                                                                                                                                                                                                                                                                                                                      +}
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/treeNode.tId.html b/alive-admin/target/classes/static/ztree/api/en/treeNode.tId.html new file mode 100644 index 0000000..18c2855 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/treeNode.tId.html @@ -0,0 +1,25 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      StringtreeNode.tId

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.core js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      The unique identifier of node.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Do not initialize or modify it, it is created by the zTree.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      String Format

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      tId rules: setting.treeId + "_" + zTree counter

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of treeNode

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. Get the first selected node's tId

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var sNodes = treeObj.getSelectedNodes();
                                                                                                                                                                                                                                                                                                                      +if (sNodes.length > 0) {
                                                                                                                                                                                                                                                                                                                      +	var tId = sNodes[0].tId;
                                                                                                                                                                                                                                                                                                                      +}
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/treeNode.target.html b/alive-admin/target/classes/static/ztree/api/en/treeNode.target.html new file mode 100644 index 0000000..176a7a3 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/treeNode.target.html @@ -0,0 +1,24 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      StringtreeNode.target

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.core js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Used to set the target where the node is clicked to open url. It is valid when [treeNode.url exists]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: undefined

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      String Format

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      As same as <a> tag's 'target' attribute. e.g. '_blank', '_self' or other window name.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      if this attribute is omitted, zTree default set it to '_blank'

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Exmaples of treeNode

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. Set target is '_blank'

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var nodes = [
                                                                                                                                                                                                                                                                                                                      +	{ "id":1, "name":"test1", "url":"http://myTest.com", "target":"_blank"},
                                                                                                                                                                                                                                                                                                                      +	......
                                                                                                                                                                                                                                                                                                                      +]
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/treeNode.url.html b/alive-admin/target/classes/static/ztree/api/en/treeNode.url.html new file mode 100644 index 0000000..5552445 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/treeNode.url.html @@ -0,0 +1,25 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      StringtreeNode.url

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.core js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      The URL of node link

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. In edit mode (setting.edit.enable = true) , this feature fails. If you must use a similar feature, please use the 'onClick' callback for their own control.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2. If you use the 'onClick' callback function to control opening URL , then set the URL in the other custom attribute, do not use the 'url' attribute.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default: undefined

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      String Format

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      As same as <a> tag's 'href' attribute.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of treeNode

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. Set the URL is 'g.cn'

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var nodes = [
                                                                                                                                                                                                                                                                                                                      +	{ "id":1, "name":"Google CN", "url":"http://g.cn"},
                                                                                                                                                                                                                                                                                                                      +	......
                                                                                                                                                                                                                                                                                                                      +]
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/treeNode.zAsync.html b/alive-admin/target/classes/static/ztree/api/en/treeNode.zAsync.html new file mode 100644 index 0000000..b3ff414 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/treeNode.zAsync.html @@ -0,0 +1,28 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      BooleantreeNode.zAsync

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.core js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Judge whether the parent node's child nodes will be loaded asynchronously when the parent node is expanded.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Do not initialize or modify it, it is created by the zTree.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Default:false (the parent node which have no child nodes); true (the parent node which have child nodes or the leaf node)

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Boolean Format

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      true means: the node's child nodes will not be loaded asynchronously when the parent node is expanded.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      false means: the node's child nodes will be loaded asynchronously when the parent node is expanded.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      This attribute will not effect to 'reAsyncChildNodes()' method

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of treeNode

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. Judge whether the first selected node's child nodes has been loaded asynchronously

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var sNodes = treeObj.getSelectedNodes();
                                                                                                                                                                                                                                                                                                                      +if (sNodes.length > 0) {
                                                                                                                                                                                                                                                                                                                      +	var zAsync = sNodes[0].zAsync;
                                                                                                                                                                                                                                                                                                                      +}
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/zTreeObj.addNodes.html b/alive-admin/target/classes/static/ztree/api/en/zTreeObj.addNodes.html new file mode 100644 index 0000000..680ccc4 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/zTreeObj.addNodes.html @@ -0,0 +1,42 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(parentNode, newNodes, isSilent)zTreeObj.addNodes

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.core js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Add nodes

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      In order to avoid duplication data resulting from repeated initialization, zTree v3.x will automatically clone node data when zTree initialized or add nodes. If you need to get the data objects within the zTree, please get the return value of this method.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Please use zTree object to executing the method.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function Parameter Descriptions

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      parentNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      The additional node's parent node. If additional node is root node, please the parentNode is null.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Please ensure this node data object is a data object within zTree.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      newNodesJSON / Array(JSON)

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      The node data's JSON object collection which need to increase, refer to 'treeNode treeNode data details'

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. zTree v3.x support to add single node, that is, if you only add a node, you can don't use the array.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2. If you use simple data model, please refer to the attributes within the 'setting.data.simpleData'.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      isSilentBoolean

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Set whether to automatically expand the parent node, after add nodes.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      isSilent = true means: don't auto expand the parent node. Otherwise auto expand.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Return Array(JSON)

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      return the new nodes in zTree

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If the newNodes is single data object, the return value is a array with length is 1.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Note: the node data JSON object in the return value is not equal to the JSON object in the 'newNodes'.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of function

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. Add one root node to zTree which id is 'tree'

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var newNode = {name:"newNode1"};
                                                                                                                                                                                                                                                                                                                      +newNode = treeObj.addNodes(null, newNode);
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2. Add three root nodes to zTree which id is 'tree'

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var newNodes = [{name:"newNode1"}, {name:"newNode2"}, {name:"newNode3"}];
                                                                                                                                                                                                                                                                                                                      +newNodes = treeObj.addNodes(null, newNodes);
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/zTreeObj.cancelEditName.html b/alive-admin/target/classes/static/ztree/api/en/zTreeObj.cancelEditName.html new file mode 100644 index 0000000..8afdae0 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/zTreeObj.cancelEditName.html @@ -0,0 +1,30 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(newName)zTreeObj.cancelEditName

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.exedit js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Cancel the edit name status. Can restore the original name, and can also force assigned to a new name.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Please use zTree object to executing the method.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function Parameter Descriptions

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      newNameString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Re given a new name

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If this parameter is omitted, then restore the original name.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Return none

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      no return value

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of function

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. Cancel edit name, and restore the original name.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +treeObj.cancelEditName();
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2. Cancel edit name , and set the new name.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +treeObj.cancelEditName("test_new_name");
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/zTreeObj.cancelSelectedNode.html b/alive-admin/target/classes/static/ztree/api/en/zTreeObj.cancelSelectedNode.html new file mode 100644 index 0000000..581c2d2 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/zTreeObj.cancelSelectedNode.html @@ -0,0 +1,35 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(treeNode)zTreeObj.cancelSelectedNode

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.core js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      To cancel the selected node.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      zTree v3.x support to select multiple nodes, so you can cancel a single selected node, and you can cancel all of the selected nodes too.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Please use zTree object to executing the method.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function Parameter Descriptions

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      JSON data object of the node which need to cancel selected.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Please ensure that this data object is an internal node data object in zTree.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If you omit this parameter, zTree will cancel all of the selected nodes.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Return none

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      no return value

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of function

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. Cancel all of the selected nodes

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +treeObj.cancelSelectedNode();
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2. Cancel the first node of the selected nodes

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var nodes = treeObj.getSelectedNode();
                                                                                                                                                                                                                                                                                                                      +if (nodes.length>0) { 
                                                                                                                                                                                                                                                                                                                      +	treeObj.cancelSelectedNode(nodes[0]);
                                                                                                                                                                                                                                                                                                                      +}
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/zTreeObj.checkAllNodes.html b/alive-admin/target/classes/static/ztree/api/en/zTreeObj.checkAllNodes.html new file mode 100644 index 0000000..276b629 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/zTreeObj.checkAllNodes.html @@ -0,0 +1,29 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(checked)zTreeObj.checkAllNodes

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.excheck js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Check or unCheck all nodes which have been initialized. It is valid when [setting.check.enable = true & setting.check.chkStyle = "checkbox"]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      This method does not trigger 'beforeCheck' or 'onCheck' callback function.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Please use zTree object to executing the method.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function Parameter Descriptions

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      checkedBoolean

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      checked = true means: check all nodes.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      checked = false means: uncheck all nodes.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Don't affect the node which 'nochecked' attribute is true.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Don't affect the node is not loaded.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Return none

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      no return value

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of function

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. check all nodes

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +treeObj.checkAllNodes(true);
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/zTreeObj.checkNode.html b/alive-admin/target/classes/static/ztree/api/en/zTreeObj.checkNode.html new file mode 100644 index 0000000..7411ef8 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/zTreeObj.checkNode.html @@ -0,0 +1,44 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(treeNode, checked, checkTypeFlag, callbackFlag)zTreeObj.checkNode

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.excheck js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Check or unCheck a single node. It is valid when [setting.check.enable = true]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Use checkNode() method of zTree v3.x can trigger 'beforeCheck' or 'onCheck' callback function. for reduce redundant code.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Please use zTree object to executing the method.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function Parameter Descriptions

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      JSON data object of the node which need to be checked or unchecked.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Please ensure that this data object is an internal node data object in zTree.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      checkedBoolean

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      checked = true means: check node.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      checked = false means: uncheck node.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If this parameter is omitted, then toggle check or uncheck depend this node's expanded state.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Don't affect the node which 'nochecked' attribute is true.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      checkTypeFlagBoolean

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      checkTypeFlag = true means: According to 'setting.check.chkboxType' attribute automatically check or uncheck the parent and child nodes.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      checkTypeFlag = false means: only check or uncheck this node, don't affect its parent and child nodes.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      When checkTypeFlag = false and treeNode.checked = checked, will not trigger callback function.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Don't affect the parent and child nodes which 'nochecked' attribute is true.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      callbackFlagBoolean

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      callbackFlag = true means: call this method, will trigger 'beforeCheck' & 'onCheck' callback.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      callbackFlag = false means: call this method, will not trigger callback.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If this parameter is omitted, it is same as 'callbackFlag = false'

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Return none

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      no return value

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of function

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. check the selected nodes

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var nodes = treeObj.getSelectedNodes();
                                                                                                                                                                                                                                                                                                                      +for (var i=0, l=nodes.length; i < l; i++) {
                                                                                                                                                                                                                                                                                                                      +	treeObj.checkNode(nodes[i], true, true);
                                                                                                                                                                                                                                                                                                                      +}
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/zTreeObj.copyNode.html b/alive-admin/target/classes/static/ztree/api/en/zTreeObj.copyNode.html new file mode 100644 index 0000000..a98e84d --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/zTreeObj.copyNode.html @@ -0,0 +1,47 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(targetNode, treeNode, moveType, isSilent)zTreeObj.copyNode

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.exedit js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Copy the node

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      When copy nodes, zTree v3.x will clone nodes. If you need to get the data object in zTree, please get the return value of this method.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Please use zTree object to executing the method.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function Parameter Descriptions

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      targetNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      JSON data object of the node which will be target.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If copy the node to root node, please set the 'targetNode' to null.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Please ensure that this data object is an internal node data object in zTree.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      JSON data object of the node which will be copied.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Please ensure that this data object is an internal node data object in zTree.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      moveTypeString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Copied to the target node's relative position.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      "inner" means: to be taregetNode's child node.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      "prev" means: to be taregetNode's previous sibling node.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      "next" means: to be taregetNode's next sibling node.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      isSilentBoolean

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      After copy the node, whether to automatically expand its parent node.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      isSilent = true means: don't expand its parent node.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      isSilent = false or omit this parameter means: expand its parent node.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Return JSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      return the new node in zTree

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Note: the node data JSON object in the return value is not equal to the treeNode.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of function

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. Copy the second root node to the first root node's child node.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var nodes = treeObj.getNodes();
                                                                                                                                                                                                                                                                                                                      +treeObj.copyNode(nodes[0], nodes[1], "inner");
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2. Copy the second root node to the first root node's previous sibling node.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var nodes = treeObj.getNodes();
                                                                                                                                                                                                                                                                                                                      +treeObj.copyNode(nodes[0], nodes[1], "before");
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/zTreeObj.destroy.html b/alive-admin/target/classes/static/ztree/api/en/zTreeObj.destroy.html new file mode 100644 index 0000000..80c5281 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/zTreeObj.destroy.html @@ -0,0 +1,25 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(treeId)zTreeObj.destroy

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.core js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      From zTree v3.4, zTree support the method for destruction.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. This method can destroy the zTreeObj's zTree.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2. If you want to destory all of the zTrees, you can use the '$.fn.zTree.destroy()' method.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      3. If you want to use the tree which has been destroyed, you must use the 'init()' method at first.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function Parameter Descriptions

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Return none

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      no return value

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of function

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. destroy the zTree which its id is 'treeDemo'

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var zTreeObj = $.fn.zTree.getZTreeObj("treeDemo");
                                                                                                                                                                                                                                                                                                                      +zTreeObj.destroy();
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/zTreeObj.editName.html b/alive-admin/target/classes/static/ztree/api/en/zTreeObj.editName.html new file mode 100644 index 0000000..92ac5c1 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/zTreeObj.editName.html @@ -0,0 +1,29 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(treeNode)zTreeObj.editName

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.exedit js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Start editing the node's name.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. If need to cancel editing the node's name, please use cancelEditName(newName) method.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2. This method can be used to set the editing node‘s input box to get focus.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      3. Please use zTree object to executing the method.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function Parameter Descriptions

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      JSON data object of the node which will be editing name

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Please ensure that this data object is an internal node data object in zTree.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Retrun none

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      no return value

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of function

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. Start editing the first selected node's name.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var nodes = treeObj.getNodes();
                                                                                                                                                                                                                                                                                                                      +treeObj.editName(nodes[0]);
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/zTreeObj.expandAll.html b/alive-admin/target/classes/static/ztree/api/en/zTreeObj.expandAll.html new file mode 100644 index 0000000..ef28a31 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/zTreeObj.expandAll.html @@ -0,0 +1,30 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(expandFlag)zTreeObj.expandAll

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.core js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Expand or collapse all nodes.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      This method does not trigger 'beforeExpand / onExpand' or 'beforeCollapse / onCollapse' callback function.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Please use zTree object to executing the method.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function Parameter Descriptions

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      expandFlagBoolean

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      expandFlag = true means: expand all nodes.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      expandFlag = false means: collapse all nodes.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Return Boolean

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      return the result of expand or collapse.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      true means: expand all nodes

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      false means: collapse all nodes

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      null means: have no parent node to expand or collapse.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of function

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. Expand all nodes

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +treeObj.expandAll(true);
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/zTreeObj.expandNode.html b/alive-admin/target/classes/static/ztree/api/en/zTreeObj.expandNode.html new file mode 100644 index 0000000..2f2aac2 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/zTreeObj.expandNode.html @@ -0,0 +1,50 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(treeNode, expandFlag, sonSign, focus, callbackFlag)zTreeObj.expandNode

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.core js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Expand or collapse single node.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Use expandNode() method of zTree v3.x can trigger 'beforeExpand / onExpand' or 'beforeCollapse / onCollapse' callback function. for reduce redundant code.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Please use zTree object to executing the method.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function Parameter Descriptions

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      JSON data object of the node which will be expanded or collapsed

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Please ensure that this data object is an internal node data object in zTree.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      expandFlagBoolean

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      expandFlag = true means: expand the node.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      expandFlag = false means: collapse the node.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If this parameter is omitted, then toggle expand or collapse depend this node's expanded state.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      sonSignBoolean

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      sonSign = true means: expand or collapse all of the child nodes depend the 'expandFlag' parameter.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      sonSign = false means: only expand or collapse this node.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      When sonSign = false and treeNode.open = expandFlag, will not trigger the callback.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If this parameter is omitted, it is same as 'sonSign = false'.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      focusBoolean

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      focus = true means: after expand or collapse, set the focus of this node for view.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      focus = false means: after expand or coolapse, don't set the focus of this node.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If this parameter is omitted, it is same as 'focus = true'.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      callbackFlagBoolean

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      callbackFlag = true means: call this method, will trigger 'beforeExpand / onExpand' or 'beforeCollapse / onCollapse' callback.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      callbackFlag = false means: call this method, will not trigger callback.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If this parameter is omitted, it is same as 'callbackFlag = false'

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Return Boolean

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      return the result of expand or collapse.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      true means: expand node

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      false means: collapse node

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      null means: the node is not parent node.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of function

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. Expand the first selected node. (and expand this node's child nodes)

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var nodes = treeObj.getSelectedNode();
                                                                                                                                                                                                                                                                                                                      +if (nodes.length>0) {
                                                                                                                                                                                                                                                                                                                      +	treeObj.expandNode(nodes[0], true, true, true);
                                                                                                                                                                                                                                                                                                                      +}
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/zTreeObj.getChangeCheckedNodes.html b/alive-admin/target/classes/static/ztree/api/en/zTreeObj.getChangeCheckedNodes.html new file mode 100644 index 0000000..d0f9cf3 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/zTreeObj.getChangeCheckedNodes.html @@ -0,0 +1,24 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function()zTreeObj.getChangeCheckedNodes

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.excheck js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Get the collection of nodes which be changed checked status. (Compared with the original data checkedOld) It is valid when [setting.check.enable = true]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Please use zTree object to executing the method.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function Parameter Descriptions

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Return Array(JSON)

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      return the collection of nodes which be changed checked status (Array)

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If you need to get the collection of nodes which changed the checked status, when nodes be checked or unchecked, so please set treeNode.checkedOld = treeNode.checked ( for all of the be changed checked status nodes ).

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of function

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. Get the collection of nodes which be changed checked status

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var nodes = treeObj.getChangeCheckedNodes();
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/zTreeObj.getCheckedNodes.html b/alive-admin/target/classes/static/ztree/api/en/zTreeObj.getCheckedNodes.html new file mode 100644 index 0000000..7a7c3b9 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/zTreeObj.getCheckedNodes.html @@ -0,0 +1,28 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(checked)zTreeObj.getCheckedNodes

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.excheck js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Get the collection of nodes which be checked or unchecked. It is valid when [setting.check.enable = true]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Please use zTree object to executing the method.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function Parameter Descriptions

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      checkedBoolean

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      checked = true means: get the collection of nodes which be checked

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      checked = false means: get the collection of nodes which be unchecked

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If this parameter is omitted, it is same as 'checked = true'

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Don't get the nodes which 'nochecked' attribute is true.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Return Array(JSON)

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      return the collection of nodes which be checked or unchecked. (Array)

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of function

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. Get the collection of nodes which be checked.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var nodes = treeObj.getCheckedNodes(true);
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/zTreeObj.getNodeByParam.html b/alive-admin/target/classes/static/ztree/api/en/zTreeObj.getNodeByParam.html new file mode 100644 index 0000000..05572e7 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/zTreeObj.getNodeByParam.html @@ -0,0 +1,32 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(key, value, parentNode)zTreeObj.getNodeByParam

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.core js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      According to the node data attribute, search the node which exactly matches, and get the JSON object of node.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Please use zTree object to executing the method.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function Parameter Descriptions

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      keyString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      The name of attribute which need to exactly match

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      value?

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      The value which need to exactly match, can be any type, please ensure its type consistent with the attribute values.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      parentNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      The search range, you can search node from a parent node's child nodes.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If this parameter is omitted, zTree will search node from all nodes.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Return JSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      JSON data object of the node which be searched.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. If search none node, return null.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2. If there are many nodes can be searched, return the first node.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of function

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. Search the node which its 'id' attribute is 1.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var node = treeObj.getNodeByParam("id", 1, null);
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/zTreeObj.getNodeByTId.html b/alive-admin/target/classes/static/ztree/api/en/zTreeObj.getNodeByTId.html new file mode 100644 index 0000000..8fd26ea --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/zTreeObj.getNodeByTId.html @@ -0,0 +1,27 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(tId)zTreeObj.getNodeByTId

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.core js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      According the unique identifier tId of zTree, quick get the node's JSON data object.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Get the node from the cache, don't need to search from all nodes.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Please use zTree object to executing the method.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function Parameter Descriptions

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      tIdString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      The unique identifier of node.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Return JSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      JSON data object of the node which be searched.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If no result, return null.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of function

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. 1. Search the node which its 'tId' attribute is 'tree_10'

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var node = treeObj.getNodeByTId("tree_10");
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/zTreeObj.getNodeIndex.html b/alive-admin/target/classes/static/ztree/api/en/zTreeObj.getNodeIndex.html new file mode 100644 index 0000000..ad828e7 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/zTreeObj.getNodeIndex.html @@ -0,0 +1,30 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(treeNode)zTreeObj.getNodeIndex

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.core js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Get the node's index in the same level nodes. (start from 0)

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Please use zTree object to executing the method.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function Parameter Descriptions

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      JSON data object of the node which need to get index.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Please ensure that this data object is an internal node data object in zTree.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Return Number

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      return the index. (start from 0)

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If there is no this node, return -1.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of function

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. Get the first selected node's index in the same level nodes.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var nodes = treeObj.getSelectedNodes();
                                                                                                                                                                                                                                                                                                                      +if (nodes.length>0) {
                                                                                                                                                                                                                                                                                                                      +	var index = treeObj.getNodeIndex(nodes[0]);
                                                                                                                                                                                                                                                                                                                      +}
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/zTreeObj.getNodes.html b/alive-admin/target/classes/static/ztree/api/en/zTreeObj.getNodes.html new file mode 100644 index 0000000..5906a43 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/zTreeObj.getNodes.html @@ -0,0 +1,26 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function()zTreeObj.getNodes

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.core js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Get all of the nodes in zTree

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Please use zTree object to executing the method.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function Parameter Descriptions

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Return Array(JSON)

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      return all of the nodes

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. This array is a collection of the root nodes (the default child nodes are in the 'children' attributes);

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2. Traverse all the nodes need to use recursion, or the use of transformToArray() method make the nodes to be a simple array.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      3. For the asynchronous loading mode, can't get the nodes which are yet loaded.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of function

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. Get all of the nodes

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var nodes = treeObj.getNodes();
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/zTreeObj.getNodesByFilter.html b/alive-admin/target/classes/static/ztree/api/en/zTreeObj.getNodesByFilter.html new file mode 100644 index 0000000..2cd6baa --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/zTreeObj.getNodesByFilter.html @@ -0,0 +1,43 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(filter, isSingle, parentNode, invokeParam)zTreeObj.getNodesByFilter

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.core js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Search the single node's data or collection of nodes's data by custom rules.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Can be customized complex search rules.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Please use zTree object to executing the method.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function Parameter Descriptions

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      filterFunction

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Custom search function. e.g. function filter(node) {...}

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      filter's parameter: node (node's data -- JSON)

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      filter's return: boolean (true means: match the rules; false means: don't match the rules)

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      isSingleBoolean

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      isSingle = true means: search only one node

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      isSingle = false means: search the array of the nodes

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If this parameter is omitted, as same as false

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      parentNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      The search range, you can search node from a parent node's child nodes.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If this parameter is omitted, zTree will search node from all nodes.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      invokeParamanything

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Custom data object by user, used to calculate in the filter function.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Return Array(JSON) / JSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If isSingle = true, will return the first node's data (JSON) what be matched. If no match, return null.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If isSingle = false, will return the array of all nodes's data what be matched. if no match, return [ ].

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of function

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. Search the nodes which their 'name' contains 'test' and 'level' is 2.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      function filter(node) {
                                                                                                                                                                                                                                                                                                                      +    return (node.level == 2 && node.name.indexOf("test")>-1);
                                                                                                                                                                                                                                                                                                                      +}
                                                                                                                                                                                                                                                                                                                      +......
                                                                                                                                                                                                                                                                                                                      +var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var node = treeObj.getNodesByFilter(filter, true); // search only one node
                                                                                                                                                                                                                                                                                                                      +var nodes = treeObj.getNodesByFilter(filter); // search the array of the nodes
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/zTreeObj.getNodesByParam.html b/alive-admin/target/classes/static/ztree/api/en/zTreeObj.getNodesByParam.html new file mode 100644 index 0000000..3173af4 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/zTreeObj.getNodesByParam.html @@ -0,0 +1,31 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(key, value, parentNode)zTreeObj.getNodesByParam

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.core js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      According to the node data attribute, search the nodes which exactly matches, and get the JSON objects collection of nodes.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Please use zTree object to executing the method.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function Parameter Descriptions

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      keyString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      The name of attribute which need to exactly match

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      value?

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      The value which need to exactly match, can be any type, please ensure its type consistent with the attribute values.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      parentNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      The search range, you can search node from a parent node's child nodes.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If this parameter is omitted, zTree will search node from all nodes.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Return Array(JSON)

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      The JSON data objects collection of the nodes which be searched.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If search none node, return [ ].

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of function

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. Search the nodes which their 'name' attribute is 'test'.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var nodes = treeObj.getNodesByParam("name", "test", null);
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/zTreeObj.getNodesByParamFuzzy.html b/alive-admin/target/classes/static/ztree/api/en/zTreeObj.getNodesByParamFuzzy.html new file mode 100644 index 0000000..14b6c29 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/zTreeObj.getNodesByParamFuzzy.html @@ -0,0 +1,32 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(key, value, parentNode)zTreeObj.getNodesByParamFuzzy

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.core js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      According to the node data attribute, search the nodes which fuzzy matches, and get the JSON objects collection of nodes.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Please use zTree object to executing the method.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function Parameter Descriptions

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      keyString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      The name of attribute which need to fuzzy match

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      valueString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      The value which need to fuzzy match.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      The type of value can only be String

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      parentNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      The search range, you can search node from a parent node's child nodes.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If this parameter is omitted, zTree will search node from all nodes.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Return Array(JSON)

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      The JSON data objects collection of the nodes which be searched.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If search none node, return [ ].

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of function

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. Search the nodes which their 'name' attribute contains the string 'test'.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var nodes = treeObj.getNodesByParamFuzzy("name", "test", null);
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/zTreeObj.getSelectedNodes.html b/alive-admin/target/classes/static/ztree/api/en/zTreeObj.getSelectedNodes.html new file mode 100644 index 0000000..4a0f060 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/zTreeObj.getSelectedNodes.html @@ -0,0 +1,23 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function()zTreeObj.getSelectedNodes

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.core js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Get the JSON data objects collection of the selected nodes in zTree.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Please use zTree object to executing the method.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function Parameter Descriptions

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Return Array(JSON)

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      The JSON data objects collection of the selected nodes.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of function

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. get the selected nodes

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var nodes = treeObj.getSelectedNodes();
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/zTreeObj.hideNode.html b/alive-admin/target/classes/static/ztree/api/en/zTreeObj.hideNode.html new file mode 100644 index 0000000..f02f523 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/zTreeObj.hideNode.html @@ -0,0 +1,29 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(treeNode)zTreeObj.hideNode

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.exhide js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      To hide any node.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. This feature can't support the 'exedit' feature, so please don't use this feature in edit mode.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2. If you hide or show the nodes, it will effect the 'isFirstNode' and 'isLastNode' attribute.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      3. Please use zTree object to executing the method.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function Parameter Descriptions

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      JSON data object of the node which will be hidden

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Please ensure that this data object is an internal node data object in zTree.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Retrun none

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      no return value

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of function

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. hide the first root node.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var nodes = treeObj.getNodes();
                                                                                                                                                                                                                                                                                                                      +treeObj.hideNode(nodes[0]);
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/zTreeObj.hideNodes.html b/alive-admin/target/classes/static/ztree/api/en/zTreeObj.hideNodes.html new file mode 100644 index 0000000..9bf8e6b --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/zTreeObj.hideNodes.html @@ -0,0 +1,29 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(treeNodes)zTreeObj.hideNodes

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.exhide js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      To hide a group of nodes.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. This feature can't support the 'exedit' feature, so please don't use this feature in edit mode.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2. If you hide or show the nodes, it will effect the 'isFirstNode' and 'isLastNode' attribute.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      3. Please use zTree object to executing the method.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function Parameter Descriptions

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodesArray(JSON)

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      the array of the nodes which will be hidden

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Please ensure that this data object is an internal node data object in zTree.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Retrun none

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      no return value

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of function

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. hide the first root node's children.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var nodes = treeObj.getNodes();
                                                                                                                                                                                                                                                                                                                      +treeObj.hideNodes(nodes[0].children);
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/zTreeObj.moveNode.html b/alive-admin/target/classes/static/ztree/api/en/zTreeObj.moveNode.html new file mode 100644 index 0000000..cb1e4df --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/zTreeObj.moveNode.html @@ -0,0 +1,49 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(targetNode, treeNode, moveType, isSilent)zTreeObj.moveNode

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.exedit js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Move the node

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Please use zTree object to executing the method.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function Parameter Descriptions

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      targetNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      JSON data object of the node which will be target.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If move the node to root node, please set the 'targetNode' to null.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Please ensure that this data object is an internal node data object in zTree.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      JSON data object of the node which will be moved.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Please ensure that this data object is an internal node data object in zTree.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      moveTypeString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Moved to the target node's relative position.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      "inner" means: to be taregetNode's child node.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      "prev" means: to be taregetNode's previous sibling node.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      "next" means: to be taregetNode's next sibling node.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      isSilentBoolean

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      After move the node, whether to automatically expand its parent node.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      isSilent = true means: don't expand its parent node.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      isSilent = false or omit this parameter means: expand its parent node.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Return JSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      return the node which be moved, it is same as the 'treeNode' parameter.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Return null means: move node has failed. The cause:
                                                                                                                                                                                                                                                                                                                      +  1. the targetNode is the treeNode's parent node, and moveType = "inner"
                                                                                                                                                                                                                                                                                                                      +  2. the targetNode is the treeNode's child node. +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of function

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. Move the second root node to the first root node's child node.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var nodes = treeObj.getNodes();
                                                                                                                                                                                                                                                                                                                      +treeObj.moveNode(nodes[0], nodes[1], "inner");
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2. Move the second root node to the first root node's previous sibling node.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var nodes = treeObj.getNodes();
                                                                                                                                                                                                                                                                                                                      +treeObj.moveNode(nodes[0], nodes[1], "before");
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/zTreeObj.reAsyncChildNodes.html b/alive-admin/target/classes/static/ztree/api/en/zTreeObj.reAsyncChildNodes.html new file mode 100644 index 0000000..63a0896 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/zTreeObj.reAsyncChildNodes.html @@ -0,0 +1,42 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(parentNode, reloadType, isSilent)zTreeObj.reAsyncChildNodes

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.core js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Forced asynchronous loading child nodes of parent node. It is valid when [setting.async.enable = true]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      You can use this method to reload child nodes.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Please use zTree object to executing the method.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function Parameter Descriptions

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      parentNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      The parent node which will asynchronous loading child nodes.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. If parentNode = null, it is same as reload root nodes.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2. If parentNode.isParent = false, don't load nodes.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      3. Please ensure that this data object is an internal node data object in zTree.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      reloadTypeString

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      reloadType = "refresh" means: reload child nodes.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      reloadType != "refresh" means: append to load child nodes.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      isSilentBoolean

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Set whether to automatically expand the parent node, after load nodes.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      isSilent = true means: don't auto expand the parent node. Otherwise auto expand.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Return none

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      no return value

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of function

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. reload root nodes

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +treeObj.reAsyncChildNodes(null, "refresh");
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2. reload the first selected node's child nodes.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var nodes = treeObj.getSelectedNodes();
                                                                                                                                                                                                                                                                                                                      +if (nodes.length>0) {
                                                                                                                                                                                                                                                                                                                      +	treeObj.reAsyncChildNodes(nodes[0], "refresh");
                                                                                                                                                                                                                                                                                                                      +}
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/zTreeObj.refresh.html b/alive-admin/target/classes/static/ztree/api/en/zTreeObj.refresh.html new file mode 100644 index 0000000..8316192 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/zTreeObj.refresh.html @@ -0,0 +1,24 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function()zTreeObj.refresh

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.core js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Refresh zTree

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If you have no special need, try not to use this method. If you refresh single node, please use updateNode() method. If you refresh child nodes in dynamic mode, please use the reAsyncChildNodes() method.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Please use zTree object to executing the method.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function Parameter Descriptions

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Return none

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      no return value

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of function

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. refresh zTree

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +treeObj.refresh();
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/zTreeObj.removeChildNodes.html b/alive-admin/target/classes/static/ztree/api/en/zTreeObj.removeChildNodes.html new file mode 100644 index 0000000..c249e17 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/zTreeObj.removeChildNodes.html @@ -0,0 +1,32 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(parentNode)zTreeObj.removeChildNodes

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.core js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Remove a parent node's child nodes

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. After remove child nodes, the parent node will become a leaf node. Such as the need to maintain the parent node is still a parent node, set 'setting.data.keep.parent' attribute.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2. Do not use this method to empty the root. If you need to empty the root, you can initialization zTree, and set the initial nodes is null.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      3. This method does not trigger any callback function.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Please use zTree object to executing the method.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function Parameter Descriptions

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      parentNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      The parent node which need to clear its child nodes.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Please ensure that this data object is an internal node data object in zTree.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Return Array(JSON)

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Return the parent node's child nodes which have been removed. If has no child nodes, return null.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of function

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. Remove the first selected node's child nodes

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var nodes = treeObj.getSelectedNodes();
                                                                                                                                                                                                                                                                                                                      +if (nodes && nodes.length>0) {
                                                                                                                                                                                                                                                                                                                      +	treeObj.removeChildNodes(nodes[0]);
                                                                                                                                                                                                                                                                                                                      +}
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/zTreeObj.removeNode.html b/alive-admin/target/classes/static/ztree/api/en/zTreeObj.removeNode.html new file mode 100644 index 0000000..0f187c7 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/zTreeObj.removeNode.html @@ -0,0 +1,34 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(treeNode, callbackFlag)zTreeObj.removeNode

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.core js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Remove a node

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Use removeNode() method of zTree v3.x can trigger 'beforeRemove / onRemove' callback function. for reduce redundant code.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Please use zTree object to executing the method.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function Parameter Descriptions

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      JSON data object of the node which will be removed.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Please ensure that this data object is an internal node data object in zTree.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      callbackFlagBoolean

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      callbackFlag = true means: call this method, will trigger 'beforeCheck' & 'onCheck' callback.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      callbackFlag = false means: call this method, will not trigger callback.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If this parameter is omitted, it is same as 'callbackFlag = false'

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Return none

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      no return value

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of function

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. Remove all of the selected nodes.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var nodes = treeObj.getSelectedNodes();
                                                                                                                                                                                                                                                                                                                      +for (var i=0, l=nodes.length; i < l; i++) {
                                                                                                                                                                                                                                                                                                                      +	treeObj.removeNode(nodes[i]);
                                                                                                                                                                                                                                                                                                                      +}
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/zTreeObj.selectNode.html b/alive-admin/target/classes/static/ztree/api/en/zTreeObj.selectNode.html new file mode 100644 index 0000000..237f199 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/zTreeObj.selectNode.html @@ -0,0 +1,34 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(treeNode, addFlag)zTreeObj.selectNode

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.core js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Select a node

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      zTree v3.x supports select multiple nodes.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Please use zTree object to executing the method.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function Parameter Descriptions

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      JSON data object of the node which will be selected.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Please ensure that this data object is an internal node data object in zTree.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      addFlagBoolean

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      addFlag = true means: append to select node, don't affect the previously selected node, can select multiple nodes.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      addFlag = false means: select single node, prior the selected node is deselected.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If setting.view.selectedMulti = false, this para, this parameter is not valid, always select single node

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Return none

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      no return value

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Exampleso of function

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. Select single node which be first selected.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var nodes = treeObj.getNodes();
                                                                                                                                                                                                                                                                                                                      +if (nodes.length>0) {
                                                                                                                                                                                                                                                                                                                      +	treeObj.selectNode(nodes[0]);
                                                                                                                                                                                                                                                                                                                      +}
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/zTreeObj.setChkDisabled.html b/alive-admin/target/classes/static/ztree/api/en/zTreeObj.setChkDisabled.html new file mode 100644 index 0000000..a196e40 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/zTreeObj.setChkDisabled.html @@ -0,0 +1,36 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(node, disabled)zTreeObj.setChkDisabled

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.excheck js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Set the node's checkbox or radio is disabled or remove disabled. It is valid when [setting.check.enable = true]

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. After the node's checkbox / radio is disabled, it can not be checked or unchecked, but it can affect the half-checked status of the parent node.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2. Please do not directly modify the 'chkDisabled' attribute of the loaded node.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      3. Please use zTree object to executing the method.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function Parameter Descriptions

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      JSON data object of the node which need to be checked or unchecked.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Please ensure that this data object is an internal node data object in zTree.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      disabledBoolean

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      disabled = true means: the node's checkbox / radio is disabled.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      disabled = false means: the node's checkbox / radio is removed disabled.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If this parameter is omitted, it is same as disabled = false

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Don't affect the node which 'nochecked' attribute is true.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Return none

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      no return value

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of function

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. Set the selected nodes's checkbox / radio to be disabled.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var nodes = treeObj.getSelectedNodes();
                                                                                                                                                                                                                                                                                                                      +for (var i=0, l=nodes.length; i < l; i++) {
                                                                                                                                                                                                                                                                                                                      +	treeObj.setChkDisabled(nodes[i], true);
                                                                                                                                                                                                                                                                                                                      +}
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/zTreeObj.setEditable.html b/alive-admin/target/classes/static/ztree/api/en/zTreeObj.setEditable.html new file mode 100644 index 0000000..a44b0ff --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/zTreeObj.setEditable.html @@ -0,0 +1,27 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(editable)zTreeObj.setEditable

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.exedit js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Edit mode and normal mode switch.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      To use edit mode, please set the attributes in 'setting.edit'

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Please use zTree object to executing the method.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function Parameter Descriptions

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      editableBoolean

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      true means: set zTree to edit mode.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      false means: set zTree to normal mode.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Return none

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      no return value

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of function

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. set zTree to edit mode

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +treeObj.setEditable(true);
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/zTreeObj.setting.html b/alive-admin/target/classes/static/ztree/api/en/zTreeObj.setting.html new file mode 100644 index 0000000..d80c139 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/zTreeObj.setting.html @@ -0,0 +1,14 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      JSONzTreeObj.setting

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.core js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      The configuration data of zTree, refer to "setting details"

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      zTree v3.x to cancel the original operation setting method, so users can modify.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Note: Modify the parameters which affect zTree initialization will not work, please first understand the different attributes.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/zTreeObj.showNode.html b/alive-admin/target/classes/static/ztree/api/en/zTreeObj.showNode.html new file mode 100644 index 0000000..53b5cbd --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/zTreeObj.showNode.html @@ -0,0 +1,31 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(treeNode)zTreeObj.showNode

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.exhide js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      To hide any node which be hidden.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. This feature can't support the 'exedit' feature, so please don't use this feature in edit mode.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2. If you hide or show the nodes, it will effect the 'isFirstNode' and 'isLastNode' attribute.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      3. Please use zTree object to executing the method.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function Parameter Descriptions

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodesArray(JSON)

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      JSON data object of the node which will be shown

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Please ensure that this data object is an internal node data object in zTree.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Retrun none

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      no return value

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of function

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. show someone node which be hidden.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var node = treeObj.getNodeByParam("isHidden", true);
                                                                                                                                                                                                                                                                                                                      +if (node) {
                                                                                                                                                                                                                                                                                                                      +  treeObj.showNode(node);
                                                                                                                                                                                                                                                                                                                      +}
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/zTreeObj.showNodes.html b/alive-admin/target/classes/static/ztree/api/en/zTreeObj.showNodes.html new file mode 100644 index 0000000..c0c926c --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/zTreeObj.showNodes.html @@ -0,0 +1,29 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(treeNodes)zTreeObj.showNodes

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.exhide js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      To show a group of nodes which be hidden.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. This feature can't support the 'exedit' feature, so please don't use this feature in edit mode.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2. If you hide or show the nodes, it will effect the 'isFirstNode' and 'isLastNode' attribute.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      3. Please use zTree object to executing the method.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function Parameter Descriptions

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodesArray(JSON)

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      the array of the nodes which will be shown

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Please ensure that this data object is an internal node data object in zTree.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Retrun none

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      no return value

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of function

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. show all of the nodes which be hidden.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var nodes = treeObj.getNodesByParam("isHidden", true);
                                                                                                                                                                                                                                                                                                                      +treeObj.showNodes(nodes);
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/zTreeObj.transformToArray.html b/alive-admin/target/classes/static/ztree/api/en/zTreeObj.transformToArray.html new file mode 100644 index 0000000..4b2296d --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/zTreeObj.transformToArray.html @@ -0,0 +1,27 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(treeNodes)zTreeObj.transformToArray

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.core js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Transform the zTree nodes data into simple array. (To avoid the user to write code to traverse all nodes)

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Please use zTree object to executing the method.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function Parameter Descriptions

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodesArray(JSON) / JSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      JSON data object of the node which need to be transformed.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      or JSON data objects collection of the nodes which need to be transformed.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Return Array(JSON)

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      The JSON data objects array of the nodes which be transformed.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of function

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. Transform the zTree nodes data into simple array.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var nodes = treeObj.transformToArray(treeObj.getNodes());
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/zTreeObj.transformTozTreeNodes.html b/alive-admin/target/classes/static/ztree/api/en/zTreeObj.transformTozTreeNodes.html new file mode 100644 index 0000000..51d4a62 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/zTreeObj.transformTozTreeNodes.html @@ -0,0 +1,44 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(simpleNodes)zTreeObj.transformTozTreeNodes

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.core js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Transform the simple array into zTree nodes data.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If you use this method, you must set 'setting.data.simpleData.idKey' and 'setting.data.simpleData.pIdKey' attribute, and let the data are consistent with parent-child relationship.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Please use zTree object to executing the method.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function Parameter Descriptions

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      simpleNodesArray(JSON) / JSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      JSON data object of the node which need to be transformed.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      or JSON data objects array of the nodes which need to be transformed.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Return Array(JSON)

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Standard data which zTree use. The child nodes are stored in the parent node's 'children' attribute.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      If simpleNodes is a single JSON, so the return array's length is 1.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of function

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. Transform the simple array data into zTree nodes format.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var setting = {
                                                                                                                                                                                                                                                                                                                      +	data: {
                                                                                                                                                                                                                                                                                                                      +		simpleData: {
                                                                                                                                                                                                                                                                                                                      +			enable: true,
                                                                                                                                                                                                                                                                                                                      +			idKey: "id",
                                                                                                                                                                                                                                                                                                                      +			pIdKey: "pId",
                                                                                                                                                                                                                                                                                                                      +			rootPId: 0,
                                                                                                                                                                                                                                                                                                                      +		}
                                                                                                                                                                                                                                                                                                                      +	}
                                                                                                                                                                                                                                                                                                                      +};
                                                                                                                                                                                                                                                                                                                      +var simpleNodes = [
                                                                                                                                                                                                                                                                                                                      +    {"id":1, "pId":0, "name":"test1"},
                                                                                                                                                                                                                                                                                                                      +    {"id":11, "pId":1, "name":"test11"},
                                                                                                                                                                                                                                                                                                                      +    {"id":12, "pId":1, "name":"test12"},
                                                                                                                                                                                                                                                                                                                      +    {"id":111, "pId":11, "name":"test111"}
                                                                                                                                                                                                                                                                                                                      +];
                                                                                                                                                                                                                                                                                                                      +var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var nodes = treeObj.transformTozTreeNodes(simpleNodes);
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/api/en/zTreeObj.updateNode.html b/alive-admin/target/classes/static/ztree/api/en/zTreeObj.updateNode.html new file mode 100644 index 0000000..7639ff4 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/api/en/zTreeObj.updateNode.html @@ -0,0 +1,37 @@ +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function(treeNode, checkTypeFlag)zTreeObj.updateNode

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Overview[ depends on jquery.ztree.core js ]

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Update node data. Primarily used to update the node's DOM.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. Can update the attributes for display (e.g. 'name', 'target', 'url', 'icon', 'iconSkin', 'checked', 'nocheck'), do not update the other attributes. For example: If you need to expand the node, please use expandNode() method, do not modify the 'open' attribute.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      2. Use updateNode() method of zTree can't trigger 'beforeCheck' or 'onCheck' callback function.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Please use zTree object to executing the method.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Function Parameter Descriptions

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      treeNodeJSON

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      JSON data object of the node which need to update.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Please ensure that this data object is an internal node data object in zTree.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      checkTypeFlagBoolean

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      checkTypeFlag = true means: According to 'setting.check.chkboxType' attribute automatically check or uncheck the parent and child nodes.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      checkTypeFlag = false means: only check or uncheck this node, don't affect its parent and child nodes.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      This parameter is valid when 'setting.check.enable = true' and 'setting.check.chkStyle = "checkbox"'

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Don't affect the parent and child nodes which 'nochecked' attribute is true.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Return none

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      no return value

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Examples of function

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      1. Modify the first selected node's name, and update it.

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      var treeObj = $.fn.zTree.getZTreeObj("tree");
                                                                                                                                                                                                                                                                                                                      +var nodes = treeObj.getNodes();
                                                                                                                                                                                                                                                                                                                      +if (nodes.length>0) {
                                                                                                                                                                                                                                                                                                                      +	nodes[0].name = "test";
                                                                                                                                                                                                                                                                                                                      +	treeObj.updateNode(nodes[0]);
                                                                                                                                                                                                                                                                                                                      +}
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/css/demo.css b/alive-admin/target/classes/static/ztree/css/demo.css new file mode 100644 index 0000000..f6dba0d --- /dev/null +++ b/alive-admin/target/classes/static/ztree/css/demo.css @@ -0,0 +1,33 @@ +html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td { + margin: 0;padding: 0;border: 0;outline: 0;font-weight: inherit;font-style: inherit;font-size: 100%;font-family: inherit;vertical-align: baseline;} +body {color: #2f332a;font: 15px/21px Arial, Helvetica, simsun, sans-serif;background: #f0f6e4 \9;} +h1, h2, h3, h4, h5, h6 {color: #2f332a;font-weight: bold;font-family: Helvetica, Arial, sans-serif;padding-bottom: 5px;} +h1 {font-size: 24px;line-height: 34px;text-align: center;} +h2 {font-size: 14px;line-height: 24px;padding-top: 5px;} +h6 {font-weight: normal;font-size: 12px;letter-spacing: 1px;line-height: 24px;text-align: center;} +a {color:#3C6E31;text-decoration: underline;} +a:hover {background-color:#3C6E31;color:white;} +input.radio {margin: 0 2px 0 8px;} +input.radio.first {margin-left:0;} +input.empty {color: lightgray;} +code {color: #2f332a;} +.highlight_red {color:#A60000;} +.highlight_green {color:#A7F43D;} +li {list-style: circle;font-size: 12px;} +li.title {list-style: none;} +ul.list {margin-left: 17px;} + +div.content_wrap {width: 600px;height:380px;} +div.content_wrap div.left{float: left;width: 250px;} +div.content_wrap div.right{float: right;width: 340px;} +div.zTreeDemoBackground {width:250px;height:362px;text-align:left;} + +ul.ztree {margin-top: 10px;border: 1px solid #617775;background: #f0f6e4;width:220px;height:360px;overflow-y:scroll;overflow-x:auto;} +ul.log {border: 1px solid #617775;background: #f0f6e4;width:300px;height:170px;overflow: hidden;} +ul.log.small {height:45px;} +ul.log li {color: #666666;list-style: none;padding-left: 10px;} +ul.log li.dark {background-color: #E3E3E3;} + +/* ruler */ +div.ruler {height:20px; width:220px; background-color:#f0f6e4;border: 1px solid #333; margin-bottom: 5px; cursor: pointer} +div.ruler div.cursor {height:20px; width:30px; background-color:#3C6E31; color:white; text-align: right; padding-right: 5px; cursor: pointer} \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/css/zTreeStyle/img/diy/1_close.png b/alive-admin/target/classes/static/ztree/css/zTreeStyle/img/diy/1_close.png new file mode 100644 index 0000000..68ccb3c Binary files /dev/null and b/alive-admin/target/classes/static/ztree/css/zTreeStyle/img/diy/1_close.png differ diff --git a/alive-admin/target/classes/static/ztree/css/zTreeStyle/img/diy/1_open.png b/alive-admin/target/classes/static/ztree/css/zTreeStyle/img/diy/1_open.png new file mode 100644 index 0000000..d6ff36d Binary files /dev/null and b/alive-admin/target/classes/static/ztree/css/zTreeStyle/img/diy/1_open.png differ diff --git a/alive-admin/target/classes/static/ztree/css/zTreeStyle/img/diy/2.png b/alive-admin/target/classes/static/ztree/css/zTreeStyle/img/diy/2.png new file mode 100644 index 0000000..9eff506 Binary files /dev/null and b/alive-admin/target/classes/static/ztree/css/zTreeStyle/img/diy/2.png differ diff --git a/alive-admin/target/classes/static/ztree/css/zTreeStyle/img/diy/3.png b/alive-admin/target/classes/static/ztree/css/zTreeStyle/img/diy/3.png new file mode 100644 index 0000000..d7ba6d0 Binary files /dev/null and b/alive-admin/target/classes/static/ztree/css/zTreeStyle/img/diy/3.png differ diff --git a/alive-admin/target/classes/static/ztree/css/zTreeStyle/img/diy/4.png b/alive-admin/target/classes/static/ztree/css/zTreeStyle/img/diy/4.png new file mode 100644 index 0000000..753e2bf Binary files /dev/null and b/alive-admin/target/classes/static/ztree/css/zTreeStyle/img/diy/4.png differ diff --git a/alive-admin/target/classes/static/ztree/css/zTreeStyle/img/diy/5.png b/alive-admin/target/classes/static/ztree/css/zTreeStyle/img/diy/5.png new file mode 100644 index 0000000..0c5eccd Binary files /dev/null and b/alive-admin/target/classes/static/ztree/css/zTreeStyle/img/diy/5.png differ diff --git a/alive-admin/target/classes/static/ztree/css/zTreeStyle/img/diy/6.png b/alive-admin/target/classes/static/ztree/css/zTreeStyle/img/diy/6.png new file mode 100644 index 0000000..070b835 Binary files /dev/null and b/alive-admin/target/classes/static/ztree/css/zTreeStyle/img/diy/6.png differ diff --git a/alive-admin/target/classes/static/ztree/css/zTreeStyle/img/diy/7.png b/alive-admin/target/classes/static/ztree/css/zTreeStyle/img/diy/7.png new file mode 100644 index 0000000..532b037 Binary files /dev/null and b/alive-admin/target/classes/static/ztree/css/zTreeStyle/img/diy/7.png differ diff --git a/alive-admin/target/classes/static/ztree/css/zTreeStyle/img/diy/8.png b/alive-admin/target/classes/static/ztree/css/zTreeStyle/img/diy/8.png new file mode 100644 index 0000000..a8f3a86 Binary files /dev/null and b/alive-admin/target/classes/static/ztree/css/zTreeStyle/img/diy/8.png differ diff --git a/alive-admin/target/classes/static/ztree/css/zTreeStyle/img/diy/9.png b/alive-admin/target/classes/static/ztree/css/zTreeStyle/img/diy/9.png new file mode 100644 index 0000000..4db73cd Binary files /dev/null and b/alive-admin/target/classes/static/ztree/css/zTreeStyle/img/diy/9.png differ diff --git a/alive-admin/target/classes/static/ztree/css/zTreeStyle/img/line_conn.gif b/alive-admin/target/classes/static/ztree/css/zTreeStyle/img/line_conn.gif new file mode 100644 index 0000000..d561d36 Binary files /dev/null and b/alive-admin/target/classes/static/ztree/css/zTreeStyle/img/line_conn.gif differ diff --git a/alive-admin/target/classes/static/ztree/css/zTreeStyle/img/loading.gif b/alive-admin/target/classes/static/ztree/css/zTreeStyle/img/loading.gif new file mode 100644 index 0000000..e8c2892 Binary files /dev/null and b/alive-admin/target/classes/static/ztree/css/zTreeStyle/img/loading.gif differ diff --git a/alive-admin/target/classes/static/ztree/css/zTreeStyle/img/zTreeStandard.gif b/alive-admin/target/classes/static/ztree/css/zTreeStyle/img/zTreeStandard.gif new file mode 100644 index 0000000..50c94fd Binary files /dev/null and b/alive-admin/target/classes/static/ztree/css/zTreeStyle/img/zTreeStandard.gif differ diff --git a/alive-admin/target/classes/static/ztree/css/zTreeStyle/img/zTreeStandard.png b/alive-admin/target/classes/static/ztree/css/zTreeStyle/img/zTreeStandard.png new file mode 100644 index 0000000..ffda01e Binary files /dev/null and b/alive-admin/target/classes/static/ztree/css/zTreeStyle/img/zTreeStandard.png differ diff --git a/alive-admin/target/classes/static/ztree/css/zTreeStyle/zTreeStyle.css b/alive-admin/target/classes/static/ztree/css/zTreeStyle/zTreeStyle.css new file mode 100644 index 0000000..f06554e --- /dev/null +++ b/alive-admin/target/classes/static/ztree/css/zTreeStyle/zTreeStyle.css @@ -0,0 +1,97 @@ +/*------------------------------------- +zTree Style + +version: 3.4 +author: Hunter.z +email: hunter.z@263.net +website: http://code.google.com/p/jquerytree/ + +-------------------------------------*/ + +.ztree * {padding:0; margin:0; font-size:12px; font-family: Verdana, Arial, Helvetica, AppleGothic, sans-serif} +.ztree {margin:0; padding:5px; color:#333} +.ztree li{padding:0; margin:0; list-style:none; line-height:14px; text-align:left; white-space:nowrap; outline:0} +.ztree li ul{ margin:0; padding:0 0 0 18px} +.ztree li ul.line{ background:url(./img/line_conn.gif) 0 0 repeat-y;} + +.ztree li a {padding:1px 3px 0 0; margin:0; cursor:pointer; height:17px; color:#333; background-color: transparent; + text-decoration:none; vertical-align:top; display: inline-block} +.ztree li a:hover {text-decoration:underline} +.ztree li a.curSelectedNode {padding-top:0px; background-color:#FFE6B0; color:black; height:16px; border:1px #FFB951 solid; opacity:0.8;} +.ztree li a.curSelectedNode_Edit {padding-top:0px; background-color:#FFE6B0; color:black; height:16px; border:1px #FFB951 solid; opacity:0.8;} +.ztree li a.tmpTargetNode_inner {padding-top:0px; background-color:#316AC5; color:white; height:16px; border:1px #316AC5 solid; + opacity:0.8; filter:alpha(opacity=80)} +.ztree li a.tmpTargetNode_prev {} +.ztree li a.tmpTargetNode_next {} +.ztree li a input.rename {height:14px; width:80px; padding:0; margin:0; + font-size:12px; border:1px #7EC4CC solid; *border:0px} +.ztree li span {line-height:16px; margin-right:2px} +.ztree li span.button {line-height:0; margin:0; width:16px; height:16px; display: inline-block; vertical-align:middle; + border:0 none; cursor: pointer;outline:none; + background-color:transparent; background-repeat:no-repeat; background-attachment: scroll; + background-image:url("./img/zTreeStandard.png"); *background-image:url("./img/zTreeStandard.gif")} + +.ztree li span.button.chk {width:13px; height:13px; margin:0 3px 0 0; cursor: auto} +.ztree li span.button.chk.checkbox_false_full {background-position:0 0} +.ztree li span.button.chk.checkbox_false_full_focus {background-position:0 -14px} +.ztree li span.button.chk.checkbox_false_part {background-position:0 -28px} +.ztree li span.button.chk.checkbox_false_part_focus {background-position:0 -42px} +.ztree li span.button.chk.checkbox_false_disable {background-position:0 -56px} +.ztree li span.button.chk.checkbox_true_full {background-position:-14px 0} +.ztree li span.button.chk.checkbox_true_full_focus {background-position:-14px -14px} +.ztree li span.button.chk.checkbox_true_part {background-position:-14px -28px} +.ztree li span.button.chk.checkbox_true_part_focus {background-position:-14px -42px} +.ztree li span.button.chk.checkbox_true_disable {background-position:-14px -56px} +.ztree li span.button.chk.radio_false_full {background-position:-28px 0} +.ztree li span.button.chk.radio_false_full_focus {background-position:-28px -14px} +.ztree li span.button.chk.radio_false_part {background-position:-28px -28px} +.ztree li span.button.chk.radio_false_part_focus {background-position:-28px -42px} +.ztree li span.button.chk.radio_false_disable {background-position:-28px -56px} +.ztree li span.button.chk.radio_true_full {background-position:-42px 0} +.ztree li span.button.chk.radio_true_full_focus {background-position:-42px -14px} +.ztree li span.button.chk.radio_true_part {background-position:-42px -28px} +.ztree li span.button.chk.radio_true_part_focus {background-position:-42px -42px} +.ztree li span.button.chk.radio_true_disable {background-position:-42px -56px} + +.ztree li span.button.switch {width:18px; height:18px} +.ztree li span.button.root_open{background-position:-92px -54px} +.ztree li span.button.root_close{background-position:-74px -54px} +.ztree li span.button.roots_open{background-position:-92px 0} +.ztree li span.button.roots_close{background-position:-74px 0} +.ztree li span.button.center_open{background-position:-92px -18px} +.ztree li span.button.center_close{background-position:-74px -18px} +.ztree li span.button.bottom_open{background-position:-92px -36px} +.ztree li span.button.bottom_close{background-position:-74px -36px} +.ztree li span.button.noline_open{background-position:-92px -72px} +.ztree li span.button.noline_close{background-position:-74px -72px} +.ztree li span.button.root_docu{ background:none;} +.ztree li span.button.roots_docu{background-position:-56px 0} +.ztree li span.button.center_docu{background-position:-56px -18px} +.ztree li span.button.bottom_docu{background-position:-56px -36px} +.ztree li span.button.noline_docu{ background:none;} + +.ztree li span.button.ico_open{margin-right:2px; background-position:-110px -16px; vertical-align:top; *vertical-align:middle} +.ztree li span.button.ico_close{margin-right:2px; background-position:-110px 0; vertical-align:top; *vertical-align:middle} +.ztree li span.button.ico_docu{margin-right:2px; background-position:-110px -32px; vertical-align:top; *vertical-align:middle} +.ztree li span.button.edit {margin-right:2px; background-position:-110px -48px; vertical-align:top; *vertical-align:middle} +.ztree li span.button.remove {margin-right:2px; background-position:-110px -64px; vertical-align:top; *vertical-align:middle} + +.ztree li span.button.ico_loading{margin-right:2px; background:url(./img/loading.gif) no-repeat scroll 0 0 transparent; vertical-align:top; *vertical-align:middle} + +ul.tmpTargetzTree {background-color:#FFE6B0; opacity:0.8; filter:alpha(opacity=80)} + +span.tmpzTreeMove_arrow {width:16px; height:16px; display: inline-block; padding:0; margin:2px 0 0 1px; border:0 none; position:absolute; + background-color:transparent; background-repeat:no-repeat; background-attachment: scroll; + background-position:-110px -80px; background-image:url("./img/zTreeStandard.png"); *background-image:url("./img/zTreeStandard.gif")} + +ul.ztree.zTreeDragUL {margin:0; padding:0; position:absolute; width:auto; height:auto;overflow:hidden; background-color:#cfcfcf; border:1px #00B83F dotted; opacity:0.8; filter:alpha(opacity=80)} +.zTreeMask {z-index:10000; background-color:#cfcfcf; opacity:0.0; filter:alpha(opacity=0); position:absolute} + +/* level style*/ +/*.ztree li span.button.level0 { + display:none; +} +.ztree li ul.level0 { + padding:0; + background:none; +}*/ \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/cn/asyncData/getNodes.php b/alive-admin/target/classes/static/ztree/demo/cn/asyncData/getNodes.php new file mode 100644 index 0000000..3294d9a --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/cn/asyncData/getNodes.php @@ -0,0 +1,38 @@ + +[] diff --git a/alive-admin/target/classes/static/ztree/demo/cn/asyncData/getNodesForBigData.php b/alive-admin/target/classes/static/ztree/demo/cn/asyncData/getNodesForBigData.php new file mode 100644 index 0000000..91d002e --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/cn/asyncData/getNodesForBigData.php @@ -0,0 +1,24 @@ + +[] \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/cn/bigdata/common.html b/alive-admin/target/classes/static/ztree/demo/cn/bigdata/common.html new file mode 100644 index 0000000..ded4358 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/cn/bigdata/common.html @@ -0,0 +1,190 @@ + + + + ZTREE DEMO - big data common + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                      一次性加载大数据量

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      [ 文件路径: bigdata/common.html ]
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      + +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                      • 1、大数据量加载说明

                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                        • 1)、zTree v3.x 针对大数据量一次性加载进行了更深入的优化,实现了延迟加载功能,即不展开的节点不创建子节点的 DOM。
                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                        • 2)、对于每级节点最多一百左右,但总节点数几千甚至几万,且不是全部展开的数据,一次性加载的效果最明显,速度非常快。
                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                        • 3)、对于某一级节点数就多达几千的情况 延迟加载无效,这种情况建议考虑分页异步加载。
                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                        • 4)、对于全部节点都展开显示的情况,延迟加载无效,这种情况建议不要全部展开。
                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                        • 5)、显示 checkbox / radio 会造成一定程度的性能下降。
                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                        • 6)、利用 addDiyDom 功能增加自定义控件会影响速度,影响程度受节点数量而定。
                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                        • 7)、利用 onNodeCreated 事件回调函数对节点 DOM 进行操作会影响速度,影响程度受节点数量而定。
                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                      • 2、setting 配置信息说明

                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                        • 不需要进行特殊的配置
                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                      • 3、treeNode 节点数据说明

                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                        • 对 节点数据 没有特殊要求,用户可以根据自己的需求添加自定义属性
                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/cn/bigdata/diy_async.html b/alive-admin/target/classes/static/ztree/demo/cn/bigdata/diy_async.html new file mode 100644 index 0000000..36a4d48 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/cn/bigdata/diy_async.html @@ -0,0 +1,157 @@ + + + + ZTREE DEMO - big data async + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                      分批异步加载大数据量

                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      [ 文件路径: bigdata/diy_async.html ]
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                      •     此 Demo 专门用于测试分批异步加载,每次展开节点都要重新进行异步加载。
                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                        • 1、大数据量加载说明

                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                          • 1)、对于某一级节点数多达几千个的时候,zTree 默认的延迟加载是无效的,此 Demo 演示了一种原先 zTree v2.6 时的分批加载节点的方法。
                                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                                          • 2)、此方法适用于1、2千个节点必须全部显示的需求。
                                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                                          • 3)、此方法并不能解决加载慢的问题,相反只会让最终结果出现的更慢,只是可以有限度的避免浏览器假死,而且显示的节点越多就越慢。
                                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                                          • 4)、对于某一级节点数至少几千个的情况,另一个解决方案是:分页异步加载。
                                                                                                                                                                                                                                                                                                                            + async load log:
                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                                          • 2、setting 配置信息说明

                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                            • 需要设置 setting.async 异步加载部分的参数
                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                            • 建议关闭动画效果 setting.view.expandSpeed = "";
                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                            • 其他不需要进行特殊的配置,根据自己的需求自行设置
                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                                          • 3、treeNode 节点数据说明

                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                            • 对 节点数据 没有特殊要求,用户可以根据自己的需求添加自定义属性
                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                          + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/cn/bigdata/page.html b/alive-admin/target/classes/static/ztree/demo/cn/bigdata/page.html new file mode 100644 index 0000000..ef3c763 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/cn/bigdata/page.html @@ -0,0 +1,150 @@ + + + + ZTREE DEMO - big data page + + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                          分页加载大数据量

                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                          [ 文件路径: bigdata/page.html ]
                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                            • 1、大数据量加载说明

                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                              • 1)、分页方案可以有效解决某一级节点数据超大的情况。
                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                              • 2)、分页按钮通过自定义控件的方法实现。
                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                              • 3)、分页方案对于 checkbox 的关联关系无能为力,只能每次翻页后进行修正。由于时间关系,Demo 中不对 checkbox 的关联进行任何修正处理。
                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                              • 4)、分页方案中,从 zTree 得到的节点数据只有当前页的节点数据,可以在每次翻页后自行保存每页的数据,作为缓存,具体情况要根据实际需求来决定。
                                                                                                                                                                                                                                                                                                                              • + +
                                                                                                                                                                                                                                                                                                                              • 2、setting 配置信息说明

                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                • 需要设置 setting.async 异步加载部分的参数
                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                • 其他不需要进行特殊的配置,根据自己的需求自行设置
                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                              • 3、treeNode 节点数据说明

                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                • 对 节点数据 没有特殊要求,用户可以根据自己的需求添加自定义属性
                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                            + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/cn/core/async.html b/alive-admin/target/classes/static/ztree/demo/cn/core/async.html new file mode 100644 index 0000000..3f2a0d9 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/cn/core/async.html @@ -0,0 +1,70 @@ + + + + ZTREE DEMO - Async + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                            异步加载节点数据的树

                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                            [ 文件路径: core/async.html ]
                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                              • 1、setting 配置信息说明

                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                • 使用异步加载,必须设置 setting.async 中的各个属性,详细请参见 API 文档中的相关内容
                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                              • 2、treeNode 节点数据说明

                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                • 异步加载功能对于 treeNode 节点数据没有特别要求,如果采用简单 JSON 数据,请设置 setting.data.simple 中的属性
                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                • 如果异步加载每次都只返回单层的节点数据,那么可以不设置简单 JSON 数据模式
                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                              • 3、其他说明

                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                • 观察 autoParam 和 otherParam 请使用 firebug 或 浏览器的开发人员工具
                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                • 此 Demo 只能加载到第 4 级节点(level=3)
                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                • 此 Demo 利用 dataFilter 对节点的 name 进行了修改
                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                              + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/cn/core/async_fun.html b/alive-admin/target/classes/static/ztree/demo/cn/core/async_fun.html new file mode 100644 index 0000000..3571b24 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/cn/core/async_fun.html @@ -0,0 +1,144 @@ + + + + ZTREE DEMO - reAsyncChildNodes + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                              用 zTree 方法异步加载节点数据

                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                              [ 文件路径: core/async_fun.html ]
                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                • 1、reAsyncChildNodes 方法操作说明

                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                  • 使用 zTreeObj.reAsyncChildNodes 方法,详细请参见 API 文档中的相关内容
                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                  • 此 Demo 只能同时选中一个父节点
                                                                                                                                                                                                                                                                                                                                    + 试试看:[ 重新加载 ]    [ 追加 ]

                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                  • “悄悄地”操作只能针对 折叠状态 的父节点
                                                                                                                                                                                                                                                                                                                                    + 试试看:[ 悄悄地 重新加载 ]    [ 悄悄地 追加 ]
                                                                                                                                                                                                                                                                                                                                    + async log:
                                                                                                                                                                                                                                                                                                                                    +

                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                  • 2、setting 配置信息说明

                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                    • 使用 zTree 提供的 reAsyncChildNodes 方法也必须设置 setting.async 中的各个属性,详细请参见 API 文档中的相关内容
                                                                                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                  • 3、treeNode 节点数据说明

                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                    • 同 "异步加载 节点数据" 中的说明
                                                                                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                  • 4、其他说明

                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                    • 同 "异步加载 节点数据" 中的说明
                                                                                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                  + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/cn/core/click.html b/alive-admin/target/classes/static/ztree/demo/cn/core/click.html new file mode 100644 index 0000000..50367d9 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/cn/core/click.html @@ -0,0 +1,107 @@ + + + + ZTREE DEMO - beforeClick / onClick + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                  单击节点控制

                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                  [ 文件路径: core/click.html ]
                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                    • 1、beforeClick / onClick 事件回调函数控制

                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                      • 利用 click 事件回调函数 可以进行各种其他的附加操作,这里简单演示如何监控此事件
                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                      • 请尝试按下 Ctrl 键进行 多节点选择 和 取消选择
                                                                                                                                                                                                                                                                                                                                        + click log:
                                                                                                                                                                                                                                                                                                                                        +

                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                      • 2、setting 配置信息说明

                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                        • 需要设置 setting.callback.beforeClick 和 setting.callback.onClick 属性, 详细请参见 API 文档中的相关内容
                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                      • 3、treeNode 节点数据说明

                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                        • 对 节点数据 没有特殊要求,用户可以根据自己的需求添加自定义属性
                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                      + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/cn/core/custom_font.html b/alive-admin/target/classes/static/ztree/demo/cn/core/custom_font.html new file mode 100644 index 0000000..e9f901e --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/cn/core/custom_font.html @@ -0,0 +1,67 @@ + + + + ZTREE DEMO - Custom Font + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                      显示自定义字体的树

                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                      [ 文件路径: core/custom_font.html ]
                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                        • 1、setting 配置信息说明

                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                          • 1、节点自定义字体请设置 setting.view.fontCss 属性,详细请参见 API 文档中的相关内容
                                                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                                                          • 2、setting.view.nameIsHTML 属性可以允许节点名称支持 HTML 内容,详细请参见 API 文档中的相关内容
                                                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                        • 2、treeNode 节点数据说明

                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                          • 设置字体不需要 treeNode 设置特殊数据,但如果用于为了区别不同类型的节点,设置不同的样式,可以对相应的数据设置自定义属性
                                                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                                                          • 此 Demo 利用 treeNode 保存样式定义
                                                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                        + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/cn/core/custom_icon.html b/alive-admin/target/classes/static/ztree/demo/cn/core/custom_icon.html new file mode 100644 index 0000000..7c8de18 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/cn/core/custom_icon.html @@ -0,0 +1,74 @@ + + + + ZTREE DEMO - Custom Icon + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                        自定义图标 -- icon 属性

                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                        [ 文件路径: core/custom_icon.html ]
                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                          • 1、setting 配置信息说明

                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                            • 自定义图标不需要对 setting 进行特殊配置
                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                                                          • 2、treeNode 节点数据说明

                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                            • 利用 节点数据的 icon / iconOpen / iconClose 属性实现自定义图标
                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                            • 详细请参见 API 文档中的相关内容
                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                                                          • 3、其他说明

                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                            • 由于时间关系,例子直接采用 png 图片,如果需要解决 ie6 下 png 图片的透明问题,请针对 ie6 制作特殊的 gif 图片或者利用 css filter 解决
                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                          + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/cn/core/custom_iconSkin.html b/alive-admin/target/classes/static/ztree/demo/cn/core/custom_iconSkin.html new file mode 100644 index 0000000..cde753a --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/cn/core/custom_iconSkin.html @@ -0,0 +1,84 @@ + + + + ZTREE DEMO - Custom Icon Skin + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                          自定义图标 -- iconSkin 属性

                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                          [ 文件路径: core/custom_iconSkin.html ]
                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                            • 1、setting 配置信息说明

                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                              • 自定义图标不需要对 setting 进行特殊配置
                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                            • 2、treeNode 节点数据说明

                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                              • 利用 节点数据的 iconSkin 属性 配合 css 实现自定义图标
                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                              • 详细请参见 API 文档中的相关内容
                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                            • 3、其他说明

                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                              • 由于时间关系,例子直接采用 png 图片,如果需要解决 ie6 下 png 图片的透明问题,请针对 ie6 制作特殊的 gif 图片或者利用 css filter 解决
                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/cn/core/expand.html b/alive-admin/target/classes/static/ztree/demo/cn/core/expand.html new file mode 100644 index 0000000..0b1b0c9 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/cn/core/expand.html @@ -0,0 +1,182 @@ + + + + ZTREE DEMO - beforeExpand / onExpand && beforeCollapse / onCollapse + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                            展开 / 折叠父节点控制

                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            [ 文件路径: core/expand.html ]
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                              • 1、beforeCollapse / onCollapse
                                                                                                                                                                                                                                                                                                                                                  beforeExpand / onExpand 事件回调函数控制

                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                • 利用 collapse / expand 事件回调函数 可以控制父节点是否允许 展开 / 折叠,这里简单演示如何监控此事件
                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                • 试试看:
                                                                                                                                                                                                                                                                                                                                                  +      expandNode 方法是否触发 callback
                                                                                                                                                                                                                                                                                                                                                  +     单个节点--[ 展开 ] +     [ 折叠 ] +     [ 展开 / 折叠 切换 ]
                                                                                                                                                                                                                                                                                                                                                  +     单个节点(包括子节点)--[ 展开 ] +     [ 折叠 ]
                                                                                                                                                                                                                                                                                                                                                  +     全部节点--[ 展开 ] +     [ 折叠 ]

                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                • 使用 zTreeObj.expandNode 方法,详细请参见 API 文档中的相关内容
                                                                                                                                                                                                                                                                                                                                                  + collapse / expand log:
                                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                • 2、setting 配置信息说明

                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                  • 事件回调函数的使用,详细请参见 API 文档中 setting.callback 的相关内容
                                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                                  • 如果需要调整 展开 / 折叠 的动画效果, 详细请参见 API 文档中 setting.view.expandSpeed 的相关内容
                                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                • 3、treeNode 节点数据说明

                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                  • 对 节点数据 没有特殊要求,用户可以根据自己的需求添加自定义属性
                                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/cn/core/noicon.html b/alive-admin/target/classes/static/ztree/demo/cn/core/noicon.html new file mode 100644 index 0000000..9562163 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/cn/core/noicon.html @@ -0,0 +1,93 @@ + + + + ZTREE DEMO - noIcon + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                不显示节点图标的树

                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                [ 文件路径: core/noicon.html ]
                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                  • 1、setting 配置信息说明

                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                    • 此 Demo 利用 Function 设置了使父节点不显示图标的规则
                                                                                                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                                                                                                    • 是否显示节点图标请设置 setting.view.showIcon 属性,详细请参见 API 文档中的相关内容
                                                                                                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                                  • 2、treeNode 节点数据说明

                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                    • 是否显示图标,不需要 treeNode 节点数据提供特殊设置,但如果用户需要根据不同节点动态设置,可以对节点数据增加特殊属性,用于判别
                                                                                                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                  + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/cn/core/noline.html b/alive-admin/target/classes/static/ztree/demo/cn/core/noline.html new file mode 100644 index 0000000..212d97b --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/cn/core/noline.html @@ -0,0 +1,88 @@ + + + + ZTREE DEMO - noLine + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                  不显示连接线的树

                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                  [ 文件路径: core/noline.html ]
                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                    • 1、setting 配置信息说明

                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                      • 是否显示连接线请设置 setting.view.showLine 属性,详细请参见 API 文档中的相关内容
                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                                                                                                    • 2、treeNode 节点数据说明

                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                      • 是否显示连线,不需要 treeNode 节点数据提供特殊设置
                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                    + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/cn/core/otherMouse.html b/alive-admin/target/classes/static/ztree/demo/cn/core/otherMouse.html new file mode 100644 index 0000000..2dff4e4 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/cn/core/otherMouse.html @@ -0,0 +1,132 @@ + + + + ZTREE DEMO - Other Mouse Event + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                    其他鼠标事件监听

                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                    [ 文件路径: core/otherMouse.html ]
                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                      • 1、mousedown / mouseup / rightClick 事件回调函数控制

                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                        • zTree 提供 这几种鼠标事件响应,主要是为了便于用户针对一些特殊需求进行扩展开发,不会对 zTree 造成任何影响,这里简单演示如何监控此事件
                                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                                        • 请尝试鼠标在 zTree 上胡乱点击(左键、右键)吧,顺便看看 log
                                                                                                                                                                                                                                                                                                                                                          + mousedown event log:
                                                                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                                                                            + mouseup event log:
                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                              + rightClick event log:
                                                                                                                                                                                                                                                                                                                                                              +

                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                            • 2、setting 配置信息说明

                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                              • 事件回调函数的使用,详细请参见 API 文档中 setting.callback 的相关内容
                                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                            • 3、treeNode 节点数据说明

                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                              • 对 节点数据 没有特殊要求,用户可以根据自己的需求添加自定义属性
                                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                            + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/cn/core/searchNodes.html b/alive-admin/target/classes/static/ztree/demo/cn/core/searchNodes.html new file mode 100644 index 0000000..28c2e3b --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/cn/core/searchNodes.html @@ -0,0 +1,173 @@ + + + + ZTREE DEMO - getNodeByParam / getNodesByParam / getNodesByParamFuzzy + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                            根据参数查找节点

                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                            [ 文件路径: core/searchNodes.html ]
                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                              • 1、getNodeByParam / getNodesByParam / getNodesByParamFuzzy 方法操作说明

                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                • 使用 zTreeObj.getNodeByParam / getNodesByParam / getNodesByParamFuzzy / getNodeByTId 方法,详细请参见 API 文档中的相关内容
                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                • 搜索试试看:
                                                                                                                                                                                                                                                                                                                                                                  + 属性值( value ):
                                                                                                                                                                                                                                                                                                                                                                  + 属性( key ):name (string)
                                                                                                                                                                                                                                                                                                                                                                  + level (number) ... 根节点 level = 0
                                                                                                                                                                                                                                                                                                                                                                  + id (number)
                                                                                                                                                                                                                                                                                                                                                                  + 方法:getNodeByParam
                                                                                                                                                                                                                                                                                                                                                                  + getNodesByParam
                                                                                                                                                                                                                                                                                                                                                                  + getNodesByParamFuzzy (only string)
                                                                                                                                                                                                                                                                                                                                                                  + getNodesByFilter (参考本页源码中 function filter)
                                                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                                              • 2、setting 配置信息说明

                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                • 不需要对 setting 进行特殊设置
                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                                              • 3、treeNode 节点数据说明

                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                • 请注意各个方法使用时保证传入查找的参数类型与设定要查找的属性的类型一致
                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                              + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/cn/core/simpleData.html b/alive-admin/target/classes/static/ztree/demo/cn/core/simpleData.html new file mode 100644 index 0000000..19f7ca5 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/cn/core/simpleData.html @@ -0,0 +1,100 @@ + + + + ZTREE DEMO - Simple Data + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                              最简单的树 -- 简单 JSON 数据

                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                              [ 文件路径: core/simpleData.html ]
                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                • 1、setting 配置信息说明

                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                  • 必须设置 setting.data.simple 内的属性,详细请参见 API 文档中的相关内容
                                                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                                                  • 与显示相关的内容请参考 API 文档中 setting.view 内的配置信息
                                                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                                                  • name、children、title 等属性定义更改请参考 API 文档中 setting.data.key 内的配置信息
                                                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                • 2、treeNode 节点数据说明

                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                  • 简单模式的 JSON 数据需要使用 id / pId 表示节点的父子包含关系,如使用其他属性设置父子关联关系请参考 setting.data.simple 内各项说明 +
                                                                                                                                                                                                                                                                                                                                                                    例如:
                                                                                                                                                                                                                                                                                                                                                                    +var nodes = [
                                                                                                                                                                                                                                                                                                                                                                    +	{id:1, pId:0, name: "父节点1"},
                                                                                                                                                                                                                                                                                                                                                                    +	{id:11, pId:1, name: "子节点1"},
                                                                                                                                                                                                                                                                                                                                                                    +	{id:12, pId:1, name: "子节点2"}
                                                                                                                                                                                                                                                                                                                                                                    +];
                                                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                                                  • 默认展开的节点,请设置 treeNode.open 属性
                                                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                                                  • 无子节点的父节点,请设置 treeNode.isParent 属性
                                                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                                                  • 其他属性说明请参考 API 文档中 "treeNode 节点数据详解"
                                                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                • 3、其他说明

                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                  • Demo 中绝大部分都采用简单 JSON 数据模式,以便于大家学习
                                                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/cn/core/standardData.html b/alive-admin/target/classes/static/ztree/demo/cn/core/standardData.html new file mode 100644 index 0000000..582a6e1 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/cn/core/standardData.html @@ -0,0 +1,106 @@ + + + + ZTREE DEMO - Standard Data + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                                最简单的树 -- 标准 JSON 数据

                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                [ 文件路径: core/standardData.html ]
                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                  • 1、setting 配置信息说明

                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                    • 普通使用,无必须设置的参数
                                                                                                                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                                                                                                                    • 与显示相关的内容请参考 API 文档中 setting.view 内的配置信息
                                                                                                                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                                                                                                                    • name、children、title 等属性定义更改请参考 API 文档中 setting.data.key 内的配置信息
                                                                                                                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                                                  • 2、treeNode 节点数据说明

                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                    • 标准的 JSON 数据需要嵌套表示节点的父子包含关系 +
                                                                                                                                                                                                                                                                                                                                                                      例如:
                                                                                                                                                                                                                                                                                                                                                                      +var nodes = [
                                                                                                                                                                                                                                                                                                                                                                      +	{name: "父节点1", children: [
                                                                                                                                                                                                                                                                                                                                                                      +		{name: "子节点1"},
                                                                                                                                                                                                                                                                                                                                                                      +		{name: "子节点2"}
                                                                                                                                                                                                                                                                                                                                                                      +	]}
                                                                                                                                                                                                                                                                                                                                                                      +];
                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                                                                                                                    • 默认展开的节点,请设置 treeNode.open 属性
                                                                                                                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                                                                                                                    • 无子节点的父节点,请设置 treeNode.isParent 属性
                                                                                                                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                                                                                                                    • 其他属性说明请参考 API 文档中 "treeNode 节点数据详解"
                                                                                                                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                  + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/cn/core/update_fun.html b/alive-admin/target/classes/static/ztree/demo/cn/core/update_fun.html new file mode 100644 index 0000000..918ed82 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/cn/core/update_fun.html @@ -0,0 +1,143 @@ + + + + ZTREE DEMO - updateNode + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                                  用 zTree 方法 更新 节点数据

                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                  [ 文件路径: core/update_fun.html ]
                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                    • 1、updateNode 方法操作说明

                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                      • 使用 zTreeObj.updateNode 方法,详细请参见 API 文档中的相关内容
                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                      • 此 Demo 只能同时选中一个节点
                                                                                                                                                                                                                                                                                                                                                                        + 试试看:[ 换名字 ] +     [ 换图标 ] +     [ 换颜色 ] +     [ 斜体 ]

                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                                                                                                                    • 2、setting 配置信息说明

                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                      • 不需要对 setting 进行特殊设置
                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                      • 配合 setting.view.fontCss 可以修改节点文字样式
                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                                                                                                                    • 3、treeNode 节点数据说明

                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                      • zTreeObj.updateNode 方法的 API 文档中有详细说明
                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                                                                                                                    • 4、其他说明

                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                      • 此 Demo 是针对 核心 js 包 core 制作的,因此不包括 checkbox 的更新操作
                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                    + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/cn/core/url.html b/alive-admin/target/classes/static/ztree/demo/cn/core/url.html new file mode 100644 index 0000000..8550d28 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/cn/core/url.html @@ -0,0 +1,63 @@ + + + + ZTREE DEMO - url + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                                    超链接演示

                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                    [ 文件路径: core/url.html ]
                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                      • 1、setting 配置信息说明

                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                        • 普通使用,无必须设置的参数
                                                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                                                        • 如果需要灵活控制超链接跳转,请利用 onClick 事件回调函数进行控制,详细请参见 API 文档中的相关内容
                                                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                      • 2、treeNode 节点数据说明

                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                        • 1、url 属性用于设置 页面跳转的路径
                                                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                                                        • 2、target 属性用于设置 页面跳转的窗口目标
                                                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                                                        • 3、click 属性用于设置简单的 onClick 事件
                                                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                                                        • 其他属性说明请参考 API 文档中 "treeNode 节点数据详解"
                                                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                      + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/cn/excheck/checkbox.html b/alive-admin/target/classes/static/ztree/demo/cn/excheck/checkbox.html new file mode 100644 index 0000000..01c5d5c --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/cn/excheck/checkbox.html @@ -0,0 +1,107 @@ + + + + ZTREE DEMO - checkbox + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                                      Checkbox 勾选操作

                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                      [ 文件路径: excheck/checkbox.html ]
                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                        • 1、setting 配置信息说明

                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                          • 使用 checkbox,必须设置 setting.check 中的各个属性,详细请参见 API 文档中的相关内容
                                                                                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                                                                                          • 父子关联关系:
                                                                                                                                                                                                                                                                                                                                                                            + 被勾选时:关联父 + 关联子
                                                                                                                                                                                                                                                                                                                                                                            + 取消勾选时:关联父 + 关联子
                                                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                                                                                          • 2、treeNode 节点数据说明

                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                            • 1)、如果需要初始化默认节点被勾选,请设置 treeNode.checked 属性,详细请参见 API 文档中的相关内容
                                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                                            • 2)、如果某节点禁用 checkbox,请设置 treeNode.chkDisabled 属性,详细请参见 API 文档中的相关内容 和 'chkDisabled 演示'
                                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                                            • 3)、如果某节点不显示 checkbox,请设置 treeNode.nocheck 属性,详细请参见 API 文档中的相关内容 和 'nocheck 演示'
                                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                                            • 4)、如果更换 checked 属性,请参考 API 文档中 setting.data.key.checked 的详细说明
                                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                                            • 5)、其他请参考 API 文档中 treeNode.checkedOld / getCheckStatus / check_Child_State / check_Focus 的详细说明
                                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                          + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/cn/excheck/checkbox_chkDisabled.html b/alive-admin/target/classes/static/ztree/demo/cn/excheck/checkbox_chkDisabled.html new file mode 100644 index 0000000..5d08d1c --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/cn/excheck/checkbox_chkDisabled.html @@ -0,0 +1,99 @@ + + + + ZTREE DEMO - Checkbox chkDisabled + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                                          Checkbox chkDisabled 演示

                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                          [ 文件路径: excheck/checkbox_chkDisabled.html ]
                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                            • 1、setChkDisabled 方法操作说明

                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                              • setChkDisabled 方法可以设置节点 checkbox / radio 禁用 或 取消禁用,详细请参见 API 文档中的相关内容
                                                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                                                              • 试试看:
                                                                                                                                                                                                                                                                                                                                                                                +     [ 禁用 ] +     [ 取消禁用 ]

                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                                            • 2、setting 配置信息说明

                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                              • 这个 Demo 只简单演示 chkDisabled 的使用方法,详细配置信息请参考 ‘Checkbox 勾选操作’
                                                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                                            • 3、treeNode 节点数据说明

                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                              • 1)、如果某节点禁用 checkbox,请设置 treeNode.chkDisabled 属性,详细请参见 API 文档中的相关内容
                                                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                                                              • 2)、其他请参考 ‘Checkbox 勾选操作’
                                                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                            + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/cn/excheck/checkbox_count.html b/alive-admin/target/classes/static/ztree/demo/cn/excheck/checkbox_count.html new file mode 100644 index 0000000..c0d84ba --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/cn/excheck/checkbox_count.html @@ -0,0 +1,126 @@ + + + + ZTREE DEMO - getChangeCheckedNodes / getCheckedNodes + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                                            checkbox 勾选统计

                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                            [ 文件路径: excheck/checkbox_count.html ]
                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                              • 1、getChangeCheckedNodes / getCheckedNodes 方法操作说明

                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                • 使用 zTreeObj.getChangeCheckedNodes / getCheckedNodes 方法,详细请参见 API 文档中的相关内容
                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                • 去勾选 checkbox 比较下面的数字变化:
                                                                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                  • 当前被勾选的节点共
                                                                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                                                                  • 当前未被勾选的节点共
                                                                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                                                                  • 勾选状态对比规则:与 zTree 初始化时对比
                                                                                                                                                                                                                                                                                                                                                                                    + 与上一次勾选后对比
                                                                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                                                                  • 当前被修改勾选状态的节点共
                                                                                                                                                                                                                                                                                                                                                                                  • +

                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                                                              • 2、setting 配置信息说明

                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                • 同 "checkbox 勾选操作" 中的说明
                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                                                              • 3、treeNode 节点数据说明

                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                • 同 "checkbox 勾选操作" 中的说明
                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                              + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/cn/excheck/checkbox_fun.html b/alive-admin/target/classes/static/ztree/demo/cn/excheck/checkbox_fun.html new file mode 100644 index 0000000..c8a0b12 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/cn/excheck/checkbox_fun.html @@ -0,0 +1,172 @@ + + + + ZTREE DEMO - beforeCheck / onCheck + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                                              用 zTree 方法 勾选 checkbox

                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                              [ 文件路径: excheck/checkbox_fun.html ]
                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                • 1、beforeCheck / onCheck 事件回调函数控制

                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                  • 利用 beforeCheck / onCheck 事件回调函数 可以控制是否允许 更改 节点勾选状态,这里简单演示如何监控此事件
                                                                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                                                                  • 这里还演示了 checkNode / checkAllNodes 方法触发 beforeCheck / onCheck 事件回调函数的情况,试试看:
                                                                                                                                                                                                                                                                                                                                                                                    +      setting.check.autoCheckTrigger: false
                                                                                                                                                                                                                                                                                                                                                                                    +      执行勾选方法是否触发 callback
                                                                                                                                                                                                                                                                                                                                                                                    +     单节点--[ 勾选 ] +     [ 取消勾选 ] +     [ 勾选 切换 ]
                                                                                                                                                                                                                                                                                                                                                                                    +     单节点 ( 影响父子 )--[ 勾选 ] +     [ 取消勾选 ] +     [ 勾选 切换 ]
                                                                                                                                                                                                                                                                                                                                                                                    +     全部节点--[ 勾选 ] +     [ 取消勾选 ]

                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                                                                  • 使用 zTreeObj.checkNode / checkAllNodes 方法,详细请参见 API 文档中的相关内容
                                                                                                                                                                                                                                                                                                                                                                                    + beforeCheck / onCheck log:
                                                                                                                                                                                                                                                                                                                                                                                    +

                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                                                                  • 2、setting 配置信息说明

                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                    • 同 "checkbox 勾选操作" 中的说明
                                                                                                                                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                                                                  • 3、treeNode 节点数据说明

                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                    • 同 "checkbox 勾选操作" 中的说明
                                                                                                                                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                  + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/cn/excheck/checkbox_halfCheck.html b/alive-admin/target/classes/static/ztree/demo/cn/excheck/checkbox_halfCheck.html new file mode 100644 index 0000000..21de1e0 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/cn/excheck/checkbox_halfCheck.html @@ -0,0 +1,108 @@ + + + + ZTREE DEMO - Checkbox halfCheck + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                                                  Checkbox halfCheck 演示

                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                  [ 文件路径: excheck/checkbox_halfCheck.html ]
                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                    • 1、演示说明

                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                      • 这个演示式实现了 异步加载模式 下简单的勾选操作
                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                      • 1)、加载子节点后,父节点的 halfCheck 立刻失效
                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                      • 2)、勾选父节点,可以影响之后加载的子节点的勾选状态
                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                      • 3)、勾选父节点,可以让其子节点的 halfCheck 属性失效
                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                                                                                                                                    • 2、setting 配置信息说明

                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                      • 实现半勾选功能,不需要配置任何参数。但半勾选功能属于辅助功能,无法单独使用,因此也需要根据自己的需求配置特定参数。
                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                                                                                                                                    • 3、treeNode 节点数据说明

                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                      • 1)、请在节点初始化之前,设置 treeNode.halfCheck 属性,详细请参见 API 文档中的相关内容
                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                      • 2)、其他请参考 ‘Checkbox 勾选操作’
                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                    + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/cn/excheck/checkbox_nocheck.html b/alive-admin/target/classes/static/ztree/demo/cn/excheck/checkbox_nocheck.html new file mode 100644 index 0000000..b6d3fa7 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/cn/excheck/checkbox_nocheck.html @@ -0,0 +1,76 @@ + + + + ZTREE DEMO - no checkbox + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                                                    Checkbox nocheck 演示

                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                    [ 文件路径: excheck/checkbox_nocheck.html ]
                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                      • 1、setting 配置信息说明

                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                        • 这个 Demo 只简单演示 nocheck 的使用方法,详细配置信息请参考 ‘Checkbox 勾选操作’
                                                                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                                                                        • setting.check.nocheckInherit 可以设置子节点自动继承父节点的 nocheck 属性,详细请参见 API 文档中的相关内容
                                                                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                      • 2、treeNode 节点数据说明

                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                        • 1)、如果某节点不显示 checkbox,请设置 treeNode.nocheck 属性,详细请参见 API 文档中的相关内容
                                                                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                                                                        • 2)、其他请参考 ‘Checkbox 勾选操作’
                                                                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                      + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/cn/excheck/radio.html b/alive-admin/target/classes/static/ztree/demo/cn/excheck/radio.html new file mode 100644 index 0000000..9cd589a --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/cn/excheck/radio.html @@ -0,0 +1,97 @@ + + + + ZTREE DEMO - radio + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                                                      Radio 勾选操作

                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                      [ 文件路径: excheck/radio.html ]
                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                        • 1、setting 配置信息说明

                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                          • 使用 radio,必须设置 setting.check 中的各个属性,详细请参见 API 文档中的相关内容
                                                                                                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                                                                                                          • radio 分组范围:同一级内 + 整棵树内
                                                                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                                                                                                          • 2、treeNode 节点数据说明

                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                            • 1)、如果需要初始化默认节点被勾选,请设置 treeNode.checked 属性,详细请参见 API 文档中的相关内容
                                                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                                                            • 2)、如果某节点不显示 radio,请设置 treeNode.nocheck 属性,详细请参见 API 文档中的相关内容
                                                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                                                            • 3)、如果更换 checked 属性,请参考 API 文档中 setting.data.key.checked 的详细说明
                                                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                                                            • 4)、其他请参考 API 文档中 treeNode.checkedOld / getCheckStatus / check_Child_State / check_Focus 的详细说明
                                                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                          + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/cn/excheck/radio_chkDisabled.html b/alive-admin/target/classes/static/ztree/demo/cn/excheck/radio_chkDisabled.html new file mode 100644 index 0000000..6d330f3 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/cn/excheck/radio_chkDisabled.html @@ -0,0 +1,101 @@ + + + + ZTREE DEMO - Radio chkDisabled + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                                                          Radio chkDisabled 演示

                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                          [ 文件路径: excheck/radio_chkDisabled.html ]
                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                            • 1、setChkDisabled 方法操作说明

                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                              • setChkDisabled 方法可以设置节点 checkbox / radio 禁用 或 取消禁用,详细请参见 API 文档中的相关内容
                                                                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                                                                              • 试试看:
                                                                                                                                                                                                                                                                                                                                                                                                +     [ 禁用 ] +     [ 取消禁用 ]

                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                                                            • 2、setting 配置信息说明

                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                              • 这个 Demo 只简单演示 chkDisabled 的使用方法,详细配置信息请参考 ‘Radio 勾选操作’
                                                                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                                                            • 3、treeNode 节点数据说明

                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                              • 1)、如果某节点不显示 radio,请设置 treeNode.chkDisabled 属性,详细请参见 API 文档中的相关内容
                                                                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                                                                              • 2)、其他请参考 ‘Radio 勾选操作’
                                                                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                            + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/cn/excheck/radio_fun.html b/alive-admin/target/classes/static/ztree/demo/cn/excheck/radio_fun.html new file mode 100644 index 0000000..b9b5240 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/cn/excheck/radio_fun.html @@ -0,0 +1,151 @@ + + + + ZTREE DEMO - beforeCheck / onCheck + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                                                            用 zTree 方法 勾选 radio

                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                            [ 文件路径: excheck/radio_fun.html ]
                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                              • 1、beforeCheck / onCheck 事件回调函数控制

                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                • 利用 beforeCheck / onCheck 事件回调函数 可以控制是否允许 更改 节点勾选状态,这里简单演示如何监控此事件
                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                • 试试看:
                                                                                                                                                                                                                                                                                                                                                                                                  +      checkNode 方法是否触发 callback
                                                                                                                                                                                                                                                                                                                                                                                                  +     [ 勾选 ] +     [ 取消勾选 ]

                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                • 使用 zTreeObj.checkNode 方法,详细请参见 API 文档中的相关内容
                                                                                                                                                                                                                                                                                                                                                                                                  + beforeCheck / onCheck log:
                                                                                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                • 2、setting 配置信息说明

                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                  • 同 "radio 勾选操作" 中的说明
                                                                                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                • 3、treeNode 节点数据说明

                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                  • 同 "radio 勾选操作" 中的说明
                                                                                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/cn/excheck/radio_halfCheck.html b/alive-admin/target/classes/static/ztree/demo/cn/excheck/radio_halfCheck.html new file mode 100644 index 0000000..91f25cf --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/cn/excheck/radio_halfCheck.html @@ -0,0 +1,93 @@ + + + + ZTREE DEMO - Radio halfCheck + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                                                                Radio halfCheck 演示

                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                [ 文件路径: excheck/radio_halfCheck.html ]
                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                  • 1、演示说明

                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                    • 这个演示式实现了 异步加载模式 下简单的勾选操作
                                                                                                                                                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                                                                                                                                                    • 1)、加载子节点后,父节点的 halfCheck 立刻失效
                                                                                                                                                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                                                                                                                                                    • 2)、勾选父节点,不会影响子节点的勾选状态
                                                                                                                                                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                                                                                                                                                    • 3)、勾选父节点,不会让其子节点的 halfCheck 属性失效
                                                                                                                                                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                                                                                  • 2、setting 配置信息说明

                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                    • 实现半勾选功能,不需要配置任何参数。但半勾选功能属于辅助功能,无法单独使用,因此也需要根据自己的需求配置特定参数。
                                                                                                                                                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                                                                                  • 3、treeNode 节点数据说明

                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                    • 1)、请在节点初始化之前,设置 treeNode.halfCheck 属性,详细请参见 API 文档中的相关内容
                                                                                                                                                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                                                                                                                                                    • 2)、其他请参考 ‘Radio 勾选操作’
                                                                                                                                                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                  + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/cn/excheck/radio_nocheck.html b/alive-admin/target/classes/static/ztree/demo/cn/excheck/radio_nocheck.html new file mode 100644 index 0000000..cc648c1 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/cn/excheck/radio_nocheck.html @@ -0,0 +1,77 @@ + + + + ZTREE DEMO - no radio + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                                                                  Radio nocheck 演示

                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                  [ 文件路径: excheck/radio_nocheck.html ]
                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                    • 1、setting 配置信息说明

                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                      • 这个 Demo 只简单演示 nocheck 的使用方法,详细配置信息请参考 ‘Radio 勾选操作’
                                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                                      • setting.check.nocheckInherit 可以设置子节点自动继承父节点的 nocheck 属性,详细请参见 API 文档中的相关内容
                                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                                                                                                                                                    • 2、treeNode 节点数据说明

                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                      • 1)、如果某节点不显示 radio,请设置 treeNode.nocheck 属性,详细请参见 API 文档中的相关内容
                                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                                      • 2)、其他请参考 ‘Radio 勾选操作’
                                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                    + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/cn/exedit/async_edit.html b/alive-admin/target/classes/static/ztree/demo/cn/exedit/async_edit.html new file mode 100644 index 0000000..b6de26a --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/cn/exedit/async_edit.html @@ -0,0 +1,119 @@ + + + + ZTREE DEMO - async & edit + + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                                                                    异步加载 & 编辑功能 共存

                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                    [ 文件路径: exedit/async_edit.html ]
                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                      • 1、异步加载 & 编辑功能 共存说明

                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                        • 1)、此 Demo 是基于 "高级 增 / 删 / 改 节点" 修改的,并且开放了拖拽功能,可与其进行对比
                                                                                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                                                                                        • 2)、只需要同时开启编辑模式和异步加载模式即可实现共存
                                                                                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                                                                                        • 3)、zTree 完善了异步加载模式下的编辑功能,对于未加载子节点的父节点,增加子节点时,会首先进行异步加载。
                                                                                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                                      • 2、setting 配置信息说明

                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                        • 1)、使用 编辑功能,请参考 "拖拽节点基本控制" 和 "基本 增 / 删 / 改 节点" Demo 中关于 setting 的配置要求
                                                                                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                                                                                        • 2)、使用 异步加载功能,请参考 "异步加载 节点数据" Demo 中关于 setting 的配置要求
                                                                                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                                      • 3、treeNode 节点数据说明

                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                        • 两种模式共存,对数据无特殊要求,请分别参考 "异步加载 节点数据" & "拖拽 节点 基本控制" & "基本 增 / 删 / 改 节点" 中的相关说明
                                                                                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                      + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/cn/exedit/drag.html b/alive-admin/target/classes/static/ztree/demo/cn/exedit/drag.html new file mode 100644 index 0000000..a19da79 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/cn/exedit/drag.html @@ -0,0 +1,136 @@ + + + + ZTREE DEMO - drag & drop + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                                                                      拖拽节点基本控制

                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                      [ 文件路径: exedit/drag.html ]
                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                        • 1、setting 配置信息说明

                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                          • 此 Demo 仅从功能上演示实现拖拽的基本方法和配置参数
                                                                                                                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                                                                                                                          • 1)、使用 拖拽功能,必须设置 setting.edit 中的各个属性,详细请参见 API 文档中的相关内容
                                                                                                                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                                                                                                                          • 2)、使用 拖拽功能的事件回调函数,必须设置 setting.callback.beforeDrag / onDrag / beforeDrop / onDrop 等属性,详细请参见 API 文档中的相关内容
                                                                                                                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                                                                                                                          • 基本拖拽设置:
                                                                                                                                                                                                                                                                                                                                                                                                            + 允许复制 + 允许移动
                                                                                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                                                                            • 拖拽相对位置设置:
                                                                                                                                                                                                                                                                                                                                                                                                              + prev + inner + next
                                                                                                                                                                                                                                                                                                                                                                                                              +

                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                                                                            • 2、treeNode 节点数据说明

                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                              • 对 节点数据 没有特殊要求,用户可以根据自己的需求添加自定义属性
                                                                                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                            + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/cn/exedit/drag_fun.html b/alive-admin/target/classes/static/ztree/demo/cn/exedit/drag_fun.html new file mode 100644 index 0000000..963068d --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/cn/exedit/drag_fun.html @@ -0,0 +1,180 @@ + + + + ZTREE DEMO - copyNode / moveNode + + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                                                                            用 zTree 方法 移动 / 复制节点

                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                            [ 文件路径: exedit/drag_fun.html ]
                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                              • 1、copyNode / moveNode 方法操作说明

                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                • 利用 copyNode / moveNode 方法也可以实现 复制 / 移动 节点的目的,这里简单演示使用方法
                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                • 对节点进行 复制 / 剪切,试试看:
                                                                                                                                                                                                                                                                                                                                                                                                                  +     [ 复制 ] +     [ 剪切 ] +     [ 粘贴 ]

                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                • 使用 zTreeObj.copyNode / moveNode 方法,详细请参见 API 文档中的相关内容
                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                                                                                              • 2、setting 配置信息说明

                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                • 同 "拖拽 节点 基本控制"
                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                                                                                              • 3、treeNode 节点数据说明

                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                • 同 "拖拽 节点 基本控制"
                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                              + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/cn/exedit/drag_super.html b/alive-admin/target/classes/static/ztree/demo/cn/exedit/drag_super.html new file mode 100644 index 0000000..668746f --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/cn/exedit/drag_super.html @@ -0,0 +1,210 @@ + + + + ZTREE DEMO - beforeDrag / onDrag / beforeDrop / onDrop + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                                                                              拖拽节点高级控制

                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                              [ 文件路径: exedit/drag_super.html ]
                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                • 1、beforeDrag / onDrag
                                                                                                                                                                                                                                                                                                                                                                                                                    beforeDrop / onDrop 事件回调函数控制

                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                  • 此 Demo 演示合理利用配置参数实现更加灵活、更加合理的拖拽规则,操作时可以对比"基本控制"的例子
                                                                                                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                                                                                                  • 此 Demo 默认 允许复制 / 移动
                                                                                                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                                                                                                  • 此 Demo 中拖拽相对位置设置为 function,可以根据节点动态设定,从而可以放弃使用 beforeDrop 回调函数,拖拽时的效果会更好
                                                                                                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                                                                                                  • 在对这些灵活的配置熟悉以后,相信你能够做出更加合理的拖拽规则!
                                                                                                                                                                                                                                                                                                                                                                                                                    +      拖拽节点时自动展开父节点是否触发 callback
                                                                                                                                                                                                                                                                                                                                                                                                                    + drag / drop log:
                                                                                                                                                                                                                                                                                                                                                                                                                    +

                                                                                                                                                                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                                                                                                  • 2、setting 配置信息说明

                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                    • 同 "拖拽 节点 基本控制"
                                                                                                                                                                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                                                                                                  • 3、treeNode 节点数据说明

                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                    • 同 "拖拽 节点 基本控制"
                                                                                                                                                                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                  + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/cn/exedit/edit.html b/alive-admin/target/classes/static/ztree/demo/cn/exedit/edit.html new file mode 100644 index 0000000..ed787d7 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/cn/exedit/edit.html @@ -0,0 +1,115 @@ + + + + ZTREE DEMO - edit + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                                                                                  基本 增 / 删 / 改 节点

                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                  [ 文件路径: exedit/edit.html ]
                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                    • 1、setting 配置信息说明

                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                      • 此 Demo 仅从功能上演示编辑节点的基本方法和配置参数
                                                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                                                      • 1)、使用 编辑功能,必须设置 setting.edit 中的各个属性,详细请参见 API 文档中的相关内容
                                                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                                                      • 2)、使用 编辑功能的事件回调函数,必须设置 setting.callback.beforeRemove / onRemove / beforeRename / onRename 等属性,详细请参见 API 文档中的相关内容
                                                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                                                      • 3)、zTree 不提供默认的增加按钮,如需实现请利用自定义控件的方法 addHoverDom / removeHoverDom ,详细请参见 API 文档中的相关内容;另外也可以参考 "高级 增 / 删 / 改 节点" 的 Demo
                                                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                                                      • 基本编辑按钮设置:
                                                                                                                                                                                                                                                                                                                                                                                                                        + 显示删除按钮 + 显示编辑按钮
                                                                                                                                                                                                                                                                                                                                                                                                                        + remove 按钮的 title:
                                                                                                                                                                                                                                                                                                                                                                                                                        + rename 按钮的 title: +

                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                                                      • 2、treeNode 节点数据说明

                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                        • 对 节点数据 没有特殊要求,用户可以根据自己的需求添加自定义属性
                                                                                                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                      + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/cn/exedit/edit_fun.html b/alive-admin/target/classes/static/ztree/demo/cn/exedit/edit_fun.html new file mode 100644 index 0000000..6201683 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/cn/exedit/edit_fun.html @@ -0,0 +1,194 @@ + + + + ZTREE DEMO - addNodes / editName / removeNode / removeChildNodes + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                                                                                      用 zTree 方法 增 / 删 / 改 节点

                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                      [ 文件路径: exedit/edit_fun.html ]
                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                        • 1、addNodes / editName / removeNode / removeChildNodes 方法操作说明

                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                          • 利用 addNodes / editName / removeNode / removeChildNodes 方法也可以实现 增 / 删 / 改 节点的目的,这里简单演示使用方法
                                                                                                                                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                                                                                                                                          • cancelEditName 方法仅仅是在节点进入名称编辑状态时有效,请在必要时使用,Demo 不进行此方法的演示
                                                                                                                                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                                                                                                                                          • 利用 setting.data.keep.parent / leaf 属性 实现了父节点、叶子节点的状态锁定
                                                                                                                                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                                                                                                                                          • 对节点进行 增 / 删 / 改,试试看:
                                                                                                                                                                                                                                                                                                                                                                                                                            +      removeNode 方法是否触发 callback
                                                                                                                                                                                                                                                                                                                                                                                                                            +     [ 增加父节点 ] +     [ 增加叶子节点 ] +     [ 编辑名称 ]
                                                                                                                                                                                                                                                                                                                                                                                                                            +     [ 删除节点 ] +     [ 清空子节点 ]
                                                                                                                                                                                                                                                                                                                                                                                                                            + remove log:
                                                                                                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                                                                                            • 使用 zTreeObj.addNodes / cancelEditName / editName / removeNode / removeChildNodes 方法,详细请参见 API 文档中的相关内容
                                                                                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                                                                                                                                          • 2、setting 配置信息说明

                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                            • 同 "基本 增 / 删 / 改 节点"
                                                                                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                                                                                            • 保持 父 / 叶子 节点状态,需要设置 setting.data.keep.parent / leaf 属性,详细请参见 API 文档中的相关内容
                                                                                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                                                                                                                                          • 3、treeNode 节点数据说明

                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                            • 同 "基本 增 / 删 / 改 节点"
                                                                                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                          + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/cn/exedit/edit_super.html b/alive-admin/target/classes/static/ztree/demo/cn/exedit/edit_super.html new file mode 100644 index 0000000..d7389aa --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/cn/exedit/edit_super.html @@ -0,0 +1,173 @@ + + + + ZTREE DEMO - beforeEditName / beforeRemove / onRemove / beforeRename / onRename + + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                                                                                          高级 增 / 删 / 改 节点

                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                          [ 文件路径: exedit/edit_super.html ]
                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                            • 1、beforeEditName
                                                                                                                                                                                                                                                                                                                                                                                                                                beforeRemove / onRemove
                                                                                                                                                                                                                                                                                                                                                                                                                                beforeRename / onRename 事件回调函数控制

                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                              • 此 Demo 演示合理利用自定义控件、事件回调函数配合以增强用户体验,操作时可以对比"基本 增 / 删 / 改 节点"的 Demo
                                                                                                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                                                                                                              • 此 Demo 实现增加节点按钮
                                                                                                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                                                                                                              • 此 Demo 实现删除节点时进行确认
                                                                                                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                                                                                                              • 可以利用 beforeEditName 触发自定义的编辑操作
                                                                                                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                                                                                                              • 在对这些灵活的配置熟悉以后,相信你能够做出更加合理的编辑界面!
                                                                                                                                                                                                                                                                                                                                                                                                                                +      编辑名称时是否全选 text
                                                                                                                                                                                                                                                                                                                                                                                                                                + remove / rename log:
                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                                                                                                              • 2、setting 配置信息说明

                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                • 同 "基本 增 / 删 / 改 节点"
                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                                                                                                              • 3、treeNode 节点数据说明

                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                • 同 "基本 增 / 删 / 改 节点"
                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                              + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/cn/exedit/multiTree.html b/alive-admin/target/classes/static/ztree/demo/cn/exedit/multiTree.html new file mode 100644 index 0000000..a4736a2 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/cn/exedit/multiTree.html @@ -0,0 +1,94 @@ + + + + ZTREE DEMO - multiTree + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                                                                                              多棵树之间 的 数据交互

                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                              [ 文件路径: exedit/multiTree.html ]
                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                              • 1、setting 配置信息说明

                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                • zTree 对于多棵树之间拖拽的操作非常简单,只需要创建两棵可拖拽的树即可,同时可根据 各种事件回调函数 以及 zTree 的方法配合实现较复杂的操作规则,这里只是基本演示。
                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                • 关于配置信息请参考拖拽、编辑等 Demo 的详细说明
                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                                                                                                              • 2、treeNode 节点数据说明

                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                • 对 节点数据 没有特殊要求,用户可以根据自己的需求添加自定义属性
                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                  + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/cn/exhide/checkbox.html b/alive-admin/target/classes/static/ztree/demo/cn/exhide/checkbox.html new file mode 100644 index 0000000..bf73081 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/cn/exhide/checkbox.html @@ -0,0 +1,161 @@ + + + + ZTREE DEMO - Hide With Checkbox Mode + + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                                                                                                  配合 checkbox 的隐藏

                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                  [ 文件路径: exhide/checkbox.html ]
                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                    • 1、setting 配置信息说明

                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                      • 使用隐藏功能,无需设置任何参数
                                                                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                                                                                                                                                                                    • 2、treeNode 节点数据说明

                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                      • 初始化时,设置 treeNode.isHidden = true; 可以让节点隐藏
                                                                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                                                                      • 隐藏、显示节点,看看树的变化:

                                                                                                                                                                                                                                                                                                                                                                                                                                        + 试试看:[ 隐藏选中的节点 ] +     [ 显示全部被隐藏的节点 ]

                                                                                                                                                                                                                                                                                                                                                                                                                                        +

                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                        • isHidden = true 的节点共
                                                                                                                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                                                                                                                        • 被隐藏的节点共
                                                                                                                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                                                                                                                        • 当前被勾选的节点共
                                                                                                                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                                                                                                                        • 当前未被勾选的节点共
                                                                                                                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                                                                                                                        • 隐藏节点后,可以看看仍显示节点的 isFirstNode 和 isLastNode 属性
                                                                                                                                                                                                                                                                                                                                                                                                                                        • +

                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                                                                                                                                                                                    • 3、其他说明

                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                      • 隐藏节点操作,会影响 isFirstNode 和 isLastNode 属性,但是对于 getPreNode() 和 getNextNode() 方法无影响
                                                                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                    + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/cn/exhide/common.html b/alive-admin/target/classes/static/ztree/demo/cn/exhide/common.html new file mode 100644 index 0000000..600d1c0 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/cn/exhide/common.html @@ -0,0 +1,126 @@ + + + + ZTREE DEMO - Hide Ordinary Node + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                                                                                                    隐藏普通节点

                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                    [ 文件路径: exhide/common.html ]
                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                      • 1、setting 配置信息说明

                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                        • 使用此功能,无需设置任何参数
                                                                                                                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                                                                      • 2、treeNode 节点数据说明

                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                        • 初始化时,设置 treeNode.isHidden = true; 可以让节点隐藏
                                                                                                                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                                                                                                                        • 隐藏、显示节点,看看树的变化:

                                                                                                                                                                                                                                                                                                                                                                                                                                          + 试试看:[ 隐藏选中的节点 ] +     [ 显示全部被隐藏的节点 ]

                                                                                                                                                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                          • isHidden = true 的节点共
                                                                                                                                                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                                                                                                                                                          • 隐藏节点后,可以看看仍显示节点的 isFirstNode 和 isLastNode 属性
                                                                                                                                                                                                                                                                                                                                                                                                                                          • +

                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                                                                      • 3、其他说明

                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                        • 隐藏节点操作,会影响 isFirstNode 和 isLastNode 属性,但是对于 getPreNode() 和 getNextNode() 方法无影响
                                                                                                                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                      + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/cn/exhide/radio.html b/alive-admin/target/classes/static/ztree/demo/cn/exhide/radio.html new file mode 100644 index 0000000..5273b73 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/cn/exhide/radio.html @@ -0,0 +1,162 @@ + + + + ZTREE DEMO - Hide With Radio Mode + + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                                                                                                      配合 radio 的隐藏

                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                      [ 文件路径: exhide/radio.html ]
                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                        • 1、setting 配置信息说明

                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                          • 使用隐藏功能,无需设置任何参数
                                                                                                                                                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                                                                                                                        • 2、treeNode 节点数据说明

                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                          • 初始化时,设置 treeNode.isHidden = true; 可以让节点隐藏
                                                                                                                                                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                                                                                                                                                          • 隐藏、显示节点,看看树的变化:

                                                                                                                                                                                                                                                                                                                                                                                                                                            + 试试看:[ 隐藏选中的节点 ] +     [ 显示全部被隐藏的节点 ]

                                                                                                                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                            • isHidden = true 的节点共
                                                                                                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                                                                                                            • 被隐藏的节点共
                                                                                                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                                                                                                            • 当前被勾选的节点共
                                                                                                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                                                                                                            • 当前未被勾选的节点共
                                                                                                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                                                                                                            • 隐藏节点后,可以看看仍显示节点的 isFirstNode 和 isLastNode 属性
                                                                                                                                                                                                                                                                                                                                                                                                                                            • +

                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                                                                                                                        • 3、其他说明

                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                          • 隐藏节点操作,会影响 isFirstNode 和 isLastNode 属性,但是对于 getPreNode() 和 getNextNode() 方法无影响
                                                                                                                                                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                        + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/cn/index.html b/alive-admin/target/classes/static/ztree/demo/cn/index.html new file mode 100644 index 0000000..850d701 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/cn/index.html @@ -0,0 +1,158 @@ + + + + ZTREE DEMO + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                          + + + diff --git a/alive-admin/target/classes/static/ztree/demo/cn/super/asyncForAll.html b/alive-admin/target/classes/static/ztree/demo/cn/super/asyncForAll.html new file mode 100644 index 0000000..d0a400c --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/cn/super/asyncForAll.html @@ -0,0 +1,190 @@ + + + + ZTREE DEMO - async for All + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                                                                                                          异步加载模式下全部展开

                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                          [ 文件路径: super/asyncForAll.html ]
                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                            • 实现方法说明

                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                              • 利用 onAsyncSuccess / onAsyncError 回调函数 和 reAsyncChildNodes 或 expandNode 方法可以实现全部功能。
                                                                                                                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                                                                                                                              • 如果父节点数量很大,请注意利用延时进行控制,避免异步进程过多。
                                                                                                                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                                                                                                                              • 建议:演示时请利用调试工具查看 network 的 ajax 加载过程。
                                                                                                                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                                                                                                                              • 演示操作 +

                                                                                                                                                                                                                                                                                                                                                                                                                                                + [ 全部展开 ]        + [ 后台自动全部加载 ]

                                                                                                                                                                                                                                                                                                                                                                                                                                                + [ Reset zTree ]

                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                            + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/cn/super/checkbox_radio.html b/alive-admin/target/classes/static/ztree/demo/cn/super/checkbox_radio.html new file mode 100644 index 0000000..66a3b03 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/cn/super/checkbox_radio.html @@ -0,0 +1,116 @@ + + + + ZTREE DEMO - checkbox & radio + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                                                                                                            checkbox / radio 共存

                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                            [ 文件路径: super/checkbox_radio.html ]
                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                              • 实现方法说明

                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                • zTree 默认的 checkbox 和 radio 是无法共存的,但可以利用 自定义控件 的功能实现此需求,具体需求可以参考 "添加 自定义控件" 的详细说明
                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                • 对于 checkbox / radio 的联动规则,请根据需求制定自己的规则
                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                              + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/cn/super/diydom.html b/alive-admin/target/classes/static/ztree/demo/cn/super/diydom.html new file mode 100644 index 0000000..1980ff9 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/cn/super/diydom.html @@ -0,0 +1,177 @@ + + + + ZTREE DEMO - addHoverDom / removeHoverDom / addDiyDom + + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                                                                                                              添加自定义控件

                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                              [ 文件路径: super/diydom.html ]
                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                • 1、实现方法说明

                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                  • 利用 setting.view.addHoverDom / removeHoverDom / addDiyDom 这几个参数的配置可以很容易的实现自定义控件的功能
                                                                                                                                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                  • 添加自定义控件,请务必掌握 zTree 节点对象的命名规则,以保证正常添加 DOM 控件
                                                                                                                                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                  • 如果添加标准的 select / checkbox / radio 等,请注意适当调整 zTree 的布局 css,保证 zTree 能正常显示
                                                                                                                                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                • 2、setting 配置信息说明

                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                  • 使用 setting.view.addHoverDom / removeHoverDom / addDiyDom 属性,详细请参见 API 文档中的相关内容
                                                                                                                                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                • 3、treeNode 节点数据说明

                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                  • 对 节点数据 没有特殊要求,用户可以根据自己的需求添加自定义属性
                                                                                                                                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/cn/super/dragWithOther.html b/alive-admin/target/classes/static/ztree/demo/cn/super/dragWithOther.html new file mode 100644 index 0000000..04a5b7c --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/cn/super/dragWithOther.html @@ -0,0 +1,235 @@ + + + + ZTREE DEMO - drag with other DOM + + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                与其他 DOM 拖拽互动

                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                [ 文件路径: super/dragWithOther.html ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                  • 实现方法说明

                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                    • zTree v3.2 版本修正了 onDrag/onDrop 中的 event 对象,因此可以较容易的控制将节点拖拽到其他 DOM
                                                                                                                                                                                                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                    • 将其他 DOM 拖拽到 zTree 需要自己制作相关的拖拽代码
                                                                                                                                                                                                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                    • 这仅仅是一个最简单的演示,如果需要更炫的效果,需要制作更复杂的代码
                                                                                                                                                                                                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                  • 请拖拽下面内容到 树节点上

                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                    大树小草花朵
                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                    老虎狗熊狮子
                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                    + 也可以把二级节点拖拽到以上图层 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                  + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/cn/super/left_menu.html b/alive-admin/target/classes/static/ztree/demo/cn/super/left_menu.html new file mode 100644 index 0000000..4b9941a --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/cn/super/left_menu.html @@ -0,0 +1,152 @@ + + + + ZTREE DEMO - left_menu + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                  左侧菜单

                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                  [ 文件路径: super/left_menu.html ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                    • 实现方法说明

                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                      • 在 “Demo 演示”中的左侧菜单就是用 zTree 实现的,主要是靠 css 样式负责排版,利用 setting 中的配置进行功能制作,本 Demo 对实现 左侧菜单进行简单的介绍,你也可以通过查看 “Demo 演示”页面的源码深入了解。
                                                                                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                      • 1、关于 css 完全可以根据自己的需要进行个性化调整,例如:此 Demo 的菜单样式 就 与 “Demo 演示”页面的不一样,仅供对比参考
                                                                                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                      • 2、主要用到的配置有:
                                                                                                                                                                                                                                                                                                                                                                                                                                                        +     setting.view.showIcon / showLine / selectedMulti / dblClickExpand
                                                                                                                                                                                                                                                                                                                                                                                                                                                        +     setting.callback.onNodeCreated / beforeClick / onClick +
                                                                                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                      • 3、是否需要限制单一路径展开,完全由你的需求而定,实现代码可参考 "保持展开单一路径"
                                                                                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                      • 4、其他辅助规则,请根据实际情况自行编写
                                                                                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                    + + diff --git a/alive-admin/target/classes/static/ztree/demo/cn/super/left_menuForOutLook.gif b/alive-admin/target/classes/static/ztree/demo/cn/super/left_menuForOutLook.gif new file mode 100644 index 0000000..c252f0f Binary files /dev/null and b/alive-admin/target/classes/static/ztree/demo/cn/super/left_menuForOutLook.gif differ diff --git a/alive-admin/target/classes/static/ztree/demo/cn/super/left_menuForOutLook.html b/alive-admin/target/classes/static/ztree/demo/cn/super/left_menuForOutLook.html new file mode 100644 index 0000000..bf6eb30 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/cn/super/left_menuForOutLook.html @@ -0,0 +1,136 @@ + + + + ZTREE DEMO - left_menu for Outlook + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                    OutLook 样式的左侧菜单

                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                    [ 文件路径: super/left_menuForOutLook.html ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                      • 实现方法说明

                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                        • 帮朋友用 zTree 实现了一个貌似 Outlook.com 的菜单,特拿出来分享给大家
                                                                                                                                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                        • 1、请注意本页面源码中的 css 部分
                                                                                                                                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                        • 2、请查看源码中 js 的使用,特别是利用 addDiyDom 回调将 展开按钮 转移到 <a> 标签内
                                                                                                                                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                        • 3、利用添加 zTree 的 class 实现展开按钮的隐藏、显示
                                                                                                                                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                        • 4、其他辅助规则,请根据实际情况自行编写
                                                                                                                                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                        • 5、当前规则说明:
                                                                                                                                                                                                                                                                                                                                                                                                                                                          +   单击根节点可以展开、折叠;
                                                                                                                                                                                                                                                                                                                                                                                                                                                          +   非根节点只有点击 箭头 图标才可以展开、折叠;
                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                      + + diff --git a/alive-admin/target/classes/static/ztree/demo/cn/super/left_menuForOutLook.png b/alive-admin/target/classes/static/ztree/demo/cn/super/left_menuForOutLook.png new file mode 100644 index 0000000..36e8acf Binary files /dev/null and b/alive-admin/target/classes/static/ztree/demo/cn/super/left_menuForOutLook.png differ diff --git a/alive-admin/target/classes/static/ztree/demo/cn/super/oneclick.html b/alive-admin/target/classes/static/ztree/demo/cn/super/oneclick.html new file mode 100644 index 0000000..93e32a4 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/cn/super/oneclick.html @@ -0,0 +1,87 @@ + + + + ZTREE DEMO - one click + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                      单击展开/折叠节点

                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                      [ 文件路径: super/oneclick.html ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                        • 实现方法说明

                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                          • zTree 默认不提供单击展开节点的功能,但可以利用 onClick 事件回调函数轻松实现此功能
                                                                                                                                                                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                          • 为了避免与双击功能冲突,建议关闭双击展开节点的功能,请设置 setting.view.dblClickExpand = false
                                                                                                                                                                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                          • 可以将所有的 +/- 开关隐藏,请查看本页面源码,查看 css 设置
                                                                                                                                                                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                          • 由于 +/- 开关与 节点连接线是配套的,所以如果不显示 +/- 开关的话,那么请设置 setting.view.showLine = false 隐藏连接线
                                                                                                                                                                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                        + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/cn/super/oneroot.html b/alive-admin/target/classes/static/ztree/demo/cn/super/oneroot.html new file mode 100644 index 0000000..6624e7b --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/cn/super/oneroot.html @@ -0,0 +1,79 @@ + + + + ZTREE DEMO - one root + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                        冻结根节点

                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                        [ 文件路径: super/oneroot.html ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                          • 实现方法说明

                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                            • 对于这种只有一个根节点,且不显示 +/- 开关的需求,需要利用 css、setting 配合使用
                                                                                                                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                            • zTree v3.x 可以针对指定的 level,进行样式设定,请查看本页面源码,查看 css 设置
                                                                                                                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                            • 设置 setting.view.dblClickExpand 指向 Function,可以只针对根节点关闭双击展开的操作
                                                                                                                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                          + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/cn/super/rightClickMenu.html b/alive-admin/target/classes/static/ztree/demo/cn/super/rightClickMenu.html new file mode 100644 index 0000000..9e5b404 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/cn/super/rightClickMenu.html @@ -0,0 +1,168 @@ + + + + ZTREE DEMO - select menu + + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                          右键菜单的实现

                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                          [ 文件路径: super/rightClickMenu.html ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                            • 实现方法说明

                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                              • 利用 beforeRightClick / onRightClick 事件回调函数简单实现的右键菜单
                                                                                                                                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                              • Demo 中的菜单比较简陋,你完全可以配合其他自定义样式的菜单图层混合使用
                                                                                                                                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                            • 增加节点
                                                                                                                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                            • 删除节点
                                                                                                                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Check节点
                                                                                                                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                            • unCheck节点
                                                                                                                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                            • 恢复zTree
                                                                                                                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                            + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/cn/super/select_menu.html b/alive-admin/target/classes/static/ztree/demo/cn/super/select_menu.html new file mode 100644 index 0000000..67787c6 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/cn/super/select_menu.html @@ -0,0 +1,124 @@ + + + + ZTREE DEMO - select menu + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                            下拉菜单

                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                            [ 文件路径: super/select_menu.html ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                            •   选择城市时,按下 Ctrl 键可以进行多选
                                                                                                                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                            •   城市: +  选择
                                                                                                                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                            • 实现方法说明

                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                              • 用 zTree 实现这种下拉菜单,应该说是比较容易的,你只需要控制 zTree 所在容器的隐藏/显示,以及位置即可。
                                                                                                                                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                              • zTree v3.x 实现了多点选中功能,因此对于需要多选的下拉菜单也易如反掌。
                                                                                                                                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                              • 利用 setting 的各项配置参数,完全可以满足大部分的功能需求。
                                                                                                                                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                            + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/cn/super/select_menu_checkbox.html b/alive-admin/target/classes/static/ztree/demo/cn/super/select_menu_checkbox.html new file mode 100644 index 0000000..529b01d --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/cn/super/select_menu_checkbox.html @@ -0,0 +1,126 @@ + + + + ZTREE DEMO - checkbox select menu + + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                            带 checkbox 的多选下拉菜单 -- zTree

                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                            [ 文件路径: super/select_menu_checkbox.html ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                            •   勾选 checkbox 或者 点击节点 进行选择
                                                                                                                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                            •   Test: +  select
                                                                                                                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                            • 实现方法说明

                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                              • 用 checkbox 也可以轻松实现多选的下拉菜单
                                                                                                                                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                              • 此 Demo 主要用于 和 其他下拉菜单进行对比
                                                                                                                                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                            + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/cn/super/select_menu_radio.html b/alive-admin/target/classes/static/ztree/demo/cn/super/select_menu_radio.html new file mode 100644 index 0000000..cc1d439 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/cn/super/select_menu_radio.html @@ -0,0 +1,127 @@ + + + + ZTREE DEMO - radio select menu + + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                            带 radio 的单选下拉菜单 -- zTree

                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                            [ 文件路径: super/select_menu_radio.html ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                            •   勾选 radio 或者 点击节点 进行选择
                                                                                                                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                            •   Test: +  select
                                                                                                                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                            • 实现方法说明

                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                              • 用 radio 也可以轻松实现单选的下拉菜单
                                                                                                                                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                              • 单选其实没有必要使用 radio, 此 Demo 主要用于 和 其他下拉菜单进行对比
                                                                                                                                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                            + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/cn/super/singlepath.html b/alive-admin/target/classes/static/ztree/demo/cn/super/singlepath.html new file mode 100644 index 0000000..f2a49d9 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/cn/super/singlepath.html @@ -0,0 +1,172 @@ + + + + ZTREE DEMO - single path + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                            保持展开单一路径

                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                            [ 文件路径: super/singlepath.html ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                              • 实现方法说明

                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                • 此 Demo 是在 "单击展开/折叠节点" 基础上改造而来,树节点保持始终只展开一条路径。
                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                • 利用 setting.callback.beforeExpand / onExpand 事件回调函数实现展开规则
                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                              + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/en/asyncData/getNodes.php b/alive-admin/target/classes/static/ztree/demo/en/asyncData/getNodes.php new file mode 100644 index 0000000..3294d9a --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/en/asyncData/getNodes.php @@ -0,0 +1,38 @@ + +[] diff --git a/alive-admin/target/classes/static/ztree/demo/en/asyncData/getNodesForBigData.php b/alive-admin/target/classes/static/ztree/demo/en/asyncData/getNodesForBigData.php new file mode 100644 index 0000000..91d002e --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/en/asyncData/getNodesForBigData.php @@ -0,0 +1,24 @@ + +[] \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/en/bigdata/common.html b/alive-admin/target/classes/static/ztree/demo/en/bigdata/common.html new file mode 100644 index 0000000..6e1728d --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/en/bigdata/common.html @@ -0,0 +1,190 @@ + + + + ZTREE DEMO - big data common + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                              One-time Large Data Loading

                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                              [ File Path: bigdata/common.html ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                              • Adjust the total number of nodes to the test load speed: +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                5000
                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                + checkbox     + [ Initialize zTree ] +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                • 1, Explanation of large data load

                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • 1) zTree v3.x optimized for one-time large data loading capacity, using a lazy loading technique, which does not expand the node does not create child nodes of the DOM.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • 2) If a maximum of 100 nodes each, but a total number of several thousand or even tens of thousands of nodes, and the parent node is collapsed by default to optimize the most obvious effect, very fast.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • 3) For the next level there are thousands of sub-node case, the optimization of lazy loading is invalid, proposal to consider asynchronous page loading.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • 4) if you set the data to all the parent nodes are expanded, the optimization of lazy loading is invalid, proposal to not expand all parent node when you initialize zTree.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • 5) set the display checkbox / radio will affect some of the performance.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • 6) DOM generated using addDiyDom function will affect the speed, the number of nodes determines the number of impact situations.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • 7) Using 'onNodeCreated' callback function to manipulate nodes object will affect the speed, the degree of influence determined by the number of nodes.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                • 2, Explanation of setting

                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • No special configuration.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                • 3, Explanation of treeNode

                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • No special requirements on the node data, the user can add custom attributes.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/en/bigdata/diy_async.html b/alive-admin/target/classes/static/ztree/demo/en/bigdata/diy_async.html new file mode 100644 index 0000000..f8b90e2 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/en/bigdata/diy_async.html @@ -0,0 +1,157 @@ + + + + ZTREE DEMO - big data async + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                Loading Data in Batches

                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                [ File Path: bigdata/diy_async.html ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                •     Demo for testing load data in batches, each node needs to re-start to load.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • 1, Explanation of large data load

                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • 1) If has nodes for as many as thousands in one level, lazy loading is invalid, this demo shows how to load data in batches.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • 2) This method applies to thousands of nodes must all display needs.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • 3) This method doesn't solve the problem of slow loading, it will only make the final result appear more slowly, but can be limited to avoid browser suspended animation, and more nodes displayed slower.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • 4) For at least several thousand nodes in one level case, another solution is to: pagination loading.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      + async load log:
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • 2, Explanation of setting

                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • Need to set the parameters in setting.async
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • Advised to turn off animation effects: setting.view.expandSpeed = "";
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • No other special configuration, the user can set their own requirements.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • 3, Explanation of treeNode

                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • No special requirements on the node data, the user can add custom attributes.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/en/bigdata/page.html b/alive-admin/target/classes/static/ztree/demo/en/bigdata/page.html new file mode 100644 index 0000000..f8a4963 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/en/bigdata/page.html @@ -0,0 +1,150 @@ + + + + ZTREE DEMO - big data page + + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Loading Data By Pagination

                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    [ File Path: bigdata/page.html ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • 1, Explanation of large data load

                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • 1) Pagination can be an effective solution to the large number of child nodes of the situation.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • 2) Using custom method to display the pagination button.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • 3) Pagination lead to the association of checkbox can not be achieved, only correction after show each page . Because of the time limitation, Demo does not deal with association of checkbox.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • 4) The use of pagination, you can only get the current page node data from zTree. You can save the data after each page loading as the cache, according to the demand to determine the specific methods.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • 2, Explanation of setting

                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • Need to set the parameters in setting.async
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • No other special configuration, the user can set their own requirements.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • 3, Explanation of treeNode

                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • No special requirements on the node data, the user can add custom attributes.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/en/core/async.html b/alive-admin/target/classes/static/ztree/demo/en/core/async.html new file mode 100644 index 0000000..9668fe6 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/en/core/async.html @@ -0,0 +1,70 @@ + + + + ZTREE DEMO - Async + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Dynamic Tree with Ajax

                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      [ File Path: core/async.html ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • 1, Explanation of setting

                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • For create dynamic tree with ajax, you need to set attributes in setting.async, see the API documentation for more related contents.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • 2, Explanation of treeNode

                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • Dynamic tree with ajax doesn't need to make special treeNode node data, if use simple JSON data model, please set the attributes in setting.data.simple.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • If ajax only to return node data in single level, you don't need to use simple JSON data model.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • 3、Other explanation

                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • Monitoring autoParam and otherParam use firebug or the developer tools in browser.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • This Demo only loading 4 level nodes (level = 3).
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • This Demo use 'dataFilter' to modify the name of the node.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/en/core/async_fun.html b/alive-admin/target/classes/static/ztree/demo/en/core/async_fun.html new file mode 100644 index 0000000..37aea06 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/en/core/async_fun.html @@ -0,0 +1,144 @@ + + + + ZTREE DEMO - reAsyncChildNodes + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Dynamic Tree - zTree methods

                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        [ File Path: core/async_fun.html ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • 1, Explanation of reAsyncChildNodes

                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • How to use zTreeObj.reAsyncChildNodes method, please see the API documentation.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • This Demo can only select one parent node
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              + Try: [ reload ]    [ append ]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • 'isSilent' parameter is only for the collapsed state of the parent node.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              + Try: [ Quietly reloaded ]    [ Quietly append ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              + async log:
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • 2, Explanation of setting

                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • For useing reAsyncChildNodes method, you need to set attributes in setting.async, see the API documentation for more related contents.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • 3, Explanation of treeNode

                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • Same as 'Dynamic Tree with Ajax'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • 4、Other explanation

                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • Same as 'Dynamic Tree with Ajax'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/en/core/click.html b/alive-admin/target/classes/static/ztree/demo/en/core/click.html new file mode 100644 index 0000000..4f0fa80 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/en/core/click.html @@ -0,0 +1,107 @@ + + + + ZTREE DEMO - beforeClick / onClick + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Control of Click Node

                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [ File Path: core/click.html ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • 1, 'beforeClick / onClick' callback function

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • Use 'beforeClick / onClick' callback function can be achieved with the click on the various functions. This simple demo shows how to monitor the click event.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • Try pressing the Ctrl key for multi-node selection and deselection.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  + click log:
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • 2, Explanation of setting

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • You need to set attributes about setting.callback.beforeClick and setting.callback.onClick, see the API documentation for more related contents.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • 3, Explanation of treeNode

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • No special requirements on the node data, the user can add custom attributes.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/en/core/custom_font.html b/alive-admin/target/classes/static/ztree/demo/en/core/custom_font.html new file mode 100644 index 0000000..e00253b --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/en/core/custom_font.html @@ -0,0 +1,67 @@ + + + + ZTREE DEMO - Custom Font + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Custom Fonts

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [ File Path: core/custom_font.html ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • 1, Explanation of setting

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • 1. For display custom fonts, you need to set setting.view.fontCss attribute, see the API documentation for more related contents.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • 2. If you need the node name support the HTML, please set the 'setting.view.nameIsHTML' attribute, see the API documentation for more related contents.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • 2, Explanation of treeNode

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • Set the font does not require to special node data , but if used to differentiate between different types of nodes, the corresponding data can set custom attributes.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • The css style of data stored in the nodes within this demo
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/en/core/custom_icon.html b/alive-admin/target/classes/static/ztree/demo/en/core/custom_icon.html new file mode 100644 index 0000000..17084e5 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/en/core/custom_icon.html @@ -0,0 +1,74 @@ + + + + ZTREE DEMO - Custom Icon + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Custom Icon - icon

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [ File Path: core/custom_icon.html ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • 1, Explanation of setting

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • Custom icon does not require special configuration setting.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • 2, Explanation of treeNode

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • Use node data’s icon / iconOpen / iconClose attribute show custom icon.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • See the API documentation for more related contents.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • 3、Other explanation

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • Because of the time limitation, demo uses png images, if you need transparent images in IE6 browser, make a gif image, or use a special 'css filter' on ie6 browser.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/en/core/custom_iconSkin.html b/alive-admin/target/classes/static/ztree/demo/en/core/custom_iconSkin.html new file mode 100644 index 0000000..3e09930 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/en/core/custom_iconSkin.html @@ -0,0 +1,85 @@ + + + + ZTREE DEMO - Custom Icon Skin + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Custom Icon - iconSkin

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    [ File Path: core/custom_iconSkin.html ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • 1, Explanation of setting

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • Custom icon does not require special configuration setting.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • 2, Explanation of treeNode

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • Use the node data iconSkin attributes and css show custom icon.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • See the API documentation for more related contents.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • 3、Other explanation

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • Because of the time limitation, demo uses png images, if you need transparent images in IE6 browser, make a gif image, or use a special 'css filter' on ie6 browser.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/en/core/expand.html b/alive-admin/target/classes/static/ztree/demo/en/core/expand.html new file mode 100644 index 0000000..5df840a --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/en/core/expand.html @@ -0,0 +1,183 @@ + + + + ZTREE DEMO - beforeExpand / onExpand && beforeCollapse / onCollapse + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Control of Expand Node

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      [ File Path: core/expand.html ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • 1, 'beforeCollapse / onCollapse'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            'beforeExpand / onExpand' callback function

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • Use 'beforeCollapse / onCollapse' and 'beforeExpand / onExpand' callback function can control whether to allow expand or collapse the parent node + . This simple demo shows how to monitor the collapse and expand event.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • Try:
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +      Whether trigger the callback when execution expandNode() method.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +     Single Node --[ expand ] +     [ collapse ] +     [ toggle ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +     Single Node (including child) --[ expand ] +     [ collapse ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +     All Nodes --[ expand All ] +     [ collapse All ]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • How to use zTreeObj.updateNode method, please see the API documentation.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + collapse / expand log:
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • 2, Explanation of setting

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Set attributes about 'setting.callback.beforeCollapse / onCollapse / beforeExpand / onExpand', please see the API documentation for more related contents.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • If you need to adjust the expand / collapse animation effects, please see the API documentation about setting.view.expandSpeed.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • 3, Explanation of treeNode

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • No special requirements on the node data, the user can add custom attributes.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/en/core/noicon.html b/alive-admin/target/classes/static/ztree/demo/en/core/noicon.html new file mode 100644 index 0000000..19a6664 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/en/core/noicon.html @@ -0,0 +1,93 @@ + + + + ZTREE DEMO - noIcon + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Don't Show Icon

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          [ File Path: core/noicon.html ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • 1, Explanation of setting

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • This Demo using Function set to the parent node does not display the icon.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • Whether to display the icon, you need to set setting.view.showIcon attribute, see the API documentation for more related contents.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • 2, Explanation of treeNode

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • TreeNode data does not require special settings. If you need some node display icon, and some nodes are not displayed, you can add special attributes to the node data for identification.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/en/core/noline.html b/alive-admin/target/classes/static/ztree/demo/en/core/noline.html new file mode 100644 index 0000000..d61792f --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/en/core/noline.html @@ -0,0 +1,88 @@ + + + + ZTREE DEMO - noLine + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Don't Show Line

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [ File Path: core/noline.html ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • 1, Explanation of setting

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • Whether to display the line, you need to set setting.view.showLine attribute, see the API documentation for more related contents.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • 2, Explanation of treeNode

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • TreeNode data does not require special settings
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/en/core/otherMouse.html b/alive-admin/target/classes/static/ztree/demo/en/core/otherMouse.html new file mode 100644 index 0000000..0e18a0c --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/en/core/otherMouse.html @@ -0,0 +1,132 @@ + + + + ZTREE DEMO - Other Mouse Event + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Other Mouse Events for zTree

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              [ File Path: core/otherMouse.html ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • 1, 'beforeMousedown / onMousedown / beforeMouseup / onMouseup / beforeRightClick / onRightClick' callback function

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • zTree provide these types of mouse event callbacks, in order to facilitate the user to extend the functionality. And doesn't affect zTree normal function, This simple demo shows how to monitor the mousedown/mouseup/rightClick event.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Try clicking with the mouse on the zTree (left or right), by the way to see log.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    + mousedown event log:
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      + mouseup event log:
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        + rightClick event log:
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • 2, Explanation of setting

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • Set attributes about 'setting.callback.beforeMousedown / onMousedown / beforeMouseup / onMouseup / beforeRightClick / onRightClick', please see the API documentation for more related contents.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • 3, Explanation of treeNode

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • No special requirements on the node data, the user can add custom attributes.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/en/core/searchNodes.html b/alive-admin/target/classes/static/ztree/demo/en/core/searchNodes.html new file mode 100644 index 0000000..1d0695a --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/en/core/searchNodes.html @@ -0,0 +1,173 @@ + + + + ZTREE DEMO - getNodeByParam / getNodesByParam / getNodesByParamFuzzy + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Search Nodes

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      [ File Path: core/searchNodes.html ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • 1, Explanation of getNodeByParam / getNodesByParam / getNodesByParamFuzzy

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • How to use ’zTreeObj.getNodeByParam / getNodesByParam / getNodesByParamFuzzy / getNodeByTId‘ method, please see the API documentation.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • Try to search:
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + attribute( value ):
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + attribute( key ): name (string)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + level (number) ... root node's level is 0
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + id (number)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + method: getNodeByParam
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + getNodesByParam
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + getNodesByParamFuzzy (only string)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + getNodesByFilter (see source: function filter)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • 2, Explanation of setting

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • Do not need to set the setting.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • 3, Explanation of treeNode

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • Note: Please ensure that the incoming value type is the same as type of attribute.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/en/core/simpleData.html b/alive-admin/target/classes/static/ztree/demo/en/core/simpleData.html new file mode 100644 index 0000000..bf07831 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/en/core/simpleData.html @@ -0,0 +1,100 @@ + + + + ZTREE DEMO - Simple Data + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Simple JSON Data

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        [ File Path: core/simpleData.html ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • 1, Explanation of setting

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Must set setting.data.simple attributes, see the API documentation for more related contents.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • The setting.view in API documentation is associated with the display of the zTree.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • To change the 'name', 'children', 'title' attribute, please refer to the API documentation about 'setting.data.key'.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • 2, Explanation of treeNode

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Id / pId that include parent-child relationship between nodes is needed if you use Simple model of the JSON data, and other attributes please refer to the instructions within setting.data.simple. +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              For example:
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +var nodes = [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +	{id:1, pId:0, name: "pNode 01"},
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +	{id:11, pId:1, name: "child 01"},
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +	{id:12, pId:1, name: "child 02"}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +];
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • To set nodes expanded by default, set treeNode.open attribute.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • To get parent node which has no child node, set treeNode.isParent attribute.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Please refer to the API documentation "treeNode data details" to view other attributes description.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • 3、Other explanation

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • The simple JSON data model has been used almost everywhere, which can be learned easily.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/en/core/standardData.html b/alive-admin/target/classes/static/ztree/demo/en/core/standardData.html new file mode 100644 index 0000000..909a63b --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/en/core/standardData.html @@ -0,0 +1,106 @@ + + + + ZTREE DEMO - Standard Data + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Standard JSON Data

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          [ File Path: core/standardData.html ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • 1, Explanation of setting

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • No extrally setting needed for basic functions.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • The setting.view in API documentation is associated with the display of the zTree.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • To change the 'name', 'children', 'title' attribute, please refer to the API documentation about 'setting.data.key'.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • 2, Explanation of treeNode

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • Need to use nested JSON data that include parent-child relationship between nodes +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                For example:
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +var nodes = [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +	{name: "pNode 01", children: [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +		{name: "child 01"},
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +		{name: "child 02"}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +	]}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +];
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • To set nodes expanded by default, set treeNode.open attribute.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • No child nodes of parent node, set treeNode.isParent attribute.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • Please refer to the API documentation "treeNode data details" to view other attributes description.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/en/core/update_fun.html b/alive-admin/target/classes/static/ztree/demo/en/core/update_fun.html new file mode 100644 index 0000000..0909a34 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/en/core/update_fun.html @@ -0,0 +1,143 @@ + + + + ZTREE DEMO - updateNode + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Update Node - zTree methods

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [ File Path: core/update_fun.html ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • 1, Explanation of updateNode

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • 2, Explanation of setting

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • Do not need to set the setting.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • You can modify the node style with setting.view.fontCss.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • 3, Explanation of treeNode

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • In the API documentation has detail description about the 'zTreeObj.updateNode method'.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • 4、Other explanation

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • This demo only made ​by the core js, so does not include the checkbox update.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/en/core/url.html b/alive-admin/target/classes/static/ztree/demo/en/core/url.html new file mode 100644 index 0000000..788b03f --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/en/core/url.html @@ -0,0 +1,63 @@ + + + + ZTREE DEMO - url + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Hyperlinks Demo

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              [ File Path: core/url.html ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • 1, Explanation of setting

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • No extrally setting needed for basic functions.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • If you need flexible control of hyperlinks to jump, please use the 'onClick' callback. See the API documentation for more related contents.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • 2, Explanation of treeNode

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • 1. the 'url' attribute is used to save the hyperlink's path.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • 2. the 'target' attribute is used to save the hyperlink's target.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • 3. the 'click' attribute is used to save the hyperlink's 'onclick' attribute.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Please refer to the API documentation "treeNode data details" to view other attributes description.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/en/excheck/checkbox.html b/alive-admin/target/classes/static/ztree/demo/en/excheck/checkbox.html new file mode 100644 index 0000000..f2a1408 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/en/excheck/checkbox.html @@ -0,0 +1,107 @@ + + + + ZTREE DEMO - checkbox + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Checkbox Operation

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [ File Path: excheck/checkbox.html ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • 1, Explanation of setting

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • Must set setting.check attributes, see the API documentation for more related contents.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • Linkage relationship between parent and child nodes:
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      + check: affect the parent + affect the child
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      + uncheck: affect the parent + affect the child
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • 2, Explanation of treeNode

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • 1), If you need to initialize the node is checked, please set treeNode.checked attribute. See the API documentation for more related contents.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • 2), If you need to initialize the node's checkbox is disabled, please set treeNode.chkDisabled attribute. See the API documentation for more related contents and 'chkDisabled Demo'.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • 3), If you need to initialize the node don't show checkbox, please set treeNode.nocheck attribute. See the API documentation for more related contents and 'nocheck Demo'.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • 4), If you need to change 'checked' to other attribute, please set setting.data.key.checked attribute. See the API documentation for more related contents.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • 5), By the way, please see the API documentation for 'treeNode.checkedOld / getCheckStatus / check_Child_State / check_Focus'.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/en/excheck/checkbox_chkDisabled.html b/alive-admin/target/classes/static/ztree/demo/en/excheck/checkbox_chkDisabled.html new file mode 100644 index 0000000..4205366 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/en/excheck/checkbox_chkDisabled.html @@ -0,0 +1,99 @@ + + + + ZTREE DEMO - Checkbox chkDisabled + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Checkbox chkDisabled Demo

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    [ File Path: excheck/checkbox_chkDisabled.html ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • 1, Explanation of 'setChkDisabled' method

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • 'setChkDisabled' method can set the node's checkbox / radio to be disabled or abled. See the API documentation for more related contents.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • Try:
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +     [ be disabled ] +     [ be abled ]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • 2, Explanation of setting

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • This Demo only shows how use the ‘chkDisabled’ attribute, detailed configuration information, please refer to 'Checkbox Operation'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • 3, Explanation of treeNode

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • 1), If you need to initialize the node's checkbox is disabled, please set treeNode.chkDisabled attribute. See the API documentation for more related contents.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • 2), By the way, please see the 'Checkbox Operation' Demo.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/en/excheck/checkbox_count.html b/alive-admin/target/classes/static/ztree/demo/en/excheck/checkbox_count.html new file mode 100644 index 0000000..ae44390 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/en/excheck/checkbox_count.html @@ -0,0 +1,127 @@ + + + + ZTREE DEMO - getChangeCheckedNodes / getCheckedNodes + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Statistics Checkbox is Checked

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      [ File Path: excheck/checkbox_count.html ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • 1, Explanation of getChangeCheckedNodes / getCheckedNodes

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • How to use zTreeObj.getChangeCheckedNodes / getCheckedNodes method, please see the API documentation.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • Check the checkbox, observe the number of changes:
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Total check node:
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Total uncheck node:
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Modify the state of checkbox:
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              + Compared with zTree initialization
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              + Compared with the last check
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Total change the checkbox state of node:
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • 2, Explanation of setting

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • Same as 'Checkbox Operation'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • 3, Explanation of treeNode

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • Same as 'Checkbox Operation'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/en/excheck/checkbox_fun.html b/alive-admin/target/classes/static/ztree/demo/en/excheck/checkbox_fun.html new file mode 100644 index 0000000..0562fe6 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/en/excheck/checkbox_fun.html @@ -0,0 +1,172 @@ + + + + ZTREE DEMO - beforeCheck / onCheck + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Checkbox - zTree methods

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        [ File Path: excheck/checkbox_fun.html ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • 1, 'beforeCheck / onCheck' callback function

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Use 'beforeCheck / onCheck' callback function can control whether to allow changes to the node check state. This simple demo shows how to monitor the check event.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • By the way also demonstrates how to use the 'checkNode / checkAllNodes' method triggers 'beforeCheck / onCheck' callback, Try:
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +      setting.check.autoCheckTrigger: false
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +      Whether trigger the callback when execution checkNode() method.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +     Node --[ check ] +     [ uncheck ] +     [ toggle ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +     Node (relationships) --[ check ] +     [ uncheck ] +     [ toggle ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +     All Nodes --[ check ] +     [ uncheck ]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • How to use 'zTreeObj.checkNode / checkAllNodes' method, please see the API documentation.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              + beforeCheck / onCheck log:
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • 2, Explanation of setting

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • Same as 'Checkbox Operation'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • 3, Explanation of treeNode

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • Same as 'Checkbox Operation'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/en/excheck/checkbox_halfCheck.html b/alive-admin/target/classes/static/ztree/demo/en/excheck/checkbox_halfCheck.html new file mode 100644 index 0000000..368cd5a --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/en/excheck/checkbox_halfCheck.html @@ -0,0 +1,108 @@ + + + + ZTREE DEMO - Checkbox halfCheck + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Checkbox halfCheck Demo

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [ File Path: excheck/checkbox_halfCheck.html ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • 1, Explanation of Demo

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • This demo implements the check operation of the dynamic tree
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • 1). After loaded child nodes, the parent node's 'halfCheck' attribute will be invalid immediately.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • 2). If you check the parent node, so will effect the child nodes's check status.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • 3). If you check the parent node, it's child node's 'halfCheck' attribute will be invalid.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • 2, Explanation of setting

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • Half-checked functional don't need to configure any parameter. But it is accessibility, can not used alone. So please configure the parameters which you need.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • 3, Explanation of treeNode

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • 1), Please set treeNode.halfCheck attribute, before zTree initialize. See the API documentation for more related contents.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • 2), By the way, please see the 'Checkbox Operation' Demo.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/en/excheck/checkbox_nocheck.html b/alive-admin/target/classes/static/ztree/demo/en/excheck/checkbox_nocheck.html new file mode 100644 index 0000000..650c9be --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/en/excheck/checkbox_nocheck.html @@ -0,0 +1,76 @@ + + + + ZTREE DEMO - no checkbox + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Checkbox nocheck Demo

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              [ File Path: excheck/checkbox_nocheck.html ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • 1, Explanation of setting

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • This Demo only shows how use the ‘nocheck’ attribute, detailed configuration information, please refer to 'Checkbox Operation'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • setting.check.nocheckInherit can set the child nodes to automatically inherit the parent node's 'nocheck' attribute. See the API documentation for more related contents.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • 2, Explanation of treeNode

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • 1), If you need to initialize the node don't show checkbox, please set treeNode.nocheck attribute. See the API documentation for more related contents.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • 2), By the way, please see the 'Checkbox Operation' Demo.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/en/excheck/radio.html b/alive-admin/target/classes/static/ztree/demo/en/excheck/radio.html new file mode 100644 index 0000000..f21c5bc --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/en/excheck/radio.html @@ -0,0 +1,97 @@ + + + + ZTREE DEMO - radio + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Radio Operation

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [ File Path: excheck/radio.html ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • 1, Explanation of setting

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • Must set setting.check attributes, see the API documentation for more related contents.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • group range of radio:
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      within the same level + within the whole tree
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • 2, Explanation of treeNode

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • 1), If you need to initialize the node is checked, please set treeNode.checked attribute. See the API documentation for more related contents.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • 2), If you need to initialize the node don't show radio, please set treeNode.nocheck attribute. See the API documentation for more related contents.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • 3), If you need to change 'checked' to other attribute, please set setting.data.key.checked attribute. See the API documentation for more related contents.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • 4), By the way, please see the API documentation for 'treeNode.checkedOld / getCheckStatus / check_Child_State / check_Focus'.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/en/excheck/radio_chkDisabled.html b/alive-admin/target/classes/static/ztree/demo/en/excheck/radio_chkDisabled.html new file mode 100644 index 0000000..08282d7 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/en/excheck/radio_chkDisabled.html @@ -0,0 +1,101 @@ + + + + ZTREE DEMO - Radio chkDisabled + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Radio chkDisabled Demo

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    [ File Path: excheck/radio_chkDisabled.html ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • 1, Explanation of 'setChkDisabled' method

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • 'setChkDisabled' method can set the node's checkbox / radio to be disabled or abled. See the API documentation for more related contents.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • Try:
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +     [ be disabled ] +     [ be abled ]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • 2, Explanation of setting

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • This Demo only shows how use the ‘nocheck’ attribute, detailed configuration information, please refer to 'Radio Operation'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • 3, Explanation of treeNode

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • 1), If you need to initialize the node don't show radio, please set treeNode.chkDisabled attribute. See the API documentation for more related contents.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • 2), By the way, please see the 'Radio Operation' Demo.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/en/excheck/radio_fun.html b/alive-admin/target/classes/static/ztree/demo/en/excheck/radio_fun.html new file mode 100644 index 0000000..9a32fc3 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/en/excheck/radio_fun.html @@ -0,0 +1,151 @@ + + + + ZTREE DEMO - beforeCheck / onCheck + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Radio - zTree methods

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      [ File Path: excheck/radio_fun.html ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • 1, 'beforeCheck / onCheck' callback function

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • Use 'beforeCheck / onCheck' callback function can control whether to allow changes to the node check state. This simple demo shows how to monitor the check event.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • By the way also demonstrates how to use the 'checkNode' method triggers 'beforeCheck / onCheck' callback, Try:
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +      Whether trigger the callback when execution checkNode() method.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +     [ check ] +     [ uncheck ]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • How to use 'zTreeObj.checkNode' method, please see the API documentation.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + beforeCheck / onCheck log:
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • 2, Explanation of setting

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Same as 'Radio Operation'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • 3, Explanation of treeNode

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Same as 'Radio Operation'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/en/excheck/radio_halfCheck.html b/alive-admin/target/classes/static/ztree/demo/en/excheck/radio_halfCheck.html new file mode 100644 index 0000000..932e837 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/en/excheck/radio_halfCheck.html @@ -0,0 +1,93 @@ + + + + ZTREE DEMO - Radio halfCheck + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Radio halfCheck Demo

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          [ File Path: excheck/radio_halfCheck.html ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • 1, Explanation of Demo

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • This demo implements the check operation of the dynamic tree
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • 1). After loaded child nodes, the parent node's 'halfCheck' attribute will be invalid immediately.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • 2). If you check the parent node, will not effect the child nodes's check status.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • 3). If you check the parent node, it's child node's 'halfCheck' attribute will still be valid.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • 2, Explanation of setting

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • Half-checked functional don't need to configure any parameter. But it is accessibility, can not used alone. So please configure the parameters which you need.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • 3, Explanation of treeNode

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • 1), Please set treeNode.halfCheck attribute, before zTree initialize. See the API documentation for more related contents.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • 2), By the way, please see the 'Radio Operation' Demo.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/en/excheck/radio_nocheck.html b/alive-admin/target/classes/static/ztree/demo/en/excheck/radio_nocheck.html new file mode 100644 index 0000000..e9e3b48 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/en/excheck/radio_nocheck.html @@ -0,0 +1,77 @@ + + + + ZTREE DEMO - no radio + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Radio nocheck Demo

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [ File Path: excheck/radio_nocheck.html ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • 1, Explanation of setting

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • This Demo only shows how use the ‘nocheck’ attribute, detailed configuration information, please refer to 'Radio Operation'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • setting.check.nocheckInherit can set the child nodes to automatically inherit the parent node's 'nocheck' attribute. See the API documentation for more related contents.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • 2, Explanation of treeNode

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • 1), If you need to initialize the node don't show radio, please set treeNode.nocheck attribute. See the API documentation for more related contents.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • 2), By the way, please see the 'Radio Operation' Demo.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/en/exedit/async_edit.html b/alive-admin/target/classes/static/ztree/demo/en/exedit/async_edit.html new file mode 100644 index 0000000..5430d3d --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/en/exedit/async_edit.html @@ -0,0 +1,119 @@ + + + + ZTREE DEMO - async & edit + + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Editing Dynamic Tree

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              [ File Path: exedit/async_edit.html ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • 1, Explanation of editing dynamic tree

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • 1) This Demo is based on the "Advanced Edit Nodes" to modify, and open to drag and drop functionality, can be compared with that demo.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • 2) At the same time set the editing mode and dynamic mode can be achieved editing dynamic tree.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • 3) zTree improved editing capabilities in dynamic mode, if the parent node hasn‘t loaded the child nodes, it will first load the child nodes before it add child node.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • 2, Explanation of setting

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • 1) Use editing features, please refer to "Normal Drag Node Operation" & "Basic Edit Nodes" demo of the instructions.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • 2) Use dynamic loading, please refer to "Dynamic Tree with Ajax" demo of the instructions.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • 3, Explanation of treeNode

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • No special requirements on the node data, please refer to "Dynamic Tree with Ajax" & "Normal Drag Node Operation" & "Basic Edit Nodes" demo of the instructions
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/en/exedit/drag.html b/alive-admin/target/classes/static/ztree/demo/en/exedit/drag.html new file mode 100644 index 0000000..30aff42 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/en/exedit/drag.html @@ -0,0 +1,136 @@ + + + + ZTREE DEMO - drag & drop + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Normal Drag Node Operation

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [ File Path: exedit/drag.html ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • 1, Explanation of setting

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • This Demo only shows how to drag & drop nodes using the basic method and configure parameters.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • 1) Must set 'setting.edit' attributes, see the API documentation for more related contents.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • 2) If you want to use drag & drop callback, muse to set 'setting.callback.beforeDrag / onDrag / beforeDrop / onDrop' attributes, see the API documentation for more related contents.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • Basic settings:
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      + can Copy + can Move
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • Position settings:
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        + prev + inner + next
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • 2, Explanation of treeNode

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • No special requirements on the node data, the user can add custom attributes.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/en/exedit/drag_fun.html b/alive-admin/target/classes/static/ztree/demo/en/exedit/drag_fun.html new file mode 100644 index 0000000..1215ba2 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/en/exedit/drag_fun.html @@ -0,0 +1,180 @@ + + + + ZTREE DEMO - copyNode / moveNode + + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Move / Copy - zTree methods

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      [ File Path: exedit/drag_fun.html ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • 1, Explanation of 'copyNode / moveNode' method

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • Use 'copyNode / moveNode' method can also be achieved copy / move nodes.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • Try to copy or cut node:
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +     [ copy ] +     [ cut ] +     [ paste ]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • How to use 'zTreeObj.copyNode / moveNode' method, please see the API documentation.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • 2, Explanation of setting

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • Same as 'Normal Drag Node Operation'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • 3, Explanation of treeNode

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • Same as 'Normal Drag Node Operation'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/en/exedit/drag_super.html b/alive-admin/target/classes/static/ztree/demo/en/exedit/drag_super.html new file mode 100644 index 0000000..559f1ff --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/en/exedit/drag_super.html @@ -0,0 +1,210 @@ + + + + ZTREE DEMO - beforeDrag / onDrag / beforeDrop / onDrop + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Advanced Drag Node Operation

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        [ File Path: exedit/drag_super.html ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • 1, 'beforeDrag / onDrag'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              'beforeDrop / onDrop' callback function

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • This Demo shows the configuration parameters to achieve a more flexible use of drag and drop rules, the operation can be compared with "Normal Drag Node Operation" example.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • This Demo default allows copy & move.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • This Demo set 'setting.edit.drag.prev / inner / next' as 'function', you can dynamically set according to the node, which can not use beforeDrop callback function, the effect of drag and drop will be better.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • After be familiar with these configurations, I think you can design a more flexible and rational rules!
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +      拖拽节点时自动展开父节点是否触发 callback
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              + drag / drop log:
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • 2, Explanation of setting

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • Same as 'Normal Drag Node Operation'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • 3, Explanation of treeNode

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • Same as 'Normal Drag Node Operation'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/en/exedit/edit.html b/alive-admin/target/classes/static/ztree/demo/en/exedit/edit.html new file mode 100644 index 0000000..fd60f05 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/en/exedit/edit.html @@ -0,0 +1,115 @@ + + + + ZTREE DEMO - edit + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Basic Edit Nodes

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [ File Path: exedit/edit.html ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • 1, Explanation of setting

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • This Demo only shows how to edit nodes using the basic method and configure parameters.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • 1) Must set 'setting.edit' attributes, see the API documentation for more related contents.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • 2) If you want to use remove / rename callback, muse to set 'setting.callback.beforeRemove / onRemove / beforeRename / onRename' attributes, see the API documentation for more related contents.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • 3) zTree do not provide buttons for add nodes, please use the custom control methods 'addHoverDom / removeHoverDom' to achieve added functionality, see the API documentation for more related contents. Another way, you can see the demo named 'Advanced Edit Nodes'.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • Edit button setting:
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  + show remove button + show edit button
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  + title for remove:
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  + title for rename: +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • 2, Explanation of treeNode

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • No special requirements on the node data, the user can add custom attributes.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/en/exedit/edit_fun.html b/alive-admin/target/classes/static/ztree/demo/en/exedit/edit_fun.html new file mode 100644 index 0000000..09c471e --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/en/exedit/edit_fun.html @@ -0,0 +1,194 @@ + + + + ZTREE DEMO - addNodes / editName / removeNode / removeChildNodes + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Edit Nodes - zTree methods

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [ File Path: exedit/edit_fun.html ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • 1, Explanation of 'addNodes / editName / removeNode / removeChildNodes' method

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • Use 'addNodes / editName / removeNode / removeChildNodes' method can also be achieved copy / move nodes.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • Method 'cancelEditName' is effective, only when edit the node name. Please use it when necessary, this demo doesn't show how to use the method.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • Use setting.data.keep.parent / leaf attribute, you can lock the parent node and leaf node.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • Try to edit node:
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +      Whether trigger the callback when execution removeNode() method.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +     [ add parent node ] +     [ add leaf node ] +     [ edit name ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +     [ remove node ] +     [ make child nodes to empty ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      + remove log:
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • How to use 'zTreeObj.addNodes / cancelEditName / editName / removeNode / removeChildNodes' method, please see the API documentation.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • 2, Explanation of setting

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • Same as 'Basic Edit Nodes'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • Lock the parent / leaf node status, need to set setting.data.keep.parent / leaf attribute, see the API documentation for more related contents
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • 3, Explanation of treeNode

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • Same as 'Basic Edit Nodes'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/en/exedit/edit_super.html b/alive-admin/target/classes/static/ztree/demo/en/exedit/edit_super.html new file mode 100644 index 0000000..be5c019 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/en/exedit/edit_super.html @@ -0,0 +1,173 @@ + + + + ZTREE DEMO - beforeEditName / beforeRemove / onRemove / beforeRename / onRename + + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Advanced Edit Nodes

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    [ File Path: exedit/edit_super.html ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • 1, 'beforeDrag / onDrag'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          'beforeEditName'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          'beforeRemove / onRemove'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          'beforeRename / onRename' callback function

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • This demo shows the use of custom controls, the callback function to enhance the user experience, the operation can be compared with "Basic Edit Nodes" example.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • This demo achieve the Add nodes button.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • This demo achieve the confirmation when deleting node.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • Can use 'beforeEditName' callback trigger custom editing.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • After be familiar with these configurations, I think you can design a more flexible and rational rules!
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +      Whether select all text, when edit node's name.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          + remove / rename log:
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • 2, Explanation of setting

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • Same as 'Basic Edit Nodes'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • 3, Explanation of treeNode

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • Same as 'Basic Edit Nodes'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/en/exedit/multiTree.html b/alive-admin/target/classes/static/ztree/demo/en/exedit/multiTree.html new file mode 100644 index 0000000..b078f1b --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/en/exedit/multiTree.html @@ -0,0 +1,94 @@ + + + + ZTREE DEMO - multiTree + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Multiple Trees

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        [ File Path: exedit/multiTree.html ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • 1, Explanation of setting

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • zTree enables drag and drop nodes between multiple trees, only need to create two draggable tree can be. And you can use the callback function and zTree method achieve a more complex operating rules, here is only the basic demo.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • On the 'setting' configuration information please refer to drag and drop, edit, etc. demo's instructions
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • 2, Explanation of treeNode

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • No special requirements on the node data, the user can add custom attributes.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/en/exhide/checkbox.html b/alive-admin/target/classes/static/ztree/demo/en/exhide/checkbox.html new file mode 100644 index 0000000..759701a --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/en/exhide/checkbox.html @@ -0,0 +1,161 @@ + + + + ZTREE DEMO - Hide With Checkbox Mode + + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Hide With Checkbox Mode

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [ File Path: exhide/checkbox.html ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • 1, Explanation of setting

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • Use the freature which to hide nodes, you don't need to set any attributes.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • 2, Explanation of treeNode

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • Before you init zTree, set treeNode.isHidden = true, and you can hide the node.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • Hide or show the nodes:
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  + Try: [ Hide the nodes which be selected ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +     [ Show all of the nodes which be hidden ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Total nodes which 'isHidden' attribute is true:
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Total hidden nodes:
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Total check nodes: +   Total uncheck nodes:
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • After hide nodes, you can see the 'isFirstNode' and 'isLastNode' attributes on the nodes which still be shown.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • 3、Other explanation

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • Hide nodes will effect the 'isFirstNode' and 'isLastNode' attributes, but will not effect the 'getPreNode()' and 'getNextNode()' method.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/en/exhide/common.html b/alive-admin/target/classes/static/ztree/demo/en/exhide/common.html new file mode 100644 index 0000000..9d660a9 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/en/exhide/common.html @@ -0,0 +1,126 @@ + + + + ZTREE DEMO - Hide Ordinary Node + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Hide Ordinary Node

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              [ File Path: exhide/common.html ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • 1, Explanation of setting

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Use this freature, you don't need to set any attributes.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • 2, Explanation of treeNode

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Before you init zTree, set treeNode.isHidden = true, and you can hide the node.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Hide or show the nodes:

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    + Try: [ Hide the nodes which be selected ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +     [ Show all of the nodes which be hidden ]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • Total hidden nodes ('isHidden' is true):
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • After hide nodes, you can see the 'isFirstNode' and 'isLastNode' attributes on the nodes which still be shown.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • 3、Other explanation

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Hide nodes will effect the 'isFirstNode' and 'isLastNode' attributes, but will not effect the 'getPreNode()' and 'getNextNode()' method.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/en/exhide/radio.html b/alive-admin/target/classes/static/ztree/demo/en/exhide/radio.html new file mode 100644 index 0000000..639d69c --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/en/exhide/radio.html @@ -0,0 +1,162 @@ + + + + ZTREE DEMO - Hide With Radio Mode + + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Hide With Radio Mode

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [ File Path: exhide/radio.html ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • 1, Explanation of setting

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • Use the freature which to hide nodes, you don't need to set any attributes.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • 2, Explanation of treeNode

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • Before you init zTree, set treeNode.isHidden = true, and you can hide the node.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • Hide or show the nodes:
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      + Try: [ Hide the nodes which be selected ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +     [ Show all of the nodes which be hidden ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • Total nodes which 'isHidden' attribute is true:
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • Total hidden nodes:
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • Total check nodes: +   Total uncheck nodes:
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • After hide nodes, you can see the 'isFirstNode' and 'isLastNode' attributes on the nodes which still be shown.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • 3、Other explanation

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • Hide nodes will effect the 'isFirstNode' and 'isLastNode' attributes, but will not effect the 'getPreNode()' and 'getNextNode()' method.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/en/index.html b/alive-admin/target/classes/static/ztree/demo/en/index.html new file mode 100644 index 0000000..8eeeaf4 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/en/index.html @@ -0,0 +1,158 @@ + + + + ZTREE DEMO + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    + + + diff --git a/alive-admin/target/classes/static/ztree/demo/en/super/asyncForAll.html b/alive-admin/target/classes/static/ztree/demo/en/super/asyncForAll.html new file mode 100644 index 0000000..bda0ba1 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/en/super/asyncForAll.html @@ -0,0 +1,191 @@ + + + + ZTREE DEMO - async for All + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Expand All Nodes with Async

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    [ File Path: super/asyncForAll.html ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • Explanation of implementation method

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • Using 'onAsyncSuccess' / 'onAsyncError' callback and 'reAsyncChildNodes' or 'expandNode' method, you will achieve all functionalities.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • Note: If there are large amount parent nodes, please use delay to avoid excessive asynchronous process.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • Recommendation: please use the debugging tools to view the ajax loading process with network.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • Demonstrate operation +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          + [ Expand All Nodes ]        + [ Load all nodes (don't expand) ]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          + [ Reset zTree ]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/en/super/checkbox_radio.html b/alive-admin/target/classes/static/ztree/demo/en/super/checkbox_radio.html new file mode 100644 index 0000000..87ce15d --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/en/super/checkbox_radio.html @@ -0,0 +1,116 @@ + + + + ZTREE DEMO - checkbox & radio + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Checkbox / Radio Coexistence

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      [ File Path: super/checkbox_radio.html ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • Explanation of implementation method

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • zTree default checkbox and radio can not coexist, but can be used the custom DOM features to achieve this requirement, refer to the "Adding Custom DOM".
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • For checkbox / radio association rules of the parent nodes and child nodes, according to the needs to develop its own rules.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/en/super/diydom.html b/alive-admin/target/classes/static/ztree/demo/en/super/diydom.html new file mode 100644 index 0000000..07649d2 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/en/super/diydom.html @@ -0,0 +1,177 @@ + + + + ZTREE DEMO - addHoverDom / removeHoverDom / addDiyDom + + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Adding Custom DOM

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        [ File Path: super/diydom.html ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • 1, Explanation of implementation method

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Use 'setting.view.addHoverDom / removeHoverDom / addDiyDom' attributes can easily display custom DOM.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Adding custom DOM, is important to understand zTree node object naming rules to ensure the normal controls add DOM.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • If you add the browser's default ’select / checkbox / radio‘ DOM, please adjust the css, to ensure correctly display zTree.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • 2, Explanation of setting

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Set 'setting.view.addHoverDom / removeHoverDom / addDiyDom' attributes, see the API documentation for more related contents.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • 3, Explanation of treeNode

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • No special requirements on the node data, the user can add custom attributes.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/en/super/dragWithOther.html b/alive-admin/target/classes/static/ztree/demo/en/super/dragWithOther.html new file mode 100644 index 0000000..31426c3 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/en/super/dragWithOther.html @@ -0,0 +1,234 @@ + + + + ZTREE DEMO - drag with other DOM + + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Drag With Other DOMs

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          [ File Path: super/dragWithOther.html ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Explanation of implementation method

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • zTree v3.2 modified the event object in onDrag/onDrop, thus the nodes can be draged to other DOMs easily.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • To drag other DOMS to zTree, you need to build the drag codes by yourself.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • This is just a simple Demo. If you need more features, please build more complicated codes.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Please drag and drop the following content to the tree node

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              TreeGrassFlower
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              TigerBearLion
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              + You can drag the nodes of level 2 to the above layer. +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/en/super/left_menu.html b/alive-admin/target/classes/static/ztree/demo/en/super/left_menu.html new file mode 100644 index 0000000..7dfe588 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/en/super/left_menu.html @@ -0,0 +1,152 @@ + + + + ZTREE DEMO - left_menu + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Left Menu

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [ File Path: super/left_menu.html ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • Explanation of implementation method

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • The menu in the Demo's Web page is to use zTree to achieve, is to use css set interface, use the configuration 'setting' to achieve features, this demo achieve a simple example of the left menu, you can view the source code of Demo's Web Page for in-depth study.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • 1. According to your needs to modify the css, for example: the menu style on this Demo and Demo's Web page not the same.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • 2. Main configuration:
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +     setting.view.showIcon / showLine / selectedMulti / dblClickExpand
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +     setting.callback.onNodeCreated / beforeClick / onClick +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • 3. If need to keep single path, please refer to the source code of "Keep Single Path" Demo.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • 4. Other auxiliary rules, please write code based on your needs.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              + + diff --git a/alive-admin/target/classes/static/ztree/demo/en/super/left_menuForOutLook.gif b/alive-admin/target/classes/static/ztree/demo/en/super/left_menuForOutLook.gif new file mode 100644 index 0000000..c252f0f Binary files /dev/null and b/alive-admin/target/classes/static/ztree/demo/en/super/left_menuForOutLook.gif differ diff --git a/alive-admin/target/classes/static/ztree/demo/en/super/left_menuForOutLook.html b/alive-admin/target/classes/static/ztree/demo/en/super/left_menuForOutLook.html new file mode 100644 index 0000000..8f7ddff --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/en/super/left_menuForOutLook.html @@ -0,0 +1,136 @@ + + + + ZTREE DEMO - left_menu for Outlook + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Left Menu Like OutLook Style

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              [ File Path: super/left_menuForOutLook.html ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • Explanation of implementation method

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • I make one left menu which resembles outlook.com, so share to everyone.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • 1. Please note that the css code of the source of this page.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • 2. Please note that the javascript code of the source of this page, especially the switch button is moved into the <a> tag when 'addDiyDom' callback be called
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • 3. Use the method of add zTree class name to implement the switch button be hidden or showing.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • 4. Other auxiliary rules, please write code based on your needs.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • 5. The current rule description:
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +   Click the root node can control the parent node be expanded or collapsed;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +   The parent nodes without root only are only clicked the arrow icon can control be expanded or collapsed;br/> +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + diff --git a/alive-admin/target/classes/static/ztree/demo/en/super/left_menuForOutLook.png b/alive-admin/target/classes/static/ztree/demo/en/super/left_menuForOutLook.png new file mode 100644 index 0000000..36e8acf Binary files /dev/null and b/alive-admin/target/classes/static/ztree/demo/en/super/left_menuForOutLook.png differ diff --git a/alive-admin/target/classes/static/ztree/demo/en/super/oneclick.html b/alive-admin/target/classes/static/ztree/demo/en/super/oneclick.html new file mode 100644 index 0000000..9679ec3 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/en/super/oneclick.html @@ -0,0 +1,87 @@ + + + + ZTREE DEMO - one click + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Click to Expand Node

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [ File Path: super/oneclick.html ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Explanation of implementation method

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • zTree not provide a default click to expand node feature, but can use the onClick callback functions to easily implement this feature.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • In order to avoid conflict with the double-clicking, I recommended to turn off double-clicking expand node function, please set setting.view.dblClickExpand = false
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • You can hide all the +/- switch, please see the page source, see the css.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • If you do not show + / - switch, then please set 'setting.view.showLine = false' to hide line.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/en/super/oneroot.html b/alive-admin/target/classes/static/ztree/demo/en/super/oneroot.html new file mode 100644 index 0000000..9d7eb53 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/en/super/oneroot.html @@ -0,0 +1,79 @@ + + + + ZTREE DEMO - one root + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Freeze the Root Node

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [ File Path: demo/super/oneroot.html ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • Explanation of implementation method

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • For only one root, and do not show +/- switch needs need to modify the css, and set the setting.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • zTree v3.x can be for a given level, set the style, check out the page source, see the css.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • Set setting.view.dblClickExpand to Function, you can turn off double-clicking for expand the root node.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/en/super/rightClickMenu.html b/alive-admin/target/classes/static/ztree/demo/en/super/rightClickMenu.html new file mode 100644 index 0000000..06e640c --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/en/super/rightClickMenu.html @@ -0,0 +1,168 @@ + + + + ZTREE DEMO - select menu + + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Right-click Menu

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    [ File Path: super/rightClickMenu.html ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • Explanation of implementation method

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • Use 'beforeRightClick / onRightClick' callback function achieve right-click menu.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • Demo's menu is ugly, you can use a custom menu fine style.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • Add Node
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • Delete Node
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • Check Node
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • Uncheck Node
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • Resume zTree
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/en/super/select_menu.html b/alive-admin/target/classes/static/ztree/demo/en/super/select_menu.html new file mode 100644 index 0000000..6423f6e --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/en/super/select_menu.html @@ -0,0 +1,124 @@ + + + + ZTREE DEMO - select menu + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Drop-down Menu

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      [ File Path: super/select_menu.html ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      •   Press Ctrl key to select multiple cities
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      •   city: +  select
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • Explanation of implementation method

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • Achieve this drop-down menu, it is relatively easy, you only need to control zTree Hide / Show, and location.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • Use zTree v3.x, you can select multiple nodes, so the multi-selection is also easy.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • Use the configuration parameters setting, fully meet the needs of most of the functionality.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/en/super/select_menu_checkbox.html b/alive-admin/target/classes/static/ztree/demo/en/super/select_menu_checkbox.html new file mode 100644 index 0000000..06b50d2 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/en/super/select_menu_checkbox.html @@ -0,0 +1,126 @@ + + + + ZTREE DEMO - checkbox select menu + + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Drop-down Menu with checkbox

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      [ File Path: super/select_menu_checkbox.html ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      •   Check the checkbox to select or click the node
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      •   Test: +  select
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • Explanation of implementation method

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • You can achieve multi-selected drop-down menu with checkbox.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • This Demo is mainly used for compare with other drop-down menu.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/en/super/select_menu_radio.html b/alive-admin/target/classes/static/ztree/demo/en/super/select_menu_radio.html new file mode 100644 index 0000000..7e9e9d1 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/en/super/select_menu_radio.html @@ -0,0 +1,127 @@ + + + + ZTREE DEMO - radio select menu + + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Drop-down Menu with radio

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      [ File Path: super/select_menu_radio.html ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      •   Check the radio to select or click the node
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      •   Test: +  select
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • Explanation of implementation method

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • You can achieve single-selected drop-down menu with radio.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • This Demo is mainly used for compare with other drop-down menu.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/demo/en/super/singlepath.html b/alive-admin/target/classes/static/ztree/demo/en/super/singlepath.html new file mode 100644 index 0000000..315eaf1 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/demo/en/super/singlepath.html @@ -0,0 +1,172 @@ + + + + ZTREE DEMO - single path + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Keep Single Path

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      [ File Path: super/singlepath.html ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • Explanation of implementation method

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • This Demo is the transformation from "Click to Expand Node" demo​​, tree only expand single path.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • Use 'setting.callback.beforeExpand / onExpand' callback function to achieve rules about expand
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        + + \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/js/jquery-1.4.4.min.js b/alive-admin/target/classes/static/ztree/js/jquery-1.4.4.min.js new file mode 100644 index 0000000..8f3ca2e --- /dev/null +++ b/alive-admin/target/classes/static/ztree/js/jquery-1.4.4.min.js @@ -0,0 +1,167 @@ +/*! + * jQuery JavaScript Library v1.4.4 + * http://jquery.com/ + * + * Copyright 2010, John Resig + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * Includes Sizzle.js + * http://sizzlejs.com/ + * Copyright 2010, The Dojo Foundation + * Released under the MIT, BSD, and GPL Licenses. + * + * Date: Thu Nov 11 19:04:53 2010 -0500 + */ +(function(E,B){function ka(a,b,d){if(d===B&&a.nodeType===1){d=a.getAttribute("data-"+b);if(typeof d==="string"){try{d=d==="true"?true:d==="false"?false:d==="null"?null:!c.isNaN(d)?parseFloat(d):Ja.test(d)?c.parseJSON(d):d}catch(e){}c.data(a,b,d)}else d=B}return d}function U(){return false}function ca(){return true}function la(a,b,d){d[0].type=a;return c.event.handle.apply(b,d)}function Ka(a){var b,d,e,f,h,l,k,o,x,r,A,C=[];f=[];h=c.data(this,this.nodeType?"events":"__events__");if(typeof h==="function")h= +h.events;if(!(a.liveFired===this||!h||!h.live||a.button&&a.type==="click")){if(a.namespace)A=RegExp("(^|\\.)"+a.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)");a.liveFired=this;var J=h.live.slice(0);for(k=0;kd)break;a.currentTarget=f.elem;a.data=f.handleObj.data;a.handleObj=f.handleObj;A=f.handleObj.origHandler.apply(f.elem,arguments);if(A===false||a.isPropagationStopped()){d=f.level;if(A===false)b=false;if(a.isImmediatePropagationStopped())break}}return b}}function Y(a,b){return(a&&a!=="*"?a+".":"")+b.replace(La, +"`").replace(Ma,"&")}function ma(a,b,d){if(c.isFunction(b))return c.grep(a,function(f,h){return!!b.call(f,h,f)===d});else if(b.nodeType)return c.grep(a,function(f){return f===b===d});else if(typeof b==="string"){var e=c.grep(a,function(f){return f.nodeType===1});if(Na.test(b))return c.filter(b,e,!d);else b=c.filter(b,e)}return c.grep(a,function(f){return c.inArray(f,b)>=0===d})}function na(a,b){var d=0;b.each(function(){if(this.nodeName===(a[d]&&a[d].nodeName)){var e=c.data(a[d++]),f=c.data(this, +e);if(e=e&&e.events){delete f.handle;f.events={};for(var h in e)for(var l in e[h])c.event.add(this,h,e[h][l],e[h][l].data)}}})}function Oa(a,b){b.src?c.ajax({url:b.src,async:false,dataType:"script"}):c.globalEval(b.text||b.textContent||b.innerHTML||"");b.parentNode&&b.parentNode.removeChild(b)}function oa(a,b,d){var e=b==="width"?a.offsetWidth:a.offsetHeight;if(d==="border")return e;c.each(b==="width"?Pa:Qa,function(){d||(e-=parseFloat(c.css(a,"padding"+this))||0);if(d==="margin")e+=parseFloat(c.css(a, +"margin"+this))||0;else e-=parseFloat(c.css(a,"border"+this+"Width"))||0});return e}function da(a,b,d,e){if(c.isArray(b)&&b.length)c.each(b,function(f,h){d||Ra.test(a)?e(a,h):da(a+"["+(typeof h==="object"||c.isArray(h)?f:"")+"]",h,d,e)});else if(!d&&b!=null&&typeof b==="object")c.isEmptyObject(b)?e(a,""):c.each(b,function(f,h){da(a+"["+f+"]",h,d,e)});else e(a,b)}function S(a,b){var d={};c.each(pa.concat.apply([],pa.slice(0,b)),function(){d[this]=a});return d}function qa(a){if(!ea[a]){var b=c("<"+ +a+">").appendTo("body"),d=b.css("display");b.remove();if(d==="none"||d==="")d="block";ea[a]=d}return ea[a]}function fa(a){return c.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:false}var t=E.document,c=function(){function a(){if(!b.isReady){try{t.documentElement.doScroll("left")}catch(j){setTimeout(a,1);return}b.ready()}}var b=function(j,s){return new b.fn.init(j,s)},d=E.jQuery,e=E.$,f,h=/^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]+)$)/,l=/\S/,k=/^\s+/,o=/\s+$/,x=/\W/,r=/\d/,A=/^<(\w+)\s*\/?>(?:<\/\1>)?$/, +C=/^[\],:{}\s]*$/,J=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,w=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,I=/(?:^|:|,)(?:\s*\[)+/g,L=/(webkit)[ \/]([\w.]+)/,g=/(opera)(?:.*version)?[ \/]([\w.]+)/,i=/(msie) ([\w.]+)/,n=/(mozilla)(?:.*? rv:([\w.]+))?/,m=navigator.userAgent,p=false,q=[],u,y=Object.prototype.toString,F=Object.prototype.hasOwnProperty,M=Array.prototype.push,N=Array.prototype.slice,O=String.prototype.trim,D=Array.prototype.indexOf,R={};b.fn=b.prototype={init:function(j, +s){var v,z,H;if(!j)return this;if(j.nodeType){this.context=this[0]=j;this.length=1;return this}if(j==="body"&&!s&&t.body){this.context=t;this[0]=t.body;this.selector="body";this.length=1;return this}if(typeof j==="string")if((v=h.exec(j))&&(v[1]||!s))if(v[1]){H=s?s.ownerDocument||s:t;if(z=A.exec(j))if(b.isPlainObject(s)){j=[t.createElement(z[1])];b.fn.attr.call(j,s,true)}else j=[H.createElement(z[1])];else{z=b.buildFragment([v[1]],[H]);j=(z.cacheable?z.fragment.cloneNode(true):z.fragment).childNodes}return b.merge(this, +j)}else{if((z=t.getElementById(v[2]))&&z.parentNode){if(z.id!==v[2])return f.find(j);this.length=1;this[0]=z}this.context=t;this.selector=j;return this}else if(!s&&!x.test(j)){this.selector=j;this.context=t;j=t.getElementsByTagName(j);return b.merge(this,j)}else return!s||s.jquery?(s||f).find(j):b(s).find(j);else if(b.isFunction(j))return f.ready(j);if(j.selector!==B){this.selector=j.selector;this.context=j.context}return b.makeArray(j,this)},selector:"",jquery:"1.4.4",length:0,size:function(){return this.length}, +toArray:function(){return N.call(this,0)},get:function(j){return j==null?this.toArray():j<0?this.slice(j)[0]:this[j]},pushStack:function(j,s,v){var z=b();b.isArray(j)?M.apply(z,j):b.merge(z,j);z.prevObject=this;z.context=this.context;if(s==="find")z.selector=this.selector+(this.selector?" ":"")+v;else if(s)z.selector=this.selector+"."+s+"("+v+")";return z},each:function(j,s){return b.each(this,j,s)},ready:function(j){b.bindReady();if(b.isReady)j.call(t,b);else q&&q.push(j);return this},eq:function(j){return j=== +-1?this.slice(j):this.slice(j,+j+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(N.apply(this,arguments),"slice",N.call(arguments).join(","))},map:function(j){return this.pushStack(b.map(this,function(s,v){return j.call(s,v,s)}))},end:function(){return this.prevObject||b(null)},push:M,sort:[].sort,splice:[].splice};b.fn.init.prototype=b.fn;b.extend=b.fn.extend=function(){var j,s,v,z,H,G=arguments[0]||{},K=1,Q=arguments.length,ga=false; +if(typeof G==="boolean"){ga=G;G=arguments[1]||{};K=2}if(typeof G!=="object"&&!b.isFunction(G))G={};if(Q===K){G=this;--K}for(;K0))if(q){var s=0,v=q;for(q=null;j=v[s++];)j.call(t,b);b.fn.trigger&&b(t).trigger("ready").unbind("ready")}}},bindReady:function(){if(!p){p=true;if(t.readyState==="complete")return setTimeout(b.ready,1);if(t.addEventListener){t.addEventListener("DOMContentLoaded",u,false);E.addEventListener("load",b.ready,false)}else if(t.attachEvent){t.attachEvent("onreadystatechange",u);E.attachEvent("onload", +b.ready);var j=false;try{j=E.frameElement==null}catch(s){}t.documentElement.doScroll&&j&&a()}}},isFunction:function(j){return b.type(j)==="function"},isArray:Array.isArray||function(j){return b.type(j)==="array"},isWindow:function(j){return j&&typeof j==="object"&&"setInterval"in j},isNaN:function(j){return j==null||!r.test(j)||isNaN(j)},type:function(j){return j==null?String(j):R[y.call(j)]||"object"},isPlainObject:function(j){if(!j||b.type(j)!=="object"||j.nodeType||b.isWindow(j))return false;if(j.constructor&& +!F.call(j,"constructor")&&!F.call(j.constructor.prototype,"isPrototypeOf"))return false;for(var s in j);return s===B||F.call(j,s)},isEmptyObject:function(j){for(var s in j)return false;return true},error:function(j){throw j;},parseJSON:function(j){if(typeof j!=="string"||!j)return null;j=b.trim(j);if(C.test(j.replace(J,"@").replace(w,"]").replace(I,"")))return E.JSON&&E.JSON.parse?E.JSON.parse(j):(new Function("return "+j))();else b.error("Invalid JSON: "+j)},noop:function(){},globalEval:function(j){if(j&& +l.test(j)){var s=t.getElementsByTagName("head")[0]||t.documentElement,v=t.createElement("script");v.type="text/javascript";if(b.support.scriptEval)v.appendChild(t.createTextNode(j));else v.text=j;s.insertBefore(v,s.firstChild);s.removeChild(v)}},nodeName:function(j,s){return j.nodeName&&j.nodeName.toUpperCase()===s.toUpperCase()},each:function(j,s,v){var z,H=0,G=j.length,K=G===B||b.isFunction(j);if(v)if(K)for(z in j){if(s.apply(j[z],v)===false)break}else for(;H
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        a";var f=d.getElementsByTagName("*"),h=d.getElementsByTagName("a")[0],l=t.createElement("select"), +k=l.appendChild(t.createElement("option"));if(!(!f||!f.length||!h)){c.support={leadingWhitespace:d.firstChild.nodeType===3,tbody:!d.getElementsByTagName("tbody").length,htmlSerialize:!!d.getElementsByTagName("link").length,style:/red/.test(h.getAttribute("style")),hrefNormalized:h.getAttribute("href")==="/a",opacity:/^0.55$/.test(h.style.opacity),cssFloat:!!h.style.cssFloat,checkOn:d.getElementsByTagName("input")[0].value==="on",optSelected:k.selected,deleteExpando:true,optDisabled:false,checkClone:false, +scriptEval:false,noCloneEvent:true,boxModel:null,inlineBlockNeedsLayout:false,shrinkWrapBlocks:false,reliableHiddenOffsets:true};l.disabled=true;c.support.optDisabled=!k.disabled;b.type="text/javascript";try{b.appendChild(t.createTextNode("window."+e+"=1;"))}catch(o){}a.insertBefore(b,a.firstChild);if(E[e]){c.support.scriptEval=true;delete E[e]}try{delete b.test}catch(x){c.support.deleteExpando=false}a.removeChild(b);if(d.attachEvent&&d.fireEvent){d.attachEvent("onclick",function r(){c.support.noCloneEvent= +false;d.detachEvent("onclick",r)});d.cloneNode(true).fireEvent("onclick")}d=t.createElement("div");d.innerHTML="";a=t.createDocumentFragment();a.appendChild(d.firstChild);c.support.checkClone=a.cloneNode(true).cloneNode(true).lastChild.checked;c(function(){var r=t.createElement("div");r.style.width=r.style.paddingLeft="1px";t.body.appendChild(r);c.boxModel=c.support.boxModel=r.offsetWidth===2;if("zoom"in r.style){r.style.display="inline";r.style.zoom= +1;c.support.inlineBlockNeedsLayout=r.offsetWidth===2;r.style.display="";r.innerHTML="
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ";c.support.shrinkWrapBlocks=r.offsetWidth!==2}r.innerHTML="
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        t
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ";var A=r.getElementsByTagName("td");c.support.reliableHiddenOffsets=A[0].offsetHeight===0;A[0].style.display="";A[1].style.display="none";c.support.reliableHiddenOffsets=c.support.reliableHiddenOffsets&&A[0].offsetHeight===0;r.innerHTML="";t.body.removeChild(r).style.display= +"none"});a=function(r){var A=t.createElement("div");r="on"+r;var C=r in A;if(!C){A.setAttribute(r,"return;");C=typeof A[r]==="function"}return C};c.support.submitBubbles=a("submit");c.support.changeBubbles=a("change");a=b=d=f=h=null}})();var ra={},Ja=/^(?:\{.*\}|\[.*\])$/;c.extend({cache:{},uuid:0,expando:"jQuery"+c.now(),noData:{embed:true,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:true},data:function(a,b,d){if(c.acceptData(a)){a=a==E?ra:a;var e=a.nodeType,f=e?a[c.expando]:null,h= +c.cache;if(!(e&&!f&&typeof b==="string"&&d===B)){if(e)f||(a[c.expando]=f=++c.uuid);else h=a;if(typeof b==="object")if(e)h[f]=c.extend(h[f],b);else c.extend(h,b);else if(e&&!h[f])h[f]={};a=e?h[f]:h;if(d!==B)a[b]=d;return typeof b==="string"?a[b]:a}}},removeData:function(a,b){if(c.acceptData(a)){a=a==E?ra:a;var d=a.nodeType,e=d?a[c.expando]:a,f=c.cache,h=d?f[e]:e;if(b){if(h){delete h[b];d&&c.isEmptyObject(h)&&c.removeData(a)}}else if(d&&c.support.deleteExpando)delete a[c.expando];else if(a.removeAttribute)a.removeAttribute(c.expando); +else if(d)delete f[e];else for(var l in a)delete a[l]}},acceptData:function(a){if(a.nodeName){var b=c.noData[a.nodeName.toLowerCase()];if(b)return!(b===true||a.getAttribute("classid")!==b)}return true}});c.fn.extend({data:function(a,b){var d=null;if(typeof a==="undefined"){if(this.length){var e=this[0].attributes,f;d=c.data(this[0]);for(var h=0,l=e.length;h-1)return true;return false},val:function(a){if(!arguments.length){var b=this[0];if(b){if(c.nodeName(b,"option")){var d=b.attributes.value;return!d||d.specified?b.value:b.text}if(c.nodeName(b,"select")){var e=b.selectedIndex;d=[];var f=b.options;b=b.type==="select-one"; +if(e<0)return null;var h=b?e:0;for(e=b?e+1:f.length;h=0;else if(c.nodeName(this,"select")){var A=c.makeArray(r);c("option",this).each(function(){this.selected=c.inArray(c(this).val(),A)>=0});if(!A.length)this.selectedIndex=-1}else this.value=r}})}});c.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true}, +attr:function(a,b,d,e){if(!a||a.nodeType===3||a.nodeType===8)return B;if(e&&b in c.attrFn)return c(a)[b](d);e=a.nodeType!==1||!c.isXMLDoc(a);var f=d!==B;b=e&&c.props[b]||b;var h=Ta.test(b);if((b in a||a[b]!==B)&&e&&!h){if(f){b==="type"&&Ua.test(a.nodeName)&&a.parentNode&&c.error("type property can't be changed");if(d===null)a.nodeType===1&&a.removeAttribute(b);else a[b]=d}if(c.nodeName(a,"form")&&a.getAttributeNode(b))return a.getAttributeNode(b).nodeValue;if(b==="tabIndex")return(b=a.getAttributeNode("tabIndex"))&& +b.specified?b.value:Va.test(a.nodeName)||Wa.test(a.nodeName)&&a.href?0:B;return a[b]}if(!c.support.style&&e&&b==="style"){if(f)a.style.cssText=""+d;return a.style.cssText}f&&a.setAttribute(b,""+d);if(!a.attributes[b]&&a.hasAttribute&&!a.hasAttribute(b))return B;a=!c.support.hrefNormalized&&e&&h?a.getAttribute(b,2):a.getAttribute(b);return a===null?B:a}});var X=/\.(.*)$/,ia=/^(?:textarea|input|select)$/i,La=/\./g,Ma=/ /g,Xa=/[^\w\s.|`]/g,Ya=function(a){return a.replace(Xa,"\\$&")},ua={focusin:0,focusout:0}; +c.event={add:function(a,b,d,e){if(!(a.nodeType===3||a.nodeType===8)){if(c.isWindow(a)&&a!==E&&!a.frameElement)a=E;if(d===false)d=U;else if(!d)return;var f,h;if(d.handler){f=d;d=f.handler}if(!d.guid)d.guid=c.guid++;if(h=c.data(a)){var l=a.nodeType?"events":"__events__",k=h[l],o=h.handle;if(typeof k==="function"){o=k.handle;k=k.events}else if(!k){a.nodeType||(h[l]=h=function(){});h.events=k={}}if(!o)h.handle=o=function(){return typeof c!=="undefined"&&!c.event.triggered?c.event.handle.apply(o.elem, +arguments):B};o.elem=a;b=b.split(" ");for(var x=0,r;l=b[x++];){h=f?c.extend({},f):{handler:d,data:e};if(l.indexOf(".")>-1){r=l.split(".");l=r.shift();h.namespace=r.slice(0).sort().join(".")}else{r=[];h.namespace=""}h.type=l;if(!h.guid)h.guid=d.guid;var A=k[l],C=c.event.special[l]||{};if(!A){A=k[l]=[];if(!C.setup||C.setup.call(a,e,r,o)===false)if(a.addEventListener)a.addEventListener(l,o,false);else a.attachEvent&&a.attachEvent("on"+l,o)}if(C.add){C.add.call(a,h);if(!h.handler.guid)h.handler.guid= +d.guid}A.push(h);c.event.global[l]=true}a=null}}},global:{},remove:function(a,b,d,e){if(!(a.nodeType===3||a.nodeType===8)){if(d===false)d=U;var f,h,l=0,k,o,x,r,A,C,J=a.nodeType?"events":"__events__",w=c.data(a),I=w&&w[J];if(w&&I){if(typeof I==="function"){w=I;I=I.events}if(b&&b.type){d=b.handler;b=b.type}if(!b||typeof b==="string"&&b.charAt(0)==="."){b=b||"";for(f in I)c.event.remove(a,f+b)}else{for(b=b.split(" ");f=b[l++];){r=f;k=f.indexOf(".")<0;o=[];if(!k){o=f.split(".");f=o.shift();x=RegExp("(^|\\.)"+ +c.map(o.slice(0).sort(),Ya).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(A=I[f])if(d){r=c.event.special[f]||{};for(h=e||0;h=0){a.type=f=f.slice(0,-1);a.exclusive=true}if(!d){a.stopPropagation();c.event.global[f]&&c.each(c.cache,function(){this.events&&this.events[f]&&c.event.trigger(a,b,this.handle.elem)})}if(!d||d.nodeType===3||d.nodeType=== +8)return B;a.result=B;a.target=d;b=c.makeArray(b);b.unshift(a)}a.currentTarget=d;(e=d.nodeType?c.data(d,"handle"):(c.data(d,"__events__")||{}).handle)&&e.apply(d,b);e=d.parentNode||d.ownerDocument;try{if(!(d&&d.nodeName&&c.noData[d.nodeName.toLowerCase()]))if(d["on"+f]&&d["on"+f].apply(d,b)===false){a.result=false;a.preventDefault()}}catch(h){}if(!a.isPropagationStopped()&&e)c.event.trigger(a,b,e,true);else if(!a.isDefaultPrevented()){var l;e=a.target;var k=f.replace(X,""),o=c.nodeName(e,"a")&&k=== +"click",x=c.event.special[k]||{};if((!x._default||x._default.call(d,a)===false)&&!o&&!(e&&e.nodeName&&c.noData[e.nodeName.toLowerCase()])){try{if(e[k]){if(l=e["on"+k])e["on"+k]=null;c.event.triggered=true;e[k]()}}catch(r){}if(l)e["on"+k]=l;c.event.triggered=false}}},handle:function(a){var b,d,e,f;d=[];var h=c.makeArray(arguments);a=h[0]=c.event.fix(a||E.event);a.currentTarget=this;b=a.type.indexOf(".")<0&&!a.exclusive;if(!b){e=a.type.split(".");a.type=e.shift();d=e.slice(0).sort();e=RegExp("(^|\\.)"+ +d.join("\\.(?:.*\\.)?")+"(\\.|$)")}a.namespace=a.namespace||d.join(".");f=c.data(this,this.nodeType?"events":"__events__");if(typeof f==="function")f=f.events;d=(f||{})[a.type];if(f&&d){d=d.slice(0);f=0;for(var l=d.length;f-1?c.map(a.options,function(e){return e.selected}).join("-"):"";else if(a.nodeName.toLowerCase()==="select")d=a.selectedIndex;return d},Z=function(a,b){var d=a.target,e,f;if(!(!ia.test(d.nodeName)||d.readOnly)){e=c.data(d,"_change_data");f=xa(d);if(a.type!=="focusout"||d.type!=="radio")c.data(d,"_change_data",f);if(!(e===B||f===e))if(e!=null||f){a.type="change";a.liveFired= +B;return c.event.trigger(a,b,d)}}};c.event.special.change={filters:{focusout:Z,beforedeactivate:Z,click:function(a){var b=a.target,d=b.type;if(d==="radio"||d==="checkbox"||b.nodeName.toLowerCase()==="select")return Z.call(this,a)},keydown:function(a){var b=a.target,d=b.type;if(a.keyCode===13&&b.nodeName.toLowerCase()!=="textarea"||a.keyCode===32&&(d==="checkbox"||d==="radio")||d==="select-multiple")return Z.call(this,a)},beforeactivate:function(a){a=a.target;c.data(a,"_change_data",xa(a))}},setup:function(){if(this.type=== +"file")return false;for(var a in V)c.event.add(this,a+".specialChange",V[a]);return ia.test(this.nodeName)},teardown:function(){c.event.remove(this,".specialChange");return ia.test(this.nodeName)}};V=c.event.special.change.filters;V.focus=V.beforeactivate}t.addEventListener&&c.each({focus:"focusin",blur:"focusout"},function(a,b){function d(e){e=c.event.fix(e);e.type=b;return c.event.trigger(e,null,e.target)}c.event.special[b]={setup:function(){ua[b]++===0&&t.addEventListener(a,d,true)},teardown:function(){--ua[b]=== +0&&t.removeEventListener(a,d,true)}}});c.each(["bind","one"],function(a,b){c.fn[b]=function(d,e,f){if(typeof d==="object"){for(var h in d)this[b](h,e,d[h],f);return this}if(c.isFunction(e)||e===false){f=e;e=B}var l=b==="one"?c.proxy(f,function(o){c(this).unbind(o,l);return f.apply(this,arguments)}):f;if(d==="unload"&&b!=="one")this.one(d,e,f);else{h=0;for(var k=this.length;h0?this.bind(b,d,e):this.trigger(b)};if(c.attrFn)c.attrFn[b]=true});E.attachEvent&&!E.addEventListener&&c(E).bind("unload",function(){for(var a in c.cache)if(c.cache[a].handle)try{c.event.remove(c.cache[a].handle.elem)}catch(b){}}); +(function(){function a(g,i,n,m,p,q){p=0;for(var u=m.length;p0){F=y;break}}y=y[g]}m[p]=F}}}var d=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,e=0,f=Object.prototype.toString,h=false,l=true;[0,0].sort(function(){l=false;return 0});var k=function(g,i,n,m){n=n||[];var p=i=i||t;if(i.nodeType!==1&&i.nodeType!==9)return[];if(!g||typeof g!=="string")return n;var q,u,y,F,M,N=true,O=k.isXML(i),D=[],R=g;do{d.exec("");if(q=d.exec(R)){R=q[3];D.push(q[1]);if(q[2]){F=q[3]; +break}}}while(q);if(D.length>1&&x.exec(g))if(D.length===2&&o.relative[D[0]])u=L(D[0]+D[1],i);else for(u=o.relative[D[0]]?[i]:k(D.shift(),i);D.length;){g=D.shift();if(o.relative[g])g+=D.shift();u=L(g,u)}else{if(!m&&D.length>1&&i.nodeType===9&&!O&&o.match.ID.test(D[0])&&!o.match.ID.test(D[D.length-1])){q=k.find(D.shift(),i,O);i=q.expr?k.filter(q.expr,q.set)[0]:q.set[0]}if(i){q=m?{expr:D.pop(),set:C(m)}:k.find(D.pop(),D.length===1&&(D[0]==="~"||D[0]==="+")&&i.parentNode?i.parentNode:i,O);u=q.expr?k.filter(q.expr, +q.set):q.set;if(D.length>0)y=C(u);else N=false;for(;D.length;){q=M=D.pop();if(o.relative[M])q=D.pop();else M="";if(q==null)q=i;o.relative[M](y,q,O)}}else y=[]}y||(y=u);y||k.error(M||g);if(f.call(y)==="[object Array]")if(N)if(i&&i.nodeType===1)for(g=0;y[g]!=null;g++){if(y[g]&&(y[g]===true||y[g].nodeType===1&&k.contains(i,y[g])))n.push(u[g])}else for(g=0;y[g]!=null;g++)y[g]&&y[g].nodeType===1&&n.push(u[g]);else n.push.apply(n,y);else C(y,n);if(F){k(F,p,n,m);k.uniqueSort(n)}return n};k.uniqueSort=function(g){if(w){h= +l;g.sort(w);if(h)for(var i=1;i0};k.find=function(g,i,n){var m;if(!g)return[];for(var p=0,q=o.order.length;p":function(g,i){var n,m=typeof i==="string",p=0,q=g.length;if(m&&!/\W/.test(i))for(i=i.toLowerCase();p=0))n||m.push(u);else if(n)i[q]=false;return false},ID:function(g){return g[1].replace(/\\/g,"")},TAG:function(g){return g[1].toLowerCase()},CHILD:function(g){if(g[1]==="nth"){var i=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(g[2]==="even"&&"2n"||g[2]==="odd"&&"2n+1"||!/\D/.test(g[2])&&"0n+"+g[2]||g[2]);g[2]=i[1]+(i[2]||1)-0;g[3]=i[3]-0}g[0]=e++;return g},ATTR:function(g,i,n, +m,p,q){i=g[1].replace(/\\/g,"");if(!q&&o.attrMap[i])g[1]=o.attrMap[i];if(g[2]==="~=")g[4]=" "+g[4]+" ";return g},PSEUDO:function(g,i,n,m,p){if(g[1]==="not")if((d.exec(g[3])||"").length>1||/^\w/.test(g[3]))g[3]=k(g[3],null,null,i);else{g=k.filter(g[3],i,n,true^p);n||m.push.apply(m,g);return false}else if(o.match.POS.test(g[0])||o.match.CHILD.test(g[0]))return true;return g},POS:function(g){g.unshift(true);return g}},filters:{enabled:function(g){return g.disabled===false&&g.type!=="hidden"},disabled:function(g){return g.disabled=== +true},checked:function(g){return g.checked===true},selected:function(g){return g.selected===true},parent:function(g){return!!g.firstChild},empty:function(g){return!g.firstChild},has:function(g,i,n){return!!k(n[3],g).length},header:function(g){return/h\d/i.test(g.nodeName)},text:function(g){return"text"===g.type},radio:function(g){return"radio"===g.type},checkbox:function(g){return"checkbox"===g.type},file:function(g){return"file"===g.type},password:function(g){return"password"===g.type},submit:function(g){return"submit"=== +g.type},image:function(g){return"image"===g.type},reset:function(g){return"reset"===g.type},button:function(g){return"button"===g.type||g.nodeName.toLowerCase()==="button"},input:function(g){return/input|select|textarea|button/i.test(g.nodeName)}},setFilters:{first:function(g,i){return i===0},last:function(g,i,n,m){return i===m.length-1},even:function(g,i){return i%2===0},odd:function(g,i){return i%2===1},lt:function(g,i,n){return in[3]-0},nth:function(g,i,n){return n[3]- +0===i},eq:function(g,i,n){return n[3]-0===i}},filter:{PSEUDO:function(g,i,n,m){var p=i[1],q=o.filters[p];if(q)return q(g,n,i,m);else if(p==="contains")return(g.textContent||g.innerText||k.getText([g])||"").indexOf(i[3])>=0;else if(p==="not"){i=i[3];n=0;for(m=i.length;n=0}},ID:function(g,i){return g.nodeType===1&&g.getAttribute("id")===i},TAG:function(g,i){return i==="*"&&g.nodeType===1||g.nodeName.toLowerCase()=== +i},CLASS:function(g,i){return(" "+(g.className||g.getAttribute("class"))+" ").indexOf(i)>-1},ATTR:function(g,i){var n=i[1];n=o.attrHandle[n]?o.attrHandle[n](g):g[n]!=null?g[n]:g.getAttribute(n);var m=n+"",p=i[2],q=i[4];return n==null?p==="!=":p==="="?m===q:p==="*="?m.indexOf(q)>=0:p==="~="?(" "+m+" ").indexOf(q)>=0:!q?m&&n!==false:p==="!="?m!==q:p==="^="?m.indexOf(q)===0:p==="$="?m.substr(m.length-q.length)===q:p==="|="?m===q||m.substr(0,q.length+1)===q+"-":false},POS:function(g,i,n,m){var p=o.setFilters[i[2]]; +if(p)return p(g,n,i,m)}}},x=o.match.POS,r=function(g,i){return"\\"+(i-0+1)},A;for(A in o.match){o.match[A]=RegExp(o.match[A].source+/(?![^\[]*\])(?![^\(]*\))/.source);o.leftMatch[A]=RegExp(/(^(?:.|\r|\n)*?)/.source+o.match[A].source.replace(/\\(\d+)/g,r))}var C=function(g,i){g=Array.prototype.slice.call(g,0);if(i){i.push.apply(i,g);return i}return g};try{Array.prototype.slice.call(t.documentElement.childNodes,0)}catch(J){C=function(g,i){var n=0,m=i||[];if(f.call(g)==="[object Array]")Array.prototype.push.apply(m, +g);else if(typeof g.length==="number")for(var p=g.length;n";n.insertBefore(g,n.firstChild);if(t.getElementById(i)){o.find.ID=function(m,p,q){if(typeof p.getElementById!=="undefined"&&!q)return(p=p.getElementById(m[1]))?p.id===m[1]||typeof p.getAttributeNode!=="undefined"&&p.getAttributeNode("id").nodeValue===m[1]?[p]:B:[]};o.filter.ID=function(m,p){var q=typeof m.getAttributeNode!=="undefined"&&m.getAttributeNode("id");return m.nodeType===1&&q&&q.nodeValue===p}}n.removeChild(g); +n=g=null})();(function(){var g=t.createElement("div");g.appendChild(t.createComment(""));if(g.getElementsByTagName("*").length>0)o.find.TAG=function(i,n){var m=n.getElementsByTagName(i[1]);if(i[1]==="*"){for(var p=[],q=0;m[q];q++)m[q].nodeType===1&&p.push(m[q]);m=p}return m};g.innerHTML="";if(g.firstChild&&typeof g.firstChild.getAttribute!=="undefined"&&g.firstChild.getAttribute("href")!=="#")o.attrHandle.href=function(i){return i.getAttribute("href",2)};g=null})();t.querySelectorAll&& +function(){var g=k,i=t.createElement("div");i.innerHTML="

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ";if(!(i.querySelectorAll&&i.querySelectorAll(".TEST").length===0)){k=function(m,p,q,u){p=p||t;m=m.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!u&&!k.isXML(p))if(p.nodeType===9)try{return C(p.querySelectorAll(m),q)}catch(y){}else if(p.nodeType===1&&p.nodeName.toLowerCase()!=="object"){var F=p.getAttribute("id"),M=F||"__sizzle__";F||p.setAttribute("id",M);try{return C(p.querySelectorAll("#"+M+" "+m),q)}catch(N){}finally{F|| +p.removeAttribute("id")}}return g(m,p,q,u)};for(var n in g)k[n]=g[n];i=null}}();(function(){var g=t.documentElement,i=g.matchesSelector||g.mozMatchesSelector||g.webkitMatchesSelector||g.msMatchesSelector,n=false;try{i.call(t.documentElement,"[test!='']:sizzle")}catch(m){n=true}if(i)k.matchesSelector=function(p,q){q=q.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!k.isXML(p))try{if(n||!o.match.PSEUDO.test(q)&&!/!=/.test(q))return i.call(p,q)}catch(u){}return k(q,null,null,[p]).length>0}})();(function(){var g= +t.createElement("div");g.innerHTML="
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ";if(!(!g.getElementsByClassName||g.getElementsByClassName("e").length===0)){g.lastChild.className="e";if(g.getElementsByClassName("e").length!==1){o.order.splice(1,0,"CLASS");o.find.CLASS=function(i,n,m){if(typeof n.getElementsByClassName!=="undefined"&&!m)return n.getElementsByClassName(i[1])};g=null}}})();k.contains=t.documentElement.contains?function(g,i){return g!==i&&(g.contains?g.contains(i):true)}:t.documentElement.compareDocumentPosition? +function(g,i){return!!(g.compareDocumentPosition(i)&16)}:function(){return false};k.isXML=function(g){return(g=(g?g.ownerDocument||g:0).documentElement)?g.nodeName!=="HTML":false};var L=function(g,i){for(var n,m=[],p="",q=i.nodeType?[i]:i;n=o.match.PSEUDO.exec(g);){p+=n[0];g=g.replace(o.match.PSEUDO,"")}g=o.relative[g]?g+"*":g;n=0;for(var u=q.length;n0)for(var h=d;h0},closest:function(a,b){var d=[],e,f,h=this[0];if(c.isArray(a)){var l,k={},o=1;if(h&&a.length){e=0;for(f=a.length;e-1:c(h).is(e))d.push({selector:l,elem:h,level:o})}h= +h.parentNode;o++}}return d}l=cb.test(a)?c(a,b||this.context):null;e=0;for(f=this.length;e-1:c.find.matchesSelector(h,a)){d.push(h);break}else{h=h.parentNode;if(!h||!h.ownerDocument||h===b)break}d=d.length>1?c.unique(d):d;return this.pushStack(d,"closest",a)},index:function(a){if(!a||typeof a==="string")return c.inArray(this[0],a?c(a):this.parent().children());return c.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var d=typeof a==="string"?c(a,b||this.context): +c.makeArray(a),e=c.merge(this.get(),d);return this.pushStack(!d[0]||!d[0].parentNode||d[0].parentNode.nodeType===11||!e[0]||!e[0].parentNode||e[0].parentNode.nodeType===11?e:c.unique(e))},andSelf:function(){return this.add(this.prevObject)}});c.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return c.dir(a,"parentNode")},parentsUntil:function(a,b,d){return c.dir(a,"parentNode",d)},next:function(a){return c.nth(a,2,"nextSibling")},prev:function(a){return c.nth(a, +2,"previousSibling")},nextAll:function(a){return c.dir(a,"nextSibling")},prevAll:function(a){return c.dir(a,"previousSibling")},nextUntil:function(a,b,d){return c.dir(a,"nextSibling",d)},prevUntil:function(a,b,d){return c.dir(a,"previousSibling",d)},siblings:function(a){return c.sibling(a.parentNode.firstChild,a)},children:function(a){return c.sibling(a.firstChild)},contents:function(a){return c.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:c.makeArray(a.childNodes)}},function(a, +b){c.fn[a]=function(d,e){var f=c.map(this,b,d);Za.test(a)||(e=d);if(e&&typeof e==="string")f=c.filter(e,f);f=this.length>1?c.unique(f):f;if((this.length>1||ab.test(e))&&$a.test(a))f=f.reverse();return this.pushStack(f,a,bb.call(arguments).join(","))}});c.extend({filter:function(a,b,d){if(d)a=":not("+a+")";return b.length===1?c.find.matchesSelector(b[0],a)?[b[0]]:[]:c.find.matches(a,b)},dir:function(a,b,d){var e=[];for(a=a[b];a&&a.nodeType!==9&&(d===B||a.nodeType!==1||!c(a).is(d));){a.nodeType===1&& +e.push(a);a=a[b]}return e},nth:function(a,b,d){b=b||1;for(var e=0;a;a=a[d])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){for(var d=[];a;a=a.nextSibling)a.nodeType===1&&a!==b&&d.push(a);return d}});var za=/ jQuery\d+="(?:\d+|null)"/g,$=/^\s+/,Aa=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Ba=/<([\w:]+)/,db=/\s]+\/)>/g,P={option:[1, +""],legend:[1,"
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ","
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        "],thead:[1,"","
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        "],tr:[2,"","
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        "],td:[3,"","
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        "],col:[2,"","
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        "],area:[1,"",""],_default:[0,"",""]};P.optgroup=P.option;P.tbody=P.tfoot=P.colgroup=P.caption=P.thead;P.th=P.td;if(!c.support.htmlSerialize)P._default=[1,"div
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ","
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        "];c.fn.extend({text:function(a){if(c.isFunction(a))return this.each(function(b){var d= +c(this);d.text(a.call(this,b,d.text()))});if(typeof a!=="object"&&a!==B)return this.empty().append((this[0]&&this[0].ownerDocument||t).createTextNode(a));return c.text(this)},wrapAll:function(a){if(c.isFunction(a))return this.each(function(d){c(this).wrapAll(a.call(this,d))});if(this[0]){var b=c(a,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var d=this;d.firstChild&&d.firstChild.nodeType===1;)d=d.firstChild;return d}).append(this)}return this}, +wrapInner:function(a){if(c.isFunction(a))return this.each(function(b){c(this).wrapInner(a.call(this,b))});return this.each(function(){var b=c(this),d=b.contents();d.length?d.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){c(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){c.nodeName(this,"body")||c(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.appendChild(a)})}, +prepend:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this)});else if(arguments.length){var a=c(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b, +this.nextSibling)});else if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,c(arguments[0]).toArray());return a}},remove:function(a,b){for(var d=0,e;(e=this[d])!=null;d++)if(!a||c.filter(a,[e]).length){if(!b&&e.nodeType===1){c.cleanData(e.getElementsByTagName("*"));c.cleanData([e])}e.parentNode&&e.parentNode.removeChild(e)}return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++)for(b.nodeType===1&&c.cleanData(b.getElementsByTagName("*"));b.firstChild;)b.removeChild(b.firstChild); +return this},clone:function(a){var b=this.map(function(){if(!c.support.noCloneEvent&&!c.isXMLDoc(this)){var d=this.outerHTML,e=this.ownerDocument;if(!d){d=e.createElement("div");d.appendChild(this.cloneNode(true));d=d.innerHTML}return c.clean([d.replace(za,"").replace(fb,'="$1">').replace($,"")],e)[0]}else return this.cloneNode(true)});if(a===true){na(this,b);na(this.find("*"),b.find("*"))}return b},html:function(a){if(a===B)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(za,""):null; +else if(typeof a==="string"&&!Ca.test(a)&&(c.support.leadingWhitespace||!$.test(a))&&!P[(Ba.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Aa,"<$1>");try{for(var b=0,d=this.length;b0||e.cacheable||this.length>1?h.cloneNode(true):h)}k.length&&c.each(k,Oa)}return this}});c.buildFragment=function(a,b,d){var e,f,h;b=b&&b[0]?b[0].ownerDocument||b[0]:t;if(a.length===1&&typeof a[0]==="string"&&a[0].length<512&&b===t&&!Ca.test(a[0])&&(c.support.checkClone||!Da.test(a[0]))){f=true;if(h=c.fragments[a[0]])if(h!==1)e=h}if(!e){e=b.createDocumentFragment();c.clean(a,b,e,d)}if(f)c.fragments[a[0]]=h?e:1;return{fragment:e,cacheable:f}};c.fragments={};c.each({appendTo:"append", +prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){c.fn[a]=function(d){var e=[];d=c(d);var f=this.length===1&&this[0].parentNode;if(f&&f.nodeType===11&&f.childNodes.length===1&&d.length===1){d[b](this[0]);return this}else{f=0;for(var h=d.length;f0?this.clone(true):this).get();c(d[f])[b](l);e=e.concat(l)}return this.pushStack(e,a,d.selector)}}});c.extend({clean:function(a,b,d,e){b=b||t;if(typeof b.createElement==="undefined")b=b.ownerDocument|| +b[0]&&b[0].ownerDocument||t;for(var f=[],h=0,l;(l=a[h])!=null;h++){if(typeof l==="number")l+="";if(l){if(typeof l==="string"&&!eb.test(l))l=b.createTextNode(l);else if(typeof l==="string"){l=l.replace(Aa,"<$1>");var k=(Ba.exec(l)||["",""])[1].toLowerCase(),o=P[k]||P._default,x=o[0],r=b.createElement("div");for(r.innerHTML=o[1]+l+o[2];x--;)r=r.lastChild;if(!c.support.tbody){x=db.test(l);k=k==="table"&&!x?r.firstChild&&r.firstChild.childNodes:o[1]===""&&!x?r.childNodes:[];for(o=k.length- +1;o>=0;--o)c.nodeName(k[o],"tbody")&&!k[o].childNodes.length&&k[o].parentNode.removeChild(k[o])}!c.support.leadingWhitespace&&$.test(l)&&r.insertBefore(b.createTextNode($.exec(l)[0]),r.firstChild);l=r.childNodes}if(l.nodeType)f.push(l);else f=c.merge(f,l)}}if(d)for(h=0;f[h];h++)if(e&&c.nodeName(f[h],"script")&&(!f[h].type||f[h].type.toLowerCase()==="text/javascript"))e.push(f[h].parentNode?f[h].parentNode.removeChild(f[h]):f[h]);else{f[h].nodeType===1&&f.splice.apply(f,[h+1,0].concat(c.makeArray(f[h].getElementsByTagName("script")))); +d.appendChild(f[h])}return f},cleanData:function(a){for(var b,d,e=c.cache,f=c.event.special,h=c.support.deleteExpando,l=0,k;(k=a[l])!=null;l++)if(!(k.nodeName&&c.noData[k.nodeName.toLowerCase()]))if(d=k[c.expando]){if((b=e[d])&&b.events)for(var o in b.events)f[o]?c.event.remove(k,o):c.removeEvent(k,o,b.handle);if(h)delete k[c.expando];else k.removeAttribute&&k.removeAttribute(c.expando);delete e[d]}}});var Ea=/alpha\([^)]*\)/i,gb=/opacity=([^)]*)/,hb=/-([a-z])/ig,ib=/([A-Z])/g,Fa=/^-?\d+(?:px)?$/i, +jb=/^-?\d/,kb={position:"absolute",visibility:"hidden",display:"block"},Pa=["Left","Right"],Qa=["Top","Bottom"],W,Ga,aa,lb=function(a,b){return b.toUpperCase()};c.fn.css=function(a,b){if(arguments.length===2&&b===B)return this;return c.access(this,a,b,true,function(d,e,f){return f!==B?c.style(d,e,f):c.css(d,e)})};c.extend({cssHooks:{opacity:{get:function(a,b){if(b){var d=W(a,"opacity","opacity");return d===""?"1":d}else return a.style.opacity}}},cssNumber:{zIndex:true,fontWeight:true,opacity:true, +zoom:true,lineHeight:true},cssProps:{"float":c.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,b,d,e){if(!(!a||a.nodeType===3||a.nodeType===8||!a.style)){var f,h=c.camelCase(b),l=a.style,k=c.cssHooks[h];b=c.cssProps[h]||h;if(d!==B){if(!(typeof d==="number"&&isNaN(d)||d==null)){if(typeof d==="number"&&!c.cssNumber[h])d+="px";if(!k||!("set"in k)||(d=k.set(a,d))!==B)try{l[b]=d}catch(o){}}}else{if(k&&"get"in k&&(f=k.get(a,false,e))!==B)return f;return l[b]}}},css:function(a,b,d){var e,f=c.camelCase(b), +h=c.cssHooks[f];b=c.cssProps[f]||f;if(h&&"get"in h&&(e=h.get(a,true,d))!==B)return e;else if(W)return W(a,b,f)},swap:function(a,b,d){var e={},f;for(f in b){e[f]=a.style[f];a.style[f]=b[f]}d.call(a);for(f in b)a.style[f]=e[f]},camelCase:function(a){return a.replace(hb,lb)}});c.curCSS=c.css;c.each(["height","width"],function(a,b){c.cssHooks[b]={get:function(d,e,f){var h;if(e){if(d.offsetWidth!==0)h=oa(d,b,f);else c.swap(d,kb,function(){h=oa(d,b,f)});if(h<=0){h=W(d,b,b);if(h==="0px"&&aa)h=aa(d,b,b); +if(h!=null)return h===""||h==="auto"?"0px":h}if(h<0||h==null){h=d.style[b];return h===""||h==="auto"?"0px":h}return typeof h==="string"?h:h+"px"}},set:function(d,e){if(Fa.test(e)){e=parseFloat(e);if(e>=0)return e+"px"}else return e}}});if(!c.support.opacity)c.cssHooks.opacity={get:function(a,b){return gb.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var d=a.style;d.zoom=1;var e=c.isNaN(b)?"":"alpha(opacity="+b*100+")",f= +d.filter||"";d.filter=Ea.test(f)?f.replace(Ea,e):d.filter+" "+e}};if(t.defaultView&&t.defaultView.getComputedStyle)Ga=function(a,b,d){var e;d=d.replace(ib,"-$1").toLowerCase();if(!(b=a.ownerDocument.defaultView))return B;if(b=b.getComputedStyle(a,null)){e=b.getPropertyValue(d);if(e===""&&!c.contains(a.ownerDocument.documentElement,a))e=c.style(a,d)}return e};if(t.documentElement.currentStyle)aa=function(a,b){var d,e,f=a.currentStyle&&a.currentStyle[b],h=a.style;if(!Fa.test(f)&&jb.test(f)){d=h.left; +e=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;h.left=b==="fontSize"?"1em":f||0;f=h.pixelLeft+"px";h.left=d;a.runtimeStyle.left=e}return f===""?"auto":f};W=Ga||aa;if(c.expr&&c.expr.filters){c.expr.filters.hidden=function(a){var b=a.offsetHeight;return a.offsetWidth===0&&b===0||!c.support.reliableHiddenOffsets&&(a.style.display||c.css(a,"display"))==="none"};c.expr.filters.visible=function(a){return!c.expr.filters.hidden(a)}}var mb=c.now(),nb=/)<[^<]*)*<\/script>/gi, +ob=/^(?:select|textarea)/i,pb=/^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,qb=/^(?:GET|HEAD)$/,Ra=/\[\]$/,T=/\=\?(&|$)/,ja=/\?/,rb=/([?&])_=[^&]*/,sb=/^(\w+:)?\/\/([^\/?#]+)/,tb=/%20/g,ub=/#.*$/,Ha=c.fn.load;c.fn.extend({load:function(a,b,d){if(typeof a!=="string"&&Ha)return Ha.apply(this,arguments);else if(!this.length)return this;var e=a.indexOf(" ");if(e>=0){var f=a.slice(e,a.length);a=a.slice(0,e)}e="GET";if(b)if(c.isFunction(b)){d=b;b=null}else if(typeof b=== +"object"){b=c.param(b,c.ajaxSettings.traditional);e="POST"}var h=this;c.ajax({url:a,type:e,dataType:"html",data:b,complete:function(l,k){if(k==="success"||k==="notmodified")h.html(f?c("
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ").append(l.responseText.replace(nb,"")).find(f):l.responseText);d&&h.each(d,[l.responseText,k,l])}});return this},serialize:function(){return c.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?c.makeArray(this.elements):this}).filter(function(){return this.name&& +!this.disabled&&(this.checked||ob.test(this.nodeName)||pb.test(this.type))}).map(function(a,b){var d=c(this).val();return d==null?null:c.isArray(d)?c.map(d,function(e){return{name:b.name,value:e}}):{name:b.name,value:d}}).get()}});c.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){c.fn[b]=function(d){return this.bind(b,d)}});c.extend({get:function(a,b,d,e){if(c.isFunction(b)){e=e||d;d=b;b=null}return c.ajax({type:"GET",url:a,data:b,success:d,dataType:e})}, +getScript:function(a,b){return c.get(a,null,b,"script")},getJSON:function(a,b,d){return c.get(a,b,d,"json")},post:function(a,b,d,e){if(c.isFunction(b)){e=e||d;d=b;b={}}return c.ajax({type:"POST",url:a,data:b,success:d,dataType:e})},ajaxSetup:function(a){c.extend(c.ajaxSettings,a)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return new E.XMLHttpRequest},accepts:{xml:"application/xml, text/xml",html:"text/html", +script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},ajax:function(a){var b=c.extend(true,{},c.ajaxSettings,a),d,e,f,h=b.type.toUpperCase(),l=qb.test(h);b.url=b.url.replace(ub,"");b.context=a&&a.context!=null?a.context:b;if(b.data&&b.processData&&typeof b.data!=="string")b.data=c.param(b.data,b.traditional);if(b.dataType==="jsonp"){if(h==="GET")T.test(b.url)||(b.url+=(ja.test(b.url)?"&":"?")+(b.jsonp||"callback")+"=?");else if(!b.data|| +!T.test(b.data))b.data=(b.data?b.data+"&":"")+(b.jsonp||"callback")+"=?";b.dataType="json"}if(b.dataType==="json"&&(b.data&&T.test(b.data)||T.test(b.url))){d=b.jsonpCallback||"jsonp"+mb++;if(b.data)b.data=(b.data+"").replace(T,"="+d+"$1");b.url=b.url.replace(T,"="+d+"$1");b.dataType="script";var k=E[d];E[d]=function(m){if(c.isFunction(k))k(m);else{E[d]=B;try{delete E[d]}catch(p){}}f=m;c.handleSuccess(b,w,e,f);c.handleComplete(b,w,e,f);r&&r.removeChild(A)}}if(b.dataType==="script"&&b.cache===null)b.cache= +false;if(b.cache===false&&l){var o=c.now(),x=b.url.replace(rb,"$1_="+o);b.url=x+(x===b.url?(ja.test(b.url)?"&":"?")+"_="+o:"")}if(b.data&&l)b.url+=(ja.test(b.url)?"&":"?")+b.data;b.global&&c.active++===0&&c.event.trigger("ajaxStart");o=(o=sb.exec(b.url))&&(o[1]&&o[1].toLowerCase()!==location.protocol||o[2].toLowerCase()!==location.host);if(b.dataType==="script"&&h==="GET"&&o){var r=t.getElementsByTagName("head")[0]||t.documentElement,A=t.createElement("script");if(b.scriptCharset)A.charset=b.scriptCharset; +A.src=b.url;if(!d){var C=false;A.onload=A.onreadystatechange=function(){if(!C&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){C=true;c.handleSuccess(b,w,e,f);c.handleComplete(b,w,e,f);A.onload=A.onreadystatechange=null;r&&A.parentNode&&r.removeChild(A)}}}r.insertBefore(A,r.firstChild);return B}var J=false,w=b.xhr();if(w){b.username?w.open(h,b.url,b.async,b.username,b.password):w.open(h,b.url,b.async);try{if(b.data!=null&&!l||a&&a.contentType)w.setRequestHeader("Content-Type", +b.contentType);if(b.ifModified){c.lastModified[b.url]&&w.setRequestHeader("If-Modified-Since",c.lastModified[b.url]);c.etag[b.url]&&w.setRequestHeader("If-None-Match",c.etag[b.url])}o||w.setRequestHeader("X-Requested-With","XMLHttpRequest");w.setRequestHeader("Accept",b.dataType&&b.accepts[b.dataType]?b.accepts[b.dataType]+", */*; q=0.01":b.accepts._default)}catch(I){}if(b.beforeSend&&b.beforeSend.call(b.context,w,b)===false){b.global&&c.active--===1&&c.event.trigger("ajaxStop");w.abort();return false}b.global&& +c.triggerGlobal(b,"ajaxSend",[w,b]);var L=w.onreadystatechange=function(m){if(!w||w.readyState===0||m==="abort"){J||c.handleComplete(b,w,e,f);J=true;if(w)w.onreadystatechange=c.noop}else if(!J&&w&&(w.readyState===4||m==="timeout")){J=true;w.onreadystatechange=c.noop;e=m==="timeout"?"timeout":!c.httpSuccess(w)?"error":b.ifModified&&c.httpNotModified(w,b.url)?"notmodified":"success";var p;if(e==="success")try{f=c.httpData(w,b.dataType,b)}catch(q){e="parsererror";p=q}if(e==="success"||e==="notmodified")d|| +c.handleSuccess(b,w,e,f);else c.handleError(b,w,e,p);d||c.handleComplete(b,w,e,f);m==="timeout"&&w.abort();if(b.async)w=null}};try{var g=w.abort;w.abort=function(){w&&Function.prototype.call.call(g,w);L("abort")}}catch(i){}b.async&&b.timeout>0&&setTimeout(function(){w&&!J&&L("timeout")},b.timeout);try{w.send(l||b.data==null?null:b.data)}catch(n){c.handleError(b,w,null,n);c.handleComplete(b,w,e,f)}b.async||L();return w}},param:function(a,b){var d=[],e=function(h,l){l=c.isFunction(l)?l():l;d[d.length]= +encodeURIComponent(h)+"="+encodeURIComponent(l)};if(b===B)b=c.ajaxSettings.traditional;if(c.isArray(a)||a.jquery)c.each(a,function(){e(this.name,this.value)});else for(var f in a)da(f,a[f],b,e);return d.join("&").replace(tb,"+")}});c.extend({active:0,lastModified:{},etag:{},handleError:function(a,b,d,e){a.error&&a.error.call(a.context,b,d,e);a.global&&c.triggerGlobal(a,"ajaxError",[b,a,e])},handleSuccess:function(a,b,d,e){a.success&&a.success.call(a.context,e,d,b);a.global&&c.triggerGlobal(a,"ajaxSuccess", +[b,a])},handleComplete:function(a,b,d){a.complete&&a.complete.call(a.context,b,d);a.global&&c.triggerGlobal(a,"ajaxComplete",[b,a]);a.global&&c.active--===1&&c.event.trigger("ajaxStop")},triggerGlobal:function(a,b,d){(a.context&&a.context.url==null?c(a.context):c.event).trigger(b,d)},httpSuccess:function(a){try{return!a.status&&location.protocol==="file:"||a.status>=200&&a.status<300||a.status===304||a.status===1223}catch(b){}return false},httpNotModified:function(a,b){var d=a.getResponseHeader("Last-Modified"), +e=a.getResponseHeader("Etag");if(d)c.lastModified[b]=d;if(e)c.etag[b]=e;return a.status===304},httpData:function(a,b,d){var e=a.getResponseHeader("content-type")||"",f=b==="xml"||!b&&e.indexOf("xml")>=0;a=f?a.responseXML:a.responseText;f&&a.documentElement.nodeName==="parsererror"&&c.error("parsererror");if(d&&d.dataFilter)a=d.dataFilter(a,b);if(typeof a==="string")if(b==="json"||!b&&e.indexOf("json")>=0)a=c.parseJSON(a);else if(b==="script"||!b&&e.indexOf("javascript")>=0)c.globalEval(a);return a}}); +if(E.ActiveXObject)c.ajaxSettings.xhr=function(){if(E.location.protocol!=="file:")try{return new E.XMLHttpRequest}catch(a){}try{return new E.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}};c.support.ajax=!!c.ajaxSettings.xhr();var ea={},vb=/^(?:toggle|show|hide)$/,wb=/^([+\-]=)?([\d+.\-]+)(.*)$/,ba,pa=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];c.fn.extend({show:function(a,b,d){if(a||a===0)return this.animate(S("show", +3),a,b,d);else{d=0;for(var e=this.length;d=0;e--)if(d[e].elem===this){b&&d[e](true);d.splice(e,1)}});b||this.dequeue();return this}});c.each({slideDown:S("show",1),slideUp:S("hide",1),slideToggle:S("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){c.fn[a]=function(d,e,f){return this.animate(b, +d,e,f)}});c.extend({speed:function(a,b,d){var e=a&&typeof a==="object"?c.extend({},a):{complete:d||!d&&b||c.isFunction(a)&&a,duration:a,easing:d&&b||b&&!c.isFunction(b)&&b};e.duration=c.fx.off?0:typeof e.duration==="number"?e.duration:e.duration in c.fx.speeds?c.fx.speeds[e.duration]:c.fx.speeds._default;e.old=e.complete;e.complete=function(){e.queue!==false&&c(this).dequeue();c.isFunction(e.old)&&e.old.call(this)};return e},easing:{linear:function(a,b,d,e){return d+e*a},swing:function(a,b,d,e){return(-Math.cos(a* +Math.PI)/2+0.5)*e+d}},timers:[],fx:function(a,b,d){this.options=b;this.elem=a;this.prop=d;if(!b.orig)b.orig={}}});c.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(c.fx.step[this.prop]||c.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];var a=parseFloat(c.css(this.elem,this.prop));return a&&a>-1E4?a:0},custom:function(a,b,d){function e(l){return f.step(l)} +var f=this,h=c.fx;this.startTime=c.now();this.start=a;this.end=b;this.unit=d||this.unit||"px";this.now=this.start;this.pos=this.state=0;e.elem=this.elem;if(e()&&c.timers.push(e)&&!ba)ba=setInterval(h.tick,h.interval)},show:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());c(this.elem).show()},hide:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.hide=true; +this.custom(this.cur(),0)},step:function(a){var b=c.now(),d=true;if(a||b>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var e in this.options.curAnim)if(this.options.curAnim[e]!==true)d=false;if(d){if(this.options.overflow!=null&&!c.support.shrinkWrapBlocks){var f=this.elem,h=this.options;c.each(["","X","Y"],function(k,o){f.style["overflow"+o]=h.overflow[k]})}this.options.hide&&c(this.elem).hide();if(this.options.hide|| +this.options.show)for(var l in this.options.curAnim)c.style(this.elem,l,this.options.orig[l]);this.options.complete.call(this.elem)}return false}else{a=b-this.startTime;this.state=a/this.options.duration;b=this.options.easing||(c.easing.swing?"swing":"linear");this.pos=c.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||b](this.state,a,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};c.extend(c.fx,{tick:function(){for(var a= +c.timers,b=0;b-1;e={};var x={};if(o)x=f.position();l=o?x.top:parseInt(l,10)||0;k=o?x.left:parseInt(k,10)||0;if(c.isFunction(b))b=b.call(a,d,h);if(b.top!=null)e.top=b.top-h.top+l;if(b.left!=null)e.left=b.left-h.left+k;"using"in b?b.using.call(a, +e):f.css(e)}};c.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),d=this.offset(),e=Ia.test(b[0].nodeName)?{top:0,left:0}:b.offset();d.top-=parseFloat(c.css(a,"marginTop"))||0;d.left-=parseFloat(c.css(a,"marginLeft"))||0;e.top+=parseFloat(c.css(b[0],"borderTopWidth"))||0;e.left+=parseFloat(c.css(b[0],"borderLeftWidth"))||0;return{top:d.top-e.top,left:d.left-e.left}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||t.body;a&&!Ia.test(a.nodeName)&& +c.css(a,"position")==="static";)a=a.offsetParent;return a})}});c.each(["Left","Top"],function(a,b){var d="scroll"+b;c.fn[d]=function(e){var f=this[0],h;if(!f)return null;if(e!==B)return this.each(function(){if(h=fa(this))h.scrollTo(!a?e:c(h).scrollLeft(),a?e:c(h).scrollTop());else this[d]=e});else return(h=fa(f))?"pageXOffset"in h?h[a?"pageYOffset":"pageXOffset"]:c.support.boxModel&&h.document.documentElement[d]||h.document.body[d]:f[d]}});c.each(["Height","Width"],function(a,b){var d=b.toLowerCase(); +c.fn["inner"+b]=function(){return this[0]?parseFloat(c.css(this[0],d,"padding")):null};c.fn["outer"+b]=function(e){return this[0]?parseFloat(c.css(this[0],d,e?"margin":"border")):null};c.fn[d]=function(e){var f=this[0];if(!f)return e==null?null:this;if(c.isFunction(e))return this.each(function(l){var k=c(this);k[d](e.call(this,l,k[d]()))});if(c.isWindow(f))return f.document.compatMode==="CSS1Compat"&&f.document.documentElement["client"+b]||f.document.body["client"+b];else if(f.nodeType===9)return Math.max(f.documentElement["client"+ +b],f.body["scroll"+b],f.documentElement["scroll"+b],f.body["offset"+b],f.documentElement["offset"+b]);else if(e===B){f=c.css(f,d);var h=parseFloat(f);return c.isNaN(h)?f:h}else return this.css(d,typeof e==="string"?e:e+"px")}})})(window); diff --git a/alive-admin/target/classes/static/ztree/js/jquery.ztree.all-3.5.js b/alive-admin/target/classes/static/ztree/js/jquery.ztree.all-3.5.js new file mode 100644 index 0000000..2a413ae --- /dev/null +++ b/alive-admin/target/classes/static/ztree/js/jquery.ztree.all-3.5.js @@ -0,0 +1,3469 @@ + +/* + * JQuery zTree core 3.5 + * http://zTree.me/ + * + * Copyright (c) 2010 Hunter.z + * + * Licensed same as jquery - MIT License + * http://www.opensource.org/licenses/mit-license.php + * + * email: hunter.z@263.net + * Date: 2012-11-20 + */ +(function($){ + var settings = {}, roots = {}, caches = {}, + //default consts of core + _consts = { + event: { + NODECREATED: "ztree_nodeCreated", + CLICK: "ztree_click", + EXPAND: "ztree_expand", + COLLAPSE: "ztree_collapse", + ASYNC_SUCCESS: "ztree_async_success", + ASYNC_ERROR: "ztree_async_error" + }, + id: { + A: "_a", + ICON: "_ico", + SPAN: "_span", + SWITCH: "_switch", + UL: "_ul" + }, + line: { + ROOT: "root", + ROOTS: "roots", + CENTER: "center", + BOTTOM: "bottom", + NOLINE: "noline", + LINE: "line" + }, + folder: { + OPEN: "open", + CLOSE: "close", + DOCU: "docu" + }, + node: { + CURSELECTED: "curSelectedNode" + } + }, + //default setting of core + _setting = { + treeId: "", + treeObj: null, + view: { + addDiyDom: null, + autoCancelSelected: true, + dblClickExpand: true, + expandSpeed: "fast", + fontCss: {}, + nameIsHTML: false, + selectedMulti: true, + showIcon: true, + showLine: true, + showTitle: true + }, + data: { + key: { + children: "children", + name: "name", + title: "", + url: "url" + }, + simpleData: { + enable: false, + idKey: "id", + pIdKey: "pId", + rootPId: null + }, + keep: { + parent: false, + leaf: false + } + }, + async: { + enable: false, + contentType: "application/x-www-form-urlencoded", + type: "post", + dataType: "text", + url: "", + autoParam: [], + otherParam: [], + dataFilter: null + }, + callback: { + beforeAsync:null, + beforeClick:null, + beforeDblClick:null, + beforeRightClick:null, + beforeMouseDown:null, + beforeMouseUp:null, + beforeExpand:null, + beforeCollapse:null, + beforeRemove:null, + + onAsyncError:null, + onAsyncSuccess:null, + onNodeCreated:null, + onClick:null, + onDblClick:null, + onRightClick:null, + onMouseDown:null, + onMouseUp:null, + onExpand:null, + onCollapse:null, + onRemove:null + } + }, + //default root of core + //zTree use root to save full data + _initRoot = function (setting) { + var r = data.getRoot(setting); + if (!r) { + r = {}; + data.setRoot(setting, r); + } + r[setting.data.key.children] = []; + r.expandTriggerFlag = false; + r.curSelectedList = []; + r.noSelection = true; + r.createdNodes = []; + r.zId = 0; + r._ver = (new Date()).getTime(); + }, + //default cache of core + _initCache = function(setting) { + var c = data.getCache(setting); + if (!c) { + c = {}; + data.setCache(setting, c); + } + c.nodes = []; + c.doms = []; + }, + //default bindEvent of core + _bindEvent = function(setting) { + var o = setting.treeObj, + c = consts.event; + o.bind(c.NODECREATED, function (event, treeId, node) { + tools.apply(setting.callback.onNodeCreated, [event, treeId, node]); + }); + + o.bind(c.CLICK, function (event, srcEvent, treeId, node, clickFlag) { + tools.apply(setting.callback.onClick, [srcEvent, treeId, node, clickFlag]); + }); + + o.bind(c.EXPAND, function (event, treeId, node) { + tools.apply(setting.callback.onExpand, [event, treeId, node]); + }); + + o.bind(c.COLLAPSE, function (event, treeId, node) { + tools.apply(setting.callback.onCollapse, [event, treeId, node]); + }); + + o.bind(c.ASYNC_SUCCESS, function (event, treeId, node, msg) { + tools.apply(setting.callback.onAsyncSuccess, [event, treeId, node, msg]); + }); + + o.bind(c.ASYNC_ERROR, function (event, treeId, node, XMLHttpRequest, textStatus, errorThrown) { + tools.apply(setting.callback.onAsyncError, [event, treeId, node, XMLHttpRequest, textStatus, errorThrown]); + }); + }, + _unbindEvent = function(setting) { + var o = setting.treeObj, + c = consts.event; + o.unbind(c.NODECREATED) + .unbind(c.CLICK) + .unbind(c.EXPAND) + .unbind(c.COLLAPSE) + .unbind(c.ASYNC_SUCCESS) + .unbind(c.ASYNC_ERROR); + }, + //default event proxy of core + _eventProxy = function(event) { + var target = event.target, + setting = data.getSetting(event.data.treeId), + tId = "", node = null, + nodeEventType = "", treeEventType = "", + nodeEventCallback = null, treeEventCallback = null, + tmp = null; + + if (tools.eqs(event.type, "mousedown")) { + treeEventType = "mousedown"; + } else if (tools.eqs(event.type, "mouseup")) { + treeEventType = "mouseup"; + } else if (tools.eqs(event.type, "contextmenu")) { + treeEventType = "contextmenu"; + } else if (tools.eqs(event.type, "click")) { + if (tools.eqs(target.tagName, "span") && target.getAttribute("treeNode"+ consts.id.SWITCH) !== null) { + tId = ($(target).parent("li").get(0) || $(target).parentsUntil("li").parent().get(0)).id; + nodeEventType = "switchNode"; + } else { + tmp = tools.getMDom(setting, target, [{tagName:"a", attrName:"treeNode"+consts.id.A}]); + if (tmp) { + tId = ($(tmp).parent("li").get(0) || $(tmp).parentsUntil("li").parent().get(0)).id; + nodeEventType = "clickNode"; + } + } + } else if (tools.eqs(event.type, "dblclick")) { + treeEventType = "dblclick"; + tmp = tools.getMDom(setting, target, [{tagName:"a", attrName:"treeNode"+consts.id.A}]); + if (tmp) { + tId = ($(tmp).parent("li").get(0) || $(tmp).parentsUntil("li").parent().get(0)).id; + nodeEventType = "switchNode"; + } + } + if (treeEventType.length > 0 && tId.length == 0) { + tmp = tools.getMDom(setting, target, [{tagName:"a", attrName:"treeNode"+consts.id.A}]); + if (tmp) {tId = ($(tmp).parent("li").get(0) || $(tmp).parentsUntil("li").parent().get(0)).id;} + } + // event to node + if (tId.length>0) { + node = data.getNodeCache(setting, tId); + switch (nodeEventType) { + case "switchNode" : + if (!node.isParent) { + nodeEventType = ""; + } else if (tools.eqs(event.type, "click") + || (tools.eqs(event.type, "dblclick") && tools.apply(setting.view.dblClickExpand, [setting.treeId, node], setting.view.dblClickExpand))) { + nodeEventCallback = handler.onSwitchNode; + } else { + nodeEventType = ""; + } + break; + case "clickNode" : + nodeEventCallback = handler.onClickNode; + break; + } + } + // event to zTree + switch (treeEventType) { + case "mousedown" : + treeEventCallback = handler.onZTreeMousedown; + break; + case "mouseup" : + treeEventCallback = handler.onZTreeMouseup; + break; + case "dblclick" : + treeEventCallback = handler.onZTreeDblclick; + break; + case "contextmenu" : + treeEventCallback = handler.onZTreeContextmenu; + break; + } + var proxyResult = { + stop: false, + node: node, + nodeEventType: nodeEventType, + nodeEventCallback: nodeEventCallback, + treeEventType: treeEventType, + treeEventCallback: treeEventCallback + }; + return proxyResult + }, + //default init node of core + _initNode = function(setting, level, n, parentNode, isFirstNode, isLastNode, openFlag) { + if (!n) return; + var r = data.getRoot(setting), + childKey = setting.data.key.children; + n.level = level; + n.tId = setting.treeId + "_" + (++r.zId); + n.parentTId = parentNode ? parentNode.tId : null; + if (n[childKey] && n[childKey].length > 0) { + if (typeof n.open == "string") n.open = tools.eqs(n.open, "true"); + n.open = !!n.open; + n.isParent = true; + n.zAsync = true; + } else { + n.open = false; + if (typeof n.isParent == "string") n.isParent = tools.eqs(n.isParent, "true"); + n.isParent = !!n.isParent; + n.zAsync = !n.isParent; + } + n.isFirstNode = isFirstNode; + n.isLastNode = isLastNode; + n.getParentNode = function() {return data.getNodeCache(setting, n.parentTId);}; + n.getPreNode = function() {return data.getPreNode(setting, n);}; + n.getNextNode = function() {return data.getNextNode(setting, n);}; + n.isAjaxing = false; + data.fixPIdKeyValue(setting, n); + }, + _init = { + bind: [_bindEvent], + unbind: [_unbindEvent], + caches: [_initCache], + nodes: [_initNode], + proxys: [_eventProxy], + roots: [_initRoot], + beforeA: [], + afterA: [], + innerBeforeA: [], + innerAfterA: [], + zTreeTools: [] + }, + //method of operate data + data = { + addNodeCache: function(setting, node) { + data.getCache(setting).nodes[data.getNodeCacheId(node.tId)] = node; + }, + getNodeCacheId: function(tId) { + return tId.substring(tId.lastIndexOf("_")+1); + }, + addAfterA: function(afterA) { + _init.afterA.push(afterA); + }, + addBeforeA: function(beforeA) { + _init.beforeA.push(beforeA); + }, + addInnerAfterA: function(innerAfterA) { + _init.innerAfterA.push(innerAfterA); + }, + addInnerBeforeA: function(innerBeforeA) { + _init.innerBeforeA.push(innerBeforeA); + }, + addInitBind: function(bindEvent) { + _init.bind.push(bindEvent); + }, + addInitUnBind: function(unbindEvent) { + _init.unbind.push(unbindEvent); + }, + addInitCache: function(initCache) { + _init.caches.push(initCache); + }, + addInitNode: function(initNode) { + _init.nodes.push(initNode); + }, + addInitProxy: function(initProxy) { + _init.proxys.push(initProxy); + }, + addInitRoot: function(initRoot) { + _init.roots.push(initRoot); + }, + addNodesData: function(setting, parentNode, nodes) { + var childKey = setting.data.key.children; + if (!parentNode[childKey]) parentNode[childKey] = []; + if (parentNode[childKey].length > 0) { + parentNode[childKey][parentNode[childKey].length - 1].isLastNode = false; + view.setNodeLineIcos(setting, parentNode[childKey][parentNode[childKey].length - 1]); + } + parentNode.isParent = true; + parentNode[childKey] = parentNode[childKey].concat(nodes); + }, + addSelectedNode: function(setting, node) { + var root = data.getRoot(setting); + if (!data.isSelectedNode(setting, node)) { + root.curSelectedList.push(node); + } + }, + addCreatedNode: function(setting, node) { + if (!!setting.callback.onNodeCreated || !!setting.view.addDiyDom) { + var root = data.getRoot(setting); + root.createdNodes.push(node); + } + }, + addZTreeTools: function(zTreeTools) { + _init.zTreeTools.push(zTreeTools); + }, + exSetting: function(s) { + $.extend(true, _setting, s); + }, + fixPIdKeyValue: function(setting, node) { + if (setting.data.simpleData.enable) { + node[setting.data.simpleData.pIdKey] = node.parentTId ? node.getParentNode()[setting.data.simpleData.idKey] : setting.data.simpleData.rootPId; + } + }, + getAfterA: function(setting, node, array) { + for (var i=0, j=_init.afterA.length; i-1) { + result.push(nodes[i]); + } + result = result.concat(data.getNodesByParamFuzzy(setting, nodes[i][childKey], key, value)); + } + return result; + }, + getNodesByFilter: function(setting, nodes, filter, isSingle, invokeParam) { + if (!nodes) return (isSingle ? null : []); + var childKey = setting.data.key.children, + result = isSingle ? null : []; + for (var i = 0, l = nodes.length; i < l; i++) { + if (tools.apply(filter, [nodes[i], invokeParam], false)) { + if (isSingle) {return nodes[i];} + result.push(nodes[i]); + } + var tmpResult = data.getNodesByFilter(setting, nodes[i][childKey], filter, isSingle, invokeParam); + if (isSingle && !!tmpResult) {return tmpResult;} + result = isSingle ? tmpResult : result.concat(tmpResult); + } + return result; + }, + getPreNode: function(setting, node) { + if (!node) return null; + var childKey = setting.data.key.children, + p = node.parentTId ? node.getParentNode() : data.getRoot(setting); + for (var i=0, l=p[childKey].length; i 0))); + }, + clone: function (obj){ + if (obj === null) return null; + var o = obj.constructor === Array ? [] : {}; + for(var i in obj){ + if(obj.hasOwnProperty(i)){ + o[i] = typeof obj[i] === "object" ? arguments.callee(obj[i]) : obj[i]; + } + } + return o; + }, + eqs: function(str1, str2) { + return str1.toLowerCase() === str2.toLowerCase(); + }, + isArray: function(arr) { + return Object.prototype.toString.apply(arr) === "[object Array]"; + }, + getMDom: function (setting, curDom, targetExpr) { + if (!curDom) return null; + while (curDom && curDom.id !== setting.treeId) { + for (var i=0, l=targetExpr.length; curDom.tagName && i 0) { + //make child html first, because checkType + childHtml = view.appendNodes(setting, level + 1, node[childKey], node, initFlag, openFlag && node.open); + } + if (openFlag) { + + view.makeDOMNodeMainBefore(html, setting, node); + view.makeDOMNodeLine(html, setting, node); + data.getBeforeA(setting, node, html); + view.makeDOMNodeNameBefore(html, setting, node); + data.getInnerBeforeA(setting, node, html); + view.makeDOMNodeIcon(html, setting, node); + data.getInnerAfterA(setting, node, html); + view.makeDOMNodeNameAfter(html, setting, node); + data.getAfterA(setting, node, html); + if (node.isParent && node.open) { + view.makeUlHtml(setting, node, html, childHtml.join('')); + } + view.makeDOMNodeMainAfter(html, setting, node); + data.addCreatedNode(setting, node); + } + } + return html; + }, + appendParentULDom: function(setting, node) { + var html = [], + nObj = $("#" + node.tId), + ulObj = $("#" + node.tId + consts.id.UL), + childKey = setting.data.key.children, + childHtml = view.appendNodes(setting, node.level+1, node[childKey], node, false, true); + view.makeUlHtml(setting, node, html, childHtml.join('')); + if (!nObj.get(0) && !!node.parentTId) { + view.appendParentULDom(setting, node.getParentNode()); + nObj = $("#" + node.tId); + } + if (ulObj.get(0)) { + ulObj.remove(); + } + nObj.append(html.join('')); + }, + asyncNode: function(setting, node, isSilent, callback) { + var i, l; + if (node && !node.isParent) { + tools.apply(callback); + return false; + } else if (node && node.isAjaxing) { + return false; + } else if (tools.apply(setting.callback.beforeAsync, [setting.treeId, node], true) == false) { + tools.apply(callback); + return false; + } + if (node) { + node.isAjaxing = true; + var icoObj = $("#" + node.tId + consts.id.ICON); + icoObj.attr({"style":"", "class":"button ico_loading"}); + } + + var isJson = (setting.async.contentType == "application/json"), tmpParam = isJson ? "{" : "", jTemp=""; + for (i = 0, l = setting.async.autoParam.length; node && i < l; i++) { + var pKey = setting.async.autoParam[i].split("="), spKey = pKey; + if (pKey.length>1) { + spKey = pKey[1]; + pKey = pKey[0]; + } + if (isJson) { + jTemp = (typeof node[pKey] == "string") ? '"' : ''; + tmpParam += '"' + spKey + ('":' + jTemp + node[pKey]).replace(/'/g,'\\\'') + jTemp + ','; + } else { + tmpParam += spKey + ("=" + node[pKey]).replace(/&/g,'%26') + "&"; + } + } + if (tools.isArray(setting.async.otherParam)) { + for (i = 0, l = setting.async.otherParam.length; i < l; i += 2) { + if (isJson) { + jTemp = (typeof setting.async.otherParam[i + 1] == "string") ? '"' : ''; + tmpParam += '"' + setting.async.otherParam[i] + ('":' + jTemp + setting.async.otherParam[i + 1]).replace(/'/g,'\\\'') + jTemp + ","; + } else { + tmpParam += setting.async.otherParam[i] + ("=" + setting.async.otherParam[i + 1]).replace(/&/g,'%26') + "&"; + } + } + } else { + for (var p in setting.async.otherParam) { + if (isJson) { + jTemp = (typeof setting.async.otherParam[p] == "string") ? '"' : ''; + tmpParam += '"' + p + ('":' + jTemp + setting.async.otherParam[p]).replace(/'/g,'\\\'') + jTemp + ","; + } else { + tmpParam += p + ("=" + setting.async.otherParam[p]).replace(/&/g,'%26') + "&"; + } + } + } + if (tmpParam.length > 1) tmpParam = tmpParam.substring(0, tmpParam.length-1); + if (isJson) tmpParam += "}"; + + var _tmpV = data.getRoot(setting)._ver; + $.ajax({ + contentType: setting.async.contentType, + type: setting.async.type, + url: tools.apply(setting.async.url, [setting.treeId, node], setting.async.url), + data: tmpParam, + dataType: setting.async.dataType, + success: function(msg) { + if (_tmpV != data.getRoot(setting)._ver) { + return; + } + var newNodes = []; + try { + if (!msg || msg.length == 0) { + newNodes = []; + } else if (typeof msg == "string") { + newNodes = eval("(" + msg + ")"); + } else { + newNodes = msg; + } + } catch(err) { + newNodes = msg; + } + + if (node) { + node.isAjaxing = null; + node.zAsync = true; + } + view.setNodeLineIcos(setting, node); + if (newNodes && newNodes !== "") { + newNodes = tools.apply(setting.async.dataFilter, [setting.treeId, node, newNodes], newNodes); + view.addNodes(setting, node, !!newNodes ? tools.clone(newNodes) : [], !!isSilent); + } else { + view.addNodes(setting, node, [], !!isSilent); + } + setting.treeObj.trigger(consts.event.ASYNC_SUCCESS, [setting.treeId, node, msg]); + tools.apply(callback); + }, + error: function(XMLHttpRequest, textStatus, errorThrown) { + if (_tmpV != data.getRoot(setting)._ver) { + return; + } + if (node) node.isAjaxing = null; + view.setNodeLineIcos(setting, node); + setting.treeObj.trigger(consts.event.ASYNC_ERROR, [setting.treeId, node, XMLHttpRequest, textStatus, errorThrown]); + } + }); + return true; + }, + cancelPreSelectedNode: function (setting, node) { + var list = data.getRoot(setting).curSelectedList; + for (var i=0, j=list.length-1; j>=i; j--) { + if (!node || node === list[j]) { + $("#" + list[j].tId + consts.id.A).removeClass(consts.node.CURSELECTED); + if (node) { + data.removeSelectedNode(setting, node); + break; + } + } + } + if (!node) data.getRoot(setting).curSelectedList = []; + }, + createNodeCallback: function(setting) { + if (!!setting.callback.onNodeCreated || !!setting.view.addDiyDom) { + var root = data.getRoot(setting); + while (root.createdNodes.length>0) { + var node = root.createdNodes.shift(); + tools.apply(setting.view.addDiyDom, [setting.treeId, node]); + if (!!setting.callback.onNodeCreated) { + setting.treeObj.trigger(consts.event.NODECREATED, [setting.treeId, node]); + } + } + } + }, + createNodes: function(setting, level, nodes, parentNode) { + if (!nodes || nodes.length == 0) return; + var root = data.getRoot(setting), + childKey = setting.data.key.children, + openFlag = !parentNode || parentNode.open || !!$("#" + parentNode[childKey][0].tId).get(0); + root.createdNodes = []; + var zTreeHtml = view.appendNodes(setting, level, nodes, parentNode, true, openFlag); + if (!parentNode) { + setting.treeObj.append(zTreeHtml.join('')); + } else { + var ulObj = $("#" + parentNode.tId + consts.id.UL); + if (ulObj.get(0)) { + ulObj.append(zTreeHtml.join('')); + } + } + view.createNodeCallback(setting); + }, + destroy: function(setting) { + if (!setting) return; + data.initCache(setting); + data.initRoot(setting); + event.unbindTree(setting); + event.unbindEvent(setting); + setting.treeObj.empty(); + }, + expandCollapseNode: function(setting, node, expandFlag, animateFlag, callback) { + var root = data.getRoot(setting), + childKey = setting.data.key.children; + if (!node) { + tools.apply(callback, []); + return; + } + if (root.expandTriggerFlag) { + var _callback = callback; + callback = function(){ + if (_callback) _callback(); + if (node.open) { + setting.treeObj.trigger(consts.event.EXPAND, [setting.treeId, node]); + } else { + setting.treeObj.trigger(consts.event.COLLAPSE, [setting.treeId, node]); + } + }; + root.expandTriggerFlag = false; + } + if (!node.open && node.isParent && ((!$("#" + node.tId + consts.id.UL).get(0)) || (node[childKey] && node[childKey].length>0 && !$("#" + node[childKey][0].tId).get(0)))) { + view.appendParentULDom(setting, node); + view.createNodeCallback(setting); + } + if (node.open == expandFlag) { + tools.apply(callback, []); + return; + } + var ulObj = $("#" + node.tId + consts.id.UL), + switchObj = $("#" + node.tId + consts.id.SWITCH), + icoObj = $("#" + node.tId + consts.id.ICON); + + if (node.isParent) { + node.open = !node.open; + if (node.iconOpen && node.iconClose) { + icoObj.attr("style", view.makeNodeIcoStyle(setting, node)); + } + + if (node.open) { + view.replaceSwitchClass(node, switchObj, consts.folder.OPEN); + view.replaceIcoClass(node, icoObj, consts.folder.OPEN); + if (animateFlag == false || setting.view.expandSpeed == "") { + ulObj.show(); + tools.apply(callback, []); + } else { + if (node[childKey] && node[childKey].length > 0) { + ulObj.slideDown(setting.view.expandSpeed, callback); + } else { + ulObj.show(); + tools.apply(callback, []); + } + } + } else { + view.replaceSwitchClass(node, switchObj, consts.folder.CLOSE); + view.replaceIcoClass(node, icoObj, consts.folder.CLOSE); + if (animateFlag == false || setting.view.expandSpeed == "" || !(node[childKey] && node[childKey].length > 0)) { + ulObj.hide(); + tools.apply(callback, []); + } else { + ulObj.slideUp(setting.view.expandSpeed, callback); + } + } + } else { + tools.apply(callback, []); + } + }, + expandCollapseParentNode: function(setting, node, expandFlag, animateFlag, callback) { + if (!node) return; + if (!node.parentTId) { + view.expandCollapseNode(setting, node, expandFlag, animateFlag, callback); + return; + } else { + view.expandCollapseNode(setting, node, expandFlag, animateFlag); + } + if (node.parentTId) { + view.expandCollapseParentNode(setting, node.getParentNode(), expandFlag, animateFlag, callback); + } + }, + expandCollapseSonNode: function(setting, node, expandFlag, animateFlag, callback) { + var root = data.getRoot(setting), + childKey = setting.data.key.children, + treeNodes = (node) ? node[childKey]: root[childKey], + selfAnimateSign = (node) ? false : animateFlag, + expandTriggerFlag = data.getRoot(setting).expandTriggerFlag; + data.getRoot(setting).expandTriggerFlag = false; + if (treeNodes) { + for (var i = 0, l = treeNodes.length; i < l; i++) { + if (treeNodes[i]) view.expandCollapseSonNode(setting, treeNodes[i], expandFlag, selfAnimateSign); + } + } + data.getRoot(setting).expandTriggerFlag = expandTriggerFlag; + view.expandCollapseNode(setting, node, expandFlag, animateFlag, callback ); + }, + makeDOMNodeIcon: function(html, setting, node) { + var nameStr = data.getNodeName(setting, node), + name = setting.view.nameIsHTML ? nameStr : nameStr.replace(/&/g,'&').replace(//g,'>'); + html.push("",name,""); + }, + makeDOMNodeLine: function(html, setting, node) { + html.push(""); + }, + makeDOMNodeMainAfter: function(html, setting, node) { + html.push(""); + }, + makeDOMNodeMainBefore: function(html, setting, node) { + html.push("
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • "); + }, + makeDOMNodeNameAfter: function(html, setting, node) { + html.push(""); + }, + makeDOMNodeNameBefore: function(html, setting, node) { + var title = data.getNodeTitle(setting, node), + url = view.makeNodeUrl(setting, node), + fontcss = view.makeNodeFontCss(setting, node), + fontStyle = []; + for (var f in fontcss) { + fontStyle.push(f, ":", fontcss[f], ";"); + } + html.push(" 0) ? "href='" + url + "'" : ""), " target='",view.makeNodeTarget(node),"' style='", fontStyle.join(''), + "'"); + if (tools.apply(setting.view.showTitle, [setting.treeId, node], setting.view.showTitle) && title) {html.push("title='", title.replace(/'/g,"'").replace(//g,'>'),"'");} + html.push(">"); + }, + makeNodeFontCss: function(setting, node) { + var fontCss = tools.apply(setting.view.fontCss, [setting.treeId, node], setting.view.fontCss); + return (fontCss && ((typeof fontCss) != "function")) ? fontCss : {}; + }, + makeNodeIcoClass: function(setting, node) { + var icoCss = ["ico"]; + if (!node.isAjaxing) { + icoCss[0] = (node.iconSkin ? node.iconSkin + "_" : "") + icoCss[0]; + if (node.isParent) { + icoCss.push(node.open ? consts.folder.OPEN : consts.folder.CLOSE); + } else { + icoCss.push(consts.folder.DOCU); + } + } + return "button " + icoCss.join('_'); + }, + makeNodeIcoStyle: function(setting, node) { + var icoStyle = []; + if (!node.isAjaxing) { + var icon = (node.isParent && node.iconOpen && node.iconClose) ? (node.open ? node.iconOpen : node.iconClose) : node.icon; + if (icon) icoStyle.push("background:url(", icon, ") 0 0 no-repeat;"); + if (setting.view.showIcon == false || !tools.apply(setting.view.showIcon, [setting.treeId, node], true)) { + icoStyle.push("width:0px;height:0px;"); + } + } + return icoStyle.join(''); + }, + makeNodeLineClass: function(setting, node) { + var lineClass = []; + if (setting.view.showLine) { + if (node.level == 0 && node.isFirstNode && node.isLastNode) { + lineClass.push(consts.line.ROOT); + } else if (node.level == 0 && node.isFirstNode) { + lineClass.push(consts.line.ROOTS); + } else if (node.isLastNode) { + lineClass.push(consts.line.BOTTOM); + } else { + lineClass.push(consts.line.CENTER); + } + } else { + lineClass.push(consts.line.NOLINE); + } + if (node.isParent) { + lineClass.push(node.open ? consts.folder.OPEN : consts.folder.CLOSE); + } else { + lineClass.push(consts.folder.DOCU); + } + return view.makeNodeLineClassEx(node) + lineClass.join('_'); + }, + makeNodeLineClassEx: function(node) { + return "button level" + node.level + " switch "; + }, + makeNodeTarget: function(node) { + return (node.target || "_blank"); + }, + makeNodeUrl: function(setting, node) { + var urlKey = setting.data.key.url; + return node[urlKey] ? node[urlKey] : null; + }, + makeUlHtml: function(setting, node, html, content) { + html.push("
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          "); + html.push(content); + html.push("
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        "); + }, + makeUlLineClass: function(setting, node) { + return ((setting.view.showLine && !node.isLastNode) ? consts.line.LINE : ""); + }, + removeChildNodes: function(setting, node) { + if (!node) return; + var childKey = setting.data.key.children, + nodes = node[childKey]; + if (!nodes) return; + + for (var i = 0, l = nodes.length; i < l; i++) { + data.removeNodeCache(setting, nodes[i]); + } + data.removeSelectedNode(setting); + delete node[childKey]; + + if (!setting.data.keep.parent) { + node.isParent = false; + node.open = false; + var tmp_switchObj = $("#" + node.tId + consts.id.SWITCH), + tmp_icoObj = $("#" + node.tId + consts.id.ICON); + view.replaceSwitchClass(node, tmp_switchObj, consts.folder.DOCU); + view.replaceIcoClass(node, tmp_icoObj, consts.folder.DOCU); + $("#" + node.tId + consts.id.UL).remove(); + } else { + $("#" + node.tId + consts.id.UL).empty(); + } + }, + setFirstNode: function(setting, parentNode) { + var childKey = setting.data.key.children, childLength = parentNode[childKey].length; + if ( childLength > 0) { + parentNode[childKey][0].isFirstNode = true; + } + }, + setLastNode: function(setting, parentNode) { + var childKey = setting.data.key.children, childLength = parentNode[childKey].length; + if ( childLength > 0) { + parentNode[childKey][childLength - 1].isLastNode = true; + } + }, + removeNode: function(setting, node) { + var root = data.getRoot(setting), + childKey = setting.data.key.children, + parentNode = (node.parentTId) ? node.getParentNode() : root; + + node.isFirstNode = false; + node.isLastNode = false; + node.getPreNode = function() {return null;}; + node.getNextNode = function() {return null;}; + + if (!data.getNodeCache(setting, node.tId)) { + return; + } + + $("#" + node.tId).remove(); + data.removeNodeCache(setting, node); + data.removeSelectedNode(setting, node); + + for (var i = 0, l = parentNode[childKey].length; i < l; i++) { + if (parentNode[childKey][i].tId == node.tId) { + parentNode[childKey].splice(i, 1); + break; + } + } + view.setFirstNode(setting, parentNode); + view.setLastNode(setting, parentNode); + + var tmp_ulObj,tmp_switchObj,tmp_icoObj, + childLength = parentNode[childKey].length; + + //repair nodes old parent + if (!setting.data.keep.parent && childLength == 0) { + //old parentNode has no child nodes + parentNode.isParent = false; + parentNode.open = false; + tmp_ulObj = $("#" + parentNode.tId + consts.id.UL); + tmp_switchObj = $("#" + parentNode.tId + consts.id.SWITCH); + tmp_icoObj = $("#" + parentNode.tId + consts.id.ICON); + view.replaceSwitchClass(parentNode, tmp_switchObj, consts.folder.DOCU); + view.replaceIcoClass(parentNode, tmp_icoObj, consts.folder.DOCU); + tmp_ulObj.css("display", "none"); + + } else if (setting.view.showLine && childLength > 0) { + //old parentNode has child nodes + var newLast = parentNode[childKey][childLength - 1]; + tmp_ulObj = $("#" + newLast.tId + consts.id.UL); + tmp_switchObj = $("#" + newLast.tId + consts.id.SWITCH); + tmp_icoObj = $("#" + newLast.tId + consts.id.ICON); + if (parentNode == root) { + if (parentNode[childKey].length == 1) { + //node was root, and ztree has only one root after move node + view.replaceSwitchClass(newLast, tmp_switchObj, consts.line.ROOT); + } else { + var tmp_first_switchObj = $("#" + parentNode[childKey][0].tId + consts.id.SWITCH); + view.replaceSwitchClass(parentNode[childKey][0], tmp_first_switchObj, consts.line.ROOTS); + view.replaceSwitchClass(newLast, tmp_switchObj, consts.line.BOTTOM); + } + } else { + view.replaceSwitchClass(newLast, tmp_switchObj, consts.line.BOTTOM); + } + tmp_ulObj.removeClass(consts.line.LINE); + } + }, + replaceIcoClass: function(node, obj, newName) { + if (!obj || node.isAjaxing) return; + var tmpName = obj.attr("class"); + if (tmpName == undefined) return; + var tmpList = tmpName.split("_"); + switch (newName) { + case consts.folder.OPEN: + case consts.folder.CLOSE: + case consts.folder.DOCU: + tmpList[tmpList.length-1] = newName; + break; + } + obj.attr("class", tmpList.join("_")); + }, + replaceSwitchClass: function(node, obj, newName) { + if (!obj) return; + var tmpName = obj.attr("class"); + if (tmpName == undefined) return; + var tmpList = tmpName.split("_"); + switch (newName) { + case consts.line.ROOT: + case consts.line.ROOTS: + case consts.line.CENTER: + case consts.line.BOTTOM: + case consts.line.NOLINE: + tmpList[0] = view.makeNodeLineClassEx(node) + newName; + break; + case consts.folder.OPEN: + case consts.folder.CLOSE: + case consts.folder.DOCU: + tmpList[1] = newName; + break; + } + obj.attr("class", tmpList.join("_")); + if (newName !== consts.folder.DOCU) { + obj.removeAttr("disabled"); + } else { + obj.attr("disabled", "disabled"); + } + }, + selectNode: function(setting, node, addFlag) { + if (!addFlag) { + view.cancelPreSelectedNode(setting); + } + $("#" + node.tId + consts.id.A).addClass(consts.node.CURSELECTED); + data.addSelectedNode(setting, node); + }, + setNodeFontCss: function(setting, treeNode) { + var aObj = $("#" + treeNode.tId + consts.id.A), + fontCss = view.makeNodeFontCss(setting, treeNode); + if (fontCss) { + aObj.css(fontCss); + } + }, + setNodeLineIcos: function(setting, node) { + if (!node) return; + var switchObj = $("#" + node.tId + consts.id.SWITCH), + ulObj = $("#" + node.tId + consts.id.UL), + icoObj = $("#" + node.tId + consts.id.ICON), + ulLine = view.makeUlLineClass(setting, node); + if (ulLine.length==0) { + ulObj.removeClass(consts.line.LINE); + } else { + ulObj.addClass(ulLine); + } + switchObj.attr("class", view.makeNodeLineClass(setting, node)); + if (node.isParent) { + switchObj.removeAttr("disabled"); + } else { + switchObj.attr("disabled", "disabled"); + } + icoObj.removeAttr("style"); + icoObj.attr("style", view.makeNodeIcoStyle(setting, node)); + icoObj.attr("class", view.makeNodeIcoClass(setting, node)); + }, + setNodeName: function(setting, node) { + var title = data.getNodeTitle(setting, node), + nObj = $("#" + node.tId + consts.id.SPAN); + nObj.empty(); + if (setting.view.nameIsHTML) { + nObj.html(data.getNodeName(setting, node)); + } else { + nObj.text(data.getNodeName(setting, node)); + } + if (tools.apply(setting.view.showTitle, [setting.treeId, node], setting.view.showTitle)) { + var aObj = $("#" + node.tId + consts.id.A); + aObj.attr("title", !title ? "" : title); + } + }, + setNodeTarget: function(node) { + var aObj = $("#" + node.tId + consts.id.A); + aObj.attr("target", view.makeNodeTarget(node)); + }, + setNodeUrl: function(setting, node) { + var aObj = $("#" + node.tId + consts.id.A), + url = view.makeNodeUrl(setting, node); + if (url == null || url.length == 0) { + aObj.removeAttr("href"); + } else { + aObj.attr("href", url); + } + }, + switchNode: function(setting, node) { + if (node.open || !tools.canAsync(setting, node)) { + view.expandCollapseNode(setting, node, !node.open); + } else if (setting.async.enable) { + if (!view.asyncNode(setting, node)) { + view.expandCollapseNode(setting, node, !node.open); + return; + } + } else if (node) { + view.expandCollapseNode(setting, node, !node.open); + } + } + }; + // zTree defind + $.fn.zTree = { + consts : _consts, + _z : { + tools: tools, + view: view, + event: event, + data: data + }, + getZTreeObj: function(treeId) { + var o = data.getZTreeTools(treeId); + return o ? o : null; + }, + destroy: function(treeId) { + if (!!treeId && treeId.length > 0) { + view.destroy(data.getSetting(treeId)); + } else { + for(var s in settings) { + view.destroy(settings[s]); + } + } + }, + init: function(obj, zSetting, zNodes) { + var setting = tools.clone(_setting); + $.extend(true, setting, zSetting); + setting.treeId = obj.attr("id"); + setting.treeObj = obj; + setting.treeObj.empty(); + settings[setting.treeId] = setting; + if ($.browser.msie && parseInt($.browser.version)<7) { + setting.view.expandSpeed = ""; + } + + data.initRoot(setting); + var root = data.getRoot(setting), + childKey = setting.data.key.children; + zNodes = zNodes ? tools.clone(tools.isArray(zNodes)? zNodes : [zNodes]) : []; + if (setting.data.simpleData.enable) { + root[childKey] = data.transformTozTreeFormat(setting, zNodes); + } else { + root[childKey] = zNodes; + } + + data.initCache(setting); + event.unbindTree(setting); + event.bindTree(setting); + event.unbindEvent(setting); + event.bindEvent(setting); + + var zTreeTools = { + setting : setting, + addNodes : function(parentNode, newNodes, isSilent) { + if (!newNodes) return null; + if (!parentNode) parentNode = null; + if (parentNode && !parentNode.isParent && setting.data.keep.leaf) return null; + var xNewNodes = tools.clone(tools.isArray(newNodes)? newNodes: [newNodes]); + function addCallback() { + view.addNodes(setting, parentNode, xNewNodes, (isSilent==true)); + } + + if (tools.canAsync(setting, parentNode)) { + view.asyncNode(setting, parentNode, isSilent, addCallback); + } else { + addCallback(); + } + return xNewNodes; + }, + cancelSelectedNode : function(node) { + view.cancelPreSelectedNode(this.setting, node); + }, + destroy : function() { + view.destroy(this.setting); + }, + expandAll : function(expandFlag) { + expandFlag = !!expandFlag; + view.expandCollapseSonNode(this.setting, null, expandFlag, true); + return expandFlag; + }, + expandNode : function(node, expandFlag, sonSign, focus, callbackFlag) { + if (!node || !node.isParent) return null; + if (expandFlag !== true && expandFlag !== false) { + expandFlag = !node.open; + } + callbackFlag = !!callbackFlag; + + if (callbackFlag && expandFlag && (tools.apply(setting.callback.beforeExpand, [setting.treeId, node], true) == false)) { + return null; + } else if (callbackFlag && !expandFlag && (tools.apply(setting.callback.beforeCollapse, [setting.treeId, node], true) == false)) { + return null; + } + if (expandFlag && node.parentTId) { + view.expandCollapseParentNode(this.setting, node.getParentNode(), expandFlag, false); + } + if (expandFlag === node.open && !sonSign) { + return null; + } + + data.getRoot(setting).expandTriggerFlag = callbackFlag; + if (sonSign) { + view.expandCollapseSonNode(this.setting, node, expandFlag, true, function() { + if (focus !== false) {try{$("#" + node.tId).focus().blur();}catch(e){}} + }); + } else { + node.open = !expandFlag; + view.switchNode(this.setting, node); + if (focus !== false) {try{$("#" + node.tId).focus().blur();}catch(e){}} + } + return expandFlag; + }, + getNodes : function() { + return data.getNodes(this.setting); + }, + getNodeByParam : function(key, value, parentNode) { + if (!key) return null; + return data.getNodeByParam(this.setting, parentNode?parentNode[this.setting.data.key.children]:data.getNodes(this.setting), key, value); + }, + getNodeByTId : function(tId) { + return data.getNodeCache(this.setting, tId); + }, + getNodesByParam : function(key, value, parentNode) { + if (!key) return null; + return data.getNodesByParam(this.setting, parentNode?parentNode[this.setting.data.key.children]:data.getNodes(this.setting), key, value); + }, + getNodesByParamFuzzy : function(key, value, parentNode) { + if (!key) return null; + return data.getNodesByParamFuzzy(this.setting, parentNode?parentNode[this.setting.data.key.children]:data.getNodes(this.setting), key, value); + }, + getNodesByFilter: function(filter, isSingle, parentNode, invokeParam) { + isSingle = !!isSingle; + if (!filter || (typeof filter != "function")) return (isSingle ? null : []); + return data.getNodesByFilter(this.setting, parentNode?parentNode[this.setting.data.key.children]:data.getNodes(this.setting), filter, isSingle, invokeParam); + }, + getNodeIndex : function(node) { + if (!node) return null; + var childKey = setting.data.key.children, + parentNode = (node.parentTId) ? node.getParentNode() : data.getRoot(this.setting); + for (var i=0, l = parentNode[childKey].length; i < l; i++) { + if (parentNode[childKey][i] == node) return i; + } + return -1; + }, + getSelectedNodes : function() { + var r = [], list = data.getRoot(this.setting).curSelectedList; + for (var i=0, l=list.length; i 0) { + view.createNodes(setting, 0, root[childKey]); + } else if (setting.async.enable && setting.async.url && setting.async.url !== '') { + view.asyncNode(setting); + } + return zTreeTools; + } + }; + + var zt = $.fn.zTree, + consts = zt.consts; +})(jQuery); +/* + * JQuery zTree excheck 3.5 + * http://zTree.me/ + * + * Copyright (c) 2010 Hunter.z + * + * Licensed same as jquery - MIT License + * http://www.opensource.org/licenses/mit-license.php + * + * email: hunter.z@263.net + * Date: 2012-11-20 + */ +(function($){ + //default consts of excheck + var _consts = { + event: { + CHECK: "ztree_check" + }, + id: { + CHECK: "_check" + }, + checkbox: { + STYLE: "checkbox", + DEFAULT: "chk", + DISABLED: "disable", + FALSE: "false", + TRUE: "true", + FULL: "full", + PART: "part", + FOCUS: "focus" + }, + radio: { + STYLE: "radio", + TYPE_ALL: "all", + TYPE_LEVEL: "level" + } + }, + //default setting of excheck + _setting = { + check: { + enable: false, + autoCheckTrigger: false, + chkStyle: _consts.checkbox.STYLE, + nocheckInherit: false, + radioType: _consts.radio.TYPE_LEVEL, + chkboxType: { + "Y": "ps", + "N": "ps" + } + }, + data: { + key: { + checked: "checked" + } + }, + callback: { + beforeCheck:null, + onCheck:null + } + }, + //default root of excheck + _initRoot = function (setting) { + var r = data.getRoot(setting); + r.radioCheckedList = []; + }, + //default cache of excheck + _initCache = function(treeId) {}, + //default bind event of excheck + _bindEvent = function(setting) { + var o = setting.treeObj, + c = consts.event; + o.bind(c.CHECK, function (event, srcEvent, treeId, node) { + tools.apply(setting.callback.onCheck, [!!srcEvent?srcEvent : event, treeId, node]); + }); + }, + _unbindEvent = function(setting) { + var o = setting.treeObj, + c = consts.event; + o.unbind(c.CHECK); + }, + //default event proxy of excheck + _eventProxy = function(e) { + var target = e.target, + setting = data.getSetting(e.data.treeId), + tId = "", node = null, + nodeEventType = "", treeEventType = "", + nodeEventCallback = null, treeEventCallback = null; + + if (tools.eqs(e.type, "mouseover")) { + if (setting.check.enable && tools.eqs(target.tagName, "span") && target.getAttribute("treeNode"+ consts.id.CHECK) !== null) { + tId = target.parentNode.id; + nodeEventType = "mouseoverCheck"; + } + } else if (tools.eqs(e.type, "mouseout")) { + if (setting.check.enable && tools.eqs(target.tagName, "span") && target.getAttribute("treeNode"+ consts.id.CHECK) !== null) { + tId = target.parentNode.id; + nodeEventType = "mouseoutCheck"; + } + } else if (tools.eqs(e.type, "click")) { + if (setting.check.enable && tools.eqs(target.tagName, "span") && target.getAttribute("treeNode"+ consts.id.CHECK) !== null) { + tId = target.parentNode.id; + nodeEventType = "checkNode"; + } + } + if (tId.length>0) { + node = data.getNodeCache(setting, tId); + switch (nodeEventType) { + case "checkNode" : + nodeEventCallback = _handler.onCheckNode; + break; + case "mouseoverCheck" : + nodeEventCallback = _handler.onMouseoverCheck; + break; + case "mouseoutCheck" : + nodeEventCallback = _handler.onMouseoutCheck; + break; + } + } + var proxyResult = { + stop: false, + node: node, + nodeEventType: nodeEventType, + nodeEventCallback: nodeEventCallback, + treeEventType: treeEventType, + treeEventCallback: treeEventCallback + }; + return proxyResult + }, + //default init node of excheck + _initNode = function(setting, level, n, parentNode, isFirstNode, isLastNode, openFlag) { + if (!n) return; + var checkedKey = setting.data.key.checked; + if (typeof n[checkedKey] == "string") n[checkedKey] = tools.eqs(n[checkedKey], "true"); + n[checkedKey] = !!n[checkedKey]; + n.checkedOld = n[checkedKey]; + if (typeof n.nocheck == "string") n.nocheck = tools.eqs(n.nocheck, "true"); + n.nocheck = !!n.nocheck || (setting.check.nocheckInherit && parentNode && !!parentNode.nocheck); + if (typeof n.chkDisabled == "string") n.chkDisabled = tools.eqs(n.chkDisabled, "true"); + n.chkDisabled = !!n.chkDisabled || (parentNode && !!parentNode.chkDisabled); + if (typeof n.halfCheck == "string") n.halfCheck = tools.eqs(n.halfCheck, "true"); + n.halfCheck = !!n.halfCheck; + n.check_Child_State = -1; + n.check_Focus = false; + n.getCheckStatus = function() {return data.getCheckStatus(setting, n);}; + }, + //add dom for check + _beforeA = function(setting, node, html) { + var checkedKey = setting.data.key.checked; + if (setting.check.enable) { + data.makeChkFlag(setting, node); + if (setting.check.chkStyle == consts.radio.STYLE && setting.check.radioType == consts.radio.TYPE_ALL && node[checkedKey] ) { + var r = data.getRoot(setting); + r.radioCheckedList.push(node); + } + html.push(""); + } + }, + //update zTreeObj, add method of check + _zTreeTools = function(setting, zTreeTools) { + zTreeTools.checkNode = function(node, checked, checkTypeFlag, callbackFlag) { + var checkedKey = this.setting.data.key.checked; + if (node.chkDisabled === true) return; + if (checked !== true && checked !== false) { + checked = !node[checkedKey]; + } + callbackFlag = !!callbackFlag; + + if (node[checkedKey] === checked && !checkTypeFlag) { + return; + } else if (callbackFlag && tools.apply(this.setting.callback.beforeCheck, [this.setting.treeId, node], true) == false) { + return; + } + if (tools.uCanDo(this.setting) && this.setting.check.enable && node.nocheck !== true) { + node[checkedKey] = checked; + var checkObj = $("#" + node.tId + consts.id.CHECK); + if (checkTypeFlag || this.setting.check.chkStyle === consts.radio.STYLE) view.checkNodeRelation(this.setting, node); + view.setChkClass(this.setting, checkObj, node); + view.repairParentChkClassWithSelf(this.setting, node); + if (callbackFlag) { + setting.treeObj.trigger(consts.event.CHECK, [null, setting.treeId, node]); + } + } + } + + zTreeTools.checkAllNodes = function(checked) { + view.repairAllChk(this.setting, !!checked); + } + + zTreeTools.getCheckedNodes = function(checked) { + var childKey = this.setting.data.key.children; + checked = (checked !== false); + return data.getTreeCheckedNodes(this.setting, data.getRoot(setting)[childKey], checked); + } + + zTreeTools.getChangeCheckedNodes = function() { + var childKey = this.setting.data.key.children; + return data.getTreeChangeCheckedNodes(this.setting, data.getRoot(setting)[childKey]); + } + + zTreeTools.setChkDisabled = function(node, disabled) { + disabled = !!disabled; + view.repairSonChkDisabled(this.setting, node, disabled); + if (!disabled) view.repairParentChkDisabled(this.setting, node, disabled); + } + + var _updateNode = zTreeTools.updateNode; + zTreeTools.updateNode = function(node, checkTypeFlag) { + if (_updateNode) _updateNode.apply(zTreeTools, arguments); + if (!node || !this.setting.check.enable) return; + var nObj = $("#" + node.tId); + if (nObj.get(0) && tools.uCanDo(this.setting)) { + var checkObj = $("#" + node.tId + consts.id.CHECK); + if (checkTypeFlag == true || this.setting.check.chkStyle === consts.radio.STYLE) view.checkNodeRelation(this.setting, node); + view.setChkClass(this.setting, checkObj, node); + view.repairParentChkClassWithSelf(this.setting, node); + } + } + }, + //method of operate data + _data = { + getRadioCheckedList: function(setting) { + var checkedList = data.getRoot(setting).radioCheckedList; + for (var i=0, j=checkedList.length; i -1 && node.check_Child_State < 2) : (node.check_Child_State > 0))) + }; + return r; + }, + getTreeCheckedNodes: function(setting, nodes, checked, results) { + if (!nodes) return []; + var childKey = setting.data.key.children, + checkedKey = setting.data.key.checked, + onlyOne = (checked && setting.check.chkStyle == consts.radio.STYLE && setting.check.radioType == consts.radio.TYPE_ALL); + results = !results ? [] : results; + for (var i = 0, l = nodes.length; i < l; i++) { + if (nodes[i].nocheck !== true && nodes[i][checkedKey] == checked) { + results.push(nodes[i]); + if(onlyOne) { + break; + } + } + data.getTreeCheckedNodes(setting, nodes[i][childKey], checked, results); + if(onlyOne && results.length > 0) { + break; + } + } + return results; + }, + getTreeChangeCheckedNodes: function(setting, nodes, results) { + if (!nodes) return []; + var childKey = setting.data.key.children, + checkedKey = setting.data.key.checked; + results = !results ? [] : results; + for (var i = 0, l = nodes.length; i < l; i++) { + if (nodes[i].nocheck !== true && nodes[i][checkedKey] != nodes[i].checkedOld) { + results.push(nodes[i]); + } + data.getTreeChangeCheckedNodes(setting, nodes[i][childKey], results); + } + return results; + }, + makeChkFlag: function(setting, node) { + if (!node) return; + var childKey = setting.data.key.children, + checkedKey = setting.data.key.checked, + chkFlag = -1; + if (node[childKey]) { + var start = false; + for (var i = 0, l = node[childKey].length; i < l; i++) { + var cNode = node[childKey][i]; + var tmp = -1; + if (setting.check.chkStyle == consts.radio.STYLE) { + if (cNode.nocheck === true) { + tmp = cNode.check_Child_State; + } else if (cNode.halfCheck === true) { + tmp = 2; + } else if (cNode.nocheck !== true && cNode[checkedKey]) { + tmp = 2; + } else { + tmp = cNode.check_Child_State > 0 ? 2:0; + } + if (tmp == 2) { + chkFlag = 2; break; + } else if (tmp == 0){ + chkFlag = 0; + } + } else if (setting.check.chkStyle == consts.checkbox.STYLE) { + if (cNode.nocheck === true) { + tmp = cNode.check_Child_State; + } else if (cNode.halfCheck === true) { + tmp = 1; + } else if (cNode.nocheck !== true && cNode[checkedKey] ) { + tmp = (cNode.check_Child_State === -1 || cNode.check_Child_State === 2) ? 2 : 1; + } else { + tmp = (cNode.check_Child_State > 0) ? 1 : 0; + } + if (tmp === 1) { + chkFlag = 1; break; + } else if (tmp === 2 && start && tmp !== chkFlag) { + chkFlag = 1; break; + } else if (chkFlag === 2 && tmp > -1 && tmp < 2) { + chkFlag = 1; break; + } else if (tmp > -1) { + chkFlag = tmp; + } + if (!start) start = (cNode.nocheck !== true); + } + } + } + node.check_Child_State = chkFlag; + } + }, + //method of event proxy + _event = { + + }, + //method of event handler + _handler = { + onCheckNode: function (event, node) { + if (node.chkDisabled === true) return false; + var setting = data.getSetting(event.data.treeId), + checkedKey = setting.data.key.checked; + if (tools.apply(setting.callback.beforeCheck, [setting.treeId, node], true) == false) return true; + node[checkedKey] = !node[checkedKey]; + view.checkNodeRelation(setting, node); + var checkObj = $("#" + node.tId + consts.id.CHECK); + view.setChkClass(setting, checkObj, node); + view.repairParentChkClassWithSelf(setting, node); + setting.treeObj.trigger(consts.event.CHECK, [event, setting.treeId, node]); + return true; + }, + onMouseoverCheck: function(event, node) { + if (node.chkDisabled === true) return false; + var setting = data.getSetting(event.data.treeId), + checkObj = $("#" + node.tId + consts.id.CHECK); + node.check_Focus = true; + view.setChkClass(setting, checkObj, node); + return true; + }, + onMouseoutCheck: function(event, node) { + if (node.chkDisabled === true) return false; + var setting = data.getSetting(event.data.treeId), + checkObj = $("#" + node.tId + consts.id.CHECK); + node.check_Focus = false; + view.setChkClass(setting, checkObj, node); + return true; + } + }, + //method of tools for zTree + _tools = { + + }, + //method of operate ztree dom + _view = { + checkNodeRelation: function(setting, node) { + var pNode, i, l, + childKey = setting.data.key.children, + checkedKey = setting.data.key.checked, + r = consts.radio; + if (setting.check.chkStyle == r.STYLE) { + var checkedList = data.getRadioCheckedList(setting); + if (node[checkedKey]) { + if (setting.check.radioType == r.TYPE_ALL) { + for (i = checkedList.length-1; i >= 0; i--) { + pNode = checkedList[i]; + pNode[checkedKey] = false; + checkedList.splice(i, 1); + + view.setChkClass(setting, $("#" + pNode.tId + consts.id.CHECK), pNode); + if (pNode.parentTId != node.parentTId) { + view.repairParentChkClassWithSelf(setting, pNode); + } + } + checkedList.push(node); + } else { + var parentNode = (node.parentTId) ? node.getParentNode() : data.getRoot(setting); + for (i = 0, l = parentNode[childKey].length; i < l; i++) { + pNode = parentNode[childKey][i]; + if (pNode[checkedKey] && pNode != node) { + pNode[checkedKey] = false; + view.setChkClass(setting, $("#" + pNode.tId + consts.id.CHECK), pNode); + } + } + } + } else if (setting.check.radioType == r.TYPE_ALL) { + for (i = 0, l = checkedList.length; i < l; i++) { + if (node == checkedList[i]) { + checkedList.splice(i, 1); + break; + } + } + } + + } else { + if (node[checkedKey] && (!node[childKey] || node[childKey].length==0 || setting.check.chkboxType.Y.indexOf("s") > -1)) { + view.setSonNodeCheckBox(setting, node, true); + } + if (!node[checkedKey] && (!node[childKey] || node[childKey].length==0 || setting.check.chkboxType.N.indexOf("s") > -1)) { + view.setSonNodeCheckBox(setting, node, false); + } + if (node[checkedKey] && setting.check.chkboxType.Y.indexOf("p") > -1) { + view.setParentNodeCheckBox(setting, node, true); + } + if (!node[checkedKey] && setting.check.chkboxType.N.indexOf("p") > -1) { + view.setParentNodeCheckBox(setting, node, false); + } + } + }, + makeChkClass: function(setting, node) { + var checkedKey = setting.data.key.checked, + c = consts.checkbox, r = consts.radio, + fullStyle = ""; + if (node.chkDisabled === true) { + fullStyle = c.DISABLED; + } else if (node.halfCheck) { + fullStyle = c.PART; + } else if (setting.check.chkStyle == r.STYLE) { + fullStyle = (node.check_Child_State < 1)? c.FULL:c.PART; + } else { + fullStyle = node[checkedKey] ? ((node.check_Child_State === 2 || node.check_Child_State === -1) ? c.FULL:c.PART) : ((node.check_Child_State < 1)? c.FULL:c.PART); + } + var chkName = setting.check.chkStyle + "_" + (node[checkedKey] ? c.TRUE : c.FALSE) + "_" + fullStyle; + chkName = (node.check_Focus && node.chkDisabled !== true) ? chkName + "_" + c.FOCUS : chkName; + return "button " + c.DEFAULT + " " + chkName; + }, + repairAllChk: function(setting, checked) { + if (setting.check.enable && setting.check.chkStyle === consts.checkbox.STYLE) { + var checkedKey = setting.data.key.checked, + childKey = setting.data.key.children, + root = data.getRoot(setting); + for (var i = 0, l = root[childKey].length; i 0) { + view.repairParentChkClass(setting, node[childKey][0]); + } else { + view.repairParentChkClass(setting, node); + } + }, + repairSonChkDisabled: function(setting, node, chkDisabled) { + if (!node) return; + var childKey = setting.data.key.children; + if (node.chkDisabled != chkDisabled) { + node.chkDisabled = chkDisabled; + if (node.nocheck !== true) view.repairChkClass(setting, node); + } + if (node[childKey]) { + for (var i = 0, l = node[childKey].length; i < l; i++) { + var sNode = node[childKey][i]; + view.repairSonChkDisabled(setting, sNode, chkDisabled); + } + } + }, + repairParentChkDisabled: function(setting, node, chkDisabled) { + if (!node) return; + if (node.chkDisabled != chkDisabled) { + node.chkDisabled = chkDisabled; + if (node.nocheck !== true) view.repairChkClass(setting, node); + } + view.repairParentChkDisabled(setting, node.getParentNode(), chkDisabled); + }, + setChkClass: function(setting, obj, node) { + if (!obj) return; + if (node.nocheck === true) { + obj.hide(); + } else { + obj.show(); + } + obj.removeClass(); + obj.addClass(view.makeChkClass(setting, node)); + }, + setParentNodeCheckBox: function(setting, node, value, srcNode) { + var childKey = setting.data.key.children, + checkedKey = setting.data.key.checked, + checkObj = $("#" + node.tId + consts.id.CHECK); + if (!srcNode) srcNode = node; + data.makeChkFlag(setting, node); + if (node.nocheck !== true && node.chkDisabled !== true) { + node[checkedKey] = value; + view.setChkClass(setting, checkObj, node); + if (setting.check.autoCheckTrigger && node != srcNode && node.nocheck !== true) { + setting.treeObj.trigger(consts.event.CHECK, [setting.treeId, node]); + } + } + if (node.parentTId) { + var pSign = true; + if (!value) { + var pNodes = node.getParentNode()[childKey]; + for (var i = 0, l = pNodes.length; i < l; i++) { + if ((pNodes[i].nocheck !== true && pNodes[i][checkedKey]) + || (pNodes[i].nocheck === true && pNodes[i].check_Child_State > 0)) { + pSign = false; + break; + } + } + } + if (pSign) { + view.setParentNodeCheckBox(setting, node.getParentNode(), value, srcNode); + } + } + }, + setSonNodeCheckBox: function(setting, node, value, srcNode) { + if (!node) return; + var childKey = setting.data.key.children, + checkedKey = setting.data.key.checked, + checkObj = $("#" + node.tId + consts.id.CHECK); + if (!srcNode) srcNode = node; + + var hasDisable = false; + if (node[childKey]) { + for (var i = 0, l = node[childKey].length; i < l && node.chkDisabled !== true; i++) { + var sNode = node[childKey][i]; + view.setSonNodeCheckBox(setting, sNode, value, srcNode); + if (sNode.chkDisabled === true) hasDisable = true; + } + } + + if (node != data.getRoot(setting) && node.chkDisabled !== true) { + if (hasDisable && node.nocheck !== true) { + data.makeChkFlag(setting, node); + } + if (node.nocheck !== true) { + node[checkedKey] = value; + if (!hasDisable) node.check_Child_State = (node[childKey] && node[childKey].length > 0) ? (value ? 2 : 0) : -1; + } else { + node.check_Child_State = -1; + } + view.setChkClass(setting, checkObj, node); + if (setting.check.autoCheckTrigger && node != srcNode && node.nocheck !== true) { + setting.treeObj.trigger(consts.event.CHECK, [setting.treeId, node]); + } + } + + } + }, + + _z = { + tools: _tools, + view: _view, + event: _event, + data: _data + }; + $.extend(true, $.fn.zTree.consts, _consts); + $.extend(true, $.fn.zTree._z, _z); + + var zt = $.fn.zTree, + tools = zt._z.tools, + consts = zt.consts, + view = zt._z.view, + data = zt._z.data, + event = zt._z.event; + + data.exSetting(_setting); + data.addInitBind(_bindEvent); + data.addInitUnBind(_unbindEvent); + data.addInitCache(_initCache); + data.addInitNode(_initNode); + data.addInitProxy(_eventProxy); + data.addInitRoot(_initRoot); + data.addBeforeA(_beforeA); + data.addZTreeTools(_zTreeTools); + + var _createNodes = view.createNodes; + view.createNodes = function(setting, level, nodes, parentNode) { + if (_createNodes) _createNodes.apply(view, arguments); + if (!nodes) return; + view.repairParentChkClassWithSelf(setting, parentNode); + } + var _removeNode = view.removeNode; + view.removeNode = function(setting, node) { + var parentNode = node.getParentNode(); + if (_removeNode) _removeNode.apply(view, arguments); + if (!node || !parentNode) return; + view.repairChkClass(setting, parentNode); + view.repairParentChkClass(setting, parentNode); + } + + var _appendNodes = view.appendNodes; + view.appendNodes = function(setting, level, nodes, parentNode, initFlag, openFlag) { + var html = ""; + if (_appendNodes) { + html = _appendNodes.apply(view, arguments); + } + if (parentNode) { + data.makeChkFlag(setting, parentNode); + } + return html; + } +})(jQuery); +/* + * JQuery zTree exedit 3.5 + * http://zTree.me/ + * + * Copyright (c) 2010 Hunter.z + * + * Licensed same as jquery - MIT License + * http://www.opensource.org/licenses/mit-license.php + * + * email: hunter.z@263.net + * Date: 2012-11-20 + */ +(function($){ + //default consts of exedit + var _consts = { + event: { + DRAG: "ztree_drag", + DROP: "ztree_drop", + REMOVE: "ztree_remove", + RENAME: "ztree_rename" + }, + id: { + EDIT: "_edit", + INPUT: "_input", + REMOVE: "_remove" + }, + move: { + TYPE_INNER: "inner", + TYPE_PREV: "prev", + TYPE_NEXT: "next" + }, + node: { + CURSELECTED_EDIT: "curSelectedNode_Edit", + TMPTARGET_TREE: "tmpTargetzTree", + TMPTARGET_NODE: "tmpTargetNode" + } + }, + //default setting of exedit + _setting = { + edit: { + enable: false, + editNameSelectAll: false, + showRemoveBtn: true, + showRenameBtn: true, + removeTitle: "remove", + renameTitle: "rename", + drag: { + autoExpandTrigger: false, + isCopy: true, + isMove: true, + prev: true, + next: true, + inner: true, + minMoveSize: 5, + borderMax: 10, + borderMin: -5, + maxShowNodeNum: 5, + autoOpenTime: 500 + } + }, + view: { + addHoverDom: null, + removeHoverDom: null + }, + callback: { + beforeDrag:null, + beforeDragOpen:null, + beforeDrop:null, + beforeEditName:null, + beforeRename:null, + onDrag:null, + onDrop:null, + onRename:null + } + }, + //default root of exedit + _initRoot = function (setting) { + var r = data.getRoot(setting); + r.curEditNode = null; + r.curEditInput = null; + r.curHoverNode = null; + r.dragFlag = 0; + r.dragNodeShowBefore = []; + r.dragMaskList = new Array(); + r.showHoverDom = true; + }, + //default cache of exedit + _initCache = function(treeId) {}, + //default bind event of exedit + _bindEvent = function(setting) { + var o = setting.treeObj; + var c = consts.event; + o.bind(c.RENAME, function (event, treeId, treeNode) { + tools.apply(setting.callback.onRename, [event, treeId, treeNode]); + }); + + o.bind(c.REMOVE, function (event, treeId, treeNode) { + tools.apply(setting.callback.onRemove, [event, treeId, treeNode]); + }); + + o.bind(c.DRAG, function (event, srcEvent, treeId, treeNodes) { + tools.apply(setting.callback.onDrag, [srcEvent, treeId, treeNodes]); + }); + + o.bind(c.DROP, function (event, srcEvent, treeId, treeNodes, targetNode, moveType, isCopy) { + tools.apply(setting.callback.onDrop, [srcEvent, treeId, treeNodes, targetNode, moveType, isCopy]); + }); + }, + _unbindEvent = function(setting) { + var o = setting.treeObj; + var c = consts.event; + o.unbind(c.RENAME); + o.unbind(c.REMOVE); + o.unbind(c.DRAG); + o.unbind(c.DROP); + }, + //default event proxy of exedit + _eventProxy = function(e) { + var target = e.target, + setting = data.getSetting(e.data.treeId), + relatedTarget = e.relatedTarget, + tId = "", node = null, + nodeEventType = "", treeEventType = "", + nodeEventCallback = null, treeEventCallback = null, + tmp = null; + + if (tools.eqs(e.type, "mouseover")) { + tmp = tools.getMDom(setting, target, [{tagName:"a", attrName:"treeNode"+consts.id.A}]); + if (tmp) { + tId = tmp.parentNode.id; + nodeEventType = "hoverOverNode"; + } + } else if (tools.eqs(e.type, "mouseout")) { + tmp = tools.getMDom(setting, relatedTarget, [{tagName:"a", attrName:"treeNode"+consts.id.A}]); + if (!tmp) { + tId = "remove"; + nodeEventType = "hoverOutNode"; + } + } else if (tools.eqs(e.type, "mousedown")) { + tmp = tools.getMDom(setting, target, [{tagName:"a", attrName:"treeNode"+consts.id.A}]); + if (tmp) { + tId = tmp.parentNode.id; + nodeEventType = "mousedownNode"; + } + } + if (tId.length>0) { + node = data.getNodeCache(setting, tId); + switch (nodeEventType) { + case "mousedownNode" : + nodeEventCallback = _handler.onMousedownNode; + break; + case "hoverOverNode" : + nodeEventCallback = _handler.onHoverOverNode; + break; + case "hoverOutNode" : + nodeEventCallback = _handler.onHoverOutNode; + break; + } + } + var proxyResult = { + stop: false, + node: node, + nodeEventType: nodeEventType, + nodeEventCallback: nodeEventCallback, + treeEventType: treeEventType, + treeEventCallback: treeEventCallback + }; + return proxyResult + }, + //default init node of exedit + _initNode = function(setting, level, n, parentNode, isFirstNode, isLastNode, openFlag) { + if (!n) return; + n.isHover = false; + n.editNameFlag = false; + }, + //update zTreeObj, add method of edit + _zTreeTools = function(setting, zTreeTools) { + zTreeTools.cancelEditName = function(newName) { + var root = data.getRoot(setting), + nameKey = setting.data.key.name, + node = root.curEditNode; + if (!root.curEditNode) return; + view.cancelCurEditNode(setting, newName?newName:node[nameKey]); + } + zTreeTools.copyNode = function(targetNode, node, moveType, isSilent) { + if (!node) return null; + if (targetNode && !targetNode.isParent && setting.data.keep.leaf && moveType === consts.move.TYPE_INNER) return null; + var newNode = tools.clone(node); + if (!targetNode) { + targetNode = null; + moveType = consts.move.TYPE_INNER; + } + if (moveType == consts.move.TYPE_INNER) { + function copyCallback() { + view.addNodes(setting, targetNode, [newNode], isSilent); + } + + if (tools.canAsync(setting, targetNode)) { + view.asyncNode(setting, targetNode, isSilent, copyCallback); + } else { + copyCallback(); + } + } else { + view.addNodes(setting, targetNode.parentNode, [newNode], isSilent); + view.moveNode(setting, targetNode, newNode, moveType, false, isSilent); + } + return newNode; + } + zTreeTools.editName = function(node) { + if (!node || !node.tId || node !== data.getNodeCache(setting, node.tId)) return; + if (node.parentTId) view.expandCollapseParentNode(setting, node.getParentNode(), true); + view.editNode(setting, node) + } + zTreeTools.moveNode = function(targetNode, node, moveType, isSilent) { + if (!node) return node; + if (targetNode && !targetNode.isParent && setting.data.keep.leaf && moveType === consts.move.TYPE_INNER) { + return null; + } else if (targetNode && ((node.parentTId == targetNode.tId && moveType == consts.move.TYPE_INNER) || $("#" + node.tId).find("#" + targetNode.tId).length > 0)) { + return null; + } else if (!targetNode) { + targetNode = null; + } + function moveCallback() { + view.moveNode(setting, targetNode, node, moveType, false, isSilent); + } + if (tools.canAsync(setting, targetNode)) { + view.asyncNode(setting, targetNode, isSilent, moveCallback); + } else { + moveCallback(); + } + return node; + } + zTreeTools.setEditable = function(editable) { + setting.edit.enable = editable; + return this.refresh(); + } + }, + //method of operate data + _data = { + setSonNodeLevel: function(setting, parentNode, node) { + if (!node) return; + var childKey = setting.data.key.children; + node.level = (parentNode)? parentNode.level + 1 : 0; + if (!node[childKey]) return; + for (var i = 0, l = node[childKey].length; i < l; i++) { + if (node[childKey][i]) data.setSonNodeLevel(setting, node, node[childKey][i]); + } + } + }, + //method of event proxy + _event = { + + }, + //method of event handler + _handler = { + onHoverOverNode: function(event, node) { + var setting = data.getSetting(event.data.treeId), + root = data.getRoot(setting); + if (root.curHoverNode != node) { + _handler.onHoverOutNode(event); + } + root.curHoverNode = node; + view.addHoverDom(setting, node); + }, + onHoverOutNode: function(event, node) { + var setting = data.getSetting(event.data.treeId), + root = data.getRoot(setting); + if (root.curHoverNode && !data.isSelectedNode(setting, root.curHoverNode)) { + view.removeTreeDom(setting, root.curHoverNode); + root.curHoverNode = null; + } + }, + onMousedownNode: function(eventMouseDown, _node) { + var i,l, + setting = data.getSetting(eventMouseDown.data.treeId), + root = data.getRoot(setting); + //right click can't drag & drop + if (eventMouseDown.button == 2 || !setting.edit.enable || (!setting.edit.drag.isCopy && !setting.edit.drag.isMove)) return true; + + //input of edit node name can't drag & drop + var target = eventMouseDown.target, + _nodes = data.getRoot(setting).curSelectedList, + nodes = []; + if (!data.isSelectedNode(setting, _node)) { + nodes = [_node]; + } else { + for (i=0, l=_nodes.length; i1) { + var pNodes = nodes[0].parentTId ? nodes[0].getParentNode()[childKey] : data.getNodes(setting); + tmpNodes = []; + for (i=0, l=pNodes.length; i -1 && (lastIndex+1) !== i) { + isOrder = false; + } + tmpNodes.push(pNodes[i]); + lastIndex = i; + } + if (nodes.length === tmpNodes.length) { + nodes = tmpNodes; + break; + } + } + } + if (isOrder) { + preNode = nodes[0].getPreNode(); + nextNode = nodes[nodes.length-1].getNextNode(); + } + + //set node in selected + curNode = $("
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          "); + for (i=0, l=nodes.length; i0); + view.removeTreeDom(setting, tmpNode); + + tmpDom = $("
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • "); + tmpDom.append($("#" + tmpNode.tId + consts.id.A).clone()); + tmpDom.css("padding", "0"); + tmpDom.children("#" + tmpNode.tId + consts.id.A).removeClass(consts.node.CURSELECTED); + curNode.append(tmpDom); + if (i == setting.edit.drag.maxShowNodeNum-1) { + tmpDom = $("
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • ...
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • "); + curNode.append(tmpDom); + break; + } + } + curNode.attr("id", nodes[0].tId + consts.id.UL + "_tmp"); + curNode.addClass(setting.treeObj.attr("class")); + curNode.appendTo("body"); + + tmpArrow = $(""); + tmpArrow.attr("id", "zTreeMove_arrow_tmp"); + tmpArrow.appendTo("body"); + + setting.treeObj.trigger(consts.event.DRAG, [event, setting.treeId, nodes]); + } + + if (root.dragFlag == 1) { + if (tmpTarget && tmpArrow.attr("id") == event.target.id && tmpTargetNodeId && (event.clientX + doc.scrollLeft()+2) > ($("#" + tmpTargetNodeId + consts.id.A, tmpTarget).offset().left)) { + var xT = $("#" + tmpTargetNodeId + consts.id.A, tmpTarget); + event.target = (xT.length > 0) ? xT.get(0) : event.target; + } else if (tmpTarget) { + tmpTarget.removeClass(consts.node.TMPTARGET_TREE); + if (tmpTargetNodeId) $("#" + tmpTargetNodeId + consts.id.A, tmpTarget).removeClass(consts.node.TMPTARGET_NODE + "_" + consts.move.TYPE_PREV) + .removeClass(consts.node.TMPTARGET_NODE + "_" + _consts.move.TYPE_NEXT).removeClass(consts.node.TMPTARGET_NODE + "_" + _consts.move.TYPE_INNER); + } + tmpTarget = null; + tmpTargetNodeId = null; + + //judge drag & drop in multi ztree + isOtherTree = false; + targetSetting = setting; + var settings = data.getSettings(); + for (var s in settings) { + if (settings[s].treeId && settings[s].edit.enable && settings[s].treeId != setting.treeId + && (event.target.id == settings[s].treeId || $(event.target).parents("#" + settings[s].treeId).length>0)) { + isOtherTree = true; + targetSetting = settings[s]; + } + } + + var docScrollTop = doc.scrollTop(), + docScrollLeft = doc.scrollLeft(), + treeOffset = targetSetting.treeObj.offset(), + scrollHeight = targetSetting.treeObj.get(0).scrollHeight, + scrollWidth = targetSetting.treeObj.get(0).scrollWidth, + dTop = (event.clientY + docScrollTop - treeOffset.top), + dBottom = (targetSetting.treeObj.height() + treeOffset.top - event.clientY - docScrollTop), + dLeft = (event.clientX + docScrollLeft - treeOffset.left), + dRight = (targetSetting.treeObj.width() + treeOffset.left - event.clientX - docScrollLeft), + isTop = (dTop < setting.edit.drag.borderMax && dTop > setting.edit.drag.borderMin), + isBottom = (dBottom < setting.edit.drag.borderMax && dBottom > setting.edit.drag.borderMin), + isLeft = (dLeft < setting.edit.drag.borderMax && dLeft > setting.edit.drag.borderMin), + isRight = (dRight < setting.edit.drag.borderMax && dRight > setting.edit.drag.borderMin), + isTreeInner = dTop > setting.edit.drag.borderMin && dBottom > setting.edit.drag.borderMin && dLeft > setting.edit.drag.borderMin && dRight > setting.edit.drag.borderMin, + isTreeTop = (isTop && targetSetting.treeObj.scrollTop() <= 0), + isTreeBottom = (isBottom && (targetSetting.treeObj.scrollTop() + targetSetting.treeObj.height()+10) >= scrollHeight), + isTreeLeft = (isLeft && targetSetting.treeObj.scrollLeft() <= 0), + isTreeRight = (isRight && (targetSetting.treeObj.scrollLeft() + targetSetting.treeObj.width()+10) >= scrollWidth); + + if (event.target.id && targetSetting.treeObj.find("#" + event.target.id).length > 0) { + //get node
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • dom + var targetObj = event.target; + while (targetObj && targetObj.tagName && !tools.eqs(targetObj.tagName, "li") && targetObj.id != targetSetting.treeId) { + targetObj = targetObj.parentNode; + } + + var canMove = true; + //don't move to self or children of self + for (i=0, l=nodes.length; i 0) { + canMove = false; + break; + } + } + if (canMove) { + if (event.target.id && + (event.target.id == (targetObj.id + consts.id.A) || $(event.target).parents("#" + targetObj.id + consts.id.A).length > 0)) { + tmpTarget = $(targetObj); + tmpTargetNodeId = targetObj.id; + } + } + } + + //the mouse must be in zTree + tmpNode = nodes[0]; + if (isTreeInner && (event.target.id == targetSetting.treeId || $(event.target).parents("#" + targetSetting.treeId).length>0)) { + //judge mouse move in root of ztree + if (!tmpTarget && (event.target.id == targetSetting.treeId || isTreeTop || isTreeBottom || isTreeLeft || isTreeRight) && (isOtherTree || (!isOtherTree && tmpNode.parentTId))) { + tmpTarget = targetSetting.treeObj; + } + //auto scroll top + if (isTop) { + targetSetting.treeObj.scrollTop(targetSetting.treeObj.scrollTop()-10); + } else if (isBottom) { + targetSetting.treeObj.scrollTop(targetSetting.treeObj.scrollTop()+10); + } + if (isLeft) { + targetSetting.treeObj.scrollLeft(targetSetting.treeObj.scrollLeft()-10); + } else if (isRight) { + targetSetting.treeObj.scrollLeft(targetSetting.treeObj.scrollLeft()+10); + } + //auto scroll left + if (tmpTarget && tmpTarget != targetSetting.treeObj && tmpTarget.offset().left < targetSetting.treeObj.offset().left) { + targetSetting.treeObj.scrollLeft(targetSetting.treeObj.scrollLeft()+ tmpTarget.offset().left - targetSetting.treeObj.offset().left); + } + } + + curNode.css({ + "top": (event.clientY + docScrollTop + 3) + "px", + "left": (event.clientX + docScrollLeft + 3) + "px" + }); + + var dX = 0; + var dY = 0; + if (tmpTarget && tmpTarget.attr("id")!=targetSetting.treeId) { + var tmpTargetNode = tmpTargetNodeId == null ? null: data.getNodeCache(targetSetting, tmpTargetNodeId), + isCopy = (event.ctrlKey && setting.edit.drag.isMove && setting.edit.drag.isCopy) || (!setting.edit.drag.isMove && setting.edit.drag.isCopy), + isPrev = !!(preNode && tmpTargetNodeId === preNode.tId), + isNext = !!(nextNode && tmpTargetNodeId === nextNode.tId), + isInner = (tmpNode.parentTId && tmpNode.parentTId == tmpTargetNodeId), + canPrev = (isCopy || !isNext) && tools.apply(targetSetting.edit.drag.prev, [targetSetting.treeId, nodes, tmpTargetNode], !!targetSetting.edit.drag.prev), + canNext = (isCopy || !isPrev) && tools.apply(targetSetting.edit.drag.next, [targetSetting.treeId, nodes, tmpTargetNode], !!targetSetting.edit.drag.next), + canInner = (isCopy || !isInner) && !(targetSetting.data.keep.leaf && !tmpTargetNode.isParent) && tools.apply(targetSetting.edit.drag.inner, [targetSetting.treeId, nodes, tmpTargetNode], !!targetSetting.edit.drag.inner); + if (!canPrev && !canNext && !canInner) { + tmpTarget = null; + tmpTargetNodeId = ""; + moveType = consts.move.TYPE_INNER; + tmpArrow.css({ + "display":"none" + }); + if (window.zTreeMoveTimer) { + clearTimeout(window.zTreeMoveTimer); + window.zTreeMoveTargetNodeTId = null + } + } else { + var tmpTargetA = $("#" + tmpTargetNodeId + consts.id.A, tmpTarget), + tmpNextA = tmpTargetNode.isLastNode ? null : $("#" + tmpTargetNode.getNextNode().tId + consts.id.A, tmpTarget.next()), + tmpTop = tmpTargetA.offset().top, + tmpLeft = tmpTargetA.offset().left, + prevPercent = canPrev ? (canInner ? 0.25 : (canNext ? 0.5 : 1) ) : -1, + nextPercent = canNext ? (canInner ? 0.75 : (canPrev ? 0.5 : 0) ) : -1, + dY_percent = (event.clientY + docScrollTop - tmpTop)/tmpTargetA.height(); + if ((prevPercent==1 ||dY_percent<=prevPercent && dY_percent>=-.2) && canPrev) { + dX = 1 - tmpArrow.width(); + dY = tmpTop - tmpArrow.height()/2; + moveType = consts.move.TYPE_PREV; + } else if ((nextPercent==0 || dY_percent>=nextPercent && dY_percent<=1.2) && canNext) { + dX = 1 - tmpArrow.width(); + dY = (tmpNextA == null || (tmpTargetNode.isParent && tmpTargetNode.open)) ? (tmpTop + tmpTargetA.height() - tmpArrow.height()/2) : (tmpNextA.offset().top - tmpArrow.height()/2); + moveType = consts.move.TYPE_NEXT; + }else { + dX = 5 - tmpArrow.width(); + dY = tmpTop; + moveType = consts.move.TYPE_INNER; + } + tmpArrow.css({ + "display":"block", + "top": dY + "px", + "left": (tmpLeft + dX) + "px" + }); + tmpTargetA.addClass(consts.node.TMPTARGET_NODE + "_" + moveType); + + if (preTmpTargetNodeId != tmpTargetNodeId || preTmpMoveType != moveType) { + startTime = (new Date()).getTime(); + } + if (tmpTargetNode && tmpTargetNode.isParent && moveType == consts.move.TYPE_INNER) { + var startTimer = true; + if (window.zTreeMoveTimer && window.zTreeMoveTargetNodeTId !== tmpTargetNode.tId) { + clearTimeout(window.zTreeMoveTimer); + window.zTreeMoveTargetNodeTId = null; + } else if (window.zTreeMoveTimer && window.zTreeMoveTargetNodeTId === tmpTargetNode.tId) { + startTimer = false; + } + if (startTimer) { + window.zTreeMoveTimer = setTimeout(function() { + if (moveType != consts.move.TYPE_INNER) return; + if (tmpTargetNode && tmpTargetNode.isParent && !tmpTargetNode.open && (new Date()).getTime() - startTime > targetSetting.edit.drag.autoOpenTime + && tools.apply(targetSetting.callback.beforeDragOpen, [targetSetting.treeId, tmpTargetNode], true)) { + view.switchNode(targetSetting, tmpTargetNode); + if (targetSetting.edit.drag.autoExpandTrigger) { + targetSetting.treeObj.trigger(consts.event.EXPAND, [targetSetting.treeId, tmpTargetNode]); + } + } + }, targetSetting.edit.drag.autoOpenTime+50); + window.zTreeMoveTargetNodeTId = tmpTargetNode.tId; + } + } + } + } else { + moveType = consts.move.TYPE_INNER; + if (tmpTarget && tools.apply(targetSetting.edit.drag.inner, [targetSetting.treeId, nodes, null], !!targetSetting.edit.drag.inner)) { + tmpTarget.addClass(consts.node.TMPTARGET_TREE); + } else { + tmpTarget = null; + } + tmpArrow.css({ + "display":"none" + }); + if (window.zTreeMoveTimer) { + clearTimeout(window.zTreeMoveTimer); + window.zTreeMoveTargetNodeTId = null; + } + } + preTmpTargetNodeId = tmpTargetNodeId; + preTmpMoveType = moveType; + } + return false; + } + + doc.bind("mouseup", _docMouseUp); + function _docMouseUp(event) { + if (window.zTreeMoveTimer) { + clearTimeout(window.zTreeMoveTimer); + window.zTreeMoveTargetNodeTId = null; + } + preTmpTargetNodeId = null; + preTmpMoveType = null; + doc.unbind("mousemove", _docMouseMove); + doc.unbind("mouseup", _docMouseUp); + doc.unbind("selectstart", _docSelect); + $("body").css("cursor", "auto"); + if (tmpTarget) { + tmpTarget.removeClass(consts.node.TMPTARGET_TREE); + if (tmpTargetNodeId) $("#" + tmpTargetNodeId + consts.id.A, tmpTarget).removeClass(consts.node.TMPTARGET_NODE + "_" + consts.move.TYPE_PREV) + .removeClass(consts.node.TMPTARGET_NODE + "_" + _consts.move.TYPE_NEXT).removeClass(consts.node.TMPTARGET_NODE + "_" + _consts.move.TYPE_INNER); + } + tools.showIfameMask(setting, false); + + root.showHoverDom = true; + if (root.dragFlag == 0) return; + root.dragFlag = 0; + + var i, l, tmpNode; + for (i=0, l=nodes.length; i0); + } + $("#" + newNodes[0].tId).focus().blur(); + + } + + if (moveType == consts.move.TYPE_INNER && tools.canAsync(targetSetting, dragTargetNode)) { + view.asyncNode(targetSetting, dragTargetNode, false, dropCallback); + } else { + dropCallback(); + } + + setting.treeObj.trigger(consts.event.DROP, [event, targetSetting.treeId, newNodes, dragTargetNode, moveType, isCopy]); + } else { + for (i=0, l=nodes.length; i0); + } + setting.treeObj.trigger(consts.event.DROP, [event, setting.treeId, nodes, null, null, null]); + } + } + + doc.bind("selectstart", _docSelect); + function _docSelect() { + return false; + } + + //Avoid FireFox's Bug + //If zTree Div CSS set 'overflow', so drag node outside of zTree, and event.target is error. + if(eventMouseDown.preventDefault) { + eventMouseDown.preventDefault(); + } + return true; + } + }, + //method of tools for zTree + _tools = { + getAbs: function (obj) { + var oRect = obj.getBoundingClientRect(); + return [oRect.left,oRect.top] + }, + inputFocus: function(inputObj) { + if (inputObj.get(0)) { + inputObj.focus(); + tools.setCursorPosition(inputObj.get(0), inputObj.val().length); + } + }, + inputSelect: function(inputObj) { + if (inputObj.get(0)) { + inputObj.focus(); + inputObj.select(); + } + }, + setCursorPosition: function(obj, pos){ + if(obj.setSelectionRange) { + obj.focus(); + obj.setSelectionRange(pos,pos); + } else if (obj.createTextRange) { + var range = obj.createTextRange(); + range.collapse(true); + range.moveEnd('character', pos); + range.moveStart('character', pos); + range.select(); + } + }, + showIfameMask: function(setting, showSign) { + var root = data.getRoot(setting); + //clear full mask + while (root.dragMaskList.length > 0) { + root.dragMaskList[0].remove(); + root.dragMaskList.shift(); + } + if (showSign) { + //show mask + var iframeList = $("iframe"); + for (var i = 0, l = iframeList.length; i < l; i++) { + var obj = iframeList.get(i), + r = tools.getAbs(obj), + dragMask = $("
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          "); + dragMask.appendTo("body"); + root.dragMaskList.push(dragMask); + } + } + } + }, + //method of operate ztree dom + _view = { + addEditBtn: function(setting, node) { + if (node.editNameFlag || $("#" + node.tId + consts.id.EDIT).length > 0) { + return; + } + if (!tools.apply(setting.edit.showRenameBtn, [setting.treeId, node], setting.edit.showRenameBtn)) { + return; + } + var aObj = $("#" + node.tId + consts.id.A), + editStr = ""; + aObj.append(editStr); + + $("#" + node.tId + consts.id.EDIT).bind('click', + function() { + if (!tools.uCanDo(setting) || tools.apply(setting.callback.beforeEditName, [setting.treeId, node], true) == false) return false; + view.editNode(setting, node); + return false; + } + ).show(); + }, + addRemoveBtn: function(setting, node) { + if (node.editNameFlag || $("#" + node.tId + consts.id.REMOVE).length > 0) { + return; + } + if (!tools.apply(setting.edit.showRemoveBtn, [setting.treeId, node], setting.edit.showRemoveBtn)) { + return; + } + var aObj = $("#" + node.tId + consts.id.A), + removeStr = ""; + aObj.append(removeStr); + + $("#" + node.tId + consts.id.REMOVE).bind('click', + function() { + if (!tools.uCanDo(setting) || tools.apply(setting.callback.beforeRemove, [setting.treeId, node], true) == false) return false; + view.removeNode(setting, node); + setting.treeObj.trigger(consts.event.REMOVE, [setting.treeId, node]); + return false; + } + ).bind('mousedown', + function(eventMouseDown) { + return true; + } + ).show(); + }, + addHoverDom: function(setting, node) { + if (data.getRoot(setting).showHoverDom) { + node.isHover = true; + if (setting.edit.enable) { + view.addEditBtn(setting, node); + view.addRemoveBtn(setting, node); + } + tools.apply(setting.view.addHoverDom, [setting.treeId, node]); + } + }, + cancelCurEditNode: function (setting, forceName) { + var root = data.getRoot(setting), + nameKey = setting.data.key.name, + node = root.curEditNode; + + if (node) { + var inputObj = root.curEditInput; + var newName = forceName ? forceName:inputObj.val(); + if (!forceName && tools.apply(setting.callback.beforeRename, [setting.treeId, node, newName], true) === false) { + node.editNameFlag = true; + return false; + } else { + node[nameKey] = newName ? newName:inputObj.val(); + if (!forceName) { + setting.treeObj.trigger(consts.event.RENAME, [setting.treeId, node]); + } + } + var aObj = $("#" + node.tId + consts.id.A); + aObj.removeClass(consts.node.CURSELECTED_EDIT); + inputObj.unbind(); + view.setNodeName(setting, node); + node.editNameFlag = false; + root.curEditNode = null; + root.curEditInput = null; + view.selectNode(setting, node, false); + } + root.noSelection = true; + return true; + }, + editNode: function(setting, node) { + var root = data.getRoot(setting); + view.editNodeBlur = false; + if (data.isSelectedNode(setting, node) && root.curEditNode == node && node.editNameFlag) { + setTimeout(function() {tools.inputFocus(root.curEditInput);}, 0); + return; + } + var nameKey = setting.data.key.name; + node.editNameFlag = true; + view.removeTreeDom(setting, node); + view.cancelCurEditNode(setting); + view.selectNode(setting, node, false); + $("#" + node.tId + consts.id.SPAN).html(""); + var inputObj = $("#" + node.tId + consts.id.INPUT); + inputObj.attr("value", node[nameKey]); + if (setting.edit.editNameSelectAll) { + tools.inputSelect(inputObj); + } else { + tools.inputFocus(inputObj); + } + + inputObj.bind('blur', function(event) { + if (!view.editNodeBlur) { + view.cancelCurEditNode(setting); + } + }).bind('keydown', function(event) { + if (event.keyCode=="13") { + view.editNodeBlur = true; + view.cancelCurEditNode(setting, null, true); + } else if (event.keyCode=="27") { + view.cancelCurEditNode(setting, node[nameKey]); + } + }).bind('click', function(event) { + return false; + }).bind('dblclick', function(event) { + return false; + }); + + $("#" + node.tId + consts.id.A).addClass(consts.node.CURSELECTED_EDIT); + root.curEditInput = inputObj; + root.noSelection = false; + root.curEditNode = node; + }, + moveNode: function(setting, targetNode, node, moveType, animateFlag, isSilent) { + var root = data.getRoot(setting), + childKey = setting.data.key.children; + if (targetNode == node) return; + if (setting.data.keep.leaf && targetNode && !targetNode.isParent && moveType == consts.move.TYPE_INNER) return; + var oldParentNode = (node.parentTId ? node.getParentNode(): root), + targetNodeIsRoot = (targetNode === null || targetNode == root); + if (targetNodeIsRoot && targetNode === null) targetNode = root; + if (targetNodeIsRoot) moveType = consts.move.TYPE_INNER; + var targetParentNode = (targetNode.parentTId ? targetNode.getParentNode() : root); + + if (moveType != consts.move.TYPE_PREV && moveType != consts.move.TYPE_NEXT) { + moveType = consts.move.TYPE_INNER; + } + + if (moveType == consts.move.TYPE_INNER) { + if (targetNodeIsRoot) { + //parentTId of root node is null + node.parentTId = null; + } else { + if (!targetNode.isParent) { + targetNode.isParent = true; + targetNode.open = !!targetNode.open; + view.setNodeLineIcos(setting, targetNode); + } + node.parentTId = targetNode.tId; + } + } + + //move node Dom + var targetObj, target_ulObj; + if (targetNodeIsRoot) { + targetObj = setting.treeObj; + target_ulObj = targetObj; + } else { + if (!isSilent && moveType == consts.move.TYPE_INNER) { + view.expandCollapseNode(setting, targetNode, true, false); + } else if (!isSilent) { + view.expandCollapseNode(setting, targetNode.getParentNode(), true, false); + } + targetObj = $("#" + targetNode.tId); + target_ulObj = $("#" + targetNode.tId + consts.id.UL); + if (!!targetObj.get(0) && !target_ulObj.get(0)) { + var ulstr = []; + view.makeUlHtml(setting, targetNode, ulstr, ''); + targetObj.append(ulstr.join('')); + } + target_ulObj = $("#" + targetNode.tId + consts.id.UL); + } + var nodeDom = $("#" + node.tId); + if (!nodeDom.get(0)) { + nodeDom = view.appendNodes(setting, node.level, [node], null, false, true).join(''); + } else if (!targetObj.get(0)) { + nodeDom.remove(); + } + if (target_ulObj.get(0) && moveType == consts.move.TYPE_INNER) { + target_ulObj.append(nodeDom); + } else if (targetObj.get(0) && moveType == consts.move.TYPE_PREV) { + targetObj.before(nodeDom); + } else if (targetObj.get(0) && moveType == consts.move.TYPE_NEXT) { + targetObj.after(nodeDom); + } + + //repair the data after move + var i,l, + tmpSrcIndex = -1, + tmpTargetIndex = 0, + oldNeighbor = null, + newNeighbor = null, + oldLevel = node.level; + if (node.isFirstNode) { + tmpSrcIndex = 0; + if (oldParentNode[childKey].length > 1 ) { + oldNeighbor = oldParentNode[childKey][1]; + oldNeighbor.isFirstNode = true; + } + } else if (node.isLastNode) { + tmpSrcIndex = oldParentNode[childKey].length -1; + oldNeighbor = oldParentNode[childKey][tmpSrcIndex - 1]; + oldNeighbor.isLastNode = true; + } else { + for (i = 0, l = oldParentNode[childKey].length; i < l; i++) { + if (oldParentNode[childKey][i].tId == node.tId) { + tmpSrcIndex = i; + break; + } + } + } + if (tmpSrcIndex >= 0) { + oldParentNode[childKey].splice(tmpSrcIndex, 1); + } + if (moveType != consts.move.TYPE_INNER) { + for (i = 0, l = targetParentNode[childKey].length; i < l; i++) { + if (targetParentNode[childKey][i].tId == targetNode.tId) tmpTargetIndex = i; + } + } + if (moveType == consts.move.TYPE_INNER) { + if (!targetNode[childKey]) targetNode[childKey] = new Array(); + if (targetNode[childKey].length > 0) { + newNeighbor = targetNode[childKey][targetNode[childKey].length - 1]; + newNeighbor.isLastNode = false; + } + targetNode[childKey].splice(targetNode[childKey].length, 0, node); + node.isLastNode = true; + node.isFirstNode = (targetNode[childKey].length == 1); + } else if (targetNode.isFirstNode && moveType == consts.move.TYPE_PREV) { + targetParentNode[childKey].splice(tmpTargetIndex, 0, node); + newNeighbor = targetNode; + newNeighbor.isFirstNode = false; + node.parentTId = targetNode.parentTId; + node.isFirstNode = true; + node.isLastNode = false; + + } else if (targetNode.isLastNode && moveType == consts.move.TYPE_NEXT) { + targetParentNode[childKey].splice(tmpTargetIndex + 1, 0, node); + newNeighbor = targetNode; + newNeighbor.isLastNode = false; + node.parentTId = targetNode.parentTId; + node.isFirstNode = false; + node.isLastNode = true; + + } else { + if (moveType == consts.move.TYPE_PREV) { + targetParentNode[childKey].splice(tmpTargetIndex, 0, node); + } else { + targetParentNode[childKey].splice(tmpTargetIndex + 1, 0, node); + } + node.parentTId = targetNode.parentTId; + node.isFirstNode = false; + node.isLastNode = false; + } + data.fixPIdKeyValue(setting, node); + data.setSonNodeLevel(setting, node.getParentNode(), node); + + //repair node what been moved + view.setNodeLineIcos(setting, node); + view.repairNodeLevelClass(setting, node, oldLevel) + + //repair node's old parentNode dom + if (!setting.data.keep.parent && oldParentNode[childKey].length < 1) { + //old parentNode has no child nodes + oldParentNode.isParent = false; + oldParentNode.open = false; + var tmp_ulObj = $("#" + oldParentNode.tId + consts.id.UL), + tmp_switchObj = $("#" + oldParentNode.tId + consts.id.SWITCH), + tmp_icoObj = $("#" + oldParentNode.tId + consts.id.ICON); + view.replaceSwitchClass(oldParentNode, tmp_switchObj, consts.folder.DOCU); + view.replaceIcoClass(oldParentNode, tmp_icoObj, consts.folder.DOCU); + tmp_ulObj.css("display", "none"); + + } else if (oldNeighbor) { + //old neigbor node + view.setNodeLineIcos(setting, oldNeighbor); + } + + //new neigbor node + if (newNeighbor) { + view.setNodeLineIcos(setting, newNeighbor); + } + + //repair checkbox / radio + if (!!setting.check && setting.check.enable && view.repairChkClass) { + view.repairChkClass(setting, oldParentNode); + view.repairParentChkClassWithSelf(setting, oldParentNode); + if (oldParentNode != node.parent) + view.repairParentChkClassWithSelf(setting, node); + } + + //expand parents after move + if (!isSilent) { + view.expandCollapseParentNode(setting, node.getParentNode(), true, animateFlag); + } + }, + removeEditBtn: function(node) { + $("#" + node.tId + consts.id.EDIT).unbind().remove(); + }, + removeRemoveBtn: function(node) { + $("#" + node.tId + consts.id.REMOVE).unbind().remove(); + }, + removeTreeDom: function(setting, node) { + node.isHover = false; + view.removeEditBtn(node); + view.removeRemoveBtn(node); + tools.apply(setting.view.removeHoverDom, [setting.treeId, node]); + }, + repairNodeLevelClass: function(setting, node, oldLevel) { + if (oldLevel === node.level) return; + var liObj = $("#" + node.tId), + aObj = $("#" + node.tId + consts.id.A), + ulObj = $("#" + node.tId + consts.id.UL), + oldClass = "level" + oldLevel, + newClass = "level" + node.level; + liObj.removeClass(oldClass); + liObj.addClass(newClass); + aObj.removeClass(oldClass); + aObj.addClass(newClass); + ulObj.removeClass(oldClass); + ulObj.addClass(newClass); + } + }, + + _z = { + tools: _tools, + view: _view, + event: _event, + data: _data + }; + $.extend(true, $.fn.zTree.consts, _consts); + $.extend(true, $.fn.zTree._z, _z); + + var zt = $.fn.zTree, + tools = zt._z.tools, + consts = zt.consts, + view = zt._z.view, + data = zt._z.data, + event = zt._z.event; + + data.exSetting(_setting); + data.addInitBind(_bindEvent); + data.addInitUnBind(_unbindEvent); + data.addInitCache(_initCache); + data.addInitNode(_initNode); + data.addInitProxy(_eventProxy); + data.addInitRoot(_initRoot); + data.addZTreeTools(_zTreeTools); + + var _cancelPreSelectedNode = view.cancelPreSelectedNode; + view.cancelPreSelectedNode = function (setting, node) { + var list = data.getRoot(setting).curSelectedList; + for (var i=0, j=list.length; i0){if(typeof c.open=="string")c.open=j.eqs(c.open,"true");c.open=!!c.open;c.isParent=!0;c.zAsync=!0}else{c.open=!1;if(typeof c.isParent=="string")c.isParent=j.eqs(c.isParent,"true");c.isParent=!!c.isParent;c.zAsync=!c.isParent}c.isFirstNode=f;c.isLastNode=h;c.getParentNode= +function(){return g.getNodeCache(b,c.parentTId)};c.getPreNode=function(){return g.getPreNode(b,c)};c.getNextNode=function(){return g.getNextNode(b,c)};c.isAjaxing=!1;g.fixPIdKeyValue(b,c)}}],x=[function(b){var a=b.target,c=g.getSetting(b.data.treeId),d="",f=null,h="",l="",i=null,n=null,q=null;if(j.eqs(b.type,"mousedown"))l="mousedown";else if(j.eqs(b.type,"mouseup"))l="mouseup";else if(j.eqs(b.type,"contextmenu"))l="contextmenu";else if(j.eqs(b.type,"click"))if(j.eqs(a.tagName,"span")&&a.getAttribute("treeNode"+ +e.id.SWITCH)!==null)d=(k(a).parent("li").get(0)||k(a).parentsUntil("li").parent().get(0)).id,h="switchNode";else{if(q=j.getMDom(c,a,[{tagName:"a",attrName:"treeNode"+e.id.A}]))d=(k(q).parent("li").get(0)||k(q).parentsUntil("li").parent().get(0)).id,h="clickNode"}else if(j.eqs(b.type,"dblclick")&&(l="dblclick",q=j.getMDom(c,a,[{tagName:"a",attrName:"treeNode"+e.id.A}])))d=(k(q).parent("li").get(0)||k(q).parentsUntil("li").parent().get(0)).id,h="switchNode";if(l.length>0&&d.length==0&&(q=j.getMDom(c, +a,[{tagName:"a",attrName:"treeNode"+e.id.A}])))d=(k(q).parent("li").get(0)||k(q).parentsUntil("li").parent().get(0)).id;if(d.length>0)switch(f=g.getNodeCache(c,d),h){case "switchNode":f.isParent?j.eqs(b.type,"click")||j.eqs(b.type,"dblclick")&&j.apply(c.view.dblClickExpand,[c.treeId,f],c.view.dblClickExpand)?i=E:h="":h="";break;case "clickNode":i=F}switch(l){case "mousedown":n=G;break;case "mouseup":n=H;break;case "dblclick":n=I;break;case "contextmenu":n=J}return{stop:!1,node:f,nodeEventType:h,nodeEventCallback:i, +treeEventType:l,treeEventCallback:n}}],y=[function(b){var a=g.getRoot(b);a||(a={},g.setRoot(b,a));a[b.data.key.children]=[];a.expandTriggerFlag=!1;a.curSelectedList=[];a.noSelection=!0;a.createdNodes=[];a.zId=0;a._ver=(new Date).getTime()}],z=[],A=[],B=[],C=[],D=[],g={addNodeCache:function(b,a){g.getCache(b).nodes[g.getNodeCacheId(a.tId)]=a},getNodeCacheId:function(b){return b.substring(b.lastIndexOf("_")+1)},addAfterA:function(b){A.push(b)},addBeforeA:function(b){z.push(b)},addInnerAfterA:function(b){C.push(b)}, +addInnerBeforeA:function(b){B.push(b)},addInitBind:function(b){t.push(b)},addInitUnBind:function(b){u.push(b)},addInitCache:function(b){v.push(b)},addInitNode:function(b){w.push(b)},addInitProxy:function(b){x.push(b)},addInitRoot:function(b){y.push(b)},addNodesData:function(b,a,c){var d=b.data.key.children;a[d]||(a[d]=[]);if(a[d].length>0)a[d][a[d].length-1].isLastNode=!1,i.setNodeLineIcos(b,a[d][a[d].length-1]);a.isParent=!0;a[d]=a[d].concat(c)},addSelectedNode:function(b,a){var c=g.getRoot(b);g.isSelectedNode(b, +a)||c.curSelectedList.push(a)},addCreatedNode:function(b,a){(b.callback.onNodeCreated||b.view.addDiyDom)&&g.getRoot(b).createdNodes.push(a)},addZTreeTools:function(b){D.push(b)},exSetting:function(b){k.extend(!0,L,b)},fixPIdKeyValue:function(b,a){b.data.simpleData.enable&&(a[b.data.simpleData.pIdKey]=a.parentTId?a.getParentNode()[b.data.simpleData.idKey]:b.data.simpleData.rootPId)},getAfterA:function(b,a,c){for(var d=0,f=A.length;d-1&&h.push(a[l]),h=h.concat(g.getNodesByParamFuzzy(b,a[l][f],c,d));return h},getNodesByFilter:function(b,a,c,d,f){if(!a)return d?null:[];for(var h=b.data.key.children,l=d?null: +[],e=0,i=a.length;e0)},clone:function(b){if(b===null)return null;var a=b.constructor===Array?[]:{},c;for(c in b)b.hasOwnProperty(c)&&(a[c]=typeof b[c]==="object"?arguments.callee(b[c]):b[c]);return a},eqs:function(b,a){return b.toLowerCase()===a.toLowerCase()},isArray:function(b){return Object.prototype.toString.apply(b)=== +"[object Array]"},getMDom:function(b,a,c){if(!a)return null;for(;a&&a.id!==b.treeId;){for(var d=0,f=c.length;a.tagName&&d0&&(m=i.appendNodes(b,a+1,o[j],o,f,h&&o.open));h&&(i.makeDOMNodeMainBefore(e,b,o),i.makeDOMNodeLine(e,b,o),g.getBeforeA(b,o,e),i.makeDOMNodeNameBefore(e,b,o),g.getInnerBeforeA(b,o,e),i.makeDOMNodeIcon(e,b,o),g.getInnerAfterA(b,o,e),i.makeDOMNodeNameAfter(e,b,o),g.getAfterA(b,o,e),o.isParent&&o.open&&i.makeUlHtml(b,o,e,m.join("")), +i.makeDOMNodeMainAfter(e,b,o),g.addCreatedNode(b,o))}return e},appendParentULDom:function(b,a){var c=[],d=k("#"+a.tId),f=k("#"+a.tId+e.id.UL),h=i.appendNodes(b,a.level+1,a[b.data.key.children],a,!1,!0);i.makeUlHtml(b,a,c,h.join(""));!d.get(0)&&a.parentTId&&(i.appendParentULDom(b,a.getParentNode()),d=k("#"+a.tId));f.get(0)&&f.remove();d.append(c.join(""))},asyncNode:function(b,a,c,d){var f,h;if(a&&!a.isParent)return j.apply(d),!1;else if(a&&a.isAjaxing)return!1;else if(j.apply(b.callback.beforeAsync, +[b.treeId,a],!0)==!1)return j.apply(d),!1;if(a)a.isAjaxing=!0,k("#"+a.tId+e.id.ICON).attr({style:"","class":"button ico_loading"});var l=b.async.contentType=="application/json",p=l?"{":"",n="";for(f=0,h=b.async.autoParam.length;a&&f1&&(o=m[1],m=m[0]);l?(n=typeof a[m]=="string"?'"':"",p+='"'+o+('":'+n+a[m]).replace(/'/g,"\\'")+n+","):p+=o+("="+a[m]).replace(/&/g,"%26")+"&"}if(j.isArray(b.async.otherParam))for(f=0,h=b.async.otherParam.length;f< +h;f+=2)l?(n=typeof b.async.otherParam[f+1]=="string"?'"':"",p+='"'+b.async.otherParam[f]+('":'+n+b.async.otherParam[f+1]).replace(/'/g,"\\'")+n+","):p+=b.async.otherParam[f]+("="+b.async.otherParam[f+1]).replace(/&/g,"%26")+"&";else for(var r in b.async.otherParam)l?(n=typeof b.async.otherParam[r]=="string"?'"':"",p+='"'+r+('":'+n+b.async.otherParam[r]).replace(/'/g,"\\'")+n+","):p+=r+("="+b.async.otherParam[r]).replace(/&/g,"%26")+"&";p.length>1&&(p=p.substring(0,p.length-1));l&&(p+="}");var s=g.getRoot(b)._ver; +k.ajax({contentType:b.async.contentType,type:b.async.type,url:j.apply(b.async.url,[b.treeId,a],b.async.url),data:p,dataType:b.async.dataType,success:function(f){if(s==g.getRoot(b)._ver){var h=[];try{h=!f||f.length==0?[]:typeof f=="string"?eval("("+f+")"):f}catch(l){h=f}if(a)a.isAjaxing=null,a.zAsync=!0;i.setNodeLineIcos(b,a);h&&h!==""?(h=j.apply(b.async.dataFilter,[b.treeId,a,h],h),i.addNodes(b,a,h?j.clone(h):[],!!c)):i.addNodes(b,a,[],!!c);b.treeObj.trigger(e.event.ASYNC_SUCCESS,[b.treeId,a,f]); +j.apply(d)}},error:function(c,d,f){if(s==g.getRoot(b)._ver){if(a)a.isAjaxing=null;i.setNodeLineIcos(b,a);b.treeObj.trigger(e.event.ASYNC_ERROR,[b.treeId,a,c,d,f])}}});return!0},cancelPreSelectedNode:function(b,a){for(var c=g.getRoot(b).curSelectedList,d=c.length-1;d>=0;d--)if(!a||a===c[d])if(k("#"+c[d].tId+e.id.A).removeClass(e.node.CURSELECTED),a){g.removeSelectedNode(b,a);break}if(!a)g.getRoot(b).curSelectedList=[]},createNodeCallback:function(b){if(b.callback.onNodeCreated||b.view.addDiyDom)for(var a= +g.getRoot(b);a.createdNodes.length>0;){var c=a.createdNodes.shift();j.apply(b.view.addDiyDom,[b.treeId,c]);b.callback.onNodeCreated&&b.treeObj.trigger(e.event.NODECREATED,[b.treeId,c])}},createNodes:function(b,a,c,d){if(c&&c.length!=0){var f=g.getRoot(b),h=b.data.key.children,h=!d||d.open||!!k("#"+d[h][0].tId).get(0);f.createdNodes=[];a=i.appendNodes(b,a,c,d,!0,h);d?(d=k("#"+d.tId+e.id.UL),d.get(0)&&d.append(a.join(""))):b.treeObj.append(a.join(""));i.createNodeCallback(b)}},destroy:function(b){b&& +(g.initCache(b),g.initRoot(b),m.unbindTree(b),m.unbindEvent(b),b.treeObj.empty())},expandCollapseNode:function(b,a,c,d,f){var h=g.getRoot(b),l=b.data.key.children;if(a){if(h.expandTriggerFlag){var p=f,f=function(){p&&p();a.open?b.treeObj.trigger(e.event.EXPAND,[b.treeId,a]):b.treeObj.trigger(e.event.COLLAPSE,[b.treeId,a])};h.expandTriggerFlag=!1}if(!a.open&&a.isParent&&(!k("#"+a.tId+e.id.UL).get(0)||a[l]&&a[l].length>0&&!k("#"+a[l][0].tId).get(0)))i.appendParentULDom(b,a),i.createNodeCallback(b); +if(a.open==c)j.apply(f,[]);else{var c=k("#"+a.tId+e.id.UL),h=k("#"+a.tId+e.id.SWITCH),n=k("#"+a.tId+e.id.ICON);a.isParent?(a.open=!a.open,a.iconOpen&&a.iconClose&&n.attr("style",i.makeNodeIcoStyle(b,a)),a.open?(i.replaceSwitchClass(a,h,e.folder.OPEN),i.replaceIcoClass(a,n,e.folder.OPEN),d==!1||b.view.expandSpeed==""?(c.show(),j.apply(f,[])):a[l]&&a[l].length>0?c.slideDown(b.view.expandSpeed,f):(c.show(),j.apply(f,[]))):(i.replaceSwitchClass(a,h,e.folder.CLOSE),i.replaceIcoClass(a,n,e.folder.CLOSE), +d==!1||b.view.expandSpeed==""||!(a[l]&&a[l].length>0)?(c.hide(),j.apply(f,[])):c.slideUp(b.view.expandSpeed,f))):j.apply(f,[])}}else j.apply(f,[])},expandCollapseParentNode:function(b,a,c,d,f){a&&(a.parentTId?(i.expandCollapseNode(b,a,c,d),a.parentTId&&i.expandCollapseParentNode(b,a.getParentNode(),c,d,f)):i.expandCollapseNode(b,a,c,d,f))},expandCollapseSonNode:function(b,a,c,d,f){var h=g.getRoot(b),e=b.data.key.children,h=a?a[e]:h[e],e=a?!1:d,j=g.getRoot(b).expandTriggerFlag;g.getRoot(b).expandTriggerFlag= +!1;if(h)for(var k=0,m=h.length;k/g,">");b.push("",d,"")},makeDOMNodeLine:function(b, +a,c){b.push("")},makeDOMNodeMainAfter:function(b){b.push("
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • ")},makeDOMNodeMainBefore:function(b,a,c){b.push("
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • ")},makeDOMNodeNameAfter:function(b){b.push("")},makeDOMNodeNameBefore:function(b,a,c){var d=g.getNodeTitle(a,c),f=i.makeNodeUrl(a,c),h=i.makeNodeFontCss(a,c),l=[],k;for(k in h)l.push(k,":",h[k], +";");b.push("0?"href='"+f+"'":""," target='",i.makeNodeTarget(c),"' style='",l.join(""),"'");j.apply(a.view.showTitle,[a.treeId,c],a.view.showTitle)&&d&&b.push("title='",d.replace(/'/g,"'").replace(//g,">"),"'");b.push(">")},makeNodeFontCss:function(b,a){var c=j.apply(b.view.fontCss,[b.treeId,a],b.view.fontCss);return c&&typeof c!="function"?c:{}},makeNodeIcoClass:function(b, +a){var c=["ico"];a.isAjaxing||(c[0]=(a.iconSkin?a.iconSkin+"_":"")+c[0],a.isParent?c.push(a.open?e.folder.OPEN:e.folder.CLOSE):c.push(e.folder.DOCU));return"button "+c.join("_")},makeNodeIcoStyle:function(b,a){var c=[];if(!a.isAjaxing){var d=a.isParent&&a.iconOpen&&a.iconClose?a.open?a.iconOpen:a.iconClose:a.icon;d&&c.push("background:url(",d,") 0 0 no-repeat;");(b.view.showIcon==!1||!j.apply(b.view.showIcon,[b.treeId,a],!0))&&c.push("width:0px;height:0px;")}return c.join("")},makeNodeLineClass:function(b, +a){var c=[];b.view.showLine?a.level==0&&a.isFirstNode&&a.isLastNode?c.push(e.line.ROOT):a.level==0&&a.isFirstNode?c.push(e.line.ROOTS):a.isLastNode?c.push(e.line.BOTTOM):c.push(e.line.CENTER):c.push(e.line.NOLINE);a.isParent?c.push(a.open?e.folder.OPEN:e.folder.CLOSE):c.push(e.folder.DOCU);return i.makeNodeLineClassEx(a)+c.join("_")},makeNodeLineClassEx:function(b){return"button level"+b.level+" switch "},makeNodeTarget:function(b){return b.target||"_blank"},makeNodeUrl:function(b,a){var c=b.data.key.url; +return a[c]?a[c]:null},makeUlHtml:function(b,a,c,d){c.push("
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ");c.push(d);c.push("
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ")},makeUlLineClass:function(b,a){return b.view.showLine&&!a.isLastNode?e.line.LINE:""},removeChildNodes:function(b,a){if(a){var c=b.data.key.children,d=a[c];if(d){for(var f=0,h=d.length;f0)a[c][0].isFirstNode=!0},setLastNode:function(b,a){var c=b.data.key.children,d=a[c].length;if(d>0)a[c][d-1].isLastNode=!0},removeNode:function(b,a){var c=g.getRoot(b),d=b.data.key.children,f=a.parentTId?a.getParentNode():c;a.isFirstNode=!1;a.isLastNode= +!1;a.getPreNode=function(){return null};a.getNextNode=function(){return null};if(g.getNodeCache(b,a.tId)){k("#"+a.tId).remove();g.removeNodeCache(b,a);g.removeSelectedNode(b,a);for(var h=0,l=f[d].length;h0){var n=f[d][h-1],h=k("#"+n.tId+e.id.UL),l=k("#"+n.tId+e.id.SWITCH);j=k("#"+n.tId+e.id.ICON);f==c?f[d].length==1?i.replaceSwitchClass(n,l,e.line.ROOT):(c=k("#"+f[d][0].tId+e.id.SWITCH),i.replaceSwitchClass(f[d][0],c,e.line.ROOTS),i.replaceSwitchClass(n,l,e.line.BOTTOM)):i.replaceSwitchClass(n,l,e.line.BOTTOM);h.removeClass(e.line.LINE)}}},replaceIcoClass:function(b,a,c){if(a&&!b.isAjaxing&&(b=a.attr("class"),b!=void 0)){b=b.split("_"); +switch(c){case e.folder.OPEN:case e.folder.CLOSE:case e.folder.DOCU:b[b.length-1]=c}a.attr("class",b.join("_"))}},replaceSwitchClass:function(b,a,c){if(a){var d=a.attr("class");if(d!=void 0){d=d.split("_");switch(c){case e.line.ROOT:case e.line.ROOTS:case e.line.CENTER:case e.line.BOTTOM:case e.line.NOLINE:d[0]=i.makeNodeLineClassEx(b)+c;break;case e.folder.OPEN:case e.folder.CLOSE:case e.folder.DOCU:d[1]=c}a.attr("class",d.join("_"));c!==e.folder.DOCU?a.removeAttr("disabled"):a.attr("disabled","disabled")}}}, +selectNode:function(b,a,c){c||i.cancelPreSelectedNode(b);k("#"+a.tId+e.id.A).addClass(e.node.CURSELECTED);g.addSelectedNode(b,a)},setNodeFontCss:function(b,a){var c=k("#"+a.tId+e.id.A),d=i.makeNodeFontCss(b,a);d&&c.css(d)},setNodeLineIcos:function(b,a){if(a){var c=k("#"+a.tId+e.id.SWITCH),d=k("#"+a.tId+e.id.UL),f=k("#"+a.tId+e.id.ICON),h=i.makeUlLineClass(b,a);h.length==0?d.removeClass(e.line.LINE):d.addClass(h);c.attr("class",i.makeNodeLineClass(b,a));a.isParent?c.removeAttr("disabled"):c.attr("disabled", +"disabled");f.removeAttr("style");f.attr("style",i.makeNodeIcoStyle(b,a));f.attr("class",i.makeNodeIcoClass(b,a))}},setNodeName:function(b,a){var c=g.getNodeTitle(b,a),d=k("#"+a.tId+e.id.SPAN);d.empty();b.view.nameIsHTML?d.html(g.getNodeName(b,a)):d.text(g.getNodeName(b,a));j.apply(b.view.showTitle,[b.treeId,a],b.view.showTitle)&&k("#"+a.tId+e.id.A).attr("title",!c?"":c)},setNodeTarget:function(b){k("#"+b.tId+e.id.A).attr("target",i.makeNodeTarget(b))},setNodeUrl:function(b,a){var c=k("#"+a.tId+e.id.A), +d=i.makeNodeUrl(b,a);d==null||d.length==0?c.removeAttr("href"):c.attr("href",d)},switchNode:function(b,a){a.open||!j.canAsync(b,a)?i.expandCollapseNode(b,a,!a.open):b.async.enable?i.asyncNode(b,a)||i.expandCollapseNode(b,a,!a.open):a&&i.expandCollapseNode(b,a,!a.open)}};k.fn.zTree={consts:{event:{NODECREATED:"ztree_nodeCreated",CLICK:"ztree_click",EXPAND:"ztree_expand",COLLAPSE:"ztree_collapse",ASYNC_SUCCESS:"ztree_async_success",ASYNC_ERROR:"ztree_async_error"},id:{A:"_a",ICON:"_ico",SPAN:"_span", +SWITCH:"_switch",UL:"_ul"},line:{ROOT:"root",ROOTS:"roots",CENTER:"center",BOTTOM:"bottom",NOLINE:"noline",LINE:"line"},folder:{OPEN:"open",CLOSE:"close",DOCU:"docu"},node:{CURSELECTED:"curSelectedNode"}},_z:{tools:j,view:i,event:m,data:g},getZTreeObj:function(b){return(b=g.getZTreeTools(b))?b:null},destroy:function(b){if(b&&b.length>0)i.destroy(g.getSetting(b));else for(var a in r)i.destroy(r[a])},init:function(b,a,c){var d=j.clone(L);k.extend(!0,d,a);d.treeId=b.attr("id");d.treeObj=b;d.treeObj.empty(); +r[d.treeId]=d;if(k.browser.msie&&parseInt(k.browser.version)<7)d.view.expandSpeed="";g.initRoot(d);b=g.getRoot(d);a=d.data.key.children;c=c?j.clone(j.isArray(c)?c:[c]):[];b[a]=d.data.simpleData.enable?g.transformTozTreeFormat(d,c):c;g.initCache(d);m.unbindTree(d);m.bindTree(d);m.unbindEvent(d);m.bindEvent(d);c={setting:d,addNodes:function(a,b,c){function e(){i.addNodes(d,a,g,c==!0)}if(!b)return null;a||(a=null);if(a&&!a.isParent&&d.data.keep.leaf)return null;var g=j.clone(j.isArray(b)?b:[b]);j.canAsync(d, +a)?i.asyncNode(d,a,c,e):e();return g},cancelSelectedNode:function(a){i.cancelPreSelectedNode(this.setting,a)},destroy:function(){i.destroy(this.setting)},expandAll:function(a){a=!!a;i.expandCollapseSonNode(this.setting,null,a,!0);return a},expandNode:function(a,b,c,e,m){if(!a||!a.isParent)return null;b!==!0&&b!==!1&&(b=!a.open);if((m=!!m)&&b&&j.apply(d.callback.beforeExpand,[d.treeId,a],!0)==!1)return null;else if(m&&!b&&j.apply(d.callback.beforeCollapse,[d.treeId,a],!0)==!1)return null;b&&a.parentTId&& +i.expandCollapseParentNode(this.setting,a.getParentNode(),b,!1);if(b===a.open&&!c)return null;g.getRoot(d).expandTriggerFlag=m;if(c)i.expandCollapseSonNode(this.setting,a,b,!0,function(){if(e!==!1)try{k("#"+a.tId).focus().blur()}catch(b){}});else if(a.open=!b,i.switchNode(this.setting,a),e!==!1)try{k("#"+a.tId).focus().blur()}catch(q){}return b},getNodes:function(){return g.getNodes(this.setting)},getNodeByParam:function(a,b,c){return!a?null:g.getNodeByParam(this.setting,c?c[this.setting.data.key.children]: +g.getNodes(this.setting),a,b)},getNodeByTId:function(a){return g.getNodeCache(this.setting,a)},getNodesByParam:function(a,b,c){return!a?null:g.getNodesByParam(this.setting,c?c[this.setting.data.key.children]:g.getNodes(this.setting),a,b)},getNodesByParamFuzzy:function(a,b,c){return!a?null:g.getNodesByParamFuzzy(this.setting,c?c[this.setting.data.key.children]:g.getNodes(this.setting),a,b)},getNodesByFilter:function(a,b,c,d){b=!!b;return!a||typeof a!="function"?b?null:[]:g.getNodesByFilter(this.setting, +c?c[this.setting.data.key.children]:g.getNodes(this.setting),a,b,d)},getNodeIndex:function(a){if(!a)return null;for(var b=d.data.key.children,c=a.parentTId?a.getParentNode():g.getRoot(this.setting),e=0,i=c[b].length;e0?i.createNodes(d,0,b[a]):d.async.enable&&d.async.url&&d.async.url!==""&&i.asyncNode(d);return c}};var M=k.fn.zTree,e=M.consts})(jQuery); + +/* + * JQuery zTree excheck 3.5 + * http://zTree.me/ + * + * Copyright (c) 2010 Hunter.z + * + * Licensed same as jquery - MIT License + * http://www.opensource.org/licenses/mit-license.php + * + * email: hunter.z@263.net + * Date: 2012-11-20 + */ +(function(m){var p,q,r,n={event:{CHECK:"ztree_check"},id:{CHECK:"_check"},checkbox:{STYLE:"checkbox",DEFAULT:"chk",DISABLED:"disable",FALSE:"false",TRUE:"true",FULL:"full",PART:"part",FOCUS:"focus"},radio:{STYLE:"radio",TYPE_ALL:"all",TYPE_LEVEL:"level"}},v={check:{enable:!1,autoCheckTrigger:!1,chkStyle:n.checkbox.STYLE,nocheckInherit:!1,radioType:n.radio.TYPE_LEVEL,chkboxType:{Y:"ps",N:"ps"}},data:{key:{checked:"checked"}},callback:{beforeCheck:null,onCheck:null}};p=function(c,a){if(a.chkDisabled=== +!0)return!1;var b=f.getSetting(c.data.treeId),d=b.data.key.checked;if(k.apply(b.callback.beforeCheck,[b.treeId,a],!0)==!1)return!0;a[d]=!a[d];e.checkNodeRelation(b,a);d=m("#"+a.tId+j.id.CHECK);e.setChkClass(b,d,a);e.repairParentChkClassWithSelf(b,a);b.treeObj.trigger(j.event.CHECK,[c,b.treeId,a]);return!0};q=function(c,a){if(a.chkDisabled===!0)return!1;var b=f.getSetting(c.data.treeId),d=m("#"+a.tId+j.id.CHECK);a.check_Focus=!0;e.setChkClass(b,d,a);return!0};r=function(c,a){if(a.chkDisabled===!0)return!1; +var b=f.getSetting(c.data.treeId),d=m("#"+a.tId+j.id.CHECK);a.check_Focus=!1;e.setChkClass(b,d,a);return!0};m.extend(!0,m.fn.zTree.consts,n);m.extend(!0,m.fn.zTree._z,{tools:{},view:{checkNodeRelation:function(c,a){var b,d,g,l=c.data.key.children,h=c.data.key.checked;b=j.radio;if(c.check.chkStyle==b.STYLE){var i=f.getRadioCheckedList(c);if(a[h])if(c.check.radioType==b.TYPE_ALL){for(d=i.length-1;d>=0;d--)b=i[d],b[h]=!1,i.splice(d,1),e.setChkClass(c,m("#"+b.tId+j.id.CHECK),b),b.parentTId!=a.parentTId&& +e.repairParentChkClassWithSelf(c,b);i.push(a)}else{i=a.parentTId?a.getParentNode():f.getRoot(c);for(d=0,g=i[l].length;d-1)&&e.setSonNodeCheckBox(c,a,!0),!a[h]&&(!a[l]||a[l].length==0||c.check.chkboxType.N.indexOf("s")>-1)&&e.setSonNodeCheckBox(c,a,!1), +a[h]&&c.check.chkboxType.Y.indexOf("p")>-1&&e.setParentNodeCheckBox(c,a,!0),!a[h]&&c.check.chkboxType.N.indexOf("p")>-1&&e.setParentNodeCheckBox(c,a,!1)},makeChkClass:function(c,a){var b=c.data.key.checked,d=j.checkbox,g=j.radio,e="",e=a.chkDisabled===!0?d.DISABLED:a.halfCheck?d.PART:c.check.chkStyle==g.STYLE?a.check_Child_State<1?d.FULL:d.PART:a[b]?a.check_Child_State===2||a.check_Child_State===-1?d.FULL:d.PART:a.check_Child_State<1?d.FULL:d.PART,b=c.check.chkStyle+"_"+(a[b]?d.TRUE:d.FALSE)+"_"+ +e,b=a.check_Focus&&a.chkDisabled!==!0?b+"_"+d.FOCUS:b;return"button "+d.DEFAULT+" "+b},repairAllChk:function(c,a){if(c.check.enable&&c.check.chkStyle===j.checkbox.STYLE)for(var b=c.data.key.checked,d=c.data.key.children,g=f.getRoot(c),l=0,h=g[d].length;l0?e.repairParentChkClass(c,a[b][0]):e.repairParentChkClass(c,a)}},repairSonChkDisabled:function(c,a,b){if(a){var d=c.data.key.children;if(a.chkDisabled!=b)a.chkDisabled=b,a.nocheck!==!0&&e.repairChkClass(c,a);if(a[d])for(var g=0,l=a[d].length;g0){h=!1;break}h&&e.setParentNodeCheckBox(c,a.getParentNode(),b,d)}},setSonNodeCheckBox:function(c,a,b,d){if(a){var g=c.data.key.children,l=c.data.key.checked,h=m("#"+a.tId+j.id.CHECK);d||(d=a);var i=!1;if(a[g])for(var o=0,k=a[g].length;o0?b?2:0:-1}else a.check_Child_State=-1;e.setChkClass(c,h,a);c.check.autoCheckTrigger&&a!=d&&a.nocheck!==!0&&c.treeObj.trigger(j.event.CHECK,[c.treeId,a])}}}},event:{},data:{getRadioCheckedList:function(c){for(var a=f.getRoot(c).radioCheckedList,b=0,d=a.length;b-1&&a.check_Child_State<2:a.check_Child_State>0}},getTreeCheckedNodes:function(c,a,b,d){if(!a)return[];for(var g=c.data.key.children,e=c.data.key.checked,h=b&&c.check.chkStyle==j.radio.STYLE&&c.check.radioType==j.radio.TYPE_ALL,d=!d?[]:d,i=0,o=a.length;i0)break}return d},getTreeChangeCheckedNodes:function(c,a,b){if(!a)return[];for(var d=c.data.key.children,g=c.data.key.checked,b=!b?[]:b,e=0,h=a.length;e0?2:0,k==2){g=2;break}else k==0&&(g=0);else if(c.check.chkStyle==j.checkbox.STYLE){k=f.nocheck===!0?f.check_Child_State:f.halfCheck===!0?1:f.nocheck!==!0&&f[d]?f.check_Child_State===-1||f.check_Child_State===2?2:1:f.check_Child_State>0?1:0;if(k===1){g=1;break}else if(k===2&&e&&k!==g){g=1;break}else if(g===2&&k>-1&&k<2){g=1;break}else k>-1&&(g=k);e||(e=f.nocheck!==!0)}}a.check_Child_State=g}}}});var n=m.fn.zTree,k=n._z.tools, +j=n.consts,e=n._z.view,f=n._z.data;f.exSetting(v);f.addInitBind(function(c){c.treeObj.bind(j.event.CHECK,function(a,b,d,e){k.apply(c.callback.onCheck,[b?b:a,d,e])})});f.addInitUnBind(function(c){c.treeObj.unbind(j.event.CHECK)});f.addInitCache(function(){});f.addInitNode(function(c,a,b,d){if(b){a=c.data.key.checked;typeof b[a]=="string"&&(b[a]=k.eqs(b[a],"true"));b[a]=!!b[a];b.checkedOld=b[a];if(typeof b.nocheck=="string")b.nocheck=k.eqs(b.nocheck,"true");b.nocheck=!!b.nocheck||c.check.nocheckInherit&& +d&&!!d.nocheck;if(typeof b.chkDisabled=="string")b.chkDisabled=k.eqs(b.chkDisabled,"true");b.chkDisabled=!!b.chkDisabled||d&&!!d.chkDisabled;if(typeof b.halfCheck=="string")b.halfCheck=k.eqs(b.halfCheck,"true");b.halfCheck=!!b.halfCheck;b.check_Child_State=-1;b.check_Focus=!1;b.getCheckStatus=function(){return f.getCheckStatus(c,b)}}});f.addInitProxy(function(c){var a=c.target,b=f.getSetting(c.data.treeId),d="",e=null,l="",h=null;if(k.eqs(c.type,"mouseover")){if(b.check.enable&&k.eqs(a.tagName,"span")&& +a.getAttribute("treeNode"+j.id.CHECK)!==null)d=a.parentNode.id,l="mouseoverCheck"}else if(k.eqs(c.type,"mouseout")){if(b.check.enable&&k.eqs(a.tagName,"span")&&a.getAttribute("treeNode"+j.id.CHECK)!==null)d=a.parentNode.id,l="mouseoutCheck"}else if(k.eqs(c.type,"click")&&b.check.enable&&k.eqs(a.tagName,"span")&&a.getAttribute("treeNode"+j.id.CHECK)!==null)d=a.parentNode.id,l="checkNode";if(d.length>0)switch(e=f.getNodeCache(b,d),l){case "checkNode":h=p;break;case "mouseoverCheck":h=q;break;case "mouseoutCheck":h= +r}return{stop:!1,node:e,nodeEventType:l,nodeEventCallback:h,treeEventType:"",treeEventCallback:null}});f.addInitRoot(function(c){f.getRoot(c).radioCheckedList=[]});f.addBeforeA(function(c,a,b){var d=c.data.key.checked;c.check.enable&&(f.makeChkFlag(c,a),c.check.chkStyle==j.radio.STYLE&&c.check.radioType==j.radio.TYPE_ALL&&a[d]&&f.getRoot(c).radioCheckedList.push(a),b.push(""))});f.addZTreeTools(function(c,a){a.checkNode=function(a,b,f,h){var i=this.setting.data.key.checked;if(a.chkDisabled!==!0&&(b!==!0&&b!==!1&&(b=!a[i]),h=!!h,(a[i]!==b||f)&&!(h&&k.apply(this.setting.callback.beforeCheck,[this.setting.treeId,a],!0)==!1)&&k.uCanDo(this.setting)&&this.setting.check.enable&&a.nocheck!==!0))a[i]=b,b=m("#"+a.tId+j.id.CHECK),(f||this.setting.check.chkStyle===j.radio.STYLE)&&e.checkNodeRelation(this.setting,a),e.setChkClass(this.setting,b,a),e.repairParentChkClassWithSelf(this.setting, +a),h&&c.treeObj.trigger(j.event.CHECK,[null,c.treeId,a])};a.checkAllNodes=function(a){e.repairAllChk(this.setting,!!a)};a.getCheckedNodes=function(a){var b=this.setting.data.key.children;return f.getTreeCheckedNodes(this.setting,f.getRoot(c)[b],a!==!1)};a.getChangeCheckedNodes=function(){var a=this.setting.data.key.children;return f.getTreeChangeCheckedNodes(this.setting,f.getRoot(c)[a])};a.setChkDisabled=function(a,b){b=!!b;e.repairSonChkDisabled(this.setting,a,b);b||e.repairParentChkDisabled(this.setting, +a,b)};var b=a.updateNode;a.updateNode=function(c,f){b&&b.apply(a,arguments);if(c&&this.setting.check.enable&&m("#"+c.tId).get(0)&&k.uCanDo(this.setting)){var l=m("#"+c.tId+j.id.CHECK);(f==!0||this.setting.check.chkStyle===j.radio.STYLE)&&e.checkNodeRelation(this.setting,c);e.setChkClass(this.setting,l,c);e.repairParentChkClassWithSelf(this.setting,c)}}});var s=e.createNodes;e.createNodes=function(c,a,b,d){s&&s.apply(e,arguments);b&&e.repairParentChkClassWithSelf(c,d)};var t=e.removeNode;e.removeNode= +function(c,a){var b=a.getParentNode();t&&t.apply(e,arguments);a&&b&&(e.repairChkClass(c,b),e.repairParentChkClass(c,b))};var u=e.appendNodes;e.appendNodes=function(c,a,b,d,g,j){var h="";u&&(h=u.apply(e,arguments));d&&f.makeChkFlag(c,d);return h}})(jQuery); + +/* + * JQuery zTree exedit 3.5 + * http://zTree.me/ + * + * Copyright (c) 2010 Hunter.z + * + * Licensed same as jquery - MIT License + * http://www.opensource.org/licenses/mit-license.php + * + * email: hunter.z@263.net + * Date: 2012-11-20 + */ +(function(k){var F={event:{DRAG:"ztree_drag",DROP:"ztree_drop",REMOVE:"ztree_remove",RENAME:"ztree_rename"},id:{EDIT:"_edit",INPUT:"_input",REMOVE:"_remove"},move:{TYPE_INNER:"inner",TYPE_PREV:"prev",TYPE_NEXT:"next"},node:{CURSELECTED_EDIT:"curSelectedNode_Edit",TMPTARGET_TREE:"tmpTargetzTree",TMPTARGET_NODE:"tmpTargetNode"}},D={onHoverOverNode:function(b,a){var c=p.getSetting(b.data.treeId),d=p.getRoot(c);if(d.curHoverNode!=a)D.onHoverOutNode(b);d.curHoverNode=a;f.addHoverDom(c,a)},onHoverOutNode:function(b){var b= +p.getSetting(b.data.treeId),a=p.getRoot(b);if(a.curHoverNode&&!p.isSelectedNode(b,a.curHoverNode))f.removeTreeDom(b,a.curHoverNode),a.curHoverNode=null},onMousedownNode:function(b,a){function c(b){if(z.dragFlag==0&&Math.abs(K-b.clientX)1){var s=m[0].parentTId?m[0].getParentNode()[l]:p.getNodes(g);l=[];for(a=0,c=s.length;a-1&&j+1!==a&&(e=!1),l.push(s[a]),j=a),m.length===l.length){m=l;break}}e&&(D=m[0].getPreNode(),E=m[m.length-1].getNextNode()); +y=k("
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ");for(a=0,c=m.length;a0),f.removeTreeDom(g,e),j=k("
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • "),j.append(k("#"+e.tId+d.id.A).clone()),j.css("padding","0"),j.children("#"+e.tId+d.id.A).removeClass(d.node.CURSELECTED),y.append(j),a==g.edit.drag.maxShowNodeNum-1){j=k("
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • ...
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • ");y.append(j);break}y.attr("id",m[0].tId+d.id.UL+"_tmp");y.addClass(g.treeObj.attr("class"));y.appendTo("body");t= +k("");t.attr("id","zTreeMove_arrow_tmp");t.appendTo("body");g.treeObj.trigger(d.event.DRAG,[b,g.treeId,m])}if(z.dragFlag==1){r&&t.attr("id")==b.target.id&&u&&b.clientX+x.scrollLeft()+2>k("#"+u+d.id.A,r).offset().left?(e=k("#"+u+d.id.A,r),b.target=e.length>0?e.get(0):b.target):r&&(r.removeClass(d.node.TMPTARGET_TREE),u&&k("#"+u+d.id.A,r).removeClass(d.node.TMPTARGET_NODE+"_"+d.move.TYPE_PREV).removeClass(d.node.TMPTARGET_NODE+"_"+F.move.TYPE_NEXT).removeClass(d.node.TMPTARGET_NODE+ +"_"+F.move.TYPE_INNER));u=r=null;G=!1;i=g;e=p.getSettings();for(var B in e)if(e[B].treeId&&e[B].edit.enable&&e[B].treeId!=g.treeId&&(b.target.id==e[B].treeId||k(b.target).parents("#"+e[B].treeId).length>0))G=!0,i=e[B];B=x.scrollTop();j=x.scrollLeft();l=i.treeObj.offset();a=i.treeObj.get(0).scrollHeight;e=i.treeObj.get(0).scrollWidth;c=b.clientY+B-l.top;var o=i.treeObj.height()+l.top-b.clientY-B,n=b.clientX+j-l.left,H=i.treeObj.width()+l.left-b.clientX-j;l=cg.edit.drag.borderMin; +var s=og.edit.drag.borderMin,I=ng.edit.drag.borderMin,C=Hg.edit.drag.borderMin,o=c>g.edit.drag.borderMin&&o>g.edit.drag.borderMin&&n>g.edit.drag.borderMin&&H>g.edit.drag.borderMin,n=l&&i.treeObj.scrollTop()<=0,H=s&&i.treeObj.scrollTop()+i.treeObj.height()+10>=a,M=I&&i.treeObj.scrollLeft()<=0,N=C&&i.treeObj.scrollLeft()+i.treeObj.width()+10>=e;if(b.target.id&&i.treeObj.find("#"+b.target.id).length>0){for(var A=b.target;A&& +A.tagName&&!h.eqs(A.tagName,"li")&&A.id!=i.treeId;)A=A.parentNode;var O=!0;for(a=0,c=m.length;a0){O=!1;break}if(O&&b.target.id&&(b.target.id==A.id+d.id.A||k(b.target).parents("#"+A.id+d.id.A).length>0))r=k(A),u=A.id}e=m[0];if(o&&(b.target.id==i.treeId||k(b.target).parents("#"+i.treeId).length>0)){if(!r&&(b.target.id==i.treeId||n||H||M||N)&&(G||!G&&e.parentTId))r=i.treeObj;l?i.treeObj.scrollTop(i.treeObj.scrollTop()- +10):s&&i.treeObj.scrollTop(i.treeObj.scrollTop()+10);I?i.treeObj.scrollLeft(i.treeObj.scrollLeft()-10):C&&i.treeObj.scrollLeft(i.treeObj.scrollLeft()+10);r&&r!=i.treeObj&&r.offset().left=-0.2)&&e?(a=1-t.width(),l=s-t.height()/2,v=d.move.TYPE_PREV):(C==0||b>=C&&b<=1.2)&&a?(a=1-t.width(),l=l==null||w.isParent&&w.open?s+c.height()-t.height()/2:l.offset().top-t.height()/2,v=d.move.TYPE_NEXT):(a=5-t.width(),l=s,v=d.move.TYPE_INNER);t.css({display:"block",top:l+"px",left:j+a+"px"});c.addClass(d.node.TMPTARGET_NODE+ +"_"+v);if(P!=u||Q!=v)J=(new Date).getTime();if(w&&w.isParent&&v==d.move.TYPE_INNER&&(b=!0,window.zTreeMoveTimer&&window.zTreeMoveTargetNodeTId!==w.tId?(clearTimeout(window.zTreeMoveTimer),window.zTreeMoveTargetNodeTId=null):window.zTreeMoveTimer&&window.zTreeMoveTargetNodeTId===w.tId&&(b=!1),b))window.zTreeMoveTimer=setTimeout(function(){v==d.move.TYPE_INNER&&w&&w.isParent&&!w.open&&(new Date).getTime()-J>i.edit.drag.autoOpenTime&&h.apply(i.callback.beforeDragOpen,[i.treeId,w],!0)&&(f.switchNode(i, +w),i.edit.drag.autoExpandTrigger&&i.treeObj.trigger(d.event.EXPAND,[i.treeId,w]))},i.edit.drag.autoOpenTime+50),window.zTreeMoveTargetNodeTId=w.tId}}else if(v=d.move.TYPE_INNER,r&&h.apply(i.edit.drag.inner,[i.treeId,m,null],!!i.edit.drag.inner)?r.addClass(d.node.TMPTARGET_TREE):r=null,t.css({display:"none"}),window.zTreeMoveTimer)clearTimeout(window.zTreeMoveTimer),window.zTreeMoveTargetNodeTId=null;P=u;Q=v}return!1}function q(b){if(window.zTreeMoveTimer)clearTimeout(window.zTreeMoveTimer),window.zTreeMoveTargetNodeTId= +null;Q=P=null;x.unbind("mousemove",c);x.unbind("mouseup",q);x.unbind("selectstart",e);k("body").css("cursor","auto");r&&(r.removeClass(d.node.TMPTARGET_TREE),u&&k("#"+u+d.id.A,r).removeClass(d.node.TMPTARGET_NODE+"_"+d.move.TYPE_PREV).removeClass(d.node.TMPTARGET_NODE+"_"+F.move.TYPE_NEXT).removeClass(d.node.TMPTARGET_NODE+"_"+F.move.TYPE_INNER));h.showIfameMask(g,!1);z.showHoverDom=!0;if(z.dragFlag!=0){z.dragFlag=0;var a,l,j;for(a=0,l=m.length;a0);k("#"+s[0].tId).focus().blur()};v==d.move.TYPE_INNER&& +h.canAsync(i,n)?f.asyncNode(i,n,!1,a):a();g.treeObj.trigger(d.event.DROP,[b,i.treeId,s,n,v,o])}}else{for(a=0,l=m.length;a0);g.treeObj.trigger(d.event.DROP,[b,g.treeId,m,null,null,null])}}}function e(){return!1}var l,j,g=p.getSetting(b.data.treeId),z=p.getRoot(g);if(b.button==2||!g.edit.enable||!g.edit.drag.isCopy&&!g.edit.drag.isMove)return!0;var o=b.target,n=p.getRoot(g).curSelectedList,m=[];if(p.isSelectedNode(g,a))for(l=0,j=n.length;l0;)c.dragMaskList[0].remove(), +c.dragMaskList.shift();if(a)for(var d=k("iframe"),e=0,f=d.length;e
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ");j.appendTo("body");c.dragMaskList.push(j)}}},view:{addEditBtn:function(b,a){if(!(a.editNameFlag||k("#"+a.tId+d.id.EDIT).length>0)&&h.apply(b.edit.showRenameBtn,[b.treeId,a],b.edit.showRenameBtn)){var c=k("#"+a.tId+d.id.A),q="";c.append(q);k("#"+a.tId+d.id.EDIT).bind("click",function(){if(!h.uCanDo(b)||h.apply(b.callback.beforeEditName,[b.treeId,a],!0)==!1)return!1;f.editNode(b,a);return!1}).show()}},addRemoveBtn:function(b,a){if(!(a.editNameFlag||k("#"+a.tId+d.id.REMOVE).length>0)&&h.apply(b.edit.showRemoveBtn,[b.treeId,a],b.edit.showRemoveBtn)){var c=k("#"+a.tId+d.id.A),q="";c.append(q);k("#"+a.tId+d.id.REMOVE).bind("click",function(){if(!h.uCanDo(b)||h.apply(b.callback.beforeRemove,[b.treeId,a],!0)==!1)return!1;f.removeNode(b,a);b.treeObj.trigger(d.event.REMOVE,[b.treeId,a]);return!1}).bind("mousedown",function(){return!0}).show()}},addHoverDom:function(b,a){if(p.getRoot(b).showHoverDom)a.isHover=!0,b.edit.enable&&(f.addEditBtn(b, +a),f.addRemoveBtn(b,a)),h.apply(b.view.addHoverDom,[b.treeId,a])},cancelCurEditNode:function(b,a){var c=p.getRoot(b),q=b.data.key.name,e=c.curEditNode;if(e){var l=c.curEditInput,j=a?a:l.val();if(!a&&h.apply(b.callback.beforeRename,[b.treeId,e,j],!0)===!1)return e.editNameFlag=!0,!1;else e[q]=j?j:l.val(),a||b.treeObj.trigger(d.event.RENAME,[b.treeId,e]);k("#"+e.tId+d.id.A).removeClass(d.node.CURSELECTED_EDIT);l.unbind();f.setNodeName(b,e);e.editNameFlag=!1;c.curEditNode=null;c.curEditInput=null;f.selectNode(b, +e,!1)}return c.noSelection=!0},editNode:function(b,a){var c=p.getRoot(b);f.editNodeBlur=!1;if(p.isSelectedNode(b,a)&&c.curEditNode==a&&a.editNameFlag)setTimeout(function(){h.inputFocus(c.curEditInput)},0);else{var q=b.data.key.name;a.editNameFlag=!0;f.removeTreeDom(b,a);f.cancelCurEditNode(b);f.selectNode(b,a,!1);k("#"+a.tId+d.id.SPAN).html("");var e=k("#"+a.tId+d.id.INPUT);e.attr("value",a[q]);b.edit.editNameSelectAll? +h.inputSelect(e):h.inputFocus(e);e.bind("blur",function(){f.editNodeBlur||f.cancelCurEditNode(b)}).bind("keydown",function(c){c.keyCode=="13"?(f.editNodeBlur=!0,f.cancelCurEditNode(b,null,!0)):c.keyCode=="27"&&f.cancelCurEditNode(b,a[q])}).bind("click",function(){return!1}).bind("dblclick",function(){return!1});k("#"+a.tId+d.id.A).addClass(d.node.CURSELECTED_EDIT);c.curEditInput=e;c.noSelection=!1;c.curEditNode=a}},moveNode:function(b,a,c,q,e,l){var j=p.getRoot(b),g=b.data.key.children;if(a!=c&&(!b.data.keep.leaf|| +!a||a.isParent||q!=d.move.TYPE_INNER)){var h=c.parentTId?c.getParentNode():j,o=a===null||a==j;o&&a===null&&(a=j);if(o)q=d.move.TYPE_INNER;j=a.parentTId?a.getParentNode():j;if(q!=d.move.TYPE_PREV&&q!=d.move.TYPE_NEXT)q=d.move.TYPE_INNER;if(q==d.move.TYPE_INNER)if(o)c.parentTId=null;else{if(!a.isParent)a.isParent=!0,a.open=!!a.open,f.setNodeLineIcos(b,a);c.parentTId=a.tId}var n;o?n=o=b.treeObj:(!l&&q==d.move.TYPE_INNER?f.expandCollapseNode(b,a,!0,!1):l||f.expandCollapseNode(b,a.getParentNode(),!0,!1), +o=k("#"+a.tId),n=k("#"+a.tId+d.id.UL),o.get(0)&&!n.get(0)&&(n=[],f.makeUlHtml(b,a,n,""),o.append(n.join(""))),n=k("#"+a.tId+d.id.UL));var m=k("#"+c.tId);m.get(0)?o.get(0)||m.remove():m=f.appendNodes(b,c.level,[c],null,!1,!0).join("");n.get(0)&&q==d.move.TYPE_INNER?n.append(m):o.get(0)&&q==d.move.TYPE_PREV?o.before(m):o.get(0)&&q==d.move.TYPE_NEXT&&o.after(m);var x=-1,y=0,t=null,o=null,r=c.level;if(c.isFirstNode){if(x=0,h[g].length>1)t=h[g][1],t.isFirstNode=!0}else if(c.isLastNode)x=h[g].length-1, +t=h[g][x-1],t.isLastNode=!0;else for(n=0,m=h[g].length;n=0&&h[g].splice(x,1);if(q!=d.move.TYPE_INNER)for(n=0,m=j[g].length;n0)o=a[g][a[g].length-1],o.isLastNode=!1;a[g].splice(a[g].length,0,c);c.isLastNode=!0;c.isFirstNode=a[g].length==1}else a.isFirstNode&&q==d.move.TYPE_PREV?(j[g].splice(y,0,c),o=a,o.isFirstNode=!1,c.parentTId=a.parentTId,c.isFirstNode=!0,c.isLastNode= +!1):a.isLastNode&&q==d.move.TYPE_NEXT?(j[g].splice(y+1,0,c),o=a,o.isLastNode=!1,c.parentTId=a.parentTId,c.isFirstNode=!1,c.isLastNode=!0):(q==d.move.TYPE_PREV?j[g].splice(y,0,c):j[g].splice(y+1,0,c),c.parentTId=a.parentTId,c.isFirstNode=!1,c.isLastNode=!1);p.fixPIdKeyValue(b,c);p.setSonNodeLevel(b,c.getParentNode(),c);f.setNodeLineIcos(b,c);f.repairNodeLevelClass(b,c,r);!b.data.keep.parent&&h[g].length<1?(h.isParent=!1,h.open=!1,a=k("#"+h.tId+d.id.UL),q=k("#"+h.tId+d.id.SWITCH),g=k("#"+h.tId+d.id.ICON), +f.replaceSwitchClass(h,q,d.folder.DOCU),f.replaceIcoClass(h,g,d.folder.DOCU),a.css("display","none")):t&&f.setNodeLineIcos(b,t);o&&f.setNodeLineIcos(b,o);b.check&&b.check.enable&&f.repairChkClass&&(f.repairChkClass(b,h),f.repairParentChkClassWithSelf(b,h),h!=c.parent&&f.repairParentChkClassWithSelf(b,c));l||f.expandCollapseParentNode(b,c.getParentNode(),!0,e)}},removeEditBtn:function(b){k("#"+b.tId+d.id.EDIT).unbind().remove()},removeRemoveBtn:function(b){k("#"+b.tId+d.id.REMOVE).unbind().remove()}, +removeTreeDom:function(b,a){a.isHover=!1;f.removeEditBtn(a);f.removeRemoveBtn(a);h.apply(b.view.removeHoverDom,[b.treeId,a])},repairNodeLevelClass:function(b,a,c){if(c!==a.level){var b=k("#"+a.tId),f=k("#"+a.tId+d.id.A),e=k("#"+a.tId+d.id.UL),c="level"+c,a="level"+a.level;b.removeClass(c);b.addClass(a);f.removeClass(c);f.addClass(a);e.removeClass(c);e.addClass(a)}}},event:{},data:{setSonNodeLevel:function(b,a,c){if(c){var d=b.data.key.children;c.level=a?a.level+1:0;if(c[d])for(var a=0,e=c[d].length;a< +e;a++)c[d][a]&&p.setSonNodeLevel(b,c,c[d][a])}}}});var E=k.fn.zTree,h=E._z.tools,d=E.consts,f=E._z.view,p=E._z.data;p.exSetting({edit:{enable:!1,editNameSelectAll:!1,showRemoveBtn:!0,showRenameBtn:!0,removeTitle:"remove",renameTitle:"rename",drag:{autoExpandTrigger:!1,isCopy:!0,isMove:!0,prev:!0,next:!0,inner:!0,minMoveSize:5,borderMax:10,borderMin:-5,maxShowNodeNum:5,autoOpenTime:500}},view:{addHoverDom:null,removeHoverDom:null},callback:{beforeDrag:null,beforeDragOpen:null,beforeDrop:null,beforeEditName:null, +beforeRename:null,onDrag:null,onDrop:null,onRename:null}});p.addInitBind(function(b){var a=b.treeObj,c=d.event;a.bind(c.RENAME,function(a,c,d){h.apply(b.callback.onRename,[a,c,d])});a.bind(c.REMOVE,function(a,c,d){h.apply(b.callback.onRemove,[a,c,d])});a.bind(c.DRAG,function(a,c,d,f){h.apply(b.callback.onDrag,[c,d,f])});a.bind(c.DROP,function(a,c,d,f,g,k,o){h.apply(b.callback.onDrop,[c,d,f,g,k,o])})});p.addInitUnBind(function(b){var b=b.treeObj,a=d.event;b.unbind(a.RENAME);b.unbind(a.REMOVE);b.unbind(a.DRAG); +b.unbind(a.DROP)});p.addInitCache(function(){});p.addInitNode(function(b,a,c){if(c)c.isHover=!1,c.editNameFlag=!1});p.addInitProxy(function(b){var a=b.target,c=p.getSetting(b.data.treeId),f=b.relatedTarget,e="",l=null,j="",g=null,k=null;if(h.eqs(b.type,"mouseover")){if(k=h.getMDom(c,a,[{tagName:"a",attrName:"treeNode"+d.id.A}]))e=k.parentNode.id,j="hoverOverNode"}else if(h.eqs(b.type,"mouseout"))k=h.getMDom(c,f,[{tagName:"a",attrName:"treeNode"+d.id.A}]),k||(e="remove",j="hoverOutNode");else if(h.eqs(b.type, +"mousedown")&&(k=h.getMDom(c,a,[{tagName:"a",attrName:"treeNode"+d.id.A}])))e=k.parentNode.id,j="mousedownNode";if(e.length>0)switch(l=p.getNodeCache(c,e),j){case "mousedownNode":g=D.onMousedownNode;break;case "hoverOverNode":g=D.onHoverOverNode;break;case "hoverOutNode":g=D.onHoverOutNode}return{stop:!1,node:l,nodeEventType:j,nodeEventCallback:g,treeEventType:"",treeEventCallback:null}});p.addInitRoot(function(b){b=p.getRoot(b);b.curEditNode=null;b.curEditInput=null;b.curHoverNode=null;b.dragFlag= +0;b.dragNodeShowBefore=[];b.dragMaskList=[];b.showHoverDom=!0});p.addZTreeTools(function(b,a){a.cancelEditName=function(a){var d=p.getRoot(b),e=b.data.key.name,h=d.curEditNode;d.curEditNode&&f.cancelCurEditNode(b,a?a:h[e])};a.copyNode=function(a,k,e,l){if(!k)return null;if(a&&!a.isParent&&b.data.keep.leaf&&e===d.move.TYPE_INNER)return null;var j=h.clone(k);if(!a)a=null,e=d.move.TYPE_INNER;e==d.move.TYPE_INNER?(k=function(){f.addNodes(b,a,[j],l)},h.canAsync(b,a)?f.asyncNode(b,a,l,k):k()):(f.addNodes(b, +a.parentNode,[j],l),f.moveNode(b,a,j,e,!1,l));return j};a.editName=function(a){a&&a.tId&&a===p.getNodeCache(b,a.tId)&&(a.parentTId&&f.expandCollapseParentNode(b,a.getParentNode(),!0),f.editNode(b,a))};a.moveNode=function(a,q,e,l){function j(){f.moveNode(b,a,q,e,!1,l)}if(!q)return q;if(a&&!a.isParent&&b.data.keep.leaf&&e===d.move.TYPE_INNER)return null;else if(a&&(q.parentTId==a.tId&&e==d.move.TYPE_INNER||k("#"+q.tId).find("#"+a.tId).length>0))return null;else a||(a=null);h.canAsync(b,a)?f.asyncNode(b, +a,l,j):j();return q};a.setEditable=function(a){b.edit.enable=a;return this.refresh()}});var K=f.cancelPreSelectedNode;f.cancelPreSelectedNode=function(b,a){for(var c=p.getRoot(b).curSelectedList,d=0,e=c.length;d 0 && tId.length == 0) { + tmp = tools.getMDom(setting, target, [{tagName:"a", attrName:"treeNode"+consts.id.A}]); + if (tmp) {tId = ($(tmp).parent("li").get(0) || $(tmp).parentsUntil("li").parent().get(0)).id;} + } + // event to node + if (tId.length>0) { + node = data.getNodeCache(setting, tId); + switch (nodeEventType) { + case "switchNode" : + if (!node.isParent) { + nodeEventType = ""; + } else if (tools.eqs(event.type, "click") + || (tools.eqs(event.type, "dblclick") && tools.apply(setting.view.dblClickExpand, [setting.treeId, node], setting.view.dblClickExpand))) { + nodeEventCallback = handler.onSwitchNode; + } else { + nodeEventType = ""; + } + break; + case "clickNode" : + nodeEventCallback = handler.onClickNode; + break; + } + } + // event to zTree + switch (treeEventType) { + case "mousedown" : + treeEventCallback = handler.onZTreeMousedown; + break; + case "mouseup" : + treeEventCallback = handler.onZTreeMouseup; + break; + case "dblclick" : + treeEventCallback = handler.onZTreeDblclick; + break; + case "contextmenu" : + treeEventCallback = handler.onZTreeContextmenu; + break; + } + var proxyResult = { + stop: false, + node: node, + nodeEventType: nodeEventType, + nodeEventCallback: nodeEventCallback, + treeEventType: treeEventType, + treeEventCallback: treeEventCallback + }; + return proxyResult + }, + //default init node of core + _initNode = function(setting, level, n, parentNode, isFirstNode, isLastNode, openFlag) { + if (!n) return; + var r = data.getRoot(setting), + childKey = setting.data.key.children; + n.level = level; + n.tId = setting.treeId + "_" + (++r.zId); + n.parentTId = parentNode ? parentNode.tId : null; + if (n[childKey] && n[childKey].length > 0) { + if (typeof n.open == "string") n.open = tools.eqs(n.open, "true"); + n.open = !!n.open; + n.isParent = true; + n.zAsync = true; + } else { + n.open = false; + if (typeof n.isParent == "string") n.isParent = tools.eqs(n.isParent, "true"); + n.isParent = !!n.isParent; + n.zAsync = !n.isParent; + } + n.isFirstNode = isFirstNode; + n.isLastNode = isLastNode; + n.getParentNode = function() {return data.getNodeCache(setting, n.parentTId);}; + n.getPreNode = function() {return data.getPreNode(setting, n);}; + n.getNextNode = function() {return data.getNextNode(setting, n);}; + n.isAjaxing = false; + data.fixPIdKeyValue(setting, n); + }, + _init = { + bind: [_bindEvent], + unbind: [_unbindEvent], + caches: [_initCache], + nodes: [_initNode], + proxys: [_eventProxy], + roots: [_initRoot], + beforeA: [], + afterA: [], + innerBeforeA: [], + innerAfterA: [], + zTreeTools: [] + }, + //method of operate data + data = { + addNodeCache: function(setting, node) { + data.getCache(setting).nodes[data.getNodeCacheId(node.tId)] = node; + }, + getNodeCacheId: function(tId) { + return tId.substring(tId.lastIndexOf("_")+1); + }, + addAfterA: function(afterA) { + _init.afterA.push(afterA); + }, + addBeforeA: function(beforeA) { + _init.beforeA.push(beforeA); + }, + addInnerAfterA: function(innerAfterA) { + _init.innerAfterA.push(innerAfterA); + }, + addInnerBeforeA: function(innerBeforeA) { + _init.innerBeforeA.push(innerBeforeA); + }, + addInitBind: function(bindEvent) { + _init.bind.push(bindEvent); + }, + addInitUnBind: function(unbindEvent) { + _init.unbind.push(unbindEvent); + }, + addInitCache: function(initCache) { + _init.caches.push(initCache); + }, + addInitNode: function(initNode) { + _init.nodes.push(initNode); + }, + addInitProxy: function(initProxy) { + _init.proxys.push(initProxy); + }, + addInitRoot: function(initRoot) { + _init.roots.push(initRoot); + }, + addNodesData: function(setting, parentNode, nodes) { + var childKey = setting.data.key.children; + if (!parentNode[childKey]) parentNode[childKey] = []; + if (parentNode[childKey].length > 0) { + parentNode[childKey][parentNode[childKey].length - 1].isLastNode = false; + view.setNodeLineIcos(setting, parentNode[childKey][parentNode[childKey].length - 1]); + } + parentNode.isParent = true; + parentNode[childKey] = parentNode[childKey].concat(nodes); + }, + addSelectedNode: function(setting, node) { + var root = data.getRoot(setting); + if (!data.isSelectedNode(setting, node)) { + root.curSelectedList.push(node); + } + }, + addCreatedNode: function(setting, node) { + if (!!setting.callback.onNodeCreated || !!setting.view.addDiyDom) { + var root = data.getRoot(setting); + root.createdNodes.push(node); + } + }, + addZTreeTools: function(zTreeTools) { + _init.zTreeTools.push(zTreeTools); + }, + exSetting: function(s) { + $.extend(true, _setting, s); + }, + fixPIdKeyValue: function(setting, node) { + if (setting.data.simpleData.enable) { + node[setting.data.simpleData.pIdKey] = node.parentTId ? node.getParentNode()[setting.data.simpleData.idKey] : setting.data.simpleData.rootPId; + } + }, + getAfterA: function(setting, node, array) { + for (var i=0, j=_init.afterA.length; i-1) { + result.push(nodes[i]); + } + result = result.concat(data.getNodesByParamFuzzy(setting, nodes[i][childKey], key, value)); + } + return result; + }, + getNodesByFilter: function(setting, nodes, filter, isSingle, invokeParam) { + if (!nodes) return (isSingle ? null : []); + var childKey = setting.data.key.children, + result = isSingle ? null : []; + for (var i = 0, l = nodes.length; i < l; i++) { + if (tools.apply(filter, [nodes[i], invokeParam], false)) { + if (isSingle) {return nodes[i];} + result.push(nodes[i]); + } + var tmpResult = data.getNodesByFilter(setting, nodes[i][childKey], filter, isSingle, invokeParam); + if (isSingle && !!tmpResult) {return tmpResult;} + result = isSingle ? tmpResult : result.concat(tmpResult); + } + return result; + }, + getPreNode: function(setting, node) { + if (!node) return null; + var childKey = setting.data.key.children, + p = node.parentTId ? node.getParentNode() : data.getRoot(setting); + for (var i=0, l=p[childKey].length; i 0))); + }, + clone: function (obj){ + if (obj === null) return null; + var o = obj.constructor === Array ? [] : {}; + for(var i in obj){ + if(obj.hasOwnProperty(i)){ + o[i] = (obj[i] instanceof Date) ? new Date(obj[i].getTime()) : (typeof obj[i] === "object" ? arguments.callee(obj[i]) : obj[i]); + } + } + return o; + }, + eqs: function(str1, str2) { + return str1.toLowerCase() === str2.toLowerCase(); + }, + isArray: function(arr) { + return Object.prototype.toString.apply(arr) === "[object Array]"; + }, + getMDom: function (setting, curDom, targetExpr) { + if (!curDom) return null; + while (curDom && curDom.id !== setting.treeId) { + for (var i=0, l=targetExpr.length; curDom.tagName && i 0) { + //make child html first, because checkType + childHtml = view.appendNodes(setting, level + 1, node[childKey], node, initFlag, openFlag && node.open); + } + if (openFlag) { + + view.makeDOMNodeMainBefore(html, setting, node); + view.makeDOMNodeLine(html, setting, node); + data.getBeforeA(setting, node, html); + view.makeDOMNodeNameBefore(html, setting, node); + data.getInnerBeforeA(setting, node, html); + view.makeDOMNodeIcon(html, setting, node); + data.getInnerAfterA(setting, node, html); + view.makeDOMNodeNameAfter(html, setting, node); + data.getAfterA(setting, node, html); + if (node.isParent && node.open) { + view.makeUlHtml(setting, node, html, childHtml.join('')); + } + view.makeDOMNodeMainAfter(html, setting, node); + data.addCreatedNode(setting, node); + } + } + return html; + }, + appendParentULDom: function(setting, node) { + var html = [], + nObj = $("#" + node.tId), + ulObj = $("#" + node.tId + consts.id.UL), + childKey = setting.data.key.children, + childHtml = view.appendNodes(setting, node.level+1, node[childKey], node, false, true); + view.makeUlHtml(setting, node, html, childHtml.join('')); + if (!nObj.get(0) && !!node.parentTId) { + view.appendParentULDom(setting, node.getParentNode()); + nObj = $("#" + node.tId); + } + if (ulObj.get(0)) { + ulObj.remove(); + } + nObj.append(html.join('')); + }, + asyncNode: function(setting, node, isSilent, callback) { + var i, l; + if (node && !node.isParent) { + tools.apply(callback); + return false; + } else if (node && node.isAjaxing) { + return false; + } else if (tools.apply(setting.callback.beforeAsync, [setting.treeId, node], true) == false) { + tools.apply(callback); + return false; + } + if (node) { + node.isAjaxing = true; + var icoObj = $("#" + node.tId + consts.id.ICON); + icoObj.attr({"style":"", "class":"button ico_loading"}); + } + + var isJson = (setting.async.contentType == "application/json"), tmpParam = isJson ? "{" : "", jTemp=""; + for (i = 0, l = setting.async.autoParam.length; node && i < l; i++) { + var pKey = setting.async.autoParam[i].split("="), spKey = pKey; + if (pKey.length>1) { + spKey = pKey[1]; + pKey = pKey[0]; + } + if (isJson) { + jTemp = (typeof node[pKey] == "string") ? '"' : ''; + tmpParam += '"' + spKey + ('":' + jTemp + node[pKey]).replace(/'/g,'\\\'') + jTemp + ','; + } else { + tmpParam += spKey + ("=" + node[pKey]).replace(/&/g,'%26') + "&"; + } + } + if (tools.isArray(setting.async.otherParam)) { + for (i = 0, l = setting.async.otherParam.length; i < l; i += 2) { + if (isJson) { + jTemp = (typeof setting.async.otherParam[i + 1] == "string") ? '"' : ''; + tmpParam += '"' + setting.async.otherParam[i] + ('":' + jTemp + setting.async.otherParam[i + 1]).replace(/'/g,'\\\'') + jTemp + ","; + } else { + tmpParam += setting.async.otherParam[i] + ("=" + setting.async.otherParam[i + 1]).replace(/&/g,'%26') + "&"; + } + } + } else { + for (var p in setting.async.otherParam) { + if (isJson) { + jTemp = (typeof setting.async.otherParam[p] == "string") ? '"' : ''; + tmpParam += '"' + p + ('":' + jTemp + setting.async.otherParam[p]).replace(/'/g,'\\\'') + jTemp + ","; + } else { + tmpParam += p + ("=" + setting.async.otherParam[p]).replace(/&/g,'%26') + "&"; + } + } + } + if (tmpParam.length > 1) tmpParam = tmpParam.substring(0, tmpParam.length-1); + if (isJson) tmpParam += "}"; + + var _tmpV = data.getRoot(setting)._ver; + $.ajax({ + contentType: setting.async.contentType, + type: setting.async.type, + url: tools.apply(setting.async.url, [setting.treeId, node], setting.async.url), + data: tmpParam, + dataType: setting.async.dataType, + success: function(msg) { + if (_tmpV != data.getRoot(setting)._ver) { + return; + } + var newNodes = []; + try { + if (!msg || msg.length == 0) { + newNodes = []; + } else if (typeof msg == "string") { + newNodes = eval("(" + msg + ")"); + } else { + newNodes = msg; + } + } catch(err) { + newNodes = msg; + } + + if (node) { + node.isAjaxing = null; + node.zAsync = true; + } + view.setNodeLineIcos(setting, node); + if (newNodes && newNodes !== "") { + newNodes = tools.apply(setting.async.dataFilter, [setting.treeId, node, newNodes], newNodes); + view.addNodes(setting, node, !!newNodes ? tools.clone(newNodes) : [], !!isSilent); + } else { + view.addNodes(setting, node, [], !!isSilent); + } + setting.treeObj.trigger(consts.event.ASYNC_SUCCESS, [setting.treeId, node, msg]); + tools.apply(callback); + }, + error: function(XMLHttpRequest, textStatus, errorThrown) { + if (_tmpV != data.getRoot(setting)._ver) { + return; + } + if (node) node.isAjaxing = null; + view.setNodeLineIcos(setting, node); + setting.treeObj.trigger(consts.event.ASYNC_ERROR, [setting.treeId, node, XMLHttpRequest, textStatus, errorThrown]); + } + }); + return true; + }, + cancelPreSelectedNode: function (setting, node) { + var list = data.getRoot(setting).curSelectedList; + for (var i=0, j=list.length-1; j>=i; j--) { + if (!node || node === list[j]) { + $("#" + list[j].tId + consts.id.A).removeClass(consts.node.CURSELECTED); + if (node) { + data.removeSelectedNode(setting, node); + break; + } + } + } + if (!node) data.getRoot(setting).curSelectedList = []; + }, + createNodeCallback: function(setting) { + if (!!setting.callback.onNodeCreated || !!setting.view.addDiyDom) { + var root = data.getRoot(setting); + while (root.createdNodes.length>0) { + var node = root.createdNodes.shift(); + tools.apply(setting.view.addDiyDom, [setting.treeId, node]); + if (!!setting.callback.onNodeCreated) { + setting.treeObj.trigger(consts.event.NODECREATED, [setting.treeId, node]); + } + } + } + }, + createNodes: function(setting, level, nodes, parentNode) { + if (!nodes || nodes.length == 0) return; + var root = data.getRoot(setting), + childKey = setting.data.key.children, + openFlag = !parentNode || parentNode.open || !!$("#" + parentNode[childKey][0].tId).get(0); + root.createdNodes = []; + var zTreeHtml = view.appendNodes(setting, level, nodes, parentNode, true, openFlag); + if (!parentNode) { + setting.treeObj.append(zTreeHtml.join('')); + } else { + var ulObj = $("#" + parentNode.tId + consts.id.UL); + if (ulObj.get(0)) { + ulObj.append(zTreeHtml.join('')); + } + } + view.createNodeCallback(setting); + }, + destroy: function(setting) { + if (!setting) return; + data.initCache(setting); + data.initRoot(setting); + event.unbindTree(setting); + event.unbindEvent(setting); + setting.treeObj.empty(); + }, + expandCollapseNode: function(setting, node, expandFlag, animateFlag, callback) { + var root = data.getRoot(setting), + childKey = setting.data.key.children; + if (!node) { + tools.apply(callback, []); + return; + } + if (root.expandTriggerFlag) { + var _callback = callback; + callback = function(){ + if (_callback) _callback(); + if (node.open) { + setting.treeObj.trigger(consts.event.EXPAND, [setting.treeId, node]); + } else { + setting.treeObj.trigger(consts.event.COLLAPSE, [setting.treeId, node]); + } + }; + root.expandTriggerFlag = false; + } + if (!node.open && node.isParent && ((!$("#" + node.tId + consts.id.UL).get(0)) || (node[childKey] && node[childKey].length>0 && !$("#" + node[childKey][0].tId).get(0)))) { + view.appendParentULDom(setting, node); + view.createNodeCallback(setting); + } + if (node.open == expandFlag) { + tools.apply(callback, []); + return; + } + var ulObj = $("#" + node.tId + consts.id.UL), + switchObj = $("#" + node.tId + consts.id.SWITCH), + icoObj = $("#" + node.tId + consts.id.ICON); + + if (node.isParent) { + node.open = !node.open; + if (node.iconOpen && node.iconClose) { + icoObj.attr("style", view.makeNodeIcoStyle(setting, node)); + } + + if (node.open) { + view.replaceSwitchClass(node, switchObj, consts.folder.OPEN); + view.replaceIcoClass(node, icoObj, consts.folder.OPEN); + if (animateFlag == false || setting.view.expandSpeed == "") { + ulObj.show(); + tools.apply(callback, []); + } else { + if (node[childKey] && node[childKey].length > 0) { + ulObj.slideDown(setting.view.expandSpeed, callback); + } else { + ulObj.show(); + tools.apply(callback, []); + } + } + } else { + view.replaceSwitchClass(node, switchObj, consts.folder.CLOSE); + view.replaceIcoClass(node, icoObj, consts.folder.CLOSE); + if (animateFlag == false || setting.view.expandSpeed == "" || !(node[childKey] && node[childKey].length > 0)) { + ulObj.hide(); + tools.apply(callback, []); + } else { + ulObj.slideUp(setting.view.expandSpeed, callback); + } + } + } else { + tools.apply(callback, []); + } + }, + expandCollapseParentNode: function(setting, node, expandFlag, animateFlag, callback) { + if (!node) return; + if (!node.parentTId) { + view.expandCollapseNode(setting, node, expandFlag, animateFlag, callback); + return; + } else { + view.expandCollapseNode(setting, node, expandFlag, animateFlag); + } + if (node.parentTId) { + view.expandCollapseParentNode(setting, node.getParentNode(), expandFlag, animateFlag, callback); + } + }, + expandCollapseSonNode: function(setting, node, expandFlag, animateFlag, callback) { + var root = data.getRoot(setting), + childKey = setting.data.key.children, + treeNodes = (node) ? node[childKey]: root[childKey], + selfAnimateSign = (node) ? false : animateFlag, + expandTriggerFlag = data.getRoot(setting).expandTriggerFlag; + data.getRoot(setting).expandTriggerFlag = false; + if (treeNodes) { + for (var i = 0, l = treeNodes.length; i < l; i++) { + if (treeNodes[i]) view.expandCollapseSonNode(setting, treeNodes[i], expandFlag, selfAnimateSign); + } + } + data.getRoot(setting).expandTriggerFlag = expandTriggerFlag; + view.expandCollapseNode(setting, node, expandFlag, animateFlag, callback ); + }, + makeDOMNodeIcon: function(html, setting, node) { + var nameStr = data.getNodeName(setting, node), + name = setting.view.nameIsHTML ? nameStr : nameStr.replace(/&/g,'&').replace(//g,'>'); + html.push("",name,""); + }, + makeDOMNodeLine: function(html, setting, node) { + html.push(""); + }, + makeDOMNodeMainAfter: function(html, setting, node) { + html.push(""); + }, + makeDOMNodeMainBefore: function(html, setting, node) { + html.push("
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • "); + }, + makeDOMNodeNameAfter: function(html, setting, node) { + html.push(""); + }, + makeDOMNodeNameBefore: function(html, setting, node) { + var title = data.getNodeTitle(setting, node), + url = view.makeNodeUrl(setting, node), + fontcss = view.makeNodeFontCss(setting, node), + fontStyle = []; + for (var f in fontcss) { + fontStyle.push(f, ":", fontcss[f], ";"); + } + html.push(" 0) ? "href='" + url + "'" : ""), " target='",view.makeNodeTarget(node),"' style='", fontStyle.join(''), + "'"); + if (tools.apply(setting.view.showTitle, [setting.treeId, node], setting.view.showTitle) && title) {html.push("title='", title.replace(/'/g,"'").replace(//g,'>'),"'");} + html.push(">"); + }, + makeNodeFontCss: function(setting, node) { + var fontCss = tools.apply(setting.view.fontCss, [setting.treeId, node], setting.view.fontCss); + return (fontCss && ((typeof fontCss) != "function")) ? fontCss : {}; + }, + makeNodeIcoClass: function(setting, node) { + var icoCss = ["ico"]; + if (!node.isAjaxing) { + icoCss[0] = (node.iconSkin ? node.iconSkin + "_" : "") + icoCss[0]; + if (node.isParent) { + icoCss.push(node.open ? consts.folder.OPEN : consts.folder.CLOSE); + } else { + icoCss.push(consts.folder.DOCU); + } + } + return "button " + icoCss.join('_'); + }, + makeNodeIcoStyle: function(setting, node) { + var icoStyle = []; + if (!node.isAjaxing) { + var icon = (node.isParent && node.iconOpen && node.iconClose) ? (node.open ? node.iconOpen : node.iconClose) : node.icon; + if (icon) icoStyle.push("background:url(", icon, ") 0 0 no-repeat;"); + if (setting.view.showIcon == false || !tools.apply(setting.view.showIcon, [setting.treeId, node], true)) { + icoStyle.push("width:0px;height:0px;"); + } + } + return icoStyle.join(''); + }, + makeNodeLineClass: function(setting, node) { + var lineClass = []; + if (setting.view.showLine) { + if (node.level == 0 && node.isFirstNode && node.isLastNode) { + lineClass.push(consts.line.ROOT); + } else if (node.level == 0 && node.isFirstNode) { + lineClass.push(consts.line.ROOTS); + } else if (node.isLastNode) { + lineClass.push(consts.line.BOTTOM); + } else { + lineClass.push(consts.line.CENTER); + } + } else { + lineClass.push(consts.line.NOLINE); + } + if (node.isParent) { + lineClass.push(node.open ? consts.folder.OPEN : consts.folder.CLOSE); + } else { + lineClass.push(consts.folder.DOCU); + } + return view.makeNodeLineClassEx(node) + lineClass.join('_'); + }, + makeNodeLineClassEx: function(node) { + return "button level" + node.level + " switch "; + }, + makeNodeTarget: function(node) { + return (node.target || "_blank"); + }, + makeNodeUrl: function(setting, node) { + var urlKey = setting.data.key.url; + return node[urlKey] ? node[urlKey] : null; + }, + makeUlHtml: function(setting, node, html, content) { + html.push("
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              "); + html.push(content); + html.push("
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            "); + }, + makeUlLineClass: function(setting, node) { + return ((setting.view.showLine && !node.isLastNode) ? consts.line.LINE : ""); + }, + removeChildNodes: function(setting, node) { + if (!node) return; + var childKey = setting.data.key.children, + nodes = node[childKey]; + if (!nodes) return; + + for (var i = 0, l = nodes.length; i < l; i++) { + data.removeNodeCache(setting, nodes[i]); + } + data.removeSelectedNode(setting); + delete node[childKey]; + + if (!setting.data.keep.parent) { + node.isParent = false; + node.open = false; + var tmp_switchObj = $("#" + node.tId + consts.id.SWITCH), + tmp_icoObj = $("#" + node.tId + consts.id.ICON); + view.replaceSwitchClass(node, tmp_switchObj, consts.folder.DOCU); + view.replaceIcoClass(node, tmp_icoObj, consts.folder.DOCU); + $("#" + node.tId + consts.id.UL).remove(); + } else { + $("#" + node.tId + consts.id.UL).empty(); + } + }, + setFirstNode: function(setting, parentNode) { + var childKey = setting.data.key.children, childLength = parentNode[childKey].length; + if ( childLength > 0) { + parentNode[childKey][0].isFirstNode = true; + } + }, + setLastNode: function(setting, parentNode) { + var childKey = setting.data.key.children, childLength = parentNode[childKey].length; + if ( childLength > 0) { + parentNode[childKey][childLength - 1].isLastNode = true; + } + }, + removeNode: function(setting, node) { + var root = data.getRoot(setting), + childKey = setting.data.key.children, + parentNode = (node.parentTId) ? node.getParentNode() : root; + + node.isFirstNode = false; + node.isLastNode = false; + node.getPreNode = function() {return null;}; + node.getNextNode = function() {return null;}; + + if (!data.getNodeCache(setting, node.tId)) { + return; + } + + $("#" + node.tId).remove(); + data.removeNodeCache(setting, node); + data.removeSelectedNode(setting, node); + + for (var i = 0, l = parentNode[childKey].length; i < l; i++) { + if (parentNode[childKey][i].tId == node.tId) { + parentNode[childKey].splice(i, 1); + break; + } + } + view.setFirstNode(setting, parentNode); + view.setLastNode(setting, parentNode); + + var tmp_ulObj,tmp_switchObj,tmp_icoObj, + childLength = parentNode[childKey].length; + + //repair nodes old parent + if (!setting.data.keep.parent && childLength == 0) { + //old parentNode has no child nodes + parentNode.isParent = false; + parentNode.open = false; + tmp_ulObj = $("#" + parentNode.tId + consts.id.UL); + tmp_switchObj = $("#" + parentNode.tId + consts.id.SWITCH); + tmp_icoObj = $("#" + parentNode.tId + consts.id.ICON); + view.replaceSwitchClass(parentNode, tmp_switchObj, consts.folder.DOCU); + view.replaceIcoClass(parentNode, tmp_icoObj, consts.folder.DOCU); + tmp_ulObj.css("display", "none"); + + } else if (setting.view.showLine && childLength > 0) { + //old parentNode has child nodes + var newLast = parentNode[childKey][childLength - 1]; + tmp_ulObj = $("#" + newLast.tId + consts.id.UL); + tmp_switchObj = $("#" + newLast.tId + consts.id.SWITCH); + tmp_icoObj = $("#" + newLast.tId + consts.id.ICON); + if (parentNode == root) { + if (parentNode[childKey].length == 1) { + //node was root, and ztree has only one root after move node + view.replaceSwitchClass(newLast, tmp_switchObj, consts.line.ROOT); + } else { + var tmp_first_switchObj = $("#" + parentNode[childKey][0].tId + consts.id.SWITCH); + view.replaceSwitchClass(parentNode[childKey][0], tmp_first_switchObj, consts.line.ROOTS); + view.replaceSwitchClass(newLast, tmp_switchObj, consts.line.BOTTOM); + } + } else { + view.replaceSwitchClass(newLast, tmp_switchObj, consts.line.BOTTOM); + } + tmp_ulObj.removeClass(consts.line.LINE); + } + }, + replaceIcoClass: function(node, obj, newName) { + if (!obj || node.isAjaxing) return; + var tmpName = obj.attr("class"); + if (tmpName == undefined) return; + var tmpList = tmpName.split("_"); + switch (newName) { + case consts.folder.OPEN: + case consts.folder.CLOSE: + case consts.folder.DOCU: + tmpList[tmpList.length-1] = newName; + break; + } + obj.attr("class", tmpList.join("_")); + }, + replaceSwitchClass: function(node, obj, newName) { + if (!obj) return; + var tmpName = obj.attr("class"); + if (tmpName == undefined) return; + var tmpList = tmpName.split("_"); + switch (newName) { + case consts.line.ROOT: + case consts.line.ROOTS: + case consts.line.CENTER: + case consts.line.BOTTOM: + case consts.line.NOLINE: + tmpList[0] = view.makeNodeLineClassEx(node) + newName; + break; + case consts.folder.OPEN: + case consts.folder.CLOSE: + case consts.folder.DOCU: + tmpList[1] = newName; + break; + } + obj.attr("class", tmpList.join("_")); + if (newName !== consts.folder.DOCU) { + obj.removeAttr("disabled"); + } else { + obj.attr("disabled", "disabled"); + } + }, + selectNode: function(setting, node, addFlag) { + if (!addFlag) { + view.cancelPreSelectedNode(setting); + } + $("#" + node.tId + consts.id.A).addClass(consts.node.CURSELECTED); + data.addSelectedNode(setting, node); + }, + setNodeFontCss: function(setting, treeNode) { + var aObj = $("#" + treeNode.tId + consts.id.A), + fontCss = view.makeNodeFontCss(setting, treeNode); + if (fontCss) { + aObj.css(fontCss); + } + }, + setNodeLineIcos: function(setting, node) { + if (!node) return; + var switchObj = $("#" + node.tId + consts.id.SWITCH), + ulObj = $("#" + node.tId + consts.id.UL), + icoObj = $("#" + node.tId + consts.id.ICON), + ulLine = view.makeUlLineClass(setting, node); + if (ulLine.length==0) { + ulObj.removeClass(consts.line.LINE); + } else { + ulObj.addClass(ulLine); + } + switchObj.attr("class", view.makeNodeLineClass(setting, node)); + if (node.isParent) { + switchObj.removeAttr("disabled"); + } else { + switchObj.attr("disabled", "disabled"); + } + icoObj.removeAttr("style"); + icoObj.attr("style", view.makeNodeIcoStyle(setting, node)); + icoObj.attr("class", view.makeNodeIcoClass(setting, node)); + }, + setNodeName: function(setting, node) { + var title = data.getNodeTitle(setting, node), + nObj = $("#" + node.tId + consts.id.SPAN); + nObj.empty(); + if (setting.view.nameIsHTML) { + nObj.html(data.getNodeName(setting, node)); + } else { + nObj.text(data.getNodeName(setting, node)); + } + if (tools.apply(setting.view.showTitle, [setting.treeId, node], setting.view.showTitle)) { + var aObj = $("#" + node.tId + consts.id.A); + aObj.attr("title", !title ? "" : title); + } + }, + setNodeTarget: function(node) { + var aObj = $("#" + node.tId + consts.id.A); + aObj.attr("target", view.makeNodeTarget(node)); + }, + setNodeUrl: function(setting, node) { + var aObj = $("#" + node.tId + consts.id.A), + url = view.makeNodeUrl(setting, node); + if (url == null || url.length == 0) { + aObj.removeAttr("href"); + } else { + aObj.attr("href", url); + } + }, + switchNode: function(setting, node) { + if (node.open || !tools.canAsync(setting, node)) { + view.expandCollapseNode(setting, node, !node.open); + } else if (setting.async.enable) { + if (!view.asyncNode(setting, node)) { + view.expandCollapseNode(setting, node, !node.open); + return; + } + } else if (node) { + view.expandCollapseNode(setting, node, !node.open); + } + } + }; + // zTree defind + $.fn.zTree = { + consts : _consts, + _z : { + tools: tools, + view: view, + event: event, + data: data + }, + getZTreeObj: function(treeId) { + var o = data.getZTreeTools(treeId); + return o ? o : null; + }, + destroy: function(treeId) { + if (!!treeId && treeId.length > 0) { + view.destroy(data.getSetting(treeId)); + } else { + for(var s in settings) { + view.destroy(settings[s]); + } + } + }, + init: function(obj, zSetting, zNodes) { + var setting = tools.clone(_setting); + $.extend(true, setting, zSetting); + setting.treeId = obj.attr("id"); + setting.treeObj = obj; + setting.treeObj.empty(); + settings[setting.treeId] = setting; + if ($.browser.msie && parseInt($.browser.version)<7) { + setting.view.expandSpeed = ""; + } + + data.initRoot(setting); + var root = data.getRoot(setting), + childKey = setting.data.key.children; + zNodes = zNodes ? tools.clone(tools.isArray(zNodes)? zNodes : [zNodes]) : []; + if (setting.data.simpleData.enable) { + root[childKey] = data.transformTozTreeFormat(setting, zNodes); + } else { + root[childKey] = zNodes; + } + + data.initCache(setting); + event.unbindTree(setting); + event.bindTree(setting); + event.unbindEvent(setting); + event.bindEvent(setting); + + var zTreeTools = { + setting : setting, + addNodes : function(parentNode, newNodes, isSilent) { + if (!newNodes) return null; + if (!parentNode) parentNode = null; + if (parentNode && !parentNode.isParent && setting.data.keep.leaf) return null; + var xNewNodes = tools.clone(tools.isArray(newNodes)? newNodes: [newNodes]); + function addCallback() { + view.addNodes(setting, parentNode, xNewNodes, (isSilent==true)); + } + + if (tools.canAsync(setting, parentNode)) { + view.asyncNode(setting, parentNode, isSilent, addCallback); + } else { + addCallback(); + } + return xNewNodes; + }, + cancelSelectedNode : function(node) { + view.cancelPreSelectedNode(this.setting, node); + }, + destroy : function() { + view.destroy(this.setting); + }, + expandAll : function(expandFlag) { + expandFlag = !!expandFlag; + view.expandCollapseSonNode(this.setting, null, expandFlag, true); + return expandFlag; + }, + expandNode : function(node, expandFlag, sonSign, focus, callbackFlag) { + if (!node || !node.isParent) return null; + if (expandFlag !== true && expandFlag !== false) { + expandFlag = !node.open; + } + callbackFlag = !!callbackFlag; + + if (callbackFlag && expandFlag && (tools.apply(setting.callback.beforeExpand, [setting.treeId, node], true) == false)) { + return null; + } else if (callbackFlag && !expandFlag && (tools.apply(setting.callback.beforeCollapse, [setting.treeId, node], true) == false)) { + return null; + } + if (expandFlag && node.parentTId) { + view.expandCollapseParentNode(this.setting, node.getParentNode(), expandFlag, false); + } + if (expandFlag === node.open && !sonSign) { + return null; + } + + data.getRoot(setting).expandTriggerFlag = callbackFlag; + if (sonSign) { + view.expandCollapseSonNode(this.setting, node, expandFlag, true, function() { + if (focus !== false) {try{$("#" + node.tId).focus().blur();}catch(e){}} + }); + } else { + node.open = !expandFlag; + view.switchNode(this.setting, node); + if (focus !== false) {try{$("#" + node.tId).focus().blur();}catch(e){}} + } + return expandFlag; + }, + getNodes : function() { + return data.getNodes(this.setting); + }, + getNodeByParam : function(key, value, parentNode) { + if (!key) return null; + return data.getNodeByParam(this.setting, parentNode?parentNode[this.setting.data.key.children]:data.getNodes(this.setting), key, value); + }, + getNodeByTId : function(tId) { + return data.getNodeCache(this.setting, tId); + }, + getNodesByParam : function(key, value, parentNode) { + if (!key) return null; + return data.getNodesByParam(this.setting, parentNode?parentNode[this.setting.data.key.children]:data.getNodes(this.setting), key, value); + }, + getNodesByParamFuzzy : function(key, value, parentNode) { + if (!key) return null; + return data.getNodesByParamFuzzy(this.setting, parentNode?parentNode[this.setting.data.key.children]:data.getNodes(this.setting), key, value); + }, + getNodesByFilter: function(filter, isSingle, parentNode, invokeParam) { + isSingle = !!isSingle; + if (!filter || (typeof filter != "function")) return (isSingle ? null : []); + return data.getNodesByFilter(this.setting, parentNode?parentNode[this.setting.data.key.children]:data.getNodes(this.setting), filter, isSingle, invokeParam); + }, + getNodeIndex : function(node) { + if (!node) return null; + var childKey = setting.data.key.children, + parentNode = (node.parentTId) ? node.getParentNode() : data.getRoot(this.setting); + for (var i=0, l = parentNode[childKey].length; i < l; i++) { + if (parentNode[childKey][i] == node) return i; + } + return -1; + }, + getSelectedNodes : function() { + var r = [], list = data.getRoot(this.setting).curSelectedList; + for (var i=0, l=list.length; i 0) { + view.createNodes(setting, 0, root[childKey]); + } else if (setting.async.enable && setting.async.url && setting.async.url !== '') { + view.asyncNode(setting); + } + return zTreeTools; + } + }; + + var zt = $.fn.zTree, + consts = zt.consts; +})(jQuery); \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/js/jquery.ztree.core-3.5.min.js b/alive-admin/target/classes/static/ztree/js/jquery.ztree.core-3.5.min.js new file mode 100644 index 0000000..cd38985 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/js/jquery.ztree.core-3.5.min.js @@ -0,0 +1,70 @@ +/* + * JQuery zTree core 3.5 + * http://zTree.me/ + * + * Copyright (c) 2010 Hunter.z + * + * Licensed same as jquery - MIT License + * http://www.opensource.org/licenses/mit-license.php + * + * email: hunter.z@263.net + * Date: 2012-11-20 + */ +(function(k){var E,F,G,H,I,J,r={},K={},s={},L={treeId:"",treeObj:null,view:{addDiyDom:null,autoCancelSelected:!0,dblClickExpand:!0,expandSpeed:"fast",fontCss:{},nameIsHTML:!1,selectedMulti:!0,showIcon:!0,showLine:!0,showTitle:!0},data:{key:{children:"children",name:"name",title:"",url:"url"},simpleData:{enable:!1,idKey:"id",pIdKey:"pId",rootPId:null},keep:{parent:!1,leaf:!1}},async:{enable:!1,contentType:"application/x-www-form-urlencoded",type:"post",dataType:"text",url:"",autoParam:[],otherParam:[], +dataFilter:null},callback:{beforeAsync:null,beforeClick:null,beforeDblClick:null,beforeRightClick:null,beforeMouseDown:null,beforeMouseUp:null,beforeExpand:null,beforeCollapse:null,beforeRemove:null,onAsyncError:null,onAsyncSuccess:null,onNodeCreated:null,onClick:null,onDblClick:null,onRightClick:null,onMouseDown:null,onMouseUp:null,onExpand:null,onCollapse:null,onRemove:null}},t=[function(b){var a=b.treeObj,c=e.event;a.bind(c.NODECREATED,function(a,c,h){j.apply(b.callback.onNodeCreated,[a,c,h])}); +a.bind(c.CLICK,function(a,c,h,l,g){j.apply(b.callback.onClick,[c,h,l,g])});a.bind(c.EXPAND,function(a,c,h){j.apply(b.callback.onExpand,[a,c,h])});a.bind(c.COLLAPSE,function(a,c,h){j.apply(b.callback.onCollapse,[a,c,h])});a.bind(c.ASYNC_SUCCESS,function(a,c,h,l){j.apply(b.callback.onAsyncSuccess,[a,c,h,l])});a.bind(c.ASYNC_ERROR,function(a,c,h,l,g,e){j.apply(b.callback.onAsyncError,[a,c,h,l,g,e])})}],u=[function(b){var a=e.event;b.treeObj.unbind(a.NODECREATED).unbind(a.CLICK).unbind(a.EXPAND).unbind(a.COLLAPSE).unbind(a.ASYNC_SUCCESS).unbind(a.ASYNC_ERROR)}], +v=[function(b){var a=g.getCache(b);a||(a={},g.setCache(b,a));a.nodes=[];a.doms=[]}],w=[function(b,a,c,d,f,h){if(c){var l=g.getRoot(b),e=b.data.key.children;c.level=a;c.tId=b.treeId+"_"+ ++l.zId;c.parentTId=d?d.tId:null;if(c[e]&&c[e].length>0){if(typeof c.open=="string")c.open=j.eqs(c.open,"true");c.open=!!c.open;c.isParent=!0;c.zAsync=!0}else{c.open=!1;if(typeof c.isParent=="string")c.isParent=j.eqs(c.isParent,"true");c.isParent=!!c.isParent;c.zAsync=!c.isParent}c.isFirstNode=f;c.isLastNode=h;c.getParentNode= +function(){return g.getNodeCache(b,c.parentTId)};c.getPreNode=function(){return g.getPreNode(b,c)};c.getNextNode=function(){return g.getNextNode(b,c)};c.isAjaxing=!1;g.fixPIdKeyValue(b,c)}}],x=[function(b){var a=b.target,c=g.getSetting(b.data.treeId),d="",f=null,h="",l="",i=null,n=null,q=null;if(j.eqs(b.type,"mousedown"))l="mousedown";else if(j.eqs(b.type,"mouseup"))l="mouseup";else if(j.eqs(b.type,"contextmenu"))l="contextmenu";else if(j.eqs(b.type,"click"))if(j.eqs(a.tagName,"span")&&a.getAttribute("treeNode"+ +e.id.SWITCH)!==null)d=(k(a).parent("li").get(0)||k(a).parentsUntil("li").parent().get(0)).id,h="switchNode";else{if(q=j.getMDom(c,a,[{tagName:"a",attrName:"treeNode"+e.id.A}]))d=(k(q).parent("li").get(0)||k(q).parentsUntil("li").parent().get(0)).id,h="clickNode"}else if(j.eqs(b.type,"dblclick")&&(l="dblclick",q=j.getMDom(c,a,[{tagName:"a",attrName:"treeNode"+e.id.A}])))d=(k(q).parent("li").get(0)||k(q).parentsUntil("li").parent().get(0)).id,h="switchNode";if(l.length>0&&d.length==0&&(q=j.getMDom(c, +a,[{tagName:"a",attrName:"treeNode"+e.id.A}])))d=(k(q).parent("li").get(0)||k(q).parentsUntil("li").parent().get(0)).id;if(d.length>0)switch(f=g.getNodeCache(c,d),h){case "switchNode":f.isParent?j.eqs(b.type,"click")||j.eqs(b.type,"dblclick")&&j.apply(c.view.dblClickExpand,[c.treeId,f],c.view.dblClickExpand)?i=E:h="":h="";break;case "clickNode":i=F}switch(l){case "mousedown":n=G;break;case "mouseup":n=H;break;case "dblclick":n=I;break;case "contextmenu":n=J}return{stop:!1,node:f,nodeEventType:h,nodeEventCallback:i, +treeEventType:l,treeEventCallback:n}}],y=[function(b){var a=g.getRoot(b);a||(a={},g.setRoot(b,a));a[b.data.key.children]=[];a.expandTriggerFlag=!1;a.curSelectedList=[];a.noSelection=!0;a.createdNodes=[];a.zId=0;a._ver=(new Date).getTime()}],z=[],A=[],B=[],C=[],D=[],g={addNodeCache:function(b,a){g.getCache(b).nodes[g.getNodeCacheId(a.tId)]=a},getNodeCacheId:function(b){return b.substring(b.lastIndexOf("_")+1)},addAfterA:function(b){A.push(b)},addBeforeA:function(b){z.push(b)},addInnerAfterA:function(b){C.push(b)}, +addInnerBeforeA:function(b){B.push(b)},addInitBind:function(b){t.push(b)},addInitUnBind:function(b){u.push(b)},addInitCache:function(b){v.push(b)},addInitNode:function(b){w.push(b)},addInitProxy:function(b){x.push(b)},addInitRoot:function(b){y.push(b)},addNodesData:function(b,a,c){var d=b.data.key.children;a[d]||(a[d]=[]);if(a[d].length>0)a[d][a[d].length-1].isLastNode=!1,i.setNodeLineIcos(b,a[d][a[d].length-1]);a.isParent=!0;a[d]=a[d].concat(c)},addSelectedNode:function(b,a){var c=g.getRoot(b);g.isSelectedNode(b, +a)||c.curSelectedList.push(a)},addCreatedNode:function(b,a){(b.callback.onNodeCreated||b.view.addDiyDom)&&g.getRoot(b).createdNodes.push(a)},addZTreeTools:function(b){D.push(b)},exSetting:function(b){k.extend(!0,L,b)},fixPIdKeyValue:function(b,a){b.data.simpleData.enable&&(a[b.data.simpleData.pIdKey]=a.parentTId?a.getParentNode()[b.data.simpleData.idKey]:b.data.simpleData.rootPId)},getAfterA:function(b,a,c){for(var d=0,f=A.length;d-1&&h.push(a[l]),h=h.concat(g.getNodesByParamFuzzy(b,a[l][f],c,d));return h},getNodesByFilter:function(b,a,c,d,f){if(!a)return d?null:[];for(var h=b.data.key.children,l=d?null: +[],e=0,i=a.length;e0)},clone:function(b){if(b===null)return null;var a=b.constructor===Array?[]:{},c;for(c in b)b.hasOwnProperty(c)&&(a[c]=typeof b[c]==="object"?arguments.callee(b[c]):b[c]);return a},eqs:function(b,a){return b.toLowerCase()===a.toLowerCase()},isArray:function(b){return Object.prototype.toString.apply(b)=== +"[object Array]"},getMDom:function(b,a,c){if(!a)return null;for(;a&&a.id!==b.treeId;){for(var d=0,f=c.length;a.tagName&&d0&&(m=i.appendNodes(b,a+1,o[j],o,f,h&&o.open));h&&(i.makeDOMNodeMainBefore(e,b,o),i.makeDOMNodeLine(e,b,o),g.getBeforeA(b,o,e),i.makeDOMNodeNameBefore(e,b,o),g.getInnerBeforeA(b,o,e),i.makeDOMNodeIcon(e,b,o),g.getInnerAfterA(b,o,e),i.makeDOMNodeNameAfter(e,b,o),g.getAfterA(b,o,e),o.isParent&&o.open&&i.makeUlHtml(b,o,e,m.join("")), +i.makeDOMNodeMainAfter(e,b,o),g.addCreatedNode(b,o))}return e},appendParentULDom:function(b,a){var c=[],d=k("#"+a.tId),f=k("#"+a.tId+e.id.UL),h=i.appendNodes(b,a.level+1,a[b.data.key.children],a,!1,!0);i.makeUlHtml(b,a,c,h.join(""));!d.get(0)&&a.parentTId&&(i.appendParentULDom(b,a.getParentNode()),d=k("#"+a.tId));f.get(0)&&f.remove();d.append(c.join(""))},asyncNode:function(b,a,c,d){var f,h;if(a&&!a.isParent)return j.apply(d),!1;else if(a&&a.isAjaxing)return!1;else if(j.apply(b.callback.beforeAsync, +[b.treeId,a],!0)==!1)return j.apply(d),!1;if(a)a.isAjaxing=!0,k("#"+a.tId+e.id.ICON).attr({style:"","class":"button ico_loading"});var l=b.async.contentType=="application/json",p=l?"{":"",n="";for(f=0,h=b.async.autoParam.length;a&&f1&&(o=m[1],m=m[0]);l?(n=typeof a[m]=="string"?'"':"",p+='"'+o+('":'+n+a[m]).replace(/'/g,"\\'")+n+","):p+=o+("="+a[m]).replace(/&/g,"%26")+"&"}if(j.isArray(b.async.otherParam))for(f=0,h=b.async.otherParam.length;f< +h;f+=2)l?(n=typeof b.async.otherParam[f+1]=="string"?'"':"",p+='"'+b.async.otherParam[f]+('":'+n+b.async.otherParam[f+1]).replace(/'/g,"\\'")+n+","):p+=b.async.otherParam[f]+("="+b.async.otherParam[f+1]).replace(/&/g,"%26")+"&";else for(var r in b.async.otherParam)l?(n=typeof b.async.otherParam[r]=="string"?'"':"",p+='"'+r+('":'+n+b.async.otherParam[r]).replace(/'/g,"\\'")+n+","):p+=r+("="+b.async.otherParam[r]).replace(/&/g,"%26")+"&";p.length>1&&(p=p.substring(0,p.length-1));l&&(p+="}");var s=g.getRoot(b)._ver; +k.ajax({contentType:b.async.contentType,type:b.async.type,url:j.apply(b.async.url,[b.treeId,a],b.async.url),data:p,dataType:b.async.dataType,success:function(f){if(s==g.getRoot(b)._ver){var h=[];try{h=!f||f.length==0?[]:typeof f=="string"?eval("("+f+")"):f}catch(l){h=f}if(a)a.isAjaxing=null,a.zAsync=!0;i.setNodeLineIcos(b,a);h&&h!==""?(h=j.apply(b.async.dataFilter,[b.treeId,a,h],h),i.addNodes(b,a,h?j.clone(h):[],!!c)):i.addNodes(b,a,[],!!c);b.treeObj.trigger(e.event.ASYNC_SUCCESS,[b.treeId,a,f]); +j.apply(d)}},error:function(c,d,f){if(s==g.getRoot(b)._ver){if(a)a.isAjaxing=null;i.setNodeLineIcos(b,a);b.treeObj.trigger(e.event.ASYNC_ERROR,[b.treeId,a,c,d,f])}}});return!0},cancelPreSelectedNode:function(b,a){for(var c=g.getRoot(b).curSelectedList,d=c.length-1;d>=0;d--)if(!a||a===c[d])if(k("#"+c[d].tId+e.id.A).removeClass(e.node.CURSELECTED),a){g.removeSelectedNode(b,a);break}if(!a)g.getRoot(b).curSelectedList=[]},createNodeCallback:function(b){if(b.callback.onNodeCreated||b.view.addDiyDom)for(var a= +g.getRoot(b);a.createdNodes.length>0;){var c=a.createdNodes.shift();j.apply(b.view.addDiyDom,[b.treeId,c]);b.callback.onNodeCreated&&b.treeObj.trigger(e.event.NODECREATED,[b.treeId,c])}},createNodes:function(b,a,c,d){if(c&&c.length!=0){var f=g.getRoot(b),h=b.data.key.children,h=!d||d.open||!!k("#"+d[h][0].tId).get(0);f.createdNodes=[];a=i.appendNodes(b,a,c,d,!0,h);d?(d=k("#"+d.tId+e.id.UL),d.get(0)&&d.append(a.join(""))):b.treeObj.append(a.join(""));i.createNodeCallback(b)}},destroy:function(b){b&& +(g.initCache(b),g.initRoot(b),m.unbindTree(b),m.unbindEvent(b),b.treeObj.empty())},expandCollapseNode:function(b,a,c,d,f){var h=g.getRoot(b),l=b.data.key.children;if(a){if(h.expandTriggerFlag){var p=f,f=function(){p&&p();a.open?b.treeObj.trigger(e.event.EXPAND,[b.treeId,a]):b.treeObj.trigger(e.event.COLLAPSE,[b.treeId,a])};h.expandTriggerFlag=!1}if(!a.open&&a.isParent&&(!k("#"+a.tId+e.id.UL).get(0)||a[l]&&a[l].length>0&&!k("#"+a[l][0].tId).get(0)))i.appendParentULDom(b,a),i.createNodeCallback(b); +if(a.open==c)j.apply(f,[]);else{var c=k("#"+a.tId+e.id.UL),h=k("#"+a.tId+e.id.SWITCH),n=k("#"+a.tId+e.id.ICON);a.isParent?(a.open=!a.open,a.iconOpen&&a.iconClose&&n.attr("style",i.makeNodeIcoStyle(b,a)),a.open?(i.replaceSwitchClass(a,h,e.folder.OPEN),i.replaceIcoClass(a,n,e.folder.OPEN),d==!1||b.view.expandSpeed==""?(c.show(),j.apply(f,[])):a[l]&&a[l].length>0?c.slideDown(b.view.expandSpeed,f):(c.show(),j.apply(f,[]))):(i.replaceSwitchClass(a,h,e.folder.CLOSE),i.replaceIcoClass(a,n,e.folder.CLOSE), +d==!1||b.view.expandSpeed==""||!(a[l]&&a[l].length>0)?(c.hide(),j.apply(f,[])):c.slideUp(b.view.expandSpeed,f))):j.apply(f,[])}}else j.apply(f,[])},expandCollapseParentNode:function(b,a,c,d,f){a&&(a.parentTId?(i.expandCollapseNode(b,a,c,d),a.parentTId&&i.expandCollapseParentNode(b,a.getParentNode(),c,d,f)):i.expandCollapseNode(b,a,c,d,f))},expandCollapseSonNode:function(b,a,c,d,f){var h=g.getRoot(b),e=b.data.key.children,h=a?a[e]:h[e],e=a?!1:d,j=g.getRoot(b).expandTriggerFlag;g.getRoot(b).expandTriggerFlag= +!1;if(h)for(var k=0,m=h.length;k/g,">");b.push("",d,"")},makeDOMNodeLine:function(b, +a,c){b.push("")},makeDOMNodeMainAfter:function(b){b.push("
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • ")},makeDOMNodeMainBefore:function(b,a,c){b.push("
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • ")},makeDOMNodeNameAfter:function(b){b.push("")},makeDOMNodeNameBefore:function(b,a,c){var d=g.getNodeTitle(a,c),f=i.makeNodeUrl(a,c),h=i.makeNodeFontCss(a,c),l=[],k;for(k in h)l.push(k,":",h[k], +";");b.push("0?"href='"+f+"'":""," target='",i.makeNodeTarget(c),"' style='",l.join(""),"'");j.apply(a.view.showTitle,[a.treeId,c],a.view.showTitle)&&d&&b.push("title='",d.replace(/'/g,"'").replace(//g,">"),"'");b.push(">")},makeNodeFontCss:function(b,a){var c=j.apply(b.view.fontCss,[b.treeId,a],b.view.fontCss);return c&&typeof c!="function"?c:{}},makeNodeIcoClass:function(b, +a){var c=["ico"];a.isAjaxing||(c[0]=(a.iconSkin?a.iconSkin+"_":"")+c[0],a.isParent?c.push(a.open?e.folder.OPEN:e.folder.CLOSE):c.push(e.folder.DOCU));return"button "+c.join("_")},makeNodeIcoStyle:function(b,a){var c=[];if(!a.isAjaxing){var d=a.isParent&&a.iconOpen&&a.iconClose?a.open?a.iconOpen:a.iconClose:a.icon;d&&c.push("background:url(",d,") 0 0 no-repeat;");(b.view.showIcon==!1||!j.apply(b.view.showIcon,[b.treeId,a],!0))&&c.push("width:0px;height:0px;")}return c.join("")},makeNodeLineClass:function(b, +a){var c=[];b.view.showLine?a.level==0&&a.isFirstNode&&a.isLastNode?c.push(e.line.ROOT):a.level==0&&a.isFirstNode?c.push(e.line.ROOTS):a.isLastNode?c.push(e.line.BOTTOM):c.push(e.line.CENTER):c.push(e.line.NOLINE);a.isParent?c.push(a.open?e.folder.OPEN:e.folder.CLOSE):c.push(e.folder.DOCU);return i.makeNodeLineClassEx(a)+c.join("_")},makeNodeLineClassEx:function(b){return"button level"+b.level+" switch "},makeNodeTarget:function(b){return b.target||"_blank"},makeNodeUrl:function(b,a){var c=b.data.key.url; +return a[c]?a[c]:null},makeUlHtml:function(b,a,c,d){c.push("
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              ");c.push(d);c.push("
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ")},makeUlLineClass:function(b,a){return b.view.showLine&&!a.isLastNode?e.line.LINE:""},removeChildNodes:function(b,a){if(a){var c=b.data.key.children,d=a[c];if(d){for(var f=0,h=d.length;f0)a[c][0].isFirstNode=!0},setLastNode:function(b,a){var c=b.data.key.children,d=a[c].length;if(d>0)a[c][d-1].isLastNode=!0},removeNode:function(b,a){var c=g.getRoot(b),d=b.data.key.children,f=a.parentTId?a.getParentNode():c;a.isFirstNode=!1;a.isLastNode= +!1;a.getPreNode=function(){return null};a.getNextNode=function(){return null};if(g.getNodeCache(b,a.tId)){k("#"+a.tId).remove();g.removeNodeCache(b,a);g.removeSelectedNode(b,a);for(var h=0,l=f[d].length;h0){var n=f[d][h-1],h=k("#"+n.tId+e.id.UL),l=k("#"+n.tId+e.id.SWITCH);j=k("#"+n.tId+e.id.ICON);f==c?f[d].length==1?i.replaceSwitchClass(n,l,e.line.ROOT):(c=k("#"+f[d][0].tId+e.id.SWITCH),i.replaceSwitchClass(f[d][0],c,e.line.ROOTS),i.replaceSwitchClass(n,l,e.line.BOTTOM)):i.replaceSwitchClass(n,l,e.line.BOTTOM);h.removeClass(e.line.LINE)}}},replaceIcoClass:function(b,a,c){if(a&&!b.isAjaxing&&(b=a.attr("class"),b!=void 0)){b=b.split("_"); +switch(c){case e.folder.OPEN:case e.folder.CLOSE:case e.folder.DOCU:b[b.length-1]=c}a.attr("class",b.join("_"))}},replaceSwitchClass:function(b,a,c){if(a){var d=a.attr("class");if(d!=void 0){d=d.split("_");switch(c){case e.line.ROOT:case e.line.ROOTS:case e.line.CENTER:case e.line.BOTTOM:case e.line.NOLINE:d[0]=i.makeNodeLineClassEx(b)+c;break;case e.folder.OPEN:case e.folder.CLOSE:case e.folder.DOCU:d[1]=c}a.attr("class",d.join("_"));c!==e.folder.DOCU?a.removeAttr("disabled"):a.attr("disabled","disabled")}}}, +selectNode:function(b,a,c){c||i.cancelPreSelectedNode(b);k("#"+a.tId+e.id.A).addClass(e.node.CURSELECTED);g.addSelectedNode(b,a)},setNodeFontCss:function(b,a){var c=k("#"+a.tId+e.id.A),d=i.makeNodeFontCss(b,a);d&&c.css(d)},setNodeLineIcos:function(b,a){if(a){var c=k("#"+a.tId+e.id.SWITCH),d=k("#"+a.tId+e.id.UL),f=k("#"+a.tId+e.id.ICON),h=i.makeUlLineClass(b,a);h.length==0?d.removeClass(e.line.LINE):d.addClass(h);c.attr("class",i.makeNodeLineClass(b,a));a.isParent?c.removeAttr("disabled"):c.attr("disabled", +"disabled");f.removeAttr("style");f.attr("style",i.makeNodeIcoStyle(b,a));f.attr("class",i.makeNodeIcoClass(b,a))}},setNodeName:function(b,a){var c=g.getNodeTitle(b,a),d=k("#"+a.tId+e.id.SPAN);d.empty();b.view.nameIsHTML?d.html(g.getNodeName(b,a)):d.text(g.getNodeName(b,a));j.apply(b.view.showTitle,[b.treeId,a],b.view.showTitle)&&k("#"+a.tId+e.id.A).attr("title",!c?"":c)},setNodeTarget:function(b){k("#"+b.tId+e.id.A).attr("target",i.makeNodeTarget(b))},setNodeUrl:function(b,a){var c=k("#"+a.tId+e.id.A), +d=i.makeNodeUrl(b,a);d==null||d.length==0?c.removeAttr("href"):c.attr("href",d)},switchNode:function(b,a){a.open||!j.canAsync(b,a)?i.expandCollapseNode(b,a,!a.open):b.async.enable?i.asyncNode(b,a)||i.expandCollapseNode(b,a,!a.open):a&&i.expandCollapseNode(b,a,!a.open)}};k.fn.zTree={consts:{event:{NODECREATED:"ztree_nodeCreated",CLICK:"ztree_click",EXPAND:"ztree_expand",COLLAPSE:"ztree_collapse",ASYNC_SUCCESS:"ztree_async_success",ASYNC_ERROR:"ztree_async_error"},id:{A:"_a",ICON:"_ico",SPAN:"_span", +SWITCH:"_switch",UL:"_ul"},line:{ROOT:"root",ROOTS:"roots",CENTER:"center",BOTTOM:"bottom",NOLINE:"noline",LINE:"line"},folder:{OPEN:"open",CLOSE:"close",DOCU:"docu"},node:{CURSELECTED:"curSelectedNode"}},_z:{tools:j,view:i,event:m,data:g},getZTreeObj:function(b){return(b=g.getZTreeTools(b))?b:null},destroy:function(b){if(b&&b.length>0)i.destroy(g.getSetting(b));else for(var a in r)i.destroy(r[a])},init:function(b,a,c){var d=j.clone(L);k.extend(!0,d,a);d.treeId=b.attr("id");d.treeObj=b;d.treeObj.empty(); +r[d.treeId]=d;if(k.browser.msie&&parseInt(k.browser.version)<7)d.view.expandSpeed="";g.initRoot(d);b=g.getRoot(d);a=d.data.key.children;c=c?j.clone(j.isArray(c)?c:[c]):[];b[a]=d.data.simpleData.enable?g.transformTozTreeFormat(d,c):c;g.initCache(d);m.unbindTree(d);m.bindTree(d);m.unbindEvent(d);m.bindEvent(d);c={setting:d,addNodes:function(a,b,c){function e(){i.addNodes(d,a,g,c==!0)}if(!b)return null;a||(a=null);if(a&&!a.isParent&&d.data.keep.leaf)return null;var g=j.clone(j.isArray(b)?b:[b]);j.canAsync(d, +a)?i.asyncNode(d,a,c,e):e();return g},cancelSelectedNode:function(a){i.cancelPreSelectedNode(this.setting,a)},destroy:function(){i.destroy(this.setting)},expandAll:function(a){a=!!a;i.expandCollapseSonNode(this.setting,null,a,!0);return a},expandNode:function(a,b,c,e,m){if(!a||!a.isParent)return null;b!==!0&&b!==!1&&(b=!a.open);if((m=!!m)&&b&&j.apply(d.callback.beforeExpand,[d.treeId,a],!0)==!1)return null;else if(m&&!b&&j.apply(d.callback.beforeCollapse,[d.treeId,a],!0)==!1)return null;b&&a.parentTId&& +i.expandCollapseParentNode(this.setting,a.getParentNode(),b,!1);if(b===a.open&&!c)return null;g.getRoot(d).expandTriggerFlag=m;if(c)i.expandCollapseSonNode(this.setting,a,b,!0,function(){if(e!==!1)try{k("#"+a.tId).focus().blur()}catch(b){}});else if(a.open=!b,i.switchNode(this.setting,a),e!==!1)try{k("#"+a.tId).focus().blur()}catch(q){}return b},getNodes:function(){return g.getNodes(this.setting)},getNodeByParam:function(a,b,c){return!a?null:g.getNodeByParam(this.setting,c?c[this.setting.data.key.children]: +g.getNodes(this.setting),a,b)},getNodeByTId:function(a){return g.getNodeCache(this.setting,a)},getNodesByParam:function(a,b,c){return!a?null:g.getNodesByParam(this.setting,c?c[this.setting.data.key.children]:g.getNodes(this.setting),a,b)},getNodesByParamFuzzy:function(a,b,c){return!a?null:g.getNodesByParamFuzzy(this.setting,c?c[this.setting.data.key.children]:g.getNodes(this.setting),a,b)},getNodesByFilter:function(a,b,c,d){b=!!b;return!a||typeof a!="function"?b?null:[]:g.getNodesByFilter(this.setting, +c?c[this.setting.data.key.children]:g.getNodes(this.setting),a,b,d)},getNodeIndex:function(a){if(!a)return null;for(var b=d.data.key.children,c=a.parentTId?a.getParentNode():g.getRoot(this.setting),e=0,i=c[b].length;e0?i.createNodes(d,0,b[a]):d.async.enable&&d.async.url&&d.async.url!==""&&i.asyncNode(d);return c}};var M=k.fn.zTree,e=M.consts})(jQuery); diff --git a/alive-admin/target/classes/static/ztree/js/jquery.ztree.excheck-3.5.js b/alive-admin/target/classes/static/ztree/js/jquery.ztree.excheck-3.5.js new file mode 100644 index 0000000..a47c6ad --- /dev/null +++ b/alive-admin/target/classes/static/ztree/js/jquery.ztree.excheck-3.5.js @@ -0,0 +1,621 @@ +/* + * JQuery zTree excheck 3.5 + * http://zTree.me/ + * + * Copyright (c) 2010 Hunter.z + * + * Licensed same as jquery - MIT License + * http://www.opensource.org/licenses/mit-license.php + * + * email: hunter.z@263.net + * Date: 2012-11-20 + */ +(function($){ + //default consts of excheck + var _consts = { + event: { + CHECK: "ztree_check" + }, + id: { + CHECK: "_check" + }, + checkbox: { + STYLE: "checkbox", + DEFAULT: "chk", + DISABLED: "disable", + FALSE: "false", + TRUE: "true", + FULL: "full", + PART: "part", + FOCUS: "focus" + }, + radio: { + STYLE: "radio", + TYPE_ALL: "all", + TYPE_LEVEL: "level" + } + }, + //default setting of excheck + _setting = { + check: { + enable: false, + autoCheckTrigger: false, + chkStyle: _consts.checkbox.STYLE, + nocheckInherit: false, + radioType: _consts.radio.TYPE_LEVEL, + chkboxType: { + "Y": "ps", + "N": "ps" + } + }, + data: { + key: { + checked: "checked" + } + }, + callback: { + beforeCheck:null, + onCheck:null + } + }, + //default root of excheck + _initRoot = function (setting) { + var r = data.getRoot(setting); + r.radioCheckedList = []; + }, + //default cache of excheck + _initCache = function(treeId) {}, + //default bind event of excheck + _bindEvent = function(setting) { + var o = setting.treeObj, + c = consts.event; + o.bind(c.CHECK, function (event, srcEvent, treeId, node) { + tools.apply(setting.callback.onCheck, [!!srcEvent?srcEvent : event, treeId, node]); + }); + }, + _unbindEvent = function(setting) { + var o = setting.treeObj, + c = consts.event; + o.unbind(c.CHECK); + }, + //default event proxy of excheck + _eventProxy = function(e) { + var target = e.target, + setting = data.getSetting(e.data.treeId), + tId = "", node = null, + nodeEventType = "", treeEventType = "", + nodeEventCallback = null, treeEventCallback = null; + + if (tools.eqs(e.type, "mouseover")) { + if (setting.check.enable && tools.eqs(target.tagName, "span") && target.getAttribute("treeNode"+ consts.id.CHECK) !== null) { + tId = target.parentNode.id; + nodeEventType = "mouseoverCheck"; + } + } else if (tools.eqs(e.type, "mouseout")) { + if (setting.check.enable && tools.eqs(target.tagName, "span") && target.getAttribute("treeNode"+ consts.id.CHECK) !== null) { + tId = target.parentNode.id; + nodeEventType = "mouseoutCheck"; + } + } else if (tools.eqs(e.type, "click")) { + if (setting.check.enable && tools.eqs(target.tagName, "span") && target.getAttribute("treeNode"+ consts.id.CHECK) !== null) { + tId = target.parentNode.id; + nodeEventType = "checkNode"; + } + } + if (tId.length>0) { + node = data.getNodeCache(setting, tId); + switch (nodeEventType) { + case "checkNode" : + nodeEventCallback = _handler.onCheckNode; + break; + case "mouseoverCheck" : + nodeEventCallback = _handler.onMouseoverCheck; + break; + case "mouseoutCheck" : + nodeEventCallback = _handler.onMouseoutCheck; + break; + } + } + var proxyResult = { + stop: false, + node: node, + nodeEventType: nodeEventType, + nodeEventCallback: nodeEventCallback, + treeEventType: treeEventType, + treeEventCallback: treeEventCallback + }; + return proxyResult + }, + //default init node of excheck + _initNode = function(setting, level, n, parentNode, isFirstNode, isLastNode, openFlag) { + if (!n) return; + var checkedKey = setting.data.key.checked; + if (typeof n[checkedKey] == "string") n[checkedKey] = tools.eqs(n[checkedKey], "true"); + n[checkedKey] = !!n[checkedKey]; + n.checkedOld = n[checkedKey]; + if (typeof n.nocheck == "string") n.nocheck = tools.eqs(n.nocheck, "true"); + n.nocheck = !!n.nocheck || (setting.check.nocheckInherit && parentNode && !!parentNode.nocheck); + if (typeof n.chkDisabled == "string") n.chkDisabled = tools.eqs(n.chkDisabled, "true"); + n.chkDisabled = !!n.chkDisabled || (parentNode && !!parentNode.chkDisabled); + if (typeof n.halfCheck == "string") n.halfCheck = tools.eqs(n.halfCheck, "true"); + n.halfCheck = !!n.halfCheck; + n.check_Child_State = -1; + n.check_Focus = false; + n.getCheckStatus = function() {return data.getCheckStatus(setting, n);}; + }, + //add dom for check + _beforeA = function(setting, node, html) { + var checkedKey = setting.data.key.checked; + if (setting.check.enable) { + data.makeChkFlag(setting, node); + if (setting.check.chkStyle == consts.radio.STYLE && setting.check.radioType == consts.radio.TYPE_ALL && node[checkedKey] ) { + var r = data.getRoot(setting); + r.radioCheckedList.push(node); + } + html.push(""); + } + }, + //update zTreeObj, add method of check + _zTreeTools = function(setting, zTreeTools) { + zTreeTools.checkNode = function(node, checked, checkTypeFlag, callbackFlag) { + var checkedKey = this.setting.data.key.checked; + if (node.chkDisabled === true) return; + if (checked !== true && checked !== false) { + checked = !node[checkedKey]; + } + callbackFlag = !!callbackFlag; + + if (node[checkedKey] === checked && !checkTypeFlag) { + return; + } else if (callbackFlag && tools.apply(this.setting.callback.beforeCheck, [this.setting.treeId, node], true) == false) { + return; + } + if (tools.uCanDo(this.setting) && this.setting.check.enable && node.nocheck !== true) { + node[checkedKey] = checked; + var checkObj = $("#" + node.tId + consts.id.CHECK); + if (checkTypeFlag || this.setting.check.chkStyle === consts.radio.STYLE) view.checkNodeRelation(this.setting, node); + view.setChkClass(this.setting, checkObj, node); + view.repairParentChkClassWithSelf(this.setting, node); + if (callbackFlag) { + setting.treeObj.trigger(consts.event.CHECK, [null, setting.treeId, node]); + } + } + } + + zTreeTools.checkAllNodes = function(checked) { + view.repairAllChk(this.setting, !!checked); + } + + zTreeTools.getCheckedNodes = function(checked) { + var childKey = this.setting.data.key.children; + checked = (checked !== false); + return data.getTreeCheckedNodes(this.setting, data.getRoot(setting)[childKey], checked); + } + + zTreeTools.getChangeCheckedNodes = function() { + var childKey = this.setting.data.key.children; + return data.getTreeChangeCheckedNodes(this.setting, data.getRoot(setting)[childKey]); + } + + zTreeTools.setChkDisabled = function(node, disabled) { + disabled = !!disabled; + view.repairSonChkDisabled(this.setting, node, disabled); + if (!disabled) view.repairParentChkDisabled(this.setting, node, disabled); + } + + var _updateNode = zTreeTools.updateNode; + zTreeTools.updateNode = function(node, checkTypeFlag) { + if (_updateNode) _updateNode.apply(zTreeTools, arguments); + if (!node || !this.setting.check.enable) return; + var nObj = $("#" + node.tId); + if (nObj.get(0) && tools.uCanDo(this.setting)) { + var checkObj = $("#" + node.tId + consts.id.CHECK); + if (checkTypeFlag == true || this.setting.check.chkStyle === consts.radio.STYLE) view.checkNodeRelation(this.setting, node); + view.setChkClass(this.setting, checkObj, node); + view.repairParentChkClassWithSelf(this.setting, node); + } + } + }, + //method of operate data + _data = { + getRadioCheckedList: function(setting) { + var checkedList = data.getRoot(setting).radioCheckedList; + for (var i=0, j=checkedList.length; i -1 && node.check_Child_State < 2) : (node.check_Child_State > 0))) + }; + return r; + }, + getTreeCheckedNodes: function(setting, nodes, checked, results) { + if (!nodes) return []; + var childKey = setting.data.key.children, + checkedKey = setting.data.key.checked, + onlyOne = (checked && setting.check.chkStyle == consts.radio.STYLE && setting.check.radioType == consts.radio.TYPE_ALL); + results = !results ? [] : results; + for (var i = 0, l = nodes.length; i < l; i++) { + if (nodes[i].nocheck !== true && nodes[i][checkedKey] == checked) { + results.push(nodes[i]); + if(onlyOne) { + break; + } + } + data.getTreeCheckedNodes(setting, nodes[i][childKey], checked, results); + if(onlyOne && results.length > 0) { + break; + } + } + return results; + }, + getTreeChangeCheckedNodes: function(setting, nodes, results) { + if (!nodes) return []; + var childKey = setting.data.key.children, + checkedKey = setting.data.key.checked; + results = !results ? [] : results; + for (var i = 0, l = nodes.length; i < l; i++) { + if (nodes[i].nocheck !== true && nodes[i][checkedKey] != nodes[i].checkedOld) { + results.push(nodes[i]); + } + data.getTreeChangeCheckedNodes(setting, nodes[i][childKey], results); + } + return results; + }, + makeChkFlag: function(setting, node) { + if (!node) return; + var childKey = setting.data.key.children, + checkedKey = setting.data.key.checked, + chkFlag = -1; + if (node[childKey]) { + var start = false; + for (var i = 0, l = node[childKey].length; i < l; i++) { + var cNode = node[childKey][i]; + var tmp = -1; + if (setting.check.chkStyle == consts.radio.STYLE) { + if (cNode.nocheck === true) { + tmp = cNode.check_Child_State; + } else if (cNode.halfCheck === true) { + tmp = 2; + } else if (cNode.nocheck !== true && cNode[checkedKey]) { + tmp = 2; + } else { + tmp = cNode.check_Child_State > 0 ? 2:0; + } + if (tmp == 2) { + chkFlag = 2; break; + } else if (tmp == 0){ + chkFlag = 0; + } + } else if (setting.check.chkStyle == consts.checkbox.STYLE) { + if (cNode.nocheck === true) { + tmp = cNode.check_Child_State; + } else if (cNode.halfCheck === true) { + tmp = 1; + } else if (cNode.nocheck !== true && cNode[checkedKey] ) { + tmp = (cNode.check_Child_State === -1 || cNode.check_Child_State === 2) ? 2 : 1; + } else { + tmp = (cNode.check_Child_State > 0) ? 1 : 0; + } + if (tmp === 1) { + chkFlag = 1; break; + } else if (tmp === 2 && start && tmp !== chkFlag) { + chkFlag = 1; break; + } else if (chkFlag === 2 && tmp > -1 && tmp < 2) { + chkFlag = 1; break; + } else if (tmp > -1) { + chkFlag = tmp; + } + if (!start) start = (cNode.nocheck !== true); + } + } + } + node.check_Child_State = chkFlag; + } + }, + //method of event proxy + _event = { + + }, + //method of event handler + _handler = { + onCheckNode: function (event, node) { + if (node.chkDisabled === true) return false; + var setting = data.getSetting(event.data.treeId), + checkedKey = setting.data.key.checked; + if (tools.apply(setting.callback.beforeCheck, [setting.treeId, node], true) == false) return true; + node[checkedKey] = !node[checkedKey]; + view.checkNodeRelation(setting, node); + var checkObj = $("#" + node.tId + consts.id.CHECK); + view.setChkClass(setting, checkObj, node); + view.repairParentChkClassWithSelf(setting, node); + setting.treeObj.trigger(consts.event.CHECK, [event, setting.treeId, node]); + return true; + }, + onMouseoverCheck: function(event, node) { + if (node.chkDisabled === true) return false; + var setting = data.getSetting(event.data.treeId), + checkObj = $("#" + node.tId + consts.id.CHECK); + node.check_Focus = true; + view.setChkClass(setting, checkObj, node); + return true; + }, + onMouseoutCheck: function(event, node) { + if (node.chkDisabled === true) return false; + var setting = data.getSetting(event.data.treeId), + checkObj = $("#" + node.tId + consts.id.CHECK); + node.check_Focus = false; + view.setChkClass(setting, checkObj, node); + return true; + } + }, + //method of tools for zTree + _tools = { + + }, + //method of operate ztree dom + _view = { + checkNodeRelation: function(setting, node) { + var pNode, i, l, + childKey = setting.data.key.children, + checkedKey = setting.data.key.checked, + r = consts.radio; + if (setting.check.chkStyle == r.STYLE) { + var checkedList = data.getRadioCheckedList(setting); + if (node[checkedKey]) { + if (setting.check.radioType == r.TYPE_ALL) { + for (i = checkedList.length-1; i >= 0; i--) { + pNode = checkedList[i]; + pNode[checkedKey] = false; + checkedList.splice(i, 1); + + view.setChkClass(setting, $("#" + pNode.tId + consts.id.CHECK), pNode); + if (pNode.parentTId != node.parentTId) { + view.repairParentChkClassWithSelf(setting, pNode); + } + } + checkedList.push(node); + } else { + var parentNode = (node.parentTId) ? node.getParentNode() : data.getRoot(setting); + for (i = 0, l = parentNode[childKey].length; i < l; i++) { + pNode = parentNode[childKey][i]; + if (pNode[checkedKey] && pNode != node) { + pNode[checkedKey] = false; + view.setChkClass(setting, $("#" + pNode.tId + consts.id.CHECK), pNode); + } + } + } + } else if (setting.check.radioType == r.TYPE_ALL) { + for (i = 0, l = checkedList.length; i < l; i++) { + if (node == checkedList[i]) { + checkedList.splice(i, 1); + break; + } + } + } + + } else { + if (node[checkedKey] && (!node[childKey] || node[childKey].length==0 || setting.check.chkboxType.Y.indexOf("s") > -1)) { + view.setSonNodeCheckBox(setting, node, true); + } + if (!node[checkedKey] && (!node[childKey] || node[childKey].length==0 || setting.check.chkboxType.N.indexOf("s") > -1)) { + view.setSonNodeCheckBox(setting, node, false); + } + if (node[checkedKey] && setting.check.chkboxType.Y.indexOf("p") > -1) { + view.setParentNodeCheckBox(setting, node, true); + } + if (!node[checkedKey] && setting.check.chkboxType.N.indexOf("p") > -1) { + view.setParentNodeCheckBox(setting, node, false); + } + } + }, + makeChkClass: function(setting, node) { + var checkedKey = setting.data.key.checked, + c = consts.checkbox, r = consts.radio, + fullStyle = ""; + if (node.chkDisabled === true) { + fullStyle = c.DISABLED; + } else if (node.halfCheck) { + fullStyle = c.PART; + } else if (setting.check.chkStyle == r.STYLE) { + fullStyle = (node.check_Child_State < 1)? c.FULL:c.PART; + } else { + fullStyle = node[checkedKey] ? ((node.check_Child_State === 2 || node.check_Child_State === -1) ? c.FULL:c.PART) : ((node.check_Child_State < 1)? c.FULL:c.PART); + } + var chkName = setting.check.chkStyle + "_" + (node[checkedKey] ? c.TRUE : c.FALSE) + "_" + fullStyle; + chkName = (node.check_Focus && node.chkDisabled !== true) ? chkName + "_" + c.FOCUS : chkName; + return "button " + c.DEFAULT + " " + chkName; + }, + repairAllChk: function(setting, checked) { + if (setting.check.enable && setting.check.chkStyle === consts.checkbox.STYLE) { + var checkedKey = setting.data.key.checked, + childKey = setting.data.key.children, + root = data.getRoot(setting); + for (var i = 0, l = root[childKey].length; i 0) { + view.repairParentChkClass(setting, node[childKey][0]); + } else { + view.repairParentChkClass(setting, node); + } + }, + repairSonChkDisabled: function(setting, node, chkDisabled) { + if (!node) return; + var childKey = setting.data.key.children; + if (node.chkDisabled != chkDisabled) { + node.chkDisabled = chkDisabled; + if (node.nocheck !== true) view.repairChkClass(setting, node); + } + if (node[childKey]) { + for (var i = 0, l = node[childKey].length; i < l; i++) { + var sNode = node[childKey][i]; + view.repairSonChkDisabled(setting, sNode, chkDisabled); + } + } + }, + repairParentChkDisabled: function(setting, node, chkDisabled) { + if (!node) return; + if (node.chkDisabled != chkDisabled) { + node.chkDisabled = chkDisabled; + if (node.nocheck !== true) view.repairChkClass(setting, node); + } + view.repairParentChkDisabled(setting, node.getParentNode(), chkDisabled); + }, + setChkClass: function(setting, obj, node) { + if (!obj) return; + if (node.nocheck === true) { + obj.hide(); + } else { + obj.show(); + } + obj.removeClass(); + obj.addClass(view.makeChkClass(setting, node)); + }, + setParentNodeCheckBox: function(setting, node, value, srcNode) { + var childKey = setting.data.key.children, + checkedKey = setting.data.key.checked, + checkObj = $("#" + node.tId + consts.id.CHECK); + if (!srcNode) srcNode = node; + data.makeChkFlag(setting, node); + if (node.nocheck !== true && node.chkDisabled !== true) { + node[checkedKey] = value; + view.setChkClass(setting, checkObj, node); + if (setting.check.autoCheckTrigger && node != srcNode && node.nocheck !== true) { + setting.treeObj.trigger(consts.event.CHECK, [setting.treeId, node]); + } + } + if (node.parentTId) { + var pSign = true; + if (!value) { + var pNodes = node.getParentNode()[childKey]; + for (var i = 0, l = pNodes.length; i < l; i++) { + if ((pNodes[i].nocheck !== true && pNodes[i][checkedKey]) + || (pNodes[i].nocheck === true && pNodes[i].check_Child_State > 0)) { + pSign = false; + break; + } + } + } + if (pSign) { + view.setParentNodeCheckBox(setting, node.getParentNode(), value, srcNode); + } + } + }, + setSonNodeCheckBox: function(setting, node, value, srcNode) { + if (!node) return; + var childKey = setting.data.key.children, + checkedKey = setting.data.key.checked, + checkObj = $("#" + node.tId + consts.id.CHECK); + if (!srcNode) srcNode = node; + + var hasDisable = false; + if (node[childKey]) { + for (var i = 0, l = node[childKey].length; i < l && node.chkDisabled !== true; i++) { + var sNode = node[childKey][i]; + view.setSonNodeCheckBox(setting, sNode, value, srcNode); + if (sNode.chkDisabled === true) hasDisable = true; + } + } + + if (node != data.getRoot(setting) && node.chkDisabled !== true) { + if (hasDisable && node.nocheck !== true) { + data.makeChkFlag(setting, node); + } + if (node.nocheck !== true) { + node[checkedKey] = value; + if (!hasDisable) node.check_Child_State = (node[childKey] && node[childKey].length > 0) ? (value ? 2 : 0) : -1; + } else { + node.check_Child_State = -1; + } + view.setChkClass(setting, checkObj, node); + if (setting.check.autoCheckTrigger && node != srcNode && node.nocheck !== true) { + setting.treeObj.trigger(consts.event.CHECK, [setting.treeId, node]); + } + } + + } + }, + + _z = { + tools: _tools, + view: _view, + event: _event, + data: _data + }; + $.extend(true, $.fn.zTree.consts, _consts); + $.extend(true, $.fn.zTree._z, _z); + + var zt = $.fn.zTree, + tools = zt._z.tools, + consts = zt.consts, + view = zt._z.view, + data = zt._z.data, + event = zt._z.event; + + data.exSetting(_setting); + data.addInitBind(_bindEvent); + data.addInitUnBind(_unbindEvent); + data.addInitCache(_initCache); + data.addInitNode(_initNode); + data.addInitProxy(_eventProxy); + data.addInitRoot(_initRoot); + data.addBeforeA(_beforeA); + data.addZTreeTools(_zTreeTools); + + var _createNodes = view.createNodes; + view.createNodes = function(setting, level, nodes, parentNode) { + if (_createNodes) _createNodes.apply(view, arguments); + if (!nodes) return; + view.repairParentChkClassWithSelf(setting, parentNode); + } + var _removeNode = view.removeNode; + view.removeNode = function(setting, node) { + var parentNode = node.getParentNode(); + if (_removeNode) _removeNode.apply(view, arguments); + if (!node || !parentNode) return; + view.repairChkClass(setting, parentNode); + view.repairParentChkClass(setting, parentNode); + } + + var _appendNodes = view.appendNodes; + view.appendNodes = function(setting, level, nodes, parentNode, initFlag, openFlag) { + var html = ""; + if (_appendNodes) { + html = _appendNodes.apply(view, arguments); + } + if (parentNode) { + data.makeChkFlag(setting, parentNode); + } + return html; + } +})(jQuery); \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/js/jquery.ztree.excheck-3.5.min.js b/alive-admin/target/classes/static/ztree/js/jquery.ztree.excheck-3.5.min.js new file mode 100644 index 0000000..ab9eccf --- /dev/null +++ b/alive-admin/target/classes/static/ztree/js/jquery.ztree.excheck-3.5.min.js @@ -0,0 +1,33 @@ +/* + * JQuery zTree excheck 3.5 + * http://zTree.me/ + * + * Copyright (c) 2010 Hunter.z + * + * Licensed same as jquery - MIT License + * http://www.opensource.org/licenses/mit-license.php + * + * email: hunter.z@263.net + * Date: 2012-11-20 + */ +(function(m){var p,q,r,n={event:{CHECK:"ztree_check"},id:{CHECK:"_check"},checkbox:{STYLE:"checkbox",DEFAULT:"chk",DISABLED:"disable",FALSE:"false",TRUE:"true",FULL:"full",PART:"part",FOCUS:"focus"},radio:{STYLE:"radio",TYPE_ALL:"all",TYPE_LEVEL:"level"}},v={check:{enable:!1,autoCheckTrigger:!1,chkStyle:n.checkbox.STYLE,nocheckInherit:!1,radioType:n.radio.TYPE_LEVEL,chkboxType:{Y:"ps",N:"ps"}},data:{key:{checked:"checked"}},callback:{beforeCheck:null,onCheck:null}};p=function(c,a){if(a.chkDisabled=== +!0)return!1;var b=f.getSetting(c.data.treeId),d=b.data.key.checked;if(k.apply(b.callback.beforeCheck,[b.treeId,a],!0)==!1)return!0;a[d]=!a[d];e.checkNodeRelation(b,a);d=m("#"+a.tId+j.id.CHECK);e.setChkClass(b,d,a);e.repairParentChkClassWithSelf(b,a);b.treeObj.trigger(j.event.CHECK,[c,b.treeId,a]);return!0};q=function(c,a){if(a.chkDisabled===!0)return!1;var b=f.getSetting(c.data.treeId),d=m("#"+a.tId+j.id.CHECK);a.check_Focus=!0;e.setChkClass(b,d,a);return!0};r=function(c,a){if(a.chkDisabled===!0)return!1; +var b=f.getSetting(c.data.treeId),d=m("#"+a.tId+j.id.CHECK);a.check_Focus=!1;e.setChkClass(b,d,a);return!0};m.extend(!0,m.fn.zTree.consts,n);m.extend(!0,m.fn.zTree._z,{tools:{},view:{checkNodeRelation:function(c,a){var b,d,g,l=c.data.key.children,h=c.data.key.checked;b=j.radio;if(c.check.chkStyle==b.STYLE){var i=f.getRadioCheckedList(c);if(a[h])if(c.check.radioType==b.TYPE_ALL){for(d=i.length-1;d>=0;d--)b=i[d],b[h]=!1,i.splice(d,1),e.setChkClass(c,m("#"+b.tId+j.id.CHECK),b),b.parentTId!=a.parentTId&& +e.repairParentChkClassWithSelf(c,b);i.push(a)}else{i=a.parentTId?a.getParentNode():f.getRoot(c);for(d=0,g=i[l].length;d-1)&&e.setSonNodeCheckBox(c,a,!0),!a[h]&&(!a[l]||a[l].length==0||c.check.chkboxType.N.indexOf("s")>-1)&&e.setSonNodeCheckBox(c,a,!1), +a[h]&&c.check.chkboxType.Y.indexOf("p")>-1&&e.setParentNodeCheckBox(c,a,!0),!a[h]&&c.check.chkboxType.N.indexOf("p")>-1&&e.setParentNodeCheckBox(c,a,!1)},makeChkClass:function(c,a){var b=c.data.key.checked,d=j.checkbox,g=j.radio,e="",e=a.chkDisabled===!0?d.DISABLED:a.halfCheck?d.PART:c.check.chkStyle==g.STYLE?a.check_Child_State<1?d.FULL:d.PART:a[b]?a.check_Child_State===2||a.check_Child_State===-1?d.FULL:d.PART:a.check_Child_State<1?d.FULL:d.PART,b=c.check.chkStyle+"_"+(a[b]?d.TRUE:d.FALSE)+"_"+ +e,b=a.check_Focus&&a.chkDisabled!==!0?b+"_"+d.FOCUS:b;return"button "+d.DEFAULT+" "+b},repairAllChk:function(c,a){if(c.check.enable&&c.check.chkStyle===j.checkbox.STYLE)for(var b=c.data.key.checked,d=c.data.key.children,g=f.getRoot(c),l=0,h=g[d].length;l0?e.repairParentChkClass(c,a[b][0]):e.repairParentChkClass(c,a)}},repairSonChkDisabled:function(c,a,b){if(a){var d=c.data.key.children;if(a.chkDisabled!=b)a.chkDisabled=b,a.nocheck!==!0&&e.repairChkClass(c,a);if(a[d])for(var g=0,l=a[d].length;g0){h=!1;break}h&&e.setParentNodeCheckBox(c,a.getParentNode(),b,d)}},setSonNodeCheckBox:function(c,a,b,d){if(a){var g=c.data.key.children,l=c.data.key.checked,h=m("#"+a.tId+j.id.CHECK);d||(d=a);var i=!1;if(a[g])for(var o=0,k=a[g].length;o0?b?2:0:-1}else a.check_Child_State=-1;e.setChkClass(c,h,a);c.check.autoCheckTrigger&&a!=d&&a.nocheck!==!0&&c.treeObj.trigger(j.event.CHECK,[c.treeId,a])}}}},event:{},data:{getRadioCheckedList:function(c){for(var a=f.getRoot(c).radioCheckedList,b=0,d=a.length;b-1&&a.check_Child_State<2:a.check_Child_State>0}},getTreeCheckedNodes:function(c,a,b,d){if(!a)return[];for(var g=c.data.key.children,e=c.data.key.checked,h=b&&c.check.chkStyle==j.radio.STYLE&&c.check.radioType==j.radio.TYPE_ALL,d=!d?[]:d,i=0,o=a.length;i0)break}return d},getTreeChangeCheckedNodes:function(c,a,b){if(!a)return[];for(var d=c.data.key.children,g=c.data.key.checked,b=!b?[]:b,e=0,h=a.length;e0?2:0,k==2){g=2;break}else k==0&&(g=0);else if(c.check.chkStyle==j.checkbox.STYLE){k=f.nocheck===!0?f.check_Child_State:f.halfCheck===!0?1:f.nocheck!==!0&&f[d]?f.check_Child_State===-1||f.check_Child_State===2?2:1:f.check_Child_State>0?1:0;if(k===1){g=1;break}else if(k===2&&e&&k!==g){g=1;break}else if(g===2&&k>-1&&k<2){g=1;break}else k>-1&&(g=k);e||(e=f.nocheck!==!0)}}a.check_Child_State=g}}}});var n=m.fn.zTree,k=n._z.tools, +j=n.consts,e=n._z.view,f=n._z.data;f.exSetting(v);f.addInitBind(function(c){c.treeObj.bind(j.event.CHECK,function(a,b,d,e){k.apply(c.callback.onCheck,[b?b:a,d,e])})});f.addInitUnBind(function(c){c.treeObj.unbind(j.event.CHECK)});f.addInitCache(function(){});f.addInitNode(function(c,a,b,d){if(b){a=c.data.key.checked;typeof b[a]=="string"&&(b[a]=k.eqs(b[a],"true"));b[a]=!!b[a];b.checkedOld=b[a];if(typeof b.nocheck=="string")b.nocheck=k.eqs(b.nocheck,"true");b.nocheck=!!b.nocheck||c.check.nocheckInherit&& +d&&!!d.nocheck;if(typeof b.chkDisabled=="string")b.chkDisabled=k.eqs(b.chkDisabled,"true");b.chkDisabled=!!b.chkDisabled||d&&!!d.chkDisabled;if(typeof b.halfCheck=="string")b.halfCheck=k.eqs(b.halfCheck,"true");b.halfCheck=!!b.halfCheck;b.check_Child_State=-1;b.check_Focus=!1;b.getCheckStatus=function(){return f.getCheckStatus(c,b)}}});f.addInitProxy(function(c){var a=c.target,b=f.getSetting(c.data.treeId),d="",e=null,l="",h=null;if(k.eqs(c.type,"mouseover")){if(b.check.enable&&k.eqs(a.tagName,"span")&& +a.getAttribute("treeNode"+j.id.CHECK)!==null)d=a.parentNode.id,l="mouseoverCheck"}else if(k.eqs(c.type,"mouseout")){if(b.check.enable&&k.eqs(a.tagName,"span")&&a.getAttribute("treeNode"+j.id.CHECK)!==null)d=a.parentNode.id,l="mouseoutCheck"}else if(k.eqs(c.type,"click")&&b.check.enable&&k.eqs(a.tagName,"span")&&a.getAttribute("treeNode"+j.id.CHECK)!==null)d=a.parentNode.id,l="checkNode";if(d.length>0)switch(e=f.getNodeCache(b,d),l){case "checkNode":h=p;break;case "mouseoverCheck":h=q;break;case "mouseoutCheck":h= +r}return{stop:!1,node:e,nodeEventType:l,nodeEventCallback:h,treeEventType:"",treeEventCallback:null}});f.addInitRoot(function(c){f.getRoot(c).radioCheckedList=[]});f.addBeforeA(function(c,a,b){var d=c.data.key.checked;c.check.enable&&(f.makeChkFlag(c,a),c.check.chkStyle==j.radio.STYLE&&c.check.radioType==j.radio.TYPE_ALL&&a[d]&&f.getRoot(c).radioCheckedList.push(a),b.push(""))});f.addZTreeTools(function(c,a){a.checkNode=function(a,b,f,h){var i=this.setting.data.key.checked;if(a.chkDisabled!==!0&&(b!==!0&&b!==!1&&(b=!a[i]),h=!!h,(a[i]!==b||f)&&!(h&&k.apply(this.setting.callback.beforeCheck,[this.setting.treeId,a],!0)==!1)&&k.uCanDo(this.setting)&&this.setting.check.enable&&a.nocheck!==!0))a[i]=b,b=m("#"+a.tId+j.id.CHECK),(f||this.setting.check.chkStyle===j.radio.STYLE)&&e.checkNodeRelation(this.setting,a),e.setChkClass(this.setting,b,a),e.repairParentChkClassWithSelf(this.setting, +a),h&&c.treeObj.trigger(j.event.CHECK,[null,c.treeId,a])};a.checkAllNodes=function(a){e.repairAllChk(this.setting,!!a)};a.getCheckedNodes=function(a){var b=this.setting.data.key.children;return f.getTreeCheckedNodes(this.setting,f.getRoot(c)[b],a!==!1)};a.getChangeCheckedNodes=function(){var a=this.setting.data.key.children;return f.getTreeChangeCheckedNodes(this.setting,f.getRoot(c)[a])};a.setChkDisabled=function(a,b){b=!!b;e.repairSonChkDisabled(this.setting,a,b);b||e.repairParentChkDisabled(this.setting, +a,b)};var b=a.updateNode;a.updateNode=function(c,f){b&&b.apply(a,arguments);if(c&&this.setting.check.enable&&m("#"+c.tId).get(0)&&k.uCanDo(this.setting)){var l=m("#"+c.tId+j.id.CHECK);(f==!0||this.setting.check.chkStyle===j.radio.STYLE)&&e.checkNodeRelation(this.setting,c);e.setChkClass(this.setting,l,c);e.repairParentChkClassWithSelf(this.setting,c)}}});var s=e.createNodes;e.createNodes=function(c,a,b,d){s&&s.apply(e,arguments);b&&e.repairParentChkClassWithSelf(c,d)};var t=e.removeNode;e.removeNode= +function(c,a){var b=a.getParentNode();t&&t.apply(e,arguments);a&&b&&(e.repairChkClass(c,b),e.repairParentChkClass(c,b))};var u=e.appendNodes;e.appendNodes=function(c,a,b,d,g,j){var h="";u&&(h=u.apply(e,arguments));d&&f.makeChkFlag(c,d);return h}})(jQuery); diff --git a/alive-admin/target/classes/static/ztree/js/jquery.ztree.exedit-3.5.js b/alive-admin/target/classes/static/ztree/js/jquery.ztree.exedit-3.5.js new file mode 100644 index 0000000..33ea509 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/js/jquery.ztree.exedit-3.5.js @@ -0,0 +1,1179 @@ +/* + * JQuery zTree exedit 3.5 + * http://zTree.me/ + * + * Copyright (c) 2010 Hunter.z + * + * Licensed same as jquery - MIT License + * http://www.opensource.org/licenses/mit-license.php + * + * email: hunter.z@263.net + * Date: 2012-11-20 + */ +(function($){ + //default consts of exedit + var _consts = { + event: { + DRAG: "ztree_drag", + DROP: "ztree_drop", + REMOVE: "ztree_remove", + RENAME: "ztree_rename" + }, + id: { + EDIT: "_edit", + INPUT: "_input", + REMOVE: "_remove" + }, + move: { + TYPE_INNER: "inner", + TYPE_PREV: "prev", + TYPE_NEXT: "next" + }, + node: { + CURSELECTED_EDIT: "curSelectedNode_Edit", + TMPTARGET_TREE: "tmpTargetzTree", + TMPTARGET_NODE: "tmpTargetNode" + } + }, + //default setting of exedit + _setting = { + edit: { + enable: false, + editNameSelectAll: false, + showRemoveBtn: true, + showRenameBtn: true, + removeTitle: "remove", + renameTitle: "rename", + drag: { + autoExpandTrigger: false, + isCopy: true, + isMove: true, + prev: true, + next: true, + inner: true, + minMoveSize: 5, + borderMax: 10, + borderMin: -5, + maxShowNodeNum: 5, + autoOpenTime: 500 + } + }, + view: { + addHoverDom: null, + removeHoverDom: null + }, + callback: { + beforeDrag:null, + beforeDragOpen:null, + beforeDrop:null, + beforeEditName:null, + beforeRename:null, + onDrag:null, + onDrop:null, + onRename:null + } + }, + //default root of exedit + _initRoot = function (setting) { + var r = data.getRoot(setting); + r.curEditNode = null; + r.curEditInput = null; + r.curHoverNode = null; + r.dragFlag = 0; + r.dragNodeShowBefore = []; + r.dragMaskList = new Array(); + r.showHoverDom = true; + }, + //default cache of exedit + _initCache = function(treeId) {}, + //default bind event of exedit + _bindEvent = function(setting) { + var o = setting.treeObj; + var c = consts.event; + o.bind(c.RENAME, function (event, treeId, treeNode) { + tools.apply(setting.callback.onRename, [event, treeId, treeNode]); + }); + + o.bind(c.REMOVE, function (event, treeId, treeNode) { + tools.apply(setting.callback.onRemove, [event, treeId, treeNode]); + }); + + o.bind(c.DRAG, function (event, srcEvent, treeId, treeNodes) { + tools.apply(setting.callback.onDrag, [srcEvent, treeId, treeNodes]); + }); + + o.bind(c.DROP, function (event, srcEvent, treeId, treeNodes, targetNode, moveType, isCopy) { + tools.apply(setting.callback.onDrop, [srcEvent, treeId, treeNodes, targetNode, moveType, isCopy]); + }); + }, + _unbindEvent = function(setting) { + var o = setting.treeObj; + var c = consts.event; + o.unbind(c.RENAME); + o.unbind(c.REMOVE); + o.unbind(c.DRAG); + o.unbind(c.DROP); + }, + //default event proxy of exedit + _eventProxy = function(e) { + var target = e.target, + setting = data.getSetting(e.data.treeId), + relatedTarget = e.relatedTarget, + tId = "", node = null, + nodeEventType = "", treeEventType = "", + nodeEventCallback = null, treeEventCallback = null, + tmp = null; + + if (tools.eqs(e.type, "mouseover")) { + tmp = tools.getMDom(setting, target, [{tagName:"a", attrName:"treeNode"+consts.id.A}]); + if (tmp) { + tId = tmp.parentNode.id; + nodeEventType = "hoverOverNode"; + } + } else if (tools.eqs(e.type, "mouseout")) { + tmp = tools.getMDom(setting, relatedTarget, [{tagName:"a", attrName:"treeNode"+consts.id.A}]); + if (!tmp) { + tId = "remove"; + nodeEventType = "hoverOutNode"; + } + } else if (tools.eqs(e.type, "mousedown")) { + tmp = tools.getMDom(setting, target, [{tagName:"a", attrName:"treeNode"+consts.id.A}]); + if (tmp) { + tId = tmp.parentNode.id; + nodeEventType = "mousedownNode"; + } + } + if (tId.length>0) { + node = data.getNodeCache(setting, tId); + switch (nodeEventType) { + case "mousedownNode" : + nodeEventCallback = _handler.onMousedownNode; + break; + case "hoverOverNode" : + nodeEventCallback = _handler.onHoverOverNode; + break; + case "hoverOutNode" : + nodeEventCallback = _handler.onHoverOutNode; + break; + } + } + var proxyResult = { + stop: false, + node: node, + nodeEventType: nodeEventType, + nodeEventCallback: nodeEventCallback, + treeEventType: treeEventType, + treeEventCallback: treeEventCallback + }; + return proxyResult + }, + //default init node of exedit + _initNode = function(setting, level, n, parentNode, isFirstNode, isLastNode, openFlag) { + if (!n) return; + n.isHover = false; + n.editNameFlag = false; + }, + //update zTreeObj, add method of edit + _zTreeTools = function(setting, zTreeTools) { + zTreeTools.cancelEditName = function(newName) { + var root = data.getRoot(setting), + nameKey = setting.data.key.name, + node = root.curEditNode; + if (!root.curEditNode) return; + view.cancelCurEditNode(setting, newName?newName:node[nameKey]); + } + zTreeTools.copyNode = function(targetNode, node, moveType, isSilent) { + if (!node) return null; + if (targetNode && !targetNode.isParent && setting.data.keep.leaf && moveType === consts.move.TYPE_INNER) return null; + var newNode = tools.clone(node); + if (!targetNode) { + targetNode = null; + moveType = consts.move.TYPE_INNER; + } + if (moveType == consts.move.TYPE_INNER) { + function copyCallback() { + view.addNodes(setting, targetNode, [newNode], isSilent); + } + + if (tools.canAsync(setting, targetNode)) { + view.asyncNode(setting, targetNode, isSilent, copyCallback); + } else { + copyCallback(); + } + } else { + view.addNodes(setting, targetNode.parentNode, [newNode], isSilent); + view.moveNode(setting, targetNode, newNode, moveType, false, isSilent); + } + return newNode; + } + zTreeTools.editName = function(node) { + if (!node || !node.tId || node !== data.getNodeCache(setting, node.tId)) return; + if (node.parentTId) view.expandCollapseParentNode(setting, node.getParentNode(), true); + view.editNode(setting, node) + } + zTreeTools.moveNode = function(targetNode, node, moveType, isSilent) { + if (!node) return node; + if (targetNode && !targetNode.isParent && setting.data.keep.leaf && moveType === consts.move.TYPE_INNER) { + return null; + } else if (targetNode && ((node.parentTId == targetNode.tId && moveType == consts.move.TYPE_INNER) || $("#" + node.tId).find("#" + targetNode.tId).length > 0)) { + return null; + } else if (!targetNode) { + targetNode = null; + } + function moveCallback() { + view.moveNode(setting, targetNode, node, moveType, false, isSilent); + } + if (tools.canAsync(setting, targetNode)) { + view.asyncNode(setting, targetNode, isSilent, moveCallback); + } else { + moveCallback(); + } + return node; + } + zTreeTools.setEditable = function(editable) { + setting.edit.enable = editable; + return this.refresh(); + } + }, + //method of operate data + _data = { + setSonNodeLevel: function(setting, parentNode, node) { + if (!node) return; + var childKey = setting.data.key.children; + node.level = (parentNode)? parentNode.level + 1 : 0; + if (!node[childKey]) return; + for (var i = 0, l = node[childKey].length; i < l; i++) { + if (node[childKey][i]) data.setSonNodeLevel(setting, node, node[childKey][i]); + } + } + }, + //method of event proxy + _event = { + + }, + //method of event handler + _handler = { + onHoverOverNode: function(event, node) { + var setting = data.getSetting(event.data.treeId), + root = data.getRoot(setting); + if (root.curHoverNode != node) { + _handler.onHoverOutNode(event); + } + root.curHoverNode = node; + view.addHoverDom(setting, node); + }, + onHoverOutNode: function(event, node) { + var setting = data.getSetting(event.data.treeId), + root = data.getRoot(setting); + if (root.curHoverNode && !data.isSelectedNode(setting, root.curHoverNode)) { + view.removeTreeDom(setting, root.curHoverNode); + root.curHoverNode = null; + } + }, + onMousedownNode: function(eventMouseDown, _node) { + var i,l, + setting = data.getSetting(eventMouseDown.data.treeId), + root = data.getRoot(setting); + //right click can't drag & drop + if (eventMouseDown.button == 2 || !setting.edit.enable || (!setting.edit.drag.isCopy && !setting.edit.drag.isMove)) return true; + + //input of edit node name can't drag & drop + var target = eventMouseDown.target, + _nodes = data.getRoot(setting).curSelectedList, + nodes = []; + if (!data.isSelectedNode(setting, _node)) { + nodes = [_node]; + } else { + for (i=0, l=_nodes.length; i1) { + var pNodes = nodes[0].parentTId ? nodes[0].getParentNode()[childKey] : data.getNodes(setting); + tmpNodes = []; + for (i=0, l=pNodes.length; i -1 && (lastIndex+1) !== i) { + isOrder = false; + } + tmpNodes.push(pNodes[i]); + lastIndex = i; + } + if (nodes.length === tmpNodes.length) { + nodes = tmpNodes; + break; + } + } + } + if (isOrder) { + preNode = nodes[0].getPreNode(); + nextNode = nodes[nodes.length-1].getNextNode(); + } + + //set node in selected + curNode = $("
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              "); + for (i=0, l=nodes.length; i0); + view.removeTreeDom(setting, tmpNode); + + tmpDom = $("
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • "); + tmpDom.append($("#" + tmpNode.tId + consts.id.A).clone()); + tmpDom.css("padding", "0"); + tmpDom.children("#" + tmpNode.tId + consts.id.A).removeClass(consts.node.CURSELECTED); + curNode.append(tmpDom); + if (i == setting.edit.drag.maxShowNodeNum-1) { + tmpDom = $("
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • ...
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • "); + curNode.append(tmpDom); + break; + } + } + curNode.attr("id", nodes[0].tId + consts.id.UL + "_tmp"); + curNode.addClass(setting.treeObj.attr("class")); + curNode.appendTo("body"); + + tmpArrow = $(""); + tmpArrow.attr("id", "zTreeMove_arrow_tmp"); + tmpArrow.appendTo("body"); + + setting.treeObj.trigger(consts.event.DRAG, [event, setting.treeId, nodes]); + } + + if (root.dragFlag == 1) { + if (tmpTarget && tmpArrow.attr("id") == event.target.id && tmpTargetNodeId && (event.clientX + doc.scrollLeft()+2) > ($("#" + tmpTargetNodeId + consts.id.A, tmpTarget).offset().left)) { + var xT = $("#" + tmpTargetNodeId + consts.id.A, tmpTarget); + event.target = (xT.length > 0) ? xT.get(0) : event.target; + } else if (tmpTarget) { + tmpTarget.removeClass(consts.node.TMPTARGET_TREE); + if (tmpTargetNodeId) $("#" + tmpTargetNodeId + consts.id.A, tmpTarget).removeClass(consts.node.TMPTARGET_NODE + "_" + consts.move.TYPE_PREV) + .removeClass(consts.node.TMPTARGET_NODE + "_" + _consts.move.TYPE_NEXT).removeClass(consts.node.TMPTARGET_NODE + "_" + _consts.move.TYPE_INNER); + } + tmpTarget = null; + tmpTargetNodeId = null; + + //judge drag & drop in multi ztree + isOtherTree = false; + targetSetting = setting; + var settings = data.getSettings(); + for (var s in settings) { + if (settings[s].treeId && settings[s].edit.enable && settings[s].treeId != setting.treeId + && (event.target.id == settings[s].treeId || $(event.target).parents("#" + settings[s].treeId).length>0)) { + isOtherTree = true; + targetSetting = settings[s]; + } + } + + var docScrollTop = doc.scrollTop(), + docScrollLeft = doc.scrollLeft(), + treeOffset = targetSetting.treeObj.offset(), + scrollHeight = targetSetting.treeObj.get(0).scrollHeight, + scrollWidth = targetSetting.treeObj.get(0).scrollWidth, + dTop = (event.clientY + docScrollTop - treeOffset.top), + dBottom = (targetSetting.treeObj.height() + treeOffset.top - event.clientY - docScrollTop), + dLeft = (event.clientX + docScrollLeft - treeOffset.left), + dRight = (targetSetting.treeObj.width() + treeOffset.left - event.clientX - docScrollLeft), + isTop = (dTop < setting.edit.drag.borderMax && dTop > setting.edit.drag.borderMin), + isBottom = (dBottom < setting.edit.drag.borderMax && dBottom > setting.edit.drag.borderMin), + isLeft = (dLeft < setting.edit.drag.borderMax && dLeft > setting.edit.drag.borderMin), + isRight = (dRight < setting.edit.drag.borderMax && dRight > setting.edit.drag.borderMin), + isTreeInner = dTop > setting.edit.drag.borderMin && dBottom > setting.edit.drag.borderMin && dLeft > setting.edit.drag.borderMin && dRight > setting.edit.drag.borderMin, + isTreeTop = (isTop && targetSetting.treeObj.scrollTop() <= 0), + isTreeBottom = (isBottom && (targetSetting.treeObj.scrollTop() + targetSetting.treeObj.height()+10) >= scrollHeight), + isTreeLeft = (isLeft && targetSetting.treeObj.scrollLeft() <= 0), + isTreeRight = (isRight && (targetSetting.treeObj.scrollLeft() + targetSetting.treeObj.width()+10) >= scrollWidth); + + if (event.target.id && targetSetting.treeObj.find("#" + event.target.id).length > 0) { + //get node
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • dom + var targetObj = event.target; + while (targetObj && targetObj.tagName && !tools.eqs(targetObj.tagName, "li") && targetObj.id != targetSetting.treeId) { + targetObj = targetObj.parentNode; + } + + var canMove = true; + //don't move to self or children of self + for (i=0, l=nodes.length; i 0) { + canMove = false; + break; + } + } + if (canMove) { + if (event.target.id && + (event.target.id == (targetObj.id + consts.id.A) || $(event.target).parents("#" + targetObj.id + consts.id.A).length > 0)) { + tmpTarget = $(targetObj); + tmpTargetNodeId = targetObj.id; + } + } + } + + //the mouse must be in zTree + tmpNode = nodes[0]; + if (isTreeInner && (event.target.id == targetSetting.treeId || $(event.target).parents("#" + targetSetting.treeId).length>0)) { + //judge mouse move in root of ztree + if (!tmpTarget && (event.target.id == targetSetting.treeId || isTreeTop || isTreeBottom || isTreeLeft || isTreeRight) && (isOtherTree || (!isOtherTree && tmpNode.parentTId))) { + tmpTarget = targetSetting.treeObj; + } + //auto scroll top + if (isTop) { + targetSetting.treeObj.scrollTop(targetSetting.treeObj.scrollTop()-10); + } else if (isBottom) { + targetSetting.treeObj.scrollTop(targetSetting.treeObj.scrollTop()+10); + } + if (isLeft) { + targetSetting.treeObj.scrollLeft(targetSetting.treeObj.scrollLeft()-10); + } else if (isRight) { + targetSetting.treeObj.scrollLeft(targetSetting.treeObj.scrollLeft()+10); + } + //auto scroll left + if (tmpTarget && tmpTarget != targetSetting.treeObj && tmpTarget.offset().left < targetSetting.treeObj.offset().left) { + targetSetting.treeObj.scrollLeft(targetSetting.treeObj.scrollLeft()+ tmpTarget.offset().left - targetSetting.treeObj.offset().left); + } + } + + curNode.css({ + "top": (event.clientY + docScrollTop + 3) + "px", + "left": (event.clientX + docScrollLeft + 3) + "px" + }); + + var dX = 0; + var dY = 0; + if (tmpTarget && tmpTarget.attr("id")!=targetSetting.treeId) { + var tmpTargetNode = tmpTargetNodeId == null ? null: data.getNodeCache(targetSetting, tmpTargetNodeId), + isCopy = (event.ctrlKey && setting.edit.drag.isMove && setting.edit.drag.isCopy) || (!setting.edit.drag.isMove && setting.edit.drag.isCopy), + isPrev = !!(preNode && tmpTargetNodeId === preNode.tId), + isNext = !!(nextNode && tmpTargetNodeId === nextNode.tId), + isInner = (tmpNode.parentTId && tmpNode.parentTId == tmpTargetNodeId), + canPrev = (isCopy || !isNext) && tools.apply(targetSetting.edit.drag.prev, [targetSetting.treeId, nodes, tmpTargetNode], !!targetSetting.edit.drag.prev), + canNext = (isCopy || !isPrev) && tools.apply(targetSetting.edit.drag.next, [targetSetting.treeId, nodes, tmpTargetNode], !!targetSetting.edit.drag.next), + canInner = (isCopy || !isInner) && !(targetSetting.data.keep.leaf && !tmpTargetNode.isParent) && tools.apply(targetSetting.edit.drag.inner, [targetSetting.treeId, nodes, tmpTargetNode], !!targetSetting.edit.drag.inner); + if (!canPrev && !canNext && !canInner) { + tmpTarget = null; + tmpTargetNodeId = ""; + moveType = consts.move.TYPE_INNER; + tmpArrow.css({ + "display":"none" + }); + if (window.zTreeMoveTimer) { + clearTimeout(window.zTreeMoveTimer); + window.zTreeMoveTargetNodeTId = null + } + } else { + var tmpTargetA = $("#" + tmpTargetNodeId + consts.id.A, tmpTarget), + tmpNextA = tmpTargetNode.isLastNode ? null : $("#" + tmpTargetNode.getNextNode().tId + consts.id.A, tmpTarget.next()), + tmpTop = tmpTargetA.offset().top, + tmpLeft = tmpTargetA.offset().left, + prevPercent = canPrev ? (canInner ? 0.25 : (canNext ? 0.5 : 1) ) : -1, + nextPercent = canNext ? (canInner ? 0.75 : (canPrev ? 0.5 : 0) ) : -1, + dY_percent = (event.clientY + docScrollTop - tmpTop)/tmpTargetA.height(); + if ((prevPercent==1 ||dY_percent<=prevPercent && dY_percent>=-.2) && canPrev) { + dX = 1 - tmpArrow.width(); + dY = tmpTop - tmpArrow.height()/2; + moveType = consts.move.TYPE_PREV; + } else if ((nextPercent==0 || dY_percent>=nextPercent && dY_percent<=1.2) && canNext) { + dX = 1 - tmpArrow.width(); + dY = (tmpNextA == null || (tmpTargetNode.isParent && tmpTargetNode.open)) ? (tmpTop + tmpTargetA.height() - tmpArrow.height()/2) : (tmpNextA.offset().top - tmpArrow.height()/2); + moveType = consts.move.TYPE_NEXT; + }else { + dX = 5 - tmpArrow.width(); + dY = tmpTop; + moveType = consts.move.TYPE_INNER; + } + tmpArrow.css({ + "display":"block", + "top": dY + "px", + "left": (tmpLeft + dX) + "px" + }); + tmpTargetA.addClass(consts.node.TMPTARGET_NODE + "_" + moveType); + + if (preTmpTargetNodeId != tmpTargetNodeId || preTmpMoveType != moveType) { + startTime = (new Date()).getTime(); + } + if (tmpTargetNode && tmpTargetNode.isParent && moveType == consts.move.TYPE_INNER) { + var startTimer = true; + if (window.zTreeMoveTimer && window.zTreeMoveTargetNodeTId !== tmpTargetNode.tId) { + clearTimeout(window.zTreeMoveTimer); + window.zTreeMoveTargetNodeTId = null; + } else if (window.zTreeMoveTimer && window.zTreeMoveTargetNodeTId === tmpTargetNode.tId) { + startTimer = false; + } + if (startTimer) { + window.zTreeMoveTimer = setTimeout(function() { + if (moveType != consts.move.TYPE_INNER) return; + if (tmpTargetNode && tmpTargetNode.isParent && !tmpTargetNode.open && (new Date()).getTime() - startTime > targetSetting.edit.drag.autoOpenTime + && tools.apply(targetSetting.callback.beforeDragOpen, [targetSetting.treeId, tmpTargetNode], true)) { + view.switchNode(targetSetting, tmpTargetNode); + if (targetSetting.edit.drag.autoExpandTrigger) { + targetSetting.treeObj.trigger(consts.event.EXPAND, [targetSetting.treeId, tmpTargetNode]); + } + } + }, targetSetting.edit.drag.autoOpenTime+50); + window.zTreeMoveTargetNodeTId = tmpTargetNode.tId; + } + } + } + } else { + moveType = consts.move.TYPE_INNER; + if (tmpTarget && tools.apply(targetSetting.edit.drag.inner, [targetSetting.treeId, nodes, null], !!targetSetting.edit.drag.inner)) { + tmpTarget.addClass(consts.node.TMPTARGET_TREE); + } else { + tmpTarget = null; + } + tmpArrow.css({ + "display":"none" + }); + if (window.zTreeMoveTimer) { + clearTimeout(window.zTreeMoveTimer); + window.zTreeMoveTargetNodeTId = null; + } + } + preTmpTargetNodeId = tmpTargetNodeId; + preTmpMoveType = moveType; + } + return false; + } + + doc.bind("mouseup", _docMouseUp); + function _docMouseUp(event) { + if (window.zTreeMoveTimer) { + clearTimeout(window.zTreeMoveTimer); + window.zTreeMoveTargetNodeTId = null; + } + preTmpTargetNodeId = null; + preTmpMoveType = null; + doc.unbind("mousemove", _docMouseMove); + doc.unbind("mouseup", _docMouseUp); + doc.unbind("selectstart", _docSelect); + $("body").css("cursor", "auto"); + if (tmpTarget) { + tmpTarget.removeClass(consts.node.TMPTARGET_TREE); + if (tmpTargetNodeId) $("#" + tmpTargetNodeId + consts.id.A, tmpTarget).removeClass(consts.node.TMPTARGET_NODE + "_" + consts.move.TYPE_PREV) + .removeClass(consts.node.TMPTARGET_NODE + "_" + _consts.move.TYPE_NEXT).removeClass(consts.node.TMPTARGET_NODE + "_" + _consts.move.TYPE_INNER); + } + tools.showIfameMask(setting, false); + + root.showHoverDom = true; + if (root.dragFlag == 0) return; + root.dragFlag = 0; + + var i, l, tmpNode; + for (i=0, l=nodes.length; i0); + } + $("#" + newNodes[0].tId).focus().blur(); + + } + + if (moveType == consts.move.TYPE_INNER && tools.canAsync(targetSetting, dragTargetNode)) { + view.asyncNode(targetSetting, dragTargetNode, false, dropCallback); + } else { + dropCallback(); + } + + setting.treeObj.trigger(consts.event.DROP, [event, targetSetting.treeId, newNodes, dragTargetNode, moveType, isCopy]); + } else { + for (i=0, l=nodes.length; i0); + } + setting.treeObj.trigger(consts.event.DROP, [event, setting.treeId, nodes, null, null, null]); + } + } + + doc.bind("selectstart", _docSelect); + function _docSelect() { + return false; + } + + //Avoid FireFox's Bug + //If zTree Div CSS set 'overflow', so drag node outside of zTree, and event.target is error. + if(eventMouseDown.preventDefault) { + eventMouseDown.preventDefault(); + } + return true; + } + }, + //method of tools for zTree + _tools = { + getAbs: function (obj) { + var oRect = obj.getBoundingClientRect(); + return [oRect.left,oRect.top] + }, + inputFocus: function(inputObj) { + if (inputObj.get(0)) { + inputObj.focus(); + tools.setCursorPosition(inputObj.get(0), inputObj.val().length); + } + }, + inputSelect: function(inputObj) { + if (inputObj.get(0)) { + inputObj.focus(); + inputObj.select(); + } + }, + setCursorPosition: function(obj, pos){ + if(obj.setSelectionRange) { + obj.focus(); + obj.setSelectionRange(pos,pos); + } else if (obj.createTextRange) { + var range = obj.createTextRange(); + range.collapse(true); + range.moveEnd('character', pos); + range.moveStart('character', pos); + range.select(); + } + }, + showIfameMask: function(setting, showSign) { + var root = data.getRoot(setting); + //clear full mask + while (root.dragMaskList.length > 0) { + root.dragMaskList[0].remove(); + root.dragMaskList.shift(); + } + if (showSign) { + //show mask + var iframeList = $("iframe"); + for (var i = 0, l = iframeList.length; i < l; i++) { + var obj = iframeList.get(i), + r = tools.getAbs(obj), + dragMask = $("
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              "); + dragMask.appendTo("body"); + root.dragMaskList.push(dragMask); + } + } + } + }, + //method of operate ztree dom + _view = { + addEditBtn: function(setting, node) { + if (node.editNameFlag || $("#" + node.tId + consts.id.EDIT).length > 0) { + return; + } + if (!tools.apply(setting.edit.showRenameBtn, [setting.treeId, node], setting.edit.showRenameBtn)) { + return; + } + var aObj = $("#" + node.tId + consts.id.A), + editStr = ""; + aObj.append(editStr); + + $("#" + node.tId + consts.id.EDIT).bind('click', + function() { + if (!tools.uCanDo(setting) || tools.apply(setting.callback.beforeEditName, [setting.treeId, node], true) == false) return false; + view.editNode(setting, node); + return false; + } + ).show(); + }, + addRemoveBtn: function(setting, node) { + if (node.editNameFlag || $("#" + node.tId + consts.id.REMOVE).length > 0) { + return; + } + if (!tools.apply(setting.edit.showRemoveBtn, [setting.treeId, node], setting.edit.showRemoveBtn)) { + return; + } + var aObj = $("#" + node.tId + consts.id.A), + removeStr = ""; + aObj.append(removeStr); + + $("#" + node.tId + consts.id.REMOVE).bind('click', + function() { + if (!tools.uCanDo(setting) || tools.apply(setting.callback.beforeRemove, [setting.treeId, node], true) == false) return false; + view.removeNode(setting, node); + setting.treeObj.trigger(consts.event.REMOVE, [setting.treeId, node]); + return false; + } + ).bind('mousedown', + function(eventMouseDown) { + return true; + } + ).show(); + }, + addHoverDom: function(setting, node) { + if (data.getRoot(setting).showHoverDom) { + node.isHover = true; + if (setting.edit.enable) { + view.addEditBtn(setting, node); + view.addRemoveBtn(setting, node); + } + tools.apply(setting.view.addHoverDom, [setting.treeId, node]); + } + }, + cancelCurEditNode: function (setting, forceName) { + var root = data.getRoot(setting), + nameKey = setting.data.key.name, + node = root.curEditNode; + + if (node) { + var inputObj = root.curEditInput; + var newName = forceName ? forceName:inputObj.val(); + if (!forceName && tools.apply(setting.callback.beforeRename, [setting.treeId, node, newName], true) === false) { + node.editNameFlag = true; + return false; + } else { + node[nameKey] = newName ? newName:inputObj.val(); + if (!forceName) { + setting.treeObj.trigger(consts.event.RENAME, [setting.treeId, node]); + } + } + var aObj = $("#" + node.tId + consts.id.A); + aObj.removeClass(consts.node.CURSELECTED_EDIT); + inputObj.unbind(); + view.setNodeName(setting, node); + node.editNameFlag = false; + root.curEditNode = null; + root.curEditInput = null; + view.selectNode(setting, node, false); + } + root.noSelection = true; + return true; + }, + editNode: function(setting, node) { + var root = data.getRoot(setting); + view.editNodeBlur = false; + if (data.isSelectedNode(setting, node) && root.curEditNode == node && node.editNameFlag) { + setTimeout(function() {tools.inputFocus(root.curEditInput);}, 0); + return; + } + var nameKey = setting.data.key.name; + node.editNameFlag = true; + view.removeTreeDom(setting, node); + view.cancelCurEditNode(setting); + view.selectNode(setting, node, false); + $("#" + node.tId + consts.id.SPAN).html(""); + var inputObj = $("#" + node.tId + consts.id.INPUT); + inputObj.attr("value", node[nameKey]); + if (setting.edit.editNameSelectAll) { + tools.inputSelect(inputObj); + } else { + tools.inputFocus(inputObj); + } + + inputObj.bind('blur', function(event) { + if (!view.editNodeBlur) { + view.cancelCurEditNode(setting); + } + }).bind('keydown', function(event) { + if (event.keyCode=="13") { + view.editNodeBlur = true; + view.cancelCurEditNode(setting, null, true); + } else if (event.keyCode=="27") { + view.cancelCurEditNode(setting, node[nameKey]); + } + }).bind('click', function(event) { + return false; + }).bind('dblclick', function(event) { + return false; + }); + + $("#" + node.tId + consts.id.A).addClass(consts.node.CURSELECTED_EDIT); + root.curEditInput = inputObj; + root.noSelection = false; + root.curEditNode = node; + }, + moveNode: function(setting, targetNode, node, moveType, animateFlag, isSilent) { + var root = data.getRoot(setting), + childKey = setting.data.key.children; + if (targetNode == node) return; + if (setting.data.keep.leaf && targetNode && !targetNode.isParent && moveType == consts.move.TYPE_INNER) return; + var oldParentNode = (node.parentTId ? node.getParentNode(): root), + targetNodeIsRoot = (targetNode === null || targetNode == root); + if (targetNodeIsRoot && targetNode === null) targetNode = root; + if (targetNodeIsRoot) moveType = consts.move.TYPE_INNER; + var targetParentNode = (targetNode.parentTId ? targetNode.getParentNode() : root); + + if (moveType != consts.move.TYPE_PREV && moveType != consts.move.TYPE_NEXT) { + moveType = consts.move.TYPE_INNER; + } + + if (moveType == consts.move.TYPE_INNER) { + if (targetNodeIsRoot) { + //parentTId of root node is null + node.parentTId = null; + } else { + if (!targetNode.isParent) { + targetNode.isParent = true; + targetNode.open = !!targetNode.open; + view.setNodeLineIcos(setting, targetNode); + } + node.parentTId = targetNode.tId; + } + } + + //move node Dom + var targetObj, target_ulObj; + if (targetNodeIsRoot) { + targetObj = setting.treeObj; + target_ulObj = targetObj; + } else { + if (!isSilent && moveType == consts.move.TYPE_INNER) { + view.expandCollapseNode(setting, targetNode, true, false); + } else if (!isSilent) { + view.expandCollapseNode(setting, targetNode.getParentNode(), true, false); + } + targetObj = $("#" + targetNode.tId); + target_ulObj = $("#" + targetNode.tId + consts.id.UL); + if (!!targetObj.get(0) && !target_ulObj.get(0)) { + var ulstr = []; + view.makeUlHtml(setting, targetNode, ulstr, ''); + targetObj.append(ulstr.join('')); + } + target_ulObj = $("#" + targetNode.tId + consts.id.UL); + } + var nodeDom = $("#" + node.tId); + if (!nodeDom.get(0)) { + nodeDom = view.appendNodes(setting, node.level, [node], null, false, true).join(''); + } else if (!targetObj.get(0)) { + nodeDom.remove(); + } + if (target_ulObj.get(0) && moveType == consts.move.TYPE_INNER) { + target_ulObj.append(nodeDom); + } else if (targetObj.get(0) && moveType == consts.move.TYPE_PREV) { + targetObj.before(nodeDom); + } else if (targetObj.get(0) && moveType == consts.move.TYPE_NEXT) { + targetObj.after(nodeDom); + } + + //repair the data after move + var i,l, + tmpSrcIndex = -1, + tmpTargetIndex = 0, + oldNeighbor = null, + newNeighbor = null, + oldLevel = node.level; + if (node.isFirstNode) { + tmpSrcIndex = 0; + if (oldParentNode[childKey].length > 1 ) { + oldNeighbor = oldParentNode[childKey][1]; + oldNeighbor.isFirstNode = true; + } + } else if (node.isLastNode) { + tmpSrcIndex = oldParentNode[childKey].length -1; + oldNeighbor = oldParentNode[childKey][tmpSrcIndex - 1]; + oldNeighbor.isLastNode = true; + } else { + for (i = 0, l = oldParentNode[childKey].length; i < l; i++) { + if (oldParentNode[childKey][i].tId == node.tId) { + tmpSrcIndex = i; + break; + } + } + } + if (tmpSrcIndex >= 0) { + oldParentNode[childKey].splice(tmpSrcIndex, 1); + } + if (moveType != consts.move.TYPE_INNER) { + for (i = 0, l = targetParentNode[childKey].length; i < l; i++) { + if (targetParentNode[childKey][i].tId == targetNode.tId) tmpTargetIndex = i; + } + } + if (moveType == consts.move.TYPE_INNER) { + if (!targetNode[childKey]) targetNode[childKey] = new Array(); + if (targetNode[childKey].length > 0) { + newNeighbor = targetNode[childKey][targetNode[childKey].length - 1]; + newNeighbor.isLastNode = false; + } + targetNode[childKey].splice(targetNode[childKey].length, 0, node); + node.isLastNode = true; + node.isFirstNode = (targetNode[childKey].length == 1); + } else if (targetNode.isFirstNode && moveType == consts.move.TYPE_PREV) { + targetParentNode[childKey].splice(tmpTargetIndex, 0, node); + newNeighbor = targetNode; + newNeighbor.isFirstNode = false; + node.parentTId = targetNode.parentTId; + node.isFirstNode = true; + node.isLastNode = false; + + } else if (targetNode.isLastNode && moveType == consts.move.TYPE_NEXT) { + targetParentNode[childKey].splice(tmpTargetIndex + 1, 0, node); + newNeighbor = targetNode; + newNeighbor.isLastNode = false; + node.parentTId = targetNode.parentTId; + node.isFirstNode = false; + node.isLastNode = true; + + } else { + if (moveType == consts.move.TYPE_PREV) { + targetParentNode[childKey].splice(tmpTargetIndex, 0, node); + } else { + targetParentNode[childKey].splice(tmpTargetIndex + 1, 0, node); + } + node.parentTId = targetNode.parentTId; + node.isFirstNode = false; + node.isLastNode = false; + } + data.fixPIdKeyValue(setting, node); + data.setSonNodeLevel(setting, node.getParentNode(), node); + + //repair node what been moved + view.setNodeLineIcos(setting, node); + view.repairNodeLevelClass(setting, node, oldLevel) + + //repair node's old parentNode dom + if (!setting.data.keep.parent && oldParentNode[childKey].length < 1) { + //old parentNode has no child nodes + oldParentNode.isParent = false; + oldParentNode.open = false; + var tmp_ulObj = $("#" + oldParentNode.tId + consts.id.UL), + tmp_switchObj = $("#" + oldParentNode.tId + consts.id.SWITCH), + tmp_icoObj = $("#" + oldParentNode.tId + consts.id.ICON); + view.replaceSwitchClass(oldParentNode, tmp_switchObj, consts.folder.DOCU); + view.replaceIcoClass(oldParentNode, tmp_icoObj, consts.folder.DOCU); + tmp_ulObj.css("display", "none"); + + } else if (oldNeighbor) { + //old neigbor node + view.setNodeLineIcos(setting, oldNeighbor); + } + + //new neigbor node + if (newNeighbor) { + view.setNodeLineIcos(setting, newNeighbor); + } + + //repair checkbox / radio + if (!!setting.check && setting.check.enable && view.repairChkClass) { + view.repairChkClass(setting, oldParentNode); + view.repairParentChkClassWithSelf(setting, oldParentNode); + if (oldParentNode != node.parent) + view.repairParentChkClassWithSelf(setting, node); + } + + //expand parents after move + if (!isSilent) { + view.expandCollapseParentNode(setting, node.getParentNode(), true, animateFlag); + } + }, + removeEditBtn: function(node) { + $("#" + node.tId + consts.id.EDIT).unbind().remove(); + }, + removeRemoveBtn: function(node) { + $("#" + node.tId + consts.id.REMOVE).unbind().remove(); + }, + removeTreeDom: function(setting, node) { + node.isHover = false; + view.removeEditBtn(node); + view.removeRemoveBtn(node); + tools.apply(setting.view.removeHoverDom, [setting.treeId, node]); + }, + repairNodeLevelClass: function(setting, node, oldLevel) { + if (oldLevel === node.level) return; + var liObj = $("#" + node.tId), + aObj = $("#" + node.tId + consts.id.A), + ulObj = $("#" + node.tId + consts.id.UL), + oldClass = "level" + oldLevel, + newClass = "level" + node.level; + liObj.removeClass(oldClass); + liObj.addClass(newClass); + aObj.removeClass(oldClass); + aObj.addClass(newClass); + ulObj.removeClass(oldClass); + ulObj.addClass(newClass); + } + }, + + _z = { + tools: _tools, + view: _view, + event: _event, + data: _data + }; + $.extend(true, $.fn.zTree.consts, _consts); + $.extend(true, $.fn.zTree._z, _z); + + var zt = $.fn.zTree, + tools = zt._z.tools, + consts = zt.consts, + view = zt._z.view, + data = zt._z.data, + event = zt._z.event; + + data.exSetting(_setting); + data.addInitBind(_bindEvent); + data.addInitUnBind(_unbindEvent); + data.addInitCache(_initCache); + data.addInitNode(_initNode); + data.addInitProxy(_eventProxy); + data.addInitRoot(_initRoot); + data.addZTreeTools(_zTreeTools); + + var _cancelPreSelectedNode = view.cancelPreSelectedNode; + view.cancelPreSelectedNode = function (setting, node) { + var list = data.getRoot(setting).curSelectedList; + for (var i=0, j=list.length; i1){var s=m[0].parentTId?m[0].getParentNode()[l]:p.getNodes(g);l=[];for(a=0,c=s.length;a-1&&j+1!==a&&(e=!1),l.push(s[a]),j=a),m.length===l.length){m=l;break}}e&&(D=m[0].getPreNode(),E=m[m.length-1].getNextNode()); +y=k("
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ");for(a=0,c=m.length;a0),f.removeTreeDom(g,e),j=k("
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • "),j.append(k("#"+e.tId+d.id.A).clone()),j.css("padding","0"),j.children("#"+e.tId+d.id.A).removeClass(d.node.CURSELECTED),y.append(j),a==g.edit.drag.maxShowNodeNum-1){j=k("
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • ...
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • ");y.append(j);break}y.attr("id",m[0].tId+d.id.UL+"_tmp");y.addClass(g.treeObj.attr("class"));y.appendTo("body");t= +k("");t.attr("id","zTreeMove_arrow_tmp");t.appendTo("body");g.treeObj.trigger(d.event.DRAG,[b,g.treeId,m])}if(z.dragFlag==1){r&&t.attr("id")==b.target.id&&u&&b.clientX+x.scrollLeft()+2>k("#"+u+d.id.A,r).offset().left?(e=k("#"+u+d.id.A,r),b.target=e.length>0?e.get(0):b.target):r&&(r.removeClass(d.node.TMPTARGET_TREE),u&&k("#"+u+d.id.A,r).removeClass(d.node.TMPTARGET_NODE+"_"+d.move.TYPE_PREV).removeClass(d.node.TMPTARGET_NODE+"_"+F.move.TYPE_NEXT).removeClass(d.node.TMPTARGET_NODE+ +"_"+F.move.TYPE_INNER));u=r=null;G=!1;i=g;e=p.getSettings();for(var B in e)if(e[B].treeId&&e[B].edit.enable&&e[B].treeId!=g.treeId&&(b.target.id==e[B].treeId||k(b.target).parents("#"+e[B].treeId).length>0))G=!0,i=e[B];B=x.scrollTop();j=x.scrollLeft();l=i.treeObj.offset();a=i.treeObj.get(0).scrollHeight;e=i.treeObj.get(0).scrollWidth;c=b.clientY+B-l.top;var o=i.treeObj.height()+l.top-b.clientY-B,n=b.clientX+j-l.left,H=i.treeObj.width()+l.left-b.clientX-j;l=cg.edit.drag.borderMin; +var s=og.edit.drag.borderMin,I=ng.edit.drag.borderMin,C=Hg.edit.drag.borderMin,o=c>g.edit.drag.borderMin&&o>g.edit.drag.borderMin&&n>g.edit.drag.borderMin&&H>g.edit.drag.borderMin,n=l&&i.treeObj.scrollTop()<=0,H=s&&i.treeObj.scrollTop()+i.treeObj.height()+10>=a,M=I&&i.treeObj.scrollLeft()<=0,N=C&&i.treeObj.scrollLeft()+i.treeObj.width()+10>=e;if(b.target.id&&i.treeObj.find("#"+b.target.id).length>0){for(var A=b.target;A&& +A.tagName&&!h.eqs(A.tagName,"li")&&A.id!=i.treeId;)A=A.parentNode;var O=!0;for(a=0,c=m.length;a0){O=!1;break}if(O&&b.target.id&&(b.target.id==A.id+d.id.A||k(b.target).parents("#"+A.id+d.id.A).length>0))r=k(A),u=A.id}e=m[0];if(o&&(b.target.id==i.treeId||k(b.target).parents("#"+i.treeId).length>0)){if(!r&&(b.target.id==i.treeId||n||H||M||N)&&(G||!G&&e.parentTId))r=i.treeObj;l?i.treeObj.scrollTop(i.treeObj.scrollTop()- +10):s&&i.treeObj.scrollTop(i.treeObj.scrollTop()+10);I?i.treeObj.scrollLeft(i.treeObj.scrollLeft()-10):C&&i.treeObj.scrollLeft(i.treeObj.scrollLeft()+10);r&&r!=i.treeObj&&r.offset().left=-0.2)&&e?(a=1-t.width(),l=s-t.height()/2,v=d.move.TYPE_PREV):(C==0||b>=C&&b<=1.2)&&a?(a=1-t.width(),l=l==null||w.isParent&&w.open?s+c.height()-t.height()/2:l.offset().top-t.height()/2,v=d.move.TYPE_NEXT):(a=5-t.width(),l=s,v=d.move.TYPE_INNER);t.css({display:"block",top:l+"px",left:j+a+"px"});c.addClass(d.node.TMPTARGET_NODE+ +"_"+v);if(P!=u||Q!=v)J=(new Date).getTime();if(w&&w.isParent&&v==d.move.TYPE_INNER&&(b=!0,window.zTreeMoveTimer&&window.zTreeMoveTargetNodeTId!==w.tId?(clearTimeout(window.zTreeMoveTimer),window.zTreeMoveTargetNodeTId=null):window.zTreeMoveTimer&&window.zTreeMoveTargetNodeTId===w.tId&&(b=!1),b))window.zTreeMoveTimer=setTimeout(function(){v==d.move.TYPE_INNER&&w&&w.isParent&&!w.open&&(new Date).getTime()-J>i.edit.drag.autoOpenTime&&h.apply(i.callback.beforeDragOpen,[i.treeId,w],!0)&&(f.switchNode(i, +w),i.edit.drag.autoExpandTrigger&&i.treeObj.trigger(d.event.EXPAND,[i.treeId,w]))},i.edit.drag.autoOpenTime+50),window.zTreeMoveTargetNodeTId=w.tId}}else if(v=d.move.TYPE_INNER,r&&h.apply(i.edit.drag.inner,[i.treeId,m,null],!!i.edit.drag.inner)?r.addClass(d.node.TMPTARGET_TREE):r=null,t.css({display:"none"}),window.zTreeMoveTimer)clearTimeout(window.zTreeMoveTimer),window.zTreeMoveTargetNodeTId=null;P=u;Q=v}return!1}function q(b){if(window.zTreeMoveTimer)clearTimeout(window.zTreeMoveTimer),window.zTreeMoveTargetNodeTId= +null;Q=P=null;x.unbind("mousemove",c);x.unbind("mouseup",q);x.unbind("selectstart",e);k("body").css("cursor","auto");r&&(r.removeClass(d.node.TMPTARGET_TREE),u&&k("#"+u+d.id.A,r).removeClass(d.node.TMPTARGET_NODE+"_"+d.move.TYPE_PREV).removeClass(d.node.TMPTARGET_NODE+"_"+F.move.TYPE_NEXT).removeClass(d.node.TMPTARGET_NODE+"_"+F.move.TYPE_INNER));h.showIfameMask(g,!1);z.showHoverDom=!0;if(z.dragFlag!=0){z.dragFlag=0;var a,l,j;for(a=0,l=m.length;a0);k("#"+s[0].tId).focus().blur()};v==d.move.TYPE_INNER&& +h.canAsync(i,n)?f.asyncNode(i,n,!1,a):a();g.treeObj.trigger(d.event.DROP,[b,i.treeId,s,n,v,o])}}else{for(a=0,l=m.length;a0);g.treeObj.trigger(d.event.DROP,[b,g.treeId,m,null,null,null])}}}function e(){return!1}var l,j,g=p.getSetting(b.data.treeId),z=p.getRoot(g);if(b.button==2||!g.edit.enable||!g.edit.drag.isCopy&&!g.edit.drag.isMove)return!0;var o=b.target,n=p.getRoot(g).curSelectedList,m=[];if(p.isSelectedNode(g,a))for(l=0,j=n.length;l0;)c.dragMaskList[0].remove(), +c.dragMaskList.shift();if(a)for(var d=k("iframe"),e=0,f=d.length;e");j.appendTo("body");c.dragMaskList.push(j)}}},view:{addEditBtn:function(b,a){if(!(a.editNameFlag||k("#"+a.tId+d.id.EDIT).length>0)&&h.apply(b.edit.showRenameBtn,[b.treeId,a],b.edit.showRenameBtn)){var c=k("#"+a.tId+d.id.A),q="";c.append(q);k("#"+a.tId+d.id.EDIT).bind("click",function(){if(!h.uCanDo(b)||h.apply(b.callback.beforeEditName,[b.treeId,a],!0)==!1)return!1;f.editNode(b,a);return!1}).show()}},addRemoveBtn:function(b,a){if(!(a.editNameFlag||k("#"+a.tId+d.id.REMOVE).length>0)&&h.apply(b.edit.showRemoveBtn,[b.treeId,a],b.edit.showRemoveBtn)){var c=k("#"+a.tId+d.id.A),q="";c.append(q);k("#"+a.tId+d.id.REMOVE).bind("click",function(){if(!h.uCanDo(b)||h.apply(b.callback.beforeRemove,[b.treeId,a],!0)==!1)return!1;f.removeNode(b,a);b.treeObj.trigger(d.event.REMOVE,[b.treeId,a]);return!1}).bind("mousedown",function(){return!0}).show()}},addHoverDom:function(b,a){if(p.getRoot(b).showHoverDom)a.isHover=!0,b.edit.enable&&(f.addEditBtn(b, +a),f.addRemoveBtn(b,a)),h.apply(b.view.addHoverDom,[b.treeId,a])},cancelCurEditNode:function(b,a){var c=p.getRoot(b),q=b.data.key.name,e=c.curEditNode;if(e){var l=c.curEditInput,j=a?a:l.val();if(!a&&h.apply(b.callback.beforeRename,[b.treeId,e,j],!0)===!1)return e.editNameFlag=!0,!1;else e[q]=j?j:l.val(),a||b.treeObj.trigger(d.event.RENAME,[b.treeId,e]);k("#"+e.tId+d.id.A).removeClass(d.node.CURSELECTED_EDIT);l.unbind();f.setNodeName(b,e);e.editNameFlag=!1;c.curEditNode=null;c.curEditInput=null;f.selectNode(b, +e,!1)}return c.noSelection=!0},editNode:function(b,a){var c=p.getRoot(b);f.editNodeBlur=!1;if(p.isSelectedNode(b,a)&&c.curEditNode==a&&a.editNameFlag)setTimeout(function(){h.inputFocus(c.curEditInput)},0);else{var q=b.data.key.name;a.editNameFlag=!0;f.removeTreeDom(b,a);f.cancelCurEditNode(b);f.selectNode(b,a,!1);k("#"+a.tId+d.id.SPAN).html("");var e=k("#"+a.tId+d.id.INPUT);e.attr("value",a[q]);b.edit.editNameSelectAll? +h.inputSelect(e):h.inputFocus(e);e.bind("blur",function(){f.editNodeBlur||f.cancelCurEditNode(b)}).bind("keydown",function(c){c.keyCode=="13"?(f.editNodeBlur=!0,f.cancelCurEditNode(b,null,!0)):c.keyCode=="27"&&f.cancelCurEditNode(b,a[q])}).bind("click",function(){return!1}).bind("dblclick",function(){return!1});k("#"+a.tId+d.id.A).addClass(d.node.CURSELECTED_EDIT);c.curEditInput=e;c.noSelection=!1;c.curEditNode=a}},moveNode:function(b,a,c,q,e,l){var j=p.getRoot(b),g=b.data.key.children;if(a!=c&&(!b.data.keep.leaf|| +!a||a.isParent||q!=d.move.TYPE_INNER)){var h=c.parentTId?c.getParentNode():j,o=a===null||a==j;o&&a===null&&(a=j);if(o)q=d.move.TYPE_INNER;j=a.parentTId?a.getParentNode():j;if(q!=d.move.TYPE_PREV&&q!=d.move.TYPE_NEXT)q=d.move.TYPE_INNER;if(q==d.move.TYPE_INNER)if(o)c.parentTId=null;else{if(!a.isParent)a.isParent=!0,a.open=!!a.open,f.setNodeLineIcos(b,a);c.parentTId=a.tId}var n;o?n=o=b.treeObj:(!l&&q==d.move.TYPE_INNER?f.expandCollapseNode(b,a,!0,!1):l||f.expandCollapseNode(b,a.getParentNode(),!0,!1), +o=k("#"+a.tId),n=k("#"+a.tId+d.id.UL),o.get(0)&&!n.get(0)&&(n=[],f.makeUlHtml(b,a,n,""),o.append(n.join(""))),n=k("#"+a.tId+d.id.UL));var m=k("#"+c.tId);m.get(0)?o.get(0)||m.remove():m=f.appendNodes(b,c.level,[c],null,!1,!0).join("");n.get(0)&&q==d.move.TYPE_INNER?n.append(m):o.get(0)&&q==d.move.TYPE_PREV?o.before(m):o.get(0)&&q==d.move.TYPE_NEXT&&o.after(m);var x=-1,y=0,t=null,o=null,r=c.level;if(c.isFirstNode){if(x=0,h[g].length>1)t=h[g][1],t.isFirstNode=!0}else if(c.isLastNode)x=h[g].length-1, +t=h[g][x-1],t.isLastNode=!0;else for(n=0,m=h[g].length;n=0&&h[g].splice(x,1);if(q!=d.move.TYPE_INNER)for(n=0,m=j[g].length;n0)o=a[g][a[g].length-1],o.isLastNode=!1;a[g].splice(a[g].length,0,c);c.isLastNode=!0;c.isFirstNode=a[g].length==1}else a.isFirstNode&&q==d.move.TYPE_PREV?(j[g].splice(y,0,c),o=a,o.isFirstNode=!1,c.parentTId=a.parentTId,c.isFirstNode=!0,c.isLastNode= +!1):a.isLastNode&&q==d.move.TYPE_NEXT?(j[g].splice(y+1,0,c),o=a,o.isLastNode=!1,c.parentTId=a.parentTId,c.isFirstNode=!1,c.isLastNode=!0):(q==d.move.TYPE_PREV?j[g].splice(y,0,c):j[g].splice(y+1,0,c),c.parentTId=a.parentTId,c.isFirstNode=!1,c.isLastNode=!1);p.fixPIdKeyValue(b,c);p.setSonNodeLevel(b,c.getParentNode(),c);f.setNodeLineIcos(b,c);f.repairNodeLevelClass(b,c,r);!b.data.keep.parent&&h[g].length<1?(h.isParent=!1,h.open=!1,a=k("#"+h.tId+d.id.UL),q=k("#"+h.tId+d.id.SWITCH),g=k("#"+h.tId+d.id.ICON), +f.replaceSwitchClass(h,q,d.folder.DOCU),f.replaceIcoClass(h,g,d.folder.DOCU),a.css("display","none")):t&&f.setNodeLineIcos(b,t);o&&f.setNodeLineIcos(b,o);b.check&&b.check.enable&&f.repairChkClass&&(f.repairChkClass(b,h),f.repairParentChkClassWithSelf(b,h),h!=c.parent&&f.repairParentChkClassWithSelf(b,c));l||f.expandCollapseParentNode(b,c.getParentNode(),!0,e)}},removeEditBtn:function(b){k("#"+b.tId+d.id.EDIT).unbind().remove()},removeRemoveBtn:function(b){k("#"+b.tId+d.id.REMOVE).unbind().remove()}, +removeTreeDom:function(b,a){a.isHover=!1;f.removeEditBtn(a);f.removeRemoveBtn(a);h.apply(b.view.removeHoverDom,[b.treeId,a])},repairNodeLevelClass:function(b,a,c){if(c!==a.level){var b=k("#"+a.tId),f=k("#"+a.tId+d.id.A),e=k("#"+a.tId+d.id.UL),c="level"+c,a="level"+a.level;b.removeClass(c);b.addClass(a);f.removeClass(c);f.addClass(a);e.removeClass(c);e.addClass(a)}}},event:{},data:{setSonNodeLevel:function(b,a,c){if(c){var d=b.data.key.children;c.level=a?a.level+1:0;if(c[d])for(var a=0,e=c[d].length;a< +e;a++)c[d][a]&&p.setSonNodeLevel(b,c,c[d][a])}}}});var E=k.fn.zTree,h=E._z.tools,d=E.consts,f=E._z.view,p=E._z.data;p.exSetting({edit:{enable:!1,editNameSelectAll:!1,showRemoveBtn:!0,showRenameBtn:!0,removeTitle:"remove",renameTitle:"rename",drag:{autoExpandTrigger:!1,isCopy:!0,isMove:!0,prev:!0,next:!0,inner:!0,minMoveSize:5,borderMax:10,borderMin:-5,maxShowNodeNum:5,autoOpenTime:500}},view:{addHoverDom:null,removeHoverDom:null},callback:{beforeDrag:null,beforeDragOpen:null,beforeDrop:null,beforeEditName:null, +beforeRename:null,onDrag:null,onDrop:null,onRename:null}});p.addInitBind(function(b){var a=b.treeObj,c=d.event;a.bind(c.RENAME,function(a,c,d){h.apply(b.callback.onRename,[a,c,d])});a.bind(c.REMOVE,function(a,c,d){h.apply(b.callback.onRemove,[a,c,d])});a.bind(c.DRAG,function(a,c,d,f){h.apply(b.callback.onDrag,[c,d,f])});a.bind(c.DROP,function(a,c,d,f,g,k,o){h.apply(b.callback.onDrop,[c,d,f,g,k,o])})});p.addInitUnBind(function(b){var b=b.treeObj,a=d.event;b.unbind(a.RENAME);b.unbind(a.REMOVE);b.unbind(a.DRAG); +b.unbind(a.DROP)});p.addInitCache(function(){});p.addInitNode(function(b,a,c){if(c)c.isHover=!1,c.editNameFlag=!1});p.addInitProxy(function(b){var a=b.target,c=p.getSetting(b.data.treeId),f=b.relatedTarget,e="",l=null,j="",g=null,k=null;if(h.eqs(b.type,"mouseover")){if(k=h.getMDom(c,a,[{tagName:"a",attrName:"treeNode"+d.id.A}]))e=k.parentNode.id,j="hoverOverNode"}else if(h.eqs(b.type,"mouseout"))k=h.getMDom(c,f,[{tagName:"a",attrName:"treeNode"+d.id.A}]),k||(e="remove",j="hoverOutNode");else if(h.eqs(b.type, +"mousedown")&&(k=h.getMDom(c,a,[{tagName:"a",attrName:"treeNode"+d.id.A}])))e=k.parentNode.id,j="mousedownNode";if(e.length>0)switch(l=p.getNodeCache(c,e),j){case "mousedownNode":g=D.onMousedownNode;break;case "hoverOverNode":g=D.onHoverOverNode;break;case "hoverOutNode":g=D.onHoverOutNode}return{stop:!1,node:l,nodeEventType:j,nodeEventCallback:g,treeEventType:"",treeEventCallback:null}});p.addInitRoot(function(b){b=p.getRoot(b);b.curEditNode=null;b.curEditInput=null;b.curHoverNode=null;b.dragFlag= +0;b.dragNodeShowBefore=[];b.dragMaskList=[];b.showHoverDom=!0});p.addZTreeTools(function(b,a){a.cancelEditName=function(a){var d=p.getRoot(b),e=b.data.key.name,h=d.curEditNode;d.curEditNode&&f.cancelCurEditNode(b,a?a:h[e])};a.copyNode=function(a,k,e,l){if(!k)return null;if(a&&!a.isParent&&b.data.keep.leaf&&e===d.move.TYPE_INNER)return null;var j=h.clone(k);if(!a)a=null,e=d.move.TYPE_INNER;e==d.move.TYPE_INNER?(k=function(){f.addNodes(b,a,[j],l)},h.canAsync(b,a)?f.asyncNode(b,a,l,k):k()):(f.addNodes(b, +a.parentNode,[j],l),f.moveNode(b,a,j,e,!1,l));return j};a.editName=function(a){a&&a.tId&&a===p.getNodeCache(b,a.tId)&&(a.parentTId&&f.expandCollapseParentNode(b,a.getParentNode(),!0),f.editNode(b,a))};a.moveNode=function(a,q,e,l){function j(){f.moveNode(b,a,q,e,!1,l)}if(!q)return q;if(a&&!a.isParent&&b.data.keep.leaf&&e===d.move.TYPE_INNER)return null;else if(a&&(q.parentTId==a.tId&&e==d.move.TYPE_INNER||k("#"+q.tId).find("#"+a.tId).length>0))return null;else a||(a=null);h.canAsync(b,a)?f.asyncNode(b, +a,l,j):j();return q};a.setEditable=function(a){b.edit.enable=a;return this.refresh()}});var K=f.cancelPreSelectedNode;f.cancelPreSelectedNode=function(b,a){for(var c=p.getRoot(b).curSelectedList,d=0,e=c.length;d"); + }, + showNode: function(setting, node, options) { + node.isHidden = false; + data.initShowForExCheck(setting, node); + $("#" + node.tId).show(); + }, + showNodes: function(setting, nodes, options) { + if (!nodes || nodes.length == 0) { + return; + } + var pList = {}, i, j; + for (i=0, j=nodes.length; i 0 && !parentNode[childKey][0].isHidden) { + parentNode[childKey][0].isFirstNode = true; + } else if (childLength > 0) { + view.setFirstNodeForHide(setting, parentNode[childKey]); + } + }, + setLastNode: function(setting, parentNode) { + var childKey = setting.data.key.children, childLength = parentNode[childKey].length; + if (childLength > 0 && !parentNode[childKey][0].isHidden) { + parentNode[childKey][childLength - 1].isLastNode = true; + } else if (childLength > 0) { + view.setLastNodeForHide(setting, parentNode[childKey]); + } + }, + setFirstNodeForHide: function(setting, nodes) { + var n,i,j; + for (i=0, j=nodes.length; i=0; i--) { + n = nodes[i]; + if (n.isLastNode) { + break; + } + if (!n.isHidden && !n.isLastNode) { + n.isLastNode = true; + view.setNodeLineIcos(setting, n); + break; + } else { + n = null; + } + } + return n; + }, + setLastNodeForShow: function(setting, nodes) { + var n,i,j, last, old; + for (i=nodes.length-1; i>=0; i--) { + n = nodes[i]; + if (!last && !n.isHidden && n.isLastNode) { + last = n; + break; + } else if (!last && !n.isHidden && !n.isLastNode) { + n.isLastNode = true; + last = n; + view.setNodeLineIcos(setting, n); + } else if (last && n.isLastNode) { + n.isLastNode = false; + old = n; + view.setNodeLineIcos(setting, n); + break; + } else { + n = null; + } + } + return {"new":last, "old":old}; + } + }, + + _z = { + view: _view, + data: _data + }; + $.extend(true, $.fn.zTree._z, _z); + + var zt = $.fn.zTree, + tools = zt._z.tools, + consts = zt.consts, + view = zt._z.view, + data = zt._z.data, + event = zt._z.event; + + data.addInitNode(_initNode); + data.addBeforeA(_beforeA); + data.addZTreeTools(_zTreeTools); + +// Override method in core + var _dInitNode = data.initNode; + data.tmpHideParent = -1; + data.initNode = function(setting, level, node, parentNode, isFirstNode, isLastNode, openFlag) { + if (data.tmpHideParent !== parentNode) { + data.tmpHideParent = parentNode; + var tmpPNode = (parentNode) ? parentNode: data.getRoot(setting), + children = tmpPNode[setting.data.key.children]; + data.tmpHideFirstNode = view.setFirstNodeForHide(setting, children); + data.tmpHideLastNode = view.setLastNodeForHide(setting, children); + view.setNodeLineIcos(setting, data.tmpHideFirstNode); + view.setNodeLineIcos(setting, data.tmpHideLastNode); + } + isFirstNode = (data.tmpHideFirstNode === node); + isLastNode = (data.tmpHideLastNode === node); + if (_dInitNode) _dInitNode.apply(data, arguments); + if (isLastNode) { + view.clearOldLastNode(setting, node); + } + } + + var _makeChkFlag = data.makeChkFlag; + if (!!_makeChkFlag) { + data.makeChkFlag = function(setting, node) { + if (!!node && !!node.isHidden) { + return; + } + _makeChkFlag.apply(data, arguments); + } + } + + var _getTreeCheckedNodes = data.getTreeCheckedNodes; + if (!!_getTreeCheckedNodes) { + data.getTreeCheckedNodes = function(setting, nodes, checked, results) { + if (!!nodes && nodes.length > 0) { + var p = nodes[0].getParentNode(); + if (!!p && !!p.isHidden) { + return []; + } + } + return _getTreeCheckedNodes.apply(data, arguments); + } + } + + var _getTreeChangeCheckedNodes = data.getTreeChangeCheckedNodes; + if (!!_getTreeChangeCheckedNodes) { + data.getTreeChangeCheckedNodes = function(setting, nodes, results) { + if (!!nodes && nodes.length > 0) { + var p = nodes[0].getParentNode(); + if (!!p && !!p.isHidden) { + return []; + } + } + return _getTreeChangeCheckedNodes.apply(data, arguments); + } + } + + var _expandCollapseSonNode = view.expandCollapseSonNode; + if (!!_expandCollapseSonNode) { + view.expandCollapseSonNode = function(setting, node, expandFlag, animateFlag, callback) { + if (!!node && !!node.isHidden) { + return; + } + _expandCollapseSonNode.apply(view, arguments); + } + } + + var _setSonNodeCheckBox = view.setSonNodeCheckBox; + if (!!_setSonNodeCheckBox) { + view.setSonNodeCheckBox = function(setting, node, value, srcNode) { + if (!!node && !!node.isHidden) { + return; + } + _setSonNodeCheckBox.apply(view, arguments); + } + } + + var _repairParentChkClassWithSelf = view.repairParentChkClassWithSelf; + if (!!_repairParentChkClassWithSelf) { + view.repairParentChkClassWithSelf = function(setting, node) { + if (!!node && !!node.isHidden) { + return; + } + _repairParentChkClassWithSelf.apply(view, arguments); + } + } +})(jQuery); \ No newline at end of file diff --git a/alive-admin/target/classes/static/ztree/js/jquery.ztree.exhide-3.5.min.js b/alive-admin/target/classes/static/ztree/js/jquery.ztree.exhide-3.5.min.js new file mode 100644 index 0000000..3f9ce57 --- /dev/null +++ b/alive-admin/target/classes/static/ztree/js/jquery.ztree.exhide-3.5.min.js @@ -0,0 +1,22 @@ +/* + * JQuery zTree exHideNodes 3.5 + * http://zTree.me/ + * + * Copyright (c) 2010 Hunter.z + * + * Licensed same as jquery - MIT License + * http://www.opensource.org/licenses/mit-license.php + * + * email: hunter.z@263.net + * Date: 2012-11-20 + */ +(function(i){i.extend(!0,i.fn.zTree._z,{view:{clearOldFirstNode:function(c,b){for(var a=b.getNextNode();a;){if(a.isFirstNode){a.isFirstNode=!1;f.setNodeLineIcos(c,a);break}if(a.isLastNode)break;a=a.getNextNode()}},clearOldLastNode:function(c,b){for(var a=b.getPreNode();a;){if(a.isLastNode){a.isLastNode=!1;f.setNodeLineIcos(c,a);break}if(a.isFirstNode)break;a=a.getPreNode()}},makeDOMNodeMainBefore:function(c,b,a){c.push("
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • ")},showNode:function(c,b){b.isHidden=!1;e.initShowForExCheck(c,b);i("#"+b.tId).show()},showNodes:function(c,b,a){if(b&&b.length!=0){var d={},h,j;for(h=0,j=b.length;h0&&!b[a][0].isHidden? +b[a][0].isFirstNode=!0:d>0&&f.setFirstNodeForHide(c,b[a])},setLastNode:function(c,b){var a=c.data.key.children,d=b[a].length;d>0&&!b[a][0].isHidden?b[a][d-1].isLastNode=!0:d>0&&f.setLastNodeForHide(c,b[a])},setFirstNodeForHide:function(c,b){var a,d,h;for(d=0,h=b.length;d=0;d--){a=b[d];if(a.isLastNode)break;if(!a.isHidden&&!a.isLastNode){a.isLastNode=!0;f.setNodeLineIcos(c,a);break}else a=null}return a},setLastNodeForShow:function(c,b){var a,d,e,j;for(d=b.length-1;d>=0;d--)if(a=b[d],!e&&!a.isHidden&& +a.isLastNode){e=a;break}else if(!e&&!a.isHidden&&!a.isLastNode)a.isLastNode=!0,e=a,f.setNodeLineIcos(c,a);else if(e&&a.isLastNode){a.isLastNode=!1;j=a;f.setNodeLineIcos(c,a);break}return{"new":e,old:j}}},data:{initHideForExCheck:function(c,b){if(b.isHidden&&c.check&&c.check.enable)b._nocheck=!!b.nocheck,b.nocheck=!0,b.check_Child_State=-1,f.repairParentChkClassWithSelf&&f.repairParentChkClassWithSelf(c,b)},initShowForExCheck:function(c,b){if(!b.isHidden&&c.check&&c.check.enable){b.nocheck=b._nocheck; +delete b._nocheck;if(f.setChkClass){var a=i("#"+b.tId+s.id.CHECK);f.setChkClass(c,a,b)}f.repairParentChkClassWithSelf&&f.repairParentChkClassWithSelf(c,b)}}}});var k=i.fn.zTree,t=k._z.tools,s=k.consts,f=k._z.view,e=k._z.data;e.addInitNode(function(c,b,a){if(typeof a.isHidden=="string")a.isHidden=t.eqs(a.isHidden,"true");a.isHidden=!!a.isHidden;e.initHideForExCheck(c,a)});e.addBeforeA(function(){});e.addZTreeTools(function(c,b){b.showNodes=function(a,b){f.showNodes(c,a,b)};b.showNode=function(a,b){a&& +f.showNodes(c,[a],b)};b.hideNodes=function(a,b){f.hideNodes(c,a,b)};b.hideNode=function(a,b){a&&f.hideNodes(c,[a],b)};var a=b.checkNode;if(a)b.checkNode=function(c,e,f,g){(!c||!c.isHidden)&&a.apply(b,arguments)}});var l=e.initNode;e.tmpHideParent=-1;e.initNode=function(c,b,a,d,h,j,g){if(e.tmpHideParent!==d){e.tmpHideParent=d;var i=(d?d:e.getRoot(c))[c.data.key.children];e.tmpHideFirstNode=f.setFirstNodeForHide(c,i);e.tmpHideLastNode=f.setLastNodeForHide(c,i);f.setNodeLineIcos(c,e.tmpHideFirstNode); +f.setNodeLineIcos(c,e.tmpHideLastNode)}h=e.tmpHideFirstNode===a;j=e.tmpHideLastNode===a;l&&l.apply(e,arguments);j&&f.clearOldLastNode(c,a)};var m=e.makeChkFlag;if(m)e.makeChkFlag=function(c,b){(!b||!b.isHidden)&&m.apply(e,arguments)};var n=e.getTreeCheckedNodes;if(n)e.getTreeCheckedNodes=function(c,b,a,d){if(b&&b.length>0){var f=b[0].getParentNode();if(f&&f.isHidden)return[]}return n.apply(e,arguments)};var o=e.getTreeChangeCheckedNodes;if(o)e.getTreeChangeCheckedNodes=function(c,b,a){if(b&&b.length> +0){var d=b[0].getParentNode();if(d&&d.isHidden)return[]}return o.apply(e,arguments)};var p=f.expandCollapseSonNode;if(p)f.expandCollapseSonNode=function(c,b,a,d,e){(!b||!b.isHidden)&&p.apply(f,arguments)};var q=f.setSonNodeCheckBox;if(q)f.setSonNodeCheckBox=function(c,b,a,d){(!b||!b.isHidden)&&q.apply(f,arguments)};var r=f.repairParentChkClassWithSelf;if(r)f.repairParentChkClassWithSelf=function(c,b){(!b||!b.isHidden)&&r.apply(f,arguments)}})(jQuery); diff --git a/alive-admin/target/classes/templates/build/build.html b/alive-admin/target/classes/templates/build/build.html new file mode 100644 index 0000000..1fbf8a9 --- /dev/null +++ b/alive-admin/target/classes/templates/build/build.html @@ -0,0 +1,168 @@ + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                元素
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 拖拽左侧的表单元素到右侧区域,即可生成相应的HTML代码,表单代码,轻松搞定! +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                这里是纯文字信息

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                拖拽左侧表单元素到此区域
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 请选择显示的列数: + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + + diff --git a/alive-admin/target/classes/templates/demo/form/autocomplete.html b/alive-admin/target/classes/templates/demo/form/autocomplete.html new file mode 100644 index 0000000..d35efad --- /dev/null +++ b/alive-admin/target/classes/templates/demo/form/autocomplete.html @@ -0,0 +1,322 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                搜索自动补全https://github.com/lzwme/bootstrap-suggest-plugin
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                展示下拉菜单按钮。

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                不展示下拉菜单按钮。

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                前端json中获取数据

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                百度搜索

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                支持逗号分隔多关键字

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                淘宝搜索

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                支持逗号分隔多关键字

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                搜索自动补全https://github.com/bassjobsen/Bootstrap-3-Typeahead
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                通过数据属性的基本示例。

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                通过javascript的基本示例。

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                通过javascript的复杂示例。

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                后台url中获取简单数据

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + diff --git a/alive-admin/target/classes/templates/demo/form/basic.html b/alive-admin/target/classes/templates/demo/form/basic.html new file mode 100644 index 0000000..c8100f0 --- /dev/null +++ b/alive-admin/target/classes/templates/demo/form/basic.html @@ -0,0 +1,593 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                基本表单 简单登录表单示例
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                登录

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                欢迎登录本站(⊙o⊙)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                还不是会员?

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                您可以注册一个新账户

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                横向表单
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                欢迎登录本站(⊙o⊙)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 请输入您注册时所填的E-mail +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                内联表单
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                弹出表单 弹出框登录示例
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                所有表单元素 包括自定义样式的复选和单选按钮
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 帮助文本,可能会超过一行,以块级元素显示 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ruoyi.vip

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                @ + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + .00 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ¥ + .00 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + diff --git a/alive-admin/target/classes/templates/demo/form/button.html b/alive-admin/target/classes/templates/demo/form/button.html new file mode 100644 index 0000000..f45bd6b --- /dev/null +++ b/alive-admin/target/classes/templates/demo/form/button.html @@ -0,0 +1,620 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                按钮颜色
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 可使用class来快速改变按钮的颜色,如.btn-primary +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 普通按钮 +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                按钮大小
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 可以通过添加class的值为.btn-lg, .btn-sm, or .btn-xs来修改按钮的大小 +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                按钮尺寸

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                线性按钮
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 要使用线性按钮,可添加class.btn-block.btn-outline +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                线性按钮

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                块级按钮

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                3D按钮
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 可以通过添加.dimclass来使用3D按钮. +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                3D按钮

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                下拉按钮
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 下拉按钮可使用任何颜色任何大小 +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                下拉按钮

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                按钮组
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                按钮组

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                图标按钮
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 任何按钮都可以在左侧或右侧添加图标 +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                图标按钮

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + + + 分享到微信 + + + 使用QQ账号登录 + + + + + + + + + + + + + + + + + + + + + + + + 收藏 + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                按钮切换

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                圆形图标按钮
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 要使用圆形图标按钮,可以通过添加class为.btn-circle实现 +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                圆形按钮

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                圆角按钮
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 可以通过添加class的值微.btn-rounded来实现圆角按钮 +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                按钮组

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 默认 + 主要 + 成果 + 信息 + 警告 + 危险 + 危险 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 圆角块级带图标按钮 +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + diff --git a/alive-admin/target/classes/templates/demo/form/cards.html b/alive-admin/target/classes/templates/demo/form/cards.html new file mode 100644 index 0000000..35a7f68 --- /dev/null +++ b/alive-admin/target/classes/templates/demo/form/cards.html @@ -0,0 +1,319 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + NEW +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                IT-01 - 设计部
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                部门简介

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 平面设计(graphic design),也称为视觉传达设计,是以“视觉”作为沟通和表现的方式,透过多种方式来创造和结合符号、图片和文字,借此作出用来传达想法或讯息的视觉表现。 +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 当前项目进度: +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                48%
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                项目
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 12 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                周期
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 4个月 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                预算
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + ¥200,913 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                IT-04 - 市场部
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                部门简介

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 平面设计(graphic design),也称为视觉传达设计,是以“视觉”作为沟通和表现的方式,透过多种方式来创造和结合符号、图片和文字,借此作出用来传达想法或讯息的视觉表现。 +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 当前项目进度: +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                32%
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                项目
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 24 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                周期
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 3个月 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                预算
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + ¥190,325 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                IT-07 - 财务部
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                部门简介

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 平面设计(graphic design),也称为视觉传达设计,是以“视觉”作为沟通和表现的方式,透过多种方式来创造和结合符号、图片和文字,借此作出用来传达想法或讯息的视觉表现。 +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 当前项目进度: +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                73%
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                项目
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 11 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                周期
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 6个月 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                预算
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + ¥560,105 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                IT-02 - 开发部
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                部门简介

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 平面设计(graphic design),也称为视觉传达设计,是以“视觉”作为沟通和表现的方式,透过多种方式来创造和结合符号、图片和文字,借此作出用来传达想法或讯息的视觉表现。 +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 当前项目进度: +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                61%
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                项目
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 43 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                周期
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 1个月 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                预算
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + ¥705,913 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 截止 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                IT-05 - 管理层
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                部门简介

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 平面设计(graphic design),也称为视觉传达设计,是以“视觉”作为沟通和表现的方式,透过多种方式来创造和结合符号、图片和文字,借此作出用来传达想法或讯息的视觉表现。 +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 当前项目进度: +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                14%
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                项目
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 8 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                周期
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 7个月 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                预算
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + ¥40,200 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                IT-08 - 销售部
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                部门简介

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 平面设计(graphic design),也称为视觉传达设计,是以“视觉”作为沟通和表现的方式,透过多种方式来创造和结合符号、图片和文字,借此作出用来传达想法或讯息的视觉表现。 +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 当前项目进度: +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                25%
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                项目
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 25 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                周期
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 4个月 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                预算
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + ¥140,105 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                IT-02 - 销售部
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                部门简介

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 平面设计(graphic design),也称为视觉传达设计,是以“视觉”作为沟通和表现的方式,透过多种方式来创造和结合符号、图片和文字,借此作出用来传达想法或讯息的视觉表现。 +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 当前项目进度: +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                82%
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                项目
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 68 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                周期
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 2个月 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                预算
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + ¥701,400 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                IT-06 - 销售部
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                部门简介

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 平面设计(graphic design),也称为视觉传达设计,是以“视觉”作为沟通和表现的方式,透过多种方式来创造和结合符号、图片和文字,借此作出用来传达想法或讯息的视觉表现。 +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 当前项目进度: +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                26%
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                项目
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 16 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                周期
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 8个月 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                预算
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + ¥160,100 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                IT-09 - 销售部
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                部门简介

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 平面设计(graphic design),也称为视觉传达设计,是以“视觉”作为沟通和表现的方式,透过多种方式来创造和结合符号、图片和文字,借此作出用来传达想法或讯息的视觉表现。 +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 当前项目进度: +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                18%
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                项目
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 53 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                周期
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 9个月 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                预算
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + ¥60,140 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + diff --git a/alive-admin/target/classes/templates/demo/form/cxselect.html b/alive-admin/target/classes/templates/demo/form/cxselect.html new file mode 100644 index 0000000..9b2ab07 --- /dev/null +++ b/alive-admin/target/classes/templates/demo/form/cxselect.html @@ -0,0 +1,161 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                多级联动下拉https://github.com/ciaoca/cxSelect
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                简单联动示例。

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                国内省市区联动。

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                自定义选项。

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + diff --git a/alive-admin/target/classes/templates/demo/form/datetime.html b/alive-admin/target/classes/templates/demo/form/datetime.html new file mode 100644 index 0000000..c331f0a --- /dev/null +++ b/alive-admin/target/classes/templates/demo/form/datetime.html @@ -0,0 +1,236 @@ + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                日期选择器 https://github.com/smalot/bootstrap-datetimepicker
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                日期选择器 https://github.com/sentsin/laydate
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + diff --git a/alive-admin/target/classes/templates/demo/form/duallistbox.html b/alive-admin/target/classes/templates/demo/form/duallistbox.html new file mode 100644 index 0000000..d9f7246 --- /dev/null +++ b/alive-admin/target/classes/templates/demo/form/duallistbox.html @@ -0,0 +1,65 @@ + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                双重列表框 https://github.com/istvan-ujjmeszaros/bootstrap-duallistbox
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + Bootstrap Dual Listbox是针对Twitter Bootstrap进行了优化的响应式双列表框。它适用于所有现代浏览器和触摸设备。 +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + diff --git a/alive-admin/target/classes/templates/demo/form/grid.html b/alive-admin/target/classes/templates/demo/form/grid.html new file mode 100644 index 0000000..2274d30 --- /dev/null +++ b/alive-admin/target/classes/templates/demo/form/grid.html @@ -0,0 +1,432 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                栅格设置
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                通过下表可以详细查看 Bootstrap 的栅格系统是如何在多种屏幕设备上工作的。

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 超小屏幕 + 手机 (<768px) + + 小屏幕 + 平板 (≥768px) + + 中等屏幕 + 桌面显示器 (≥992px) + + 大屏幕 + 大桌面显示器 (≥1200px) +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                栅格系统行为总是水平排列开始是堆叠在一起的,当大于这些阈值时将变为水平排列C
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                .container 最大宽度None (自动)750px970px1170px
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                类前缀.col-xs- + .col-sm- + .col-md- + .col-lg- +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                列(column)数12
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                最大列(column)宽自动~62px~81px~97px
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                槽(gutter)宽30px (每列左右均有 15px)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                可嵌套
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                偏移(Offsets)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                列排序
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                从堆叠到水平排列
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                使用单一的一组 .col-md-* 栅格类,就可以创建一个基本的栅格系统,在手机和平板设备上一开始是堆叠在一起的(超小屏幕到小屏幕这一范围),在桌面(中等)屏幕设备上变为水平排列。所有“列(column)必须放在 ” .row 内。

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                .col-md-1
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                .col-md-1
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                .col-md-1
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                .col-md-1
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                .col-md-1
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                .col-md-1
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                .col-md-1
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                .col-md-1
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                .col-md-1
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                .col-md-1
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                .col-md-1
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                .col-md-1
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                .col-md-8
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                .col-md-4
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                .col-md-4
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                .col-md-4
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                .col-md-4
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                .col-md-6
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                .col-md-6
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                移动设备和桌面屏幕
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                是否不希望在小屏幕设备上所有列都堆叠在一起?那就使用针对超小屏幕和中等屏幕设备所定义的类吧,即 .col-xs-*.col-md-*。请看下面的实例,研究一下这些是如何工作的。

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                .col-xs-12 .col-md-8
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                .col-xs-6 .col-md-4
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                .col-xs-6 .col-md-4
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                .col-xs-6 .col-md-4
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                .col-xs-6 .col-md-4
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                .col-xs-6
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                .col-xs-6
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                手机、平板、桌面
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                在上面案例的基础上,通过使用针对平板设备的 .col-sm-* 类,我们来创建更加动态和强大的布局吧。

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                .col-xs-12 .col-sm-6 .col-md-8
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                .col-xs-6 .col-md-4
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                .col-xs-6 .col-sm-4
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                .col-xs-6 .col-sm-4
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                .col-xs-6 .col-sm-4
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                多余的列(column)将另起一行排列
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                在等宽的4网格中,网格不等高会碰到问题,为了解决这个问题,可使用.clearfix响应实用工具类 +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + .col-xs-6 .col-sm-3 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                调整窗口大小或者在手机上查看本示例 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                .col-xs-6 .col-sm-3
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                .col-xs-6 .col-sm-3
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                .col-xs-6 .col-sm-3
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                列偏移
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                使用 .col-md-offset-* 类可以将列向右侧偏移。这些类实际是通过使用 * 选择器为当前元素增加了左侧的边距(margin)。例如,.col-md-offset-4 类将 .col-md-4 元素向右侧偏移了4个列(column)的宽度。

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                .col-md-4
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                .col-md-4 .col-md-offset-4
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                .col-md-3 .col-md-offset-3
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                .col-md-3 .col-md-offset-3
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                .col-md-6 .col-md-offset-3
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                嵌套列
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                为了使用内置的栅格系统将内容再次嵌套,可以通过添加一个新的 .row 元素和一系列 .col-sm-* 元素到已经存在的 .col-sm-* 元素内。被嵌套的行(row)所包含的列(column)的个数不能超过12(其实,没有要求你必须占满12列)。

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 第一级: .col-md-9 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 第二级: .col-md-6 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 第二级: .col-md-6 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                列排序
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                通过使用 .col-md-push-*.col-md-pull-* 类就可以很容易的改变列(column)的顺序。

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                .col-md-9 .col-md-push-3
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                .col-md-3 .col-md-pull-9
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + diff --git a/alive-admin/target/classes/templates/demo/form/invoice.html b/alive-admin/target/classes/templates/demo/form/invoice.html new file mode 100644 index 0000000..42b4e80 --- /dev/null +++ b/alive-admin/target/classes/templates/demo/form/invoice.html @@ -0,0 +1,122 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 北京百度在线网络技术有限公司
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 北京市海淀区上地十街10号
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 总机: (+86 10) 5992 8888 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                单据编号:

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                H+-000567F7-00

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 阿里巴巴集团
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 中国杭州市华星路99号东部软件园创业大厦6层(310099)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 总机: (86) 571-8502-2088 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 日期: 2014-11-11 +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                清单数量单价税率总价
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                尚都比拉2013冬装新款女装 韩版修身呢子大衣 秋冬气质羊毛呢外套 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                1¥26.00¥1.20¥31,98
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                11*11夏娜 新款斗篷毛呢外套 女秋冬呢子大衣 韩版大码宽松呢大衣 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 双十一特价 + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                2¥80.00¥1.20¥196.80
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                2013秋装 新款女装韩版学生秋冬加厚加绒保暖开衫卫衣 百搭女外套 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                3¥420.00¥1.20¥1033.20
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                总价: + ¥1026.00
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                税: + ¥235.98
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                总计 + ¥1261.98
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                注意: 请在30日内完成付款,否则订单会自动取消。 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + diff --git a/alive-admin/target/classes/templates/demo/form/jasny.html b/alive-admin/target/classes/templates/demo/form/jasny.html new file mode 100644 index 0000000..4bc8f71 --- /dev/null +++ b/alive-admin/target/classes/templates/demo/form/jasny.html @@ -0,0 +1,118 @@ + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                文件上传控件 https://github.com/jasny/bootstrap
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 选择文件更改 + 清除 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 选择文件更改 + + × +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 选择图片更改 + 清除 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 选择图片更改 + 清除 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                固定格式文本 https://github.com/jasny/bootstrap
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + 158-8888-88888 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + 0730-8888888 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + yyyy-mm-dd +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + 192.168.100.200 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + 99-9999999 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + diff --git a/alive-admin/target/classes/templates/demo/form/labels_tips.html b/alive-admin/target/classes/templates/demo/form/labels_tips.html new file mode 100644 index 0000000..3ee6563 --- /dev/null +++ b/alive-admin/target/classes/templates/demo/form/labels_tips.html @@ -0,0 +1,237 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                徽章 (Badges)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 要添加徽章,只需要在元素上添加.badge即可,改变徽章的颜色可使用如下class,如.badge-primary。 +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                badge-primary +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                badge-info +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                badge-success +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                badge-warning +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                badge-danger +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                标签 (Labels)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 要添加徽章,只需要在元素上添加class.label即可,如果需要修改颜色,添加如下class,如.label-primary +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                label-primary +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                label-info +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                label-success +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                label-warning +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                label-danger +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                通知样式
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + RuoYi是一个很棒的后台UI框架 了解更多. +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + RuoYi是一个很棒的后台UI框架 了解更多. +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + RuoYi是一个很棒的后台UI框架 了解更多. +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + RuoYi是一个很棒的后台UI框架 了解更多. +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                带关闭按钮的通知样式
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + RuoYi是一个很棒的后台UI框架 了解更多. +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + RuoYi是一个很棒的后台UI框架 了解更多. +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + RuoYi是一个很棒的后台UI框架 了解更多. +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + RuoYi是一个很棒的后台UI框架 了解更多. +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                工具提示
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                工具提示示例 深色背景

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                工具提示 - 单击提示

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + diff --git a/alive-admin/target/classes/templates/demo/form/localrefresh.html b/alive-admin/target/classes/templates/demo/form/localrefresh.html new file mode 100644 index 0000000..cc2ad09 --- /dev/null +++ b/alive-admin/target/classes/templates/demo/form/localrefresh.html @@ -0,0 +1,61 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                任务列表

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + 点击刷新按钮刷新数据到列表中 +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + diff --git a/alive-admin/target/classes/templates/demo/form/select.html b/alive-admin/target/classes/templates/demo/form/select.html new file mode 100644 index 0000000..cd5e94f --- /dev/null +++ b/alive-admin/target/classes/templates/demo/form/select.html @@ -0,0 +1,148 @@ + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                下拉框 https://github.com/select2/select2
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                下拉框 https://github.com/snapappointments/bootstrap-select
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + diff --git a/alive-admin/target/classes/templates/demo/form/sortable.html b/alive-admin/target/classes/templates/demo/form/sortable.html new file mode 100644 index 0000000..478be4c --- /dev/null +++ b/alive-admin/target/classes/templates/demo/form/sortable.html @@ -0,0 +1,198 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                任务列表

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                在列表之间拖动任务面板

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + 加强过程管理,及时统计教育经费使用情况,做到底码清楚, +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  + 标签 + 2018.09.01 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + 支持财会人员的继续培训工作。 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  + 标记 + 2018.05.12 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + 协同教导处搞好助学金、减免教科书费的工作。 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  + 标记 + 2018.09.10 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + 要求会计、出纳人员严格执行财务制度,遵守岗位职责,按时上报各种资料。 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  + 确定 + 2018.06.10 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + 做好职工公费医疗工作,按时发放门诊费。 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  + 标签 + 2018.09.09 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + 有计划地把课本复习三至五遍。 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  + 确定 + 2018.08.04 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + 看一本高质量的高中语法书 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  + 标记 + 2018.05.12 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + 选择一份较好的英语报纸,通过阅读提高英语学习效果。 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  + 标记 + 2018.09.10 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                进行中

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                在列表之间拖动任务面板

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + 全面、较深入地掌握我们“产品”的功能、特色和优势并做到应用自如。 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  + 标签 + 2018.09.01 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + 根据自己以前所了解的和从其他途径搜索到的信息,录入客户资料150家。 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  + 标记 + 2018.05.12 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + 锁定有意向客户20家。 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  + 标记 + 2018.09.10 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + 力争完成销售指标。 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  + 标签 + 2018.09.09 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + 在总结和摸索中前进。 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  + 确定 + 2018.08.04 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + 不断学习行业知识、产品知识,为客户带来实用介绍内容 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  + 标记 + 2018.05.12 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + 先友后单:与客户发展良好友谊,转换销售员角色,处处为客户着想 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  + 标记 + 2018.11.04 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                已完成

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                在列表之间拖动任务面板

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + 制定工作日程表 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  + 标记 + 2018.09.10 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + 每天坚持打40个有效电话,挖掘潜在客户 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  + 标签 + 2018.09.09 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + 拜访客户之前要对该客户做全面的了解(客户的潜在需求、职位、权限以及个人性格和爱好) +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  + 标签 + 2018.09.09 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + 提高自己电话营销技巧,灵活专业地与客户进行电话交流 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  + 确定 + 2018.08.04 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + 通过电话销售过程中了解各盛市的设备仪器使用、采购情况及相关重要追踪人 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  + 标记 + 2018.05.12 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + diff --git a/alive-admin/target/classes/templates/demo/form/summernote.html b/alive-admin/target/classes/templates/demo/form/summernote.html new file mode 100644 index 0000000..99b1396 --- /dev/null +++ b/alive-admin/target/classes/templates/demo/form/summernote.html @@ -0,0 +1,93 @@ + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Summernote 富文本编辑器
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                GTB后台管理系统

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                网站管理后台网站会员中心CMSCRMOA等等,当然,您也可以对她进行深度定制,以做出更强系统。

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 当前版本:v4.3.1 +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + YES +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Summernote

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + Summernote是一个简单的基于Bootstrap的WYSIWYG富文本编辑器 +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                官方文档请参考: + https://github.com/summernote/summernote +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                编辑/保存为html代码示例
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                你好,CTB

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                H+是一个完全响应式,基于Bootstrap3.3.6最新版本开发的扁平化主题,她采用了主流的左右两栏式布局,使用了Html5+CSS3等现代技术,她提供了诸多的强大的可以重新组合的UI组件,并集成了最新的jQuery版本(v2.1.1),当然,也集成了很多功能强大,用途广泛的就jQuery插件,她可以用于所有的Web应用程序,如网站管理后台网站会员中心CMSCRMOA等等,当然,您也可以对她进行深度定制,以做出更强系统。

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 当前版本:v4.3.1 +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 开源免费 +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + diff --git a/alive-admin/target/classes/templates/demo/form/tabs_panels.html b/alive-admin/target/classes/templates/demo/form/tabs_panels.html new file mode 100644 index 0000000..8515af7 --- /dev/null +++ b/alive-admin/target/classes/templates/demo/form/tabs_panels.html @@ -0,0 +1,353 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                基本面板 这是一个自定义面板
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + Bootstrap
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 简洁、直观、强悍的前端开发框架,让web开发更迅速、简单。

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + HTML5 文档类型 +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Bootstrap 使用到的某些 HTML 元素和 CSS 属性需要将页面设置为 HTML5 文档类型。在你项目中的每个页面都要参照下面的格式进行设置。

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 移动设备优先 +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                在 Bootstrap 2 中,我们对框架中的某些关键部分增加了对移动设备友好的样式。而在 Bootstrap 3 中,我们重写了整个框架,使其一开始就是对移动设备友好的。这次不是简单的增加一些可选的针对移动设备的样式,而是直接融合进了框架的内核中。也就是说,Bootstrap 是移动设备优先的。针对移动设备的样式融合进了框架的每个角落,而不是增加一个额外的文件。

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                图标选项卡

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 排版与链接 + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Bootstrap 排版、链接样式设置了基本的全局样式。分别是: 为 body 元素设置 background-color: #fff; 使用 @font-family-base、@font-size-base 和 @line-height-base a变量作为排版的基本参数 为所有链接设置了基本颜色 @link-color ,并且当链接处于 :hover 状态时才添加下划线 这些样式都能在 scaffolding.less 文件中找到对应的源码。

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + Normalize.css + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                为了增强跨浏览器表现的一致性,我们使用了 Normalize.css,这是由 Nicolas Gallagher 和 Jonathan Neal 维护的一个CSS 重置样式库。

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 布局容器 + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Bootstrap 需要为页面内容和栅格系统包裹一个 .container 容器。我们提供了两个作此用处的类。注意,由于 padding 等属性的原因,这两种 容器类不能互相嵌套。

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 栅格系统 + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Bootstrap 提供了一套响应式、移动设备优先的流式栅格系统,随着屏幕或视口(viewport)尺寸的增加,系统会自动分为最多12列。它包含了易于使用的预定义类,还有强大的mixin 用于生成更具语义的布局。

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 排版与链接 + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Bootstrap 排版、链接样式设置了基本的全局样式。分别是: 为 body 元素设置 background-color: #fff; 使用 @font-family-base、@font-size-base 和 @line-height-base a变量作为排版的基本参数 为所有链接设置了基本颜色 @link-color ,并且当链接处于 :hover 状态时才添加下划线 这些样式都能在 scaffolding.less 文件中找到对应的源码。

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 栅格系统 + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Bootstrap 提供了一套响应式、移动设备优先的流式栅格系统,随着屏幕或视口(viewport)尺寸的增加,系统会自动分为最多12列。它包含了易于使用的预定义类,还有强大的mixin 用于生成更具语义的布局。

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 排版与链接 + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Bootstrap 排版、链接样式设置了基本的全局样式。分别是: 为 body 元素设置 background-color: #fff; 使用 @font-family-base、@font-size-base 和 @line-height-base a变量作为排版的基本参数 为所有链接设置了基本颜色 @link-color ,并且当链接处于 :hover 状态时才添加下划线 这些样式都能在 scaffolding.less 文件中找到对应的源码。

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 栅格系统 + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Bootstrap 提供了一套响应式、移动设备优先的流式栅格系统,随着屏幕或视口(viewport)尺寸的增加,系统会自动分为最多12列。它包含了易于使用的预定义类,还有强大的mixin 用于生成更具语义的布局。

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Bootstrap面板 自定义背景
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 默认面板 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                通过 .panel-heading 可以很简单地为面板加入一个标题容器。你也可以通过添加设置了 .panel-title 类的标签,添加一个预定义样式的标题。 为了给链接设置合适的颜色,务必将链接放到带有 .panel-title 类的标题标签内。

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 主要 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                通过 .panel-heading 可以很简单地为面板加入一个标题容器。你也可以通过添加设置了 .panel-title 类的标签,添加一个预定义样式的标题。 为了给链接设置合适的颜色,务必将链接放到带有 .panel-title 类的标题标签内。

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 成功 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                通过 .panel-heading 可以很简单地为面板加入一个标题容器。你也可以通过添加设置了 .panel-title 类的标签,添加一个预定义样式的标题。 为了给链接设置合适的颜色,务必将链接放到带有 .panel-title 类的标题标签内。

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 信息 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                通过 .panel-heading 可以很简单地为面板加入一个标题容器。你也可以通过添加设置了 .panel-title 类的标签,添加一个预定义样式的标题。 为了给链接设置合适的颜色,务必将链接放到带有 .panel-title 类的标题标签内。

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 警告 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                通过 .panel-heading 可以很简单地为面板加入一个标题容器。你也可以通过添加设置了 .panel-title 类的标签,添加一个预定义样式的标题。 为了给链接设置合适的颜色,务必将链接放到带有 .panel-title 类的标题标签内。

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 危险 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                通过 .panel-heading 可以很简单地为面板加入一个标题容器。你也可以通过添加设置了 .panel-title 类的标签,添加一个预定义样式的标题。 为了给链接设置合适的颜色,务必将链接放到带有 .panel-title 类的标题标签内。

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                折叠面板
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 标题 #1 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + Bootstrap相关优质项目推荐 这些项目或者是对Bootstrap进行了有益的补充,或者是基于Bootstrap开发的 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 标题 #2 +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + Bootstrap相关优质项目推荐 这些项目或者是对Bootstrap进行了有益的补充,或者是基于Bootstrap开发的 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 标题 #3 +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + Bootstrap相关优质项目推荐 这些项目或者是对Bootstrap进行了有益的补充,或者是基于Bootstrap开发的 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                超大屏幕

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Bootstrap 支持的另一个特性,超大屏幕(Jumbotron)。顾名思义该组件可以增加标题的大小,并为登陆页面内容添加更多的外边距(margin)。使用超大屏幕(Jumbotron)的步骤如下:

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                1. 创建一个带有 class .jumbotron. 的容器
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                2. +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                3. 除了更大的 <h1>,字体粗细 font-weight 被减为 200px。
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                4. +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                了解更多 +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + diff --git a/alive-admin/target/classes/templates/demo/form/timeline.html b/alive-admin/target/classes/templates/demo/form/timeline.html new file mode 100644 index 0000000..0b0239e --- /dev/null +++ b/alive-admin/target/classes/templates/demo/form/timeline.html @@ -0,0 +1,113 @@ + + + + + + 时间轴 + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 打开/关闭颜色/背景或方向版本: + 轻型版本 + 黑色版本 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                会议

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                上一年的销售业绩发布会。总结产品营销和销售趋势及销售的现状。 +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 更多信息 + + 今天
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 2月3日 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                给张三发送文档

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                发送上年度《销售业绩报告》

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 下载文档 + + 今天
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 2月3日 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                喝咖啡休息

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                喝咖啡啦,啦啦啦~~

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 更多 + 昨天
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                2月2日
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                给李四打电话

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                给李四打电话分配本月工作任务

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 昨天
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                2月2日
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                公司年会

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                发年终奖啦,啦啦啦~~

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 前天
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                2月1日
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + diff --git a/alive-admin/target/classes/templates/demo/form/upload.html b/alive-admin/target/classes/templates/demo/form/upload.html new file mode 100644 index 0000000..787323c --- /dev/null +++ b/alive-admin/target/classes/templates/demo/form/upload.html @@ -0,0 +1,55 @@ + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                文件上传控件 https://github.com/kartik-v/bootstrap-fileinput
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + diff --git a/alive-admin/target/classes/templates/demo/form/validate.html b/alive-admin/target/classes/templates/demo/form/validate.html new file mode 100644 index 0000000..31c0872 --- /dev/null +++ b/alive-admin/target/classes/templates/demo/form/validate.html @@ -0,0 +1,193 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                jQuery Validate 简介
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                jquery.validate.js 是一款优秀的jQuery表单验证插件。它具有如下特点:

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • 安装简单
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • 内置超过20种数据验证方法
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • 直列错误提示信息
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • 可扩展的数据验证方法
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • 使用内置的元数据或插件选项来指定您的验证规则
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • 优雅的交互设计
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                官网:http://jqueryvalidation.org/ +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                简单示例
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                更多示例请访问官方示例页面:查看 +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                中文API可参考:http://doc.ruoyi.vip/ruoyi/document/zjwd.html#jquery-validate +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                完整验证表单
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + 这里写点提示的内容 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + 请再次输入您的密码 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + diff --git a/alive-admin/target/classes/templates/demo/form/wizard.html b/alive-admin/target/classes/templates/demo/form/wizard.html new file mode 100644 index 0000000..1b48de3 --- /dev/null +++ b/alive-admin/target/classes/templates/demo/form/wizard.html @@ -0,0 +1,192 @@ + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                表单向导

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Smart UI 部件允许您快速创建表单向导接口。

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                了解 jQuery Steps +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                基础表单向导
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 这是一个简单的表单向导示例 +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                第一步

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                第一步

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 这是第一步的内容 +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                第二步

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                第二步

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 这是第二步的内容 +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                第三步

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                第三步

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 这是第三步的内容 +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                带验证的表单向导
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 带验证的表单向导 +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 下面这个示例展示了如何在表单向导中使用 jQuery Validation 插件 +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                账户

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                账户信息

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                个人资料

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                个人资料信息

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                警告

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                你是火星人 :-)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                完成

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                条款

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + diff --git a/alive-admin/target/classes/templates/demo/icon/fontawesome.html b/alive-admin/target/classes/templates/demo/icon/fontawesome.html new file mode 100644 index 0000000..634e2ec --- /dev/null +++ b/alive-admin/target/classes/templates/demo/icon/fontawesome.html @@ -0,0 +1,1944 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Font Awesome 4.4.0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                字体图标的最佳集合。提供可伸缩矢量图标,可以立即进行定制大小、颜色、阴影,所有都可以用CSS样式来完成。 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                所有图标 所有图标集合 - Font Awesome
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + 给这些图标加上 + fa-spin class,就可以表现出加载动画了 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • 所有品牌图标均为其各自所有者的商标
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • 使用这些商标并不表示该商标持有人的认可,反之亦然
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + diff --git a/alive-admin/target/classes/templates/demo/icon/glyphicons.html b/alive-admin/target/classes/templates/demo/icon/glyphicons.html new file mode 100644 index 0000000..b9c6f6b --- /dev/null +++ b/alive-admin/target/classes/templates/demo/icon/glyphicons.html @@ -0,0 +1,1364 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Glyphicons 字体图标

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                包括250多个来自 Glyphicon Halflings 的字体图标。Glyphicons Halflings 一般是收费的,但是他们的作者允许 Bootstrap 免费使用。为了表示感谢,希望你在使用时尽量为 Glyphicons 添加一个友情链接。 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                所有图标 所有图标集合 - Glyphicons
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-asterisk +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-plus +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-euro +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-eur +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-minus +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-cloud +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-envelope +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-pencil +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-glass +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-music +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-search +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-heart +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-star +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-star-empty +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-user +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-film +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-th-large +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-th +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-th-list +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-ok +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-remove +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-zoom-in +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-zoom-out +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-off +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-signal +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-cog +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-trash +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-home +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-file +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-time +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-road +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-download-alt +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-download +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-upload +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-inbox +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-play-circle +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-repeat +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-refresh +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-list-alt +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-lock +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-flag +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-headphones +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-volume-off +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-volume-down +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-volume-up +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-qrcode +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-barcode +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-tag +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-tags +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-book +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-bookmark +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-print +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-camera +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-font +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-bold +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-italic +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-text-height +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-text-width +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-align-left +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-align-center +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-align-right +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-align-justify +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-list +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-indent-left +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-indent-right +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-facetime-video +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-picture +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-map-marker +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-adjust +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-tint +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-edit +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-share +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-check +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-move +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-step-backward +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-fast-backward +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-backward +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-play +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-pause +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-stop +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-forward +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-fast-forward +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-step-forward +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-eject +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-chevron-left +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-chevron-right +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-plus-sign +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-minus-sign +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-remove-sign +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-ok-sign +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-question-sign +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-info-sign +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-screenshot +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-remove-circle +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-ok-circle +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-ban-circle +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-arrow-left +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-arrow-right +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-arrow-up +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-arrow-down +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-share-alt +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-resize-full +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-resize-small +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-exclamation-sign +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-gift +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-leaf +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-fire +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-eye-open +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-eye-close +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-warning-sign +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-plane +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-calendar +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-random +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-comment +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-magnet +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-chevron-up +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-chevron-down +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-retweet +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-shopping-cart +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-folder-close +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-folder-open +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-resize-vertical +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-resize-horizontal +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-hdd +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-bullhorn +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-bell +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-certificate +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-thumbs-up +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-thumbs-down +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-hand-right +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-hand-left +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-hand-up +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-hand-down +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-circle-arrow-right +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-circle-arrow-left +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-circle-arrow-up +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-circle-arrow-down +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-globe +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-wrench +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-tasks +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-filter +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-briefcase +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-fullscreen +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-dashboard +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-paperclip +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-heart-empty +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-link +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-phone +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-pushpin +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-usd +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-gbp +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-sort +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-sort-by-alphabet +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-sort-by-alphabet-alt +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-sort-by-order +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-sort-by-order-alt +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-sort-by-attributes +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-sort-by-attributes-alt +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-unchecked +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-expand +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-collapse-down +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-collapse-up +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-log-in +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-flash +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-log-out +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-new-window +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-record +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-save +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-open +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-saved +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-import +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-export +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-send +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-floppy-disk +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-floppy-saved +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-floppy-remove +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-floppy-save +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-floppy-open +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-credit-card +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-transfer +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-cutlery +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-header +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-compressed +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-earphone +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-phone-alt +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-tower +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-stats +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-sd-video +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-hd-video +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-subtitles +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-sound-stereo +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-sound-dolby +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-sound-5-1 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-sound-6-1 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-sound-7-1 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-copyright-mark +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-registration-mark +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-cloud-download +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-cloud-upload +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-tree-conifer +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-tree-deciduous +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-cd +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-save-file +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-open-file +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-level-up +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-copy +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-paste +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-alert +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-equalizer +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-king +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-queen +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-pawn +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-bishop +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-knight +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-baby-formula +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-tent +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-blackboard +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-bed +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-apple +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-erase +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-hourglass +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-lamp +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-duplicate +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-piggy-bank +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-scissors +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-bitcoin +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-btc +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-xbt +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-yen +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-jpy +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-ruble +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-rub +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-scale +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-ice-lolly +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-ice-lolly-tasted +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-education +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-option-horizontal +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-option-vertical +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-menu-hamburger +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-modal-window +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-oil +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-grain +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-sunglasses +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-text-size +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-text-color +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-text-background +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-object-align-top +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-object-align-bottom +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-object-align-horizontal +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-object-align-left +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-object-align-vertical +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-object-align-right +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-triangle-right +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-triangle-left +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-triangle-bottom +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-triangle-top +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-console +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-superscript +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-subscript +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-menu-left +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-menu-right +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-menu-down +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + glyphicon glyphicon-menu-up +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + diff --git a/alive-admin/target/classes/templates/demo/modal/dialog.html b/alive-admin/target/classes/templates/demo/modal/dialog.html new file mode 100644 index 0000000..2444334 --- /dev/null +++ b/alive-admin/target/classes/templates/demo/modal/dialog.html @@ -0,0 +1,215 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                模态窗口
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                创建自定义的RuoYi模态窗口可通过添加.inmodal类来实现。

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                大小设置
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                模态窗口提供两种大小尺寸,可以通过为模态窗口的.modal-dialog添加类来实现

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                动画窗口
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                您可以通过为模态窗口的.modal-content添加类来实现动画效果

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                设置选项
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                可以通过数据绑定或者Javascript来实现模态窗口的相关功能,如果使用数据绑定,可以为元素添加data-,如data-backdrop=""

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                名称类型默认值说明
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                backdropboolean 或 string 'static'true遮罩层,或使用'static'指定遮罩层与关闭模态窗口不关联
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                keyboardbooleantrue按Esc键时退出模态窗口
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                showbooleantrue初始化完成后显示模态窗口
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                remotepathfalse +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                推荐使用数据绑定方式,或使用 + jQuery.load

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                远程URL示例:

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <a data-toggle="modal" href="remote.html" data-target="#modal">Click me</a>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + diff --git a/alive-admin/target/classes/templates/demo/modal/form.html b/alive-admin/target/classes/templates/demo/modal/form.html new file mode 100644 index 0000000..b690450 --- /dev/null +++ b/alive-admin/target/classes/templates/demo/modal/form.html @@ -0,0 +1,95 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + diff --git a/alive-admin/target/classes/templates/demo/modal/layer.html b/alive-admin/target/classes/templates/demo/modal/layer.html new file mode 100644 index 0000000..9eba748 --- /dev/null +++ b/alive-admin/target/classes/templates/demo/modal/layer.html @@ -0,0 +1,256 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                信息框
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                通过调用$.modal.alert()实现。

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                提示框
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                通过调用$.modal.msg()实现。

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                询问框
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                通过调用$.modal.confirm()实现。

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                消息提示并刷新父窗体
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                通过调用$.modal.msgReload()实现。

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                普通弹出层
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                通过调用$.modal.open()实现。

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                选卡页方式
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                通过调用$.modal.openTab()实现。

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                其他内容
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                通过调用layer实现。

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                遮罩层
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                通过调用blockUI实现。

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + diff --git a/alive-admin/target/classes/templates/demo/modal/table.html b/alive-admin/target/classes/templates/demo/modal/table.html new file mode 100644 index 0000000..9feec45 --- /dev/null +++ b/alive-admin/target/classes/templates/demo/modal/table.html @@ -0,0 +1,56 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                弹层框
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                弹出复选框表格及单选框表格(点击提交后得到数据)。

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                弹层框
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                弹出复选框表格及单选框表格(点击提交后得到数据并回显到父窗体)。

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + diff --git a/alive-admin/target/classes/templates/demo/modal/table/check.html b/alive-admin/target/classes/templates/demo/modal/table/check.html new file mode 100644 index 0000000..17872dd --- /dev/null +++ b/alive-admin/target/classes/templates/demo/modal/table/check.html @@ -0,0 +1,87 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/demo/modal/table/frame1.html b/alive-admin/target/classes/templates/demo/modal/table/frame1.html new file mode 100644 index 0000000..af5fe62 --- /dev/null +++ b/alive-admin/target/classes/templates/demo/modal/table/frame1.html @@ -0,0 +1,53 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/demo/modal/table/frame2.html b/alive-admin/target/classes/templates/demo/modal/table/frame2.html new file mode 100644 index 0000000..b4940fe --- /dev/null +++ b/alive-admin/target/classes/templates/demo/modal/table/frame2.html @@ -0,0 +1,24 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/demo/modal/table/parent.html b/alive-admin/target/classes/templates/demo/modal/table/parent.html new file mode 100644 index 0000000..0807206 --- /dev/null +++ b/alive-admin/target/classes/templates/demo/modal/table/parent.html @@ -0,0 +1,90 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/demo/modal/table/radio.html b/alive-admin/target/classes/templates/demo/modal/table/radio.html new file mode 100644 index 0000000..0df48f0 --- /dev/null +++ b/alive-admin/target/classes/templates/demo/modal/table/radio.html @@ -0,0 +1,86 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/demo/operate/add.html b/alive-admin/target/classes/templates/demo/operate/add.html new file mode 100644 index 0000000..ee8e332 --- /dev/null +++ b/alive-admin/target/classes/templates/demo/operate/add.html @@ -0,0 +1,78 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + diff --git a/alive-admin/target/classes/templates/demo/operate/detail.html b/alive-admin/target/classes/templates/demo/operate/detail.html new file mode 100644 index 0000000..e0379fc --- /dev/null +++ b/alive-admin/target/classes/templates/demo/operate/detail.html @@ -0,0 +1,69 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + diff --git a/alive-admin/target/classes/templates/demo/operate/edit.html b/alive-admin/target/classes/templates/demo/operate/edit.html new file mode 100644 index 0000000..94ed965 --- /dev/null +++ b/alive-admin/target/classes/templates/demo/operate/edit.html @@ -0,0 +1,79 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + diff --git a/alive-admin/target/classes/templates/demo/operate/other.html b/alive-admin/target/classes/templates/demo/operate/other.html new file mode 100644 index 0000000..a53e61a --- /dev/null +++ b/alive-admin/target/classes/templates/demo/operate/other.html @@ -0,0 +1,78 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +   +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +   +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/demo/operate/table.html b/alive-admin/target/classes/templates/demo/operate/table.html new file mode 100644 index 0000000..6a3f897 --- /dev/null +++ b/alive-admin/target/classes/templates/demo/operate/table.html @@ -0,0 +1,125 @@ + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/demo/report/echarts.html b/alive-admin/target/classes/templates/demo/report/echarts.html new file mode 100644 index 0000000..311ebff --- /dev/null +++ b/alive-admin/target/classes/templates/demo/report/echarts.html @@ -0,0 +1,1264 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ECharts开源来自百度商业前端数据可视化团队,基于html5 Canvas,是一个纯Javascript图表库,提供直观,生动,可交互,可个性化定制的数据可视化图表。创新的拖拽重计算、数据视图、值域漫游等特性大大增强了用户体验,赋予了用户对数据进行挖掘、整合的能力。 了解更多 +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ECharts官网:http://echarts.baidu.com/ +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                折线图
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                柱状图
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                散点图
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                K线图
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                饼状图
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                雷达图
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                仪表盘
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                漏斗图
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                中国地图
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/demo/report/metrics.html b/alive-admin/target/classes/templates/demo/report/metrics.html new file mode 100644 index 0000000..853f672 --- /dev/null +++ b/alive-admin/target/classes/templates/demo/report/metrics.html @@ -0,0 +1,478 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Q1 销量
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 上升 +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 更新时间:12天以前 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Q2 销量
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 上升 +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 更新时间:12天以前 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Q3 销量
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 下降 +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 更新时间:12天以前 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Q4 销量
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 下降 +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 更新时间:12天以前 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                本日访问量
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                198 009

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                本周访问量
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                65 000

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                本月访问量
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                680 900

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                平均停留时间
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                00:06:40

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                使用率
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                65%

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                4:32更新
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                使用率
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                50%

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                4:32更新
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                使用率
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                14%

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                4:32更新
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                使用率
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                20%

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                4:32更新
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                百分比
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                42/20

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                百分比
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                100/54

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                百分比
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                685/211

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                百分比
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                240/32

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                收入
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                886,200

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                98%
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 总收入 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                本月收入
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                1 738,200

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                98%
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 总收入 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                本日收入
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -200,100

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                12%
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 总收入 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                搜索有收入
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                54,200

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                24%
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 总收入 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                预警
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + 示例 01 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + 示例 02 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + 示例 03 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                项目
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + 示例 01 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + 示例 02 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + 示例 03 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                消息
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + 示例 01 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + 示例 02 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + 示例 03 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                通知
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + 示例 01 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + 示例 02 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + 示例 03 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/demo/report/peity.html b/alive-admin/target/classes/templates/demo/report/peity.html new file mode 100644 index 0000000..93c5194 --- /dev/null +++ b/alive-admin/target/classes/templates/demo/report/peity.html @@ -0,0 +1,206 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Peity图表

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                是一个内嵌数据图形可视化的图表库

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                了解 Peity +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                饼状图 自定义颜色
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                图表代码
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 1/5 + + <span class="pie">1/5</span> +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 226/360 + + <span class="pie">226/360</span> +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 0.52/1.561 + + <span class="pie">0.52/1.561</span> +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 1,4 + + <span class="pie">1,4</span> +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 226,134 + + <span class="pie">226,134</span> +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 0.52,1.041 + + <span class="pie">0.52,1.041</span> +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                线性图
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                图表代码
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 5,3,9,6,5,9,7,3,5,2,5,3,9,6,5,9,7,3,5,2 + + <span class="line">5,3,9,6,5,9,7,3,5,2</span> +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 5,3,9,6,5,9,7,3,5,2 + + <span class="line">5,3,9,6,5,9,7,3,5,2</span> +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 5,3,2,-1,-3,-2,2,3,5,2 + + <span class="line">5,3,2,-1,-3,-2,2,3,5,2</span> +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 0,-3,-6,-4,-5,-4,-7,-3,-5,-2 + + <span class="line">0,-3,-6,-4,-5,-4,-7,-3,-5,-2</span> +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 5,3,9,6,5,9,7,3,5,2 + + <span class="bar">5,3,9,6,5,9,7,3,5,2</span> +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 5,3,2,-1,-3,-2,2,3,5,2 + + <span class="bar">5,3,2,-1,-3,-2,2,3,5,2</span> +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/demo/report/sparkline.html b/alive-admin/target/classes/templates/demo/report/sparkline.html new file mode 100644 index 0000000..d73c18f --- /dev/null +++ b/alive-admin/target/classes/templates/demo/report/sparkline.html @@ -0,0 +1,232 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Sparkline

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                这是另一个可视化图表库

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                了解 Sparkline +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Sparkline图表 自定义颜色
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                图表类型
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + 内联线性图 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + 柱状图 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + 饼状图 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + 长线性图 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + 三态图 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + 散点图 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                自定义饼状图尺寸
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                自定义柱状图尺寸
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                自定义线性图尺寸
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/demo/table/asynTree.html b/alive-admin/target/classes/templates/demo/table/asynTree.html new file mode 100644 index 0000000..c5af5c0 --- /dev/null +++ b/alive-admin/target/classes/templates/demo/table/asynTree.html @@ -0,0 +1,85 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/demo/table/button.html b/alive-admin/target/classes/templates/demo/table/button.html new file mode 100644 index 0000000..7a86644 --- /dev/null +++ b/alive-admin/target/classes/templates/demo/table/button.html @@ -0,0 +1,92 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/demo/table/child.html b/alive-admin/target/classes/templates/demo/table/child.html new file mode 100644 index 0000000..8a50491 --- /dev/null +++ b/alive-admin/target/classes/templates/demo/table/child.html @@ -0,0 +1,113 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/demo/table/curd.html b/alive-admin/target/classes/templates/demo/table/curd.html new file mode 100644 index 0000000..ee76177 --- /dev/null +++ b/alive-admin/target/classes/templates/demo/table/curd.html @@ -0,0 +1,178 @@ + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/demo/table/customView.html b/alive-admin/target/classes/templates/demo/table/customView.html new file mode 100644 index 0000000..a2f4d1c --- /dev/null +++ b/alive-admin/target/classes/templates/demo/table/customView.html @@ -0,0 +1,122 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/demo/table/data.html b/alive-admin/target/classes/templates/demo/table/data.html new file mode 100644 index 0000000..ce43cef --- /dev/null +++ b/alive-admin/target/classes/templates/demo/table/data.html @@ -0,0 +1,76 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/demo/table/detail.html b/alive-admin/target/classes/templates/demo/table/detail.html new file mode 100644 index 0000000..e5b8ad0 --- /dev/null +++ b/alive-admin/target/classes/templates/demo/table/detail.html @@ -0,0 +1,86 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/demo/table/dynamicColumns.html b/alive-admin/target/classes/templates/demo/table/dynamicColumns.html new file mode 100644 index 0000000..ceb645f --- /dev/null +++ b/alive-admin/target/classes/templates/demo/table/dynamicColumns.html @@ -0,0 +1,123 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + 要增加的列: + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +  搜索 +  重置 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/demo/table/editable.html b/alive-admin/target/classes/templates/demo/table/editable.html new file mode 100644 index 0000000..6bd1bc4 --- /dev/null +++ b/alive-admin/target/classes/templates/demo/table/editable.html @@ -0,0 +1,128 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/demo/table/event.html b/alive-admin/target/classes/templates/demo/table/event.html new file mode 100644 index 0000000..5b4d5ce --- /dev/null +++ b/alive-admin/target/classes/templates/demo/table/event.html @@ -0,0 +1,107 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                自定义触发事件(点击某行/双击某行/单击某格/双击某格/服务器发送数据前触发/数据被加载时触发)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/demo/table/export.html b/alive-admin/target/classes/templates/demo/table/export.html new file mode 100644 index 0000000..23f4db5 --- /dev/null +++ b/alive-admin/target/classes/templates/demo/table/export.html @@ -0,0 +1,81 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/demo/table/exportSelected.html b/alive-admin/target/classes/templates/demo/table/exportSelected.html new file mode 100644 index 0000000..18e0014 --- /dev/null +++ b/alive-admin/target/classes/templates/demo/table/exportSelected.html @@ -0,0 +1,120 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 勾选数据导出指定列,否则为全部 + + 导出 + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/demo/table/fixedColumns.html b/alive-admin/target/classes/templates/demo/table/fixedColumns.html new file mode 100644 index 0000000..c79dc6c --- /dev/null +++ b/alive-admin/target/classes/templates/demo/table/fixedColumns.html @@ -0,0 +1,145 @@ + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/demo/table/footer.html b/alive-admin/target/classes/templates/demo/table/footer.html new file mode 100644 index 0000000..215880e --- /dev/null +++ b/alive-admin/target/classes/templates/demo/table/footer.html @@ -0,0 +1,83 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/demo/table/groupHeader.html b/alive-admin/target/classes/templates/demo/table/groupHeader.html new file mode 100644 index 0000000..77226ff --- /dev/null +++ b/alive-admin/target/classes/templates/demo/table/groupHeader.html @@ -0,0 +1,80 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/demo/table/headerStyle.html b/alive-admin/target/classes/templates/demo/table/headerStyle.html new file mode 100644 index 0000000..5d63bb4 --- /dev/null +++ b/alive-admin/target/classes/templates/demo/table/headerStyle.html @@ -0,0 +1,91 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/demo/table/image.html b/alive-admin/target/classes/templates/demo/table/image.html new file mode 100644 index 0000000..514cd7f --- /dev/null +++ b/alive-admin/target/classes/templates/demo/table/image.html @@ -0,0 +1,79 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/demo/table/multi.html b/alive-admin/target/classes/templates/demo/table/multi.html new file mode 100644 index 0000000..1fd10c2 --- /dev/null +++ b/alive-admin/target/classes/templates/demo/table/multi.html @@ -0,0 +1,222 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/demo/table/other.html b/alive-admin/target/classes/templates/demo/table/other.html new file mode 100644 index 0000000..6321db6 --- /dev/null +++ b/alive-admin/target/classes/templates/demo/table/other.html @@ -0,0 +1,106 @@ + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/demo/table/pageGo.html b/alive-admin/target/classes/templates/demo/table/pageGo.html new file mode 100644 index 0000000..26db1f6 --- /dev/null +++ b/alive-admin/target/classes/templates/demo/table/pageGo.html @@ -0,0 +1,77 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/demo/table/params.html b/alive-admin/target/classes/templates/demo/table/params.html new file mode 100644 index 0000000..ff64ea7 --- /dev/null +++ b/alive-admin/target/classes/templates/demo/table/params.html @@ -0,0 +1,158 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                通过queryParams方法设置

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + 用户姓名: +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                通过form自动填充

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/demo/table/print.html b/alive-admin/target/classes/templates/demo/table/print.html new file mode 100644 index 0000000..fbf1f49 --- /dev/null +++ b/alive-admin/target/classes/templates/demo/table/print.html @@ -0,0 +1,83 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/demo/table/refresh.html b/alive-admin/target/classes/templates/demo/table/refresh.html new file mode 100644 index 0000000..5917bff --- /dev/null +++ b/alive-admin/target/classes/templates/demo/table/refresh.html @@ -0,0 +1,79 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/demo/table/remember.html b/alive-admin/target/classes/templates/demo/table/remember.html new file mode 100644 index 0000000..2f55670 --- /dev/null +++ b/alive-admin/target/classes/templates/demo/table/remember.html @@ -0,0 +1,86 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/demo/table/reorder.html b/alive-admin/target/classes/templates/demo/table/reorder.html new file mode 100644 index 0000000..8c40c4d --- /dev/null +++ b/alive-admin/target/classes/templates/demo/table/reorder.html @@ -0,0 +1,75 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                按住表格拖拽

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/demo/table/reorderColumns.html b/alive-admin/target/classes/templates/demo/table/reorderColumns.html new file mode 100644 index 0000000..a461d60 --- /dev/null +++ b/alive-admin/target/classes/templates/demo/table/reorderColumns.html @@ -0,0 +1,84 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                按住表格列拖拽

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/demo/table/reorderRows.html b/alive-admin/target/classes/templates/demo/table/reorderRows.html new file mode 100644 index 0000000..e788ccb --- /dev/null +++ b/alive-admin/target/classes/templates/demo/table/reorderRows.html @@ -0,0 +1,88 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                按住表格行拖拽

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/demo/table/resizable.html b/alive-admin/target/classes/templates/demo/table/resizable.html new file mode 100644 index 0000000..224c7df --- /dev/null +++ b/alive-admin/target/classes/templates/demo/table/resizable.html @@ -0,0 +1,78 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/demo/table/search.html b/alive-admin/target/classes/templates/demo/table/search.html new file mode 100644 index 0000000..e6781b1 --- /dev/null +++ b/alive-admin/target/classes/templates/demo/table/search.html @@ -0,0 +1,202 @@ + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                普通条件查询

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + 商户编号: +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + 终端编号: +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + 处理状态: +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +  搜索 +  重置 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                时间条件查询

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + 商户编号: +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + 终端编号: +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + + - + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +  搜索 +  重置 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                多级联动下拉查询

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + 商户编号: +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + 充值类型: +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + 充值路由: +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +  搜索 +  重置 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                下拉多选条件查询

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + 商户编号: +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + 终端编号: +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +  搜索 +  重置 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                复杂条件查询

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + + - + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +  搜索 +  重置 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + + diff --git a/alive-admin/target/classes/templates/demo/table/subdata.html b/alive-admin/target/classes/templates/demo/table/subdata.html new file mode 100644 index 0000000..d4d5fd0 --- /dev/null +++ b/alive-admin/target/classes/templates/demo/table/subdata.html @@ -0,0 +1,186 @@ + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                客户信息

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                商品数据

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +   + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/error/404.html b/alive-admin/target/classes/templates/error/404.html new file mode 100644 index 0000000..b0c8bfe --- /dev/null +++ b/alive-admin/target/classes/templates/error/404.html @@ -0,0 +1,27 @@ + + + + + + RuoYi - 404 + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                404

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                找不到网页!

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 对不起,您正在寻找的页面不存在。尝试检查URL的错误,然后按浏览器上的刷新按钮或尝试在我们的应用程序中找到其他内容。 + 主页 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + diff --git a/alive-admin/target/classes/templates/error/500.html b/alive-admin/target/classes/templates/error/500.html new file mode 100644 index 0000000..43d4029 --- /dev/null +++ b/alive-admin/target/classes/templates/error/500.html @@ -0,0 +1,28 @@ + + + + + + RuoYi - 500 + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                500

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                内部服务器错误!

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 服务器遇到意外事件,不允许完成请求。我们抱歉。您可以返回主页面。 + 主页 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + diff --git a/alive-admin/target/classes/templates/error/business.html b/alive-admin/target/classes/templates/error/business.html new file mode 100644 index 0000000..1faf08c --- /dev/null +++ b/alive-admin/target/classes/templates/error/business.html @@ -0,0 +1,20 @@ + + + + + + RuoYi - 403 + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                操作异常!

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + [[${errorMessage}]] +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + diff --git a/alive-admin/target/classes/templates/error/service.html b/alive-admin/target/classes/templates/error/service.html new file mode 100644 index 0000000..b64341d --- /dev/null +++ b/alive-admin/target/classes/templates/error/service.html @@ -0,0 +1,20 @@ + + + + + + RuoYi - 500 + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                操作异常!

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + [[${errorMessage}]] +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + diff --git a/alive-admin/target/classes/templates/error/unauth.html b/alive-admin/target/classes/templates/error/unauth.html new file mode 100644 index 0000000..5d52db9 --- /dev/null +++ b/alive-admin/target/classes/templates/error/unauth.html @@ -0,0 +1,28 @@ + + + + + + RuoYi - 403 + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                403

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                您没有访问权限!

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 对不起,您没有访问权限,请不要进行非法操作!您可以返回主页面 + 返回主页 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + diff --git a/alive-admin/target/classes/templates/include.html b/alive-admin/target/classes/templates/include.html new file mode 100644 index 0000000..8bae16c --- /dev/null +++ b/alive-admin/target/classes/templates/include.html @@ -0,0 +1,207 @@ + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                diff --git a/alive-admin/target/classes/templates/include1.html b/alive-admin/target/classes/templates/include1.html new file mode 100644 index 0000000..74e1371 --- /dev/null +++ b/alive-admin/target/classes/templates/include1.html @@ -0,0 +1,182 @@ + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                diff --git a/alive-admin/target/classes/templates/index-topnav.html b/alive-admin/target/classes/templates/index-topnav.html new file mode 100644 index 0000000..2bcdffb --- /dev/null +++ b/alive-admin/target/classes/templates/index-topnav.html @@ -0,0 +1,443 @@ + + + + + + + 若依系统首页 + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + 刷新 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + + + + + + + + + + + diff --git a/alive-admin/target/classes/templates/index.html b/alive-admin/target/classes/templates/index.html new file mode 100644 index 0000000..6c28159 --- /dev/null +++ b/alive-admin/target/classes/templates/index.html @@ -0,0 +1,314 @@ + + + + + + + ALIVE系统首页 + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + 刷新 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + + + + + + + + + + + diff --git a/alive-admin/target/classes/templates/lock.html b/alive-admin/target/classes/templates/lock.html new file mode 100644 index 0000000..66a089e --- /dev/null +++ b/alive-admin/target/classes/templates/lock.html @@ -0,0 +1,208 @@ + + + + + + + 锁定屏幕 + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [[ ${user.loginName} ]] / [[${#strings.defaultString(user.userName, '-')}]]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + User Image +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                系统锁屏,请输入密码登录!
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + + + diff --git a/alive-admin/target/classes/templates/login.html b/alive-admin/target/classes/templates/login.html new file mode 100644 index 0000000..4f6d43f --- /dev/null +++ b/alive-admin/target/classes/templates/login.html @@ -0,0 +1,68 @@ + + + + + + 登录节点系统 + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                登录:

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                欢迎登陆

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + + + + + + + + + diff --git a/alive-admin/target/classes/templates/main.html b/alive-admin/target/classes/templates/main.html new file mode 100644 index 0000000..fb44ff2 --- /dev/null +++ b/alive-admin/target/classes/templates/main.html @@ -0,0 +1,21 @@ + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 欢迎使用ALIVE后台管理系统 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/main_v1.html b/alive-admin/target/classes/templates/main_v1.html new file mode 100644 index 0000000..4ace108 --- /dev/null +++ b/alive-admin/target/classes/templates/main_v1.html @@ -0,0 +1,336 @@ + + + + + + 统计 + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                收入
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                40 886,200

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                98% +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 总收入 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 全年 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                订单
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                275,800

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                20% +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 新订单 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 今天 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                访客
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                106,120

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                44% +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 新访客 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 最近一个月 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                活跃用户
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                80,600

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                38% +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 12月 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                订单
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  2,346

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  + 订单总数 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  48% +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  4,422

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  + 最近一个月订单 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  60% +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  9,180

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  + 最近一个月销售额 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  22% +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                用户项目列表
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                状态日期用户
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                进行中... + 11:20青衣5858 24%
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                已取消 + 10:40徐子崴 66%
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                进行中... + 01:30姜岚昕 54%
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                进行中... + 02:20武汉大兵哥 12%
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                进行中... + 09:40荆莹儿 22%
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                已完成 + 04:10栾某某 66%
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                进行中... + 12:08范范范二妮 23%
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + + + diff --git a/alive-admin/target/classes/templates/monitor/cache/cache.html b/alive-admin/target/classes/templates/monitor/cache/cache.html new file mode 100644 index 0000000..a178f1a --- /dev/null +++ b/alive-admin/target/classes/templates/monitor/cache/cache.html @@ -0,0 +1,184 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                缓存列表
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                缓存名称操作
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [[${stat.index + 1}]][[${cacheName}]]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                键名列表
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                缓存键名操作
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [[${stat.index + 1}]][[${cacheKey}]]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                缓存内容
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + diff --git a/alive-admin/target/classes/templates/monitor/logininfor/logininfor.html b/alive-admin/target/classes/templates/monitor/logininfor/logininfor.html new file mode 100644 index 0000000..d4b9992 --- /dev/null +++ b/alive-admin/target/classes/templates/monitor/logininfor/logininfor.html @@ -0,0 +1,133 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + + - + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +  搜索 +  重置 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/monitor/online/online.html b/alive-admin/target/classes/templates/monitor/online/online.html new file mode 100644 index 0000000..158126e --- /dev/null +++ b/alive-admin/target/classes/templates/monitor/online/online.html @@ -0,0 +1,152 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/monitor/operlog/detail.html b/alive-admin/target/classes/templates/monitor/operlog/detail.html new file mode 100644 index 0000000..02c5db6 --- /dev/null +++ b/alive-admin/target/classes/templates/monitor/operlog/detail.html @@ -0,0 +1,74 @@ + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/monitor/operlog/operlog.html b/alive-admin/target/classes/templates/monitor/operlog/operlog.html new file mode 100644 index 0000000..a383e46 --- /dev/null +++ b/alive-admin/target/classes/templates/monitor/operlog/operlog.html @@ -0,0 +1,169 @@ + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + + - + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +  搜索 +  重置 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/monitor/server/server.html b/alive-admin/target/classes/templates/monitor/server/server.html new file mode 100644 index 0000000..49692bd --- /dev/null +++ b/alive-admin/target/classes/templates/monitor/server/server.html @@ -0,0 +1,254 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                CPU
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                属性
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                核心数0个
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                用户使用率0%
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                系统使用率0%
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                当前空闲率0%
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                内存
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                属性内存JVM
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                总内存0GB0MB
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                已用内存0GB0MB
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                剩余内存0GB0MB
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                使用率[[${server.mem.usage}]]%[[${server.jvm.usage}]]%
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                服务器信息
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                服务器名称RuoYi操作系统Linux
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                服务器IP127.0.0.1系统架构amd64
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Java虚拟机信息
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Java名称JavaJava版本1.8.0
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                启动时间2018-12-31 00:00:00运行时长0天0时0分0秒
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                安装路径
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                项目路径
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                磁盘状态
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                盘符路径文件系统盘符类型总大小可用大小已用大小已用百分比
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                C:\NTFSlocal0GB0GB0GB[[${sysFile.usage}]]%
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + diff --git a/alive-admin/target/classes/templates/project/activityConfig/activityConfigAdd.html b/alive-admin/target/classes/templates/project/activityConfig/activityConfigAdd.html new file mode 100644 index 0000000..8b72233 --- /dev/null +++ b/alive-admin/target/classes/templates/project/activityConfig/activityConfigAdd.html @@ -0,0 +1,184 @@ + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/project/activityConfig/activityConfigCount.html b/alive-admin/target/classes/templates/project/activityConfig/activityConfigCount.html new file mode 100644 index 0000000..d7fc2fe --- /dev/null +++ b/alive-admin/target/classes/templates/project/activityConfig/activityConfigCount.html @@ -0,0 +1,98 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/project/activityConfig/activityConfigEdit.html b/alive-admin/target/classes/templates/project/activityConfig/activityConfigEdit.html new file mode 100644 index 0000000..9e43924 --- /dev/null +++ b/alive-admin/target/classes/templates/project/activityConfig/activityConfigEdit.html @@ -0,0 +1,193 @@ + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/project/activityConfig/activityConfigList.html b/alive-admin/target/classes/templates/project/activityConfig/activityConfigList.html new file mode 100644 index 0000000..7ea4ac2 --- /dev/null +++ b/alive-admin/target/classes/templates/project/activityConfig/activityConfigList.html @@ -0,0 +1,209 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +  搜索 +  重置 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/project/activityLog/activityLogAdd.html b/alive-admin/target/classes/templates/project/activityLog/activityLogAdd.html new file mode 100644 index 0000000..dbbb482 --- /dev/null +++ b/alive-admin/target/classes/templates/project/activityLog/activityLogAdd.html @@ -0,0 +1,90 @@ + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/project/activityLog/activityLogEdit.html b/alive-admin/target/classes/templates/project/activityLog/activityLogEdit.html new file mode 100644 index 0000000..c662477 --- /dev/null +++ b/alive-admin/target/classes/templates/project/activityLog/activityLogEdit.html @@ -0,0 +1,91 @@ + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/project/activityLog/activityLogList.html b/alive-admin/target/classes/templates/project/activityLog/activityLogList.html new file mode 100644 index 0000000..423969c --- /dev/null +++ b/alive-admin/target/classes/templates/project/activityLog/activityLogList.html @@ -0,0 +1,160 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +  搜索 +  重置 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/project/activityStatistics/activityStatisticsAdd.html b/alive-admin/target/classes/templates/project/activityStatistics/activityStatisticsAdd.html new file mode 100644 index 0000000..818c0d0 --- /dev/null +++ b/alive-admin/target/classes/templates/project/activityStatistics/activityStatisticsAdd.html @@ -0,0 +1,37 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/project/activityStatistics/activityStatisticsEdit.html b/alive-admin/target/classes/templates/project/activityStatistics/activityStatisticsEdit.html new file mode 100644 index 0000000..e4d9ead --- /dev/null +++ b/alive-admin/target/classes/templates/project/activityStatistics/activityStatisticsEdit.html @@ -0,0 +1,38 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/project/activityStatistics/activityStatisticsList.html b/alive-admin/target/classes/templates/project/activityStatistics/activityStatisticsList.html new file mode 100644 index 0000000..26ab53b --- /dev/null +++ b/alive-admin/target/classes/templates/project/activityStatistics/activityStatisticsList.html @@ -0,0 +1,111 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/project/coinConfig/coinConfigAdd.html b/alive-admin/target/classes/templates/project/coinConfig/coinConfigAdd.html new file mode 100644 index 0000000..485fd31 --- /dev/null +++ b/alive-admin/target/classes/templates/project/coinConfig/coinConfigAdd.html @@ -0,0 +1,73 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/project/coinConfig/coinConfigEdit.html b/alive-admin/target/classes/templates/project/coinConfig/coinConfigEdit.html new file mode 100644 index 0000000..b7e578f --- /dev/null +++ b/alive-admin/target/classes/templates/project/coinConfig/coinConfigEdit.html @@ -0,0 +1,65 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/project/coinConfig/coinConfigList.html b/alive-admin/target/classes/templates/project/coinConfig/coinConfigList.html new file mode 100644 index 0000000..e1bc1cc --- /dev/null +++ b/alive-admin/target/classes/templates/project/coinConfig/coinConfigList.html @@ -0,0 +1,160 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/project/node/nodeAdd.html b/alive-admin/target/classes/templates/project/node/nodeAdd.html new file mode 100644 index 0000000..aacaed2 --- /dev/null +++ b/alive-admin/target/classes/templates/project/node/nodeAdd.html @@ -0,0 +1,60 @@ + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/project/node/nodeEdit.html b/alive-admin/target/classes/templates/project/node/nodeEdit.html new file mode 100644 index 0000000..9a52c53 --- /dev/null +++ b/alive-admin/target/classes/templates/project/node/nodeEdit.html @@ -0,0 +1,61 @@ + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/project/node/nodeList.html b/alive-admin/target/classes/templates/project/node/nodeList.html new file mode 100644 index 0000000..360ef20 --- /dev/null +++ b/alive-admin/target/classes/templates/project/node/nodeList.html @@ -0,0 +1,118 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/project/nodeAwardSetting/nodeAwardSettingAdd.html b/alive-admin/target/classes/templates/project/nodeAwardSetting/nodeAwardSettingAdd.html new file mode 100644 index 0000000..5d70ba6 --- /dev/null +++ b/alive-admin/target/classes/templates/project/nodeAwardSetting/nodeAwardSettingAdd.html @@ -0,0 +1,73 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/project/nodeAwardSetting/nodeAwardSettingEdit.html b/alive-admin/target/classes/templates/project/nodeAwardSetting/nodeAwardSettingEdit.html new file mode 100644 index 0000000..b1e7bb9 --- /dev/null +++ b/alive-admin/target/classes/templates/project/nodeAwardSetting/nodeAwardSettingEdit.html @@ -0,0 +1,68 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/project/nodeAwardSetting/nodeAwardSettingList.html b/alive-admin/target/classes/templates/project/nodeAwardSetting/nodeAwardSettingList.html new file mode 100644 index 0000000..324c439 --- /dev/null +++ b/alive-admin/target/classes/templates/project/nodeAwardSetting/nodeAwardSettingList.html @@ -0,0 +1,159 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + + - + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +  搜索 +  重置 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/project/nodeBuyLog/nodeSubscribeAdd.html b/alive-admin/target/classes/templates/project/nodeBuyLog/nodeSubscribeAdd.html new file mode 100644 index 0000000..e556368 --- /dev/null +++ b/alive-admin/target/classes/templates/project/nodeBuyLog/nodeSubscribeAdd.html @@ -0,0 +1,85 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/project/nodeBuyLog/nodeSubscribeEdit.html b/alive-admin/target/classes/templates/project/nodeBuyLog/nodeSubscribeEdit.html new file mode 100644 index 0000000..02137a2 --- /dev/null +++ b/alive-admin/target/classes/templates/project/nodeBuyLog/nodeSubscribeEdit.html @@ -0,0 +1,32 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/project/nodeBuyLog/nodeSubscribeList.html b/alive-admin/target/classes/templates/project/nodeBuyLog/nodeSubscribeList.html new file mode 100644 index 0000000..3b5a539 --- /dev/null +++ b/alive-admin/target/classes/templates/project/nodeBuyLog/nodeSubscribeList.html @@ -0,0 +1,231 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + + - + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +  搜索 +  重置 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/project/nodePriceConfig/nodePriceConfigAdd.html b/alive-admin/target/classes/templates/project/nodePriceConfig/nodePriceConfigAdd.html new file mode 100644 index 0000000..20e7955 --- /dev/null +++ b/alive-admin/target/classes/templates/project/nodePriceConfig/nodePriceConfigAdd.html @@ -0,0 +1,43 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/project/nodePriceConfig/nodePriceConfigEdit.html b/alive-admin/target/classes/templates/project/nodePriceConfig/nodePriceConfigEdit.html new file mode 100644 index 0000000..2d5cb5e --- /dev/null +++ b/alive-admin/target/classes/templates/project/nodePriceConfig/nodePriceConfigEdit.html @@ -0,0 +1,44 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/project/nodePriceConfig/nodePriceConfigList.html b/alive-admin/target/classes/templates/project/nodePriceConfig/nodePriceConfigList.html new file mode 100644 index 0000000..150ab43 --- /dev/null +++ b/alive-admin/target/classes/templates/project/nodePriceConfig/nodePriceConfigList.html @@ -0,0 +1,92 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/project/nodeSetting/nodeSettingAdd.html b/alive-admin/target/classes/templates/project/nodeSetting/nodeSettingAdd.html new file mode 100644 index 0000000..a18c976 --- /dev/null +++ b/alive-admin/target/classes/templates/project/nodeSetting/nodeSettingAdd.html @@ -0,0 +1,138 @@ + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/project/nodeSetting/nodeSettingEdit.html b/alive-admin/target/classes/templates/project/nodeSetting/nodeSettingEdit.html new file mode 100644 index 0000000..9bcf261 --- /dev/null +++ b/alive-admin/target/classes/templates/project/nodeSetting/nodeSettingEdit.html @@ -0,0 +1,169 @@ + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/project/nodeSetting/nodeSettingList.html b/alive-admin/target/classes/templates/project/nodeSetting/nodeSettingList.html new file mode 100644 index 0000000..9a3e7ef --- /dev/null +++ b/alive-admin/target/classes/templates/project/nodeSetting/nodeSettingList.html @@ -0,0 +1,191 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/project/nodeTask/nodeTaskAdd.html b/alive-admin/target/classes/templates/project/nodeTask/nodeTaskAdd.html new file mode 100644 index 0000000..55a82b6 --- /dev/null +++ b/alive-admin/target/classes/templates/project/nodeTask/nodeTaskAdd.html @@ -0,0 +1,55 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/project/nodeTask/nodeTaskEdit.html b/alive-admin/target/classes/templates/project/nodeTask/nodeTaskEdit.html new file mode 100644 index 0000000..f84e6b1 --- /dev/null +++ b/alive-admin/target/classes/templates/project/nodeTask/nodeTaskEdit.html @@ -0,0 +1,56 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/project/nodeTask/nodeTaskList.html b/alive-admin/target/classes/templates/project/nodeTask/nodeTaskList.html new file mode 100644 index 0000000..8bfd374 --- /dev/null +++ b/alive-admin/target/classes/templates/project/nodeTask/nodeTaskList.html @@ -0,0 +1,143 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + + - + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +  搜索 +  重置 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/project/nodeTaskLog/nodeTaskLogAdd.html b/alive-admin/target/classes/templates/project/nodeTaskLog/nodeTaskLogAdd.html new file mode 100644 index 0000000..6c45b48 --- /dev/null +++ b/alive-admin/target/classes/templates/project/nodeTaskLog/nodeTaskLogAdd.html @@ -0,0 +1,61 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/project/nodeTaskLog/nodeTaskLogEdit.html b/alive-admin/target/classes/templates/project/nodeTaskLog/nodeTaskLogEdit.html new file mode 100644 index 0000000..073ef4b --- /dev/null +++ b/alive-admin/target/classes/templates/project/nodeTaskLog/nodeTaskLogEdit.html @@ -0,0 +1,62 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/project/nodeTaskLog/nodeTaskLogList.html b/alive-admin/target/classes/templates/project/nodeTaskLog/nodeTaskLogList.html new file mode 100644 index 0000000..6ad22f5 --- /dev/null +++ b/alive-admin/target/classes/templates/project/nodeTaskLog/nodeTaskLogList.html @@ -0,0 +1,147 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + + - + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +  搜索 +  重置 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/project/notice/noticeAdd.html b/alive-admin/target/classes/templates/project/notice/noticeAdd.html new file mode 100644 index 0000000..7e65f1d --- /dev/null +++ b/alive-admin/target/classes/templates/project/notice/noticeAdd.html @@ -0,0 +1,90 @@ + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/project/notice/noticeEdit.html b/alive-admin/target/classes/templates/project/notice/noticeEdit.html new file mode 100644 index 0000000..ae51cc6 --- /dev/null +++ b/alive-admin/target/classes/templates/project/notice/noticeEdit.html @@ -0,0 +1,89 @@ + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/project/notice/noticeList.html b/alive-admin/target/classes/templates/project/notice/noticeList.html new file mode 100644 index 0000000..f8929b0 --- /dev/null +++ b/alive-admin/target/classes/templates/project/notice/noticeList.html @@ -0,0 +1,120 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/project/payCoinLog/payCoinLogAdd.html b/alive-admin/target/classes/templates/project/payCoinLog/payCoinLogAdd.html new file mode 100644 index 0000000..b468901 --- /dev/null +++ b/alive-admin/target/classes/templates/project/payCoinLog/payCoinLogAdd.html @@ -0,0 +1,85 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/project/payCoinLog/payCoinLogEdit.html b/alive-admin/target/classes/templates/project/payCoinLog/payCoinLogEdit.html new file mode 100644 index 0000000..8343d59 --- /dev/null +++ b/alive-admin/target/classes/templates/project/payCoinLog/payCoinLogEdit.html @@ -0,0 +1,86 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/project/payCoinLog/payCoinLogList.html b/alive-admin/target/classes/templates/project/payCoinLog/payCoinLogList.html new file mode 100644 index 0000000..9caa3e4 --- /dev/null +++ b/alive-admin/target/classes/templates/project/payCoinLog/payCoinLogList.html @@ -0,0 +1,162 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + + - + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +  搜索 +  重置 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/project/tConfig/tConfigAdd.html b/alive-admin/target/classes/templates/project/tConfig/tConfigAdd.html new file mode 100644 index 0000000..ae3bf17 --- /dev/null +++ b/alive-admin/target/classes/templates/project/tConfig/tConfigAdd.html @@ -0,0 +1,43 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/project/tConfig/tConfigEdit.html b/alive-admin/target/classes/templates/project/tConfig/tConfigEdit.html new file mode 100644 index 0000000..07a437d --- /dev/null +++ b/alive-admin/target/classes/templates/project/tConfig/tConfigEdit.html @@ -0,0 +1,44 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/project/tConfig/tConfigList.html b/alive-admin/target/classes/templates/project/tConfig/tConfigList.html new file mode 100644 index 0000000..5e51223 --- /dev/null +++ b/alive-admin/target/classes/templates/project/tConfig/tConfigList.html @@ -0,0 +1,119 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + + - + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +  搜索 +  重置 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/project/tMember/InviteRespList.html b/alive-admin/target/classes/templates/project/tMember/InviteRespList.html new file mode 100644 index 0000000..82212ce --- /dev/null +++ b/alive-admin/target/classes/templates/project/tMember/InviteRespList.html @@ -0,0 +1,121 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +  搜索 +  重置 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/project/tMember/awardLogList.html b/alive-admin/target/classes/templates/project/tMember/awardLogList.html new file mode 100644 index 0000000..226fab5 --- /dev/null +++ b/alive-admin/target/classes/templates/project/tMember/awardLogList.html @@ -0,0 +1,128 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/project/tMember/subordinateList.html b/alive-admin/target/classes/templates/project/tMember/subordinateList.html new file mode 100644 index 0000000..0700655 --- /dev/null +++ b/alive-admin/target/classes/templates/project/tMember/subordinateList.html @@ -0,0 +1,102 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/project/tMember/tMemberAdd.html b/alive-admin/target/classes/templates/project/tMember/tMemberAdd.html new file mode 100644 index 0000000..1c15c93 --- /dev/null +++ b/alive-admin/target/classes/templates/project/tMember/tMemberAdd.html @@ -0,0 +1,91 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/project/tMember/tMemberEdit.html b/alive-admin/target/classes/templates/project/tMember/tMemberEdit.html new file mode 100644 index 0000000..16b6b25 --- /dev/null +++ b/alive-admin/target/classes/templates/project/tMember/tMemberEdit.html @@ -0,0 +1,92 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/project/tMember/tMemberList.html b/alive-admin/target/classes/templates/project/tMember/tMemberList.html new file mode 100644 index 0000000..8310464 --- /dev/null +++ b/alive-admin/target/classes/templates/project/tMember/tMemberList.html @@ -0,0 +1,218 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + +  搜索 +  团队盒子 +  重置 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/project/tMemberWallet/tMemberWalletAdd.html b/alive-admin/target/classes/templates/project/tMemberWallet/tMemberWalletAdd.html new file mode 100644 index 0000000..3719627 --- /dev/null +++ b/alive-admin/target/classes/templates/project/tMemberWallet/tMemberWalletAdd.html @@ -0,0 +1,49 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/project/tMemberWallet/tMemberWalletEdit.html b/alive-admin/target/classes/templates/project/tMemberWallet/tMemberWalletEdit.html new file mode 100644 index 0000000..13b3432 --- /dev/null +++ b/alive-admin/target/classes/templates/project/tMemberWallet/tMemberWalletEdit.html @@ -0,0 +1,50 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/project/tMemberWallet/tMemberWalletList.html b/alive-admin/target/classes/templates/project/tMemberWallet/tMemberWalletList.html new file mode 100644 index 0000000..e9f3977 --- /dev/null +++ b/alive-admin/target/classes/templates/project/tMemberWallet/tMemberWalletList.html @@ -0,0 +1,113 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/project/tMemberWalletLog/tMemberWalletLogAdd.html b/alive-admin/target/classes/templates/project/tMemberWalletLog/tMemberWalletLogAdd.html new file mode 100644 index 0000000..15eaac5 --- /dev/null +++ b/alive-admin/target/classes/templates/project/tMemberWalletLog/tMemberWalletLogAdd.html @@ -0,0 +1,73 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/project/tMemberWalletLog/tMemberWalletLogEdit.html b/alive-admin/target/classes/templates/project/tMemberWalletLog/tMemberWalletLogEdit.html new file mode 100644 index 0000000..adf6d59 --- /dev/null +++ b/alive-admin/target/classes/templates/project/tMemberWalletLog/tMemberWalletLogEdit.html @@ -0,0 +1,74 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/project/tMemberWalletLog/tMemberWalletLogList.html b/alive-admin/target/classes/templates/project/tMemberWalletLog/tMemberWalletLogList.html new file mode 100644 index 0000000..688ca0d --- /dev/null +++ b/alive-admin/target/classes/templates/project/tMemberWalletLog/tMemberWalletLogList.html @@ -0,0 +1,117 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + + - + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +  搜索 +  重置 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/register.html b/alive-admin/target/classes/templates/register.html new file mode 100644 index 0000000..cc52470 --- /dev/null +++ b/alive-admin/target/classes/templates/register.html @@ -0,0 +1,83 @@ + + + + + + 注册UEB系统 + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                注册:

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                欢迎登陆UEB后台管理系统

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + 使用条款 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + + + + + + + + diff --git a/alive-admin/target/classes/templates/skin.html b/alive-admin/target/classes/templates/skin.html new file mode 100644 index 0000000..be43759 --- /dev/null +++ b/alive-admin/target/classes/templates/skin.html @@ -0,0 +1,165 @@ + + + + + + + 主题选择 + + + + + + + + + + + + + diff --git a/alive-admin/target/classes/templates/system/config/add.html b/alive-admin/target/classes/templates/system/config/add.html new file mode 100644 index 0000000..388ddd1 --- /dev/null +++ b/alive-admin/target/classes/templates/system/config/add.html @@ -0,0 +1,82 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + diff --git a/alive-admin/target/classes/templates/system/config/config.html b/alive-admin/target/classes/templates/system/config/config.html new file mode 100644 index 0000000..8b77aca --- /dev/null +++ b/alive-admin/target/classes/templates/system/config/config.html @@ -0,0 +1,144 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + 参数名称: +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + 参数键名: +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + 系统内置: +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + + - + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +  搜索 +  重置 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/system/config/edit.html b/alive-admin/target/classes/templates/system/config/edit.html new file mode 100644 index 0000000..cb7e202 --- /dev/null +++ b/alive-admin/target/classes/templates/system/config/edit.html @@ -0,0 +1,86 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + diff --git a/alive-admin/target/classes/templates/system/dept/add.html b/alive-admin/target/classes/templates/system/dept/add.html new file mode 100644 index 0000000..9b51930 --- /dev/null +++ b/alive-admin/target/classes/templates/system/dept/add.html @@ -0,0 +1,128 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + diff --git a/alive-admin/target/classes/templates/system/dept/dept.html b/alive-admin/target/classes/templates/system/dept/dept.html new file mode 100644 index 0000000..56d94e3 --- /dev/null +++ b/alive-admin/target/classes/templates/system/dept/dept.html @@ -0,0 +1,112 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + 部门名称: +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + 部门状态: +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +  搜索 +  重置 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/system/dept/edit.html b/alive-admin/target/classes/templates/system/dept/edit.html new file mode 100644 index 0000000..3f0f594 --- /dev/null +++ b/alive-admin/target/classes/templates/system/dept/edit.html @@ -0,0 +1,141 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + diff --git a/alive-admin/target/classes/templates/system/dept/tree.html b/alive-admin/target/classes/templates/system/dept/tree.html new file mode 100644 index 0000000..2dc3676 --- /dev/null +++ b/alive-admin/target/classes/templates/system/dept/tree.html @@ -0,0 +1,52 @@ + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 展开 / + 折叠 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + diff --git a/alive-admin/target/classes/templates/system/dict/data/add.html b/alive-admin/target/classes/templates/system/dict/data/add.html new file mode 100644 index 0000000..a050762 --- /dev/null +++ b/alive-admin/target/classes/templates/system/dict/data/add.html @@ -0,0 +1,100 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + table表格字典列显示样式属性 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + diff --git a/alive-admin/target/classes/templates/system/dict/data/data.html b/alive-admin/target/classes/templates/system/dict/data/data.html new file mode 100644 index 0000000..1a9ea81 --- /dev/null +++ b/alive-admin/target/classes/templates/system/dict/data/data.html @@ -0,0 +1,148 @@ + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + 字典名称: +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + 字典标签: +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + 数据状态: +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +  搜索 +  重置 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/system/dict/data/edit.html b/alive-admin/target/classes/templates/system/dict/data/edit.html new file mode 100644 index 0000000..0855513 --- /dev/null +++ b/alive-admin/target/classes/templates/system/dict/data/edit.html @@ -0,0 +1,101 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + table表格字典列显示样式属性 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + diff --git a/alive-admin/target/classes/templates/system/dict/type/add.html b/alive-admin/target/classes/templates/system/dict/type/add.html new file mode 100644 index 0000000..a1f064c --- /dev/null +++ b/alive-admin/target/classes/templates/system/dict/type/add.html @@ -0,0 +1,77 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + diff --git a/alive-admin/target/classes/templates/system/dict/type/edit.html b/alive-admin/target/classes/templates/system/dict/type/edit.html new file mode 100644 index 0000000..41b03db --- /dev/null +++ b/alive-admin/target/classes/templates/system/dict/type/edit.html @@ -0,0 +1,81 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + diff --git a/alive-admin/target/classes/templates/system/dict/type/tree.html b/alive-admin/target/classes/templates/system/dict/type/tree.html new file mode 100644 index 0000000..88ea049 --- /dev/null +++ b/alive-admin/target/classes/templates/system/dict/type/tree.html @@ -0,0 +1,42 @@ + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + diff --git a/alive-admin/target/classes/templates/system/dict/type/type.html b/alive-admin/target/classes/templates/system/dict/type/type.html new file mode 100644 index 0000000..37f3780 --- /dev/null +++ b/alive-admin/target/classes/templates/system/dict/type/type.html @@ -0,0 +1,148 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + 字典名称: +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + 字典类型: +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + 字典状态: +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + + - + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +  搜索 +  重置 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/system/menu/add.html b/alive-admin/target/classes/templates/system/menu/add.html new file mode 100644 index 0000000..ef5b094 --- /dev/null +++ b/alive-admin/target/classes/templates/system/menu/add.html @@ -0,0 +1,188 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + 控制器中定义的权限标识,如:@RequiresPermissions("") +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + diff --git a/alive-admin/target/classes/templates/system/menu/edit.html b/alive-admin/target/classes/templates/system/menu/edit.html new file mode 100644 index 0000000..ac342f1 --- /dev/null +++ b/alive-admin/target/classes/templates/system/menu/edit.html @@ -0,0 +1,216 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + 控制器中定义的权限标识,如:@RequiresPermissions("") +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + diff --git a/alive-admin/target/classes/templates/system/menu/icon.html b/alive-admin/target/classes/templates/system/menu/icon.html new file mode 100644 index 0000000..f9f7f19 --- /dev/null +++ b/alive-admin/target/classes/templates/system/menu/icon.html @@ -0,0 +1,928 @@ + + + + + Font Awesome Ico list + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/system/menu/menu.html b/alive-admin/target/classes/templates/system/menu/menu.html new file mode 100644 index 0000000..21105a4 --- /dev/null +++ b/alive-admin/target/classes/templates/system/menu/menu.html @@ -0,0 +1,156 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/system/menu/tree.html b/alive-admin/target/classes/templates/system/menu/tree.html new file mode 100644 index 0000000..a38e851 --- /dev/null +++ b/alive-admin/target/classes/templates/system/menu/tree.html @@ -0,0 +1,49 @@ + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 展开 / + 折叠 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + diff --git a/alive-admin/target/classes/templates/system/notice/add.html b/alive-admin/target/classes/templates/system/notice/add.html new file mode 100644 index 0000000..b47f7ce --- /dev/null +++ b/alive-admin/target/classes/templates/system/notice/add.html @@ -0,0 +1,97 @@ + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + diff --git a/alive-admin/target/classes/templates/system/notice/edit.html b/alive-admin/target/classes/templates/system/notice/edit.html new file mode 100644 index 0000000..1c9f109 --- /dev/null +++ b/alive-admin/target/classes/templates/system/notice/edit.html @@ -0,0 +1,102 @@ + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + diff --git a/alive-admin/target/classes/templates/system/notice/notice.html b/alive-admin/target/classes/templates/system/notice/notice.html new file mode 100644 index 0000000..91ecd78 --- /dev/null +++ b/alive-admin/target/classes/templates/system/notice/notice.html @@ -0,0 +1,117 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + 公告标题: +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + 操作人员: +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + 公告类型: +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +  搜索 +  重置 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/system/post/add.html b/alive-admin/target/classes/templates/system/post/add.html new file mode 100644 index 0000000..70381a2 --- /dev/null +++ b/alive-admin/target/classes/templates/system/post/add.html @@ -0,0 +1,103 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + diff --git a/alive-admin/target/classes/templates/system/post/edit.html b/alive-admin/target/classes/templates/system/post/edit.html new file mode 100644 index 0000000..ee3e341 --- /dev/null +++ b/alive-admin/target/classes/templates/system/post/edit.html @@ -0,0 +1,110 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + diff --git a/alive-admin/target/classes/templates/system/post/post.html b/alive-admin/target/classes/templates/system/post/post.html new file mode 100644 index 0000000..3c3fc42 --- /dev/null +++ b/alive-admin/target/classes/templates/system/post/post.html @@ -0,0 +1,120 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + 岗位编码: +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + 岗位名称: +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + 岗位状态: +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +  搜索 +  重置 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/system/role/add.html b/alive-admin/target/classes/templates/system/role/add.html new file mode 100644 index 0000000..c2c27fd --- /dev/null +++ b/alive-admin/target/classes/templates/system/role/add.html @@ -0,0 +1,150 @@ + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + 控制器中定义的权限字符,如:@RequiresRoles("") +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + diff --git a/alive-admin/target/classes/templates/system/role/authUser.html b/alive-admin/target/classes/templates/system/role/authUser.html new file mode 100644 index 0000000..7d08040 --- /dev/null +++ b/alive-admin/target/classes/templates/system/role/authUser.html @@ -0,0 +1,149 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/system/role/dataScope.html b/alive-admin/target/classes/templates/system/role/dataScope.html new file mode 100644 index 0000000..67b9293 --- /dev/null +++ b/alive-admin/target/classes/templates/system/role/dataScope.html @@ -0,0 +1,107 @@ + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + 特殊情况下,设置为“自定数据权限” +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + diff --git a/alive-admin/target/classes/templates/system/role/edit.html b/alive-admin/target/classes/templates/system/role/edit.html new file mode 100644 index 0000000..24e8d43 --- /dev/null +++ b/alive-admin/target/classes/templates/system/role/edit.html @@ -0,0 +1,159 @@ + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + 控制器中定义的权限字符,如:@RequiresRoles("") +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + diff --git a/alive-admin/target/classes/templates/system/role/role.html b/alive-admin/target/classes/templates/system/role/role.html new file mode 100644 index 0000000..b383661 --- /dev/null +++ b/alive-admin/target/classes/templates/system/role/role.html @@ -0,0 +1,165 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + 角色名称: +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + 权限字符: +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + 角色状态: +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + + - + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +  搜索 +  重置 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/system/role/selectUser.html b/alive-admin/target/classes/templates/system/role/selectUser.html new file mode 100644 index 0000000..01216cc --- /dev/null +++ b/alive-admin/target/classes/templates/system/role/selectUser.html @@ -0,0 +1,120 @@ + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/system/text/add.html b/alive-admin/target/classes/templates/system/text/add.html new file mode 100644 index 0000000..aa9782a --- /dev/null +++ b/alive-admin/target/classes/templates/system/text/add.html @@ -0,0 +1,60 @@ + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/system/text/edit.html b/alive-admin/target/classes/templates/system/text/edit.html new file mode 100644 index 0000000..1989fee --- /dev/null +++ b/alive-admin/target/classes/templates/system/text/edit.html @@ -0,0 +1,61 @@ + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/system/text/text.html b/alive-admin/target/classes/templates/system/text/text.html new file mode 100644 index 0000000..6faa870 --- /dev/null +++ b/alive-admin/target/classes/templates/system/text/text.html @@ -0,0 +1,124 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + + - + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +  搜索 +  重置 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + + + + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/system/user/add.html b/alive-admin/target/classes/templates/system/user/add.html new file mode 100644 index 0000000..7c18013 --- /dev/null +++ b/alive-admin/target/classes/templates/system/user/add.html @@ -0,0 +1,278 @@ + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                基本信息

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                其他信息

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +   + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/system/user/authRole.html b/alive-admin/target/classes/templates/system/user/authRole.html new file mode 100644 index 0000000..82ff365 --- /dev/null +++ b/alive-admin/target/classes/templates/system/user/authRole.html @@ -0,0 +1,109 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                基本信息

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                分配角色

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +   + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/system/user/edit.html b/alive-admin/target/classes/templates/system/user/edit.html new file mode 100644 index 0000000..108dac7 --- /dev/null +++ b/alive-admin/target/classes/templates/system/user/edit.html @@ -0,0 +1,231 @@ + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                基本信息

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                其他信息

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +   + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/system/user/profile/avatar.html b/alive-admin/target/classes/templates/system/user/profile/avatar.html new file mode 100644 index 0000000..0763d07 --- /dev/null +++ b/alive-admin/target/classes/templates/system/user/profile/avatar.html @@ -0,0 +1,261 @@ + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + diff --git a/alive-admin/target/classes/templates/system/user/profile/profile.html b/alive-admin/target/classes/templates/system/user/profile/profile.html new file mode 100644 index 0000000..ecfda9d --- /dev/null +++ b/alive-admin/target/classes/templates/system/user/profile/profile.html @@ -0,0 +1,294 @@ + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                个人资料
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                修改头像

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + 登录名称: +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [[${user.loginName}]]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + 手机号码: +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [[${user.phonenumber}]]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + 所属部门: +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [[${user.dept?.deptName}]] / [[${#strings.defaultString(postGroup,'无岗位')}]]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + 邮箱地址: +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [[${#strings.abbreviate(user.email, 16)}]]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + 创建时间: +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [[${#dates.format(user.createTime, 'yyyy-MM-dd')}]]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                基本资料
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + diff --git a/alive-admin/target/classes/templates/system/user/profile/resetPwd.html b/alive-admin/target/classes/templates/system/user/profile/resetPwd.html new file mode 100644 index 0000000..23fbcb3 --- /dev/null +++ b/alive-admin/target/classes/templates/system/user/profile/resetPwd.html @@ -0,0 +1,94 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + 请再次输入您的密码 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + diff --git a/alive-admin/target/classes/templates/system/user/resetPwd.html b/alive-admin/target/classes/templates/system/user/resetPwd.html new file mode 100644 index 0000000..ec00812 --- /dev/null +++ b/alive-admin/target/classes/templates/system/user/resetPwd.html @@ -0,0 +1,45 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + diff --git a/alive-admin/target/classes/templates/system/user/user.html b/alive-admin/target/classes/templates/system/user/user.html new file mode 100644 index 0000000..b749081 --- /dev/null +++ b/alive-admin/target/classes/templates/system/user/user.html @@ -0,0 +1,275 @@ + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + 登录名称: +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + 钱包地址: +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + 手机号码: +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + 用户状态: +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + + - + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +  搜索 +  重置 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + + + + \ No newline at end of file diff --git a/alive-admin/target/classes/templates/tool/build/build.html b/alive-admin/target/classes/templates/tool/build/build.html new file mode 100644 index 0000000..1fbf8a9 --- /dev/null +++ b/alive-admin/target/classes/templates/tool/build/build.html @@ -0,0 +1,168 @@ + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                元素
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 拖拽左侧的表单元素到右侧区域,即可生成相应的HTML代码,表单代码,轻松搞定! +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                这里是纯文字信息

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                拖拽左侧表单元素到此区域
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 请选择显示的列数: + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + + diff --git a/alive-admin/target/maven-archiver/pom.properties b/alive-admin/target/maven-archiver/pom.properties new file mode 100644 index 0000000..13de88e --- /dev/null +++ b/alive-admin/target/maven-archiver/pom.properties @@ -0,0 +1,5 @@ +#Generated by Maven +#Mon May 27 15:35:34 GMT+08:00 2024 +version=4.7.2 +groupId=com.alive +artifactId=alive-admin diff --git a/alive-admin/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst b/alive-admin/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst new file mode 100644 index 0000000..f9e9fe2 --- /dev/null +++ b/alive-admin/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst @@ -0,0 +1,69 @@ +com\ruoyi\web\controller\monitor\SysOperlogController.class +com\ruoyi\web\controller\demo\controller\DemoIconController.class +com\ruoyi\web\controller\system\SysDictTypeController.class +com\ruoyi\web\controller\TMemberController.class +com\ruoyi\web\controller\NodePriceConfigController.class +com\ruoyi\web\controller\demo\domain\UserOperateModel.class +com\ruoyi\web\controller\demo\controller\DemoDialogController.class +com\ruoyi\web\controller\demo\controller\DemoFormController.class +com\ruoyi\web\controller\system\SysMenuController.class +com\ruoyi\web\controller\ActivityLogController.class +com\ruoyi\web\controller\file\FileController.class +com\ruoyi\web\controller\system\SysRegisterController.class +com\ruoyi\web\core\config\RedisConfig.class +com\ruoyi\web\controller\NodeTaskLogController.class +com\ruoyi\web\controller\demo\controller\DemoOperateController.class +com\ruoyi\web\controller\user\UserController.class +com\ruoyi\web\controller\monitor\SysLogininforController.class +com\ruoyi\web\controller\system\SysDeptController.class +com\ruoyi\web\controller\ActivityConfigController.class +com\ruoyi\web\controller\NodeBuyLogController.class +com\ruoyi\web\controller\demo\controller\UserTableColumn.class +com\ruoyi\web\controller\PayCoinLogController.class +com\ruoyi\web\controller\TMemberWalletController.class +com\ruoyi\web\test\Brand.class +com\ruoyi\web\controller\demo\controller\UserTableModel.class +com\ruoyi\web\controller\system\SysCaptchaController.class +com\ruoyi\web\util\EcRecoverUtil.class +com\ruoyi\web\controller\NodeSettingController.class +com\ruoyi\web\controller\monitor\DruidController.class +com\ruoyi\web\util\RedisUtil.class +com\ruoyi\web\controller\demo\controller\AreaModel.class +com\ruoyi\web\controller\monitor\SysUserOnlineController.class +com\ruoyi\web\controller\system\SysProfileController.class +com\ruoyi\web\controller\system\SysIndexController.class +com\ruoyi\web\controller\system\SysNoticeController.class +com\ruoyi\web\controller\CoinConfigController.class +com\ruoyi\web\controller\system\SysPostController.class +com\ruoyi\web\controller\monitor\ServerController.class +com\ruoyi\web\controller\demo\controller\DemoTableController.class +com\ruoyi\web\controller\NodeAwardSettingController.class +com\ruoyi\web\controller\ActivityStatisticsController.class +com\ruoyi\web\controller\common\CommonController.class +com\ruoyi\web\test\RunoobTest$1.class +com\ruoyi\AliveAdminApplication.class +com\ruoyi\web\controller\TMemberWalletLogController.class +com\ruoyi\web\controller\system\SysLoginController.class +com\ruoyi\web\controller\demo\controller\DemoReportController.class +com\ruoyi\web\controller\system\SysDictDataController.class +com\ruoyi\web\controller\demo\domain\GoodsModel.class +com\ruoyi\web\controller\NodeController.class +com\ruoyi\web\controller\monitor\CacheController.class +com\ruoyi\web\controller\TConfigController.class +com\ruoyi\web\controller\NoticeController.class +com\ruoyi\web\core\config\ApplicationContextUtils.class +com\ruoyi\web\controller\demo\domain\CustomerModel.class +com\ruoyi\web\test\RunoobTest$2.class +com\ruoyi\web\controller\system\SysRoleController.class +com\ruoyi\web\test\Dc.class +com\ruoyi\web\test\RunoobTest.class +com\ruoyi\web\controller\RecommendController.class +com\ruoyi\web\controller\system\SysConfigController.class +com\ruoyi\web\controller\system\SysUserController.class +com\ruoyi\web\controller\NodeTaskController.class +com\ruoyi\FaiServletInitializer.class +com\ruoyi\web\test\Ac.class +com\ruoyi\web\test\LongTest.class +com\ruoyi\web\controller\demo\controller\UserFormModel.class +com\ruoyi\web\core\config\SwaggerConfig.class +com\ruoyi\web\controller\publicAccess\PublicController.class diff --git a/alive-admin/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst b/alive-admin/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst new file mode 100644 index 0000000..a18b8f2 --- /dev/null +++ b/alive-admin/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst @@ -0,0 +1,63 @@ +E:\alive\alive-admin\alive-admin\src\main\java\com\ruoyi\web\controller\demo\domain\UserOperateModel.java +E:\alive\alive-admin\alive-admin\src\main\java\com\ruoyi\web\controller\system\SysCaptchaController.java +E:\alive\alive-admin\alive-admin\src\main\java\com\ruoyi\web\controller\publicAccess\PublicController.java +E:\alive\alive-admin\alive-admin\src\main\java\com\ruoyi\web\controller\demo\controller\DemoReportController.java +E:\alive\alive-admin\alive-admin\src\main\java\com\ruoyi\web\controller\system\SysPostController.java +E:\alive\alive-admin\alive-admin\src\main\java\com\ruoyi\web\controller\TMemberWalletLogController.java +E:\alive\alive-admin\alive-admin\src\main\java\com\ruoyi\web\controller\RecommendController.java +E:\alive\alive-admin\alive-admin\src\main\java\com\ruoyi\web\controller\NoticeController.java +E:\alive\alive-admin\alive-admin\src\main\java\com\ruoyi\FaiServletInitializer.java +E:\alive\alive-admin\alive-admin\src\main\java\com\ruoyi\web\controller\monitor\ServerController.java +E:\alive\alive-admin\alive-admin\src\main\java\com\ruoyi\web\core\config\ApplicationContextUtils.java +E:\alive\alive-admin\alive-admin\src\main\java\com\ruoyi\web\controller\system\SysRegisterController.java +E:\alive\alive-admin\alive-admin\src\main\java\com\ruoyi\web\controller\CoinConfigController.java +E:\alive\alive-admin\alive-admin\src\main\java\com\ruoyi\web\controller\system\SysDictDataController.java +E:\alive\alive-admin\alive-admin\src\main\java\com\ruoyi\web\test\Dc.java +E:\alive\alive-admin\alive-admin\src\main\java\com\ruoyi\web\controller\common\CommonController.java +E:\alive\alive-admin\alive-admin\src\main\java\com\ruoyi\web\controller\demo\controller\DemoTableController.java +E:\alive\alive-admin\alive-admin\src\main\java\com\ruoyi\web\controller\TConfigController.java +E:\alive\alive-admin\alive-admin\src\main\java\com\ruoyi\web\core\config\RedisConfig.java +E:\alive\alive-admin\alive-admin\src\main\java\com\ruoyi\web\controller\demo\domain\CustomerModel.java +E:\alive\alive-admin\alive-admin\src\main\java\com\ruoyi\web\controller\demo\domain\GoodsModel.java +E:\alive\alive-admin\alive-admin\src\main\java\com\ruoyi\web\controller\system\SysIndexController.java +E:\alive\alive-admin\alive-admin\src\main\java\com\ruoyi\web\controller\ActivityStatisticsController.java +E:\alive\alive-admin\alive-admin\src\main\java\com\ruoyi\web\controller\monitor\DruidController.java +E:\alive\alive-admin\alive-admin\src\main\java\com\ruoyi\web\util\RedisUtil.java +E:\alive\alive-admin\alive-admin\src\main\java\com\ruoyi\web\controller\user\UserController.java +E:\alive\alive-admin\alive-admin\src\main\java\com\ruoyi\web\controller\NodeAwardSettingController.java +E:\alive\alive-admin\alive-admin\src\main\java\com\ruoyi\web\controller\NodeSettingController.java +E:\alive\alive-admin\alive-admin\src\main\java\com\ruoyi\web\controller\system\SysDictTypeController.java +E:\alive\alive-admin\alive-admin\src\main\java\com\ruoyi\web\test\Ac.java +E:\alive\alive-admin\alive-admin\src\main\java\com\ruoyi\web\test\Brand.java +E:\alive\alive-admin\alive-admin\src\main\java\com\ruoyi\web\controller\system\SysConfigController.java +E:\alive\alive-admin\alive-admin\src\main\java\com\ruoyi\web\controller\system\SysRoleController.java +E:\alive\alive-admin\alive-admin\src\main\java\com\ruoyi\web\controller\system\SysDeptController.java +E:\alive\alive-admin\alive-admin\src\main\java\com\ruoyi\web\controller\ActivityLogController.java +E:\alive\alive-admin\alive-admin\src\main\java\com\ruoyi\web\controller\system\SysProfileController.java +E:\alive\alive-admin\alive-admin\src\main\java\com\ruoyi\web\controller\NodeBuyLogController.java +E:\alive\alive-admin\alive-admin\src\main\java\com\ruoyi\web\controller\PayCoinLogController.java +E:\alive\alive-admin\alive-admin\src\main\java\com\ruoyi\web\controller\TMemberController.java +E:\alive\alive-admin\alive-admin\src\main\java\com\ruoyi\web\controller\system\SysUserController.java +E:\alive\alive-admin\alive-admin\src\main\java\com\ruoyi\web\controller\monitor\SysLogininforController.java +E:\alive\alive-admin\alive-admin\src\main\java\com\ruoyi\web\controller\NodeTaskController.java +E:\alive\alive-admin\alive-admin\src\main\java\com\ruoyi\web\controller\monitor\SysUserOnlineController.java +E:\alive\alive-admin\alive-admin\src\main\java\com\ruoyi\web\controller\system\SysMenuController.java +E:\alive\alive-admin\alive-admin\src\main\java\com\ruoyi\web\controller\monitor\SysOperlogController.java +E:\alive\alive-admin\alive-admin\src\main\java\com\ruoyi\web\controller\demo\controller\DemoIconController.java +E:\alive\alive-admin\alive-admin\src\main\java\com\ruoyi\web\controller\file\FileController.java +E:\alive\alive-admin\alive-admin\src\main\java\com\ruoyi\web\controller\NodeController.java +E:\alive\alive-admin\alive-admin\src\main\java\com\ruoyi\web\controller\NodePriceConfigController.java +E:\alive\alive-admin\alive-admin\src\main\java\com\ruoyi\web\controller\NodeTaskLogController.java +E:\alive\alive-admin\alive-admin\src\main\java\com\ruoyi\AliveAdminApplication.java +E:\alive\alive-admin\alive-admin\src\main\java\com\ruoyi\web\controller\TMemberWalletController.java +E:\alive\alive-admin\alive-admin\src\main\java\com\ruoyi\web\controller\ActivityConfigController.java +E:\alive\alive-admin\alive-admin\src\main\java\com\ruoyi\web\controller\monitor\CacheController.java +E:\alive\alive-admin\alive-admin\src\main\java\com\ruoyi\web\controller\demo\controller\DemoFormController.java +E:\alive\alive-admin\alive-admin\src\main\java\com\ruoyi\web\core\config\SwaggerConfig.java +E:\alive\alive-admin\alive-admin\src\main\java\com\ruoyi\web\controller\system\SysLoginController.java +E:\alive\alive-admin\alive-admin\src\main\java\com\ruoyi\web\test\RunoobTest.java +E:\alive\alive-admin\alive-admin\src\main\java\com\ruoyi\web\controller\system\SysNoticeController.java +E:\alive\alive-admin\alive-admin\src\main\java\com\ruoyi\web\controller\demo\controller\DemoDialogController.java +E:\alive\alive-admin\alive-admin\src\main\java\com\ruoyi\web\util\EcRecoverUtil.java +E:\alive\alive-admin\alive-admin\src\main\java\com\ruoyi\web\test\LongTest.java +E:\alive\alive-admin\alive-admin\src\main\java\com\ruoyi\web\controller\demo\controller\DemoOperateController.java diff --git a/alive-common/pom.xml b/alive-common/pom.xml new file mode 100644 index 0000000..083f12a --- /dev/null +++ b/alive-common/pom.xml @@ -0,0 +1,107 @@ + + + + alive + com.alive + 4.7.2 + + + 4.0.0 + + alive-common + + + common通用工具 + + + + + + + org.springframework + spring-context-support + + + + + org.springframework + spring-web + + + + + org.apache.shiro + shiro-core + + + + + org.apache.shiro + shiro-ehcache + + + + + com.github.pagehelper + pagehelper-spring-boot-starter + + + + + org.springframework.boot + spring-boot-starter-validation + + + + + org.apache.commons + commons-lang3 + + + + + com.fasterxml.jackson.core + jackson-databind + + + + + com.alibaba + fastjson + + + + + commons-io + commons-io + + + + + commons-fileupload + commons-fileupload + + + + + org.apache.poi + poi-ooxml + + + + + org.yaml + snakeyaml + + + + + javax.servlet + javax.servlet-api + + + + + \ No newline at end of file diff --git a/alive-common/src/main/java/com/ruoyi/common/annotation/DataScope.java b/alive-common/src/main/java/com/ruoyi/common/annotation/DataScope.java new file mode 100644 index 0000000..176878e --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/annotation/DataScope.java @@ -0,0 +1,28 @@ +package com.ruoyi.common.annotation; + +import java.lang.annotation.Documented; +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +/** + * 数据权限过滤注解 + * + * @author ruoyi + */ +@Target(ElementType.METHOD) +@Retention(RetentionPolicy.RUNTIME) +@Documented +public @interface DataScope +{ + /** + * 部门表的别名 + */ + public String deptAlias() default ""; + + /** + * 用户表的别名 + */ + public String userAlias() default ""; +} diff --git a/alive-common/src/main/java/com/ruoyi/common/annotation/DataSource.java b/alive-common/src/main/java/com/ruoyi/common/annotation/DataSource.java new file mode 100644 index 0000000..79cd191 --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/annotation/DataSource.java @@ -0,0 +1,28 @@ +package com.ruoyi.common.annotation; + +import java.lang.annotation.Documented; +import java.lang.annotation.ElementType; +import java.lang.annotation.Inherited; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; +import com.ruoyi.common.enums.DataSourceType; + +/** + * 自定义多数据源切换注解 + * + * 优先级:先方法,后类,如果方法覆盖了类上的数据源类型,以方法的为准,否则以类上的为准 + * + * @author ruoyi + */ +@Target({ ElementType.METHOD, ElementType.TYPE }) +@Retention(RetentionPolicy.RUNTIME) +@Documented +@Inherited +public @interface DataSource +{ + /** + * 切换数据源名称 + */ + public DataSourceType value() default DataSourceType.MASTER; +} diff --git a/alive-common/src/main/java/com/ruoyi/common/annotation/Excel.java b/alive-common/src/main/java/com/ruoyi/common/annotation/Excel.java new file mode 100644 index 0000000..3754e0e --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/annotation/Excel.java @@ -0,0 +1,176 @@ +package com.ruoyi.common.annotation; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; +import java.math.BigDecimal; +import com.ruoyi.common.utils.poi.ExcelHandlerAdapter; + +/** + * 自定义导出Excel数据注解 + * + * @author ruoyi + */ +@Retention(RetentionPolicy.RUNTIME) +@Target(ElementType.FIELD) +public @interface Excel +{ + /** + * 导出时在excel中排序 + */ + public int sort() default Integer.MAX_VALUE; + + /** + * 导出到Excel中的名字. + */ + public String name() default ""; + + /** + * 日期格式, 如: yyyy-MM-dd + */ + public String dateFormat() default ""; + + /** + * 如果是字典类型,请设置字典的type值 (如: sys_user_sex) + */ + public String dictType() default ""; + + /** + * 读取内容转表达式 (如: 0=男,1=女,2=未知) + */ + public String readConverterExp() default ""; + + /** + * 分隔符,读取字符串组内容 + */ + public String separator() default ","; + + /** + * BigDecimal 精度 默认:-1(默认不开启BigDecimal格式化) + */ + public int scale() default -1; + + /** + * BigDecimal 舍入规则 默认:BigDecimal.ROUND_HALF_EVEN + */ + public int roundingMode() default BigDecimal.ROUND_HALF_EVEN; + + /** + * 导出类型(0数字 1字符串) + */ + public ColumnType cellType() default ColumnType.STRING; + + /** + * 导出时在excel中每个列的高度 单位为字符 + */ + public double height() default 14; + + /** + * 导出时在excel中每个列的宽 单位为字符 + */ + public double width() default 16; + + /** + * 文字后缀,如% 90 变成90% + */ + public String suffix() default ""; + + /** + * 当值为空时,字段的默认值 + */ + public String defaultValue() default ""; + + /** + * 提示信息 + */ + public String prompt() default ""; + + /** + * 设置只能选择不能输入的列内容. + */ + public String[] combo() default {}; + + /** + * 是否导出数据,应对需求:有时我们需要导出一份模板,这是标题需要但内容需要用户手工填写. + */ + public boolean isExport() default true; + + /** + * 另一个类中的属性名称,支持多级获取,以小数点隔开 + */ + public String targetAttr() default ""; + + /** + * 是否自动统计数据,在最后追加一行统计数据总和 + */ + public boolean isStatistics() default false; + + /** + * 导出字段对齐方式(0:默认;1:靠左;2:居中;3:靠右) + */ + public Align align() default Align.AUTO; + + /** + * 自定义数据处理器 + */ + public Class handler() default ExcelHandlerAdapter.class; + + /** + * 自定义数据处理器参数 + */ + public String[] args() default {}; + + public enum Align + { + AUTO(0), LEFT(1), CENTER(2), RIGHT(3); + private final int value; + + Align(int value) + { + this.value = value; + } + + public int value() + { + return this.value; + } + } + + /** + * 字段类型(0:导出导入;1:仅导出;2:仅导入) + */ + Type type() default Type.ALL; + + public enum Type + { + ALL(0), EXPORT(1), IMPORT(2); + private final int value; + + Type(int value) + { + this.value = value; + } + + public int value() + { + return this.value; + } + } + + public enum ColumnType + { + NUMERIC(0), STRING(1), IMAGE(2); + private final int value; + + ColumnType(int value) + { + this.value = value; + } + + public int value() + { + return this.value; + } + } +} \ No newline at end of file diff --git a/alive-common/src/main/java/com/ruoyi/common/annotation/Excels.java b/alive-common/src/main/java/com/ruoyi/common/annotation/Excels.java new file mode 100644 index 0000000..8c6870c --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/annotation/Excels.java @@ -0,0 +1,18 @@ +package com.ruoyi.common.annotation; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +/** + * Excel注解集 + * + * @author ruoyi + */ +@Target(ElementType.FIELD) +@Retention(RetentionPolicy.RUNTIME) +public @interface Excels +{ + Excel[] value(); +} \ No newline at end of file diff --git a/alive-common/src/main/java/com/ruoyi/common/annotation/Log.java b/alive-common/src/main/java/com/ruoyi/common/annotation/Log.java new file mode 100644 index 0000000..e9a23e5 --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/annotation/Log.java @@ -0,0 +1,45 @@ +package com.ruoyi.common.annotation; + +import java.lang.annotation.Documented; +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.common.enums.OperatorType; + +/** + * 自定义操作日志记录注解 + * + * @author ruoyi + */ +@Target({ ElementType.PARAMETER, ElementType.METHOD }) +@Retention(RetentionPolicy.RUNTIME) +@Documented +public @interface Log +{ + /** + * 模块 + */ + public String title() default ""; + + /** + * 功能 + */ + public BusinessType businessType() default BusinessType.OTHER; + + /** + * 操作人类别 + */ + public OperatorType operatorType() default OperatorType.MANAGE; + + /** + * 是否保存请求的参数 + */ + public boolean isSaveRequestData() default true; + + /** + * 是否保存响应的参数 + */ + public boolean isSaveResponseData() default true; +} diff --git a/alive-common/src/main/java/com/ruoyi/common/annotation/RepeatSubmit.java b/alive-common/src/main/java/com/ruoyi/common/annotation/RepeatSubmit.java new file mode 100644 index 0000000..3e06e95 --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/annotation/RepeatSubmit.java @@ -0,0 +1,29 @@ +package com.ruoyi.common.annotation; + +import java.lang.annotation.Documented; +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +/** + * 自定义注解防止表单重复提交 + * + * @author ruoyi + * + */ +@Target(ElementType.METHOD) +@Retention(RetentionPolicy.RUNTIME) +@Documented +public @interface RepeatSubmit +{ + /** + * 间隔时间(ms),小于此时间视为重复提交 + */ + public int interval() default 5000; + + /** + * 提示消息 + */ + public String message() default "不允许重复提交,请稍后再试"; +} \ No newline at end of file diff --git a/alive-common/src/main/java/com/ruoyi/common/config/RuoYiConfig.java b/alive-common/src/main/java/com/ruoyi/common/config/RuoYiConfig.java new file mode 100644 index 0000000..46a5734 --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/config/RuoYiConfig.java @@ -0,0 +1,124 @@ +package com.ruoyi.common.config; + +import org.springframework.boot.context.properties.ConfigurationProperties; +import org.springframework.stereotype.Component; + +/** + * 全局配置类 + * + * @author ruoyi + */ +@Component +@ConfigurationProperties(prefix = "ruoyi") +public class RuoYiConfig +{ + /** 项目名称 */ + private static String name; + + /** 版本 */ + private static String version; + + /** 版权年份 */ + private static String copyrightYear; + + /** 实例演示开关 */ + private static boolean demoEnabled; + + /** 上传路径 */ + private static String profile; + + /** 获取地址开关 */ + private static boolean addressEnabled; + + public static String getName() + { + return name; + } + + public void setName(String name) + { + RuoYiConfig.name = name; + } + + public static String getVersion() + { + return version; + } + + public void setVersion(String version) + { + RuoYiConfig.version = version; + } + + public static String getCopyrightYear() + { + return copyrightYear; + } + + public void setCopyrightYear(String copyrightYear) + { + RuoYiConfig.copyrightYear = copyrightYear; + } + + public static boolean isDemoEnabled() + { + return demoEnabled; + } + + public void setDemoEnabled(boolean demoEnabled) + { + RuoYiConfig.demoEnabled = demoEnabled; + } + + public static String getProfile() + { + return profile; + } + + public void setProfile(String profile) + { + RuoYiConfig.profile = profile; + } + + public static boolean isAddressEnabled() + { + return addressEnabled; + } + + public void setAddressEnabled(boolean addressEnabled) + { + RuoYiConfig.addressEnabled = addressEnabled; + } + + /** + * 获取导入上传路径 + */ + public static String getImportPath() + { + return getProfile() + "/import"; + } + + /** + * 获取头像上传路径 + */ + public static String getAvatarPath() + { + return getProfile() + "/avatar"; + } + + /** + * 获取下载路径 + */ + public static String getDownloadPath() + { + return getProfile() + "/download/"; + } + + /** + * 获取上传路径 + */ + public static String getUploadPath() + { + return getProfile() + "/upload"; + } +} diff --git a/alive-common/src/main/java/com/ruoyi/common/config/ServerConfig.java b/alive-common/src/main/java/com/ruoyi/common/config/ServerConfig.java new file mode 100644 index 0000000..b6b35e4 --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/config/ServerConfig.java @@ -0,0 +1,33 @@ +package com.ruoyi.common.config; + +import javax.servlet.http.HttpServletRequest; +import org.springframework.stereotype.Component; +import com.ruoyi.common.utils.ServletUtils; + +/** + * 服务相关配置 + * + * @author ruoyi + * + */ +@Component +public class ServerConfig +{ + /** + * 获取完整的请求路径,包括:域名,端口,上下文访问路径 + * + * @return 服务地址 + */ + public String getUrl() + { + HttpServletRequest request = ServletUtils.getRequest(); + return getDomain(request); + } + + public static String getDomain(HttpServletRequest request) + { + StringBuffer url = request.getRequestURL(); + String contextPath = request.getServletContext().getContextPath(); + return url.delete(url.length() - request.getRequestURI().length(), url.length()).append(contextPath).toString(); + } +} diff --git a/alive-common/src/main/java/com/ruoyi/common/config/datasource/DynamicDataSourceContextHolder.java b/alive-common/src/main/java/com/ruoyi/common/config/datasource/DynamicDataSourceContextHolder.java new file mode 100644 index 0000000..6937dca --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/config/datasource/DynamicDataSourceContextHolder.java @@ -0,0 +1,45 @@ +package com.ruoyi.common.config.datasource; + +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +/** + * 数据源切换处理 + * + * @author ruoyi + */ +public class DynamicDataSourceContextHolder +{ + public static final Logger log = LoggerFactory.getLogger(DynamicDataSourceContextHolder.class); + + /** + * 使用ThreadLocal维护变量,ThreadLocal为每个使用该变量的线程提供独立的变量副本, + * 所以每一个线程都可以独立地改变自己的副本,而不会影响其它线程所对应的副本。 + */ + private static final ThreadLocal CONTEXT_HOLDER = new ThreadLocal<>(); + + /** + * 设置数据源的变量 + */ + public static void setDataSourceType(String dsType) + { + log.info("切换到{}数据源", dsType); + CONTEXT_HOLDER.set(dsType); + } + + /** + * 获得数据源的变量 + */ + public static String getDataSourceType() + { + return CONTEXT_HOLDER.get(); + } + + /** + * 清空数据源变量 + */ + public static void clearDataSourceType() + { + CONTEXT_HOLDER.remove(); + } +} diff --git a/alive-common/src/main/java/com/ruoyi/common/config/thread/ThreadPoolConfig.java b/alive-common/src/main/java/com/ruoyi/common/config/thread/ThreadPoolConfig.java new file mode 100644 index 0000000..955a4f9 --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/config/thread/ThreadPoolConfig.java @@ -0,0 +1,63 @@ +package com.ruoyi.common.config.thread; + +import java.util.concurrent.ScheduledExecutorService; +import java.util.concurrent.ScheduledThreadPoolExecutor; +import java.util.concurrent.ThreadPoolExecutor; +import org.apache.commons.lang3.concurrent.BasicThreadFactory; +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; +import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor; +import com.ruoyi.common.utils.Threads; + +/** + * 线程池配置 + * + * @author ruoyi + **/ +@Configuration +public class ThreadPoolConfig +{ + // 核心线程池大小 + private int corePoolSize = 50; + + // 最大可创建的线程数 + private int maxPoolSize = 200; + + // 队列最大长度 + private int queueCapacity = 1000; + + // 线程池维护线程所允许的空闲时间 + private int keepAliveSeconds = 300; + + @Bean(name = "threadPoolTaskExecutor") + public ThreadPoolTaskExecutor threadPoolTaskExecutor() + { + ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor(); + executor.setMaxPoolSize(maxPoolSize); + executor.setCorePoolSize(corePoolSize); + executor.setQueueCapacity(queueCapacity); + executor.setKeepAliveSeconds(keepAliveSeconds); + // 线程池对拒绝任务(无线程可用)的处理策略 + executor.setRejectedExecutionHandler(new ThreadPoolExecutor.CallerRunsPolicy()); + return executor; + } + + /** + * 执行周期性或定时任务 + */ + @Bean(name = "scheduledExecutorService") + protected ScheduledExecutorService scheduledExecutorService() + { + return new ScheduledThreadPoolExecutor(corePoolSize, + new BasicThreadFactory.Builder().namingPattern("schedule-pool-%d").daemon(true).build(), + new ThreadPoolExecutor.CallerRunsPolicy()) + { + @Override + protected void afterExecute(Runnable r, Throwable t) + { + super.afterExecute(r, t); + Threads.printException(r, t); + } + }; + } +} diff --git a/alive-common/src/main/java/com/ruoyi/common/constant/Constants.java b/alive-common/src/main/java/com/ruoyi/common/constant/Constants.java new file mode 100644 index 0000000..7ac4e91 --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/constant/Constants.java @@ -0,0 +1,115 @@ +package com.ruoyi.common.constant; + +/** + * 通用常量信息 + * + * @author ruoyi + */ +public class Constants +{ + /** + * UTF-8 字符集 + */ + public static final String UTF8 = "UTF-8"; + + /** + * GBK 字符集 + */ + public static final String GBK = "GBK"; + + /** + * http请求 + */ + public static final String HTTP = "http://"; + + /** + * https请求 + */ + public static final String HTTPS = "https://"; + + /** + * 通用成功标识 + */ + public static final String SUCCESS = "0"; + + /** + * 通用失败标识 + */ + public static final String FAIL = "1"; + + /** + * 登录成功 + */ + public static final String LOGIN_SUCCESS = "Success"; + + /** + * 注销 + */ + public static final String LOGOUT = "Logout"; + + /** + * 注册 + */ + public static final String REGISTER = "Register"; + + /** + * 登录失败 + */ + public static final String LOGIN_FAIL = "Error"; + + /** + * 系统用户授权缓存 + */ + public static final String SYS_AUTH_CACHE = "sys-authCache"; + + /** + * 参数管理 cache name + */ + public static final String SYS_CONFIG_CACHE = "sys-config"; + + /** + * 参数管理 cache key + */ + public static final String SYS_CONFIG_KEY = "sys_config:"; + + /** + * 字典管理 cache name + */ + public static final String SYS_DICT_CACHE = "sys-dict"; + + /** + * 字典管理 cache key + */ + public static final String SYS_DICT_KEY = "sys_dict:"; + + /** + * 资源映射路径 前缀 + */ + public static final String RESOURCE_PREFIX = "/profile"; + + /** + * RMI 远程方法调用 + */ + public static final String LOOKUP_RMI = "rmi:"; + + /** + * LDAP 远程方法调用 + */ + public static final String LOOKUP_LDAP = "ldap:"; + + /** + * LDAPS 远程方法调用 + */ + public static final String LOOKUP_LDAPS = "ldaps:"; + + /** + * 定时任务白名单配置(仅允许访问的包名,如其他需要可以自行添加) + */ + public static final String[] JOB_WHITELIST_STR = { "com.ruoyi" }; + + /** + * 定时任务违规的字符 + */ + public static final String[] JOB_ERROR_STR = { "java.net.URL", "javax.naming.InitialContext", "org.yaml.snakeyaml", + "org.springframework", "org.apache", "com.ruoyi.common.utils.file" }; +} \ No newline at end of file diff --git a/alive-common/src/main/java/com/ruoyi/common/constant/GenConstants.java b/alive-common/src/main/java/com/ruoyi/common/constant/GenConstants.java new file mode 100644 index 0000000..98b4711 --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/constant/GenConstants.java @@ -0,0 +1,114 @@ +package com.ruoyi.common.constant; + +/** + * 代码生成通用常量 + * + * @author ruoyi + */ +public class GenConstants +{ + /** 单表(增删改查) */ + public static final String TPL_CRUD = "crud"; + + /** 树表(增删改查) */ + public static final String TPL_TREE = "tree"; + + /** 主子表(增删改查) */ + public static final String TPL_SUB = "sub"; + + /** 树编码字段 */ + public static final String TREE_CODE = "treeCode"; + + /** 树父编码字段 */ + public static final String TREE_PARENT_CODE = "treeParentCode"; + + /** 树名称字段 */ + public static final String TREE_NAME = "treeName"; + + /** 上级菜单ID字段 */ + public static final String PARENT_MENU_ID = "parentMenuId"; + + /** 上级菜单名称字段 */ + public static final String PARENT_MENU_NAME = "parentMenuName"; + + /** 数据库字符串类型 */ + public static final String[] COLUMNTYPE_STR = { "char", "varchar", "nvarchar", "varchar2" }; + + /** 数据库文本类型 */ + public static final String[] COLUMNTYPE_TEXT = { "tinytext", "text", "mediumtext", "longtext" }; + + /** 数据库时间类型 */ + public static final String[] COLUMNTYPE_TIME = { "datetime", "time", "date", "timestamp" }; + + /** 数据库数字类型 */ + public static final String[] COLUMNTYPE_NUMBER = { "tinyint", "smallint", "mediumint", "int", "number", "integer", + "bit", "bigint", "float", "double", "decimal" }; + + /** 页面不需要编辑字段 */ + public static final String[] COLUMNNAME_NOT_EDIT = { "id", "create_by", "create_time", "del_flag" }; + + /** 页面不需要显示的列表字段 */ + public static final String[] COLUMNNAME_NOT_LIST = { "id", "create_by", "create_time", "del_flag", "update_by", + "update_time" }; + + /** 页面不需要查询字段 */ + public static final String[] COLUMNNAME_NOT_QUERY = { "id", "create_by", "create_time", "del_flag", "update_by", + "update_time", "remark" }; + + /** Entity基类字段 */ + public static final String[] BASE_ENTITY = { "createBy", "createTime", "updateBy", "updateTime", "remark" }; + + /** Tree基类字段 */ + public static final String[] TREE_ENTITY = { "parentName", "parentId", "orderNum", "ancestors" }; + + /** 文本框 */ + public static final String HTML_INPUT = "input"; + + /** 文本域 */ + public static final String HTML_TEXTAREA = "textarea"; + + /** 下拉框 */ + public static final String HTML_SELECT = "select"; + + /** 单选框 */ + public static final String HTML_RADIO = "radio"; + + /** 复选框 */ + public static final String HTML_CHECKBOX = "checkbox"; + + /** 日期控件 */ + public static final String HTML_DATETIME = "datetime"; + + /** 上传控件 */ + public static final String HTML_UPLOAD = "upload"; + + /** 富文本控件 */ + public static final String HTML_SUMMERNOTE = "summernote"; + + /** 字符串类型 */ + public static final String TYPE_STRING = "String"; + + /** 整型 */ + public static final String TYPE_INTEGER = "Integer"; + + /** 长整型 */ + public static final String TYPE_LONG = "Long"; + + /** 浮点型 */ + public static final String TYPE_DOUBLE = "Double"; + + /** 高精度计算类型 */ + public static final String TYPE_BIGDECIMAL = "BigDecimal"; + + /** 时间类型 */ + public static final String TYPE_DATE = "Date"; + + /** 模糊查询 */ + public static final String QUERY_LIKE = "LIKE"; + + /** 相等查询 */ + public static final String QUERY_EQ = "EQ"; + + /** 需要 */ + public static final String REQUIRE = "1"; +} diff --git a/alive-common/src/main/java/com/ruoyi/common/constant/PermissionConstants.java b/alive-common/src/main/java/com/ruoyi/common/constant/PermissionConstants.java new file mode 100644 index 0000000..8967214 --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/constant/PermissionConstants.java @@ -0,0 +1,27 @@ +package com.ruoyi.common.constant; + +/** + * 权限通用常量 + * + * @author ruoyi + */ +public class PermissionConstants +{ + /** 新增权限 */ + public static final String ADD_PERMISSION = "add"; + + /** 修改权限 */ + public static final String EDIT_PERMISSION = "edit"; + + /** 删除权限 */ + public static final String REMOVE_PERMISSION = "remove"; + + /** 导出权限 */ + public static final String EXPORT_PERMISSION = "export"; + + /** 显示权限 */ + public static final String VIEW_PERMISSION = "view"; + + /** 查询权限 */ + public static final String LIST_PERMISSION = "list"; +} diff --git a/alive-common/src/main/java/com/ruoyi/common/constant/ScheduleConstants.java b/alive-common/src/main/java/com/ruoyi/common/constant/ScheduleConstants.java new file mode 100644 index 0000000..62ad815 --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/constant/ScheduleConstants.java @@ -0,0 +1,50 @@ +package com.ruoyi.common.constant; + +/** + * 任务调度通用常量 + * + * @author ruoyi + */ +public class ScheduleConstants +{ + public static final String TASK_CLASS_NAME = "TASK_CLASS_NAME"; + + /** 执行目标key */ + public static final String TASK_PROPERTIES = "TASK_PROPERTIES"; + + /** 默认 */ + public static final String MISFIRE_DEFAULT = "0"; + + /** 立即触发执行 */ + public static final String MISFIRE_IGNORE_MISFIRES = "1"; + + /** 触发一次执行 */ + public static final String MISFIRE_FIRE_AND_PROCEED = "2"; + + /** 不触发立即执行 */ + public static final String MISFIRE_DO_NOTHING = "3"; + + public enum Status + { + /** + * 正常 + */ + NORMAL("0"), + /** + * 暂停 + */ + PAUSE("1"); + + private String value; + + private Status(String value) + { + this.value = value; + } + + public String getValue() + { + return value; + } + } +} diff --git a/alive-common/src/main/java/com/ruoyi/common/constant/ShiroConstants.java b/alive-common/src/main/java/com/ruoyi/common/constant/ShiroConstants.java new file mode 100644 index 0000000..b52f1e9 --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/constant/ShiroConstants.java @@ -0,0 +1,79 @@ +package com.ruoyi.common.constant; + +/** + * Shiro通用常量 + * + * @author ruoyi + */ +public class ShiroConstants +{ + /** + * 当前登录的用户 + */ + public static final String CURRENT_USER = "currentUser"; + + /** + * 用户名字段 + */ + public static final String CURRENT_USERNAME = "username"; + + /** + * 锁定屏幕字段 + */ + public static final String LOCK_SCREEN = "lockscreen"; + + /** + * 消息key + */ + public static final String MESSAGE = "message"; + + /** + * 错误key + */ + public static final String ERROR = "errorMsg"; + + /** + * 编码格式 + */ + public static final String ENCODING = "UTF-8"; + + /** + * 当前在线会话 + */ + public static final String ONLINE_SESSION = "online_session"; + + /** + * 验证码key + */ + public static final String CURRENT_CAPTCHA = "captcha"; + + /** + * 验证码开关 + */ + public static final String CURRENT_ENABLED = "captchaEnabled"; + + /** + * 验证码类型 + */ + public static final String CURRENT_TYPE = "captchaType"; + + /** + * 验证码 + */ + public static final String CURRENT_VALIDATECODE = "validateCode"; + + /** + * 验证码错误 + */ + public static final String CAPTCHA_ERROR = "captchaError"; + + /** + * 登录记录缓存 + */ + public static final String LOGINRECORDCACHE = "loginRecordCache"; + + /** + * 系统活跃用户缓存 + */ + public static final String SYS_USERCACHE = "sys-userCache"; +} diff --git a/alive-common/src/main/java/com/ruoyi/common/constant/UserConstants.java b/alive-common/src/main/java/com/ruoyi/common/constant/UserConstants.java new file mode 100644 index 0000000..b316141 --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/constant/UserConstants.java @@ -0,0 +1,110 @@ +package com.ruoyi.common.constant; + +/** + * 用户常量信息 + * + * @author ruoyi + */ +public class UserConstants +{ + /** + * 平台内系统用户的唯一标志 + */ + public static final String SYS_USER = "SYS_USER"; + + /** 正常状态 */ + public static final String NORMAL = "0"; + + /** 异常状态 */ + public static final String EXCEPTION = "1"; + + /** 用户封禁状态 */ + public static final String USER_DISABLE = "1"; + + /** 角色封禁状态 */ + public static final String ROLE_DISABLE = "1"; + + /** 部门正常状态 */ + public static final String DEPT_NORMAL = "0"; + + /** 部门停用状态 */ + public static final String DEPT_DISABLE = "1"; + + /** 字典正常状态 */ + public static final String DICT_NORMAL = "0"; + + /** 是否为系统默认(是) */ + public static final String YES = "Y"; + + /** + * 用户名长度限制 + */ + public static final int USERNAME_MIN_LENGTH = 2; + public static final int USERNAME_MAX_LENGTH = 20; + + /** 登录名称是否唯一的返回结果码 */ + public final static String USER_NAME_UNIQUE = "0"; + public final static String USER_NAME_NOT_UNIQUE = "1"; + + /** 手机号码是否唯一的返回结果 */ + public final static String USER_PHONE_UNIQUE = "0"; + public final static String USER_PHONE_NOT_UNIQUE = "1"; + + /** e-mail 是否唯一的返回结果 */ + public final static String USER_EMAIL_UNIQUE = "0"; + public final static String USER_EMAIL_NOT_UNIQUE = "1"; + + /** 部门名称是否唯一的返回结果码 */ + public final static String DEPT_NAME_UNIQUE = "0"; + public final static String DEPT_NAME_NOT_UNIQUE = "1"; + + /** 角色名称是否唯一的返回结果码 */ + public final static String ROLE_NAME_UNIQUE = "0"; + public final static String ROLE_NAME_NOT_UNIQUE = "1"; + + /** 岗位名称是否唯一的返回结果码 */ + public final static String POST_NAME_UNIQUE = "0"; + public final static String POST_NAME_NOT_UNIQUE = "1"; + + /** 角色权限是否唯一的返回结果码 */ + public final static String ROLE_KEY_UNIQUE = "0"; + public final static String ROLE_KEY_NOT_UNIQUE = "1"; + + /** 岗位编码是否唯一的返回结果码 */ + public final static String POST_CODE_UNIQUE = "0"; + public final static String POST_CODE_NOT_UNIQUE = "1"; + + /** 菜单名称是否唯一的返回结果码 */ + public final static String MENU_NAME_UNIQUE = "0"; + public final static String MENU_NAME_NOT_UNIQUE = "1"; + + /** 字典类型是否唯一的返回结果码 */ + public final static String DICT_TYPE_UNIQUE = "0"; + public final static String DICT_TYPE_NOT_UNIQUE = "1"; + + /** 参数键名是否唯一的返回结果码 */ + public final static String CONFIG_KEY_UNIQUE = "0"; + public final static String CONFIG_KEY_NOT_UNIQUE = "1"; + + /** + * 密码长度限制 + */ + public static final int PASSWORD_MIN_LENGTH = 5; + public static final int PASSWORD_MAX_LENGTH = 20; + + /** + * 用户类型 + */ + public static final String SYSTEM_USER_TYPE = "00"; + public static final String REGISTER_USER_TYPE = "01"; + + /** + * 手机号码格式限制 + */ + public static final String MOBILE_PHONE_NUMBER_PATTERN = "^0{0,1}(13[0-9]|15[0-9]|14[0-9]|18[0-9])[0-9]{8}$"; + + /** + * 邮箱格式限制 + */ + public static final String EMAIL_PATTERN = "^((([a-z]|\\d|[!#\\$%&'\\*\\+\\-\\/=\\?\\^_`{\\|}~]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])+(\\.([a-z]|\\d|[!#\\$%&'\\*\\+\\-\\/=\\?\\^_`{\\|}~]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])+)*)|((\\x22)((((\\x20|\\x09)*(\\x0d\\x0a))?(\\x20|\\x09)+)?(([\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x7f]|\\x21|[\\x23-\\x5b]|[\\x5d-\\x7e]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(\\\\([\\x01-\\x09\\x0b\\x0c\\x0d-\\x7f]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]))))*(((\\x20|\\x09)*(\\x0d\\x0a))?(\\x20|\\x09)+)?(\\x22)))@((([a-z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(([a-z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])*([a-z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])))\\.)+(([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])*([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])))\\.?"; +} diff --git a/alive-common/src/main/java/com/ruoyi/common/core/controller/BaseController.java b/alive-common/src/main/java/com/ruoyi/common/core/controller/BaseController.java new file mode 100644 index 0000000..0cc6eb5 --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/core/controller/BaseController.java @@ -0,0 +1,221 @@ +package com.ruoyi.common.core.controller; + +import java.beans.PropertyEditorSupport; +import java.util.Date; +import java.util.List; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.web.bind.WebDataBinder; +import org.springframework.web.bind.annotation.InitBinder; +import com.github.pagehelper.PageHelper; +import com.github.pagehelper.PageInfo; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.domain.AjaxResult.Type; +import com.ruoyi.common.core.domain.entity.SysUser; +import com.ruoyi.common.core.page.PageDomain; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.core.page.TableSupport; +import com.ruoyi.common.utils.DateUtils; +import com.ruoyi.common.utils.PageUtils; +import com.ruoyi.common.utils.ServletUtils; +import com.ruoyi.common.utils.ShiroUtils; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.common.utils.sql.SqlUtil; + +/** + * web层通用数据处理 + * + * @author ruoyi + */ +public class BaseController +{ + protected final Logger logger = LoggerFactory.getLogger(this.getClass()); + + /** + * 将前台传递过来的日期格式的字符串,自动转化为Date类型 + */ + @InitBinder + public void initBinder(WebDataBinder binder) + { + // Date 类型转换 + binder.registerCustomEditor(Date.class, new PropertyEditorSupport() + { + @Override + public void setAsText(String text) + { + setValue(DateUtils.parseDate(text)); + } + }); + } + + /** + * 设置请求分页数据 + */ + protected void startPage() + { + PageUtils.startPage(); + } + + /** + * 设置请求排序数据 + */ + protected void startOrderBy() + { + PageDomain pageDomain = TableSupport.buildPageRequest(); + if (StringUtils.isNotEmpty(pageDomain.getOrderBy())) + { + String orderBy = SqlUtil.escapeOrderBySql(pageDomain.getOrderBy()); + PageHelper.orderBy(orderBy); + } + } + + /** + * 获取request + */ + public HttpServletRequest getRequest() + { + return ServletUtils.getRequest(); + } + + /** + * 获取response + */ + public HttpServletResponse getResponse() + { + return ServletUtils.getResponse(); + } + + /** + * 获取session + */ + public HttpSession getSession() + { + return getRequest().getSession(); + } + + /** + * 响应请求分页数据 + */ + @SuppressWarnings({ "rawtypes", "unchecked" }) + protected TableDataInfo getDataTable(List list) + { + TableDataInfo rspData = new TableDataInfo(); + rspData.setCode(0); + rspData.setRows(list); + rspData.setTotal(new PageInfo(list).getTotal()); + return rspData; + } + + /** + * 响应返回结果 + * + * @param rows 影响行数 + * @return 操作结果 + */ + protected AjaxResult toAjax(int rows) + { + return rows > 0 ? success() : error(); + } + + /** + * 响应返回结果 + * + * @param result 结果 + * @return 操作结果 + */ + protected AjaxResult toAjax(boolean result) + { + return result ? success() : error(); + } + + /** + * 返回成功 + */ + public AjaxResult success() + { + return AjaxResult.success(); + } + + /** + * 返回失败消息 + */ + public AjaxResult error() + { + return AjaxResult.error(); + } + + /** + * 返回成功消息 + */ + public AjaxResult success(String message) + { + return AjaxResult.success(message); + } + + /** + * 返回成功数据 + */ + public static AjaxResult success(Object data) + { + return AjaxResult.success("操作成功", data); + } + + /** + * 返回失败消息 + */ + public AjaxResult error(String message) + { + return AjaxResult.error(message); + } + + /** + * 返回错误码消息 + */ + public AjaxResult error(Type type, String message) + { + return new AjaxResult(type, message); + } + + /** + * 页面跳转 + */ + public String redirect(String url) + { + return StringUtils.format("redirect:{}", url); + } + + /** + * 获取用户缓存信息 + */ + public SysUser getSysUser() + { + return ShiroUtils.getSysUser(); + } + + /** + * 设置用户缓存信息 + */ + public void setSysUser(SysUser user) + { + ShiroUtils.setSysUser(user); + } + + /** + * 获取登录用户id + */ + public Long getUserId() + { + return getSysUser().getUserId(); + } + + /** + * 获取登录用户名 + */ + public String getLoginName() + { + return getSysUser().getLoginName(); + } +} diff --git a/alive-common/src/main/java/com/ruoyi/common/core/domain/AjaxResult.java b/alive-common/src/main/java/com/ruoyi/common/core/domain/AjaxResult.java new file mode 100644 index 0000000..5581532 --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/core/domain/AjaxResult.java @@ -0,0 +1,196 @@ +package com.ruoyi.common.core.domain; + +import java.util.HashMap; +import com.ruoyi.common.utils.StringUtils; + +/** + * 操作消息提醒 + * + * @author ruoyi + */ +public class AjaxResult extends HashMap +{ + private static final long serialVersionUID = 1L; + + /** 状态码 */ + public static final String CODE_TAG = "code"; + + /** 返回内容 */ + public static final String MSG_TAG = "msg"; + + /** 数据对象 */ + public static final String DATA_TAG = "data"; + + /** + * 状态类型 + */ + public enum Type + { + /** 成功 */ + SUCCESS(0), + /** 警告 */ + WARN(301), + /** 错误 */ + ERROR(500); + private final int value; + + Type(int value) + { + this.value = value; + } + + public int value() + { + return this.value; + } + } + + /** + * 初始化一个新创建的 AjaxResult 对象,使其表示一个空消息。 + */ + public AjaxResult() + { + } + + /** + * 初始化一个新创建的 AjaxResult 对象 + * + * @param type 状态类型 + * @param msg 返回内容 + */ + public AjaxResult(Type type, String msg) + { + super.put(CODE_TAG, type.value); + super.put(MSG_TAG, msg); + } + + /** + * 初始化一个新创建的 AjaxResult 对象 + * + * @param type 状态类型 + * @param msg 返回内容 + * @param data 数据对象 + */ + public AjaxResult(Type type, String msg, Object data) + { + super.put(CODE_TAG, type.value); + super.put(MSG_TAG, msg); + if (StringUtils.isNotNull(data)) + { + super.put(DATA_TAG, data); + } + } + + /** + * 方便链式调用 + * + * @param key 键 + * @param value 值 + * @return 数据对象 + */ + @Override + public AjaxResult put(String key, Object value) + { + super.put(key, value); + return this; + } + + /** + * 返回成功消息 + * + * @return 成功消息 + */ + public static AjaxResult success() + { + return AjaxResult.success("操作成功"); + } + + /** + * 返回成功数据 + * + * @return 成功消息 + */ + public static AjaxResult success(Object data) + { + return AjaxResult.success("操作成功", data); + } + + /** + * 返回成功消息 + * + * @param msg 返回内容 + * @return 成功消息 + */ + public static AjaxResult success(String msg) + { + return AjaxResult.success(msg, null); + } + + /** + * 返回成功消息 + * + * @param msg 返回内容 + * @param data 数据对象 + * @return 成功消息 + */ + public static AjaxResult success(String msg, Object data) + { + return new AjaxResult(Type.SUCCESS, msg, data); + } + + /** + * 返回警告消息 + * + * @param msg 返回内容 + * @return 警告消息 + */ + public static AjaxResult warn(String msg) + { + return AjaxResult.warn(msg, null); + } + + /** + * 返回警告消息 + * + * @param msg 返回内容 + * @param data 数据对象 + * @return 警告消息 + */ + public static AjaxResult warn(String msg, Object data) + { + return new AjaxResult(Type.WARN, msg, data); + } + + /** + * 返回错误消息 + * + * @return + */ + public static AjaxResult error() + { + return AjaxResult.error("操作失败"); + } + + /** + * 返回错误消息 + * + * @param msg 返回内容 + * @return 警告消息 + */ + public static AjaxResult error(String msg) + { + return AjaxResult.error(msg, null); + } + + /** + * 返回错误消息 + * + * @param msg 返回内容 + * @param data 数据对象 + * @return 警告消息 + */ + public static AjaxResult error(String msg, Object data) + { + return new AjaxResult(Type.ERROR, msg, data); + } +} diff --git a/alive-common/src/main/java/com/ruoyi/common/core/domain/BaseEntity.java b/alive-common/src/main/java/com/ruoyi/common/core/domain/BaseEntity.java new file mode 100644 index 0000000..110c219 --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/core/domain/BaseEntity.java @@ -0,0 +1,128 @@ +package com.ruoyi.common.core.domain; + +import java.io.Serializable; +import java.util.Date; +import java.util.HashMap; +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonFormat; +import com.ruoyi.common.annotation.Excel; + +/** + * Entity基类 + * + * @author ruoyi + */ +public class BaseEntity implements Serializable +{ + private static final long serialVersionUID = 1L; + + /** + * 主键ID + */ + private Long id; + + /** 搜索值 */ + private String searchValue; + + /** 创建者 */ + private String createBy; + + /** 创建时间 */ + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") + private Date createTime; + + /** 更新者 */ + private String updateBy; + + /** 更新时间 */ + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") + private Date updateTime; + + /** 备注 */ + private String remark; + + /** 请求参数 */ + private Map params; + + public String getSearchValue() + { + return searchValue; + } + + public void setSearchValue(String searchValue) + { + this.searchValue = searchValue; + } + + public String getCreateBy() + { + return createBy; + } + + public void setCreateBy(String createBy) + { + this.createBy = createBy; + } + + public Date getCreateTime() + { + return createTime; + } + + public void setCreateTime(Date createTime) + { + this.createTime = createTime; + } + + public String getUpdateBy() + { + return updateBy; + } + + public void setUpdateBy(String updateBy) + { + this.updateBy = updateBy; + } + + public Date getUpdateTime() + { + return updateTime; + } + + public void setUpdateTime(Date updateTime) + { + this.updateTime = updateTime; + } + + public String getRemark() + { + return remark; + } + + public void setRemark(String remark) + { + this.remark = remark; + } + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public Map getParams() + { + if (params == null) + { + params = new HashMap<>(); + } + return params; + } + + public void setParams(Map params) + { + this.params = params; + } +} diff --git a/alive-common/src/main/java/com/ruoyi/common/core/domain/CxSelect.java b/alive-common/src/main/java/com/ruoyi/common/core/domain/CxSelect.java new file mode 100644 index 0000000..3cac069 --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/core/domain/CxSelect.java @@ -0,0 +1,69 @@ +package com.ruoyi.common.core.domain; + +import java.io.Serializable; +import java.util.List; + +/** + * CxSelect树结构实体类 + * + * @author ruoyi + */ +public class CxSelect implements Serializable +{ + private static final long serialVersionUID = 1L; + + /** + * 数据值字段名称 + */ + private String v; + + /** + * 数据标题字段名称 + */ + private String n; + + /** + * 子集数据字段名称 + */ + private List s; + + public CxSelect() + { + } + + public CxSelect(String v, String n) + { + this.v = v; + this.n = n; + } + + public List getS() + { + return s; + } + + public void setN(String n) + { + this.n = n; + } + + public String getN() + { + return n; + } + + public void setS(List s) + { + this.s = s; + } + + public String getV() + { + return v; + } + + public void setV(String v) + { + this.v = v; + } +} diff --git a/alive-common/src/main/java/com/ruoyi/common/core/domain/TreeEntity.java b/alive-common/src/main/java/com/ruoyi/common/core/domain/TreeEntity.java new file mode 100644 index 0000000..27da2d5 --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/core/domain/TreeEntity.java @@ -0,0 +1,63 @@ +package com.ruoyi.common.core.domain; + +/** + * Tree基类 + * + * @author ruoyi + */ +public class TreeEntity extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 父菜单名称 */ + private String parentName; + + /** 父菜单ID */ + private Long parentId; + + /** 显示顺序 */ + private Integer orderNum; + + /** 祖级列表 */ + private String ancestors; + + public String getParentName() + { + return parentName; + } + + public void setParentName(String parentName) + { + this.parentName = parentName; + } + + public Long getParentId() + { + return parentId; + } + + public void setParentId(Long parentId) + { + this.parentId = parentId; + } + + public Integer getOrderNum() + { + return orderNum; + } + + public void setOrderNum(Integer orderNum) + { + this.orderNum = orderNum; + } + + public String getAncestors() + { + return ancestors; + } + + public void setAncestors(String ancestors) + { + this.ancestors = ancestors; + } +} \ No newline at end of file diff --git a/alive-common/src/main/java/com/ruoyi/common/core/domain/Ztree.java b/alive-common/src/main/java/com/ruoyi/common/core/domain/Ztree.java new file mode 100644 index 0000000..5567a4d --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/core/domain/Ztree.java @@ -0,0 +1,104 @@ +package com.ruoyi.common.core.domain; + +import java.io.Serializable; + +/** + * Ztree树结构实体类 + * + * @author ruoyi + */ +public class Ztree implements Serializable +{ + private static final long serialVersionUID = 1L; + + /** 节点ID */ + private Long id; + + /** 节点父ID */ + private Long pId; + + /** 节点名称 */ + private String name; + + /** 节点标题 */ + private String title; + + /** 是否勾选 */ + private boolean checked = false; + + /** 是否展开 */ + private boolean open = false; + + /** 是否能勾选 */ + private boolean nocheck = false; + + public Long getId() + { + return id; + } + + public void setId(Long id) + { + this.id = id; + } + + public Long getpId() + { + return pId; + } + + public void setpId(Long pId) + { + this.pId = pId; + } + + public String getName() + { + return name; + } + + public void setName(String name) + { + this.name = name; + } + + public String getTitle() + { + return title; + } + + public void setTitle(String title) + { + this.title = title; + } + + public boolean isChecked() + { + return checked; + } + + public void setChecked(boolean checked) + { + this.checked = checked; + } + + public boolean isOpen() + { + return open; + } + + public void setOpen(boolean open) + { + this.open = open; + } + + public boolean isNocheck() + { + return nocheck; + } + + public void setNocheck(boolean nocheck) + { + this.nocheck = nocheck; + } +} diff --git a/alive-common/src/main/java/com/ruoyi/common/core/domain/entity/SysDept.java b/alive-common/src/main/java/com/ruoyi/common/core/domain/entity/SysDept.java new file mode 100644 index 0000000..04ce0dd --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/core/domain/entity/SysDept.java @@ -0,0 +1,202 @@ +package com.ruoyi.common.core.domain.entity; + +import javax.validation.constraints.Email; +import javax.validation.constraints.NotBlank; +import javax.validation.constraints.Size; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.ruoyi.common.core.domain.BaseEntity; + +/** + * 部门表 sys_dept + * + * @author ruoyi + */ +public class SysDept extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 部门ID */ + private Long deptId; + + /** 父部门ID */ + private Long parentId; + + /** 祖级列表 */ + private String ancestors; + + /** 部门名称 */ + private String deptName; + + /** 显示顺序 */ + private String orderNum; + + /** 负责人 */ + private String leader; + + /** 联系电话 */ + private String phone; + + /** 邮箱 */ + private String email; + + /** 部门状态:0正常,1停用 */ + private String status; + + /** 删除标志(0代表存在 2代表删除) */ + private String delFlag; + + /** 父部门名称 */ + private String parentName; + + /** 排除编号 */ + private Long excludeId; + + public Long getDeptId() + { + return deptId; + } + + public void setDeptId(Long deptId) + { + this.deptId = deptId; + } + + public Long getParentId() + { + return parentId; + } + + public void setParentId(Long parentId) + { + this.parentId = parentId; + } + + public String getAncestors() + { + return ancestors; + } + + public void setAncestors(String ancestors) + { + this.ancestors = ancestors; + } + + @NotBlank(message = "部门名称不能为空") + @Size(min = 0, max = 30, message = "部门名称长度不能超过30个字符") + public String getDeptName() + { + return deptName; + } + + public void setDeptName(String deptName) + { + this.deptName = deptName; + } + + @NotBlank(message = "显示顺序不能为空") + public String getOrderNum() + { + return orderNum; + } + + public void setOrderNum(String orderNum) + { + this.orderNum = orderNum; + } + + public String getLeader() + { + return leader; + } + + public void setLeader(String leader) + { + this.leader = leader; + } + + @Size(min = 0, max = 11, message = "联系电话长度不能超过11个字符") + public String getPhone() + { + return phone; + } + + public void setPhone(String phone) + { + this.phone = phone; + } + + @Email(message = "邮箱格式不正确") + @Size(min = 0, max = 50, message = "邮箱长度不能超过50个字符") + public String getEmail() + { + return email; + } + + public void setEmail(String email) + { + this.email = email; + } + + public String getStatus() + { + return status; + } + + public void setStatus(String status) + { + this.status = status; + } + + public String getDelFlag() + { + return delFlag; + } + + public void setDelFlag(String delFlag) + { + this.delFlag = delFlag; + } + + public String getParentName() + { + return parentName; + } + + public void setParentName(String parentName) + { + this.parentName = parentName; + } + + @JsonIgnore + public Long getExcludeId() + { + return excludeId; + } + + public void setExcludeId(Long excludeId) + { + this.excludeId = excludeId; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("deptId", getDeptId()) + .append("parentId", getParentId()) + .append("ancestors", getAncestors()) + .append("deptName", getDeptName()) + .append("orderNum", getOrderNum()) + .append("leader", getLeader()) + .append("phone", getPhone()) + .append("email", getEmail()) + .append("status", getStatus()) + .append("delFlag", getDelFlag()) + .append("createBy", getCreateBy()) + .append("createTime", getCreateTime()) + .append("updateBy", getUpdateBy()) + .append("updateTime", getUpdateTime()) + .toString(); + } +} diff --git a/alive-common/src/main/java/com/ruoyi/common/core/domain/entity/SysDictData.java b/alive-common/src/main/java/com/ruoyi/common/core/domain/entity/SysDictData.java new file mode 100644 index 0000000..c7d8c98 --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/core/domain/entity/SysDictData.java @@ -0,0 +1,176 @@ +package com.ruoyi.common.core.domain.entity; + +import javax.validation.constraints.*; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.annotation.Excel.ColumnType; +import com.ruoyi.common.constant.UserConstants; +import com.ruoyi.common.core.domain.BaseEntity; + +/** + * 字典数据表 sys_dict_data + * + * @author ruoyi + */ +public class SysDictData extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 字典编码 */ + @Excel(name = "字典编码", cellType = ColumnType.NUMERIC) + private Long dictCode; + + /** 字典排序 */ + @Excel(name = "字典排序", cellType = ColumnType.NUMERIC) + private Long dictSort; + + /** 字典标签 */ + @Excel(name = "字典标签") + private String dictLabel; + + /** 字典键值 */ + @Excel(name = "字典键值") + private String dictValue; + + /** 字典类型 */ + @Excel(name = "字典类型") + private String dictType; + + /** 样式属性(其他样式扩展) */ + @Excel(name = "字典样式") + private String cssClass; + + /** 表格字典样式 */ + private String listClass; + + /** 是否默认(Y是 N否) */ + @Excel(name = "是否默认", readConverterExp = "Y=是,N=否") + private String isDefault; + + /** 状态(0正常 1停用) */ + @Excel(name = "状态", readConverterExp = "0=正常,1=停用") + private String status; + + public Long getDictCode() + { + return dictCode; + } + + public void setDictCode(Long dictCode) + { + this.dictCode = dictCode; + } + + public Long getDictSort() + { + return dictSort; + } + + public void setDictSort(Long dictSort) + { + this.dictSort = dictSort; + } + + @NotBlank(message = "字典标签不能为空") + @Size(min = 0, max = 100, message = "字典标签长度不能超过100个字符") + public String getDictLabel() + { + return dictLabel; + } + + public void setDictLabel(String dictLabel) + { + this.dictLabel = dictLabel; + } + + @NotBlank(message = "字典键值不能为空") + @Size(min = 0, max = 100, message = "字典键值长度不能超过100个字符") + public String getDictValue() + { + return dictValue; + } + + public void setDictValue(String dictValue) + { + this.dictValue = dictValue; + } + + @NotBlank(message = "字典类型不能为空") + @Size(min = 0, max = 100, message = "字典类型长度不能超过100个字符") + public String getDictType() + { + return dictType; + } + + public void setDictType(String dictType) + { + this.dictType = dictType; + } + + @Size(min = 0, max = 100, message = "样式属性长度不能超过100个字符") + public String getCssClass() + { + return cssClass; + } + + public void setCssClass(String cssClass) + { + this.cssClass = cssClass; + } + + public String getListClass() + { + return listClass; + } + + public void setListClass(String listClass) + { + this.listClass = listClass; + } + + public boolean getDefault() + { + return UserConstants.YES.equals(this.isDefault) ? true : false; + } + + public String getIsDefault() + { + return isDefault; + } + + public void setIsDefault(String isDefault) + { + this.isDefault = isDefault; + } + + public String getStatus() + { + return status; + } + + public void setStatus(String status) + { + this.status = status; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("dictCode", getDictCode()) + .append("dictSort", getDictSort()) + .append("dictLabel", getDictLabel()) + .append("dictValue", getDictValue()) + .append("dictType", getDictType()) + .append("cssClass", getCssClass()) + .append("listClass", getListClass()) + .append("isDefault", getIsDefault()) + .append("status", getStatus()) + .append("createBy", getCreateBy()) + .append("createTime", getCreateTime()) + .append("updateBy", getUpdateBy()) + .append("updateTime", getUpdateTime()) + .append("remark", getRemark()) + .toString(); + } +} diff --git a/alive-common/src/main/java/com/ruoyi/common/core/domain/entity/SysDictType.java b/alive-common/src/main/java/com/ruoyi/common/core/domain/entity/SysDictType.java new file mode 100644 index 0000000..7494118 --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/core/domain/entity/SysDictType.java @@ -0,0 +1,93 @@ +package com.ruoyi.common.core.domain.entity; + +import javax.validation.constraints.*; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.annotation.Excel.ColumnType; +import com.ruoyi.common.core.domain.BaseEntity; + +/** + * 字典类型表 sys_dict_type + * + * @author ruoyi + */ +public class SysDictType extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 字典主键 */ + @Excel(name = "字典主键", cellType = ColumnType.NUMERIC) + private Long dictId; + + /** 字典名称 */ + @Excel(name = "字典名称") + private String dictName; + + /** 字典类型 */ + @Excel(name = "字典类型") + private String dictType; + + /** 状态(0正常 1停用) */ + @Excel(name = "状态", readConverterExp = "0=正常,1=停用") + private String status; + + public Long getDictId() + { + return dictId; + } + + public void setDictId(Long dictId) + { + this.dictId = dictId; + } + + @NotBlank(message = "字典名称不能为空") + @Size(min = 0, max = 100, message = "字典类型名称长度不能超过100个字符") + public String getDictName() + { + return dictName; + } + + public void setDictName(String dictName) + { + this.dictName = dictName; + } + + @NotBlank(message = "字典类型不能为空") + @Size(min = 0, max = 100, message = "字典类型类型长度不能超过100个字符") + public String getDictType() + { + return dictType; + } + + public void setDictType(String dictType) + { + this.dictType = dictType; + } + + public String getStatus() + { + return status; + } + + public void setStatus(String status) + { + this.status = status; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("dictId", getDictId()) + .append("dictName", getDictName()) + .append("dictType", getDictType()) + .append("status", getStatus()) + .append("createBy", getCreateBy()) + .append("createTime", getCreateTime()) + .append("updateBy", getUpdateBy()) + .append("updateTime", getUpdateTime()) + .append("remark", getRemark()) + .toString(); + } +} diff --git a/alive-common/src/main/java/com/ruoyi/common/core/domain/entity/SysMenu.java b/alive-common/src/main/java/com/ruoyi/common/core/domain/entity/SysMenu.java new file mode 100644 index 0000000..765c4a7 --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/core/domain/entity/SysMenu.java @@ -0,0 +1,214 @@ +package com.ruoyi.common.core.domain.entity; + +import java.util.List; +import java.util.ArrayList; +import javax.validation.constraints.*; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.core.domain.BaseEntity; + +/** + * 菜单权限表 sys_menu + * + * @author ruoyi + */ +public class SysMenu extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 菜单ID */ + private Long menuId; + + /** 菜单名称 */ + private String menuName; + + /** 父菜单名称 */ + private String parentName; + + /** 父菜单ID */ + private Long parentId; + + /** 显示顺序 */ + private String orderNum; + + /** 菜单URL */ + private String url; + + /** 打开方式(menuItem页签 menuBlank新窗口) */ + private String target; + + /** 类型(M目录 C菜单 F按钮) */ + private String menuType; + + /** 菜单状态(0显示 1隐藏) */ + private String visible; + + /** 是否刷新(0刷新 1不刷新) */ + private String isRefresh; + + /** 权限字符串 */ + private String perms; + + /** 菜单图标 */ + private String icon; + + /** 子菜单 */ + private List children = new ArrayList(); + + public Long getMenuId() + { + return menuId; + } + + public void setMenuId(Long menuId) + { + this.menuId = menuId; + } + + @NotBlank(message = "菜单名称不能为空") + @Size(min = 0, max = 50, message = "菜单名称长度不能超过50个字符") + public String getMenuName() + { + return menuName; + } + + public void setMenuName(String menuName) + { + this.menuName = menuName; + } + + public String getParentName() + { + return parentName; + } + + public void setParentName(String parentName) + { + this.parentName = parentName; + } + + public Long getParentId() + { + return parentId; + } + + public void setParentId(Long parentId) + { + this.parentId = parentId; + } + + @NotBlank(message = "显示顺序不能为空") + public String getOrderNum() + { + return orderNum; + } + + public void setOrderNum(String orderNum) + { + this.orderNum = orderNum; + } + + @Size(min = 0, max = 200, message = "请求地址不能超过200个字符") + public String getUrl() + { + return url; + } + + public void setUrl(String url) + { + this.url = url; + } + + public String getTarget() + { + return target; + } + + public void setTarget(String target) + { + this.target = target; + } + + @NotBlank(message = "菜单类型不能为空") + public String getMenuType() + { + return menuType; + } + + public void setMenuType(String menuType) + { + this.menuType = menuType; + } + + public String getVisible() + { + return visible; + } + + public void setVisible(String visible) + { + this.visible = visible; + } + + public String getIsRefresh() + { + return isRefresh; + } + + public void setIsRefresh(String isRefresh) + { + this.isRefresh = isRefresh; + } + + @Size(min = 0, max = 100, message = "权限标识长度不能超过100个字符") + public String getPerms() + { + return perms; + } + + public void setPerms(String perms) + { + this.perms = perms; + } + + public String getIcon() + { + return icon; + } + + public void setIcon(String icon) + { + this.icon = icon; + } + + public List getChildren() + { + return children; + } + + public void setChildren(List children) + { + this.children = children; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("menuId", getMenuId()) + .append("menuName", getMenuName()) + .append("parentId", getParentId()) + .append("orderNum", getOrderNum()) + .append("url", getUrl()) + .append("target", getTarget()) + .append("menuType", getMenuType()) + .append("visible", getVisible()) + .append("perms", getPerms()) + .append("icon", getIcon()) + .append("createBy", getCreateBy()) + .append("createTime", getCreateTime()) + .append("updateBy", getUpdateBy()) + .append("updateTime", getUpdateTime()) + .append("remark", getRemark()) + .toString(); + } +} diff --git a/alive-common/src/main/java/com/ruoyi/common/core/domain/entity/SysRole.java b/alive-common/src/main/java/com/ruoyi/common/core/domain/entity/SysRole.java new file mode 100644 index 0000000..3169f80 --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/core/domain/entity/SysRole.java @@ -0,0 +1,197 @@ +package com.ruoyi.common.core.domain.entity; + +import javax.validation.constraints.*; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.annotation.Excel.ColumnType; +import com.ruoyi.common.core.domain.BaseEntity; + +/** + * 角色表 sys_role + * + * @author ruoyi + */ +public class SysRole extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 角色ID */ + @Excel(name = "角色序号", cellType = ColumnType.NUMERIC) + private Long roleId; + + /** 角色名称 */ + @Excel(name = "角色名称") + private String roleName; + + /** 角色权限 */ + @Excel(name = "角色权限") + private String roleKey; + + /** 角色排序 */ + @Excel(name = "角色排序", cellType = ColumnType.NUMERIC) + private String roleSort; + + /** 数据范围(1:所有数据权限;2:自定义数据权限;3:本部门数据权限;4:本部门及以下数据权限;5:仅本人数据权限) */ + @Excel(name = "数据范围", readConverterExp = "1=所有数据权限,2=自定义数据权限,3=本部门数据权限,4=本部门及以下数据权限,5=仅本人数据权限") + private String dataScope; + + /** 角色状态(0正常 1停用) */ + @Excel(name = "角色状态", readConverterExp = "0=正常,1=停用") + private String status; + + /** 删除标志(0代表存在 2代表删除) */ + private String delFlag; + + /** 用户是否存在此角色标识 默认不存在 */ + private boolean flag = false; + + /** 菜单组 */ + private Long[] menuIds; + + /** 部门组(数据权限) */ + private Long[] deptIds; + + public SysRole() + { + + } + + public SysRole(Long roleId) + { + this.roleId = roleId; + } + + public Long getRoleId() + { + return roleId; + } + + public void setRoleId(Long roleId) + { + this.roleId = roleId; + } + + public boolean isAdmin() + { + return isAdmin(this.roleId); + } + + public static boolean isAdmin(Long roleId) + { + return roleId != null && 1L == roleId; + } + + public String getDataScope() + { + return dataScope; + } + + public void setDataScope(String dataScope) + { + this.dataScope = dataScope; + } + + @NotBlank(message = "角色名称不能为空") + @Size(min = 0, max = 30, message = "角色名称长度不能超过30个字符") + public String getRoleName() + { + return roleName; + } + + public void setRoleName(String roleName) + { + this.roleName = roleName; + } + + @NotBlank(message = "权限字符不能为空") + @Size(min = 0, max = 100, message = "权限字符长度不能超过100个字符") + public String getRoleKey() + { + return roleKey; + } + + public void setRoleKey(String roleKey) + { + this.roleKey = roleKey; + } + + @NotBlank(message = "显示顺序不能为空") + public String getRoleSort() + { + return roleSort; + } + + public void setRoleSort(String roleSort) + { + this.roleSort = roleSort; + } + + public String getStatus() + { + return status; + } + + public String getDelFlag() + { + return delFlag; + } + + public void setDelFlag(String delFlag) + { + this.delFlag = delFlag; + } + + public void setStatus(String status) + { + this.status = status; + } + + public boolean isFlag() + { + return flag; + } + + public void setFlag(boolean flag) + { + this.flag = flag; + } + + public Long[] getMenuIds() + { + return menuIds; + } + + public void setMenuIds(Long[] menuIds) + { + this.menuIds = menuIds; + } + + public Long[] getDeptIds() + { + return deptIds; + } + + public void setDeptIds(Long[] deptIds) + { + this.deptIds = deptIds; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("roleId", getRoleId()) + .append("roleName", getRoleName()) + .append("roleKey", getRoleKey()) + .append("roleSort", getRoleSort()) + .append("dataScope", getDataScope()) + .append("status", getStatus()) + .append("delFlag", getDelFlag()) + .append("createBy", getCreateBy()) + .append("createTime", getCreateTime()) + .append("updateBy", getUpdateBy()) + .append("updateTime", getUpdateTime()) + .append("remark", getRemark()) + .toString(); + } +} diff --git a/alive-common/src/main/java/com/ruoyi/common/core/domain/entity/SysUser.java b/alive-common/src/main/java/com/ruoyi/common/core/domain/entity/SysUser.java new file mode 100644 index 0000000..fa37ac9 --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/core/domain/entity/SysUser.java @@ -0,0 +1,394 @@ +package com.ruoyi.common.core.domain.entity; + +import java.util.Date; +import java.util.List; +import javax.validation.constraints.*; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.annotation.Excel.ColumnType; +import com.ruoyi.common.annotation.Excel.Type; +import com.ruoyi.common.annotation.Excels; +import com.ruoyi.common.core.domain.BaseEntity; +import com.ruoyi.common.xss.Xss; + +/** + * 用户对象 sys_user + * + * @author ruoyi + */ +public class SysUser extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 用户ID */ + @Excel(name = "用户序号", cellType = ColumnType.NUMERIC, prompt = "用户编号") + private Long userId; + + /** 部门ID */ + @Excel(name = "部门编号", type = Type.IMPORT) + private Long deptId; + + /** 部门父ID */ + private Long parentId; + + /** 角色ID */ + private Long roleId; + + /** 登录名称 */ + @Excel(name = "登录名称") + private String loginName; + + /** 用户名称 */ + @Excel(name = "用户名称") + private String userName; + + /** 用户类型 */ + private String userType; + + /** 用户邮箱 */ + @Excel(name = "用户邮箱") + private String email; + + /** 手机号码 */ + @Excel(name = "手机号码") + private String phonenumber; + + /** 用户性别 */ + @Excel(name = "用户性别", readConverterExp = "0=男,1=女,2=未知") + private String sex; + + /** 用户头像 */ + private String avatar; + + /** 密码 */ + private String password; + + /** 盐加密 */ + private String salt; + + /** 帐号状态(0正常 1停用) */ + @Excel(name = "帐号状态", readConverterExp = "0=正常,1=停用") + private String status; + + /** 删除标志(0代表存在 2代表删除) */ + private String delFlag; + + /** 最后登录IP */ + @Excel(name = "最后登录IP", type = Type.EXPORT) + private String loginIp; + + /** 最后登录时间 */ + @Excel(name = "最后登录时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss", type = Type.EXPORT) + private Date loginDate; + + /** 密码最后更新时间 */ + private Date pwdUpdateDate; + + /** 部门对象 */ + @Excels({ + @Excel(name = "部门名称", targetAttr = "deptName", type = Type.EXPORT), + @Excel(name = "部门负责人", targetAttr = "leader", type = Type.EXPORT) + }) + private SysDept dept; + + private List roles; + + /** 角色组 */ + private Long[] roleIds; + + /** 岗位组 */ + private Long[] postIds; + + private String address; + + public SysUser() + { + + } + + public String getAddress() { + return address; + } + + public void setAddress(String address) { + this.address = address; + } + + public SysUser(Long userId) + { + this.userId = userId; + } + + public Long getUserId() + { + return userId; + } + + public void setUserId(Long userId) + { + this.userId = userId; + } + + public boolean isAdmin() + { + return isAdmin(this.userId); + } + + public static boolean isAdmin(Long userId) + { + return userId != null && 1L == userId; + } + + public Long getDeptId() + { + return deptId; + } + + public void setDeptId(Long deptId) + { + this.deptId = deptId; + } + + public Long getParentId() + { + return parentId; + } + + public void setParentId(Long parentId) + { + this.parentId = parentId; + } + + public Long getRoleId() + { + return roleId; + } + + public void setRoleId(Long roleId) + { + this.roleId = roleId; + } + + @Xss(message = "登录账号不能包含脚本字符") + @NotBlank(message = "登录账号不能为空") + @Size(min = 0, max = 30, message = "登录账号长度不能超过30个字符") + public String getLoginName() + { + return loginName; + } + + public void setLoginName(String loginName) + { + this.loginName = loginName; + } + + @Xss(message = "用户昵称不能包含脚本字符") + @Size(min = 0, max = 30, message = "用户昵称长度不能超过30个字符") + public String getUserName() + { + return userName; + } + + public void setUserName(String userName) + { + this.userName = userName; + } + + public String getUserType() + { + return userType; + } + + public void setUserType(String userType) + { + this.userType = userType; + } + + @Email(message = "邮箱格式不正确") + @Size(min = 0, max = 50, message = "邮箱长度不能超过50个字符") + public String getEmail() + { + return email; + } + + public void setEmail(String email) + { + this.email = email; + } + + @Size(min = 0, max = 11, message = "手机号码长度不能超过11个字符") + public String getPhonenumber() + { + return phonenumber; + } + + public void setPhonenumber(String phonenumber) + { + this.phonenumber = phonenumber; + } + + public String getSex() + { + return sex; + } + + public void setSex(String sex) + { + this.sex = sex; + } + + public String getAvatar() + { + return avatar; + } + + public void setAvatar(String avatar) + { + this.avatar = avatar; + } + + @JsonIgnore + public String getPassword() + { + return password; + } + + public void setPassword(String password) + { + this.password = password; + } + + public String getSalt() + { + return salt; + } + + public void setSalt(String salt) + { + this.salt = salt; + } + + public String getStatus() + { + return status; + } + + public void setStatus(String status) + { + this.status = status; + } + + public String getDelFlag() + { + return delFlag; + } + + public void setDelFlag(String delFlag) + { + this.delFlag = delFlag; + } + + public String getLoginIp() + { + return loginIp; + } + + public void setLoginIp(String loginIp) + { + this.loginIp = loginIp; + } + + public Date getLoginDate() + { + return loginDate; + } + + public void setLoginDate(Date loginDate) + { + this.loginDate = loginDate; + } + + public Date getPwdUpdateDate() + { + return pwdUpdateDate; + } + + public void setPwdUpdateDate(Date pwdUpdateDate) + { + this.pwdUpdateDate = pwdUpdateDate; + } + + public SysDept getDept() + { + if (dept == null) + { + dept = new SysDept(); + } + return dept; + } + + public void setDept(SysDept dept) + { + this.dept = dept; + } + + public List getRoles() + { + return roles; + } + + public void setRoles(List roles) + { + this.roles = roles; + } + + public Long[] getRoleIds() + { + return roleIds; + } + + public void setRoleIds(Long[] roleIds) + { + this.roleIds = roleIds; + } + + public Long[] getPostIds() + { + return postIds; + } + + public void setPostIds(Long[] postIds) + { + this.postIds = postIds; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("userId", getUserId()) + .append("deptId", getDeptId()) + .append("loginName", getLoginName()) + .append("userName", getUserName()) + .append("userType", getUserType()) + .append("email", getEmail()) + .append("phonenumber", getPhonenumber()) + .append("sex", getSex()) + .append("avatar", getAvatar()) + .append("password", getPassword()) + .append("salt", getSalt()) + .append("status", getStatus()) + .append("delFlag", getDelFlag()) + .append("loginIp", getLoginIp()) + .append("loginDate", getLoginDate()) + .append("createBy", getCreateBy()) + .append("createTime", getCreateTime()) + .append("updateBy", getUpdateBy()) + .append("updateTime", getUpdateTime()) + .append("remark", getRemark()) + .append("dept", getDept()) + .append("roles", getRoles()) + .toString(); + } +} diff --git a/alive-common/src/main/java/com/ruoyi/common/core/page/PageDomain.java b/alive-common/src/main/java/com/ruoyi/common/core/page/PageDomain.java new file mode 100644 index 0000000..61f6d85 --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/core/page/PageDomain.java @@ -0,0 +1,89 @@ +package com.ruoyi.common.core.page; + +import com.ruoyi.common.utils.StringUtils; + +/** + * 分页数据 + * + * @author ruoyi + */ +public class PageDomain +{ + /** 当前记录起始索引 */ + private Integer pageNum; + + /** 每页显示记录数 */ + private Integer pageSize; + + /** 排序列 */ + private String orderByColumn; + + /** 排序的方向desc或者asc */ + private String isAsc = "asc"; + + /** 分页参数合理化 */ + private Boolean reasonable = true; + + public String getOrderBy() + { + if (StringUtils.isEmpty(orderByColumn)) + { + return ""; + } + return StringUtils.toUnderScoreCase(orderByColumn) + " " + isAsc; + } + + public Integer getPageNum() + { + return pageNum; + } + + public void setPageNum(Integer pageNum) + { + this.pageNum = pageNum; + } + + public Integer getPageSize() + { + return pageSize; + } + + public void setPageSize(Integer pageSize) + { + this.pageSize = pageSize; + } + + public String getOrderByColumn() + { + return orderByColumn; + } + + public void setOrderByColumn(String orderByColumn) + { + this.orderByColumn = orderByColumn; + } + + public String getIsAsc() + { + return isAsc; + } + + public void setIsAsc(String isAsc) + { + this.isAsc = isAsc; + } + + public Boolean getReasonable() + { + if (StringUtils.isNull(reasonable)) + { + return Boolean.TRUE; + } + return reasonable; + } + + public void setReasonable(Boolean reasonable) + { + this.reasonable = reasonable; + } +} diff --git a/alive-common/src/main/java/com/ruoyi/common/core/page/TableDataInfo.java b/alive-common/src/main/java/com/ruoyi/common/core/page/TableDataInfo.java new file mode 100644 index 0000000..373e592 --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/core/page/TableDataInfo.java @@ -0,0 +1,85 @@ +package com.ruoyi.common.core.page; + +import java.io.Serializable; +import java.util.List; + +/** + * 表格分页数据对象 + * + * @author ruoyi + */ +public class TableDataInfo implements Serializable +{ + private static final long serialVersionUID = 1L; + + /** 总记录数 */ + private long total; + + /** 列表数据 */ + private List rows; + + /** 消息状态码 */ + private int code; + + /** 消息内容 */ + private String msg; + + /** + * 表格数据对象 + */ + public TableDataInfo() + { + } + + /** + * 分页 + * + * @param list 列表数据 + * @param total 总记录数 + */ + public TableDataInfo(List list, int total) + { + this.rows = list; + this.total = total; + } + + public long getTotal() + { + return total; + } + + public void setTotal(long total) + { + this.total = total; + } + + public List getRows() + { + return rows; + } + + public void setRows(List rows) + { + this.rows = rows; + } + + public int getCode() + { + return code; + } + + public void setCode(int code) + { + this.code = code; + } + + public String getMsg() + { + return msg; + } + + public void setMsg(String msg) + { + this.msg = msg; + } +} \ No newline at end of file diff --git a/alive-common/src/main/java/com/ruoyi/common/core/page/TableSupport.java b/alive-common/src/main/java/com/ruoyi/common/core/page/TableSupport.java new file mode 100644 index 0000000..5f30168 --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/core/page/TableSupport.java @@ -0,0 +1,55 @@ +package com.ruoyi.common.core.page; + +import com.ruoyi.common.utils.ServletUtils; + +/** + * 表格数据处理 + * + * @author ruoyi + */ +public class TableSupport +{ + /** + * 当前记录起始索引 + */ + public static final String PAGE_NUM = "pageNum"; + + /** + * 每页显示记录数 + */ + public static final String PAGE_SIZE = "pageSize"; + + /** + * 排序列 + */ + public static final String ORDER_BY_COLUMN = "orderByColumn"; + + /** + * 排序的方向 "desc" 或者 "asc". + */ + public static final String IS_ASC = "isAsc"; + + /** + * 分页参数合理化 + */ + public static final String REASONABLE = "reasonable"; + + /** + * 封装分页对象 + */ + public static PageDomain getPageDomain() + { + PageDomain pageDomain = new PageDomain(); + pageDomain.setPageNum(ServletUtils.getParameterToInt(PAGE_NUM)); + pageDomain.setPageSize(ServletUtils.getParameterToInt(PAGE_SIZE)); + pageDomain.setOrderByColumn(ServletUtils.getParameter(ORDER_BY_COLUMN)); + pageDomain.setIsAsc(ServletUtils.getParameter(IS_ASC)); + pageDomain.setReasonable(ServletUtils.getParameterToBool(REASONABLE)); + return pageDomain; + } + + public static PageDomain buildPageRequest() + { + return getPageDomain(); + } +} diff --git a/alive-common/src/main/java/com/ruoyi/common/core/text/CharsetKit.java b/alive-common/src/main/java/com/ruoyi/common/core/text/CharsetKit.java new file mode 100644 index 0000000..84124aa --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/core/text/CharsetKit.java @@ -0,0 +1,86 @@ +package com.ruoyi.common.core.text; + +import java.nio.charset.Charset; +import java.nio.charset.StandardCharsets; +import com.ruoyi.common.utils.StringUtils; + +/** + * 字符集工具类 + * + * @author ruoyi + */ +public class CharsetKit +{ + /** ISO-8859-1 */ + public static final String ISO_8859_1 = "ISO-8859-1"; + /** UTF-8 */ + public static final String UTF_8 = "UTF-8"; + /** GBK */ + public static final String GBK = "GBK"; + + /** ISO-8859-1 */ + public static final Charset CHARSET_ISO_8859_1 = Charset.forName(ISO_8859_1); + /** UTF-8 */ + public static final Charset CHARSET_UTF_8 = Charset.forName(UTF_8); + /** GBK */ + public static final Charset CHARSET_GBK = Charset.forName(GBK); + + /** + * 转换为Charset对象 + * + * @param charset 字符集,为空则返回默认字符集 + * @return Charset + */ + public static Charset charset(String charset) + { + return StringUtils.isEmpty(charset) ? Charset.defaultCharset() : Charset.forName(charset); + } + + /** + * 转换字符串的字符集编码 + * + * @param source 字符串 + * @param srcCharset 源字符集,默认ISO-8859-1 + * @param destCharset 目标字符集,默认UTF-8 + * @return 转换后的字符集 + */ + public static String convert(String source, String srcCharset, String destCharset) + { + return convert(source, Charset.forName(srcCharset), Charset.forName(destCharset)); + } + + /** + * 转换字符串的字符集编码 + * + * @param source 字符串 + * @param srcCharset 源字符集,默认ISO-8859-1 + * @param destCharset 目标字符集,默认UTF-8 + * @return 转换后的字符集 + */ + public static String convert(String source, Charset srcCharset, Charset destCharset) + { + if (null == srcCharset) + { + srcCharset = StandardCharsets.ISO_8859_1; + } + + if (null == destCharset) + { + destCharset = StandardCharsets.UTF_8; + } + + if (StringUtils.isEmpty(source) || srcCharset.equals(destCharset)) + { + return source; + } + return new String(source.getBytes(srcCharset), destCharset); + } + + /** + * @return 系统字符集编码 + */ + public static String systemCharset() + { + return Charset.defaultCharset().name(); + } +} diff --git a/alive-common/src/main/java/com/ruoyi/common/core/text/Convert.java b/alive-common/src/main/java/com/ruoyi/common/core/text/Convert.java new file mode 100644 index 0000000..91589a1 --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/core/text/Convert.java @@ -0,0 +1,1005 @@ +package com.ruoyi.common.core.text; + +import java.math.BigDecimal; +import java.math.BigInteger; +import java.nio.ByteBuffer; +import java.nio.charset.Charset; +import java.text.NumberFormat; +import java.util.Set; +import com.ruoyi.common.utils.StringUtils; +import org.apache.commons.lang3.ArrayUtils; + +/** + * 类型转换器 + * + * @author ruoyi + */ +public class Convert +{ + /** + * 转换为字符串
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * 如果给定的值为null,或者转换失败,返回默认值
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * 转换失败不会报错 + * + * @param value 被转换的值 + * @param defaultValue 转换错误时的默认值 + * @return 结果 + */ + public static String toStr(Object value, String defaultValue) + { + if (null == value) + { + return defaultValue; + } + if (value instanceof String) + { + return (String) value; + } + return value.toString(); + } + + /** + * 转换为字符串
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * 如果给定的值为null,或者转换失败,返回默认值null
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * 转换失败不会报错 + * + * @param value 被转换的值 + * @return 结果 + */ + public static String toStr(Object value) + { + return toStr(value, null); + } + + /** + * 转换为字符
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * 如果给定的值为null,或者转换失败,返回默认值
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * 转换失败不会报错 + * + * @param value 被转换的值 + * @param defaultValue 转换错误时的默认值 + * @return 结果 + */ + public static Character toChar(Object value, Character defaultValue) + { + if (null == value) + { + return defaultValue; + } + if (value instanceof Character) + { + return (Character) value; + } + + final String valueStr = toStr(value, null); + return StringUtils.isEmpty(valueStr) ? defaultValue : valueStr.charAt(0); + } + + /** + * 转换为字符
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * 如果给定的值为null,或者转换失败,返回默认值null
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * 转换失败不会报错 + * + * @param value 被转换的值 + * @return 结果 + */ + public static Character toChar(Object value) + { + return toChar(value, null); + } + + /** + * 转换为byte
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * 如果给定的值为null,或者转换失败,返回默认值
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * 转换失败不会报错 + * + * @param value 被转换的值 + * @param defaultValue 转换错误时的默认值 + * @return 结果 + */ + public static Byte toByte(Object value, Byte defaultValue) + { + if (value == null) + { + return defaultValue; + } + if (value instanceof Byte) + { + return (Byte) value; + } + if (value instanceof Number) + { + return ((Number) value).byteValue(); + } + final String valueStr = toStr(value, null); + if (StringUtils.isEmpty(valueStr)) + { + return defaultValue; + } + try + { + return Byte.parseByte(valueStr); + } + catch (Exception e) + { + return defaultValue; + } + } + + /** + * 转换为byte
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * 如果给定的值为null,或者转换失败,返回默认值null
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * 转换失败不会报错 + * + * @param value 被转换的值 + * @return 结果 + */ + public static Byte toByte(Object value) + { + return toByte(value, null); + } + + /** + * 转换为Short
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * 如果给定的值为null,或者转换失败,返回默认值
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * 转换失败不会报错 + * + * @param value 被转换的值 + * @param defaultValue 转换错误时的默认值 + * @return 结果 + */ + public static Short toShort(Object value, Short defaultValue) + { + if (value == null) + { + return defaultValue; + } + if (value instanceof Short) + { + return (Short) value; + } + if (value instanceof Number) + { + return ((Number) value).shortValue(); + } + final String valueStr = toStr(value, null); + if (StringUtils.isEmpty(valueStr)) + { + return defaultValue; + } + try + { + return Short.parseShort(valueStr.trim()); + } + catch (Exception e) + { + return defaultValue; + } + } + + /** + * 转换为Short
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * 如果给定的值为null,或者转换失败,返回默认值null
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * 转换失败不会报错 + * + * @param value 被转换的值 + * @return 结果 + */ + public static Short toShort(Object value) + { + return toShort(value, null); + } + + /** + * 转换为Number
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * 如果给定的值为空,或者转换失败,返回默认值
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * 转换失败不会报错 + * + * @param value 被转换的值 + * @param defaultValue 转换错误时的默认值 + * @return 结果 + */ + public static Number toNumber(Object value, Number defaultValue) + { + if (value == null) + { + return defaultValue; + } + if (value instanceof Number) + { + return (Number) value; + } + final String valueStr = toStr(value, null); + if (StringUtils.isEmpty(valueStr)) + { + return defaultValue; + } + try + { + return NumberFormat.getInstance().parse(valueStr); + } + catch (Exception e) + { + return defaultValue; + } + } + + /** + * 转换为Number
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * 如果给定的值为空,或者转换失败,返回默认值null
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * 转换失败不会报错 + * + * @param value 被转换的值 + * @return 结果 + */ + public static Number toNumber(Object value) + { + return toNumber(value, null); + } + + /** + * 转换为int
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * 如果给定的值为空,或者转换失败,返回默认值
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * 转换失败不会报错 + * + * @param value 被转换的值 + * @param defaultValue 转换错误时的默认值 + * @return 结果 + */ + public static Integer toInt(Object value, Integer defaultValue) + { + if (value == null) + { + return defaultValue; + } + if (value instanceof Integer) + { + return (Integer) value; + } + if (value instanceof Number) + { + return ((Number) value).intValue(); + } + final String valueStr = toStr(value, null); + if (StringUtils.isEmpty(valueStr)) + { + return defaultValue; + } + try + { + return Integer.parseInt(valueStr.trim()); + } + catch (Exception e) + { + return defaultValue; + } + } + + /** + * 转换为int
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * 如果给定的值为null,或者转换失败,返回默认值null
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * 转换失败不会报错 + * + * @param value 被转换的值 + * @return 结果 + */ + public static Integer toInt(Object value) + { + return toInt(value, null); + } + + /** + * 转换为Integer数组
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * + * @param str 被转换的值 + * @return 结果 + */ + public static Integer[] toIntArray(String str) + { + return toIntArray(",", str); + } + + /** + * 转换为Long数组
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * + * @param str 被转换的值 + * @return 结果 + */ + public static Long[] toLongArray(String str) + { + return toLongArray(",", str); + } + + /** + * 转换为Integer数组
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * + * @param split 分隔符 + * @param split 被转换的值 + * @return 结果 + */ + public static Integer[] toIntArray(String split, String str) + { + if (StringUtils.isEmpty(str)) + { + return new Integer[] {}; + } + String[] arr = str.split(split); + final Integer[] ints = new Integer[arr.length]; + for (int i = 0; i < arr.length; i++) + { + final Integer v = toInt(arr[i], 0); + ints[i] = v; + } + return ints; + } + + /** + * 转换为Long数组
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * + * @param split 分隔符 + * @param str 被转换的值 + * @return 结果 + */ + public static Long[] toLongArray(String split, String str) + { + if (StringUtils.isEmpty(str)) + { + return new Long[] {}; + } + String[] arr = str.split(split); + final Long[] longs = new Long[arr.length]; + for (int i = 0; i < arr.length; i++) + { + final Long v = toLong(arr[i], null); + longs[i] = v; + } + return longs; + } + + /** + * 转换为String数组
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * + * @param str 被转换的值 + * @return 结果 + */ + public static String[] toStrArray(String str) + { + return toStrArray(",", str); + } + + /** + * 转换为String数组
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * + * @param split 分隔符 + * @param split 被转换的值 + * @return 结果 + */ + public static String[] toStrArray(String split, String str) + { + return str.split(split); + } + + /** + * 转换为long
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * 如果给定的值为空,或者转换失败,返回默认值
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * 转换失败不会报错 + * + * @param value 被转换的值 + * @param defaultValue 转换错误时的默认值 + * @return 结果 + */ + public static Long toLong(Object value, Long defaultValue) + { + if (value == null) + { + return defaultValue; + } + if (value instanceof Long) + { + return (Long) value; + } + if (value instanceof Number) + { + return ((Number) value).longValue(); + } + final String valueStr = toStr(value, null); + if (StringUtils.isEmpty(valueStr)) + { + return defaultValue; + } + try + { + // 支持科学计数法 + return new BigDecimal(valueStr.trim()).longValue(); + } + catch (Exception e) + { + return defaultValue; + } + } + + /** + * 转换为long
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * 如果给定的值为null,或者转换失败,返回默认值null
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * 转换失败不会报错 + * + * @param value 被转换的值 + * @return 结果 + */ + public static Long toLong(Object value) + { + return toLong(value, null); + } + + /** + * 转换为double
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * 如果给定的值为空,或者转换失败,返回默认值
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * 转换失败不会报错 + * + * @param value 被转换的值 + * @param defaultValue 转换错误时的默认值 + * @return 结果 + */ + public static Double toDouble(Object value, Double defaultValue) + { + if (value == null) + { + return defaultValue; + } + if (value instanceof Double) + { + return (Double) value; + } + if (value instanceof Number) + { + return ((Number) value).doubleValue(); + } + final String valueStr = toStr(value, null); + if (StringUtils.isEmpty(valueStr)) + { + return defaultValue; + } + try + { + // 支持科学计数法 + return new BigDecimal(valueStr.trim()).doubleValue(); + } + catch (Exception e) + { + return defaultValue; + } + } + + /** + * 转换为double
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * 如果给定的值为空,或者转换失败,返回默认值null
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * 转换失败不会报错 + * + * @param value 被转换的值 + * @return 结果 + */ + public static Double toDouble(Object value) + { + return toDouble(value, null); + } + + /** + * 转换为Float
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * 如果给定的值为空,或者转换失败,返回默认值
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * 转换失败不会报错 + * + * @param value 被转换的值 + * @param defaultValue 转换错误时的默认值 + * @return 结果 + */ + public static Float toFloat(Object value, Float defaultValue) + { + if (value == null) + { + return defaultValue; + } + if (value instanceof Float) + { + return (Float) value; + } + if (value instanceof Number) + { + return ((Number) value).floatValue(); + } + final String valueStr = toStr(value, null); + if (StringUtils.isEmpty(valueStr)) + { + return defaultValue; + } + try + { + return Float.parseFloat(valueStr.trim()); + } + catch (Exception e) + { + return defaultValue; + } + } + + /** + * 转换为Float
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * 如果给定的值为空,或者转换失败,返回默认值null
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * 转换失败不会报错 + * + * @param value 被转换的值 + * @return 结果 + */ + public static Float toFloat(Object value) + { + return toFloat(value, null); + } + + /** + * 转换为boolean
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * String支持的值为:true、false、yes、ok、no,1,0 如果给定的值为空,或者转换失败,返回默认值
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * 转换失败不会报错 + * + * @param value 被转换的值 + * @param defaultValue 转换错误时的默认值 + * @return 结果 + */ + public static Boolean toBool(Object value, Boolean defaultValue) + { + if (value == null) + { + return defaultValue; + } + if (value instanceof Boolean) + { + return (Boolean) value; + } + String valueStr = toStr(value, null); + if (StringUtils.isEmpty(valueStr)) + { + return defaultValue; + } + valueStr = valueStr.trim().toLowerCase(); + switch (valueStr) + { + case "true": + return true; + case "false": + return false; + case "yes": + return true; + case "ok": + return true; + case "no": + return false; + case "1": + return true; + case "0": + return false; + default: + return defaultValue; + } + } + + /** + * 转换为boolean
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * 如果给定的值为空,或者转换失败,返回默认值null
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * 转换失败不会报错 + * + * @param value 被转换的值 + * @return 结果 + */ + public static Boolean toBool(Object value) + { + return toBool(value, null); + } + + /** + * 转换为Enum对象
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * 如果给定的值为空,或者转换失败,返回默认值
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * + * @param clazz Enum的Class + * @param value 值 + * @param defaultValue 默认值 + * @return Enum + */ + public static > E toEnum(Class clazz, Object value, E defaultValue) + { + if (value == null) + { + return defaultValue; + } + if (clazz.isAssignableFrom(value.getClass())) + { + @SuppressWarnings("unchecked") + E myE = (E) value; + return myE; + } + final String valueStr = toStr(value, null); + if (StringUtils.isEmpty(valueStr)) + { + return defaultValue; + } + try + { + return Enum.valueOf(clazz, valueStr); + } + catch (Exception e) + { + return defaultValue; + } + } + + /** + * 转换为Enum对象
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * 如果给定的值为空,或者转换失败,返回默认值null
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * + * @param clazz Enum的Class + * @param value 值 + * @return Enum + */ + public static > E toEnum(Class clazz, Object value) + { + return toEnum(clazz, value, null); + } + + /** + * 转换为BigInteger
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * 如果给定的值为空,或者转换失败,返回默认值
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * 转换失败不会报错 + * + * @param value 被转换的值 + * @param defaultValue 转换错误时的默认值 + * @return 结果 + */ + public static BigInteger toBigInteger(Object value, BigInteger defaultValue) + { + if (value == null) + { + return defaultValue; + } + if (value instanceof BigInteger) + { + return (BigInteger) value; + } + if (value instanceof Long) + { + return BigInteger.valueOf((Long) value); + } + final String valueStr = toStr(value, null); + if (StringUtils.isEmpty(valueStr)) + { + return defaultValue; + } + try + { + return new BigInteger(valueStr); + } + catch (Exception e) + { + return defaultValue; + } + } + + /** + * 转换为BigInteger
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * 如果给定的值为空,或者转换失败,返回默认值null
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * 转换失败不会报错 + * + * @param value 被转换的值 + * @return 结果 + */ + public static BigInteger toBigInteger(Object value) + { + return toBigInteger(value, null); + } + + /** + * 转换为BigDecimal
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * 如果给定的值为空,或者转换失败,返回默认值
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * 转换失败不会报错 + * + * @param value 被转换的值 + * @param defaultValue 转换错误时的默认值 + * @return 结果 + */ + public static BigDecimal toBigDecimal(Object value, BigDecimal defaultValue) + { + if (value == null) + { + return defaultValue; + } + if (value instanceof BigDecimal) + { + return (BigDecimal) value; + } + if (value instanceof Long) + { + return new BigDecimal((Long) value); + } + if (value instanceof Double) + { + return new BigDecimal((Double) value); + } + if (value instanceof Integer) + { + return new BigDecimal((Integer) value); + } + final String valueStr = toStr(value, null); + if (StringUtils.isEmpty(valueStr)) + { + return defaultValue; + } + try + { + return new BigDecimal(valueStr); + } + catch (Exception e) + { + return defaultValue; + } + } + + /** + * 转换为BigDecimal
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * 如果给定的值为空,或者转换失败,返回默认值
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * 转换失败不会报错 + * + * @param value 被转换的值 + * @return 结果 + */ + public static BigDecimal toBigDecimal(Object value) + { + return toBigDecimal(value, null); + } + + /** + * 将对象转为字符串
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * 1、Byte数组和ByteBuffer会被转换为对应字符串的数组 2、对象数组会调用Arrays.toString方法 + * + * @param obj 对象 + * @return 字符串 + */ + public static String utf8Str(Object obj) + { + return str(obj, CharsetKit.CHARSET_UTF_8); + } + + /** + * 将对象转为字符串
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * 1、Byte数组和ByteBuffer会被转换为对应字符串的数组 2、对象数组会调用Arrays.toString方法 + * + * @param obj 对象 + * @param charsetName 字符集 + * @return 字符串 + */ + public static String str(Object obj, String charsetName) + { + return str(obj, Charset.forName(charsetName)); + } + + /** + * 将对象转为字符串
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * 1、Byte数组和ByteBuffer会被转换为对应字符串的数组 2、对象数组会调用Arrays.toString方法 + * + * @param obj 对象 + * @param charset 字符集 + * @return 字符串 + */ + public static String str(Object obj, Charset charset) + { + if (null == obj) + { + return null; + } + + if (obj instanceof String) + { + return (String) obj; + } + else if (obj instanceof byte[]) + { + return str((byte[]) obj, charset); + } + else if (obj instanceof Byte[]) + { + byte[] bytes = ArrayUtils.toPrimitive((Byte[]) obj); + return str(bytes, charset); + } + else if (obj instanceof ByteBuffer) + { + return str((ByteBuffer) obj, charset); + } + return obj.toString(); + } + + /** + * 将byte数组转为字符串 + * + * @param bytes byte数组 + * @param charset 字符集 + * @return 字符串 + */ + public static String str(byte[] bytes, String charset) + { + return str(bytes, StringUtils.isEmpty(charset) ? Charset.defaultCharset() : Charset.forName(charset)); + } + + /** + * 解码字节码 + * + * @param data 字符串 + * @param charset 字符集,如果此字段为空,则解码的结果取决于平台 + * @return 解码后的字符串 + */ + public static String str(byte[] data, Charset charset) + { + if (data == null) + { + return null; + } + + if (null == charset) + { + return new String(data); + } + return new String(data, charset); + } + + /** + * 将编码的byteBuffer数据转换为字符串 + * + * @param data 数据 + * @param charset 字符集,如果为空使用当前系统字符集 + * @return 字符串 + */ + public static String str(ByteBuffer data, String charset) + { + if (data == null) + { + return null; + } + + return str(data, Charset.forName(charset)); + } + + /** + * 将编码的byteBuffer数据转换为字符串 + * + * @param data 数据 + * @param charset 字符集,如果为空使用当前系统字符集 + * @return 字符串 + */ + public static String str(ByteBuffer data, Charset charset) + { + if (null == charset) + { + charset = Charset.defaultCharset(); + } + return charset.decode(data).toString(); + } + + // ----------------------------------------------------------------------- 全角半角转换 + /** + * 半角转全角 + * + * @param input String. + * @return 全角字符串. + */ + public static String toSBC(String input) + { + return toSBC(input, null); + } + + /** + * 半角转全角 + * + * @param input String + * @param notConvertSet 不替换的字符集合 + * @return 全角字符串. + */ + public static String toSBC(String input, Set notConvertSet) + { + char c[] = input.toCharArray(); + for (int i = 0; i < c.length; i++) + { + if (null != notConvertSet && notConvertSet.contains(c[i])) + { + // 跳过不替换的字符 + continue; + } + + if (c[i] == ' ') + { + c[i] = '\u3000'; + } + else if (c[i] < '\177') + { + c[i] = (char) (c[i] + 65248); + + } + } + return new String(c); + } + + /** + * 全角转半角 + * + * @param input String. + * @return 半角字符串 + */ + public static String toDBC(String input) + { + return toDBC(input, null); + } + + /** + * 替换全角为半角 + * + * @param text 文本 + * @param notConvertSet 不替换的字符集合 + * @return 替换后的字符 + */ + public static String toDBC(String text, Set notConvertSet) + { + char c[] = text.toCharArray(); + for (int i = 0; i < c.length; i++) + { + if (null != notConvertSet && notConvertSet.contains(c[i])) + { + // 跳过不替换的字符 + continue; + } + + if (c[i] == '\u3000') + { + c[i] = ' '; + } + else if (c[i] > '\uFF00' && c[i] < '\uFF5F') + { + c[i] = (char) (c[i] - 65248); + } + } + String returnString = new String(c); + + return returnString; + } + + /** + * 数字金额大写转换 先写个完整的然后将如零拾替换成零 + * + * @param n 数字 + * @return 中文大写数字 + */ + public static String digitUppercase(double n) + { + String[] fraction = { "角", "分" }; + String[] digit = { "零", "壹", "贰", "叁", "肆", "伍", "陆", "柒", "捌", "玖" }; + String[][] unit = { { "元", "万", "亿" }, { "", "拾", "佰", "仟" } }; + + String head = n < 0 ? "负" : ""; + n = Math.abs(n); + + String s = ""; + for (int i = 0; i < fraction.length; i++) + { + s += (digit[(int) (Math.floor(n * 10 * Math.pow(10, i)) % 10)] + fraction[i]).replaceAll("(零.)+", ""); + } + if (s.length() < 1) + { + s = "整"; + } + int integerPart = (int) Math.floor(n); + + for (int i = 0; i < unit[0].length && integerPart > 0; i++) + { + String p = ""; + for (int j = 0; j < unit[1].length && n > 0; j++) + { + p = digit[integerPart % 10] + unit[1][j] + p; + integerPart = integerPart / 10; + } + s = p.replaceAll("(零.)*零$", "").replaceAll("^$", "零") + unit[0][i] + s; + } + return head + s.replaceAll("(零.)*零元", "元").replaceFirst("(零.)+", "").replaceAll("(零.)+", "零").replaceAll("^整$", "零元整"); + } +} diff --git a/alive-common/src/main/java/com/ruoyi/common/core/text/StrFormatter.java b/alive-common/src/main/java/com/ruoyi/common/core/text/StrFormatter.java new file mode 100644 index 0000000..c78ac77 --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/core/text/StrFormatter.java @@ -0,0 +1,92 @@ +package com.ruoyi.common.core.text; + +import com.ruoyi.common.utils.StringUtils; + +/** + * 字符串格式化 + * + * @author ruoyi + */ +public class StrFormatter +{ + public static final String EMPTY_JSON = "{}"; + public static final char C_BACKSLASH = '\\'; + public static final char C_DELIM_START = '{'; + public static final char C_DELIM_END = '}'; + + /** + * 格式化字符串
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * 此方法只是简单将占位符 {} 按照顺序替换为参数
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * 如果想输出 {} 使用 \\转义 { 即可,如果想输出 {} 之前的 \ 使用双转义符 \\\\ 即可
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * 例:
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * 通常使用:format("this is {} for {}", "a", "b") -> this is a for b
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * 转义{}: format("this is \\{} for {}", "a", "b") -> this is \{} for a
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * 转义\: format("this is \\\\{} for {}", "a", "b") -> this is \a for b
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * + * @param strPattern 字符串模板 + * @param argArray 参数列表 + * @return 结果 + */ + public static String format(final String strPattern, final Object... argArray) + { + if (StringUtils.isEmpty(strPattern) || StringUtils.isEmpty(argArray)) + { + return strPattern; + } + final int strPatternLength = strPattern.length(); + + // 初始化定义好的长度以获得更好的性能 + StringBuilder sbuf = new StringBuilder(strPatternLength + 50); + + int handledPosition = 0; + int delimIndex;// 占位符所在位置 + for (int argIndex = 0; argIndex < argArray.length; argIndex++) + { + delimIndex = strPattern.indexOf(EMPTY_JSON, handledPosition); + if (delimIndex == -1) + { + if (handledPosition == 0) + { + return strPattern; + } + else + { // 字符串模板剩余部分不再包含占位符,加入剩余部分后返回结果 + sbuf.append(strPattern, handledPosition, strPatternLength); + return sbuf.toString(); + } + } + else + { + if (delimIndex > 0 && strPattern.charAt(delimIndex - 1) == C_BACKSLASH) + { + if (delimIndex > 1 && strPattern.charAt(delimIndex - 2) == C_BACKSLASH) + { + // 转义符之前还有一个转义符,占位符依旧有效 + sbuf.append(strPattern, handledPosition, delimIndex - 1); + sbuf.append(Convert.utf8Str(argArray[argIndex])); + handledPosition = delimIndex + 2; + } + else + { + // 占位符被转义 + argIndex--; + sbuf.append(strPattern, handledPosition, delimIndex - 1); + sbuf.append(C_DELIM_START); + handledPosition = delimIndex + 1; + } + } + else + { + // 正常占位符 + sbuf.append(strPattern, handledPosition, delimIndex); + sbuf.append(Convert.utf8Str(argArray[argIndex])); + handledPosition = delimIndex + 2; + } + } + } + // 加入最后一个占位符后所有的字符 + sbuf.append(strPattern, handledPosition, strPattern.length()); + + return sbuf.toString(); + } +} diff --git a/alive-common/src/main/java/com/ruoyi/common/enums/BusinessStatus.java b/alive-common/src/main/java/com/ruoyi/common/enums/BusinessStatus.java new file mode 100644 index 0000000..c6640bb --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/enums/BusinessStatus.java @@ -0,0 +1,19 @@ +package com.ruoyi.common.enums; + +/** + * 操作状态 + * + * @author ruoyi + */ +public enum BusinessStatus +{ + /** + * 成功 + */ + SUCCESS, + + /** + * 失败 + */ + FAIL, +} diff --git a/alive-common/src/main/java/com/ruoyi/common/enums/BusinessType.java b/alive-common/src/main/java/com/ruoyi/common/enums/BusinessType.java new file mode 100644 index 0000000..24d076a --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/enums/BusinessType.java @@ -0,0 +1,59 @@ +package com.ruoyi.common.enums; + +/** + * 业务操作类型 + * + * @author ruoyi + */ +public enum BusinessType +{ + /** + * 其它 + */ + OTHER, + + /** + * 新增 + */ + INSERT, + + /** + * 修改 + */ + UPDATE, + + /** + * 删除 + */ + DELETE, + + /** + * 授权 + */ + GRANT, + + /** + * 导出 + */ + EXPORT, + + /** + * 导入 + */ + IMPORT, + + /** + * 强退 + */ + FORCE, + + /** + * 生成代码 + */ + GENCODE, + + /** + * 清空 + */ + CLEAN, +} diff --git a/alive-common/src/main/java/com/ruoyi/common/enums/DataSourceType.java b/alive-common/src/main/java/com/ruoyi/common/enums/DataSourceType.java new file mode 100644 index 0000000..0d945be --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/enums/DataSourceType.java @@ -0,0 +1,19 @@ +package com.ruoyi.common.enums; + +/** + * 数据源 + * + * @author ruoyi + */ +public enum DataSourceType +{ + /** + * 主库 + */ + MASTER, + + /** + * 从库 + */ + SLAVE +} diff --git a/alive-common/src/main/java/com/ruoyi/common/enums/OnlineStatus.java b/alive-common/src/main/java/com/ruoyi/common/enums/OnlineStatus.java new file mode 100644 index 0000000..a05d5ff --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/enums/OnlineStatus.java @@ -0,0 +1,24 @@ +package com.ruoyi.common.enums; + +/** + * 用户会话 + * + * @author ruoyi + */ +public enum OnlineStatus +{ + /** 用户状态 */ + on_line("在线"), off_line("离线"); + + private final String info; + + private OnlineStatus(String info) + { + this.info = info; + } + + public String getInfo() + { + return info; + } +} diff --git a/alive-common/src/main/java/com/ruoyi/common/enums/OperatorType.java b/alive-common/src/main/java/com/ruoyi/common/enums/OperatorType.java new file mode 100644 index 0000000..bdd143c --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/enums/OperatorType.java @@ -0,0 +1,24 @@ +package com.ruoyi.common.enums; + +/** + * 操作人类别 + * + * @author ruoyi + */ +public enum OperatorType +{ + /** + * 其它 + */ + OTHER, + + /** + * 后台用户 + */ + MANAGE, + + /** + * 手机端用户 + */ + MOBILE +} diff --git a/alive-common/src/main/java/com/ruoyi/common/enums/UserStatus.java b/alive-common/src/main/java/com/ruoyi/common/enums/UserStatus.java new file mode 100644 index 0000000..d7ff44a --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/enums/UserStatus.java @@ -0,0 +1,30 @@ +package com.ruoyi.common.enums; + +/** + * 用户状态 + * + * @author ruoyi + */ +public enum UserStatus +{ + OK("0", "正常"), DISABLE("1", "停用"), DELETED("2", "删除"); + + private final String code; + private final String info; + + UserStatus(String code, String info) + { + this.code = code; + this.info = info; + } + + public String getCode() + { + return code; + } + + public String getInfo() + { + return info; + } +} diff --git a/alive-common/src/main/java/com/ruoyi/common/exception/DemoModeException.java b/alive-common/src/main/java/com/ruoyi/common/exception/DemoModeException.java new file mode 100644 index 0000000..f6ad2ab --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/exception/DemoModeException.java @@ -0,0 +1,15 @@ +package com.ruoyi.common.exception; + +/** + * 演示模式异常 + * + * @author ruoyi + */ +public class DemoModeException extends RuntimeException +{ + private static final long serialVersionUID = 1L; + + public DemoModeException() + { + } +} diff --git a/alive-common/src/main/java/com/ruoyi/common/exception/GlobalException.java b/alive-common/src/main/java/com/ruoyi/common/exception/GlobalException.java new file mode 100644 index 0000000..211441b --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/exception/GlobalException.java @@ -0,0 +1,58 @@ +package com.ruoyi.common.exception; + +/** + * 全局异常 + * + * @author ruoyi + */ +public class GlobalException extends RuntimeException +{ + + private static final long serialVersionUID = 1L; + + /** + * 错误提示 + */ + private String message; + + /** + * 错误明细,内部调试错误 + * + * 和 {@link CommonResult#getDetailMessage()} 一致的设计 + */ + private String detailMessage; + + /** + * 空构造方法,避免反序列化问题 + */ + public GlobalException() + { + } + + public GlobalException(String message) + { + this.message = message; + } + + public String getDetailMessage() + { + return detailMessage; + } + + public GlobalException setDetailMessage(String detailMessage) + { + this.detailMessage = detailMessage; + return this; + } + + public String getMessage() + { + return message; + } + + public GlobalException setMessage(String message) + { + this.message = message; + return this; + } +} \ No newline at end of file diff --git a/alive-common/src/main/java/com/ruoyi/common/exception/ServiceException.java b/alive-common/src/main/java/com/ruoyi/common/exception/ServiceException.java new file mode 100644 index 0000000..88bde52 --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/exception/ServiceException.java @@ -0,0 +1,57 @@ +package com.ruoyi.common.exception; + +/** + * 业务异常 + * + * @author ruoyi + */ +public final class ServiceException extends RuntimeException +{ + private static final long serialVersionUID = 1L; + + /** + * 错误提示 + */ + private String message; + + /** + * 错误明细,内部调试错误 + * + * 和 {@link CommonResult#getDetailMessage()} 一致的设计 + */ + private String detailMessage; + + /** + * 空构造方法,避免反序列化问题 + */ + public ServiceException() + { + } + + public ServiceException(String message) + { + this.message = message; + } + + public String getDetailMessage() + { + return detailMessage; + } + + public ServiceException setDetailMessage(String detailMessage) + { + this.detailMessage = detailMessage; + return this; + } + + public String getMessage() + { + return message; + } + + public ServiceException setMessage(String message) + { + this.message = message; + return this; + } +} \ No newline at end of file diff --git a/alive-common/src/main/java/com/ruoyi/common/exception/UtilException.java b/alive-common/src/main/java/com/ruoyi/common/exception/UtilException.java new file mode 100644 index 0000000..980fa46 --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/exception/UtilException.java @@ -0,0 +1,26 @@ +package com.ruoyi.common.exception; + +/** + * 工具类异常 + * + * @author ruoyi + */ +public class UtilException extends RuntimeException +{ + private static final long serialVersionUID = 8247610319171014183L; + + public UtilException(Throwable e) + { + super(e.getMessage(), e); + } + + public UtilException(String message) + { + super(message); + } + + public UtilException(String message, Throwable throwable) + { + super(message, throwable); + } +} diff --git a/alive-common/src/main/java/com/ruoyi/common/exception/base/BaseException.java b/alive-common/src/main/java/com/ruoyi/common/exception/base/BaseException.java new file mode 100644 index 0000000..b55d72e --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/exception/base/BaseException.java @@ -0,0 +1,97 @@ +package com.ruoyi.common.exception.base; + +import com.ruoyi.common.utils.MessageUtils; +import com.ruoyi.common.utils.StringUtils; + +/** + * 基础异常 + * + * @author ruoyi + */ +public class BaseException extends RuntimeException +{ + private static final long serialVersionUID = 1L; + + /** + * 所属模块 + */ + private String module; + + /** + * 错误码 + */ + private String code; + + /** + * 错误码对应的参数 + */ + private Object[] args; + + /** + * 错误消息 + */ + private String defaultMessage; + + public BaseException(String module, String code, Object[] args, String defaultMessage) + { + this.module = module; + this.code = code; + this.args = args; + this.defaultMessage = defaultMessage; + } + + public BaseException(String module, String code, Object[] args) + { + this(module, code, args, null); + } + + public BaseException(String module, String defaultMessage) + { + this(module, null, null, defaultMessage); + } + + public BaseException(String code, Object[] args) + { + this(null, code, args, null); + } + + public BaseException(String defaultMessage) + { + this(null, null, null, defaultMessage); + } + + @Override + public String getMessage() + { + String message = null; + if (!StringUtils.isEmpty(code)) + { + message = MessageUtils.message(code, args); + } + if (message == null) + { + message = defaultMessage; + } + return message; + } + + public String getModule() + { + return module; + } + + public String getCode() + { + return code; + } + + public Object[] getArgs() + { + return args; + } + + public String getDefaultMessage() + { + return defaultMessage; + } +} diff --git a/alive-common/src/main/java/com/ruoyi/common/exception/file/FileException.java b/alive-common/src/main/java/com/ruoyi/common/exception/file/FileException.java new file mode 100644 index 0000000..871f09b --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/exception/file/FileException.java @@ -0,0 +1,19 @@ +package com.ruoyi.common.exception.file; + +import com.ruoyi.common.exception.base.BaseException; + +/** + * 文件信息异常类 + * + * @author ruoyi + */ +public class FileException extends BaseException +{ + private static final long serialVersionUID = 1L; + + public FileException(String code, Object[] args) + { + super("file", code, args, null); + } + +} diff --git a/alive-common/src/main/java/com/ruoyi/common/exception/file/FileNameLengthLimitExceededException.java b/alive-common/src/main/java/com/ruoyi/common/exception/file/FileNameLengthLimitExceededException.java new file mode 100644 index 0000000..70e0ec9 --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/exception/file/FileNameLengthLimitExceededException.java @@ -0,0 +1,16 @@ +package com.ruoyi.common.exception.file; + +/** + * 文件名称超长限制异常类 + * + * @author ruoyi + */ +public class FileNameLengthLimitExceededException extends FileException +{ + private static final long serialVersionUID = 1L; + + public FileNameLengthLimitExceededException(int defaultFileNameLength) + { + super("upload.filename.exceed.length", new Object[] { defaultFileNameLength }); + } +} diff --git a/alive-common/src/main/java/com/ruoyi/common/exception/file/FileSizeLimitExceededException.java b/alive-common/src/main/java/com/ruoyi/common/exception/file/FileSizeLimitExceededException.java new file mode 100644 index 0000000..ec6ab05 --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/exception/file/FileSizeLimitExceededException.java @@ -0,0 +1,16 @@ +package com.ruoyi.common.exception.file; + +/** + * 文件名大小限制异常类 + * + * @author ruoyi + */ +public class FileSizeLimitExceededException extends FileException +{ + private static final long serialVersionUID = 1L; + + public FileSizeLimitExceededException(long defaultMaxSize) + { + super("upload.exceed.maxSize", new Object[] { defaultMaxSize }); + } +} diff --git a/alive-common/src/main/java/com/ruoyi/common/exception/file/InvalidExtensionException.java b/alive-common/src/main/java/com/ruoyi/common/exception/file/InvalidExtensionException.java new file mode 100644 index 0000000..9f845cb --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/exception/file/InvalidExtensionException.java @@ -0,0 +1,81 @@ +package com.ruoyi.common.exception.file; + +import java.util.Arrays; +import org.apache.commons.fileupload.FileUploadException; + +/** + * 文件上传 误异常类 + * + * @author ruoyi + */ +public class InvalidExtensionException extends FileUploadException +{ + private static final long serialVersionUID = 1L; + + private String[] allowedExtension; + private String extension; + private String filename; + + public InvalidExtensionException(String[] allowedExtension, String extension, String filename) + { + super("filename : [" + filename + "], extension : [" + extension + "], allowed extension : [" + Arrays.toString(allowedExtension) + "]"); + this.allowedExtension = allowedExtension; + this.extension = extension; + this.filename = filename; + } + + public String[] getAllowedExtension() + { + return allowedExtension; + } + + public String getExtension() + { + return extension; + } + + public String getFilename() + { + return filename; + } + + public static class InvalidImageExtensionException extends InvalidExtensionException + { + private static final long serialVersionUID = 1L; + + public InvalidImageExtensionException(String[] allowedExtension, String extension, String filename) + { + super(allowedExtension, extension, filename); + } + } + + public static class InvalidFlashExtensionException extends InvalidExtensionException + { + private static final long serialVersionUID = 1L; + + public InvalidFlashExtensionException(String[] allowedExtension, String extension, String filename) + { + super(allowedExtension, extension, filename); + } + } + + public static class InvalidMediaExtensionException extends InvalidExtensionException + { + private static final long serialVersionUID = 1L; + + public InvalidMediaExtensionException(String[] allowedExtension, String extension, String filename) + { + super(allowedExtension, extension, filename); + } + } + + public static class InvalidVideoExtensionException extends InvalidExtensionException + { + private static final long serialVersionUID = 1L; + + public InvalidVideoExtensionException(String[] allowedExtension, String extension, String filename) + { + super(allowedExtension, extension, filename); + } + } +} diff --git a/alive-common/src/main/java/com/ruoyi/common/exception/job/TaskException.java b/alive-common/src/main/java/com/ruoyi/common/exception/job/TaskException.java new file mode 100644 index 0000000..a567b40 --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/exception/job/TaskException.java @@ -0,0 +1,34 @@ +package com.ruoyi.common.exception.job; + +/** + * 计划策略异常 + * + * @author ruoyi + */ +public class TaskException extends Exception +{ + private static final long serialVersionUID = 1L; + + private Code code; + + public TaskException(String msg, Code code) + { + this(msg, code, null); + } + + public TaskException(String msg, Code code, Exception nestedEx) + { + super(msg, nestedEx); + this.code = code; + } + + public Code getCode() + { + return code; + } + + public enum Code + { + TASK_EXISTS, NO_TASK_EXISTS, TASK_ALREADY_STARTED, UNKNOWN, CONFIG_ERROR, TASK_NODE_NOT_AVAILABLE + } +} \ No newline at end of file diff --git a/alive-common/src/main/java/com/ruoyi/common/exception/user/CaptchaException.java b/alive-common/src/main/java/com/ruoyi/common/exception/user/CaptchaException.java new file mode 100644 index 0000000..389dbc7 --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/exception/user/CaptchaException.java @@ -0,0 +1,16 @@ +package com.ruoyi.common.exception.user; + +/** + * 验证码错误异常类 + * + * @author ruoyi + */ +public class CaptchaException extends UserException +{ + private static final long serialVersionUID = 1L; + + public CaptchaException() + { + super("user.jcaptcha.error", null); + } +} diff --git a/alive-common/src/main/java/com/ruoyi/common/exception/user/RoleBlockedException.java b/alive-common/src/main/java/com/ruoyi/common/exception/user/RoleBlockedException.java new file mode 100644 index 0000000..1c4fd4a --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/exception/user/RoleBlockedException.java @@ -0,0 +1,16 @@ +package com.ruoyi.common.exception.user; + +/** + * 角色锁定异常类 + * + * @author ruoyi + */ +public class RoleBlockedException extends UserException +{ + private static final long serialVersionUID = 1L; + + public RoleBlockedException() + { + super("role.blocked", null); + } +} diff --git a/alive-common/src/main/java/com/ruoyi/common/exception/user/UserBlockedException.java b/alive-common/src/main/java/com/ruoyi/common/exception/user/UserBlockedException.java new file mode 100644 index 0000000..5150f52 --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/exception/user/UserBlockedException.java @@ -0,0 +1,16 @@ +package com.ruoyi.common.exception.user; + +/** + * 用户锁定异常类 + * + * @author ruoyi + */ +public class UserBlockedException extends UserException +{ + private static final long serialVersionUID = 1L; + + public UserBlockedException() + { + super("user.blocked", null); + } +} diff --git a/alive-common/src/main/java/com/ruoyi/common/exception/user/UserDeleteException.java b/alive-common/src/main/java/com/ruoyi/common/exception/user/UserDeleteException.java new file mode 100644 index 0000000..3520030 --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/exception/user/UserDeleteException.java @@ -0,0 +1,16 @@ +package com.ruoyi.common.exception.user; + +/** + * 用户账号已被删除 + * + * @author ruoyi + */ +public class UserDeleteException extends UserException +{ + private static final long serialVersionUID = 1L; + + public UserDeleteException() + { + super("user.password.delete", null); + } +} diff --git a/alive-common/src/main/java/com/ruoyi/common/exception/user/UserException.java b/alive-common/src/main/java/com/ruoyi/common/exception/user/UserException.java new file mode 100644 index 0000000..c292d70 --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/exception/user/UserException.java @@ -0,0 +1,18 @@ +package com.ruoyi.common.exception.user; + +import com.ruoyi.common.exception.base.BaseException; + +/** + * 用户信息异常类 + * + * @author ruoyi + */ +public class UserException extends BaseException +{ + private static final long serialVersionUID = 1L; + + public UserException(String code, Object[] args) + { + super("user", code, args, null); + } +} diff --git a/alive-common/src/main/java/com/ruoyi/common/exception/user/UserNotExistsException.java b/alive-common/src/main/java/com/ruoyi/common/exception/user/UserNotExistsException.java new file mode 100644 index 0000000..eff8181 --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/exception/user/UserNotExistsException.java @@ -0,0 +1,16 @@ +package com.ruoyi.common.exception.user; + +/** + * 用户不存在异常类 + * + * @author ruoyi + */ +public class UserNotExistsException extends UserException +{ + private static final long serialVersionUID = 1L; + + public UserNotExistsException() + { + super("user.not.exists", null); + } +} diff --git a/alive-common/src/main/java/com/ruoyi/common/exception/user/UserPasswordNotMatchException.java b/alive-common/src/main/java/com/ruoyi/common/exception/user/UserPasswordNotMatchException.java new file mode 100644 index 0000000..a7f3e5f --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/exception/user/UserPasswordNotMatchException.java @@ -0,0 +1,16 @@ +package com.ruoyi.common.exception.user; + +/** + * 用户密码不正确或不符合规范异常类 + * + * @author ruoyi + */ +public class UserPasswordNotMatchException extends UserException +{ + private static final long serialVersionUID = 1L; + + public UserPasswordNotMatchException() + { + super("user.password.not.match", null); + } +} diff --git a/alive-common/src/main/java/com/ruoyi/common/exception/user/UserPasswordRetryLimitCountException.java b/alive-common/src/main/java/com/ruoyi/common/exception/user/UserPasswordRetryLimitCountException.java new file mode 100644 index 0000000..7ead89b --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/exception/user/UserPasswordRetryLimitCountException.java @@ -0,0 +1,16 @@ +package com.ruoyi.common.exception.user; + +/** + * 用户错误记数异常类 + * + * @author ruoyi + */ +public class UserPasswordRetryLimitCountException extends UserException +{ + private static final long serialVersionUID = 1L; + + public UserPasswordRetryLimitCountException(int retryLimitCount) + { + super("user.password.retry.limit.count", new Object[] { retryLimitCount }); + } +} diff --git a/alive-common/src/main/java/com/ruoyi/common/exception/user/UserPasswordRetryLimitExceedException.java b/alive-common/src/main/java/com/ruoyi/common/exception/user/UserPasswordRetryLimitExceedException.java new file mode 100644 index 0000000..b5ccfb9 --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/exception/user/UserPasswordRetryLimitExceedException.java @@ -0,0 +1,16 @@ +package com.ruoyi.common.exception.user; + +/** + * 用户错误最大次数异常类 + * + * @author ruoyi + */ +public class UserPasswordRetryLimitExceedException extends UserException +{ + private static final long serialVersionUID = 1L; + + public UserPasswordRetryLimitExceedException(int retryLimitCount) + { + super("user.password.retry.limit.exceed", new Object[] { retryLimitCount }); + } +} diff --git a/alive-common/src/main/java/com/ruoyi/common/json/JSON.java b/alive-common/src/main/java/com/ruoyi/common/json/JSON.java new file mode 100644 index 0000000..1e5b928 --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/json/JSON.java @@ -0,0 +1,187 @@ +package com.ruoyi.common.json; + +import java.io.File; +import java.io.IOException; +import java.io.InputStream; +import java.io.OutputStream; +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.databind.JsonMappingException; +import com.fasterxml.jackson.databind.ObjectMapper; +import com.fasterxml.jackson.databind.ObjectWriter; + +/** + * JSON解析处理 + * + * @author ruoyi + */ +public class JSON +{ + public static final String DEFAULT_FAIL = "\"Parse failed\""; + private static final ObjectMapper objectMapper = new ObjectMapper(); + private static final ObjectWriter objectWriter = objectMapper.writerWithDefaultPrettyPrinter(); + + public static void marshal(File file, Object value) throws Exception + { + try + { + objectWriter.writeValue(file, value); + } + catch (JsonGenerationException e) + { + throw new Exception(e); + } + catch (JsonMappingException e) + { + throw new Exception(e); + } + catch (IOException e) + { + throw new Exception(e); + } + } + + public static void marshal(OutputStream os, Object value) throws Exception + { + try + { + objectWriter.writeValue(os, value); + } + catch (JsonGenerationException e) + { + throw new Exception(e); + } + catch (JsonMappingException e) + { + throw new Exception(e); + } + catch (IOException e) + { + throw new Exception(e); + } + } + + public static String marshal(Object value) throws Exception + { + try + { + return objectWriter.writeValueAsString(value); + } + catch (JsonGenerationException e) + { + throw new Exception(e); + } + catch (JsonMappingException e) + { + throw new Exception(e); + } + catch (IOException e) + { + throw new Exception(e); + } + } + + public static byte[] marshalBytes(Object value) throws Exception + { + try + { + return objectWriter.writeValueAsBytes(value); + } + catch (JsonGenerationException e) + { + throw new Exception(e); + } + catch (JsonMappingException e) + { + throw new Exception(e); + } + catch (IOException e) + { + throw new Exception(e); + } + } + + public static T unmarshal(File file, Class valueType) throws Exception + { + try + { + return objectMapper.readValue(file, valueType); + } + catch (JsonParseException e) + { + throw new Exception(e); + } + catch (JsonMappingException e) + { + throw new Exception(e); + } + catch (IOException e) + { + throw new Exception(e); + } + } + + public static T unmarshal(InputStream is, Class valueType) throws Exception + { + try + { + return objectMapper.readValue(is, valueType); + } + catch (JsonParseException e) + { + throw new Exception(e); + } + catch (JsonMappingException e) + { + throw new Exception(e); + } + catch (IOException e) + { + throw new Exception(e); + } + } + + public static T unmarshal(String str, Class valueType) throws Exception + { + try + { + return objectMapper.readValue(str, valueType); + } + catch (JsonParseException e) + { + throw new Exception(e); + } + catch (JsonMappingException e) + { + throw new Exception(e); + } + catch (IOException e) + { + throw new Exception(e); + } + } + + public static T unmarshal(byte[] bytes, Class valueType) throws Exception + { + try + { + if (bytes == null) + { + bytes = new byte[0]; + } + return objectMapper.readValue(bytes, 0, bytes.length, valueType); + } + catch (JsonParseException e) + { + throw new Exception(e); + } + catch (JsonMappingException e) + { + throw new Exception(e); + } + catch (IOException e) + { + throw new Exception(e); + } + } +} diff --git a/alive-common/src/main/java/com/ruoyi/common/json/JSONObject.java b/alive-common/src/main/java/com/ruoyi/common/json/JSONObject.java new file mode 100644 index 0000000..2f4afe7 --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/json/JSONObject.java @@ -0,0 +1,749 @@ +package com.ruoyi.common.json; + +import java.util.ArrayList; +import java.util.Collection; +import java.util.LinkedHashMap; +import java.util.List; +import java.util.Map; +import java.util.StringTokenizer; +import java.util.regex.Matcher; +import java.util.regex.Pattern; +import com.fasterxml.jackson.databind.ObjectMapper; +import com.ruoyi.common.utils.StringUtils; + +/** + * 通用消息对象,基于Map实现的可嵌套数据结构。 支持JSON数据结构。 + * + * @author ruoyi + */ +public class JSONObject extends LinkedHashMap +{ + private static final long serialVersionUID = 1L; + private static final Pattern arrayNamePattern = Pattern.compile("(\\w+)((\\[\\d+\\])+)"); + private static final ObjectMapper objectMapper = new ObjectMapper(); + + /** + * 数组结构。 + */ + public static class JSONArray extends ArrayList + { + private static final long serialVersionUID = 1L; + + public JSONArray() + { + super(); + } + + public JSONArray(int size) + { + super(size); + } + + @Override + public String toString() + { + try + { + return JSON.marshal(this); + } + catch (Exception e) + { + throw new RuntimeException(e); + } + } + + @Override + public Object set(int index, Object element) + { + return super.set(index, transfer(element)); + } + + @Override + public boolean add(Object element) + { + return super.add(transfer(element)); + } + + @Override + public void add(int index, Object element) + { + super.add(index, transfer(element)); + } + } + + public JSONObject() + { + super(); + } + + public JSONObject(final JSONObject other) + { + super(other); + } + + @Override + public String toString() + { + try + { + return JSON.marshal(this); + } + catch (Exception e) + { + throw new RuntimeException(e); + } + } + + /** + * 转换为紧凑格式的字符串。 + * + * @return 返回本对象紧凑格式字符串。 + */ + public String toCompactString() + { + try + { + return objectMapper.writeValueAsString(this); + } + catch (Exception e) + { + throw new RuntimeException(e); + } + } + + /** + * 获取指定字段的整数值。如果字段不存在,或者无法转换为整数,返回null。 + * + * @param name 字段名,支持多级。 + * @return 返回指定的整数值,或者null。 + */ + public Integer intValue(final String name) + { + return valueAsInt(value(name)); + } + + /** + * 获取指定字段的整数值。如果字段不存在,或者无法转换为整数,返回defaultValue。 + * + * @param name 字段名,支持多级。 + * @param defaultValue 查询失败时,返回的值。 + * @return 返回指定的整数值,或者defaultValue。 + */ + public Integer intValue(final String name, final Integer defaultValue) + { + return StringUtils.nvl(intValue(name), defaultValue); + } + + /** + * 获取指定字段的长整数值。如果字段不存在,或者无法转换为长整数,返回null。 + * + * @param name 字段名,支持多级。 + * @return 返回指定的长整数值,或者null。 + */ + public Long longValue(final String name) + { + return valueAsLong(value(name)); + } + + /** + * 获取指定字段的长整数值。如果字段不存在,或者无法转换为长整数,返回defaultValue。 + * + * @param name 字段名,支持多级。 + * @param defaultValue 查询失败时,返回的值。 + * @return 返回指定的长整数值,或者defaultValue。 + */ + public Long longValue(final String name, final Long defaultValue) + { + return StringUtils.nvl(longValue(name), defaultValue); + } + + /** + * 获取指定字段的布尔值。如果字段不存在,或者无法转换为布尔型,返回null。 + * + * @param name 字段名,支持多级。 + * @return 返回指定的布尔值,或者null。 + */ + public Boolean boolValue(final String name) + { + return valueAsBool(value(name)); + } + + /** + * 获取指定字段的布尔值。如果字段不存在,或者无法转换为布尔型,返回defaultValue。 + * + * @param name 字段名,支持多级。 + * @param defaultValue 查询失败时,返回的值。 + * @return 返回指定的布尔值,或者defaultValue。 + */ + public Boolean boolValue(final String name, final Boolean defaultValue) + { + return StringUtils.nvl(boolValue(name), defaultValue); + } + + /** + * 获取指定字段的字符串值。如果字段不存在,返回null。 + * + * @param name 字段名,支持多级。 + * @return 返回指定的字符串值,或者null。 + */ + public String strValue(final String name) + { + return valueAsStr(value(name)); + } + + /** + * 获取指定字段的字符串值。如果字段不存在,返回defaultValue。 + * + * @param name 字段名,支持多级。 + * @param defaultValue 查询失败时,返回的值。 + * @return 返回指定的字符串值,或者defaultValue。 + */ + public String strValue(final String name, final String defaultValue) + { + return StringUtils.nvl(strValue(name), defaultValue); + } + + /** + * 获取指定字段的值。 + * + * @param name 字段名,支持多级,支持数组下标。 + * @return 返回指定字段的值。 + */ + public Object value(final String name) + { + final int indexDot = name.indexOf('.'); + if (indexDot >= 0) + { + return obj(name.substring(0, indexDot)).value(name.substring(indexDot + 1)); + } + else + { + final Matcher matcher = arrayNamePattern.matcher(name); + if (matcher.find()) + { + return endArray(matcher.group(1), matcher.group(2), new EndArrayCallback() + { + @Override + public Object callback(JSONArray arr, int index) + { + return elementAt(arr, index); + } + }); + } + else + { + return get(name); + } + } + } + + /** + * 设置指定字段的值。 + * + * @param name 字段名,支持多级,支持数组下标。 + * @param value 字段值。 + * @return 返回本对象。 + */ + public JSONObject value(final String name, final Object value) + { + final int indexDot = name.indexOf('.'); + if (indexDot >= 0) + { + obj(name.substring(0, indexDot)).value(name.substring(indexDot + 1), value); + } + else + { + final Matcher matcher = arrayNamePattern.matcher(name); + if (matcher.find()) + { + endArray(matcher.group(1), matcher.group(2), new EndArrayCallback() + { + @Override + public Void callback(JSONArray arr, int index) + { + elementAt(arr, index, value); + return null; + } + }); + } + else + { + set(name, value); + } + } + return this; + } + + /** + * 获取对象(非标量类型)字段。返回的数据是一个结构体。当不存在指定对象时,则为指定的名字创建一个空的MessageObject对象。 + * + * @param name 字段名。不支持多级名字,支持数组下标。 + * @return 返回指定的对象。如果对象不存在,则为指定的名字创建一个空的MessageObject对象。 + */ + public JSONObject obj(final String name) + { + final Matcher matcher = arrayNamePattern.matcher(name); + if (matcher.find()) + { + return endArray(matcher.group(1), matcher.group(2), new EndArrayCallback() + { + @Override + public JSONObject callback(JSONArray arr, int index) + { + return objAt(arr, index); + } + }); + } + else + { + JSONObject obj = getObj(name); + if (obj == null) + { + obj = new JSONObject(); + put(name, obj); + } + return obj; + } + } + + /** + * 获取数组字段。将名字对应的对象以数组对象返回,当指定的字段不存在时,创建一个空的数组。 + * + * @param name 字段名。不支持多级名字,不支持下标。 + * @return 返回一个数组(List)。 + */ + public JSONArray arr(final String name) + { + JSONArray arr = getArr(name); + if (arr == null) + { + arr = new JSONArray(); + put(name, arr); + } + return arr; + } + + /** + * 获取对象(非标量类型)字段。返回的数据是一个结构体。 + * + * @param name 字段名。 + * @return 返回指定的对象字段。 + */ + public JSONObject getObj(final String name) + { + return (JSONObject) get(name); + } + + /** + * 获取数组类型字段。 + * + * @param name 字段名。 + * @return 返回数组类型字段。 + */ + public JSONArray getArr(final String name) + { + return (JSONArray) get(name); + } + + /** + * 返回字段整数值。如果不存在,返回null。 + * + * @param name 字段名。 + * @return 返回指定字段整数值。 + */ + public Integer getInt(final String name) + { + return valueAsInt(get(name)); + } + + /** + * 返回字段整数值。如果不存在,返回defaultValue。 + * + * @param name 字段名。 + * @param defaultValue 字段不存在时,返回的值。 + * @return 返回指定字段整数值。 + */ + public Integer getInt(final String name, Integer defaultValue) + { + return StringUtils.nvl(getInt(name), defaultValue); + } + + /** + * 返回字段长整数值。如果不存在,返回null。 + * + * @param name 字段名。 + * @return 返回指定字段长整数值。 + */ + public Long getLong(final String name) + { + return valueAsLong(get(name)); + } + + /** + * 返回字段长整数值。如果不存在,返回defaultValue。 + * + * @param name 字段名。 + * @param defaultValue 字段不存在时,返回的值。 + * @return 返回指定字段长整数值。 + */ + public Long getLong(final String name, Long defaultValue) + { + return StringUtils.nvl(getLong(name), defaultValue); + } + + /** + * 返回字段字符串值。如果不存在,返回null。 + * + * @param name 字段名。 + * @return 返回指定字段字符串值。 + */ + public String getStr(final String name) + { + return valueAsStr(get(name)); + } + + /** + * 返回字段字符串值。如果不存在,返回defaultValue。 + * + * @param name 字段名。 + * @param defaultValue 字段不存在时,返回的值。 + * @return 返回指定字段字符串值。 + */ + public String getStr(final String name, final String defaultValue) + { + return StringUtils.nvl(getStr(name), defaultValue); + } + + /** + * 字段值按照布尔类型返回。如果不存在,返回null。 + * + * @param name 字段名。 + * @return 字段值。 + */ + public Boolean getBool(final String name) + { + return valueAsBool(get(name)); + } + + /** + * 字段值按照布尔类型返回。如果不存在,返回defaultValue。 + * + * @param name 字段名。 + * @param defaultValue 字段不存在时,返回的值。 + * @return 字段值。 + */ + public Boolean getBool(final String name, final Boolean defaultValue) + { + return StringUtils.nvl(getBool(name), defaultValue); + } + + /** + * 设置字段值 + * + * @param name 字段名 + * @param value 字段值(标量:数字、字符串、布尔型;结构体:MessageObject)。 如果是Map类型同时非MessageObject类型,则自动转换为MessageObject类型再存入 + * (此时,再修改Map中的数据,将不会体现到本对象中)。 + * @return 返回本对象 + */ + public JSONObject set(final String name, final Object value) + { + put(name, value); + return this; + } + + /** + * 将本对象转换为Java Bean。 + * + * @param beanClass Java Bean的类对象。 + * @return 返回转换后的Java Bean。 + */ + public T asBean(Class beanClass) + { + try + { + return JSON.unmarshal(JSON.marshal(this), beanClass); + } + catch (Exception e) + { + throw new RuntimeException(e); + } + } + + /** + * 重载基类的方法。如果 value 是 Map 类型,但不是 MessageObject 类型,则创建一个包含内容等同于原 Map 的 MessageObject 作为 value(注意:此后再更改 Map 的内容,将不会反映到 + * MessageObject 中)。 重载此方法的目的是为了使JSON能够正确地解析为MessageObject对象。不建议直接调用此方法,请使用 set(name, value)方法设置字段值。 + */ + @Override + public Object put(String key, Object value) + { + return super.put(key, transfer(value)); + } + + public static Integer valueAsInt(Object value) + { + if (value instanceof Integer) + { + return (Integer) value; + } + else if (value instanceof Number) + { + return ((Number) value).intValue(); + } + else if (value instanceof String) + { + return Integer.valueOf((String) value); + } + else if (value instanceof Boolean) + { + return ((Boolean) value) ? 1 : 0; + } + else + { + return null; + } + } + + public static Long valueAsLong(Object value) + { + if (value instanceof Long) + { + return (Long) value; + } + else if (value instanceof Number) + { + return ((Number) value).longValue(); + } + else if (value instanceof String) + { + return Long.valueOf((String) value); + } + else if (value instanceof Boolean) + { + return ((Boolean) value) ? 1L : 0L; + } + else + { + return null; + } + } + + public static String valueAsStr(Object value) + { + if (value instanceof String) + { + return (String) value; + } + else if (value != null) + { + return value.toString(); + } + else + { + return null; + } + } + + public static Boolean valueAsBool(Object value) + { + if (value instanceof Boolean) + { + return (Boolean) value; + } + else if (value instanceof Number) + { + return ((Number) value).doubleValue() != 0.0; + } + else if (value instanceof String) + { + return Boolean.valueOf((String) value); + } + else + { + return null; + } + } + + /** + * 将所有层次中凡是Map类型同时又不是MessageObject的类型,转换为MessageObject类型。 + * + * @param value 值。 + * @return 返回转换后的值。 + */ + @SuppressWarnings("unchecked") + private static Object transfer(final Object value) + { + if (!(value instanceof JSONObject) && value instanceof Map) + { + return toObj((Map) value); + } + else if (!(value instanceof JSONArray) && value instanceof Collection) + { + return toArr((Collection) value); + } + else + { + return value; + } + } + + private static JSONArray toArr(final Collection list) + { + final JSONArray arr = new JSONArray(list.size()); + for (final Object element : list) + { + arr.add(element); + } + return arr; + } + + private static JSONObject toObj(final Map map) + { + final JSONObject obj = new JSONObject(); + for (final Map.Entry ent : map.entrySet()) + { + obj.put(ent.getKey(), transfer(ent.getValue())); + } + return obj; + } + + /** + * 将指定下标元素作为数组返回,如果不存在,则在该位置创建一个空的数组。 + * + * @param arr 当前数组。 + * @param index 下标。 + * @return 返回当前数组指定下标的元素,该元素应该是一个数组。 + */ + private static JSONArray arrayAt(JSONArray arr, int index) + { + expand(arr, index); + if (arr.get(index) == null) + { + arr.set(index, new JSONArray()); + } + return (JSONArray) arr.get(index); + } + + /** + * 将指定下标元素作为结构体返回,如果不存在,则在该位置创建一个空的结构体。 + * + * @param arr 当前数组。 + * @param index 下标。 + * @return 返回当前数组指定下标元素,该元素是一个结构体。 + */ + private static JSONObject objAt(final JSONArray arr, int index) + { + expand(arr, index); + if (arr.get(index) == null) + { + arr.set(index, new JSONObject()); + } + return (JSONObject) arr.get(index); + } + + /** + * 设置数组指定下标位置的值。 + * + * @param arr 数组。 + * @param index 下标。 + * @param value 值。 + */ + private static void elementAt(final JSONArray arr, final int index, final Object value) + { + expand(arr, index).set(index, value); + } + + /** + * 获取数组指定下标元素的值。 + * + * @param arr 数组。 + * @param index 下标。 + * @return 值。 + */ + private static Object elementAt(final JSONArray arr, final int index) + { + return expand(arr, index).get(index); + } + + /** + * 扩展数组到指定下标,以防止访问时下标越界。 + * + * @param arr 数组 + * @param index 下标 + * @return 返回传入的数组 + */ + private static JSONArray expand(final JSONArray arr, final int index) + { + while (arr.size() <= index) + { + arr.add(null); + } + return arr; + } + + /** + * 最后数组回调。 + * + * @author Mike + * + * @param 回调返回数据类型。 + */ + private interface EndArrayCallback + { + /** + * 当定位到最后一级数组,将调用本方法。 + * + * @param arr 最后一级数组对象。 + * @param index 最后一级索引。 + * @return 返回回调的返回值。 + */ + T callback(JSONArray arr, int index); + } + + /** + * 处理多维数组的工具函数(包括一维数组)。多维数组的名字如:arrary[1][2][3], 则name=array,indexStr=[1][2][3],在callback中,endArr将是 + * array[1][2]指定的对象,indexe=3。 + * + * @param name 不带下标的名字,不支持多级名字。 + * @param indexesStr 索引部分的字符串,如:[1][2][3] + * @param callback 回调函数。 + * @return 返回回调函数的返回值。 + */ + private T endArray(final String name, final String indexesStr, final EndArrayCallback callback) + { + JSONArray endArr = arr(name); + final int[] indexes = parseIndexes(indexesStr); + int i = 0; + while (i < indexes.length - 1) + { + endArr = arrayAt(endArr, indexes[i++]); + } + return callback.callback(endArr, indexes[i]); + } + + private static int[] parseIndexes(final String s) + { + int[] indexes = null; + List list = new ArrayList(); + + final StringTokenizer st = new StringTokenizer(s, "[]"); + while (st.hasMoreTokens()) + { + final int index = Integer.valueOf(st.nextToken()); + if (index < 0) + { + throw new RuntimeException(String.format("Illegal index %1$d in \"%2$s\"", index, s)); + } + + list.add(index); + } + + indexes = new int[list.size()]; + int i = 0; + for (Integer tmp : list.toArray(new Integer[list.size()])) + { + indexes[i++] = tmp; + } + + return indexes; + } +} diff --git a/alive-common/src/main/java/com/ruoyi/common/utils/AddressUtils.java b/alive-common/src/main/java/com/ruoyi/common/utils/AddressUtils.java new file mode 100644 index 0000000..9afafc1 --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/utils/AddressUtils.java @@ -0,0 +1,54 @@ +package com.ruoyi.common.utils; + +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import com.alibaba.fastjson.JSONObject; +import com.ruoyi.common.config.RuoYiConfig; +import com.ruoyi.common.constant.Constants; +import com.ruoyi.common.utils.http.HttpUtils; + +/** + * 获取地址类 + * + * @author ruoyi + */ +public class AddressUtils +{ + private static final Logger log = LoggerFactory.getLogger(AddressUtils.class); + + // IP地址查询 + public static final String IP_URL = "http://whois.pconline.com.cn/ipJson.jsp"; + + // 未知地址 + public static final String UNKNOWN = "XX XX"; + + public static String getRealAddressByIP(String ip) + { + // 内网不查询 + if (IpUtils.internalIp(ip)) + { + return "内网IP"; + } + if (RuoYiConfig.isAddressEnabled()) + { + try + { + String rspStr = HttpUtils.sendGet(IP_URL, "ip=" + ip + "&json=true", Constants.GBK); + if (StringUtils.isEmpty(rspStr)) + { + log.error("获取地理位置异常 {}", ip); + return UNKNOWN; + } + JSONObject obj = JSONObject.parseObject(rspStr); + String region = obj.getString("pro"); + String city = obj.getString("city"); + return String.format("%s %s", region, city); + } + catch (Exception e) + { + log.error("获取地理位置异常 {}", e); + } + } + return UNKNOWN; + } +} diff --git a/alive-common/src/main/java/com/ruoyi/common/utils/Arith.java b/alive-common/src/main/java/com/ruoyi/common/utils/Arith.java new file mode 100644 index 0000000..b6326c2 --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/utils/Arith.java @@ -0,0 +1,114 @@ +package com.ruoyi.common.utils; + +import java.math.BigDecimal; +import java.math.RoundingMode; + +/** + * 精确的浮点数运算 + * + * @author ruoyi + */ +public class Arith +{ + + /** 默认除法运算精度 */ + private static final int DEF_DIV_SCALE = 10; + + /** 这个类不能实例化 */ + private Arith() + { + } + + /** + * 提供精确的加法运算。 + * @param v1 被加数 + * @param v2 加数 + * @return 两个参数的和 + */ + public static double add(double v1, double v2) + { + BigDecimal b1 = new BigDecimal(Double.toString(v1)); + BigDecimal b2 = new BigDecimal(Double.toString(v2)); + return b1.add(b2).doubleValue(); + } + + /** + * 提供精确的减法运算。 + * @param v1 被减数 + * @param v2 减数 + * @return 两个参数的差 + */ + public static double sub(double v1, double v2) + { + BigDecimal b1 = new BigDecimal(Double.toString(v1)); + BigDecimal b2 = new BigDecimal(Double.toString(v2)); + return b1.subtract(b2).doubleValue(); + } + + /** + * 提供精确的乘法运算。 + * @param v1 被乘数 + * @param v2 乘数 + * @return 两个参数的积 + */ + public static double mul(double v1, double v2) + { + BigDecimal b1 = new BigDecimal(Double.toString(v1)); + BigDecimal b2 = new BigDecimal(Double.toString(v2)); + return b1.multiply(b2).doubleValue(); + } + + /** + * 提供(相对)精确的除法运算,当发生除不尽的情况时,精确到 + * 小数点以后10位,以后的数字四舍五入。 + * @param v1 被除数 + * @param v2 除数 + * @return 两个参数的商 + */ + public static double div(double v1, double v2) + { + return div(v1, v2, DEF_DIV_SCALE); + } + + /** + * 提供(相对)精确的除法运算。当发生除不尽的情况时,由scale参数指 + * 定精度,以后的数字四舍五入。 + * @param v1 被除数 + * @param v2 除数 + * @param scale 表示表示需要精确到小数点以后几位。 + * @return 两个参数的商 + */ + public static double div(double v1, double v2, int scale) + { + if (scale < 0) + { + throw new IllegalArgumentException( + "The scale must be a positive integer or zero"); + } + BigDecimal b1 = new BigDecimal(Double.toString(v1)); + BigDecimal b2 = new BigDecimal(Double.toString(v2)); + if (b1.compareTo(BigDecimal.ZERO) == 0) + { + return BigDecimal.ZERO.doubleValue(); + } + return b1.divide(b2, scale, RoundingMode.HALF_UP).doubleValue(); + } + + /** + * 提供精确的小数位四舍五入处理。 + * @param v 需要四舍五入的数字 + * @param scale 小数点后保留几位 + * @return 四舍五入后的结果 + */ + public static double round(double v, int scale) + { + if (scale < 0) + { + throw new IllegalArgumentException( + "The scale must be a positive integer or zero"); + } + BigDecimal b = new BigDecimal(Double.toString(v)); + BigDecimal one = BigDecimal.ONE; + return b.divide(one, scale, RoundingMode.HALF_UP).doubleValue(); + } +} diff --git a/alive-common/src/main/java/com/ruoyi/common/utils/CacheUtils.java b/alive-common/src/main/java/com/ruoyi/common/utils/CacheUtils.java new file mode 100644 index 0000000..ae27682 --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/utils/CacheUtils.java @@ -0,0 +1,197 @@ +package com.ruoyi.common.utils; + +import java.util.Iterator; +import java.util.Set; +import org.apache.shiro.cache.Cache; +import org.apache.shiro.cache.CacheManager; +import org.apache.shiro.cache.ehcache.EhCacheManager; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import com.ruoyi.common.utils.spring.SpringUtils; + +/** + * Cache工具类 + * + * @author ruoyi + */ +public class CacheUtils +{ + private static Logger logger = LoggerFactory.getLogger(CacheUtils.class); + + private static CacheManager cacheManager = SpringUtils.getBean(CacheManager.class); + + private static final String SYS_CACHE = "sys-cache"; + + /** + * 获取SYS_CACHE缓存 + * + * @param key + * @return + */ + public static Object get(String key) + { + return get(SYS_CACHE, key); + } + + /** + * 获取SYS_CACHE缓存 + * + * @param key + * @param defaultValue + * @return + */ + public static Object get(String key, Object defaultValue) + { + Object value = get(key); + return value != null ? value : defaultValue; + } + + /** + * 写入SYS_CACHE缓存 + * + * @param key + * @return + */ + public static void put(String key, Object value) + { + put(SYS_CACHE, key, value); + } + + /** + * 从SYS_CACHE缓存中移除 + * + * @param key + * @return + */ + public static void remove(String key) + { + remove(SYS_CACHE, key); + } + + /** + * 获取缓存 + * + * @param cacheName + * @param key + * @return + */ + public static Object get(String cacheName, String key) + { + return getCache(cacheName).get(getKey(key)); + } + + /** + * 获取缓存 + * + * @param cacheName + * @param key + * @param defaultValue + * @return + */ + public static Object get(String cacheName, String key, Object defaultValue) + { + Object value = get(cacheName, getKey(key)); + return value != null ? value : defaultValue; + } + + /** + * 写入缓存 + * + * @param cacheName + * @param key + * @param value + */ + public static void put(String cacheName, String key, Object value) + { + getCache(cacheName).put(getKey(key), value); + } + + /** + * 从缓存中移除 + * + * @param cacheName + * @param key + */ + public static void remove(String cacheName, String key) + { + getCache(cacheName).remove(getKey(key)); + } + + /** + * 从缓存中移除所有 + * + * @param cacheName + */ + public static void removeAll(String cacheName) + { + Cache cache = getCache(cacheName); + Set keys = cache.keys(); + for (Iterator it = keys.iterator(); it.hasNext();) + { + cache.remove(it.next()); + } + logger.info("清理缓存: {} => {}", cacheName, keys); + } + + /** + * 从缓存中移除指定key + * + * @param keys + */ + public static void removeByKeys(Set keys) + { + removeByKeys(SYS_CACHE, keys); + } + + /** + * 从缓存中移除指定key + * + * @param cacheName + * @param keys + */ + public static void removeByKeys(String cacheName, Set keys) + { + for (Iterator it = keys.iterator(); it.hasNext();) + { + remove(it.next()); + } + logger.info("清理缓存: {} => {}", cacheName, keys); + } + + /** + * 获取缓存键名 + * + * @param key + * @return + */ + private static String getKey(String key) + { + return key; + } + + /** + * 获得一个Cache,没有则显示日志。 + * + * @param cacheName + * @return + */ + public static Cache getCache(String cacheName) + { + Cache cache = cacheManager.getCache(cacheName); + if (cache == null) + { + throw new RuntimeException("当前系统中没有定义“" + cacheName + "”这个缓存。"); + } + return cache; + } + + /** + * 获取所有缓存 + * + * @return 缓存组 + */ + public static String[] getCacheNames() + { + return ((EhCacheManager) cacheManager).getCacheManager().getCacheNames(); + } +} diff --git a/alive-common/src/main/java/com/ruoyi/common/utils/CoinUtil.java b/alive-common/src/main/java/com/ruoyi/common/utils/CoinUtil.java new file mode 100644 index 0000000..9fac13e --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/utils/CoinUtil.java @@ -0,0 +1,39 @@ +package com.ruoyi.common.utils; + + +import java.util.HashMap; +import java.util.Map; + +/** + * 币种工具类 + */ +public class CoinUtil { + + public static Map coinMap = new HashMap<>(); + + + public static Map getCoinMap(){ + if(coinMap.size() == 0){ + //USDT + coinMap.put("USDT",1); + //RBIT + coinMap.put("RBIT",2); + //NFT配件 + coinMap.put("NFTCHIP",3); + //积分 + coinMap.put("POINTS",4); + } + return coinMap; + } + + + public static String getCoinName(Integer coinId){ + Map map = getCoinMap(); + for (Map.Entry obj : map.entrySet()){ + if(obj.getValue().equals(coinId)){ + return obj.getKey(); + } + } + return null; + } +} diff --git a/alive-common/src/main/java/com/ruoyi/common/utils/CookieUtils.java b/alive-common/src/main/java/com/ruoyi/common/utils/CookieUtils.java new file mode 100644 index 0000000..4fa8339 --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/utils/CookieUtils.java @@ -0,0 +1,138 @@ +package com.ruoyi.common.utils; + +import java.io.UnsupportedEncodingException; +import java.net.URLDecoder; +import java.net.URLEncoder; +import javax.servlet.http.Cookie; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; + +/** + * Cookie工具类 + * + * @author ruoyi + */ +public class CookieUtils +{ + /** + * 设置 Cookie(生成时间为1天) + * + * @param name 名称 + * @param value 值 + */ + public static void setCookie(HttpServletResponse response, String name, String value) + { + setCookie(response, name, value, 60 * 60 * 24); + } + + /** + * 设置 Cookie + * + * @param name 名称 + * @param value 值 + * @param maxAge 生存时间(单位秒) + * @param uri 路径 + */ + public static void setCookie(HttpServletResponse response, String name, String value, String path) + { + setCookie(response, name, value, path, 60 * 60 * 24); + } + + /** + * 设置 Cookie + * + * @param name 名称 + * @param value 值 + * @param maxAge 生存时间(单位秒) + * @param uri 路径 + */ + public static void setCookie(HttpServletResponse response, String name, String value, int maxAge) + { + setCookie(response, name, value, "/", maxAge); + } + + /** + * 设置 Cookie + * + * @param name 名称 + * @param value 值 + * @param maxAge 生存时间(单位秒) + * @param uri 路径 + */ + public static void setCookie(HttpServletResponse response, String name, String value, String path, int maxAge) + { + Cookie cookie = new Cookie(name, null); + cookie.setPath(path); + cookie.setMaxAge(maxAge); + try + { + cookie.setValue(URLEncoder.encode(value, "utf-8")); + } + catch (UnsupportedEncodingException e) + { + e.printStackTrace(); + } + response.addCookie(cookie); + } + + /** + * 获得指定Cookie的值 + * + * @param name 名称 + * @return 值 + */ + public static String getCookie(HttpServletRequest request, String name) + { + return getCookie(request, null, name, false); + } + + /** + * 获得指定Cookie的值,并删除。 + * + * @param name 名称 + * @return 值 + */ + public static String getCookie(HttpServletRequest request, HttpServletResponse response, String name) + { + return getCookie(request, response, name, true); + } + + /** + * 获得指定Cookie的值 + * + * @param request 请求对象 + * @param response 响应对象 + * @param name 名字 + * @param isRemove 是否移除 + * @return 值 + */ + public static String getCookie(HttpServletRequest request, HttpServletResponse response, String name, + boolean isRemove) + { + String value = null; + Cookie[] cookies = request.getCookies(); + if (cookies != null) + { + for (Cookie cookie : cookies) + { + if (cookie.getName().equals(name)) + { + try + { + value = URLDecoder.decode(cookie.getValue(), "utf-8"); + } + catch (UnsupportedEncodingException e) + { + e.printStackTrace(); + } + if (isRemove) + { + cookie.setMaxAge(0); + response.addCookie(cookie); + } + } + } + } + return value; + } +} diff --git a/alive-common/src/main/java/com/ruoyi/common/utils/DateUtils.java b/alive-common/src/main/java/com/ruoyi/common/utils/DateUtils.java new file mode 100644 index 0000000..21d651e --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/utils/DateUtils.java @@ -0,0 +1,445 @@ +package com.ruoyi.common.utils; + +import org.apache.commons.lang3.time.DateFormatUtils; + +import java.lang.management.ManagementFactory; +import java.text.ParseException; +import java.text.SimpleDateFormat; +import java.util.Calendar; +import java.util.Date; +import java.util.GregorianCalendar; + +/** + * 时间工具类 + * + * @author HayDen + */ +public class DateUtils extends org.apache.commons.lang3.time.DateUtils +{ + public static String YYYY = "yyyy"; + + public static String YYYY_MM = "yyyy-MM"; + + public static String YYYY_MM_DD = "yyyy-MM-dd"; + + public static String YYYYMMDDHHMMSS = "yyyyMMddHHmmss"; + + public static String YYYY_MM_DD_HH_MM_SS = "yyyy-MM-dd HH:mm:ss"; + + private static String[] parsePatterns = { + "yyyy-MM-dd", "yyyy-MM-dd HH:mm:ss", "yyyy-MM-dd HH:mm", "yyyy-MM", + "yyyy/MM/dd", "yyyy/MM/dd HH:mm:ss", "yyyy/MM/dd HH:mm", "yyyy/MM", + "yyyy.MM.dd", "yyyy.MM.dd HH:mm:ss", "yyyy.MM.dd HH:mm", "yyyy.MM"}; + + public static SimpleDateFormat format = new SimpleDateFormat("yyyyMMdd"); + public static SimpleDateFormat format1 = new SimpleDateFormat( + "yyyyMMdd HH:mm:ss"); + + /** + * 获取今天开始时间 + */ + public static String getStartTime() { + Date date = new Date(); + Calendar dateStart = Calendar.getInstance(); + dateStart.setTime(date); + dateStart.set(Calendar.HOUR_OF_DAY, 0); + dateStart.set(Calendar.MINUTE, 0); + dateStart.set(Calendar.SECOND, 0); + return dateByString(dateStart.getTime()); + } + + /** + * 字符串转Date + * @param date1 + * @return + */ + public static Date stringByDate(String date1){ + SimpleDateFormat simpleDateFormat = new SimpleDateFormat(YYYY_MM_DD_HH_MM_SS);//注意月份是MM + Date date = null; + try { + date = simpleDateFormat.parse(date1); + } catch (ParseException e) { + e.printStackTrace(); + } + return date; + } + + /** + * 获取今天结束时间 + */ + public static String getEndTime() { + Date date = new Date(); + Calendar dateEnd = Calendar.getInstance(); + dateEnd.setTime(date); + dateEnd.set(Calendar.HOUR_OF_DAY, 23); + dateEnd.set(Calendar.MINUTE, 59); + dateEnd.set(Calendar.SECOND, 59); + return dateByString(dateEnd.getTime()); + } + + /** + * 在基础时间上加或者减一天 + * + * @param date 当前时间 + * @param day 正数为加负数为减 + * @return + */ + public static Date getNextDay(Date date, Integer day) { + Calendar calendar = Calendar.getInstance(); + calendar.setTime(date); + calendar.add(Calendar.DAY_OF_MONTH, day);//+1今天的时间加一天 + date = calendar.getTime(); + return date; + } + + /** + * 得到指定日期的一天的的最后时刻23:59:59 + * + * @param date + * @return + */ + public static Date getFinallyDate(Date date) { + String temp = format.format(date); + temp += " 23:59:59"; + + try { + return format1.parse(temp); + } catch (Exception e) { + return null; + } + } + + /** + * 给指定时间加上秒 + * @param date + * @return + */ + public static Date timePastTenSecond(Date date,Integer ss) { + try { + SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); + + Calendar newTime = Calendar.getInstance(); + newTime.setTime(date); + newTime.add(Calendar.SECOND,ss);//日期加10秒 + + Date dt1=newTime.getTime(); + return dt1; + } + catch(Exception ex) { + ex.printStackTrace(); + return null; + } + } + + /** + * 得到指定日期的一天的开始时刻00:00:00 + * + * @param date + * @return + */ + public static Date getStartDate(Date date) { + String temp = format.format(date); + temp += " 00:00:00"; + + try { + return format1.parse(temp); + } catch (Exception e) { + return null; + } + } + + /** + * 获取当前Date型日期 + * + * @return Date() 当前日期 + */ + public static Date getNowDate() { + return new Date(); + } + + + /** + * 获取当前日期, 默认格式为yyyy-MM-dd + * + * @return String + */ + public static String getDate() + { + return dateTimeNow(YYYY_MM_DD); + } + + public static final String getTime() + { + return dateTimeNow(YYYY_MM_DD_HH_MM_SS); + } + + public static final String dateTimeNow() + { + return dateTimeNow(YYYYMMDDHHMMSS); + } + + public static final String dateTimeNow(final String format) + { + return parseDateToStr(format, new Date()); + } + + public static final String dateTime(final Date date) + { + return parseDateToStr(YYYY_MM_DD, date); + } + + public static final String parseDateToStr(final String format, final Date date) + { + return new SimpleDateFormat(format).format(date); + } + + /** + * 将日期格式化 + * + * @param date + * @return + */ + public static String dateByString(Date date) { + if (date != null) { + SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); + String tablename = dateFormat.format(date); + return tablename; + } + return null; + } + + public static String dateToHhMmSs(Date date) { + if (date != null) { + SimpleDateFormat dateFormat = new SimpleDateFormat("HH:mm:ss"); + String tablename = dateFormat.format(date); + return tablename; + } + return null; + } + + + public static final Date dateTime(final String format, final String ts) { + try { + return new SimpleDateFormat(format).parse(ts); + } + catch (ParseException e) + { + throw new RuntimeException(e); + } + } + + /** + * 日期路径 即年/月/日 如2018/08/08 + */ + public static final String datePath() + { + Date now = new Date(); + return DateFormatUtils.format(now, "yyyy/MM/dd"); + } + + /** + * 日期路径 即年/月/日 如20180808 + */ + public static final String dateTime() + { + Date now = new Date(); + return DateFormatUtils.format(now, "yyyyMMdd"); + } + + /** + * 日期型字符串转化为日期 格式 + */ + public static Date parseDate(Object str) + { + if (str == null) + { + return null; + } + try + { + return parseDate(str.toString(), parsePatterns); + } + catch (ParseException e) + { + return null; + } + } + + /** + * 获取服务器启动时间 + */ + public static Date getServerStartDate() + { + long time = ManagementFactory.getRuntimeMXBean().getStartTime(); + return new Date(time); + } + + /** + * 计算相差天数 + */ + public static int differentDaysByMillisecond(Date date1, Date date2) + { + return Math.abs((int) ((date2.getTime() - date1.getTime()) / (1000 * 3600 * 24))); + } + + /** + * 计算两个时间差 + */ + public static String getDatePoor(Date endDate, Date nowDate) + { + long nd = 1000 * 24 * 60 * 60; + long nh = 1000 * 60 * 60; + long nm = 1000 * 60; + // long ns = 1000; + // 获得两个时间的毫秒时间差异 + long diff = endDate.getTime() - nowDate.getTime(); + // 计算差多少天 + long day = diff / nd; + // 计算差多少小时 + long hour = diff % nd / nh; + // 计算差多少分钟 + long min = diff % nd % nh / nm; + // 计算差多少秒//输出结果 + // long sec = diff % nd % nh % nm / ns; + return day + "天" + hour + "小时" + min + "分钟"; + } + + /** + * 字符串转换成日期 + * + * @param str + * @return date + */ + public static Date StrToDate(String str) { + SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); + Date date = null; + try { + date = format.parse(str); + } catch (ParseException e) { + e.printStackTrace(); + } + return date; + } + + /** + * 字符串转换成日期 + * + * @param str + * @return date + */ + public static Date StrToHhMmSs(String str) { + SimpleDateFormat format = new SimpleDateFormat("HH:mm:ss"); + Date date = null; + try { + date = format.parse(str); + } catch (ParseException e) { + e.printStackTrace(); + } + return date; + } + + /** + * 判断当前时间是否在[startTime, endTime]区间,注意时间格式要一致 + * + * @param nowTime 当前时间 + * @param startTime 开始时间 + * @param endTime 结束时间 + * @return + * @author jqlin + */ + public static boolean isEffectiveDate(Date nowTime, Date startTime, Date endTime) { + if (nowTime.getTime() == startTime.getTime() + || nowTime.getTime() == endTime.getTime()) { + return true; + } + + Calendar date = Calendar.getInstance(); + date.setTime(nowTime); + + Calendar begin = Calendar.getInstance(); + begin.setTime(startTime); + + Calendar end = Calendar.getInstance(); + end.setTime(endTime); + + if (date.after(begin) && date.before(end)) { + return true; + } else { + return false; + } + } + + /** + * 判断时间是否在时间段内 + * + * @param nowTime + * @param beginTime + * @param endTime + * @return + */ + public static boolean belongCalendar(Date nowTime, Date beginTime, + Date endTime) { + Calendar date = Calendar.getInstance(); + date.setTime(nowTime); + + Calendar begin = Calendar.getInstance(); + begin.setTime(beginTime); + + Calendar end = Calendar.getInstance(); + end.setTime(endTime); + + if (date.after(begin) && date.before(end)) { + return true; + } else { + return false; + } + } + + /** + * 给指定的日期加上分钟后得到一个时间 + * @param date + * @param minute 要加的分钟数 + * @return + */ + public static Date addMinute(Date date,Integer minute) { + Calendar c = Calendar.getInstance(); + c.setTime(date); //设置时间 + c.add(Calendar.MINUTE, minute); //日期分钟加1,Calendar.DATE(天),Calendar.HOUR(小时) + date = c.getTime(); //结果 + return date; + } + + /** + * 根据两个时间判断当前时间是否在两个时间范围内 + * @param begin + * @param end + * @return + */ + public Boolean ifDateInner(Date begin,Date end){ + SimpleDateFormat df = new SimpleDateFormat("HH:mm");// 设置日期格式 + Date now = null; + Date beginTime = null; + Date endTime = null; + try { + now = df.parse(df.format(new Date())); + beginTime = df.parse(dateToHhMmSs(begin)); + endTime = df.parse(dateToHhMmSs(end)); + } catch (Exception e) { + e.printStackTrace(); + } + return belongCalendar(now, beginTime, endTime); + } + private static final SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); + public static String addDay(String date, int i) { + try { + GregorianCalendar gCal = new GregorianCalendar( + Integer.parseInt(date.substring(0, 4)), + Integer.parseInt(date.substring(5, 7)) - 1, + Integer.parseInt(date.substring(8, 10))); + gCal.add(GregorianCalendar.DATE, i); + return sdf.format(gCal.getTime()); + } catch (Exception e) { + return getDate(); + } + } +} diff --git a/alive-common/src/main/java/com/ruoyi/common/utils/DictUtils.java b/alive-common/src/main/java/com/ruoyi/common/utils/DictUtils.java new file mode 100644 index 0000000..ffe018f --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/utils/DictUtils.java @@ -0,0 +1,190 @@ +package com.ruoyi.common.utils; + +import java.util.List; +import org.springframework.stereotype.Component; +import com.ruoyi.common.constant.Constants; +import com.ruoyi.common.core.domain.entity.SysDictData; + +/** + * 字典工具类 + * + * @author ruoyi + */ +@Component +public class DictUtils +{ + /** + * 分隔符 + */ + public static final String SEPARATOR = ","; + + /** + * 设置字典缓存 + * + * @param key 参数键 + * @param dictDatas 字典数据列表 + */ + public static void setDictCache(String key, List dictDatas) + { + CacheUtils.put(getCacheName(), getCacheKey(key), dictDatas); + } + + /** + * 获取字典缓存 + * + * @param key 参数键 + * @return dictDatas 字典数据列表 + */ + public static List getDictCache(String key) + { + Object cacheObj = CacheUtils.get(getCacheName(), getCacheKey(key)); + if (StringUtils.isNotNull(cacheObj)) + { + return StringUtils.cast(cacheObj); + } + return null; + } + + /** + * 根据字典类型和字典值获取字典标签 + * + * @param dictType 字典类型 + * @param dictValue 字典值 + * @return 字典标签 + */ + public static String getDictLabel(String dictType, String dictValue) + { + return getDictLabel(dictType, dictValue, SEPARATOR); + } + + /** + * 根据字典类型和字典标签获取字典值 + * + * @param dictType 字典类型 + * @param dictLabel 字典标签 + * @return 字典值 + */ + public static String getDictValue(String dictType, String dictLabel) + { + return getDictValue(dictType, dictLabel, SEPARATOR); + } + + /** + * 根据字典类型和字典值获取字典标签 + * + * @param dictType 字典类型 + * @param dictValue 字典值 + * @param separator 分隔符 + * @return 字典标签 + */ + public static String getDictLabel(String dictType, String dictValue, String separator) + { + StringBuilder propertyString = new StringBuilder(); + List datas = getDictCache(dictType); + + if (StringUtils.containsAny(separator, dictValue) && StringUtils.isNotEmpty(datas)) + { + for (SysDictData dict : datas) + { + for (String value : dictValue.split(separator)) + { + if (value.equals(dict.getDictValue())) + { + propertyString.append(dict.getDictLabel()).append(separator); + break; + } + } + } + } + else + { + for (SysDictData dict : datas) + { + if (dictValue.equals(dict.getDictValue())) + { + return dict.getDictLabel(); + } + } + } + return StringUtils.stripEnd(propertyString.toString(), separator); + } + + /** + * 根据字典类型和字典标签获取字典值 + * + * @param dictType 字典类型 + * @param dictLabel 字典标签 + * @param separator 分隔符 + * @return 字典值 + */ + public static String getDictValue(String dictType, String dictLabel, String separator) + { + StringBuilder propertyString = new StringBuilder(); + List datas = getDictCache(dictType); + + if (StringUtils.containsAny(separator, dictLabel) && StringUtils.isNotEmpty(datas)) + { + for (SysDictData dict : datas) + { + for (String label : dictLabel.split(separator)) + { + if (label.equals(dict.getDictLabel())) + { + propertyString.append(dict.getDictValue()).append(separator); + break; + } + } + } + } + else + { + for (SysDictData dict : datas) + { + if (dictLabel.equals(dict.getDictLabel())) + { + return dict.getDictValue(); + } + } + } + return StringUtils.stripEnd(propertyString.toString(), separator); + } + + /** + * 删除指定字典缓存 + * + * @param key 字典键 + */ + public static void removeDictCache(String key) + { + CacheUtils.remove(getCacheName(), getCacheKey(key)); + } + + /** + * 清空字典缓存 + */ + public static void clearDictCache() + { + CacheUtils.removeAll(getCacheName()); + } + + /** + * 获取cache name + * + * @return 缓存名 + */ + public static String getCacheName() + { + return Constants.SYS_DICT_CACHE; + } + + /** + * 设置cache key + * + * @param configKey 参数键 + * @return 缓存键key + */ + public static String getCacheKey(String configKey) + { + return Constants.SYS_DICT_KEY + configKey; + } +} diff --git a/alive-common/src/main/java/com/ruoyi/common/utils/ExceptionUtil.java b/alive-common/src/main/java/com/ruoyi/common/utils/ExceptionUtil.java new file mode 100644 index 0000000..214e4a0 --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/utils/ExceptionUtil.java @@ -0,0 +1,39 @@ +package com.ruoyi.common.utils; + +import java.io.PrintWriter; +import java.io.StringWriter; +import org.apache.commons.lang3.exception.ExceptionUtils; + +/** + * 错误信息处理类。 + * + * @author ruoyi + */ +public class ExceptionUtil +{ + /** + * 获取exception的详细错误信息。 + */ + public static String getExceptionMessage(Throwable e) + { + StringWriter sw = new StringWriter(); + e.printStackTrace(new PrintWriter(sw, true)); + return sw.toString(); + } + + public static String getRootErrorMessage(Exception e) + { + Throwable root = ExceptionUtils.getRootCause(e); + root = (root == null ? e : root); + if (root == null) + { + return ""; + } + String msg = root.getMessage(); + if (msg == null) + { + return "null"; + } + return StringUtils.defaultString(msg); + } +} diff --git a/alive-common/src/main/java/com/ruoyi/common/utils/IpUtils.java b/alive-common/src/main/java/com/ruoyi/common/utils/IpUtils.java new file mode 100644 index 0000000..cb1245e --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/utils/IpUtils.java @@ -0,0 +1,194 @@ +package com.ruoyi.common.utils; + +import java.net.InetAddress; +import java.net.UnknownHostException; +import javax.servlet.http.HttpServletRequest; + +/** + * 获取IP方法 + * + * @author ruoyi + */ +public class IpUtils +{ + public static String getIpAddr(HttpServletRequest request) + { + if (request == null) + { + return "unknown"; + } + String ip = request.getHeader("x-forwarded-for"); + if (ip == null || ip.length() == 0 || "unknown".equalsIgnoreCase(ip)) + { + ip = request.getHeader("Proxy-Client-IP"); + } + if (ip == null || ip.length() == 0 || "unknown".equalsIgnoreCase(ip)) + { + ip = request.getHeader("X-Forwarded-For"); + } + if (ip == null || ip.length() == 0 || "unknown".equalsIgnoreCase(ip)) + { + ip = request.getHeader("WL-Proxy-Client-IP"); + } + if (ip == null || ip.length() == 0 || "unknown".equalsIgnoreCase(ip)) + { + ip = request.getHeader("X-Real-IP"); + } + + if (ip == null || ip.length() == 0 || "unknown".equalsIgnoreCase(ip)) + { + ip = request.getRemoteAddr(); + } + + return "0:0:0:0:0:0:0:1".equals(ip) ? "127.0.0.1" : ip; + } + + public static boolean internalIp(String ip) + { + byte[] addr = textToNumericFormatV4(ip); + return internalIp(addr) || "127.0.0.1".equals(ip); + } + + private static boolean internalIp(byte[] addr) + { + if (StringUtils.isNull(addr) || addr.length < 2) + { + return true; + } + final byte b0 = addr[0]; + final byte b1 = addr[1]; + // 10.x.x.x/8 + final byte SECTION_1 = 0x0A; + // 172.16.x.x/12 + final byte SECTION_2 = (byte) 0xAC; + final byte SECTION_3 = (byte) 0x10; + final byte SECTION_4 = (byte) 0x1F; + // 192.168.x.x/16 + final byte SECTION_5 = (byte) 0xC0; + final byte SECTION_6 = (byte) 0xA8; + switch (b0) + { + case SECTION_1: + return true; + case SECTION_2: + if (b1 >= SECTION_3 && b1 <= SECTION_4) + { + return true; + } + case SECTION_5: + switch (b1) + { + case SECTION_6: + return true; + } + default: + return false; + } + } + + /** + * 将IPv4地址转换成字节 + * + * @param text IPv4地址 + * @return byte 字节 + */ + public static byte[] textToNumericFormatV4(String text) + { + if (text.length() == 0) + { + return null; + } + + byte[] bytes = new byte[4]; + String[] elements = text.split("\\.", -1); + try + { + long l; + int i; + switch (elements.length) + { + case 1: + l = Long.parseLong(elements[0]); + if ((l < 0L) || (l > 4294967295L)) { + return null; + } + bytes[0] = (byte) (int) (l >> 24 & 0xFF); + bytes[1] = (byte) (int) ((l & 0xFFFFFF) >> 16 & 0xFF); + bytes[2] = (byte) (int) ((l & 0xFFFF) >> 8 & 0xFF); + bytes[3] = (byte) (int) (l & 0xFF); + break; + case 2: + l = Integer.parseInt(elements[0]); + if ((l < 0L) || (l > 255L)) { + return null; + } + bytes[0] = (byte) (int) (l & 0xFF); + l = Integer.parseInt(elements[1]); + if ((l < 0L) || (l > 16777215L)) { + return null; + } + bytes[1] = (byte) (int) (l >> 16 & 0xFF); + bytes[2] = (byte) (int) ((l & 0xFFFF) >> 8 & 0xFF); + bytes[3] = (byte) (int) (l & 0xFF); + break; + case 3: + for (i = 0; i < 2; ++i) + { + l = Integer.parseInt(elements[i]); + if ((l < 0L) || (l > 255L)) { + return null; + } + bytes[i] = (byte) (int) (l & 0xFF); + } + l = Integer.parseInt(elements[2]); + if ((l < 0L) || (l > 65535L)) { + return null; + } + bytes[2] = (byte) (int) (l >> 8 & 0xFF); + bytes[3] = (byte) (int) (l & 0xFF); + break; + case 4: + for (i = 0; i < 4; ++i) + { + l = Integer.parseInt(elements[i]); + if ((l < 0L) || (l > 255L)) { + return null; + } + bytes[i] = (byte) (int) (l & 0xFF); + } + break; + default: + return null; + } + } + catch (NumberFormatException e) + { + return null; + } + return bytes; + } + + public static String getHostIp() + { + try + { + return InetAddress.getLocalHost().getHostAddress(); + } + catch (UnknownHostException e) + { + } + return "127.0.0.1"; + } + + public static String getHostName() + { + try + { + return InetAddress.getLocalHost().getHostName(); + } + catch (UnknownHostException e) + { + } + return "未知"; + } +} \ No newline at end of file diff --git a/alive-common/src/main/java/com/ruoyi/common/utils/LogUtils.java b/alive-common/src/main/java/com/ruoyi/common/utils/LogUtils.java new file mode 100644 index 0000000..a0e7d6c --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/utils/LogUtils.java @@ -0,0 +1,135 @@ +package com.ruoyi.common.utils; + +import java.io.PrintWriter; +import java.io.StringWriter; +import java.util.Map; +import javax.servlet.http.HttpServletRequest; +import org.apache.shiro.SecurityUtils; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import com.ruoyi.common.json.JSON; + +/** + * 处理并记录日志文件 + * + * @author ruoyi + */ +public class LogUtils +{ + public static final Logger ERROR_LOG = LoggerFactory.getLogger("sys-error"); + public static final Logger ACCESS_LOG = LoggerFactory.getLogger("sys-access"); + + /** + * 记录访问日志 [username][jsessionid][ip][accept][UserAgent][url][params][Referer] + * + * @param request + * @throws Exception + */ + public static void logAccess(HttpServletRequest request) throws Exception + { + String username = getUsername(); + String jsessionId = request.getRequestedSessionId(); + String ip = IpUtils.getIpAddr(request); + String accept = request.getHeader("accept"); + String userAgent = request.getHeader("User-Agent"); + String url = request.getRequestURI(); + String params = getParams(request); + + StringBuilder s = new StringBuilder(); + s.append(getBlock(username)); + s.append(getBlock(jsessionId)); + s.append(getBlock(ip)); + s.append(getBlock(accept)); + s.append(getBlock(userAgent)); + s.append(getBlock(url)); + s.append(getBlock(params)); + s.append(getBlock(request.getHeader("Referer"))); + getAccessLog().info(s.toString()); + } + + /** + * 记录异常错误 格式 [exception] + * + * @param message + * @param e + */ + public static void logError(String message, Throwable e) + { + String username = getUsername(); + StringBuilder s = new StringBuilder(); + s.append(getBlock("exception")); + s.append(getBlock(username)); + s.append(getBlock(message)); + ERROR_LOG.error(s.toString(), e); + } + + /** + * 记录页面错误 错误日志记录 [page/eception][username][statusCode][errorMessage][servletName][uri][exceptionName][ip][exception] + * + * @param request + */ + public static void logPageError(HttpServletRequest request) + { + String username = getUsername(); + + Integer statusCode = (Integer) request.getAttribute("javax.servlet.error.status_code"); + String message = (String) request.getAttribute("javax.servlet.error.message"); + String uri = (String) request.getAttribute("javax.servlet.error.request_uri"); + Throwable t = (Throwable) request.getAttribute("javax.servlet.error.exception"); + + if (statusCode == null) + { + statusCode = 0; + } + + StringBuilder s = new StringBuilder(); + s.append(getBlock(t == null ? "page" : "exception")); + s.append(getBlock(username)); + s.append(getBlock(statusCode)); + s.append(getBlock(message)); + s.append(getBlock(IpUtils.getIpAddr(request))); + + s.append(getBlock(uri)); + s.append(getBlock(request.getHeader("Referer"))); + StringWriter sw = new StringWriter(); + + while (t != null) + { + t.printStackTrace(new PrintWriter(sw)); + t = t.getCause(); + } + s.append(getBlock(sw.toString())); + getErrorLog().error(s.toString()); + + } + + public static String getBlock(Object msg) + { + if (msg == null) + { + msg = ""; + } + return "[" + msg.toString() + "]"; + } + + protected static String getParams(HttpServletRequest request) throws Exception + { + Map params = request.getParameterMap(); + return JSON.marshal(params); + } + + protected static String getUsername() + { + return (String) SecurityUtils.getSubject().getPrincipal(); + } + + public static Logger getAccessLog() + { + return ACCESS_LOG; + } + + public static Logger getErrorLog() + { + return ERROR_LOG; + } +} diff --git a/alive-common/src/main/java/com/ruoyi/common/utils/MapDataUtil.java b/alive-common/src/main/java/com/ruoyi/common/utils/MapDataUtil.java new file mode 100644 index 0000000..d932bfe --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/utils/MapDataUtil.java @@ -0,0 +1,54 @@ +package com.ruoyi.common.utils; + +import java.util.HashMap; +import java.util.Iterator; +import java.util.Map; +import java.util.Map.Entry; +import javax.servlet.http.HttpServletRequest; + +/** + * Map通用处理方法 + * + * @author ruoyi + */ +public class MapDataUtil +{ + public static Map convertDataMap(HttpServletRequest request) + { + Map properties = request.getParameterMap(); + Map returnMap = new HashMap(); + Iterator entries = properties.entrySet().iterator(); + Map.Entry entry; + String name = ""; + String value = ""; + while (entries.hasNext()) + { + entry = (Entry) entries.next(); + name = (String) entry.getKey(); + Object valueObj = entry.getValue(); + if (null == valueObj) + { + value = ""; + } + else if (valueObj instanceof String[]) + { + String[] values = (String[]) valueObj; + value = ""; + for (int i = 0; i < values.length; i++) + { + value += values[i] + ","; + } + if (value.length() > 0) + { + value = value.substring(0, value.length() - 1); + } + } + else + { + value = valueObj.toString(); + } + returnMap.put(name, value); + } + return returnMap; + } +} diff --git a/alive-common/src/main/java/com/ruoyi/common/utils/MessageUtils.java b/alive-common/src/main/java/com/ruoyi/common/utils/MessageUtils.java new file mode 100644 index 0000000..7dac75a --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/utils/MessageUtils.java @@ -0,0 +1,26 @@ +package com.ruoyi.common.utils; + +import org.springframework.context.MessageSource; +import org.springframework.context.i18n.LocaleContextHolder; +import com.ruoyi.common.utils.spring.SpringUtils; + +/** + * 获取i18n资源文件 + * + * @author ruoyi + */ +public class MessageUtils +{ + /** + * 根据消息键和参数 获取消息 委托给spring messageSource + * + * @param code 消息键 + * @param args 参数 + * @return 获取国际化翻译值 + */ + public static String message(String code, Object... args) + { + MessageSource messageSource = SpringUtils.getBean(MessageSource.class); + return messageSource.getMessage(code, args, LocaleContextHolder.getLocale()); + } +} diff --git a/alive-common/src/main/java/com/ruoyi/common/utils/PageUtils.java b/alive-common/src/main/java/com/ruoyi/common/utils/PageUtils.java new file mode 100644 index 0000000..7db37a2 --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/utils/PageUtils.java @@ -0,0 +1,30 @@ +package com.ruoyi.common.utils; + +import com.github.pagehelper.PageHelper; +import com.ruoyi.common.core.page.PageDomain; +import com.ruoyi.common.core.page.TableSupport; +import com.ruoyi.common.utils.sql.SqlUtil; + +/** + * 分页工具类 + * + * @author ruoyi + */ +public class PageUtils extends PageHelper +{ + /** + * 设置请求分页数据 + */ + public static void startPage() + { + PageDomain pageDomain = TableSupport.buildPageRequest(); + Integer pageNum = pageDomain.getPageNum(); + Integer pageSize = pageDomain.getPageSize(); + if (StringUtils.isNotNull(pageNum) && StringUtils.isNotNull(pageSize)) + { + String orderBy = SqlUtil.escapeOrderBySql(pageDomain.getOrderBy()); + Boolean reasonable = pageDomain.getReasonable(); + PageHelper.startPage(pageNum, pageSize, orderBy).setReasonable(reasonable); + } + } +} diff --git a/alive-common/src/main/java/com/ruoyi/common/utils/ServletUtils.java b/alive-common/src/main/java/com/ruoyi/common/utils/ServletUtils.java new file mode 100644 index 0000000..a880788 --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/utils/ServletUtils.java @@ -0,0 +1,176 @@ +package com.ruoyi.common.utils; + +import java.io.IOException; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; +import org.springframework.web.context.request.RequestAttributes; +import org.springframework.web.context.request.RequestContextHolder; +import org.springframework.web.context.request.ServletRequestAttributes; +import com.ruoyi.common.core.text.Convert; + +/** + * 客户端工具类 + * + * @author ruoyi + */ +public class ServletUtils +{ + /** + * 定义移动端请求的所有可能类型 + */ + private final static String[] agent = { "Android", "iPhone", "iPod", "iPad", "Windows Phone", "MQQBrowser" }; + + /** + * 获取String参数 + */ + public static String getParameter(String name) + { + return getRequest().getParameter(name); + } + + /** + * 获取String参数 + */ + public static String getParameter(String name, String defaultValue) + { + return Convert.toStr(getRequest().getParameter(name), defaultValue); + } + + /** + * 获取Integer参数 + */ + public static Integer getParameterToInt(String name) + { + return Convert.toInt(getRequest().getParameter(name)); + } + + /** + * 获取Integer参数 + */ + public static Integer getParameterToInt(String name, Integer defaultValue) + { + return Convert.toInt(getRequest().getParameter(name), defaultValue); + } + + /** + * 获取Boolean参数 + */ + public static Boolean getParameterToBool(String name) + { + return Convert.toBool(getRequest().getParameter(name)); + } + + /** + * 获取Boolean参数 + */ + public static Boolean getParameterToBool(String name, Boolean defaultValue) + { + return Convert.toBool(getRequest().getParameter(name), defaultValue); + } + + /** + * 获取request + */ + public static HttpServletRequest getRequest() + { + return getRequestAttributes().getRequest(); + } + + /** + * 获取response + */ + public static HttpServletResponse getResponse() + { + return getRequestAttributes().getResponse(); + } + + /** + * 获取session + */ + public static HttpSession getSession() + { + return getRequest().getSession(); + } + + public static ServletRequestAttributes getRequestAttributes() + { + RequestAttributes attributes = RequestContextHolder.getRequestAttributes(); + return (ServletRequestAttributes) attributes; + } + + /** + * 将字符串渲染到客户端 + * + * @param response 渲染对象 + * @param string 待渲染的字符串 + * @return null + */ + public static String renderString(HttpServletResponse response, String string) + { + try + { + response.setContentType("application/json"); + response.setCharacterEncoding("utf-8"); + response.getWriter().print(string); + } + catch (IOException e) + { + e.printStackTrace(); + } + return null; + } + + /** + * 是否是Ajax异步请求 + * + * @param request + */ + public static boolean isAjaxRequest(HttpServletRequest request) + { + String accept = request.getHeader("accept"); + if (accept != null && accept.contains("application/json")) + { + return true; + } + + String xRequestedWith = request.getHeader("X-Requested-With"); + if (xRequestedWith != null && xRequestedWith.contains("XMLHttpRequest")) + { + return true; + } + + String uri = request.getRequestURI(); + if (StringUtils.inStringIgnoreCase(uri, ".json", ".xml")) + { + return true; + } + + String ajax = request.getParameter("__ajax"); + return StringUtils.inStringIgnoreCase(ajax, "json", "xml"); + } + + /** + * 判断User-Agent 是不是来自于手机 + */ + public static boolean checkAgentIsMobile(String ua) + { + boolean flag = false; + if (!ua.contains("Windows NT") || (ua.contains("Windows NT") && ua.contains("compatible; MSIE 9.0;"))) + { + // 排除 苹果桌面系统 + if (!ua.contains("Windows NT") && !ua.contains("Macintosh")) + { + for (String item : agent) + { + if (ua.contains(item)) + { + flag = true; + break; + } + } + } + } + return flag; + } +} diff --git a/alive-common/src/main/java/com/ruoyi/common/utils/ShiroUtils.java b/alive-common/src/main/java/com/ruoyi/common/utils/ShiroUtils.java new file mode 100644 index 0000000..51c6ca8 --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/utils/ShiroUtils.java @@ -0,0 +1,86 @@ +package com.ruoyi.common.utils; + +import org.apache.shiro.SecurityUtils; +import org.apache.shiro.crypto.SecureRandomNumberGenerator; +import org.apache.shiro.session.Session; +import org.apache.shiro.subject.Subject; +import org.apache.shiro.subject.PrincipalCollection; +import org.apache.shiro.subject.SimplePrincipalCollection; +import com.ruoyi.common.core.domain.entity.SysUser; +import com.ruoyi.common.utils.bean.BeanUtils; + +/** + * shiro 工具类 + * + * @author ruoyi + */ +public class ShiroUtils +{ + public static Subject getSubject() + { + return SecurityUtils.getSubject(); + } + + public static Session getSession() + { + return SecurityUtils.getSubject().getSession(); + } + + public static void logout() + { + getSubject().logout(); + } + + public static SysUser getSysUser() + { + SysUser user = null; + Object obj = getSubject().getPrincipal(); + if (StringUtils.isNotNull(obj)) + { + user = new SysUser(); + BeanUtils.copyBeanProp(user, obj); + } + return user; + } + + public static void setSysUser(SysUser user) + { + Subject subject = getSubject(); + PrincipalCollection principalCollection = subject.getPrincipals(); + String realmName = principalCollection.getRealmNames().iterator().next(); + PrincipalCollection newPrincipalCollection = new SimplePrincipalCollection(user, realmName); + // 重新加载Principal + subject.runAs(newPrincipalCollection); + } + + public static Long getUserId() + { + return getSysUser().getUserId().longValue(); + } + + public static String getLoginName() + { + return getSysUser().getLoginName(); + } + + public static String getIp() + { + return getSubject().getSession().getHost(); + } + + public static String getSessionId() + { + return String.valueOf(getSubject().getSession().getId()); + } + + /** + * 生成随机盐 + */ + public static String randomSalt() + { + // 一个Byte占两个字节,此处生成的3字节,字符串长度为6 + SecureRandomNumberGenerator secureRandom = new SecureRandomNumberGenerator(); + String hex = secureRandom.nextBytes(3).toHex(); + return hex; + } +} diff --git a/alive-common/src/main/java/com/ruoyi/common/utils/StringUtils.java b/alive-common/src/main/java/com/ruoyi/common/utils/StringUtils.java new file mode 100644 index 0000000..5d2b652 --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/utils/StringUtils.java @@ -0,0 +1,555 @@ +package com.ruoyi.common.utils; + +import java.util.ArrayList; +import java.util.Collection; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; +import org.springframework.util.AntPathMatcher; +import com.ruoyi.common.constant.Constants; +import com.ruoyi.common.core.text.StrFormatter; + +/** + * 字符串工具类 + * + * @author ruoyi + */ +public class StringUtils extends org.apache.commons.lang3.StringUtils +{ + /** 空字符串 */ + private static final String NULLSTR = ""; + + /** 下划线 */ + private static final char SEPARATOR = '_'; + + /** + * 获取参数不为空值 + * + * @param value defaultValue 要判断的value + * @return value 返回值 + */ + public static T nvl(T value, T defaultValue) + { + return value != null ? value : defaultValue; + } + + /** + * * 判断一个Collection是否为空, 包含List,Set,Queue + * + * @param coll 要判断的Collection + * @return true:为空 false:非空 + */ + public static boolean isEmpty(Collection coll) + { + return isNull(coll) || coll.isEmpty(); + } + + /** + * * 判断一个Collection是否非空,包含List,Set,Queue + * + * @param coll 要判断的Collection + * @return true:非空 false:空 + */ + public static boolean isNotEmpty(Collection coll) + { + return !isEmpty(coll); + } + + /** + * * 判断一个对象数组是否为空 + * + * @param objects 要判断的对象数组 + ** @return true:为空 false:非空 + */ + public static boolean isEmpty(Object[] objects) + { + return isNull(objects) || (objects.length == 0); + } + + /** + * * 判断一个对象数组是否非空 + * + * @param objects 要判断的对象数组 + * @return true:非空 false:空 + */ + public static boolean isNotEmpty(Object[] objects) + { + return !isEmpty(objects); + } + + /** + * * 判断一个Map是否为空 + * + * @param map 要判断的Map + * @return true:为空 false:非空 + */ + public static boolean isEmpty(Map map) + { + return isNull(map) || map.isEmpty(); + } + + /** + * * 判断一个Map是否为空 + * + * @param map 要判断的Map + * @return true:非空 false:空 + */ + public static boolean isNotEmpty(Map map) + { + return !isEmpty(map); + } + + /** + * * 判断一个字符串是否为空串 + * + * @param str String + * @return true:为空 false:非空 + */ + public static boolean isEmpty(String str) + { + return isNull(str) || NULLSTR.equals(str.trim()); + } + + /** + * * 判断一个字符串是否为非空串 + * + * @param str String + * @return true:非空串 false:空串 + */ + public static boolean isNotEmpty(String str) + { + return !isEmpty(str); + } + + /** + * * 判断一个对象是否为空 + * + * @param object Object + * @return true:为空 false:非空 + */ + public static boolean isNull(Object object) + { + return object == null; + } + + /** + * * 判断一个对象是否非空 + * + * @param object Object + * @return true:非空 false:空 + */ + public static boolean isNotNull(Object object) + { + return !isNull(object); + } + + /** + * * 判断一个对象是否是数组类型(Java基本型别的数组) + * + * @param object 对象 + * @return true:是数组 false:不是数组 + */ + public static boolean isArray(Object object) + { + return isNotNull(object) && object.getClass().isArray(); + } + + /** + * 去空格 + */ + public static String trim(String str) + { + return (str == null ? "" : str.trim()); + } + + /** + * 截取字符串 + * + * @param str 字符串 + * @param start 开始 + * @return 结果 + */ + public static String substring(final String str, int start) + { + if (str == null) + { + return NULLSTR; + } + + if (start < 0) + { + start = str.length() + start; + } + + if (start < 0) + { + start = 0; + } + if (start > str.length()) + { + return NULLSTR; + } + + return str.substring(start); + } + + /** + * 截取字符串 + * + * @param str 字符串 + * @param start 开始 + * @param end 结束 + * @return 结果 + */ + public static String substring(final String str, int start, int end) + { + if (str == null) + { + return NULLSTR; + } + + if (end < 0) + { + end = str.length() + end; + } + if (start < 0) + { + start = str.length() + start; + } + + if (end > str.length()) + { + end = str.length(); + } + + if (start > end) + { + return NULLSTR; + } + + if (start < 0) + { + start = 0; + } + if (end < 0) + { + end = 0; + } + + return str.substring(start, end); + } + + /** + * 格式化文本, {} 表示占位符
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * 此方法只是简单将占位符 {} 按照顺序替换为参数
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * 如果想输出 {} 使用 \\转义 { 即可,如果想输出 {} 之前的 \ 使用双转义符 \\\\ 即可
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * 例:
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * 通常使用:format("this is {} for {}", "a", "b") -> this is a for b
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * 转义{}: format("this is \\{} for {}", "a", "b") -> this is \{} for a
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * 转义\: format("this is \\\\{} for {}", "a", "b") -> this is \a for b
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * + * @param template 文本模板,被替换的部分用 {} 表示 + * @param params 参数值 + * @return 格式化后的文本 + */ + public static String format(String template, Object... params) + { + if (isEmpty(params) || isEmpty(template)) + { + return template; + } + return StrFormatter.format(template, params); + } + + /** + * 是否为http(s)://开头 + * + * @param link 链接 + * @return 结果 + */ + public static boolean ishttp(String link) + { + return StringUtils.startsWithAny(link, Constants.HTTP, Constants.HTTPS); + } + + /** + * 字符串转set + * + * @param str 字符串 + * @param sep 分隔符 + * @return set集合 + */ + public static final Set str2Set(String str, String sep) + { + return new HashSet(str2List(str, sep, true, false)); + } + + /** + * 字符串转list + * + * @param str 字符串 + * @param sep 分隔符 + * @param filterBlank 过滤纯空白 + * @param trim 去掉首尾空白 + * @return list集合 + */ + public static final List str2List(String str, String sep, boolean filterBlank, boolean trim) + { + List list = new ArrayList(); + if (StringUtils.isEmpty(str)) + { + return list; + } + + // 过滤空白字符串 + if (filterBlank && StringUtils.isBlank(str)) + { + return list; + } + String[] split = str.split(sep); + for (String string : split) + { + if (filterBlank && StringUtils.isBlank(string)) + { + continue; + } + if (trim) + { + string = string.trim(); + } + list.add(string); + } + + return list; + } + + /** + * 查找指定字符串是否包含指定字符串列表中的任意一个字符串同时串忽略大小写 + * + * @param cs 指定字符串 + * @param searchCharSequences 需要检查的字符串数组 + * @return 是否包含任意一个字符串 + */ + public static boolean containsAnyIgnoreCase(CharSequence cs, CharSequence... searchCharSequences) + { + if (isEmpty(cs) || isEmpty(searchCharSequences)) + { + return false; + } + for (CharSequence testStr : searchCharSequences) + { + if (containsIgnoreCase(cs, testStr)) + { + return true; + } + } + return false; + } + + /** + * 驼峰转下划线命名 + */ + public static String toUnderScoreCase(String str) + { + if (str == null) + { + return null; + } + StringBuilder sb = new StringBuilder(); + // 前置字符是否大写 + boolean preCharIsUpperCase = true; + // 当前字符是否大写 + boolean curreCharIsUpperCase = true; + // 下一字符是否大写 + boolean nexteCharIsUpperCase = true; + for (int i = 0; i < str.length(); i++) + { + char c = str.charAt(i); + if (i > 0) + { + preCharIsUpperCase = Character.isUpperCase(str.charAt(i - 1)); + } + else + { + preCharIsUpperCase = false; + } + + curreCharIsUpperCase = Character.isUpperCase(c); + + if (i < (str.length() - 1)) + { + nexteCharIsUpperCase = Character.isUpperCase(str.charAt(i + 1)); + } + + if (preCharIsUpperCase && curreCharIsUpperCase && !nexteCharIsUpperCase) + { + sb.append(SEPARATOR); + } + else if ((i != 0 && !preCharIsUpperCase) && curreCharIsUpperCase) + { + sb.append(SEPARATOR); + } + sb.append(Character.toLowerCase(c)); + } + + return sb.toString(); + } + + /** + * 是否包含字符串 + * + * @param str 验证字符串 + * @param strs 字符串组 + * @return 包含返回true + */ + public static boolean inStringIgnoreCase(String str, String... strs) + { + if (str != null && strs != null) + { + for (String s : strs) + { + if (str.equalsIgnoreCase(trim(s))) + { + return true; + } + } + } + return false; + } + + /** + * 删除最后一个字符串 + * + * @param str 输入字符串 + * @param spit 以什么类型结尾的 + * @return 截取后的字符串 + */ + public static String lastStringDel(String str, String spit) + { + if (!StringUtils.isEmpty(str) && str.endsWith(spit)) + { + return str.subSequence(0, str.length() - 1).toString(); + } + return str; + } + + /** + * 将下划线大写方式命名的字符串转换为驼峰式。如果转换前的下划线大写方式命名的字符串为空,则返回空字符串。 例如:HELLO_WORLD->HelloWorld + * + * @param name 转换前的下划线大写方式命名的字符串 + * @return 转换后的驼峰式命名的字符串 + */ + public static String convertToCamelCase(String name) + { + StringBuilder result = new StringBuilder(); + // 快速检查 + if (name == null || name.isEmpty()) + { + // 没必要转换 + return ""; + } + else if (!name.contains("_")) + { + // 不含下划线,仅将首字母大写 + return name.substring(0, 1).toUpperCase() + name.substring(1); + } + // 用下划线将原始字符串分割 + String[] camels = name.split("_"); + for (String camel : camels) + { + // 跳过原始字符串中开头、结尾的下换线或双重下划线 + if (camel.isEmpty()) + { + continue; + } + // 首字母大写 + result.append(camel.substring(0, 1).toUpperCase()); + result.append(camel.substring(1).toLowerCase()); + } + return result.toString(); + } + + /** + * 驼峰式命名法 + * 例如:user_name->userName + */ + public static String toCamelCase(String s) + { + if (s == null) + { + return null; + } + if (s.indexOf(SEPARATOR) == -1) + { + return s; + } + s = s.toLowerCase(); + StringBuilder sb = new StringBuilder(s.length()); + boolean upperCase = false; + for (int i = 0; i < s.length(); i++) + { + char c = s.charAt(i); + + if (c == SEPARATOR) + { + upperCase = true; + } + else if (upperCase) + { + sb.append(Character.toUpperCase(c)); + upperCase = false; + } + else + { + sb.append(c); + } + } + return sb.toString(); + } + + /** + * 查找指定字符串是否匹配指定字符串列表中的任意一个字符串 + * + * @param str 指定字符串 + * @param strs 需要检查的字符串数组 + * @return 是否匹配 + */ + public static boolean matches(String str, List strs) + { + if (isEmpty(str) || isEmpty(strs)) + { + return false; + } + for (String pattern : strs) + { + if (isMatch(pattern, str)) + { + return true; + } + } + return false; + } + + /** + * 判断url是否与规则配置: + * ? 表示单个字符; + * * 表示一层路径内的任意字符串,不可跨层级; + * ** 表示任意层路径; + * + * @param pattern 匹配规则 + * @param url 需要匹配的url + * @return + */ + public static boolean isMatch(String pattern, String url) + { + AntPathMatcher matcher = new AntPathMatcher(); + return matcher.match(pattern, url); + } + + @SuppressWarnings("unchecked") + public static T cast(Object obj) + { + return (T) obj; + } +} \ No newline at end of file diff --git a/alive-common/src/main/java/com/ruoyi/common/utils/Threads.java b/alive-common/src/main/java/com/ruoyi/common/utils/Threads.java new file mode 100644 index 0000000..1934195 --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/utils/Threads.java @@ -0,0 +1,99 @@ +package com.ruoyi.common.utils; + +import java.util.concurrent.CancellationException; +import java.util.concurrent.ExecutionException; +import java.util.concurrent.ExecutorService; +import java.util.concurrent.Future; +import java.util.concurrent.TimeUnit; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +/** + * 线程相关工具类. + * + * @author ruoyi + */ +public class Threads +{ + private static final Logger logger = LoggerFactory.getLogger(Threads.class); + + /** + * sleep等待,单位为毫秒 + */ + public static void sleep(long milliseconds) + { + try + { + Thread.sleep(milliseconds); + } + catch (InterruptedException e) + { + return; + } + } + + /** + * 停止线程池 + * 先使用shutdown, 停止接收新任务并尝试完成所有已存在任务. + * 如果超时, 则调用shutdownNow, 取消在workQueue中Pending的任务,并中断所有阻塞函数. + * 如果仍人超時,則強制退出. + * 另对在shutdown时线程本身被调用中断做了处理. + */ + public static void shutdownAndAwaitTermination(ExecutorService pool) + { + if (pool != null && !pool.isShutdown()) + { + pool.shutdown(); + try + { + if (!pool.awaitTermination(120, TimeUnit.SECONDS)) + { + pool.shutdownNow(); + if (!pool.awaitTermination(120, TimeUnit.SECONDS)) + { + logger.info("Pool did not terminate"); + } + } + } + catch (InterruptedException ie) + { + pool.shutdownNow(); + Thread.currentThread().interrupt(); + } + } + } + + /** + * 打印线程异常信息 + */ + public static void printException(Runnable r, Throwable t) + { + if (t == null && r instanceof Future) + { + try + { + Future future = (Future) r; + if (future.isDone()) + { + future.get(); + } + } + catch (CancellationException ce) + { + t = ce; + } + catch (ExecutionException ee) + { + t = ee.getCause(); + } + catch (InterruptedException ie) + { + Thread.currentThread().interrupt(); + } + } + if (t != null) + { + logger.error(t.getMessage(), t); + } + } +} diff --git a/alive-common/src/main/java/com/ruoyi/common/utils/YamlUtil.java b/alive-common/src/main/java/com/ruoyi/common/utils/YamlUtil.java new file mode 100644 index 0000000..d908233 --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/utils/YamlUtil.java @@ -0,0 +1,87 @@ +package com.ruoyi.common.utils; + +import java.io.FileNotFoundException; +import java.io.FileWriter; +import java.io.IOException; +import java.io.InputStream; +import java.util.LinkedHashMap; +import java.util.Map; +import org.yaml.snakeyaml.DumperOptions; +import org.yaml.snakeyaml.Yaml; +import com.ruoyi.common.utils.StringUtils; + +/** + * 配置处理工具类 + * + * @author yml + */ +public class YamlUtil +{ + public static Map loadYaml(String fileName) throws FileNotFoundException + { + InputStream in = YamlUtil.class.getClassLoader().getResourceAsStream(fileName); + return StringUtils.isNotEmpty(fileName) ? (LinkedHashMap) new Yaml().load(in) : null; + } + + public static void dumpYaml(String fileName, Map map) throws IOException + { + if (StringUtils.isNotEmpty(fileName)) + { + FileWriter fileWriter = new FileWriter(YamlUtil.class.getResource(fileName).getFile()); + DumperOptions options = new DumperOptions(); + options.setDefaultFlowStyle(DumperOptions.FlowStyle.BLOCK); + Yaml yaml = new Yaml(options); + yaml.dump(map, fileWriter); + } + } + + public static Object getProperty(Map map, Object qualifiedKey) + { + if (map != null && !map.isEmpty() && qualifiedKey != null) + { + String input = String.valueOf(qualifiedKey); + if (!"".equals(input)) + { + if (input.contains(".")) + { + int index = input.indexOf("."); + String left = input.substring(0, index); + String right = input.substring(index + 1, input.length()); + return getProperty((Map) map.get(left), right); + } + else if (map.containsKey(input)) + { + return map.get(input); + } + else + { + return null; + } + } + } + return null; + } + + @SuppressWarnings("unchecked") + public static void setProperty(Map map, Object qualifiedKey, Object value) + { + if (map != null && !map.isEmpty() && qualifiedKey != null) + { + String input = String.valueOf(qualifiedKey); + if (!input.equals("")) + { + if (input.contains(".")) + { + int index = input.indexOf("."); + String left = input.substring(0, index); + String right = input.substring(index + 1, input.length()); + setProperty((Map) map.get(left), right, value); + } + else + { + ((Map) map).put(qualifiedKey, value); + } + } + } + } +} \ No newline at end of file diff --git a/alive-common/src/main/java/com/ruoyi/common/utils/bean/BeanUtils.java b/alive-common/src/main/java/com/ruoyi/common/utils/bean/BeanUtils.java new file mode 100644 index 0000000..4463662 --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/utils/bean/BeanUtils.java @@ -0,0 +1,110 @@ +package com.ruoyi.common.utils.bean; + +import java.lang.reflect.Method; +import java.util.ArrayList; +import java.util.List; +import java.util.regex.Matcher; +import java.util.regex.Pattern; + +/** + * Bean 工具类 + * + * @author ruoyi + */ +public class BeanUtils extends org.springframework.beans.BeanUtils +{ + /** Bean方法名中属性名开始的下标 */ + private static final int BEAN_METHOD_PROP_INDEX = 3; + + /** * 匹配getter方法的正则表达式 */ + private static final Pattern GET_PATTERN = Pattern.compile("get(\\p{javaUpperCase}\\w*)"); + + /** * 匹配setter方法的正则表达式 */ + private static final Pattern SET_PATTERN = Pattern.compile("set(\\p{javaUpperCase}\\w*)"); + + /** + * Bean属性复制工具方法。 + * + * @param dest 目标对象 + * @param src 源对象 + */ + public static void copyBeanProp(Object dest, Object src) + { + try + { + copyProperties(src, dest); + } + catch (Exception e) + { + e.printStackTrace(); + } + } + + /** + * 获取对象的setter方法。 + * + * @param obj 对象 + * @return 对象的setter方法列表 + */ + public static List getSetterMethods(Object obj) + { + // setter方法列表 + List setterMethods = new ArrayList(); + + // 获取所有方法 + Method[] methods = obj.getClass().getMethods(); + + // 查找setter方法 + + for (Method method : methods) + { + Matcher m = SET_PATTERN.matcher(method.getName()); + if (m.matches() && (method.getParameterTypes().length == 1)) + { + setterMethods.add(method); + } + } + // 返回setter方法列表 + return setterMethods; + } + + /** + * 获取对象的getter方法。 + * + * @param obj 对象 + * @return 对象的getter方法列表 + */ + + public static List getGetterMethods(Object obj) + { + // getter方法列表 + List getterMethods = new ArrayList(); + // 获取所有方法 + Method[] methods = obj.getClass().getMethods(); + // 查找getter方法 + for (Method method : methods) + { + Matcher m = GET_PATTERN.matcher(method.getName()); + if (m.matches() && (method.getParameterTypes().length == 0)) + { + getterMethods.add(method); + } + } + // 返回getter方法列表 + return getterMethods; + } + + /** + * 检查Bean方法名中的属性名是否相等。
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * 如getName()和setName()属性名一样,getName()和setAge()属性名不一样。 + * + * @param m1 方法名1 + * @param m2 方法名2 + * @return 属性名一样返回true,否则返回false + */ + + public static boolean isMethodPropEquals(String m1, String m2) + { + return m1.substring(BEAN_METHOD_PROP_INDEX).equals(m2.substring(BEAN_METHOD_PROP_INDEX)); + } +} diff --git a/alive-common/src/main/java/com/ruoyi/common/utils/bean/BeanValidators.java b/alive-common/src/main/java/com/ruoyi/common/utils/bean/BeanValidators.java new file mode 100644 index 0000000..80bfed7 --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/utils/bean/BeanValidators.java @@ -0,0 +1,24 @@ +package com.ruoyi.common.utils.bean; + +import java.util.Set; +import javax.validation.ConstraintViolation; +import javax.validation.ConstraintViolationException; +import javax.validation.Validator; + +/** + * bean对象属性验证 + * + * @author ruoyi + */ +public class BeanValidators +{ + public static void validateWithException(Validator validator, Object object, Class... groups) + throws ConstraintViolationException + { + Set> constraintViolations = validator.validate(object, groups); + if (!constraintViolations.isEmpty()) + { + throw new ConstraintViolationException(constraintViolations); + } + } +} diff --git a/alive-common/src/main/java/com/ruoyi/common/utils/file/FileTypeUtils.java b/alive-common/src/main/java/com/ruoyi/common/utils/file/FileTypeUtils.java new file mode 100644 index 0000000..68130b9 --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/utils/file/FileTypeUtils.java @@ -0,0 +1,76 @@ +package com.ruoyi.common.utils.file; + +import java.io.File; +import org.apache.commons.lang3.StringUtils; + +/** + * 文件类型工具类 + * + * @author ruoyi + */ +public class FileTypeUtils +{ + /** + * 获取文件类型 + *

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * 例如: ruoyi.txt, 返回: txt + * + * @param file 文件名 + * @return 后缀(不含".") + */ + public static String getFileType(File file) + { + if (null == file) + { + return StringUtils.EMPTY; + } + return getFileType(file.getName()); + } + + /** + * 获取文件类型 + *

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * 例如: ruoyi.txt, 返回: txt + * + * @param fileName 文件名 + * @return 后缀(不含".") + */ + public static String getFileType(String fileName) + { + int separatorIndex = fileName.lastIndexOf("."); + if (separatorIndex < 0) + { + return ""; + } + return fileName.substring(separatorIndex + 1).toLowerCase(); + } + + /** + * 获取文件类型 + * + * @param photoByte 文件字节码 + * @return 后缀(不含".") + */ + public static String getFileExtendName(byte[] photoByte) + { + String strFileExtendName = "JPG"; + if ((photoByte[0] == 71) && (photoByte[1] == 73) && (photoByte[2] == 70) && (photoByte[3] == 56) + && ((photoByte[4] == 55) || (photoByte[4] == 57)) && (photoByte[5] == 97)) + { + strFileExtendName = "GIF"; + } + else if ((photoByte[6] == 74) && (photoByte[7] == 70) && (photoByte[8] == 73) && (photoByte[9] == 70)) + { + strFileExtendName = "JPG"; + } + else if ((photoByte[0] == 66) && (photoByte[1] == 77)) + { + strFileExtendName = "BMP"; + } + else if ((photoByte[1] == 80) && (photoByte[2] == 78) && (photoByte[3] == 71)) + { + strFileExtendName = "PNG"; + } + return strFileExtendName; + } +} \ No newline at end of file diff --git a/alive-common/src/main/java/com/ruoyi/common/utils/file/FileUploadUtils.java b/alive-common/src/main/java/com/ruoyi/common/utils/file/FileUploadUtils.java new file mode 100644 index 0000000..57bc2b7 --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/utils/file/FileUploadUtils.java @@ -0,0 +1,230 @@ +package com.ruoyi.common.utils.file; + +import java.io.File; +import java.io.IOException; +import java.util.Objects; +import org.apache.commons.io.FilenameUtils; +import org.springframework.web.multipart.MultipartFile; +import com.ruoyi.common.config.RuoYiConfig; +import com.ruoyi.common.constant.Constants; +import com.ruoyi.common.exception.file.FileNameLengthLimitExceededException; +import com.ruoyi.common.exception.file.FileSizeLimitExceededException; +import com.ruoyi.common.exception.file.InvalidExtensionException; +import com.ruoyi.common.utils.DateUtils; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.common.utils.uuid.IdUtils; + +/** + * 文件上传工具类 + * + * @author ruoyi + */ +public class FileUploadUtils +{ + /** + * 默认大小 50M + */ + public static final long DEFAULT_MAX_SIZE = 50 * 1024 * 1024; + + /** + * 默认的文件名最大长度 100 + */ + public static final int DEFAULT_FILE_NAME_LENGTH = 100; + + /** + * 默认上传的地址 + */ + private static String defaultBaseDir = RuoYiConfig.getProfile(); + + public static void setDefaultBaseDir(String defaultBaseDir) + { + FileUploadUtils.defaultBaseDir = defaultBaseDir; + } + + public static String getDefaultBaseDir() + { + return defaultBaseDir; + } + + /** + * 以默认配置进行文件上传 + * + * @param file 上传的文件 + * @return 文件名称 + * @throws Exception + */ + public static final String upload(MultipartFile file) throws IOException + { + try + { + return upload(getDefaultBaseDir(), file, MimeTypeUtils.DEFAULT_ALLOWED_EXTENSION); + } + catch (Exception e) + { + throw new IOException(e.getMessage(), e); + } + } + + /** + * 根据文件路径上传 + * + * @param baseDir 相对应用的基目录 + * @param file 上传的文件 + * @return 文件名称 + * @throws IOException + */ + public static final String upload(String baseDir, MultipartFile file) throws IOException + { + try + { + return upload(baseDir, file, MimeTypeUtils.DEFAULT_ALLOWED_EXTENSION); + } + catch (Exception e) + { + throw new IOException(e.getMessage(), e); + } + } + + /** + * 文件上传 + * + * @param baseDir 相对应用的基目录 + * @param file 上传的文件 + * @param allowedExtension 上传文件类型 + * @return 返回上传成功的文件名 + * @throws FileSizeLimitExceededException 如果超出最大大小 + * @throws FileNameLengthLimitExceededException 文件名太长 + * @throws IOException 比如读写文件出错时 + * @throws InvalidExtensionException 文件校验异常 + */ + public static final String upload(String baseDir, MultipartFile file, String[] allowedExtension) + throws FileSizeLimitExceededException, IOException, FileNameLengthLimitExceededException, + InvalidExtensionException + { + int fileNamelength = Objects.requireNonNull(file.getOriginalFilename()).length(); + if (fileNamelength > FileUploadUtils.DEFAULT_FILE_NAME_LENGTH) + { + throw new FileNameLengthLimitExceededException(FileUploadUtils.DEFAULT_FILE_NAME_LENGTH); + } + + assertAllowed(file, allowedExtension); + + String fileName = extractFilename(file); + + File desc = getAbsoluteFile(baseDir, fileName); + file.transferTo(desc); + return getPathFileName(baseDir, fileName); + } + + /** + * 编码文件名 + */ + public static final String extractFilename(MultipartFile file) + { + return DateUtils.datePath() + "/" + IdUtils.fastUUID() + "." + getExtension(file); + } + + public static final File getAbsoluteFile(String uploadDir, String fileName) throws IOException + { + File desc = new File(uploadDir + File.separator + fileName); + + if (!desc.exists()) + { + if (!desc.getParentFile().exists()) + { + desc.getParentFile().mkdirs(); + } + } + return desc; + } + + public static final String getPathFileName(String uploadDir, String fileName) throws IOException + { + int dirLastIndex = RuoYiConfig.getProfile().length() + 1; + String currentDir = StringUtils.substring(uploadDir, dirLastIndex); + return Constants.RESOURCE_PREFIX + "/" + currentDir + "/" + fileName; + } + + /** + * 文件大小校验 + * + * @param file 上传的文件 + * @return + * @throws FileSizeLimitExceededException 如果超出最大大小 + * @throws InvalidExtensionException + */ + public static final void assertAllowed(MultipartFile file, String[] allowedExtension) + throws FileSizeLimitExceededException, InvalidExtensionException + { + long size = file.getSize(); + if (size > DEFAULT_MAX_SIZE) + { + throw new FileSizeLimitExceededException(DEFAULT_MAX_SIZE / 1024 / 1024); + } + + String fileName = file.getOriginalFilename(); + String extension = getExtension(file); + if (allowedExtension != null && !isAllowedExtension(extension, allowedExtension)) + { + if (allowedExtension == MimeTypeUtils.IMAGE_EXTENSION) + { + throw new InvalidExtensionException.InvalidImageExtensionException(allowedExtension, extension, + fileName); + } + else if (allowedExtension == MimeTypeUtils.FLASH_EXTENSION) + { + throw new InvalidExtensionException.InvalidFlashExtensionException(allowedExtension, extension, + fileName); + } + else if (allowedExtension == MimeTypeUtils.MEDIA_EXTENSION) + { + throw new InvalidExtensionException.InvalidMediaExtensionException(allowedExtension, extension, + fileName); + } + else if (allowedExtension == MimeTypeUtils.VIDEO_EXTENSION) + { + throw new InvalidExtensionException.InvalidVideoExtensionException(allowedExtension, extension, + fileName); + } + else + { + throw new InvalidExtensionException(allowedExtension, extension, fileName); + } + } + } + + /** + * 判断MIME类型是否是允许的MIME类型 + * + * @param extension + * @param allowedExtension + * @return + */ + public static final boolean isAllowedExtension(String extension, String[] allowedExtension) + { + for (String str : allowedExtension) + { + if (str.equalsIgnoreCase(extension)) + { + return true; + } + } + return false; + } + + /** + * 获取文件名的后缀 + * + * @param file 表单文件 + * @return 后缀名 + */ + public static final String getExtension(MultipartFile file) + { + String extension = FilenameUtils.getExtension(file.getOriginalFilename()); + if (StringUtils.isEmpty(extension)) + { + extension = MimeTypeUtils.getExtension(Objects.requireNonNull(file.getContentType())); + } + return extension; + } +} \ No newline at end of file diff --git a/alive-common/src/main/java/com/ruoyi/common/utils/file/FileUtils.java b/alive-common/src/main/java/com/ruoyi/common/utils/file/FileUtils.java new file mode 100644 index 0000000..9eb0f4b --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/utils/file/FileUtils.java @@ -0,0 +1,274 @@ +package com.ruoyi.common.utils.file; + +import java.io.File; +import java.io.FileInputStream; +import java.io.FileNotFoundException; +import java.io.FileOutputStream; +import java.io.IOException; +import java.io.OutputStream; +import java.io.UnsupportedEncodingException; +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import org.apache.commons.io.IOUtils; +import org.apache.commons.lang3.ArrayUtils; +import com.ruoyi.common.config.RuoYiConfig; +import com.ruoyi.common.utils.DateUtils; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.common.utils.uuid.IdUtils; + +/** + * 文件处理工具类 + * + * @author ruoyi + */ +public class FileUtils +{ + public static String FILENAME_PATTERN = "[a-zA-Z0-9_\\-\\|\\.\\u4e00-\\u9fa5]+"; + + /** + * 输出指定文件的byte数组 + * + * @param filePath 文件路径 + * @param os 输出流 + * @return + */ + public static void writeBytes(String filePath, OutputStream os) throws IOException + { + FileInputStream fis = null; + try + { + File file = new File(filePath); + if (!file.exists()) + { + throw new FileNotFoundException(filePath); + } + fis = new FileInputStream(file); + byte[] b = new byte[1024]; + int length; + while ((length = fis.read(b)) > 0) + { + os.write(b, 0, length); + } + } + catch (IOException e) + { + throw e; + } + finally + { + IOUtils.close(os); + IOUtils.close(fis); + } + } + + /** + * 写数据到文件中 + * + * @param data 数据 + * @return 目标文件 + * @throws IOException IO异常 + */ + public static String writeImportBytes(byte[] data) throws IOException + { + return writeBytes(data, RuoYiConfig.getImportPath()); + } + + /** + * 写数据到文件中 + * + * @param data 数据 + * @param uploadDir 目标文件 + * @return 目标文件 + * @throws IOException IO异常 + */ + public static String writeBytes(byte[] data, String uploadDir) throws IOException + { + FileOutputStream fos = null; + String pathName = ""; + try + { + String extension = getFileExtendName(data); + pathName = DateUtils.datePath() + "/" + IdUtils.fastUUID() + "." + extension; + File file = FileUploadUtils.getAbsoluteFile(uploadDir, pathName); + fos = new FileOutputStream(file); + fos.write(data); + } + finally + { + IOUtils.close(fos); + } + return FileUploadUtils.getPathFileName(uploadDir, pathName); + } + + /** + * 删除文件 + * + * @param filePath 文件 + * @return + */ + public static boolean deleteFile(String filePath) + { + boolean flag = false; + File file = new File(filePath); + // 路径为文件且不为空则进行删除 + if (file.isFile() && file.exists()) + { + file.delete(); + flag = true; + } + return flag; + } + + /** + * 文件名称验证 + * + * @param filename 文件名称 + * @return true 正常 false 非法 + */ + public static boolean isValidFilename(String filename) + { + return filename.matches(FILENAME_PATTERN); + } + + /** + * 检查文件是否可下载 + * + * @param resource 需要下载的文件 + * @return true 正常 false 非法 + */ + public static boolean checkAllowDownload(String resource) + { + // 禁止目录上跳级别 + if (StringUtils.contains(resource, "..")) + { + return false; + } + + // 检查允许下载的文件规则 + if (ArrayUtils.contains(MimeTypeUtils.DEFAULT_ALLOWED_EXTENSION, FileTypeUtils.getFileType(resource))) + { + return true; + } + + // 不在允许下载的文件规则 + return false; + } + + /** + * 下载文件名重新编码 + * + * @param request 请求对象 + * @param fileName 文件名 + * @return 编码后的文件名 + */ + public static String setFileDownloadHeader(HttpServletRequest request, String fileName) throws UnsupportedEncodingException + { + final String agent = request.getHeader("USER-AGENT"); + String filename = fileName; + if (agent.contains("MSIE")) + { + // IE浏览器 + filename = URLEncoder.encode(filename, "utf-8"); + filename = filename.replace("+", " "); + } + else if (agent.contains("Firefox")) + { + // 火狐浏览器 + filename = new String(fileName.getBytes(), "ISO8859-1"); + } + else if (agent.contains("Chrome")) + { + // google浏览器 + filename = URLEncoder.encode(filename, "utf-8"); + } + else + { + // 其它浏览器 + filename = URLEncoder.encode(filename, "utf-8"); + } + return filename; + } + + /** + * 下载文件名重新编码 + * + * @param response 响应对象 + * @param realFileName 真实文件名 + * @return + */ + public static void setAttachmentResponseHeader(HttpServletResponse response, String realFileName) throws UnsupportedEncodingException + { + String percentEncodedFileName = percentEncode(realFileName); + + StringBuilder contentDispositionValue = new StringBuilder(); + contentDispositionValue.append("attachment; filename=") + .append(percentEncodedFileName) + .append(";") + .append("filename*=") + .append("utf-8''") + .append(percentEncodedFileName); + + response.setHeader("Content-disposition", contentDispositionValue.toString()); + } + + /** + * 百分号编码工具方法 + * + * @param s 需要百分号编码的字符串 + * @return 百分号编码后的字符串 + */ + public static String percentEncode(String s) throws UnsupportedEncodingException + { + String encode = URLEncoder.encode(s, StandardCharsets.UTF_8.toString()); + return encode.replaceAll("\\+", "%20"); + } + + /** + * 获取图像后缀 + * + * @param photoByte 图像数据 + * @return 后缀名 + */ + public static String getFileExtendName(byte[] photoByte) + { + String strFileExtendName = "jpg"; + if ((photoByte[0] == 71) && (photoByte[1] == 73) && (photoByte[2] == 70) && (photoByte[3] == 56) + && ((photoByte[4] == 55) || (photoByte[4] == 57)) && (photoByte[5] == 97)) + { + strFileExtendName = "gif"; + } + else if ((photoByte[6] == 74) && (photoByte[7] == 70) && (photoByte[8] == 73) && (photoByte[9] == 70)) + { + strFileExtendName = "jpg"; + } + else if ((photoByte[0] == 66) && (photoByte[1] == 77)) + { + strFileExtendName = "bmp"; + } + else if ((photoByte[1] == 80) && (photoByte[2] == 78) && (photoByte[3] == 71)) + { + strFileExtendName = "png"; + } + return strFileExtendName; + } + + /** + * 获取名称 + * + * @param fileName 路径名称 + * @return 没有文件路径的名称 + */ + public static String getName(String fileName) + { + if (fileName == null) + { + return null; + } + int lastUnixPos = fileName.lastIndexOf('/'); + int lastWindowsPos = fileName.lastIndexOf('\\'); + int index = Math.max(lastUnixPos, lastWindowsPos); + return fileName.substring(index + 1); + } +} diff --git a/alive-common/src/main/java/com/ruoyi/common/utils/file/ImageUtils.java b/alive-common/src/main/java/com/ruoyi/common/utils/file/ImageUtils.java new file mode 100644 index 0000000..432dfda --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/utils/file/ImageUtils.java @@ -0,0 +1,98 @@ +package com.ruoyi.common.utils.file; + +import java.io.ByteArrayInputStream; +import java.io.FileInputStream; +import java.io.InputStream; +import java.net.URL; +import java.net.URLConnection; +import java.util.Arrays; +import org.apache.poi.util.IOUtils; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import com.ruoyi.common.config.RuoYiConfig; +import com.ruoyi.common.constant.Constants; +import com.ruoyi.common.utils.StringUtils; + +/** + * 图片处理工具类 + * + * @author ruoyi + */ +public class ImageUtils +{ + private static final Logger log = LoggerFactory.getLogger(ImageUtils.class); + + public static byte[] getImage(String imagePath) + { + InputStream is = getFile(imagePath); + try + { + return IOUtils.toByteArray(is); + } + catch (Exception e) + { + log.error("图片加载异常 {}", e); + return null; + } + finally + { + IOUtils.closeQuietly(is); + } + } + + public static InputStream getFile(String imagePath) + { + try + { + byte[] result = readFile(imagePath); + result = Arrays.copyOf(result, result.length); + return new ByteArrayInputStream(result); + } + catch (Exception e) + { + log.error("获取图片异常 {}", e); + } + return null; + } + + /** + * 读取文件为字节数据 + * + * @param url 地址 + * @return 字节数据 + */ + public static byte[] readFile(String url) + { + InputStream in = null; + try + { + if (url.startsWith("http")) + { + // 网络地址 + URL urlObj = new URL(url); + URLConnection urlConnection = urlObj.openConnection(); + urlConnection.setConnectTimeout(30 * 1000); + urlConnection.setReadTimeout(60 * 1000); + urlConnection.setDoInput(true); + in = urlConnection.getInputStream(); + } + else + { + // 本机地址 + String localPath = RuoYiConfig.getProfile(); + String downloadPath = localPath + StringUtils.substringAfter(url, Constants.RESOURCE_PREFIX); + in = new FileInputStream(downloadPath); + } + return IOUtils.toByteArray(in); + } + catch (Exception e) + { + log.error("获取文件路径异常 {}", e); + return null; + } + finally + { + IOUtils.closeQuietly(in); + } + } +} diff --git a/alive-common/src/main/java/com/ruoyi/common/utils/file/MimeTypeUtils.java b/alive-common/src/main/java/com/ruoyi/common/utils/file/MimeTypeUtils.java new file mode 100644 index 0000000..371e823 --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/utils/file/MimeTypeUtils.java @@ -0,0 +1,59 @@ +package com.ruoyi.common.utils.file; + +/** + * 媒体类型工具类 + * + * @author ruoyi + */ +public class MimeTypeUtils +{ + public static final String IMAGE_PNG = "image/png"; + + public static final String IMAGE_JPG = "image/jpg"; + + public static final String IMAGE_JPEG = "image/jpeg"; + + public static final String IMAGE_BMP = "image/bmp"; + + public static final String IMAGE_GIF = "image/gif"; + + public static final String[] IMAGE_EXTENSION = { "bmp", "gif", "jpg", "jpeg", "png" }; + + public static final String[] FLASH_EXTENSION = { "swf", "flv" }; + + public static final String[] MEDIA_EXTENSION = { "swf", "flv", "mp3", "wav", "wma", "wmv", "mid", "avi", "mpg", + "asf", "rm", "rmvb" }; + + public static final String[] VIDEO_EXTENSION = { "mp4", "avi", "rmvb" }; + + public static final String[] DEFAULT_ALLOWED_EXTENSION = { + // 图片 + "bmp", "gif", "jpg", "jpeg", "png", + // word excel powerpoint + "doc", "docx", "xls", "xlsx", "ppt", "pptx", "html", "htm", "txt", + // 压缩文件 + "rar", "zip", "gz", "bz2", + // 视频格式 + "mp4", "avi", "rmvb", + // pdf + "pdf" }; + + public static String getExtension(String prefix) + { + switch (prefix) + { + case IMAGE_PNG: + return "png"; + case IMAGE_JPG: + return "jpg"; + case IMAGE_JPEG: + return "jpeg"; + case IMAGE_BMP: + return "bmp"; + case IMAGE_GIF: + return "gif"; + default: + return ""; + } + } +} diff --git a/alive-common/src/main/java/com/ruoyi/common/utils/html/EscapeUtil.java b/alive-common/src/main/java/com/ruoyi/common/utils/html/EscapeUtil.java new file mode 100644 index 0000000..f52e83e --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/utils/html/EscapeUtil.java @@ -0,0 +1,167 @@ +package com.ruoyi.common.utils.html; + +import com.ruoyi.common.utils.StringUtils; + +/** + * 转义和反转义工具类 + * + * @author ruoyi + */ +public class EscapeUtil +{ + public static final String RE_HTML_MARK = "(<[^<]*?>)|(<[\\s]*?/[^<]*?>)|(<[^<]*?/[\\s]*?>)"; + + private static final char[][] TEXT = new char[64][]; + + static + { + for (int i = 0; i < 64; i++) + { + TEXT[i] = new char[] { (char) i }; + } + + // special HTML characters + TEXT['\''] = "'".toCharArray(); // 单引号 + TEXT['"'] = """.toCharArray(); // 双引号 + TEXT['&'] = "&".toCharArray(); // &符 + TEXT['<'] = "<".toCharArray(); // 小于号 + TEXT['>'] = ">".toCharArray(); // 大于号 + } + + /** + * 转义文本中的HTML字符为安全的字符 + * + * @param text 被转义的文本 + * @return 转义后的文本 + */ + public static String escape(String text) + { + return encode(text); + } + + /** + * 还原被转义的HTML特殊字符 + * + * @param content 包含转义符的HTML内容 + * @return 转换后的字符串 + */ + public static String unescape(String content) + { + return decode(content); + } + + /** + * 清除所有HTML标签,但是不删除标签内的内容 + * + * @param content 文本 + * @return 清除标签后的文本 + */ + public static String clean(String content) + { + return new HTMLFilter().filter(content); + } + + /** + * Escape编码 + * + * @param text 被编码的文本 + * @return 编码后的字符 + */ + private static String encode(String text) + { + if (StringUtils.isEmpty(text)) + { + return StringUtils.EMPTY; + } + + final StringBuilder tmp = new StringBuilder(text.length() * 6); + char c; + for (int i = 0; i < text.length(); i++) + { + c = text.charAt(i); + if (c < 256) + { + tmp.append("%"); + if (c < 16) + { + tmp.append("0"); + } + tmp.append(Integer.toString(c, 16)); + } + else + { + tmp.append("%u"); + if (c <= 0xfff) + { + // issue#I49JU8@Gitee + tmp.append("0"); + } + tmp.append(Integer.toString(c, 16)); + } + } + return tmp.toString(); + } + + /** + * Escape解码 + * + * @param content 被转义的内容 + * @return 解码后的字符串 + */ + public static String decode(String content) + { + if (StringUtils.isEmpty(content)) + { + return content; + } + + StringBuilder tmp = new StringBuilder(content.length()); + int lastPos = 0, pos = 0; + char ch; + while (lastPos < content.length()) + { + pos = content.indexOf("%", lastPos); + if (pos == lastPos) + { + if (content.charAt(pos + 1) == 'u') + { + ch = (char) Integer.parseInt(content.substring(pos + 2, pos + 6), 16); + tmp.append(ch); + lastPos = pos + 6; + } + else + { + ch = (char) Integer.parseInt(content.substring(pos + 1, pos + 3), 16); + tmp.append(ch); + lastPos = pos + 3; + } + } + else + { + if (pos == -1) + { + tmp.append(content.substring(lastPos)); + lastPos = content.length(); + } + else + { + tmp.append(content.substring(lastPos, pos)); + lastPos = pos; + } + } + } + return tmp.toString(); + } + + public static void main(String[] args) + { + String html = ""; + String escape = EscapeUtil.escape(html); + // String html = "ipt>alert(\"XSS\")ipt>"; + // String html = "<123"; + // String html = "123>"; + System.out.println("clean: " + EscapeUtil.clean(html)); + System.out.println("escape: " + escape); + System.out.println("unescape: " + EscapeUtil.unescape(escape)); + } +} diff --git a/alive-common/src/main/java/com/ruoyi/common/utils/html/HTMLFilter.java b/alive-common/src/main/java/com/ruoyi/common/utils/html/HTMLFilter.java new file mode 100644 index 0000000..cd8cd4f --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/utils/html/HTMLFilter.java @@ -0,0 +1,570 @@ +package com.ruoyi.common.utils.html; + +import java.util.ArrayList; +import java.util.Collections; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.ConcurrentHashMap; +import java.util.concurrent.ConcurrentMap; +import java.util.regex.Matcher; +import java.util.regex.Pattern; + +/** + * HTML过滤器,用于去除XSS漏洞隐患。 + * + * @author ruoyi + */ +public final class HTMLFilter +{ + /** + * regex flag union representing /si modifiers in php + **/ + private static final int REGEX_FLAGS_SI = Pattern.CASE_INSENSITIVE | Pattern.DOTALL; + private static final Pattern P_COMMENTS = Pattern.compile("", Pattern.DOTALL); + private static final Pattern P_COMMENT = Pattern.compile("^!--(.*)--$", REGEX_FLAGS_SI); + private static final Pattern P_TAGS = Pattern.compile("<(.*?)>", Pattern.DOTALL); + private static final Pattern P_END_TAG = Pattern.compile("^/([a-z0-9]+)", REGEX_FLAGS_SI); + private static final Pattern P_START_TAG = Pattern.compile("^([a-z0-9]+)(.*?)(/?)$", REGEX_FLAGS_SI); + private static final Pattern P_QUOTED_ATTRIBUTES = Pattern.compile("([a-z0-9]+)=([\"'])(.*?)\\2", REGEX_FLAGS_SI); + private static final Pattern P_UNQUOTED_ATTRIBUTES = Pattern.compile("([a-z0-9]+)(=)([^\"\\s']+)", REGEX_FLAGS_SI); + private static final Pattern P_PROTOCOL = Pattern.compile("^([^:]+):", REGEX_FLAGS_SI); + private static final Pattern P_ENTITY = Pattern.compile("&#(\\d+);?"); + private static final Pattern P_ENTITY_UNICODE = Pattern.compile("&#x([0-9a-f]+);?"); + private static final Pattern P_ENCODE = Pattern.compile("%([0-9a-f]{2});?"); + private static final Pattern P_VALID_ENTITIES = Pattern.compile("&([^&;]*)(?=(;|&|$))"); + private static final Pattern P_VALID_QUOTES = Pattern.compile("(>|^)([^<]+?)(<|$)", Pattern.DOTALL); + private static final Pattern P_END_ARROW = Pattern.compile("^>"); + private static final Pattern P_BODY_TO_END = Pattern.compile("<([^>]*?)(?=<|$)"); + private static final Pattern P_XML_CONTENT = Pattern.compile("(^|>)([^<]*?)(?=>)"); + private static final Pattern P_STRAY_LEFT_ARROW = Pattern.compile("<([^>]*?)(?=<|$)"); + private static final Pattern P_STRAY_RIGHT_ARROW = Pattern.compile("(^|>)([^<]*?)(?=>)"); + private static final Pattern P_AMP = Pattern.compile("&"); + private static final Pattern P_QUOTE = Pattern.compile("\""); + private static final Pattern P_LEFT_ARROW = Pattern.compile("<"); + private static final Pattern P_RIGHT_ARROW = Pattern.compile(">"); + private static final Pattern P_BOTH_ARROWS = Pattern.compile("<>"); + + // @xxx could grow large... maybe use sesat's ReferenceMap + private static final ConcurrentMap P_REMOVE_PAIR_BLANKS = new ConcurrentHashMap<>(); + private static final ConcurrentMap P_REMOVE_SELF_BLANKS = new ConcurrentHashMap<>(); + + /** + * set of allowed html elements, along with allowed attributes for each element + **/ + private final Map> vAllowed; + /** + * counts of open tags for each (allowable) html element + **/ + private final Map vTagCounts = new HashMap<>(); + + /** + * html elements which must always be self-closing (e.g. "") + **/ + private final String[] vSelfClosingTags; + /** + * html elements which must always have separate opening and closing tags (e.g. "") + **/ + private final String[] vNeedClosingTags; + /** + * set of disallowed html elements + **/ + private final String[] vDisallowed; + /** + * attributes which should be checked for valid protocols + **/ + private final String[] vProtocolAtts; + /** + * allowed protocols + **/ + private final String[] vAllowedProtocols; + /** + * tags which should be removed if they contain no content (e.g. "" or "") + **/ + private final String[] vRemoveBlanks; + /** + * entities allowed within html markup + **/ + private final String[] vAllowedEntities; + /** + * flag determining whether comments are allowed in input String. + */ + private final boolean stripComment; + private final boolean encodeQuotes; + /** + * flag determining whether to try to make tags when presented with "unbalanced" angle brackets (e.g. "" + * becomes " text "). If set to false, unbalanced angle brackets will be html escaped. + */ + private final boolean alwaysMakeTags; + + /** + * Default constructor. + */ + public HTMLFilter() + { + vAllowed = new HashMap<>(); + + final ArrayList a_atts = new ArrayList<>(); + a_atts.add("href"); + a_atts.add("target"); + vAllowed.put("a", a_atts); + + final ArrayList img_atts = new ArrayList<>(); + img_atts.add("src"); + img_atts.add("width"); + img_atts.add("height"); + img_atts.add("alt"); + vAllowed.put("img", img_atts); + + final ArrayList no_atts = new ArrayList<>(); + vAllowed.put("b", no_atts); + vAllowed.put("strong", no_atts); + vAllowed.put("i", no_atts); + vAllowed.put("em", no_atts); + + vSelfClosingTags = new String[] { "img" }; + vNeedClosingTags = new String[] { "a", "b", "strong", "i", "em" }; + vDisallowed = new String[] {}; + vAllowedProtocols = new String[] { "http", "mailto", "https" }; // no ftp. + vProtocolAtts = new String[] { "src", "href" }; + vRemoveBlanks = new String[] { "a", "b", "strong", "i", "em" }; + vAllowedEntities = new String[] { "amp", "gt", "lt", "quot" }; + stripComment = true; + encodeQuotes = true; + alwaysMakeTags = false; + } + + /** + * Map-parameter configurable constructor. + * + * @param conf map containing configuration. keys match field names. + */ + @SuppressWarnings("unchecked") + public HTMLFilter(final Map conf) + { + + assert conf.containsKey("vAllowed") : "configuration requires vAllowed"; + assert conf.containsKey("vSelfClosingTags") : "configuration requires vSelfClosingTags"; + assert conf.containsKey("vNeedClosingTags") : "configuration requires vNeedClosingTags"; + assert conf.containsKey("vDisallowed") : "configuration requires vDisallowed"; + assert conf.containsKey("vAllowedProtocols") : "configuration requires vAllowedProtocols"; + assert conf.containsKey("vProtocolAtts") : "configuration requires vProtocolAtts"; + assert conf.containsKey("vRemoveBlanks") : "configuration requires vRemoveBlanks"; + assert conf.containsKey("vAllowedEntities") : "configuration requires vAllowedEntities"; + + vAllowed = Collections.unmodifiableMap((HashMap>) conf.get("vAllowed")); + vSelfClosingTags = (String[]) conf.get("vSelfClosingTags"); + vNeedClosingTags = (String[]) conf.get("vNeedClosingTags"); + vDisallowed = (String[]) conf.get("vDisallowed"); + vAllowedProtocols = (String[]) conf.get("vAllowedProtocols"); + vProtocolAtts = (String[]) conf.get("vProtocolAtts"); + vRemoveBlanks = (String[]) conf.get("vRemoveBlanks"); + vAllowedEntities = (String[]) conf.get("vAllowedEntities"); + stripComment = conf.containsKey("stripComment") ? (Boolean) conf.get("stripComment") : true; + encodeQuotes = conf.containsKey("encodeQuotes") ? (Boolean) conf.get("encodeQuotes") : true; + alwaysMakeTags = conf.containsKey("alwaysMakeTags") ? (Boolean) conf.get("alwaysMakeTags") : true; + } + + private void reset() + { + vTagCounts.clear(); + } + + // --------------------------------------------------------------- + // my versions of some PHP library functions + public static String chr(final int decimal) + { + return String.valueOf((char) decimal); + } + + public static String htmlSpecialChars(final String s) + { + String result = s; + result = regexReplace(P_AMP, "&", result); + result = regexReplace(P_QUOTE, """, result); + result = regexReplace(P_LEFT_ARROW, "<", result); + result = regexReplace(P_RIGHT_ARROW, ">", result); + return result; + } + + // --------------------------------------------------------------- + + /** + * given a user submitted input String, filter out any invalid or restricted html. + * + * @param input text (i.e. submitted by a user) than may contain html + * @return "clean" version of input, with only valid, whitelisted html elements allowed + */ + public String filter(final String input) + { + reset(); + String s = input; + + s = escapeComments(s); + + s = balanceHTML(s); + + s = checkTags(s); + + s = processRemoveBlanks(s); + + // s = validateEntities(s); + + return s; + } + + public boolean isAlwaysMakeTags() + { + return alwaysMakeTags; + } + + public boolean isStripComments() + { + return stripComment; + } + + private String escapeComments(final String s) + { + final Matcher m = P_COMMENTS.matcher(s); + final StringBuffer buf = new StringBuffer(); + if (m.find()) + { + final String match = m.group(1); // (.*?) + m.appendReplacement(buf, Matcher.quoteReplacement("")); + } + m.appendTail(buf); + + return buf.toString(); + } + + private String balanceHTML(String s) + { + if (alwaysMakeTags) + { + // + // try and form html + // + s = regexReplace(P_END_ARROW, "", s); + // 不追加结束标签 + s = regexReplace(P_BODY_TO_END, "<$1>", s); + s = regexReplace(P_XML_CONTENT, "$1<$2", s); + + } + else + { + // + // escape stray brackets + // + s = regexReplace(P_STRAY_LEFT_ARROW, "<$1", s); + s = regexReplace(P_STRAY_RIGHT_ARROW, "$1$2><", s); + + // + // the last regexp causes '<>' entities to appear + // (we need to do a lookahead assertion so that the last bracket can + // be used in the next pass of the regexp) + // + s = regexReplace(P_BOTH_ARROWS, "", s); + } + + return s; + } + + private String checkTags(String s) + { + Matcher m = P_TAGS.matcher(s); + + final StringBuffer buf = new StringBuffer(); + while (m.find()) + { + String replaceStr = m.group(1); + replaceStr = processTag(replaceStr); + m.appendReplacement(buf, Matcher.quoteReplacement(replaceStr)); + } + m.appendTail(buf); + + // these get tallied in processTag + // (remember to reset before subsequent calls to filter method) + final StringBuilder sBuilder = new StringBuilder(buf.toString()); + for (String key : vTagCounts.keySet()) + { + for (int ii = 0; ii < vTagCounts.get(key); ii++) + { + sBuilder.append(""); + } + } + s = sBuilder.toString(); + + return s; + } + + private String processRemoveBlanks(final String s) + { + String result = s; + for (String tag : vRemoveBlanks) + { + if (!P_REMOVE_PAIR_BLANKS.containsKey(tag)) + { + P_REMOVE_PAIR_BLANKS.putIfAbsent(tag, Pattern.compile("<" + tag + "(\\s[^>]*)?>")); + } + result = regexReplace(P_REMOVE_PAIR_BLANKS.get(tag), "", result); + if (!P_REMOVE_SELF_BLANKS.containsKey(tag)) + { + P_REMOVE_SELF_BLANKS.putIfAbsent(tag, Pattern.compile("<" + tag + "(\\s[^>]*)?/>")); + } + result = regexReplace(P_REMOVE_SELF_BLANKS.get(tag), "", result); + } + + return result; + } + + private static String regexReplace(final Pattern regex_pattern, final String replacement, final String s) + { + Matcher m = regex_pattern.matcher(s); + return m.replaceAll(replacement); + } + + private String processTag(final String s) + { + // ending tags + Matcher m = P_END_TAG.matcher(s); + if (m.find()) + { + final String name = m.group(1).toLowerCase(); + if (allowed(name)) + { + if (false == inArray(name, vSelfClosingTags)) + { + if (vTagCounts.containsKey(name)) + { + vTagCounts.put(name, vTagCounts.get(name) - 1); + return ""; + } + } + } + } + + // starting tags + m = P_START_TAG.matcher(s); + if (m.find()) + { + final String name = m.group(1).toLowerCase(); + final String body = m.group(2); + String ending = m.group(3); + + // debug( "in a starting tag, name='" + name + "'; body='" + body + "'; ending='" + ending + "'" ); + if (allowed(name)) + { + final StringBuilder params = new StringBuilder(); + + final Matcher m2 = P_QUOTED_ATTRIBUTES.matcher(body); + final Matcher m3 = P_UNQUOTED_ATTRIBUTES.matcher(body); + final List paramNames = new ArrayList<>(); + final List paramValues = new ArrayList<>(); + while (m2.find()) + { + paramNames.add(m2.group(1)); // ([a-z0-9]+) + paramValues.add(m2.group(3)); // (.*?) + } + while (m3.find()) + { + paramNames.add(m3.group(1)); // ([a-z0-9]+) + paramValues.add(m3.group(3)); // ([^\"\\s']+) + } + + String paramName, paramValue; + for (int ii = 0; ii < paramNames.size(); ii++) + { + paramName = paramNames.get(ii).toLowerCase(); + paramValue = paramValues.get(ii); + + // debug( "paramName='" + paramName + "'" ); + // debug( "paramValue='" + paramValue + "'" ); + // debug( "allowed? " + vAllowed.get( name ).contains( paramName ) ); + + if (allowedAttribute(name, paramName)) + { + if (inArray(paramName, vProtocolAtts)) + { + paramValue = processParamProtocol(paramValue); + } + params.append(' ').append(paramName).append("=\"").append(paramValue).append("\""); + } + } + + if (inArray(name, vSelfClosingTags)) + { + ending = " /"; + } + + if (inArray(name, vNeedClosingTags)) + { + ending = ""; + } + + if (ending == null || ending.length() < 1) + { + if (vTagCounts.containsKey(name)) + { + vTagCounts.put(name, vTagCounts.get(name) + 1); + } + else + { + vTagCounts.put(name, 1); + } + } + else + { + ending = " /"; + } + return "<" + name + params + ending + ">"; + } + else + { + return ""; + } + } + + // comments + m = P_COMMENT.matcher(s); + if (!stripComment && m.find()) + { + return "<" + m.group() + ">"; + } + + return ""; + } + + private String processParamProtocol(String s) + { + s = decodeEntities(s); + final Matcher m = P_PROTOCOL.matcher(s); + if (m.find()) + { + final String protocol = m.group(1); + if (!inArray(protocol, vAllowedProtocols)) + { + // bad protocol, turn into local anchor link instead + s = "#" + s.substring(protocol.length() + 1); + if (s.startsWith("#//")) + { + s = "#" + s.substring(3); + } + } + } + + return s; + } + + private String decodeEntities(String s) + { + StringBuffer buf = new StringBuffer(); + + Matcher m = P_ENTITY.matcher(s); + while (m.find()) + { + final String match = m.group(1); + final int decimal = Integer.decode(match).intValue(); + m.appendReplacement(buf, Matcher.quoteReplacement(chr(decimal))); + } + m.appendTail(buf); + s = buf.toString(); + + buf = new StringBuffer(); + m = P_ENTITY_UNICODE.matcher(s); + while (m.find()) + { + final String match = m.group(1); + final int decimal = Integer.valueOf(match, 16).intValue(); + m.appendReplacement(buf, Matcher.quoteReplacement(chr(decimal))); + } + m.appendTail(buf); + s = buf.toString(); + + buf = new StringBuffer(); + m = P_ENCODE.matcher(s); + while (m.find()) + { + final String match = m.group(1); + final int decimal = Integer.valueOf(match, 16).intValue(); + m.appendReplacement(buf, Matcher.quoteReplacement(chr(decimal))); + } + m.appendTail(buf); + s = buf.toString(); + + s = validateEntities(s); + return s; + } + + private String validateEntities(final String s) + { + StringBuffer buf = new StringBuffer(); + + // validate entities throughout the string + Matcher m = P_VALID_ENTITIES.matcher(s); + while (m.find()) + { + final String one = m.group(1); // ([^&;]*) + final String two = m.group(2); // (?=(;|&|$)) + m.appendReplacement(buf, Matcher.quoteReplacement(checkEntity(one, two))); + } + m.appendTail(buf); + + return encodeQuotes(buf.toString()); + } + + private String encodeQuotes(final String s) + { + if (encodeQuotes) + { + StringBuffer buf = new StringBuffer(); + Matcher m = P_VALID_QUOTES.matcher(s); + while (m.find()) + { + final String one = m.group(1); // (>|^) + final String two = m.group(2); // ([^<]+?) + final String three = m.group(3); // (<|$) + // 不替换双引号为",防止json格式无效 regexReplace(P_QUOTE, """, two) + m.appendReplacement(buf, Matcher.quoteReplacement(one + two + three)); + } + m.appendTail(buf); + return buf.toString(); + } + else + { + return s; + } + } + + private String checkEntity(final String preamble, final String term) + { + + return ";".equals(term) && isValidEntity(preamble) ? '&' + preamble : "&" + preamble; + } + + private boolean isValidEntity(final String entity) + { + return inArray(entity, vAllowedEntities); + } + + private static boolean inArray(final String s, final String[] array) + { + for (String item : array) + { + if (item != null && item.equals(s)) + { + return true; + } + } + return false; + } + + private boolean allowed(final String name) + { + return (vAllowed.isEmpty() || vAllowed.containsKey(name)) && !inArray(name, vDisallowed); + } + + private boolean allowedAttribute(final String name, final String paramName) + { + return allowed(name) && (vAllowed.isEmpty() || vAllowed.get(name).contains(paramName)); + } +} \ No newline at end of file diff --git a/alive-common/src/main/java/com/ruoyi/common/utils/http/HttpUtils.java b/alive-common/src/main/java/com/ruoyi/common/utils/http/HttpUtils.java new file mode 100644 index 0000000..254372b --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/utils/http/HttpUtils.java @@ -0,0 +1,275 @@ +package com.ruoyi.common.utils.http; + +import java.io.BufferedReader; +import java.io.IOException; +import java.io.InputStream; +import java.io.InputStreamReader; +import java.io.PrintWriter; +import java.net.ConnectException; +import java.net.SocketTimeoutException; +import java.net.URL; +import java.net.URLConnection; +import java.nio.charset.StandardCharsets; +import java.security.cert.X509Certificate; +import javax.net.ssl.HostnameVerifier; +import javax.net.ssl.HttpsURLConnection; +import javax.net.ssl.SSLContext; +import javax.net.ssl.SSLSession; +import javax.net.ssl.TrustManager; +import javax.net.ssl.X509TrustManager; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import com.ruoyi.common.constant.Constants; +import com.ruoyi.common.utils.StringUtils; + +/** + * 通用http发送方法 + * + * @author ruoyi + */ +public class HttpUtils +{ + private static final Logger log = LoggerFactory.getLogger(HttpUtils.class); + + /** + * 向指定 URL 发送GET方法的请求 + * + * @param url 发送请求的 URL + * @return 所代表远程资源的响应结果 + */ + public static String sendGet(String url) + { + return sendGet(url, StringUtils.EMPTY); + } + + /** + * 向指定 URL 发送GET方法的请求 + * + * @param url 发送请求的 URL + * @param param 请求参数,请求参数应该是 name1=value1&name2=value2 的形式。 + * @return 所代表远程资源的响应结果 + */ + public static String sendGet(String url, String param) + { + return sendGet(url, param, Constants.UTF8); + } + + /** + * 向指定 URL 发送GET方法的请求 + * + * @param url 发送请求的 URL + * @param param 请求参数,请求参数应该是 name1=value1&name2=value2 的形式。 + * @param contentType 编码类型 + * @return 所代表远程资源的响应结果 + */ + public static String sendGet(String url, String param, String contentType) + { + StringBuilder result = new StringBuilder(); + BufferedReader in = null; + try + { + String urlNameString = StringUtils.isNotBlank(param) ? url + "?" + param : url; + log.info("sendGet - {}", urlNameString); + URL realUrl = new URL(urlNameString); + URLConnection connection = realUrl.openConnection(); + connection.setRequestProperty("accept", "*/*"); + connection.setRequestProperty("connection", "Keep-Alive"); + connection.setRequestProperty("user-agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1;SV1)"); + connection.connect(); + in = new BufferedReader(new InputStreamReader(connection.getInputStream(), contentType)); + String line; + while ((line = in.readLine()) != null) + { + result.append(line); + } + log.info("recv - {}", result); + } + catch (ConnectException e) + { + log.error("调用HttpUtils.sendGet ConnectException, url=" + url + ",param=" + param, e); + } + catch (SocketTimeoutException e) + { + log.error("调用HttpUtils.sendGet SocketTimeoutException, url=" + url + ",param=" + param, e); + } + catch (IOException e) + { + log.error("调用失败HttpUtils.sendGet IOException, url=" + url + ",param=" + param); + return null; + } + catch (Exception e) + { + log.error("调用HttpsUtil.sendGet Exception, url=" + url + ",param=" + param, e); + } + finally + { + try + { + if (in != null) + { + in.close(); + } + } + catch (Exception ex) + { + log.error("调用in.close Exception, url=" + url + ",param=" + param, ex); + } + } + return result.toString(); + } + + /** + * 向指定 URL 发送POST方法的请求 + * + * @param url 发送请求的 URL + * @param param 请求参数,请求参数应该是 name1=value1&name2=value2 的形式。 + * @return 所代表远程资源的响应结果 + */ + public static String sendPost(String url, String param) + { + PrintWriter out = null; + BufferedReader in = null; + StringBuilder result = new StringBuilder(); + try + { + log.info("sendPost - {}", url); + URL realUrl = new URL(url); + URLConnection conn = realUrl.openConnection(); + conn.setRequestProperty("accept", "*/*"); + conn.setRequestProperty("connection", "Keep-Alive"); + conn.setRequestProperty("user-agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1;SV1)"); + conn.setRequestProperty("Accept-Charset", "utf-8"); + conn.setRequestProperty("contentType", "utf-8"); + conn.setDoOutput(true); + conn.setDoInput(true); + out = new PrintWriter(conn.getOutputStream()); + out.print(param); + out.flush(); + in = new BufferedReader(new InputStreamReader(conn.getInputStream(), StandardCharsets.UTF_8)); + String line; + while ((line = in.readLine()) != null) + { + result.append(line); + } + log.info("recv - {}", result); + } + catch (ConnectException e) + { + log.error("调用HttpUtils.sendPost ConnectException, url=" + url + ",param=" + param, e); + } + catch (SocketTimeoutException e) + { + log.error("调用HttpUtils.sendPost SocketTimeoutException, url=" + url + ",param=" + param, e); + } + catch (IOException e) + { + log.error("调用HttpUtils.sendPost IOException, url=" + url + ",param=" + param, e); + } + catch (Exception e) + { + log.error("调用HttpsUtil.sendPost Exception, url=" + url + ",param=" + param, e); + } + finally + { + try + { + if (out != null) + { + out.close(); + } + if (in != null) + { + in.close(); + } + } + catch (IOException ex) + { + log.error("调用in.close Exception, url=" + url + ",param=" + param, ex); + } + } + return result.toString(); + } + + public static String sendSSLPost(String url, String param) + { + StringBuilder result = new StringBuilder(); + String urlNameString = url + "?" + param; + try + { + log.info("sendSSLPost - {}", urlNameString); + SSLContext sc = SSLContext.getInstance("SSL"); + sc.init(null, new TrustManager[] { new TrustAnyTrustManager() }, new java.security.SecureRandom()); + URL console = new URL(urlNameString); + HttpsURLConnection conn = (HttpsURLConnection) console.openConnection(); + conn.setRequestProperty("accept", "*/*"); + conn.setRequestProperty("connection", "Keep-Alive"); + conn.setRequestProperty("user-agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1;SV1)"); + conn.setRequestProperty("Accept-Charset", "utf-8"); + conn.setRequestProperty("contentType", "utf-8"); + conn.setDoOutput(true); + conn.setDoInput(true); + + conn.setSSLSocketFactory(sc.getSocketFactory()); + conn.setHostnameVerifier(new TrustAnyHostnameVerifier()); + conn.connect(); + InputStream is = conn.getInputStream(); + BufferedReader br = new BufferedReader(new InputStreamReader(is)); + String ret = ""; + while ((ret = br.readLine()) != null) + { + if (ret != null && !ret.trim().equals("")) + { + result.append(new String(ret.getBytes(StandardCharsets.ISO_8859_1), StandardCharsets.UTF_8)); + } + } + log.info("recv - {}", result); + conn.disconnect(); + br.close(); + } + catch (ConnectException e) + { + log.error("调用HttpUtils.sendSSLPost ConnectException, url=" + url + ",param=" + param, e); + } + catch (SocketTimeoutException e) + { + log.error("调用HttpUtils.sendSSLPost SocketTimeoutException, url=" + url + ",param=" + param, e); + } + catch (IOException e) + { + log.error("调用HttpUtils.sendSSLPost IOException, url=" + url + ",param=" + param, e); + } + catch (Exception e) + { + log.error("调用HttpsUtil.sendSSLPost Exception, url=" + url + ",param=" + param, e); + } + return result.toString(); + } + + private static class TrustAnyTrustManager implements X509TrustManager + { + @Override + public void checkClientTrusted(X509Certificate[] chain, String authType) + { + } + + @Override + public void checkServerTrusted(X509Certificate[] chain, String authType) + { + } + + @Override + public X509Certificate[] getAcceptedIssuers() + { + return new X509Certificate[] {}; + } + } + + private static class TrustAnyHostnameVerifier implements HostnameVerifier + { + @Override + public boolean verify(String hostname, SSLSession session) + { + return true; + } + } +} \ No newline at end of file diff --git a/alive-common/src/main/java/com/ruoyi/common/utils/poi/ExcelHandlerAdapter.java b/alive-common/src/main/java/com/ruoyi/common/utils/poi/ExcelHandlerAdapter.java new file mode 100644 index 0000000..5ea74c1 --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/utils/poi/ExcelHandlerAdapter.java @@ -0,0 +1,19 @@ +package com.ruoyi.common.utils.poi; + +/** + * Excel数据格式处理适配器 + * + * @author ruoyi + */ +public interface ExcelHandlerAdapter +{ + /** + * 格式化 + * + * @param value 单元格数据值 + * @param args excel注解args参数组 + * + * @return 处理后的值 + */ + Object format(Object value, String[] args); +} diff --git a/alive-common/src/main/java/com/ruoyi/common/utils/poi/ExcelUtil.java b/alive-common/src/main/java/com/ruoyi/common/utils/poi/ExcelUtil.java new file mode 100644 index 0000000..6cca323 --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/utils/poi/ExcelUtil.java @@ -0,0 +1,1397 @@ +package com.ruoyi.common.utils.poi; + +import java.io.File; +import java.io.FileOutputStream; +import java.io.IOException; +import java.io.InputStream; +import java.io.OutputStream; +import java.lang.reflect.Field; +import java.lang.reflect.Method; +import java.math.BigDecimal; +import java.text.DecimalFormat; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Comparator; +import java.util.Date; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Set; +import java.util.UUID; +import java.util.stream.Collectors; +import javax.servlet.http.HttpServletResponse; +import org.apache.poi.hssf.usermodel.HSSFClientAnchor; +import org.apache.poi.hssf.usermodel.HSSFPicture; +import org.apache.poi.hssf.usermodel.HSSFPictureData; +import org.apache.poi.hssf.usermodel.HSSFShape; +import org.apache.poi.hssf.usermodel.HSSFSheet; +import org.apache.poi.hssf.usermodel.HSSFWorkbook; +import org.apache.poi.ooxml.POIXMLDocumentPart; +import org.apache.poi.ss.usermodel.BorderStyle; +import org.apache.poi.ss.usermodel.Cell; +import org.apache.poi.ss.usermodel.CellStyle; +import org.apache.poi.ss.usermodel.CellType; +import org.apache.poi.ss.usermodel.ClientAnchor; +import org.apache.poi.ss.usermodel.DataValidation; +import org.apache.poi.ss.usermodel.DataValidationConstraint; +import org.apache.poi.ss.usermodel.DataValidationHelper; +import org.apache.poi.ss.usermodel.DateUtil; +import org.apache.poi.ss.usermodel.Drawing; +import org.apache.poi.ss.usermodel.FillPatternType; +import org.apache.poi.ss.usermodel.Font; +import org.apache.poi.ss.usermodel.HorizontalAlignment; +import org.apache.poi.ss.usermodel.IndexedColors; +import org.apache.poi.ss.usermodel.PictureData; +import org.apache.poi.ss.usermodel.Row; +import org.apache.poi.ss.usermodel.Sheet; +import org.apache.poi.ss.usermodel.VerticalAlignment; +import org.apache.poi.ss.usermodel.Workbook; +import org.apache.poi.ss.usermodel.WorkbookFactory; +import org.apache.poi.ss.util.CellRangeAddress; +import org.apache.poi.ss.util.CellRangeAddressList; +import org.apache.poi.util.IOUtils; +import org.apache.poi.xssf.streaming.SXSSFWorkbook; +import org.apache.poi.xssf.usermodel.XSSFClientAnchor; +import org.apache.poi.xssf.usermodel.XSSFDataValidation; +import org.apache.poi.xssf.usermodel.XSSFDrawing; +import org.apache.poi.xssf.usermodel.XSSFPicture; +import org.apache.poi.xssf.usermodel.XSSFShape; +import org.apache.poi.xssf.usermodel.XSSFSheet; +import org.apache.poi.xssf.usermodel.XSSFWorkbook; +import org.openxmlformats.schemas.drawingml.x2006.spreadsheetDrawing.CTMarker; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.annotation.Excel.ColumnType; +import com.ruoyi.common.annotation.Excel.Type; +import com.ruoyi.common.annotation.Excels; +import com.ruoyi.common.config.RuoYiConfig; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.text.Convert; +import com.ruoyi.common.exception.UtilException; +import com.ruoyi.common.utils.DateUtils; +import com.ruoyi.common.utils.DictUtils; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.common.utils.file.FileTypeUtils; +import com.ruoyi.common.utils.file.FileUtils; +import com.ruoyi.common.utils.file.ImageUtils; +import com.ruoyi.common.utils.reflect.ReflectUtils; + +/** + * Excel相关处理 + * + * @author ruoyi + */ +public class ExcelUtil +{ + private static final Logger log = LoggerFactory.getLogger(ExcelUtil.class); + + public static final String[] FORMULA_STR = { "=", "-", "+", "@" }; + + /** + * Excel sheet最大行数,默认65536 + */ + public static final int sheetSize = 65536; + + /** + * 工作表名称 + */ + private String sheetName; + + /** + * 导出类型(EXPORT:导出数据;IMPORT:导入模板) + */ + private Type type; + + /** + * 工作薄对象 + */ + private Workbook wb; + + /** + * 工作表对象 + */ + private Sheet sheet; + + /** + * 样式列表 + */ + private Map styles; + + /** + * 导入导出数据列表 + */ + private List list; + + /** + * 注解列表 + */ + private List fields; + + /** + * 当前行号 + */ + private int rownum; + + /** + * 标题 + */ + private String title; + + /** + * 最大高度 + */ + private short maxHeight; + + /** + * 统计列表 + */ + private Map statistics = new HashMap(); + + /** + * 数字格式 + */ + private static final DecimalFormat DOUBLE_FORMAT = new DecimalFormat("######0.00"); + + /** + * 实体对象 + */ + public Class clazz; + + public ExcelUtil(Class clazz) + { + this.clazz = clazz; + } + + public void init(List list, String sheetName, String title, Type type) + { + if (list == null) + { + list = new ArrayList(); + } + this.list = list; + this.sheetName = sheetName; + this.type = type; + this.title = title; + createExcelField(); + createWorkbook(); + createTitle(); + } + + /** + * 创建excel第一行标题 + */ + public void createTitle() + { + if (StringUtils.isNotEmpty(title)) + { + Row titleRow = sheet.createRow(rownum == 0 ? rownum++ : 0); + titleRow.setHeightInPoints(30); + Cell titleCell = titleRow.createCell(0); + titleCell.setCellStyle(styles.get("title")); + titleCell.setCellValue(title); + sheet.addMergedRegion(new CellRangeAddress(titleRow.getRowNum(), titleRow.getRowNum(), titleRow.getRowNum(), + this.fields.size() - 1)); + } + } + + /** + * 对excel表单默认第一个索引名转换成list + * + * @param is 输入流 + * @return 转换后集合 + */ + public List importExcel(InputStream is) throws Exception + { + return importExcel(is, 0); + } + + /** + * 对excel表单默认第一个索引名转换成list + * + * @param is 输入流 + * @param titleNum 标题占用行数 + * @return 转换后集合 + */ + public List importExcel(InputStream is, int titleNum) throws Exception + { + return importExcel(StringUtils.EMPTY, is, titleNum); + } + + /** + * 对excel表单指定表格索引名转换成list + * + * @param sheetName 表格索引名 + * @param titleNum 标题占用行数 + * @param is 输入流 + * @return 转换后集合 + */ + public List importExcel(String sheetName, InputStream is, int titleNum) throws Exception + { + this.type = Type.IMPORT; + this.wb = WorkbookFactory.create(is); + List list = new ArrayList(); + // 如果指定sheet名,则取指定sheet中的内容 否则默认指向第1个sheet + Sheet sheet = StringUtils.isNotEmpty(sheetName) ? wb.getSheet(sheetName) : wb.getSheetAt(0); + if (sheet == null) + { + throw new IOException("文件sheet不存在"); + } + boolean isXSSFWorkbook = !(wb instanceof HSSFWorkbook); + Map pictures; + if (isXSSFWorkbook) + { + pictures = getSheetPictures07((XSSFSheet) sheet, (XSSFWorkbook) wb); + } + else + { + pictures = getSheetPictures03((HSSFSheet) sheet, (HSSFWorkbook) wb); + } + // 获取最后一个非空行的行下标,比如总行数为n,则返回的为n-1 + int rows = sheet.getLastRowNum(); + + if (rows > 0) + { + // 定义一个map用于存放excel列的序号和field. + Map cellMap = new HashMap(); + // 获取表头 + Row heard = sheet.getRow(titleNum); + for (int i = 0; i < heard.getPhysicalNumberOfCells(); i++) + { + Cell cell = heard.getCell(i); + if (StringUtils.isNotNull(cell)) + { + String value = this.getCellValue(heard, i).toString(); + cellMap.put(value, i); + } + else + { + cellMap.put(null, i); + } + } + // 有数据时才处理 得到类的所有field. + List fields = this.getFields(); + Map fieldsMap = new HashMap(); + for (Object[] objects : fields) + { + Excel attr = (Excel) objects[1]; + Integer column = cellMap.get(attr.name()); + if (column != null) + { + fieldsMap.put(column, objects); + } + } + for (int i = titleNum + 1; i <= rows; i++) + { + // 从第2行开始取数据,默认第一行是表头. + Row row = sheet.getRow(i); + // 判断当前行是否是空行 + if (isRowEmpty(row)) + { + continue; + } + T entity = null; + for (Map.Entry entry : fieldsMap.entrySet()) + { + Object val = this.getCellValue(row, entry.getKey()); + + // 如果不存在实例则新建. + entity = (entity == null ? clazz.newInstance() : entity); + // 从map中得到对应列的field. + Field field = (Field) entry.getValue()[0]; + Excel attr = (Excel) entry.getValue()[1]; + // 取得类型,并根据对象类型设置值. + Class fieldType = field.getType(); + if (String.class == fieldType) + { + String s = Convert.toStr(val); + if (StringUtils.endsWith(s, ".0")) + { + val = StringUtils.substringBefore(s, ".0"); + } + else + { + String dateFormat = field.getAnnotation(Excel.class).dateFormat(); + if (StringUtils.isNotEmpty(dateFormat)) + { + val = DateUtils.parseDateToStr(dateFormat, (Date) val); + } + else + { + val = Convert.toStr(val); + } + } + } + else if ((Integer.TYPE == fieldType || Integer.class == fieldType) && StringUtils.isNumeric(Convert.toStr(val))) + { + val = Convert.toInt(val); + } + else if (Long.TYPE == fieldType || Long.class == fieldType) + { + val = Convert.toLong(val); + } + else if (Double.TYPE == fieldType || Double.class == fieldType) + { + val = Convert.toDouble(val); + } + else if (Float.TYPE == fieldType || Float.class == fieldType) + { + val = Convert.toFloat(val); + } + else if (BigDecimal.class == fieldType) + { + val = Convert.toBigDecimal(val); + } + else if (Date.class == fieldType) + { + if (val instanceof String) + { + val = DateUtils.parseDate(val); + } + else if (val instanceof Double) + { + val = DateUtil.getJavaDate((Double) val); + } + } + else if (Boolean.TYPE == fieldType || Boolean.class == fieldType) + { + val = Convert.toBool(val, false); + } + if (StringUtils.isNotNull(fieldType)) + { + String propertyName = field.getName(); + if (StringUtils.isNotEmpty(attr.targetAttr())) + { + propertyName = field.getName() + "." + attr.targetAttr(); + } + else if (StringUtils.isNotEmpty(attr.readConverterExp())) + { + val = reverseByExp(Convert.toStr(val), attr.readConverterExp(), attr.separator()); + } + else if (StringUtils.isNotEmpty(attr.dictType())) + { + val = reverseDictByExp(Convert.toStr(val), attr.dictType(), attr.separator()); + } + else if (!attr.handler().equals(ExcelHandlerAdapter.class)) + { + val = dataFormatHandlerAdapter(val, attr); + } + else if (ColumnType.IMAGE == attr.cellType() && StringUtils.isNotEmpty(pictures)) + { + PictureData image = pictures.get(row.getRowNum() + "_" + entry.getKey()); + if (image == null) + { + val = ""; + } + else + { + byte[] data = image.getData(); + val = FileUtils.writeImportBytes(data); + } + } + ReflectUtils.invokeSetter(entity, propertyName, val); + } + } + list.add(entity); + } + } + return list; + } + + /** + * 对list数据源将其里面的数据导入到excel表单 + * + * @param list 导出数据集合 + * @param sheetName 工作表的名称 + * @return 结果 + */ + public AjaxResult exportExcel(List list, String sheetName) + { + return exportExcel(list, sheetName, StringUtils.EMPTY); + } + + /** + * 对list数据源将其里面的数据导入到excel表单 + * + * @param list 导出数据集合 + * @param sheetName 工作表的名称 + * @param title 标题 + * @return 结果 + */ + public AjaxResult exportExcel(List list, String sheetName, String title) + { + this.init(list, sheetName, title, Type.EXPORT); + return exportExcel(); + } + + /** + * 对list数据源将其里面的数据导入到excel表单 + * + * @param response 返回数据 + * @param list 导出数据集合 + * @param sheetName 工作表的名称 + * @return 结果 + */ + public void exportExcel(HttpServletResponse response, List list, String sheetName) + { + exportExcel(response, list, sheetName, StringUtils.EMPTY); + } + + /** + * 对list数据源将其里面的数据导入到excel表单 + * + * @param response 返回数据 + * @param list 导出数据集合 + * @param sheetName 工作表的名称 + * @param title 标题 + * @return 结果 + */ + public void exportExcel(HttpServletResponse response, List list, String sheetName, String title) + { + response.setContentType("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"); + response.setCharacterEncoding("utf-8"); + this.init(list, sheetName, title, Type.EXPORT); + exportExcel(response); + } + + /** + * 对list数据源将其里面的数据导入到excel表单 + * + * @param sheetName 工作表的名称 + * @return 结果 + */ + public AjaxResult importTemplateExcel(String sheetName) + { + return importTemplateExcel(sheetName, StringUtils.EMPTY); + } + + /** + * 对list数据源将其里面的数据导入到excel表单 + * + * @param sheetName 工作表的名称 + * @param title 标题 + * @return 结果 + */ + public AjaxResult importTemplateExcel(String sheetName, String title) + { + this.init(null, sheetName, title, Type.IMPORT); + return exportExcel(); + } + + /** + * 对list数据源将其里面的数据导入到excel表单 + * + * @param sheetName 工作表的名称 + * @return 结果 + */ + public void importTemplateExcel(HttpServletResponse response, String sheetName) + { + importTemplateExcel(response, sheetName, StringUtils.EMPTY); + } + + /** + * 对list数据源将其里面的数据导入到excel表单 + * + * @param sheetName 工作表的名称 + * @param title 标题 + * @return 结果 + */ + public void importTemplateExcel(HttpServletResponse response, String sheetName, String title) + { + response.setContentType("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"); + response.setCharacterEncoding("utf-8"); + this.init(null, sheetName, title, Type.IMPORT); + exportExcel(response); + } + + /** + * 对list数据源将其里面的数据导入到excel表单 + * + * @return 结果 + */ + public void exportExcel(HttpServletResponse response) + { + try + { + writeSheet(); + wb.write(response.getOutputStream()); + } + catch (Exception e) + { + log.error("导出Excel异常{}", e.getMessage()); + } + finally + { + IOUtils.closeQuietly(wb); + } + } + + /** + * 对list数据源将其里面的数据导入到excel表单 + * + * @return 结果 + */ + public AjaxResult exportExcel() + { + OutputStream out = null; + try + { + writeSheet(); + String filename = encodingFilename(sheetName); + out = new FileOutputStream(getAbsoluteFile(filename)); + wb.write(out); + return AjaxResult.success(filename); + } + catch (Exception e) + { + log.error("导出Excel异常{}", e.getMessage()); + throw new UtilException("导出Excel失败,请联系网站管理员!"); + } + finally + { + IOUtils.closeQuietly(wb); + IOUtils.closeQuietly(out); + } + } + + /** + * 创建写入数据到Sheet + */ + public void writeSheet() + { + // 取出一共有多少个sheet. + int sheetNo = Math.max(1, (int) Math.ceil(list.size() * 1.0 / sheetSize)); + for (int index = 0; index < sheetNo; index++) + { + createSheet(sheetNo, index); + + // 产生一行 + Row row = sheet.createRow(rownum); + int column = 0; + // 写入各个字段的列头名称 + for (Object[] os : fields) + { + Excel excel = (Excel) os[1]; + this.createCell(excel, row, column++); + } + if (Type.EXPORT.equals(type)) + { + fillExcelData(index, row); + addStatisticsRow(); + } + } + } + + /** + * 填充excel数据 + * + * @param index 序号 + * @param row 单元格行 + */ + public void fillExcelData(int index, Row row) + { + int startNo = index * sheetSize; + int endNo = Math.min(startNo + sheetSize, list.size()); + for (int i = startNo; i < endNo; i++) + { + row = sheet.createRow(i + 1 + rownum - startNo); + // 得到导出对象. + T vo = (T) list.get(i); + int column = 0; + for (Object[] os : fields) + { + Field field = (Field) os[0]; + Excel excel = (Excel) os[1]; + this.addCell(excel, row, vo, field, column++); + } + } + } + + /** + * 创建表格样式 + * + * @param wb 工作薄对象 + * @return 样式列表 + */ + private Map createStyles(Workbook wb) + { + // 写入各条记录,每条记录对应excel表中的一行 + Map styles = new HashMap(); + CellStyle style = wb.createCellStyle(); + style.setAlignment(HorizontalAlignment.CENTER); + style.setVerticalAlignment(VerticalAlignment.CENTER); + Font titleFont = wb.createFont(); + titleFont.setFontName("Arial"); + titleFont.setFontHeightInPoints((short) 16); + titleFont.setBold(true); + style.setFont(titleFont); + styles.put("title", style); + + style = wb.createCellStyle(); + style.setAlignment(HorizontalAlignment.CENTER); + style.setVerticalAlignment(VerticalAlignment.CENTER); + style.setBorderRight(BorderStyle.THIN); + style.setRightBorderColor(IndexedColors.GREY_50_PERCENT.getIndex()); + style.setBorderLeft(BorderStyle.THIN); + style.setLeftBorderColor(IndexedColors.GREY_50_PERCENT.getIndex()); + style.setBorderTop(BorderStyle.THIN); + style.setTopBorderColor(IndexedColors.GREY_50_PERCENT.getIndex()); + style.setBorderBottom(BorderStyle.THIN); + style.setBottomBorderColor(IndexedColors.GREY_50_PERCENT.getIndex()); + Font dataFont = wb.createFont(); + dataFont.setFontName("Arial"); + dataFont.setFontHeightInPoints((short) 10); + style.setFont(dataFont); + styles.put("data", style); + + style = wb.createCellStyle(); + style.cloneStyleFrom(styles.get("data")); + style.setAlignment(HorizontalAlignment.CENTER); + style.setVerticalAlignment(VerticalAlignment.CENTER); + style.setFillForegroundColor(IndexedColors.GREY_50_PERCENT.getIndex()); + style.setFillPattern(FillPatternType.SOLID_FOREGROUND); + Font headerFont = wb.createFont(); + headerFont.setFontName("Arial"); + headerFont.setFontHeightInPoints((short) 10); + headerFont.setBold(true); + headerFont.setColor(IndexedColors.WHITE.getIndex()); + style.setFont(headerFont); + styles.put("header", style); + + style = wb.createCellStyle(); + style.setAlignment(HorizontalAlignment.CENTER); + style.setVerticalAlignment(VerticalAlignment.CENTER); + Font totalFont = wb.createFont(); + totalFont.setFontName("Arial"); + totalFont.setFontHeightInPoints((short) 10); + style.setFont(totalFont); + styles.put("total", style); + + style = wb.createCellStyle(); + style.cloneStyleFrom(styles.get("data")); + style.setAlignment(HorizontalAlignment.LEFT); + styles.put("data1", style); + + style = wb.createCellStyle(); + style.cloneStyleFrom(styles.get("data")); + style.setAlignment(HorizontalAlignment.CENTER); + styles.put("data2", style); + + style = wb.createCellStyle(); + style.cloneStyleFrom(styles.get("data")); + style.setAlignment(HorizontalAlignment.RIGHT); + styles.put("data3", style); + + return styles; + } + + /** + * 创建单元格 + */ + public Cell createCell(Excel attr, Row row, int column) + { + // 创建列 + Cell cell = row.createCell(column); + // 写入列信息 + cell.setCellValue(attr.name()); + setDataValidation(attr, row, column); + cell.setCellStyle(styles.get("header")); + return cell; + } + + /** + * 设置单元格信息 + * + * @param value 单元格值 + * @param attr 注解相关 + * @param cell 单元格信息 + */ + public void setCellVo(Object value, Excel attr, Cell cell) + { + if (ColumnType.STRING == attr.cellType()) + { + String cellValue = Convert.toStr(value); + // 对于任何以表达式触发字符 =-+@开头的单元格,直接使用tab字符作为前缀,防止CSV注入。 + if (StringUtils.containsAny(cellValue, FORMULA_STR)) + { + cellValue = StringUtils.replaceEach(cellValue, FORMULA_STR, new String[] { "\t=", "\t-", "\t+", "\t@" }); + } + cell.setCellValue(StringUtils.isNull(cellValue) ? attr.defaultValue() : cellValue + attr.suffix()); + } + else if (ColumnType.NUMERIC == attr.cellType()) + { + if (StringUtils.isNotNull(value)) + { + cell.setCellValue(StringUtils.contains(Convert.toStr(value), ".") ? Convert.toDouble(value) : Convert.toInt(value)); + } + } + else if (ColumnType.IMAGE == attr.cellType()) + { + ClientAnchor anchor = new XSSFClientAnchor(0, 0, 0, 0, (short) cell.getColumnIndex(), cell.getRow().getRowNum(), (short) (cell.getColumnIndex() + 1), cell.getRow().getRowNum() + 1); + String imagePath = Convert.toStr(value); + if (StringUtils.isNotEmpty(imagePath)) + { + byte[] data = ImageUtils.getImage(imagePath); + getDrawingPatriarch(cell.getSheet()).createPicture(anchor, + cell.getSheet().getWorkbook().addPicture(data, getImageType(data))); + } + } + } + + /** + * 获取画布 + */ + public static Drawing getDrawingPatriarch(Sheet sheet) + { + if (sheet.getDrawingPatriarch() == null) + { + sheet.createDrawingPatriarch(); + } + return sheet.getDrawingPatriarch(); + } + + /** + * 获取图片类型,设置图片插入类型 + */ + public int getImageType(byte[] value) + { + String type = FileTypeUtils.getFileExtendName(value); + if ("JPG".equalsIgnoreCase(type)) + { + return Workbook.PICTURE_TYPE_JPEG; + } + else if ("PNG".equalsIgnoreCase(type)) + { + return Workbook.PICTURE_TYPE_PNG; + } + return Workbook.PICTURE_TYPE_JPEG; + } + + /** + * 创建表格样式 + */ + public void setDataValidation(Excel attr, Row row, int column) + { + if (attr.name().indexOf("注:") >= 0) + { + sheet.setColumnWidth(column, 6000); + } + else + { + // 设置列宽 + sheet.setColumnWidth(column, (int) ((attr.width() + 0.72) * 256)); + } + // 如果设置了提示信息则鼠标放上去提示. + if (StringUtils.isNotEmpty(attr.prompt())) + { + // 这里默认设了2-101列提示. + setXSSFPrompt(sheet, "", attr.prompt(), 1, 100, column, column); + } + // 如果设置了combo属性则本列只能选择不能输入 + if (attr.combo().length > 0) + { + // 这里默认设了2-101列只能选择不能输入. + setXSSFValidation(sheet, attr.combo(), 1, 100, column, column); + } + } + + /** + * 添加单元格 + */ + public Cell addCell(Excel attr, Row row, T vo, Field field, int column) + { + Cell cell = null; + try + { + // 设置行高 + row.setHeight(maxHeight); + // 根据Excel中设置情况决定是否导出,有些情况需要保持为空,希望用户填写这一列. + if (attr.isExport()) + { + // 创建cell + cell = row.createCell(column); + int align = attr.align().value(); + cell.setCellStyle(styles.get("data" + (align >= 1 && align <= 3 ? align : ""))); + + // 用于读取对象中的属性 + Object value = getTargetValue(vo, field, attr); + String dateFormat = attr.dateFormat(); + String readConverterExp = attr.readConverterExp(); + String separator = attr.separator(); + String dictType = attr.dictType(); + if (StringUtils.isNotEmpty(dateFormat) && StringUtils.isNotNull(value)) + { + cell.setCellValue(DateUtils.parseDateToStr(dateFormat, (Date) value)); + } + else if (StringUtils.isNotEmpty(readConverterExp) && StringUtils.isNotNull(value)) + { + cell.setCellValue(convertByExp(Convert.toStr(value), readConverterExp, separator)); + } + else if (StringUtils.isNotEmpty(dictType) && StringUtils.isNotNull(value)) + { + cell.setCellValue(convertDictByExp(Convert.toStr(value), dictType, separator)); + } + else if (value instanceof BigDecimal && -1 != attr.scale()) + { + cell.setCellValue((((BigDecimal) value).setScale(attr.scale(), attr.roundingMode())).toString()); + } + else if (!attr.handler().equals(ExcelHandlerAdapter.class)) + { + cell.setCellValue(dataFormatHandlerAdapter(value, attr)); + } + else + { + // 设置列类型 + setCellVo(value, attr, cell); + } + addStatisticsData(column, Convert.toStr(value), attr); + } + } + catch (Exception e) + { + log.error("导出Excel失败{}", e); + } + return cell; + } + + /** + * 设置 POI XSSFSheet 单元格提示 + * + * @param sheet 表单 + * @param promptTitle 提示标题 + * @param promptContent 提示内容 + * @param firstRow 开始行 + * @param endRow 结束行 + * @param firstCol 开始列 + * @param endCol 结束列 + */ + public void setXSSFPrompt(Sheet sheet, String promptTitle, String promptContent, int firstRow, int endRow, + int firstCol, int endCol) + { + DataValidationHelper helper = sheet.getDataValidationHelper(); + DataValidationConstraint constraint = helper.createCustomConstraint("DD1"); + CellRangeAddressList regions = new CellRangeAddressList(firstRow, endRow, firstCol, endCol); + DataValidation dataValidation = helper.createValidation(constraint, regions); + dataValidation.createPromptBox(promptTitle, promptContent); + dataValidation.setShowPromptBox(true); + sheet.addValidationData(dataValidation); + } + + /** + * 设置某些列的值只能输入预制的数据,显示下拉框. + * + * @param sheet 要设置的sheet. + * @param textlist 下拉框显示的内容 + * @param firstRow 开始行 + * @param endRow 结束行 + * @param firstCol 开始列 + * @param endCol 结束列 + * @return 设置好的sheet. + */ + public void setXSSFValidation(Sheet sheet, String[] textlist, int firstRow, int endRow, int firstCol, int endCol) + { + DataValidationHelper helper = sheet.getDataValidationHelper(); + // 加载下拉列表内容 + DataValidationConstraint constraint = helper.createExplicitListConstraint(textlist); + // 设置数据有效性加载在哪个单元格上,四个参数分别是:起始行、终止行、起始列、终止列 + CellRangeAddressList regions = new CellRangeAddressList(firstRow, endRow, firstCol, endCol); + // 数据有效性对象 + DataValidation dataValidation = helper.createValidation(constraint, regions); + // 处理Excel兼容性问题 + if (dataValidation instanceof XSSFDataValidation) + { + dataValidation.setSuppressDropDownArrow(true); + dataValidation.setShowErrorBox(true); + } + else + { + dataValidation.setSuppressDropDownArrow(false); + } + + sheet.addValidationData(dataValidation); + } + + /** + * 解析导出值 0=男,1=女,2=未知 + * + * @param propertyValue 参数值 + * @param converterExp 翻译注解 + * @param separator 分隔符 + * @return 解析后值 + */ + public static String convertByExp(String propertyValue, String converterExp, String separator) + { + StringBuilder propertyString = new StringBuilder(); + String[] convertSource = converterExp.split(","); + for (String item : convertSource) + { + String[] itemArray = item.split("="); + if (StringUtils.containsAny(separator, propertyValue)) + { + for (String value : propertyValue.split(separator)) + { + if (itemArray[0].equals(value)) + { + propertyString.append(itemArray[1] + separator); + break; + } + } + } + else + { + if (itemArray[0].equals(propertyValue)) + { + return itemArray[1]; + } + } + } + return StringUtils.stripEnd(propertyString.toString(), separator); + } + + /** + * 反向解析值 男=0,女=1,未知=2 + * + * @param propertyValue 参数值 + * @param converterExp 翻译注解 + * @param separator 分隔符 + * @return 解析后值 + */ + public static String reverseByExp(String propertyValue, String converterExp, String separator) + { + StringBuilder propertyString = new StringBuilder(); + String[] convertSource = converterExp.split(","); + for (String item : convertSource) + { + String[] itemArray = item.split("="); + if (StringUtils.containsAny(separator, propertyValue)) + { + for (String value : propertyValue.split(separator)) + { + if (itemArray[1].equals(value)) + { + propertyString.append(itemArray[0] + separator); + break; + } + } + } + else + { + if (itemArray[1].equals(propertyValue)) + { + return itemArray[0]; + } + } + } + return StringUtils.stripEnd(propertyString.toString(), separator); + } + + /** + * 解析字典值 + * + * @param dictValue 字典值 + * @param dictType 字典类型 + * @param separator 分隔符 + * @return 字典标签 + */ + public static String convertDictByExp(String dictValue, String dictType, String separator) + { + return DictUtils.getDictLabel(dictType, dictValue, separator); + } + + /** + * 反向解析值字典值 + * + * @param dictLabel 字典标签 + * @param dictType 字典类型 + * @param separator 分隔符 + * @return 字典值 + */ + public static String reverseDictByExp(String dictLabel, String dictType, String separator) + { + return DictUtils.getDictValue(dictType, dictLabel, separator); + } + + /** + * 数据处理器 + * + * @param value 数据值 + * @param excel 数据注解 + * @return + */ + public String dataFormatHandlerAdapter(Object value, Excel excel) + { + try + { + Object instance = excel.handler().newInstance(); + Method formatMethod = excel.handler().getMethod("format", new Class[] { Object.class, String[].class }); + value = formatMethod.invoke(instance, value, excel.args()); + } + catch (Exception e) + { + log.error("不能格式化数据 " + excel.handler(), e.getMessage()); + } + return Convert.toStr(value); + } + + /** + * 合计统计信息 + */ + private void addStatisticsData(Integer index, String text, Excel entity) + { + if (entity != null && entity.isStatistics()) + { + Double temp = 0D; + if (!statistics.containsKey(index)) + { + statistics.put(index, temp); + } + try + { + temp = Double.valueOf(text); + } + catch (NumberFormatException e) + { + } + statistics.put(index, statistics.get(index) + temp); + } + } + + /** + * 创建统计行 + */ + public void addStatisticsRow() + { + if (statistics.size() > 0) + { + Row row = sheet.createRow(sheet.getLastRowNum() + 1); + Set keys = statistics.keySet(); + Cell cell = row.createCell(0); + cell.setCellStyle(styles.get("total")); + cell.setCellValue("合计"); + + for (Integer key : keys) + { + cell = row.createCell(key); + cell.setCellStyle(styles.get("total")); + cell.setCellValue(DOUBLE_FORMAT.format(statistics.get(key))); + } + statistics.clear(); + } + } + + /** + * 编码文件名 + */ + public String encodingFilename(String filename) + { + filename = UUID.randomUUID().toString() + "_" + filename + ".xlsx"; + return filename; + } + + /** + * 获取下载路径 + * + * @param filename 文件名称 + */ + public String getAbsoluteFile(String filename) + { + String downloadPath = RuoYiConfig.getDownloadPath() + filename; + File desc = new File(downloadPath); + if (!desc.getParentFile().exists()) + { + desc.getParentFile().mkdirs(); + } + return downloadPath; + } + + /** + * 获取bean中的属性值 + * + * @param vo 实体对象 + * @param field 字段 + * @param excel 注解 + * @return 最终的属性值 + * @throws Exception + */ + private Object getTargetValue(T vo, Field field, Excel excel) throws Exception + { + Object o = field.get(vo); + if (StringUtils.isNotEmpty(excel.targetAttr())) + { + String target = excel.targetAttr(); + if (target.contains(".")) + { + String[] targets = target.split("[.]"); + for (String name : targets) + { + o = getValue(o, name); + } + } + else + { + o = getValue(o, target); + } + } + return o; + } + + /** + * 以类的属性的get方法方法形式获取值 + * + * @param o + * @param name + * @return value + * @throws Exception + */ + private Object getValue(Object o, String name) throws Exception + { + if (StringUtils.isNotNull(o) && StringUtils.isNotEmpty(name)) + { + Class clazz = o.getClass(); + Field field = clazz.getDeclaredField(name); + field.setAccessible(true); + o = field.get(o); + } + return o; + } + + /** + * 得到所有定义字段 + */ + private void createExcelField() + { + this.fields = getFields(); + this.fields = this.fields.stream().sorted(Comparator.comparing(objects -> ((Excel) objects[1]).sort())).collect(Collectors.toList()); + this.maxHeight = getRowHeight(); + } + + /** + * 获取字段注解信息 + */ + public List getFields() + { + List fields = new ArrayList(); + List tempFields = new ArrayList<>(); + tempFields.addAll(Arrays.asList(clazz.getSuperclass().getDeclaredFields())); + tempFields.addAll(Arrays.asList(clazz.getDeclaredFields())); + for (Field field : tempFields) + { + // 单注解 + if (field.isAnnotationPresent(Excel.class)) + { + Excel attr = field.getAnnotation(Excel.class); + if (attr != null && (attr.type() == Type.ALL || attr.type() == type)) + { + field.setAccessible(true); + fields.add(new Object[] { field, attr }); + } + } + + // 多注解 + if (field.isAnnotationPresent(Excels.class)) + { + Excels attrs = field.getAnnotation(Excels.class); + Excel[] excels = attrs.value(); + for (Excel attr : excels) + { + if (attr != null && (attr.type() == Type.ALL || attr.type() == type)) + { + field.setAccessible(true); + fields.add(new Object[] { field, attr }); + } + } + } + } + return fields; + } + + /** + * 根据注解获取最大行高 + */ + public short getRowHeight() + { + double maxHeight = 0; + for (Object[] os : this.fields) + { + Excel excel = (Excel) os[1]; + maxHeight = Math.max(maxHeight, excel.height()); + } + return (short) (maxHeight * 20); + } + + /** + * 创建一个工作簿 + */ + public void createWorkbook() + { + this.wb = new SXSSFWorkbook(500); + this.sheet = wb.createSheet(); + wb.setSheetName(0, sheetName); + this.styles = createStyles(wb); + } + + /** + * 创建工作表 + * + * @param sheetNo sheet数量 + * @param index 序号 + */ + public void createSheet(int sheetNo, int index) + { + // 设置工作表的名称. + if (sheetNo > 1 && index > 0) + { + this.sheet = wb.createSheet(); + this.createTitle(); + wb.setSheetName(index, sheetName + index); + } + } + + /** + * 获取单元格值 + * + * @param row 获取的行 + * @param column 获取单元格列号 + * @return 单元格值 + */ + public Object getCellValue(Row row, int column) + { + if (row == null) + { + return row; + } + Object val = ""; + try + { + Cell cell = row.getCell(column); + if (StringUtils.isNotNull(cell)) + { + if (cell.getCellType() == CellType.NUMERIC || cell.getCellType() == CellType.FORMULA) + { + val = cell.getNumericCellValue(); + if (DateUtil.isCellDateFormatted(cell)) + { + val = DateUtil.getJavaDate((Double) val); // POI Excel 日期格式转换 + } + else + { + if ((Double) val % 1 != 0) + { + val = new BigDecimal(val.toString()); + } + else + { + val = new DecimalFormat("0").format(val); + } + } + } + else if (cell.getCellType() == CellType.STRING) + { + val = cell.getStringCellValue(); + } + else if (cell.getCellType() == CellType.BOOLEAN) + { + val = cell.getBooleanCellValue(); + } + else if (cell.getCellType() == CellType.ERROR) + { + val = cell.getErrorCellValue(); + } + + } + } + catch (Exception e) + { + return val; + } + return val; + } + + /** + * 判断是否是空行 + * + * @param row 判断的行 + * @return + */ + private boolean isRowEmpty(Row row) + { + if (row == null) + { + return true; + } + for (int i = row.getFirstCellNum(); i < row.getLastCellNum(); i++) + { + Cell cell = row.getCell(i); + if (cell != null && cell.getCellType() != CellType.BLANK) + { + return false; + } + } + return true; + } + + /** + * 获取Excel2003图片 + * + * @param sheet 当前sheet对象 + * @param workbook 工作簿对象 + * @return Map key:图片单元格索引(1_1)String,value:图片流PictureData + */ + public static Map getSheetPictures03(HSSFSheet sheet, HSSFWorkbook workbook) + { + Map sheetIndexPicMap = new HashMap(); + List pictures = workbook.getAllPictures(); + if (!pictures.isEmpty()) + { + for (HSSFShape shape : sheet.getDrawingPatriarch().getChildren()) + { + HSSFClientAnchor anchor = (HSSFClientAnchor) shape.getAnchor(); + if (shape instanceof HSSFPicture) + { + HSSFPicture pic = (HSSFPicture) shape; + int pictureIndex = pic.getPictureIndex() - 1; + HSSFPictureData picData = pictures.get(pictureIndex); + String picIndex = String.valueOf(anchor.getRow1()) + "_" + String.valueOf(anchor.getCol1()); + sheetIndexPicMap.put(picIndex, picData); + } + } + return sheetIndexPicMap; + } + else + { + return sheetIndexPicMap; + } + } + + /** + * 获取Excel2007图片 + * + * @param sheet 当前sheet对象 + * @param workbook 工作簿对象 + * @return Map key:图片单元格索引(1_1)String,value:图片流PictureData + */ + public static Map getSheetPictures07(XSSFSheet sheet, XSSFWorkbook workbook) + { + Map sheetIndexPicMap = new HashMap(); + for (POIXMLDocumentPart dr : sheet.getRelations()) + { + if (dr instanceof XSSFDrawing) + { + XSSFDrawing drawing = (XSSFDrawing) dr; + List shapes = drawing.getShapes(); + for (XSSFShape shape : shapes) + { + if (shape instanceof XSSFPicture) + { + XSSFPicture pic = (XSSFPicture) shape; + XSSFClientAnchor anchor = pic.getPreferredSize(); + CTMarker ctMarker = anchor.getFrom(); + String picIndex = ctMarker.getRow() + "_" + ctMarker.getCol(); + sheetIndexPicMap.put(picIndex, pic.getPictureData()); + } + } + } + } + return sheetIndexPicMap; + } +} diff --git a/alive-common/src/main/java/com/ruoyi/common/utils/reflect/ReflectUtils.java b/alive-common/src/main/java/com/ruoyi/common/utils/reflect/ReflectUtils.java new file mode 100644 index 0000000..b19953e --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/utils/reflect/ReflectUtils.java @@ -0,0 +1,410 @@ +package com.ruoyi.common.utils.reflect; + +import java.lang.reflect.Field; +import java.lang.reflect.InvocationTargetException; +import java.lang.reflect.Method; +import java.lang.reflect.Modifier; +import java.lang.reflect.ParameterizedType; +import java.lang.reflect.Type; +import java.util.Date; +import org.apache.commons.lang3.StringUtils; +import org.apache.commons.lang3.Validate; +import org.apache.poi.ss.usermodel.DateUtil; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import com.ruoyi.common.core.text.Convert; +import com.ruoyi.common.utils.DateUtils; + +/** + * 反射工具类. 提供调用getter/setter方法, 访问私有变量, 调用私有方法, 获取泛型类型Class, 被AOP过的真实类等工具函数. + * + * @author ruoyi + */ +@SuppressWarnings("rawtypes") +public class ReflectUtils +{ + private static final String SETTER_PREFIX = "set"; + + private static final String GETTER_PREFIX = "get"; + + private static final String CGLIB_CLASS_SEPARATOR = "$$"; + + private static Logger logger = LoggerFactory.getLogger(ReflectUtils.class); + + /** + * 调用Getter方法. + * 支持多级,如:对象名.对象名.方法 + */ + @SuppressWarnings("unchecked") + public static E invokeGetter(Object obj, String propertyName) + { + Object object = obj; + for (String name : StringUtils.split(propertyName, ".")) + { + String getterMethodName = GETTER_PREFIX + StringUtils.capitalize(name); + object = invokeMethod(object, getterMethodName, new Class[] {}, new Object[] {}); + } + return (E) object; + } + + /** + * 调用Setter方法, 仅匹配方法名。 + * 支持多级,如:对象名.对象名.方法 + */ + public static void invokeSetter(Object obj, String propertyName, E value) + { + Object object = obj; + String[] names = StringUtils.split(propertyName, "."); + for (int i = 0; i < names.length; i++) + { + if (i < names.length - 1) + { + String getterMethodName = GETTER_PREFIX + StringUtils.capitalize(names[i]); + object = invokeMethod(object, getterMethodName, new Class[] {}, new Object[] {}); + } + else + { + String setterMethodName = SETTER_PREFIX + StringUtils.capitalize(names[i]); + invokeMethodByName(object, setterMethodName, new Object[] { value }); + } + } + } + + /** + * 直接读取对象属性值, 无视private/protected修饰符, 不经过getter函数. + */ + @SuppressWarnings("unchecked") + public static E getFieldValue(final Object obj, final String fieldName) + { + Field field = getAccessibleField(obj, fieldName); + if (field == null) + { + logger.debug("在 [" + obj.getClass() + "] 中,没有找到 [" + fieldName + "] 字段 "); + return null; + } + E result = null; + try + { + result = (E) field.get(obj); + } + catch (IllegalAccessException e) + { + logger.error("不可能抛出的异常{}", e.getMessage()); + } + return result; + } + + /** + * 直接设置对象属性值, 无视private/protected修饰符, 不经过setter函数. + */ + public static void setFieldValue(final Object obj, final String fieldName, final E value) + { + Field field = getAccessibleField(obj, fieldName); + if (field == null) + { + // throw new IllegalArgumentException("在 [" + obj.getClass() + "] 中,没有找到 [" + fieldName + "] 字段 "); + logger.debug("在 [" + obj.getClass() + "] 中,没有找到 [" + fieldName + "] 字段 "); + return; + } + try + { + field.set(obj, value); + } + catch (IllegalAccessException e) + { + logger.error("不可能抛出的异常: {}", e.getMessage()); + } + } + + /** + * 直接调用对象方法, 无视private/protected修饰符. + * 用于一次性调用的情况,否则应使用getAccessibleMethod()函数获得Method后反复调用. + * 同时匹配方法名+参数类型, + */ + @SuppressWarnings("unchecked") + public static E invokeMethod(final Object obj, final String methodName, final Class[] parameterTypes, + final Object[] args) + { + if (obj == null || methodName == null) + { + return null; + } + Method method = getAccessibleMethod(obj, methodName, parameterTypes); + if (method == null) + { + logger.debug("在 [" + obj.getClass() + "] 中,没有找到 [" + methodName + "] 方法 "); + return null; + } + try + { + return (E) method.invoke(obj, args); + } + catch (Exception e) + { + String msg = "method: " + method + ", obj: " + obj + ", args: " + args + ""; + throw convertReflectionExceptionToUnchecked(msg, e); + } + } + + /** + * 直接调用对象方法, 无视private/protected修饰符, + * 用于一次性调用的情况,否则应使用getAccessibleMethodByName()函数获得Method后反复调用. + * 只匹配函数名,如果有多个同名函数调用第一个。 + */ + @SuppressWarnings("unchecked") + public static E invokeMethodByName(final Object obj, final String methodName, final Object[] args) + { + Method method = getAccessibleMethodByName(obj, methodName, args.length); + if (method == null) + { + // 如果为空不报错,直接返回空。 + logger.debug("在 [" + obj.getClass() + "] 中,没有找到 [" + methodName + "] 方法 "); + return null; + } + try + { + // 类型转换(将参数数据类型转换为目标方法参数类型) + Class[] cs = method.getParameterTypes(); + for (int i = 0; i < cs.length; i++) + { + if (args[i] != null && !args[i].getClass().equals(cs[i])) + { + if (cs[i] == String.class) + { + args[i] = Convert.toStr(args[i]); + if (StringUtils.endsWith((String) args[i], ".0")) + { + args[i] = StringUtils.substringBefore((String) args[i], ".0"); + } + } + else if (cs[i] == Integer.class) + { + args[i] = Convert.toInt(args[i]); + } + else if (cs[i] == Long.class) + { + args[i] = Convert.toLong(args[i]); + } + else if (cs[i] == Double.class) + { + args[i] = Convert.toDouble(args[i]); + } + else if (cs[i] == Float.class) + { + args[i] = Convert.toFloat(args[i]); + } + else if (cs[i] == Date.class) + { + if (args[i] instanceof String) + { + args[i] = DateUtils.parseDate(args[i]); + } + else + { + args[i] = DateUtil.getJavaDate((Double) args[i]); + } + } + else if (cs[i] == boolean.class || cs[i] == Boolean.class) + { + args[i] = Convert.toBool(args[i]); + } + } + } + return (E) method.invoke(obj, args); + } + catch (Exception e) + { + String msg = "method: " + method + ", obj: " + obj + ", args: " + args + ""; + throw convertReflectionExceptionToUnchecked(msg, e); + } + } + + /** + * 循环向上转型, 获取对象的DeclaredField, 并强制设置为可访问. + * 如向上转型到Object仍无法找到, 返回null. + */ + public static Field getAccessibleField(final Object obj, final String fieldName) + { + // 为空不报错。直接返回 null + if (obj == null) + { + return null; + } + Validate.notBlank(fieldName, "fieldName can't be blank"); + for (Class superClass = obj.getClass(); superClass != Object.class; superClass = superClass.getSuperclass()) + { + try + { + Field field = superClass.getDeclaredField(fieldName); + makeAccessible(field); + return field; + } + catch (NoSuchFieldException e) + { + continue; + } + } + return null; + } + + /** + * 循环向上转型, 获取对象的DeclaredMethod,并强制设置为可访问. + * 如向上转型到Object仍无法找到, 返回null. + * 匹配函数名+参数类型。 + * 用于方法需要被多次调用的情况. 先使用本函数先取得Method,然后调用Method.invoke(Object obj, Object... args) + */ + public static Method getAccessibleMethod(final Object obj, final String methodName, + final Class... parameterTypes) + { + // 为空不报错。直接返回 null + if (obj == null) + { + return null; + } + Validate.notBlank(methodName, "methodName can't be blank"); + for (Class searchType = obj.getClass(); searchType != Object.class; searchType = searchType.getSuperclass()) + { + try + { + Method method = searchType.getDeclaredMethod(methodName, parameterTypes); + makeAccessible(method); + return method; + } + catch (NoSuchMethodException e) + { + continue; + } + } + return null; + } + + /** + * 循环向上转型, 获取对象的DeclaredMethod,并强制设置为可访问. + * 如向上转型到Object仍无法找到, 返回null. + * 只匹配函数名。 + * 用于方法需要被多次调用的情况. 先使用本函数先取得Method,然后调用Method.invoke(Object obj, Object... args) + */ + public static Method getAccessibleMethodByName(final Object obj, final String methodName, int argsNum) + { + // 为空不报错。直接返回 null + if (obj == null) + { + return null; + } + Validate.notBlank(methodName, "methodName can't be blank"); + for (Class searchType = obj.getClass(); searchType != Object.class; searchType = searchType.getSuperclass()) + { + Method[] methods = searchType.getDeclaredMethods(); + for (Method method : methods) + { + if (method.getName().equals(methodName) && method.getParameterTypes().length == argsNum) + { + makeAccessible(method); + return method; + } + } + } + return null; + } + + /** + * 改变private/protected的方法为public,尽量不调用实际改动的语句,避免JDK的SecurityManager抱怨。 + */ + public static void makeAccessible(Method method) + { + if ((!Modifier.isPublic(method.getModifiers()) || !Modifier.isPublic(method.getDeclaringClass().getModifiers())) + && !method.isAccessible()) + { + method.setAccessible(true); + } + } + + /** + * 改变private/protected的成员变量为public,尽量不调用实际改动的语句,避免JDK的SecurityManager抱怨。 + */ + public static void makeAccessible(Field field) + { + if ((!Modifier.isPublic(field.getModifiers()) || !Modifier.isPublic(field.getDeclaringClass().getModifiers()) + || Modifier.isFinal(field.getModifiers())) && !field.isAccessible()) + { + field.setAccessible(true); + } + } + + /** + * 通过反射, 获得Class定义中声明的泛型参数的类型, 注意泛型必须定义在父类处 + * 如无法找到, 返回Object.class. + */ + @SuppressWarnings("unchecked") + public static Class getClassGenricType(final Class clazz) + { + return getClassGenricType(clazz, 0); + } + + /** + * 通过反射, 获得Class定义中声明的父类的泛型参数的类型. + * 如无法找到, 返回Object.class. + */ + public static Class getClassGenricType(final Class clazz, final int index) + { + Type genType = clazz.getGenericSuperclass(); + + if (!(genType instanceof ParameterizedType)) + { + logger.debug(clazz.getSimpleName() + "'s superclass not ParameterizedType"); + return Object.class; + } + + Type[] params = ((ParameterizedType) genType).getActualTypeArguments(); + + if (index >= params.length || index < 0) + { + logger.debug("Index: " + index + ", Size of " + clazz.getSimpleName() + "'s Parameterized Type: " + + params.length); + return Object.class; + } + if (!(params[index] instanceof Class)) + { + logger.debug(clazz.getSimpleName() + " not set the actual class on superclass generic parameter"); + return Object.class; + } + + return (Class) params[index]; + } + + public static Class getUserClass(Object instance) + { + if (instance == null) + { + throw new RuntimeException("Instance must not be null"); + } + Class clazz = instance.getClass(); + if (clazz != null && clazz.getName().contains(CGLIB_CLASS_SEPARATOR)) + { + Class superClass = clazz.getSuperclass(); + if (superClass != null && !Object.class.equals(superClass)) + { + return superClass; + } + } + return clazz; + + } + + /** + * 将反射时的checked exception转换为unchecked exception. + */ + public static RuntimeException convertReflectionExceptionToUnchecked(String msg, Exception e) + { + if (e instanceof IllegalAccessException || e instanceof IllegalArgumentException + || e instanceof NoSuchMethodException) + { + return new IllegalArgumentException(msg, e); + } + else if (e instanceof InvocationTargetException) + { + return new RuntimeException(msg, ((InvocationTargetException) e).getTargetException()); + } + return new RuntimeException(msg, e); + } +} diff --git a/alive-common/src/main/java/com/ruoyi/common/utils/security/CipherUtils.java b/alive-common/src/main/java/com/ruoyi/common/utils/security/CipherUtils.java new file mode 100644 index 0000000..43b9f24 --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/utils/security/CipherUtils.java @@ -0,0 +1,36 @@ +package com.ruoyi.common.utils.security; + +import java.security.Key; +import java.security.NoSuchAlgorithmException; +import javax.crypto.KeyGenerator; + +/** + * 对称密钥密码算法工具类 + * + * @author ruoyi + */ +public class CipherUtils +{ + /** + * 生成随机秘钥 + * + * @param keyBitSize 字节大小 + * @param algorithmName 算法名称 + * @return 创建密匙 + */ + public static Key generateNewKey(int keyBitSize, String algorithmName) + { + KeyGenerator kg; + try + { + kg = KeyGenerator.getInstance(algorithmName); + } + catch (NoSuchAlgorithmException e) + { + String msg = "Unable to acquire " + algorithmName + " algorithm. This is required to function."; + throw new IllegalStateException(msg, e); + } + kg.init(keyBitSize); + return kg.generateKey(); + } +} diff --git a/alive-common/src/main/java/com/ruoyi/common/utils/security/Md5Utils.java b/alive-common/src/main/java/com/ruoyi/common/utils/security/Md5Utils.java new file mode 100644 index 0000000..ff9937f --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/utils/security/Md5Utils.java @@ -0,0 +1,67 @@ +package com.ruoyi.common.utils.security; + +import java.nio.charset.StandardCharsets; +import java.security.MessageDigest; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +/** + * Md5加密方法 + * + * @author ruoyi + */ +public class Md5Utils +{ + private static final Logger log = LoggerFactory.getLogger(Md5Utils.class); + + private static byte[] md5(String s) + { + MessageDigest algorithm; + try + { + algorithm = MessageDigest.getInstance("MD5"); + algorithm.reset(); + algorithm.update(s.getBytes("UTF-8")); + byte[] messageDigest = algorithm.digest(); + return messageDigest; + } + catch (Exception e) + { + log.error("MD5 Error...", e); + } + return null; + } + + private static final String toHex(byte hash[]) + { + if (hash == null) + { + return null; + } + StringBuffer buf = new StringBuffer(hash.length * 2); + int i; + + for (i = 0; i < hash.length; i++) + { + if ((hash[i] & 0xff) < 0x10) + { + buf.append("0"); + } + buf.append(Long.toString(hash[i] & 0xff, 16)); + } + return buf.toString(); + } + + public static String hash(String s) + { + try + { + return new String(toHex(md5(s)).getBytes(StandardCharsets.UTF_8), StandardCharsets.UTF_8); + } + catch (Exception e) + { + log.error("not supported charset...{}", e); + return s; + } + } +} diff --git a/alive-common/src/main/java/com/ruoyi/common/utils/security/PermissionUtils.java b/alive-common/src/main/java/com/ruoyi/common/utils/security/PermissionUtils.java new file mode 100644 index 0000000..296f2ca --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/utils/security/PermissionUtils.java @@ -0,0 +1,118 @@ +package com.ruoyi.common.utils.security; + +import java.beans.BeanInfo; +import java.beans.Introspector; +import java.beans.PropertyDescriptor; +import org.apache.commons.lang3.StringUtils; +import org.apache.shiro.SecurityUtils; +import org.apache.shiro.subject.Subject; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import com.ruoyi.common.constant.PermissionConstants; +import com.ruoyi.common.utils.MessageUtils; + +/** + * permission 工具类 + * + * @author ruoyi + */ +public class PermissionUtils +{ + private static final Logger log = LoggerFactory.getLogger(PermissionUtils.class); + + /** + * 查看数据的权限 + */ + public static final String VIEW_PERMISSION = "no.view.permission"; + + /** + * 创建数据的权限 + */ + public static final String CREATE_PERMISSION = "no.create.permission"; + + /** + * 修改数据的权限 + */ + public static final String UPDATE_PERMISSION = "no.update.permission"; + + /** + * 删除数据的权限 + */ + public static final String DELETE_PERMISSION = "no.delete.permission"; + + /** + * 导出数据的权限 + */ + public static final String EXPORT_PERMISSION = "no.export.permission"; + + /** + * 其他数据的权限 + */ + public static final String PERMISSION = "no.permission"; + + /** + * 权限错误消息提醒 + * + * @param permissionsStr 错误信息 + * @return 提示信息 + */ + public static String getMsg(String permissionsStr) + { + String permission = StringUtils.substringBetween(permissionsStr, "[", "]"); + String msg = MessageUtils.message(PERMISSION, permission); + if (StringUtils.endsWithIgnoreCase(permission, PermissionConstants.ADD_PERMISSION)) + { + msg = MessageUtils.message(CREATE_PERMISSION, permission); + } + else if (StringUtils.endsWithIgnoreCase(permission, PermissionConstants.EDIT_PERMISSION)) + { + msg = MessageUtils.message(UPDATE_PERMISSION, permission); + } + else if (StringUtils.endsWithIgnoreCase(permission, PermissionConstants.REMOVE_PERMISSION)) + { + msg = MessageUtils.message(DELETE_PERMISSION, permission); + } + else if (StringUtils.endsWithIgnoreCase(permission, PermissionConstants.EXPORT_PERMISSION)) + { + msg = MessageUtils.message(EXPORT_PERMISSION, permission); + } + else if (StringUtils.endsWithAny(permission, + new String[] { PermissionConstants.VIEW_PERMISSION, PermissionConstants.LIST_PERMISSION })) + { + msg = MessageUtils.message(VIEW_PERMISSION, permission); + } + return msg; + } + + /** + * 返回用户属性值 + * + * @param property 属性名称 + * @return 用户属性值 + */ + public static Object getPrincipalProperty(String property) + { + Subject subject = SecurityUtils.getSubject(); + if (subject != null) + { + Object principal = subject.getPrincipal(); + try + { + BeanInfo bi = Introspector.getBeanInfo(principal.getClass()); + for (PropertyDescriptor pd : bi.getPropertyDescriptors()) + { + if (pd.getName().equals(property) == true) + { + return pd.getReadMethod().invoke(principal, (Object[]) null); + } + } + } + catch (Exception e) + { + log.error("Error reading property [{}] from principal of type [{}]", property, + principal.getClass().getName()); + } + } + return null; + } +} diff --git a/alive-common/src/main/java/com/ruoyi/common/utils/spring/SpringUtils.java b/alive-common/src/main/java/com/ruoyi/common/utils/spring/SpringUtils.java new file mode 100644 index 0000000..01fa519 --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/utils/spring/SpringUtils.java @@ -0,0 +1,146 @@ +package com.ruoyi.common.utils.spring; + +import org.springframework.aop.framework.AopContext; +import org.springframework.beans.BeansException; +import org.springframework.beans.factory.NoSuchBeanDefinitionException; +import org.springframework.beans.factory.config.BeanFactoryPostProcessor; +import org.springframework.beans.factory.config.ConfigurableListableBeanFactory; +import org.springframework.context.ApplicationContext; +import org.springframework.context.ApplicationContextAware; +import org.springframework.stereotype.Component; +import com.ruoyi.common.utils.StringUtils; + +/** + * spring工具类 方便在非spring管理环境中获取bean + * + * @author ruoyi + */ +@Component +public final class SpringUtils implements BeanFactoryPostProcessor, ApplicationContextAware +{ + /** Spring应用上下文环境 */ + private static ConfigurableListableBeanFactory beanFactory; + + private static ApplicationContext applicationContext; + + @Override + public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException + { + SpringUtils.beanFactory = beanFactory; + } + + @Override + public void setApplicationContext(ApplicationContext applicationContext) throws BeansException + { + SpringUtils.applicationContext = applicationContext; + } + + /** + * 获取对象 + * + * @param name + * @return Object 一个以所给名字注册的bean的实例 + * @throws org.springframework.beans.BeansException + * + */ + @SuppressWarnings("unchecked") + public static T getBean(String name) throws BeansException + { + return (T) beanFactory.getBean(name); + } + + /** + * 获取类型为requiredType的对象 + * + * @param clz + * @return + * @throws org.springframework.beans.BeansException + * + */ + public static T getBean(Class clz) throws BeansException + { + T result = (T) beanFactory.getBean(clz); + return result; + } + + /** + * 如果BeanFactory包含一个与所给名称匹配的bean定义,则返回true + * + * @param name + * @return boolean + */ + public static boolean containsBean(String name) + { + return beanFactory.containsBean(name); + } + + /** + * 判断以给定名字注册的bean定义是一个singleton还是一个prototype。 如果与给定名字相应的bean定义没有被找到,将会抛出一个异常(NoSuchBeanDefinitionException) + * + * @param name + * @return boolean + * @throws org.springframework.beans.factory.NoSuchBeanDefinitionException + * + */ + public static boolean isSingleton(String name) throws NoSuchBeanDefinitionException + { + return beanFactory.isSingleton(name); + } + + /** + * @param name + * @return Class 注册对象的类型 + * @throws org.springframework.beans.factory.NoSuchBeanDefinitionException + * + */ + public static Class getType(String name) throws NoSuchBeanDefinitionException + { + return beanFactory.getType(name); + } + + /** + * 如果给定的bean名字在bean定义中有别名,则返回这些别名 + * + * @param name + * @return + * @throws org.springframework.beans.factory.NoSuchBeanDefinitionException + * + */ + public static String[] getAliases(String name) throws NoSuchBeanDefinitionException + { + return beanFactory.getAliases(name); + } + + /** + * 获取aop代理对象 + * + * @param invoker + * @return + */ + @SuppressWarnings("unchecked") + public static T getAopProxy(T invoker) + { + return (T) AopContext.currentProxy(); + } + + /** + * 获取当前的环境配置,无配置返回null + * + * @return 当前的环境配置 + */ + public static String[] getActiveProfiles() + { + return applicationContext.getEnvironment().getActiveProfiles(); + } + + /** + * 获取当前的环境配置,当有多个环境配置时,只获取第一个 + * + * @return 当前的环境配置 + */ + public static String getActiveProfile() + { + final String[] activeProfiles = getActiveProfiles(); + return StringUtils.isNotEmpty(activeProfiles) ? activeProfiles[0] : null; + } +} diff --git a/alive-common/src/main/java/com/ruoyi/common/utils/sql/SqlUtil.java b/alive-common/src/main/java/com/ruoyi/common/utils/sql/SqlUtil.java new file mode 100644 index 0000000..246a9cf --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/utils/sql/SqlUtil.java @@ -0,0 +1,61 @@ +package com.ruoyi.common.utils.sql; + +import com.ruoyi.common.exception.UtilException; +import com.ruoyi.common.utils.StringUtils; + +/** + * sql操作工具类 + * + * @author ruoyi + */ +public class SqlUtil +{ + /** + * 定义常用的 sql关键字 + */ + public static String SQL_REGEX = "select |insert |delete |update |drop |count |exec |chr |mid |master |truncate |char |and |declare "; + + /** + * 仅支持字母、数字、下划线、空格、逗号、小数点(支持多个字段排序) + */ + public static String SQL_PATTERN = "[a-zA-Z0-9_\\ \\,\\.]+"; + + /** + * 检查字符,防止注入绕过 + */ + public static String escapeOrderBySql(String value) + { + if (StringUtils.isNotEmpty(value) && !isValidOrderBySql(value)) + { + throw new UtilException("参数不符合规范,不能进行查询"); + } + return value; + } + + /** + * 验证 order by 语法是否符合规范 + */ + public static boolean isValidOrderBySql(String value) + { + return value.matches(SQL_PATTERN); + } + + /** + * SQL关键字检查 + */ + public static void filterKeyword(String value) + { + if (StringUtils.isEmpty(value)) + { + return; + } + String[] sqlKeywords = StringUtils.split(SQL_REGEX, "\\|"); + for (String sqlKeyword : sqlKeywords) + { + if (StringUtils.indexOfIgnoreCase(value, sqlKeyword) > -1) + { + throw new UtilException("参数存在SQL注入风险"); + } + } + } +} diff --git a/alive-common/src/main/java/com/ruoyi/common/utils/uuid/IdUtils.java b/alive-common/src/main/java/com/ruoyi/common/utils/uuid/IdUtils.java new file mode 100644 index 0000000..2c84427 --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/utils/uuid/IdUtils.java @@ -0,0 +1,49 @@ +package com.ruoyi.common.utils.uuid; + +/** + * ID生成器工具类 + * + * @author ruoyi + */ +public class IdUtils +{ + /** + * 获取随机UUID + * + * @return 随机UUID + */ + public static String randomUUID() + { + return UUID.randomUUID().toString(); + } + + /** + * 简化的UUID,去掉了横线 + * + * @return 简化的UUID,去掉了横线 + */ + public static String simpleUUID() + { + return UUID.randomUUID().toString(true); + } + + /** + * 获取随机UUID,使用性能更好的ThreadLocalRandom生成UUID + * + * @return 随机UUID + */ + public static String fastUUID() + { + return UUID.fastUUID().toString(); + } + + /** + * 简化的UUID,去掉了横线,使用性能更好的ThreadLocalRandom生成UUID + * + * @return 简化的UUID,去掉了横线 + */ + public static String fastSimpleUUID() + { + return UUID.fastUUID().toString(true); + } +} diff --git a/alive-common/src/main/java/com/ruoyi/common/utils/uuid/UUID.java b/alive-common/src/main/java/com/ruoyi/common/utils/uuid/UUID.java new file mode 100644 index 0000000..062d633 --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/utils/uuid/UUID.java @@ -0,0 +1,484 @@ +package com.ruoyi.common.utils.uuid; + +import java.security.MessageDigest; +import java.security.NoSuchAlgorithmException; +import java.security.SecureRandom; +import java.util.Random; +import java.util.concurrent.ThreadLocalRandom; +import com.ruoyi.common.exception.UtilException; + +/** + * 提供通用唯一识别码(universally unique identifier)(UUID)实现 + * + * @author ruoyi + */ +public final class UUID implements java.io.Serializable, Comparable +{ + private static final long serialVersionUID = -1185015143654744140L; + + /** + * SecureRandom 的单例 + * + */ + private static class Holder + { + static final SecureRandom numberGenerator = getSecureRandom(); + } + + /** 此UUID的最高64有效位 */ + private final long mostSigBits; + + /** 此UUID的最低64有效位 */ + private final long leastSigBits; + + /** + * 私有构造 + * + * @param data 数据 + */ + private UUID(byte[] data) + { + long msb = 0; + long lsb = 0; + assert data.length == 16 : "data must be 16 bytes in length"; + for (int i = 0; i < 8; i++) + { + msb = (msb << 8) | (data[i] & 0xff); + } + for (int i = 8; i < 16; i++) + { + lsb = (lsb << 8) | (data[i] & 0xff); + } + this.mostSigBits = msb; + this.leastSigBits = lsb; + } + + /** + * 使用指定的数据构造新的 UUID。 + * + * @param mostSigBits 用于 {@code UUID} 的最高有效 64 位 + * @param leastSigBits 用于 {@code UUID} 的最低有效 64 位 + */ + public UUID(long mostSigBits, long leastSigBits) + { + this.mostSigBits = mostSigBits; + this.leastSigBits = leastSigBits; + } + + /** + * 获取类型 4(伪随机生成的)UUID 的静态工厂。 使用加密的本地线程伪随机数生成器生成该 UUID。 + * + * @return 随机生成的 {@code UUID} + */ + public static UUID fastUUID() + { + return randomUUID(false); + } + + /** + * 获取类型 4(伪随机生成的)UUID 的静态工厂。 使用加密的强伪随机数生成器生成该 UUID。 + * + * @return 随机生成的 {@code UUID} + */ + public static UUID randomUUID() + { + return randomUUID(true); + } + + /** + * 获取类型 4(伪随机生成的)UUID 的静态工厂。 使用加密的强伪随机数生成器生成该 UUID。 + * + * @param isSecure 是否使用{@link SecureRandom}如果是可以获得更安全的随机码,否则可以得到更好的性能 + * @return 随机生成的 {@code UUID} + */ + public static UUID randomUUID(boolean isSecure) + { + final Random ng = isSecure ? Holder.numberGenerator : getRandom(); + + byte[] randomBytes = new byte[16]; + ng.nextBytes(randomBytes); + randomBytes[6] &= 0x0f; /* clear version */ + randomBytes[6] |= 0x40; /* set to version 4 */ + randomBytes[8] &= 0x3f; /* clear variant */ + randomBytes[8] |= 0x80; /* set to IETF variant */ + return new UUID(randomBytes); + } + + /** + * 根据指定的字节数组获取类型 3(基于名称的)UUID 的静态工厂。 + * + * @param name 用于构造 UUID 的字节数组。 + * + * @return 根据指定数组生成的 {@code UUID} + */ + public static UUID nameUUIDFromBytes(byte[] name) + { + MessageDigest md; + try + { + md = MessageDigest.getInstance("MD5"); + } + catch (NoSuchAlgorithmException nsae) + { + throw new InternalError("MD5 not supported"); + } + byte[] md5Bytes = md.digest(name); + md5Bytes[6] &= 0x0f; /* clear version */ + md5Bytes[6] |= 0x30; /* set to version 3 */ + md5Bytes[8] &= 0x3f; /* clear variant */ + md5Bytes[8] |= 0x80; /* set to IETF variant */ + return new UUID(md5Bytes); + } + + /** + * 根据 {@link #toString()} 方法中描述的字符串标准表示形式创建{@code UUID}。 + * + * @param name 指定 {@code UUID} 字符串 + * @return 具有指定值的 {@code UUID} + * @throws IllegalArgumentException 如果 name 与 {@link #toString} 中描述的字符串表示形式不符抛出此异常 + * + */ + public static UUID fromString(String name) + { + String[] components = name.split("-"); + if (components.length != 5) + { + throw new IllegalArgumentException("Invalid UUID string: " + name); + } + for (int i = 0; i < 5; i++) + { + components[i] = "0x" + components[i]; + } + + long mostSigBits = Long.decode(components[0]).longValue(); + mostSigBits <<= 16; + mostSigBits |= Long.decode(components[1]).longValue(); + mostSigBits <<= 16; + mostSigBits |= Long.decode(components[2]).longValue(); + + long leastSigBits = Long.decode(components[3]).longValue(); + leastSigBits <<= 48; + leastSigBits |= Long.decode(components[4]).longValue(); + + return new UUID(mostSigBits, leastSigBits); + } + + /** + * 返回此 UUID 的 128 位值中的最低有效 64 位。 + * + * @return 此 UUID 的 128 位值中的最低有效 64 位。 + */ + public long getLeastSignificantBits() + { + return leastSigBits; + } + + /** + * 返回此 UUID 的 128 位值中的最高有效 64 位。 + * + * @return 此 UUID 的 128 位值中最高有效 64 位。 + */ + public long getMostSignificantBits() + { + return mostSigBits; + } + + /** + * 与此 {@code UUID} 相关联的版本号. 版本号描述此 {@code UUID} 是如何生成的。 + *

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * 版本号具有以下含意: + *

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  + *
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • 1 基于时间的 UUID + *
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • 2 DCE 安全 UUID + *
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • 3 基于名称的 UUID + *
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • 4 随机生成的 UUID + *
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * + * @return 此 {@code UUID} 的版本号 + */ + public int version() + { + // Version is bits masked by 0x000000000000F000 in MS long + return (int) ((mostSigBits >> 12) & 0x0f); + } + + /** + * 与此 {@code UUID} 相关联的变体号。变体号描述 {@code UUID} 的布局。 + *

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * 变体号具有以下含意: + *

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  + *
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • 0 为 NCS 向后兼容保留 + *
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • 2 IETF RFC 4122(Leach-Salz), 用于此类 + *
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • 6 保留,微软向后兼容 + *
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • 7 保留供以后定义使用 + *
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * + * @return 此 {@code UUID} 相关联的变体号 + */ + public int variant() + { + // This field is composed of a varying number of bits. + // 0 - - Reserved for NCS backward compatibility + // 1 0 - The IETF aka Leach-Salz variant (used by this class) + // 1 1 0 Reserved, Microsoft backward compatibility + // 1 1 1 Reserved for future definition. + return (int) ((leastSigBits >>> (64 - (leastSigBits >>> 62))) & (leastSigBits >> 63)); + } + + /** + * 与此 UUID 相关联的时间戳值。 + * + *

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * 60 位的时间戳值根据此 {@code UUID} 的 time_low、time_mid 和 time_hi 字段构造。
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * 所得到的时间戳以 100 毫微秒为单位,从 UTC(通用协调时间) 1582 年 10 月 15 日零时开始。 + * + *

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * 时间戳值仅在在基于时间的 UUID(其 version 类型为 1)中才有意义。
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * 如果此 {@code UUID} 不是基于时间的 UUID,则此方法抛出 UnsupportedOperationException。 + * + * @throws UnsupportedOperationException 如果此 {@code UUID} 不是 version 为 1 的 UUID。 + */ + public long timestamp() throws UnsupportedOperationException + { + checkTimeBase(); + return (mostSigBits & 0x0FFFL) << 48// + | ((mostSigBits >> 16) & 0x0FFFFL) << 32// + | mostSigBits >>> 32; + } + + /** + * 与此 UUID 相关联的时钟序列值。 + * + *

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * 14 位的时钟序列值根据此 UUID 的 clock_seq 字段构造。clock_seq 字段用于保证在基于时间的 UUID 中的时间唯一性。 + *

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * {@code clockSequence} 值仅在基于时间的 UUID(其 version 类型为 1)中才有意义。 如果此 UUID 不是基于时间的 UUID,则此方法抛出 + * UnsupportedOperationException。 + * + * @return 此 {@code UUID} 的时钟序列 + * + * @throws UnsupportedOperationException 如果此 UUID 的 version 不为 1 + */ + public int clockSequence() throws UnsupportedOperationException + { + checkTimeBase(); + return (int) ((leastSigBits & 0x3FFF000000000000L) >>> 48); + } + + /** + * 与此 UUID 相关的节点值。 + * + *

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * 48 位的节点值根据此 UUID 的 node 字段构造。此字段旨在用于保存机器的 IEEE 802 地址,该地址用于生成此 UUID 以保证空间唯一性。 + *

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * 节点值仅在基于时间的 UUID(其 version 类型为 1)中才有意义。
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * 如果此 UUID 不是基于时间的 UUID,则此方法抛出 UnsupportedOperationException。 + * + * @return 此 {@code UUID} 的节点值 + * + * @throws UnsupportedOperationException 如果此 UUID 的 version 不为 1 + */ + public long node() throws UnsupportedOperationException + { + checkTimeBase(); + return leastSigBits & 0x0000FFFFFFFFFFFFL; + } + + /** + * 返回此{@code UUID} 的字符串表现形式。 + * + *

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * UUID 的字符串表示形式由此 BNF 描述: + * + *

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +     * {@code
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +     * UUID                   = ----
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +     * time_low               = 4*
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +     * time_mid               = 2*
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +     * time_high_and_version  = 2*
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +     * variant_and_sequence   = 2*
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +     * node                   = 6*
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +     * hexOctet               = 
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +     * hexDigit               = [0-9a-fA-F]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +     * }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +     * 
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * + * + * + * @return 此{@code UUID} 的字符串表现形式 + * @see #toString(boolean) + */ + @Override + public String toString() + { + return toString(false); + } + + /** + * 返回此{@code UUID} 的字符串表现形式。 + * + *

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * UUID 的字符串表示形式由此 BNF 描述: + * + *

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +     * {@code
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +     * UUID                   = ----
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +     * time_low               = 4*
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +     * time_mid               = 2*
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +     * time_high_and_version  = 2*
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +     * variant_and_sequence   = 2*
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +     * node                   = 6*
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +     * hexOctet               = 
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +     * hexDigit               = [0-9a-fA-F]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +     * }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +     * 
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * + * + * + * @param isSimple 是否简单模式,简单模式为不带'-'的UUID字符串 + * @return 此{@code UUID} 的字符串表现形式 + */ + public String toString(boolean isSimple) + { + final StringBuilder builder = new StringBuilder(isSimple ? 32 : 36); + // time_low + builder.append(digits(mostSigBits >> 32, 8)); + if (false == isSimple) + { + builder.append('-'); + } + // time_mid + builder.append(digits(mostSigBits >> 16, 4)); + if (false == isSimple) + { + builder.append('-'); + } + // time_high_and_version + builder.append(digits(mostSigBits, 4)); + if (false == isSimple) + { + builder.append('-'); + } + // variant_and_sequence + builder.append(digits(leastSigBits >> 48, 4)); + if (false == isSimple) + { + builder.append('-'); + } + // node + builder.append(digits(leastSigBits, 12)); + + return builder.toString(); + } + + /** + * 返回此 UUID 的哈希码。 + * + * @return UUID 的哈希码值。 + */ + @Override + public int hashCode() + { + long hilo = mostSigBits ^ leastSigBits; + return ((int) (hilo >> 32)) ^ (int) hilo; + } + + /** + * 将此对象与指定对象比较。 + *

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * 当且仅当参数不为 {@code null}、而是一个 UUID 对象、具有与此 UUID 相同的 varriant、包含相同的值(每一位均相同)时,结果才为 {@code true}。 + * + * @param obj 要与之比较的对象 + * + * @return 如果对象相同,则返回 {@code true};否则返回 {@code false} + */ + @Override + public boolean equals(Object obj) + { + if ((null == obj) || (obj.getClass() != UUID.class)) + { + return false; + } + UUID id = (UUID) obj; + return (mostSigBits == id.mostSigBits && leastSigBits == id.leastSigBits); + } + + // Comparison Operations + + /** + * 将此 UUID 与指定的 UUID 比较。 + * + *

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * 如果两个 UUID 不同,且第一个 UUID 的最高有效字段大于第二个 UUID 的对应字段,则第一个 UUID 大于第二个 UUID。 + * + * @param val 与此 UUID 比较的 UUID + * + * @return 在此 UUID 小于、等于或大于 val 时,分别返回 -1、0 或 1。 + * + */ + @Override + public int compareTo(UUID val) + { + // The ordering is intentionally set up so that the UUIDs + // can simply be numerically compared as two numbers + return (this.mostSigBits < val.mostSigBits ? -1 : // + (this.mostSigBits > val.mostSigBits ? 1 : // + (this.leastSigBits < val.leastSigBits ? -1 : // + (this.leastSigBits > val.leastSigBits ? 1 : // + 0)))); + } + + // ------------------------------------------------------------------------------------------------------------------- + // Private method start + /** + * 返回指定数字对应的hex值 + * + * @param val 值 + * @param digits 位 + * @return 值 + */ + private static String digits(long val, int digits) + { + long hi = 1L << (digits * 4); + return Long.toHexString(hi | (val & (hi - 1))).substring(1); + } + + /** + * 检查是否为time-based版本UUID + */ + private void checkTimeBase() + { + if (version() != 1) + { + throw new UnsupportedOperationException("Not a time-based UUID"); + } + } + + /** + * 获取{@link SecureRandom},类提供加密的强随机数生成器 (RNG) + * + * @return {@link SecureRandom} + */ + public static SecureRandom getSecureRandom() + { + try + { + return SecureRandom.getInstance("SHA1PRNG"); + } + catch (NoSuchAlgorithmException e) + { + throw new UtilException(e); + } + } + + /** + * 获取随机数生成器对象
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * ThreadLocalRandom是JDK 7之后提供并发产生随机数,能够解决多个线程发生的竞争争夺。 + * + * @return {@link ThreadLocalRandom} + */ + public static ThreadLocalRandom getRandom() + { + return ThreadLocalRandom.current(); + } +} diff --git a/alive-common/src/main/java/com/ruoyi/common/xss/Xss.java b/alive-common/src/main/java/com/ruoyi/common/xss/Xss.java new file mode 100644 index 0000000..7bfdf04 --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/xss/Xss.java @@ -0,0 +1,27 @@ +package com.ruoyi.common.xss; + +import javax.validation.Constraint; +import javax.validation.Payload; +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +/** + * 自定义xss校验注解 + * + * @author ruoyi + */ +@Retention(RetentionPolicy.RUNTIME) +@Target(value = { ElementType.METHOD, ElementType.FIELD, ElementType.CONSTRUCTOR, ElementType.PARAMETER }) +@Constraint(validatedBy = { XssValidator.class }) +public @interface Xss +{ + String message() + + default "不允许任何脚本运行"; + + Class[] groups() default {}; + + Class[] payload() default {}; +} diff --git a/alive-common/src/main/java/com/ruoyi/common/xss/XssFilter.java b/alive-common/src/main/java/com/ruoyi/common/xss/XssFilter.java new file mode 100644 index 0000000..7918056 --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/xss/XssFilter.java @@ -0,0 +1,74 @@ +package com.ruoyi.common.xss; + +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import javax.servlet.Filter; +import javax.servlet.FilterChain; +import javax.servlet.FilterConfig; +import javax.servlet.ServletException; +import javax.servlet.ServletRequest; +import javax.servlet.ServletResponse; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import com.ruoyi.common.utils.StringUtils; + +/** + * 防止XSS攻击的过滤器 + * + * @author ruoyi + */ +public class XssFilter implements Filter +{ + /** + * 排除链接 + */ + public List excludes = new ArrayList<>(); + + @Override + public void init(FilterConfig filterConfig) throws ServletException + { + String tempExcludes = filterConfig.getInitParameter("excludes"); + if (StringUtils.isNotEmpty(tempExcludes)) + { + String[] url = tempExcludes.split(","); + for (int i = 0; url != null && i < url.length; i++) + { + excludes.add(url[i]); + } + } + } + + @Override + public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) + throws IOException, ServletException + { + HttpServletRequest req = (HttpServletRequest) request; + HttpServletResponse resp = (HttpServletResponse) response; + if (handleExcludeURL(req, resp)) + { + chain.doFilter(request, response); + return; + } + XssHttpServletRequestWrapper xssRequest = new XssHttpServletRequestWrapper((HttpServletRequest) request); + chain.doFilter(xssRequest, response); + } + + private boolean handleExcludeURL(HttpServletRequest request, HttpServletResponse response) + { + String url = request.getServletPath(); + String method = request.getMethod(); + // GET DELETE 不过滤 + if (method == null || method.matches("GET") || method.matches("DELETE")) + { + return true; + } + return StringUtils.matches(url, excludes); + } + + @Override + public void destroy() + { + + } +} \ No newline at end of file diff --git a/alive-common/src/main/java/com/ruoyi/common/xss/XssHttpServletRequestWrapper.java b/alive-common/src/main/java/com/ruoyi/common/xss/XssHttpServletRequestWrapper.java new file mode 100644 index 0000000..929de41 --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/xss/XssHttpServletRequestWrapper.java @@ -0,0 +1,39 @@ +package com.ruoyi.common.xss; + +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletRequestWrapper; +import com.ruoyi.common.utils.html.EscapeUtil; + +/** + * XSS过滤处理 + * + * @author ruoyi + */ +public class XssHttpServletRequestWrapper extends HttpServletRequestWrapper +{ + /** + * @param request + */ + public XssHttpServletRequestWrapper(HttpServletRequest request) + { + super(request); + } + + @Override + public String[] getParameterValues(String name) + { + String[] values = super.getParameterValues(name); + if (values != null) + { + int length = values.length; + String[] escapseValues = new String[length]; + for (int i = 0; i < length; i++) + { + // 防xss攻击和过滤前后空格 + escapseValues[i] = EscapeUtil.clean(values[i]).trim(); + } + return escapseValues; + } + return super.getParameterValues(name); + } +} \ No newline at end of file diff --git a/alive-common/src/main/java/com/ruoyi/common/xss/XssValidator.java b/alive-common/src/main/java/com/ruoyi/common/xss/XssValidator.java new file mode 100644 index 0000000..ed9ec1f --- /dev/null +++ b/alive-common/src/main/java/com/ruoyi/common/xss/XssValidator.java @@ -0,0 +1,34 @@ +package com.ruoyi.common.xss; + +import com.ruoyi.common.utils.StringUtils; +import javax.validation.ConstraintValidator; +import javax.validation.ConstraintValidatorContext; +import java.util.regex.Matcher; +import java.util.regex.Pattern; + +/** + * 自定义xss校验注解实现 + * + * @author ruoyi + */ +public class XssValidator implements ConstraintValidator +{ + private static final String HTML_PATTERN = "<(\\S*?)[^>]*>.*?|<.*? />"; + + @Override + public boolean isValid(String value, ConstraintValidatorContext constraintValidatorContext) + { + if (StringUtils.isBlank(value)) + { + return true; + } + return !containsHtml(value); + } + + public static boolean containsHtml(String value) + { + Pattern pattern = Pattern.compile(HTML_PATTERN); + Matcher matcher = pattern.matcher(value); + return matcher.matches(); + } +} \ No newline at end of file diff --git a/alive-common/target/alive-common-4.7.2.jar b/alive-common/target/alive-common-4.7.2.jar new file mode 100644 index 0000000..097f3a8 Binary files /dev/null and b/alive-common/target/alive-common-4.7.2.jar differ diff --git a/alive-common/target/classes/com/ruoyi/common/annotation/DataScope.class b/alive-common/target/classes/com/ruoyi/common/annotation/DataScope.class new file mode 100644 index 0000000..6d330b4 Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/annotation/DataScope.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/annotation/DataSource.class b/alive-common/target/classes/com/ruoyi/common/annotation/DataSource.class new file mode 100644 index 0000000..ae50afc Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/annotation/DataSource.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/annotation/Excel$Align.class b/alive-common/target/classes/com/ruoyi/common/annotation/Excel$Align.class new file mode 100644 index 0000000..8462045 Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/annotation/Excel$Align.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/annotation/Excel$ColumnType.class b/alive-common/target/classes/com/ruoyi/common/annotation/Excel$ColumnType.class new file mode 100644 index 0000000..a33da00 Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/annotation/Excel$ColumnType.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/annotation/Excel$Type.class b/alive-common/target/classes/com/ruoyi/common/annotation/Excel$Type.class new file mode 100644 index 0000000..721f254 Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/annotation/Excel$Type.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/annotation/Excel.class b/alive-common/target/classes/com/ruoyi/common/annotation/Excel.class new file mode 100644 index 0000000..6cf5d73 Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/annotation/Excel.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/annotation/Excels.class b/alive-common/target/classes/com/ruoyi/common/annotation/Excels.class new file mode 100644 index 0000000..fed578d Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/annotation/Excels.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/annotation/Log.class b/alive-common/target/classes/com/ruoyi/common/annotation/Log.class new file mode 100644 index 0000000..c762b72 Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/annotation/Log.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/annotation/RepeatSubmit.class b/alive-common/target/classes/com/ruoyi/common/annotation/RepeatSubmit.class new file mode 100644 index 0000000..cbac661 Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/annotation/RepeatSubmit.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/config/RuoYiConfig.class b/alive-common/target/classes/com/ruoyi/common/config/RuoYiConfig.class new file mode 100644 index 0000000..9732837 Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/config/RuoYiConfig.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/config/ServerConfig.class b/alive-common/target/classes/com/ruoyi/common/config/ServerConfig.class new file mode 100644 index 0000000..d4cc363 Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/config/ServerConfig.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/config/datasource/DynamicDataSourceContextHolder.class b/alive-common/target/classes/com/ruoyi/common/config/datasource/DynamicDataSourceContextHolder.class new file mode 100644 index 0000000..e1b67d4 Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/config/datasource/DynamicDataSourceContextHolder.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/config/thread/ThreadPoolConfig$1.class b/alive-common/target/classes/com/ruoyi/common/config/thread/ThreadPoolConfig$1.class new file mode 100644 index 0000000..818654f Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/config/thread/ThreadPoolConfig$1.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/config/thread/ThreadPoolConfig.class b/alive-common/target/classes/com/ruoyi/common/config/thread/ThreadPoolConfig.class new file mode 100644 index 0000000..902ebc7 Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/config/thread/ThreadPoolConfig.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/constant/Constants.class b/alive-common/target/classes/com/ruoyi/common/constant/Constants.class new file mode 100644 index 0000000..4946244 Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/constant/Constants.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/constant/GenConstants.class b/alive-common/target/classes/com/ruoyi/common/constant/GenConstants.class new file mode 100644 index 0000000..f0b94d7 Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/constant/GenConstants.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/constant/PermissionConstants.class b/alive-common/target/classes/com/ruoyi/common/constant/PermissionConstants.class new file mode 100644 index 0000000..65ebdfb Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/constant/PermissionConstants.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/constant/ScheduleConstants$Status.class b/alive-common/target/classes/com/ruoyi/common/constant/ScheduleConstants$Status.class new file mode 100644 index 0000000..94a75c4 Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/constant/ScheduleConstants$Status.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/constant/ScheduleConstants.class b/alive-common/target/classes/com/ruoyi/common/constant/ScheduleConstants.class new file mode 100644 index 0000000..8ea01aa Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/constant/ScheduleConstants.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/constant/ShiroConstants.class b/alive-common/target/classes/com/ruoyi/common/constant/ShiroConstants.class new file mode 100644 index 0000000..49a07bd Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/constant/ShiroConstants.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/constant/UserConstants.class b/alive-common/target/classes/com/ruoyi/common/constant/UserConstants.class new file mode 100644 index 0000000..df488f7 Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/constant/UserConstants.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/core/controller/BaseController$1.class b/alive-common/target/classes/com/ruoyi/common/core/controller/BaseController$1.class new file mode 100644 index 0000000..bb10432 Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/core/controller/BaseController$1.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/core/controller/BaseController.class b/alive-common/target/classes/com/ruoyi/common/core/controller/BaseController.class new file mode 100644 index 0000000..ad0338d Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/core/controller/BaseController.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/core/domain/AjaxResult$Type.class b/alive-common/target/classes/com/ruoyi/common/core/domain/AjaxResult$Type.class new file mode 100644 index 0000000..c3caa1b Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/core/domain/AjaxResult$Type.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/core/domain/AjaxResult.class b/alive-common/target/classes/com/ruoyi/common/core/domain/AjaxResult.class new file mode 100644 index 0000000..cfb94f1 Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/core/domain/AjaxResult.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/core/domain/BaseEntity.class b/alive-common/target/classes/com/ruoyi/common/core/domain/BaseEntity.class new file mode 100644 index 0000000..1dab238 Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/core/domain/BaseEntity.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/core/domain/CxSelect.class b/alive-common/target/classes/com/ruoyi/common/core/domain/CxSelect.class new file mode 100644 index 0000000..f0c2056 Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/core/domain/CxSelect.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/core/domain/TreeEntity.class b/alive-common/target/classes/com/ruoyi/common/core/domain/TreeEntity.class new file mode 100644 index 0000000..b5d4d50 Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/core/domain/TreeEntity.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/core/domain/Ztree.class b/alive-common/target/classes/com/ruoyi/common/core/domain/Ztree.class new file mode 100644 index 0000000..1aad45a Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/core/domain/Ztree.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/core/domain/entity/SysDept.class b/alive-common/target/classes/com/ruoyi/common/core/domain/entity/SysDept.class new file mode 100644 index 0000000..f78a321 Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/core/domain/entity/SysDept.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/core/domain/entity/SysDictData.class b/alive-common/target/classes/com/ruoyi/common/core/domain/entity/SysDictData.class new file mode 100644 index 0000000..2f1f62f Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/core/domain/entity/SysDictData.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/core/domain/entity/SysDictType.class b/alive-common/target/classes/com/ruoyi/common/core/domain/entity/SysDictType.class new file mode 100644 index 0000000..22ee672 Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/core/domain/entity/SysDictType.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/core/domain/entity/SysMenu.class b/alive-common/target/classes/com/ruoyi/common/core/domain/entity/SysMenu.class new file mode 100644 index 0000000..220915a Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/core/domain/entity/SysMenu.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/core/domain/entity/SysRole.class b/alive-common/target/classes/com/ruoyi/common/core/domain/entity/SysRole.class new file mode 100644 index 0000000..bbcea82 Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/core/domain/entity/SysRole.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/core/domain/entity/SysUser.class b/alive-common/target/classes/com/ruoyi/common/core/domain/entity/SysUser.class new file mode 100644 index 0000000..0fb6dc9 Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/core/domain/entity/SysUser.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/core/page/PageDomain.class b/alive-common/target/classes/com/ruoyi/common/core/page/PageDomain.class new file mode 100644 index 0000000..1b10ef0 Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/core/page/PageDomain.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/core/page/TableDataInfo.class b/alive-common/target/classes/com/ruoyi/common/core/page/TableDataInfo.class new file mode 100644 index 0000000..0df5d9c Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/core/page/TableDataInfo.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/core/page/TableSupport.class b/alive-common/target/classes/com/ruoyi/common/core/page/TableSupport.class new file mode 100644 index 0000000..151d598 Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/core/page/TableSupport.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/core/text/CharsetKit.class b/alive-common/target/classes/com/ruoyi/common/core/text/CharsetKit.class new file mode 100644 index 0000000..06176e5 Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/core/text/CharsetKit.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/core/text/Convert.class b/alive-common/target/classes/com/ruoyi/common/core/text/Convert.class new file mode 100644 index 0000000..768d738 Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/core/text/Convert.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/core/text/StrFormatter.class b/alive-common/target/classes/com/ruoyi/common/core/text/StrFormatter.class new file mode 100644 index 0000000..d0c1736 Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/core/text/StrFormatter.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/enums/BusinessStatus.class b/alive-common/target/classes/com/ruoyi/common/enums/BusinessStatus.class new file mode 100644 index 0000000..a6ed56a Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/enums/BusinessStatus.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/enums/BusinessType.class b/alive-common/target/classes/com/ruoyi/common/enums/BusinessType.class new file mode 100644 index 0000000..3d39fac Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/enums/BusinessType.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/enums/DataSourceType.class b/alive-common/target/classes/com/ruoyi/common/enums/DataSourceType.class new file mode 100644 index 0000000..ef976f4 Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/enums/DataSourceType.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/enums/OnlineStatus.class b/alive-common/target/classes/com/ruoyi/common/enums/OnlineStatus.class new file mode 100644 index 0000000..1cc9a13 Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/enums/OnlineStatus.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/enums/OperatorType.class b/alive-common/target/classes/com/ruoyi/common/enums/OperatorType.class new file mode 100644 index 0000000..f6a702f Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/enums/OperatorType.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/enums/UserStatus.class b/alive-common/target/classes/com/ruoyi/common/enums/UserStatus.class new file mode 100644 index 0000000..40fa950 Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/enums/UserStatus.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/exception/DemoModeException.class b/alive-common/target/classes/com/ruoyi/common/exception/DemoModeException.class new file mode 100644 index 0000000..c2c7f3e Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/exception/DemoModeException.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/exception/GlobalException.class b/alive-common/target/classes/com/ruoyi/common/exception/GlobalException.class new file mode 100644 index 0000000..b685370 Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/exception/GlobalException.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/exception/ServiceException.class b/alive-common/target/classes/com/ruoyi/common/exception/ServiceException.class new file mode 100644 index 0000000..3b10aef Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/exception/ServiceException.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/exception/UtilException.class b/alive-common/target/classes/com/ruoyi/common/exception/UtilException.class new file mode 100644 index 0000000..fd58116 Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/exception/UtilException.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/exception/base/BaseException.class b/alive-common/target/classes/com/ruoyi/common/exception/base/BaseException.class new file mode 100644 index 0000000..55bd58a Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/exception/base/BaseException.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/exception/file/FileException.class b/alive-common/target/classes/com/ruoyi/common/exception/file/FileException.class new file mode 100644 index 0000000..7c9cb9e Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/exception/file/FileException.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/exception/file/FileNameLengthLimitExceededException.class b/alive-common/target/classes/com/ruoyi/common/exception/file/FileNameLengthLimitExceededException.class new file mode 100644 index 0000000..418d10e Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/exception/file/FileNameLengthLimitExceededException.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/exception/file/FileSizeLimitExceededException.class b/alive-common/target/classes/com/ruoyi/common/exception/file/FileSizeLimitExceededException.class new file mode 100644 index 0000000..867ca4e Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/exception/file/FileSizeLimitExceededException.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/exception/file/InvalidExtensionException$InvalidFlashExtensionException.class b/alive-common/target/classes/com/ruoyi/common/exception/file/InvalidExtensionException$InvalidFlashExtensionException.class new file mode 100644 index 0000000..c52a5b0 Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/exception/file/InvalidExtensionException$InvalidFlashExtensionException.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/exception/file/InvalidExtensionException$InvalidImageExtensionException.class b/alive-common/target/classes/com/ruoyi/common/exception/file/InvalidExtensionException$InvalidImageExtensionException.class new file mode 100644 index 0000000..bb4ba71 Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/exception/file/InvalidExtensionException$InvalidImageExtensionException.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/exception/file/InvalidExtensionException$InvalidMediaExtensionException.class b/alive-common/target/classes/com/ruoyi/common/exception/file/InvalidExtensionException$InvalidMediaExtensionException.class new file mode 100644 index 0000000..abf13a0 Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/exception/file/InvalidExtensionException$InvalidMediaExtensionException.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/exception/file/InvalidExtensionException$InvalidVideoExtensionException.class b/alive-common/target/classes/com/ruoyi/common/exception/file/InvalidExtensionException$InvalidVideoExtensionException.class new file mode 100644 index 0000000..10f91b3 Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/exception/file/InvalidExtensionException$InvalidVideoExtensionException.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/exception/file/InvalidExtensionException.class b/alive-common/target/classes/com/ruoyi/common/exception/file/InvalidExtensionException.class new file mode 100644 index 0000000..579f850 Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/exception/file/InvalidExtensionException.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/exception/job/TaskException$Code.class b/alive-common/target/classes/com/ruoyi/common/exception/job/TaskException$Code.class new file mode 100644 index 0000000..4053363 Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/exception/job/TaskException$Code.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/exception/job/TaskException.class b/alive-common/target/classes/com/ruoyi/common/exception/job/TaskException.class new file mode 100644 index 0000000..fd1270b Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/exception/job/TaskException.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/exception/user/CaptchaException.class b/alive-common/target/classes/com/ruoyi/common/exception/user/CaptchaException.class new file mode 100644 index 0000000..4efae4d Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/exception/user/CaptchaException.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/exception/user/RoleBlockedException.class b/alive-common/target/classes/com/ruoyi/common/exception/user/RoleBlockedException.class new file mode 100644 index 0000000..d691582 Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/exception/user/RoleBlockedException.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/exception/user/UserBlockedException.class b/alive-common/target/classes/com/ruoyi/common/exception/user/UserBlockedException.class new file mode 100644 index 0000000..30600f1 Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/exception/user/UserBlockedException.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/exception/user/UserDeleteException.class b/alive-common/target/classes/com/ruoyi/common/exception/user/UserDeleteException.class new file mode 100644 index 0000000..3c3f84a Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/exception/user/UserDeleteException.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/exception/user/UserException.class b/alive-common/target/classes/com/ruoyi/common/exception/user/UserException.class new file mode 100644 index 0000000..ef0d674 Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/exception/user/UserException.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/exception/user/UserNotExistsException.class b/alive-common/target/classes/com/ruoyi/common/exception/user/UserNotExistsException.class new file mode 100644 index 0000000..488ae1e Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/exception/user/UserNotExistsException.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/exception/user/UserPasswordNotMatchException.class b/alive-common/target/classes/com/ruoyi/common/exception/user/UserPasswordNotMatchException.class new file mode 100644 index 0000000..cd4e9b1 Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/exception/user/UserPasswordNotMatchException.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/exception/user/UserPasswordRetryLimitCountException.class b/alive-common/target/classes/com/ruoyi/common/exception/user/UserPasswordRetryLimitCountException.class new file mode 100644 index 0000000..9b8f357 Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/exception/user/UserPasswordRetryLimitCountException.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/exception/user/UserPasswordRetryLimitExceedException.class b/alive-common/target/classes/com/ruoyi/common/exception/user/UserPasswordRetryLimitExceedException.class new file mode 100644 index 0000000..a6b7243 Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/exception/user/UserPasswordRetryLimitExceedException.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/json/JSON.class b/alive-common/target/classes/com/ruoyi/common/json/JSON.class new file mode 100644 index 0000000..e70d408 Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/json/JSON.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/json/JSONObject$1.class b/alive-common/target/classes/com/ruoyi/common/json/JSONObject$1.class new file mode 100644 index 0000000..9e3a760 Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/json/JSONObject$1.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/json/JSONObject$2.class b/alive-common/target/classes/com/ruoyi/common/json/JSONObject$2.class new file mode 100644 index 0000000..658ebc3 Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/json/JSONObject$2.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/json/JSONObject$3.class b/alive-common/target/classes/com/ruoyi/common/json/JSONObject$3.class new file mode 100644 index 0000000..f07b120 Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/json/JSONObject$3.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/json/JSONObject$EndArrayCallback.class b/alive-common/target/classes/com/ruoyi/common/json/JSONObject$EndArrayCallback.class new file mode 100644 index 0000000..6334c6f Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/json/JSONObject$EndArrayCallback.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/json/JSONObject$JSONArray.class b/alive-common/target/classes/com/ruoyi/common/json/JSONObject$JSONArray.class new file mode 100644 index 0000000..2acdc7e Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/json/JSONObject$JSONArray.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/json/JSONObject.class b/alive-common/target/classes/com/ruoyi/common/json/JSONObject.class new file mode 100644 index 0000000..b3aeb4f Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/json/JSONObject.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/utils/AddressUtils.class b/alive-common/target/classes/com/ruoyi/common/utils/AddressUtils.class new file mode 100644 index 0000000..23aadd5 Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/utils/AddressUtils.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/utils/Arith.class b/alive-common/target/classes/com/ruoyi/common/utils/Arith.class new file mode 100644 index 0000000..93c5857 Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/utils/Arith.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/utils/CacheUtils.class b/alive-common/target/classes/com/ruoyi/common/utils/CacheUtils.class new file mode 100644 index 0000000..e0ba5c1 Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/utils/CacheUtils.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/utils/CoinUtil.class b/alive-common/target/classes/com/ruoyi/common/utils/CoinUtil.class new file mode 100644 index 0000000..e8d1814 Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/utils/CoinUtil.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/utils/CookieUtils.class b/alive-common/target/classes/com/ruoyi/common/utils/CookieUtils.class new file mode 100644 index 0000000..7742dc5 Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/utils/CookieUtils.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/utils/DateUtils.class b/alive-common/target/classes/com/ruoyi/common/utils/DateUtils.class new file mode 100644 index 0000000..f7b8f15 Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/utils/DateUtils.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/utils/DictUtils.class b/alive-common/target/classes/com/ruoyi/common/utils/DictUtils.class new file mode 100644 index 0000000..a864e9f Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/utils/DictUtils.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/utils/ExceptionUtil.class b/alive-common/target/classes/com/ruoyi/common/utils/ExceptionUtil.class new file mode 100644 index 0000000..cd62101 Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/utils/ExceptionUtil.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/utils/IpUtils.class b/alive-common/target/classes/com/ruoyi/common/utils/IpUtils.class new file mode 100644 index 0000000..ce01f09 Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/utils/IpUtils.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/utils/LogUtils.class b/alive-common/target/classes/com/ruoyi/common/utils/LogUtils.class new file mode 100644 index 0000000..baab758 Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/utils/LogUtils.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/utils/MapDataUtil.class b/alive-common/target/classes/com/ruoyi/common/utils/MapDataUtil.class new file mode 100644 index 0000000..6568837 Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/utils/MapDataUtil.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/utils/MessageUtils.class b/alive-common/target/classes/com/ruoyi/common/utils/MessageUtils.class new file mode 100644 index 0000000..ca75c7c Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/utils/MessageUtils.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/utils/PageUtils.class b/alive-common/target/classes/com/ruoyi/common/utils/PageUtils.class new file mode 100644 index 0000000..28c06f9 Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/utils/PageUtils.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/utils/ServletUtils.class b/alive-common/target/classes/com/ruoyi/common/utils/ServletUtils.class new file mode 100644 index 0000000..8e73b7b Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/utils/ServletUtils.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/utils/ShiroUtils.class b/alive-common/target/classes/com/ruoyi/common/utils/ShiroUtils.class new file mode 100644 index 0000000..486fcd1 Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/utils/ShiroUtils.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/utils/StringUtils.class b/alive-common/target/classes/com/ruoyi/common/utils/StringUtils.class new file mode 100644 index 0000000..4c71bf6 Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/utils/StringUtils.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/utils/Threads.class b/alive-common/target/classes/com/ruoyi/common/utils/Threads.class new file mode 100644 index 0000000..ef07bbe Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/utils/Threads.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/utils/YamlUtil.class b/alive-common/target/classes/com/ruoyi/common/utils/YamlUtil.class new file mode 100644 index 0000000..f0d877a Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/utils/YamlUtil.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/utils/bean/BeanUtils.class b/alive-common/target/classes/com/ruoyi/common/utils/bean/BeanUtils.class new file mode 100644 index 0000000..73eff3f Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/utils/bean/BeanUtils.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/utils/bean/BeanValidators.class b/alive-common/target/classes/com/ruoyi/common/utils/bean/BeanValidators.class new file mode 100644 index 0000000..89e8abf Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/utils/bean/BeanValidators.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/utils/file/FileTypeUtils.class b/alive-common/target/classes/com/ruoyi/common/utils/file/FileTypeUtils.class new file mode 100644 index 0000000..d78a82f Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/utils/file/FileTypeUtils.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/utils/file/FileUploadUtils.class b/alive-common/target/classes/com/ruoyi/common/utils/file/FileUploadUtils.class new file mode 100644 index 0000000..b177b03 Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/utils/file/FileUploadUtils.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/utils/file/FileUtils.class b/alive-common/target/classes/com/ruoyi/common/utils/file/FileUtils.class new file mode 100644 index 0000000..c34c713 Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/utils/file/FileUtils.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/utils/file/ImageUtils.class b/alive-common/target/classes/com/ruoyi/common/utils/file/ImageUtils.class new file mode 100644 index 0000000..613bfa8 Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/utils/file/ImageUtils.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/utils/file/MimeTypeUtils.class b/alive-common/target/classes/com/ruoyi/common/utils/file/MimeTypeUtils.class new file mode 100644 index 0000000..3465723 Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/utils/file/MimeTypeUtils.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/utils/html/EscapeUtil.class b/alive-common/target/classes/com/ruoyi/common/utils/html/EscapeUtil.class new file mode 100644 index 0000000..1005c8d Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/utils/html/EscapeUtil.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/utils/html/HTMLFilter.class b/alive-common/target/classes/com/ruoyi/common/utils/html/HTMLFilter.class new file mode 100644 index 0000000..f5fc997 Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/utils/html/HTMLFilter.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/utils/http/HttpUtils$1.class b/alive-common/target/classes/com/ruoyi/common/utils/http/HttpUtils$1.class new file mode 100644 index 0000000..3df88e3 Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/utils/http/HttpUtils$1.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/utils/http/HttpUtils$TrustAnyHostnameVerifier.class b/alive-common/target/classes/com/ruoyi/common/utils/http/HttpUtils$TrustAnyHostnameVerifier.class new file mode 100644 index 0000000..364ef9b Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/utils/http/HttpUtils$TrustAnyHostnameVerifier.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/utils/http/HttpUtils$TrustAnyTrustManager.class b/alive-common/target/classes/com/ruoyi/common/utils/http/HttpUtils$TrustAnyTrustManager.class new file mode 100644 index 0000000..9244106 Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/utils/http/HttpUtils$TrustAnyTrustManager.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/utils/http/HttpUtils.class b/alive-common/target/classes/com/ruoyi/common/utils/http/HttpUtils.class new file mode 100644 index 0000000..c498697 Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/utils/http/HttpUtils.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/utils/poi/ExcelHandlerAdapter.class b/alive-common/target/classes/com/ruoyi/common/utils/poi/ExcelHandlerAdapter.class new file mode 100644 index 0000000..9496da9 Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/utils/poi/ExcelHandlerAdapter.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/utils/poi/ExcelUtil.class b/alive-common/target/classes/com/ruoyi/common/utils/poi/ExcelUtil.class new file mode 100644 index 0000000..331b1c2 Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/utils/poi/ExcelUtil.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/utils/reflect/ReflectUtils.class b/alive-common/target/classes/com/ruoyi/common/utils/reflect/ReflectUtils.class new file mode 100644 index 0000000..a1eb773 Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/utils/reflect/ReflectUtils.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/utils/security/CipherUtils.class b/alive-common/target/classes/com/ruoyi/common/utils/security/CipherUtils.class new file mode 100644 index 0000000..e9ca43b Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/utils/security/CipherUtils.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/utils/security/Md5Utils.class b/alive-common/target/classes/com/ruoyi/common/utils/security/Md5Utils.class new file mode 100644 index 0000000..14b71a3 Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/utils/security/Md5Utils.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/utils/security/PermissionUtils.class b/alive-common/target/classes/com/ruoyi/common/utils/security/PermissionUtils.class new file mode 100644 index 0000000..0b4b9fa Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/utils/security/PermissionUtils.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/utils/spring/SpringUtils.class b/alive-common/target/classes/com/ruoyi/common/utils/spring/SpringUtils.class new file mode 100644 index 0000000..a2b6f84 Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/utils/spring/SpringUtils.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/utils/sql/SqlUtil.class b/alive-common/target/classes/com/ruoyi/common/utils/sql/SqlUtil.class new file mode 100644 index 0000000..26050ee Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/utils/sql/SqlUtil.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/utils/uuid/IdUtils.class b/alive-common/target/classes/com/ruoyi/common/utils/uuid/IdUtils.class new file mode 100644 index 0000000..60ed5df Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/utils/uuid/IdUtils.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/utils/uuid/UUID$Holder.class b/alive-common/target/classes/com/ruoyi/common/utils/uuid/UUID$Holder.class new file mode 100644 index 0000000..b9ef6fa Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/utils/uuid/UUID$Holder.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/utils/uuid/UUID.class b/alive-common/target/classes/com/ruoyi/common/utils/uuid/UUID.class new file mode 100644 index 0000000..961874c Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/utils/uuid/UUID.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/xss/Xss.class b/alive-common/target/classes/com/ruoyi/common/xss/Xss.class new file mode 100644 index 0000000..404ec7a Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/xss/Xss.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/xss/XssFilter.class b/alive-common/target/classes/com/ruoyi/common/xss/XssFilter.class new file mode 100644 index 0000000..3e4ac44 Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/xss/XssFilter.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/xss/XssHttpServletRequestWrapper.class b/alive-common/target/classes/com/ruoyi/common/xss/XssHttpServletRequestWrapper.class new file mode 100644 index 0000000..6736fca Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/xss/XssHttpServletRequestWrapper.class differ diff --git a/alive-common/target/classes/com/ruoyi/common/xss/XssValidator.class b/alive-common/target/classes/com/ruoyi/common/xss/XssValidator.class new file mode 100644 index 0000000..fa07146 Binary files /dev/null and b/alive-common/target/classes/com/ruoyi/common/xss/XssValidator.class differ diff --git a/alive-common/target/maven-archiver/pom.properties b/alive-common/target/maven-archiver/pom.properties new file mode 100644 index 0000000..0e98f50 --- /dev/null +++ b/alive-common/target/maven-archiver/pom.properties @@ -0,0 +1,5 @@ +#Generated by Maven +#Mon May 27 15:35:30 GMT+08:00 2024 +version=4.7.2 +groupId=com.alive +artifactId=alive-common diff --git a/alive-common/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst b/alive-common/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst new file mode 100644 index 0000000..d0c0e5a --- /dev/null +++ b/alive-common/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst @@ -0,0 +1,124 @@ +com\ruoyi\common\exception\user\RoleBlockedException.class +com\ruoyi\common\utils\ShiroUtils.class +com\ruoyi\common\utils\uuid\IdUtils.class +com\ruoyi\common\config\thread\ThreadPoolConfig$1.class +com\ruoyi\common\utils\security\CipherUtils.class +com\ruoyi\common\annotation\RepeatSubmit.class +com\ruoyi\common\constant\GenConstants.class +com\ruoyi\common\core\domain\TreeEntity.class +com\ruoyi\common\exception\base\BaseException.class +com\ruoyi\common\xss\Xss.class +com\ruoyi\common\exception\user\UserNotExistsException.class +com\ruoyi\common\utils\MapDataUtil.class +com\ruoyi\common\json\JSONObject$2.class +com\ruoyi\common\exception\user\UserPasswordNotMatchException.class +com\ruoyi\common\annotation\Log.class +com\ruoyi\common\core\controller\BaseController$1.class +com\ruoyi\common\utils\file\ImageUtils.class +com\ruoyi\common\config\RuoYiConfig.class +com\ruoyi\common\enums\BusinessStatus.class +com\ruoyi\common\utils\http\HttpUtils$TrustAnyHostnameVerifier.class +com\ruoyi\common\exception\file\FileSizeLimitExceededException.class +com\ruoyi\common\utils\Arith.class +com\ruoyi\common\annotation\Excel$ColumnType.class +com\ruoyi\common\utils\CacheUtils.class +com\ruoyi\common\constant\ShiroConstants.class +com\ruoyi\common\annotation\DataScope.class +com\ruoyi\common\exception\user\UserBlockedException.class +com\ruoyi\common\core\domain\entity\SysDictType.class +com\ruoyi\common\core\domain\CxSelect.class +com\ruoyi\common\core\text\StrFormatter.class +com\ruoyi\common\annotation\Excels.class +com\ruoyi\common\core\domain\entity\SysDictData.class +com\ruoyi\common\utils\http\HttpUtils$TrustAnyTrustManager.class +com\ruoyi\common\enums\UserStatus.class +com\ruoyi\common\annotation\Excel$Type.class +com\ruoyi\common\xss\XssFilter.class +com\ruoyi\common\config\datasource\DynamicDataSourceContextHolder.class +com\ruoyi\common\exception\job\TaskException$Code.class +com\ruoyi\common\utils\spring\SpringUtils.class +com\ruoyi\common\json\JSONObject.class +com\ruoyi\common\utils\file\FileUploadUtils.class +com\ruoyi\common\exception\user\UserPasswordRetryLimitCountException.class +com\ruoyi\common\utils\bean\BeanUtils.class +com\ruoyi\common\xss\XssHttpServletRequestWrapper.class +com\ruoyi\common\utils\sql\SqlUtil.class +com\ruoyi\common\utils\file\MimeTypeUtils.class +com\ruoyi\common\json\JSONObject$JSONArray.class +com\ruoyi\common\enums\BusinessType.class +com\ruoyi\common\exception\file\InvalidExtensionException$InvalidMediaExtensionException.class +com\ruoyi\common\utils\poi\ExcelUtil.class +com\ruoyi\common\exception\user\UserException.class +com\ruoyi\common\utils\MessageUtils.class +com\ruoyi\common\enums\DataSourceType.class +com\ruoyi\common\exception\file\InvalidExtensionException$InvalidVideoExtensionException.class +com\ruoyi\common\utils\PageUtils.class +com\ruoyi\common\utils\LogUtils.class +com\ruoyi\common\annotation\DataSource.class +com\ruoyi\common\core\page\PageDomain.class +com\ruoyi\common\utils\ExceptionUtil.class +com\ruoyi\common\exception\file\InvalidExtensionException$InvalidImageExtensionException.class +com\ruoyi\common\core\controller\BaseController.class +com\ruoyi\common\json\JSONObject$3.class +com\ruoyi\common\utils\StringUtils.class +com\ruoyi\common\utils\CoinUtil.class +com\ruoyi\common\utils\poi\ExcelHandlerAdapter.class +com\ruoyi\common\exception\user\UserDeleteException.class +com\ruoyi\common\exception\DemoModeException.class +com\ruoyi\common\enums\OperatorType.class +com\ruoyi\common\json\JSONObject$1.class +com\ruoyi\common\exception\UtilException.class +com\ruoyi\common\xss\XssValidator.class +com\ruoyi\common\utils\DateUtils.class +com\ruoyi\common\core\domain\entity\SysMenu.class +com\ruoyi\common\core\page\TableDataInfo.class +com\ruoyi\common\exception\GlobalException.class +com\ruoyi\common\exception\job\TaskException.class +com\ruoyi\common\constant\UserConstants.class +com\ruoyi\common\core\text\Convert.class +com\ruoyi\common\core\domain\entity\SysUser.class +com\ruoyi\common\json\JSON.class +com\ruoyi\common\utils\file\FileUtils.class +com\ruoyi\common\constant\Constants.class +com\ruoyi\common\core\domain\entity\SysRole.class +com\ruoyi\common\utils\security\Md5Utils.class +com\ruoyi\common\config\thread\ThreadPoolConfig.class +com\ruoyi\common\exception\user\CaptchaException.class +com\ruoyi\common\utils\bean\BeanValidators.class +com\ruoyi\common\exception\file\FileException.class +com\ruoyi\common\core\domain\BaseEntity.class +com\ruoyi\common\annotation\Excel.class +com\ruoyi\common\utils\uuid\UUID$Holder.class +com\ruoyi\common\core\domain\entity\SysDept.class +com\ruoyi\common\core\page\TableSupport.class +com\ruoyi\common\core\domain\Ztree.class +com\ruoyi\common\utils\uuid\UUID.class +com\ruoyi\common\utils\http\HttpUtils.class +com\ruoyi\common\exception\file\InvalidExtensionException.class +com\ruoyi\common\constant\ScheduleConstants.class +com\ruoyi\common\exception\ServiceException.class +com\ruoyi\common\utils\file\FileTypeUtils.class +com\ruoyi\common\constant\ScheduleConstants$Status.class +com\ruoyi\common\utils\IpUtils.class +com\ruoyi\common\utils\html\EscapeUtil.class +com\ruoyi\common\exception\file\InvalidExtensionException$InvalidFlashExtensionException.class +com\ruoyi\common\utils\http\HttpUtils$1.class +com\ruoyi\common\utils\ServletUtils.class +com\ruoyi\common\utils\AddressUtils.class +com\ruoyi\common\utils\html\HTMLFilter.class +com\ruoyi\common\utils\Threads.class +com\ruoyi\common\config\ServerConfig.class +com\ruoyi\common\core\domain\AjaxResult.class +com\ruoyi\common\exception\file\FileNameLengthLimitExceededException.class +com\ruoyi\common\core\text\CharsetKit.class +com\ruoyi\common\utils\CookieUtils.class +com\ruoyi\common\utils\reflect\ReflectUtils.class +com\ruoyi\common\utils\DictUtils.class +com\ruoyi\common\core\domain\AjaxResult$Type.class +com\ruoyi\common\constant\PermissionConstants.class +com\ruoyi\common\utils\YamlUtil.class +com\ruoyi\common\utils\security\PermissionUtils.class +com\ruoyi\common\json\JSONObject$EndArrayCallback.class +com\ruoyi\common\enums\OnlineStatus.class +com\ruoyi\common\exception\user\UserPasswordRetryLimitExceedException.class +com\ruoyi\common\annotation\Excel$Align.class diff --git a/alive-common/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst b/alive-common/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst new file mode 100644 index 0000000..eb4d6e4 --- /dev/null +++ b/alive-common/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst @@ -0,0 +1,103 @@ +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\core\text\CharsetKit.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\core\page\TableDataInfo.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\utils\Threads.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\constant\GenConstants.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\exception\user\UserPasswordRetryLimitExceedException.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\utils\YamlUtil.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\utils\DateUtils.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\core\controller\BaseController.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\enums\UserStatus.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\utils\file\ImageUtils.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\utils\security\PermissionUtils.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\enums\DataSourceType.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\exception\user\UserPasswordRetryLimitCountException.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\xss\XssFilter.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\core\text\StrFormatter.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\utils\file\MimeTypeUtils.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\utils\CoinUtil.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\core\text\Convert.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\utils\bean\BeanUtils.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\constant\PermissionConstants.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\utils\html\HTMLFilter.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\exception\file\FileException.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\exception\user\RoleBlockedException.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\utils\uuid\IdUtils.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\utils\reflect\ReflectUtils.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\core\domain\entity\SysDept.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\core\domain\Ztree.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\enums\BusinessType.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\utils\PageUtils.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\constant\ScheduleConstants.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\core\domain\entity\SysDictData.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\utils\uuid\UUID.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\utils\AddressUtils.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\utils\spring\SpringUtils.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\utils\file\FileTypeUtils.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\utils\MessageUtils.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\config\RuoYiConfig.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\xss\XssHttpServletRequestWrapper.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\utils\file\FileUtils.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\utils\bean\BeanValidators.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\core\page\PageDomain.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\exception\ServiceException.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\exception\user\CaptchaException.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\xss\XssValidator.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\utils\sql\SqlUtil.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\annotation\DataSource.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\enums\OnlineStatus.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\constant\UserConstants.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\config\ServerConfig.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\constant\ShiroConstants.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\utils\CookieUtils.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\core\domain\entity\SysUser.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\utils\MapDataUtil.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\core\domain\CxSelect.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\utils\ServletUtils.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\utils\CacheUtils.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\core\domain\entity\SysRole.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\utils\poi\ExcelUtil.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\xss\Xss.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\core\domain\entity\SysDictType.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\config\datasource\DynamicDataSourceContextHolder.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\core\domain\AjaxResult.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\constant\Constants.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\utils\ShiroUtils.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\exception\file\FileNameLengthLimitExceededException.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\utils\StringUtils.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\utils\security\CipherUtils.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\annotation\Excel.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\exception\user\UserPasswordNotMatchException.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\exception\GlobalException.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\utils\file\FileUploadUtils.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\utils\security\Md5Utils.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\core\domain\entity\SysMenu.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\exception\DemoModeException.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\annotation\RepeatSubmit.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\utils\ExceptionUtil.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\exception\user\UserDeleteException.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\utils\LogUtils.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\core\page\TableSupport.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\annotation\Log.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\utils\IpUtils.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\config\thread\ThreadPoolConfig.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\exception\user\UserException.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\core\domain\TreeEntity.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\utils\DictUtils.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\enums\OperatorType.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\utils\http\HttpUtils.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\exception\user\UserNotExistsException.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\json\JSON.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\exception\file\InvalidExtensionException.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\core\domain\BaseEntity.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\json\JSONObject.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\exception\base\BaseException.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\utils\html\EscapeUtil.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\exception\file\FileSizeLimitExceededException.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\annotation\Excels.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\exception\job\TaskException.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\exception\user\UserBlockedException.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\utils\Arith.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\utils\poi\ExcelHandlerAdapter.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\enums\BusinessStatus.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\exception\UtilException.java +E:\alive\alive-admin\alive-common\src\main\java\com\ruoyi\common\annotation\DataScope.java diff --git a/alive-framework/pom.xml b/alive-framework/pom.xml new file mode 100644 index 0000000..1484586 --- /dev/null +++ b/alive-framework/pom.xml @@ -0,0 +1,82 @@ + + + + alive + com.alive + 4.7.2 + + 4.0.0 + + alive-framework + + + framework框架核心 + + + + + + + org.springframework.boot + spring-boot-starter-web + + + + + org.springframework.boot + spring-boot-starter-aop + + + + + com.alibaba + druid-spring-boot-starter + + + + + com.github.penggle + kaptcha + + + javax.servlet-api + javax.servlet + + + + + + + org.apache.shiro + shiro-spring + + + + + com.github.theborakompanioni + thymeleaf-extras-shiro + + + + + eu.bitwalker + UserAgentUtils + + + + + com.github.oshi + oshi-core + + + + + com.alive + alive-system + + + + + \ No newline at end of file diff --git a/alive-framework/src/main/java/com/ruoyi/framework/aspectj/DataScopeAspect.java b/alive-framework/src/main/java/com/ruoyi/framework/aspectj/DataScopeAspect.java new file mode 100644 index 0000000..53331fc --- /dev/null +++ b/alive-framework/src/main/java/com/ruoyi/framework/aspectj/DataScopeAspect.java @@ -0,0 +1,148 @@ +package com.ruoyi.framework.aspectj; + +import org.aspectj.lang.JoinPoint; +import org.aspectj.lang.annotation.Aspect; +import org.aspectj.lang.annotation.Before; +import org.springframework.stereotype.Component; +import com.ruoyi.common.annotation.DataScope; +import com.ruoyi.common.core.domain.BaseEntity; +import com.ruoyi.common.core.domain.entity.SysRole; +import com.ruoyi.common.core.domain.entity.SysUser; +import com.ruoyi.common.utils.ShiroUtils; +import com.ruoyi.common.utils.StringUtils; + +/** + * 数据过滤处理 + * + * @author ruoyi + */ +@Aspect +@Component +public class DataScopeAspect +{ + /** + * 全部数据权限 + */ + public static final String DATA_SCOPE_ALL = "1"; + + /** + * 自定数据权限 + */ + public static final String DATA_SCOPE_CUSTOM = "2"; + + /** + * 部门数据权限 + */ + public static final String DATA_SCOPE_DEPT = "3"; + + /** + * 部门及以下数据权限 + */ + public static final String DATA_SCOPE_DEPT_AND_CHILD = "4"; + + /** + * 仅本人数据权限 + */ + public static final String DATA_SCOPE_SELF = "5"; + + /** + * 数据权限过滤关键字 + */ + public static final String DATA_SCOPE = "dataScope"; + + @Before("@annotation(controllerDataScope)") + public void doBefore(JoinPoint point, DataScope controllerDataScope) throws Throwable + { + clearDataScope(point); + handleDataScope(point, controllerDataScope); + } + + protected void handleDataScope(final JoinPoint joinPoint, DataScope controllerDataScope) + { + // 获取当前的用户 + SysUser currentUser = ShiroUtils.getSysUser(); + if (currentUser != null) + { + // 如果是超级管理员,则不过滤数据 + if (!currentUser.isAdmin()) + { + dataScopeFilter(joinPoint, currentUser, controllerDataScope.deptAlias(), + controllerDataScope.userAlias()); + } + } + } + + /** + * 数据范围过滤 + * + * @param joinPoint 切点 + * @param user 用户 + * @param deptAlias 部门别名 + * @param userAlias 用户别名 + */ + public static void dataScopeFilter(JoinPoint joinPoint, SysUser user, String deptAlias, String userAlias) + { + StringBuilder sqlString = new StringBuilder(); + + for (SysRole role : user.getRoles()) + { + String dataScope = role.getDataScope(); + if (DATA_SCOPE_ALL.equals(dataScope)) + { + sqlString = new StringBuilder(); + break; + } + else if (DATA_SCOPE_CUSTOM.equals(dataScope)) + { + sqlString.append(StringUtils.format( + " OR {}.dept_id IN ( SELECT dept_id FROM sys_role_dept WHERE role_id = {} ) ", deptAlias, + role.getRoleId())); + } + else if (DATA_SCOPE_DEPT.equals(dataScope)) + { + sqlString.append(StringUtils.format(" OR {}.dept_id = {} ", deptAlias, user.getDeptId())); + } + else if (DATA_SCOPE_DEPT_AND_CHILD.equals(dataScope)) + { + sqlString.append(StringUtils.format( + " OR {}.dept_id IN ( SELECT dept_id FROM sys_dept WHERE dept_id = {} or find_in_set( {} , ancestors ) )", + deptAlias, user.getDeptId(), user.getDeptId())); + } + else if (DATA_SCOPE_SELF.equals(dataScope)) + { + if (StringUtils.isNotBlank(userAlias)) + { + sqlString.append(StringUtils.format(" OR {}.user_id = {} ", userAlias, user.getUserId())); + } + else + { + // 数据权限为仅本人且没有userAlias别名不查询任何数据 + sqlString.append(" OR 1=0 "); + } + } + } + + if (StringUtils.isNotBlank(sqlString.toString())) + { + Object params = joinPoint.getArgs()[0]; + if (StringUtils.isNotNull(params) && params instanceof BaseEntity) + { + BaseEntity baseEntity = (BaseEntity) params; + baseEntity.getParams().put(DATA_SCOPE, " AND (" + sqlString.substring(4) + ")"); + } + } + } + + /** + * 拼接权限sql前先清空params.dataScope参数防止注入 + */ + private void clearDataScope(final JoinPoint joinPoint) + { + Object params = joinPoint.getArgs()[0]; + if (StringUtils.isNotNull(params) && params instanceof BaseEntity) + { + BaseEntity baseEntity = (BaseEntity) params; + baseEntity.getParams().put(DATA_SCOPE, ""); + } + } +} diff --git a/alive-framework/src/main/java/com/ruoyi/framework/aspectj/DataSourceAspect.java b/alive-framework/src/main/java/com/ruoyi/framework/aspectj/DataSourceAspect.java new file mode 100644 index 0000000..4951bc9 --- /dev/null +++ b/alive-framework/src/main/java/com/ruoyi/framework/aspectj/DataSourceAspect.java @@ -0,0 +1,72 @@ +package com.ruoyi.framework.aspectj; + +import java.util.Objects; +import org.aspectj.lang.ProceedingJoinPoint; +import org.aspectj.lang.annotation.Around; +import org.aspectj.lang.annotation.Aspect; +import org.aspectj.lang.annotation.Pointcut; +import org.aspectj.lang.reflect.MethodSignature; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.core.annotation.AnnotationUtils; +import org.springframework.core.annotation.Order; +import org.springframework.stereotype.Component; +import com.ruoyi.common.annotation.DataSource; +import com.ruoyi.common.config.datasource.DynamicDataSourceContextHolder; +import com.ruoyi.common.utils.StringUtils; + +/** + * 多数据源处理 + * + * @author ruoyi + */ +@Aspect +@Order(1) +@Component +public class DataSourceAspect +{ + protected Logger logger = LoggerFactory.getLogger(getClass()); + + @Pointcut("@annotation(com.ruoyi.common.annotation.DataSource)" + + "|| @within(com.ruoyi.common.annotation.DataSource)") + public void dsPointCut() + { + + } + + @Around("dsPointCut()") + public Object around(ProceedingJoinPoint point) throws Throwable + { + DataSource dataSource = getDataSource(point); + + if (StringUtils.isNotNull(dataSource)) + { + DynamicDataSourceContextHolder.setDataSourceType(dataSource.value().name()); + } + + try + { + return point.proceed(); + } + finally + { + // 销毁数据源 在执行方法之后 + DynamicDataSourceContextHolder.clearDataSourceType(); + } + } + + /** + * 获取需要切换的数据源 + */ + public DataSource getDataSource(ProceedingJoinPoint point) + { + MethodSignature signature = (MethodSignature) point.getSignature(); + DataSource dataSource = AnnotationUtils.findAnnotation(signature.getMethod(), DataSource.class); + if (Objects.nonNull(dataSource)) + { + return dataSource; + } + + return AnnotationUtils.findAnnotation(signature.getDeclaringType(), DataSource.class); + } +} diff --git a/alive-framework/src/main/java/com/ruoyi/framework/aspectj/LogAspect.java b/alive-framework/src/main/java/com/ruoyi/framework/aspectj/LogAspect.java new file mode 100644 index 0000000..f57b9c5 --- /dev/null +++ b/alive-framework/src/main/java/com/ruoyi/framework/aspectj/LogAspect.java @@ -0,0 +1,242 @@ +package com.ruoyi.framework.aspectj; + +import java.util.Collection; +import java.util.Map; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import org.aspectj.lang.JoinPoint; +import org.aspectj.lang.annotation.AfterReturning; +import org.aspectj.lang.annotation.AfterThrowing; +import org.aspectj.lang.annotation.Aspect; +import org.aspectj.lang.annotation.Pointcut; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.stereotype.Component; +import org.springframework.validation.BindingResult; +import org.springframework.web.multipart.MultipartFile; +import com.alibaba.fastjson.JSONObject; +import com.alibaba.fastjson.support.spring.PropertyPreFilters; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.domain.entity.SysUser; +import com.ruoyi.common.enums.BusinessStatus; +import com.ruoyi.common.utils.ServletUtils; +import com.ruoyi.common.utils.ShiroUtils; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.framework.manager.AsyncManager; +import com.ruoyi.framework.manager.factory.AsyncFactory; +import com.ruoyi.system.domain.SysOperLog; + +/** + * 操作日志记录处理 + * + * @author ruoyi + */ +@Aspect +@Component +public class LogAspect +{ + private static final Logger log = LoggerFactory.getLogger(LogAspect.class); + + /** 排除敏感属性字段 */ + public static final String[] EXCLUDE_PROPERTIES = { "password", "oldPassword", "newPassword", "confirmPassword" }; + + // 配置织入点 + @Pointcut("@annotation(com.ruoyi.common.annotation.Log)") + public void logPointCut() + { + } + + /** + * 处理完请求后执行 + * + * @param joinPoint 切点 + */ + @AfterReturning(pointcut = "@annotation(controllerLog)", returning = "jsonResult") + public void doAfterReturning(JoinPoint joinPoint, Log controllerLog, Object jsonResult) + { + handleLog(joinPoint, controllerLog, null, jsonResult); + } + + /** + * 拦截异常操作 + * + * @param joinPoint 切点 + * @param e 异常 + */ + @AfterThrowing(value = "@annotation(controllerLog)", throwing = "e") + public void doAfterThrowing(JoinPoint joinPoint, Log controllerLog, Exception e) + { + handleLog(joinPoint, controllerLog, e, null); + } + + protected void handleLog(final JoinPoint joinPoint, Log controllerLog, final Exception e, Object jsonResult) + { + try + { + // 获取当前的用户 + SysUser currentUser = ShiroUtils.getSysUser(); + + // *========数据库日志=========*// + SysOperLog operLog = new SysOperLog(); + operLog.setStatus(BusinessStatus.SUCCESS.ordinal()); + // 请求的地址 + String ip = ShiroUtils.getIp(); + operLog.setOperIp(ip); + operLog.setOperUrl(ServletUtils.getRequest().getRequestURI()); + if (currentUser != null) + { + operLog.setOperName(currentUser.getLoginName()); + if (StringUtils.isNotNull(currentUser.getDept()) + && StringUtils.isNotEmpty(currentUser.getDept().getDeptName())) + { + operLog.setDeptName(currentUser.getDept().getDeptName()); + } + } + + if (e != null) + { + operLog.setStatus(BusinessStatus.FAIL.ordinal()); + operLog.setErrorMsg(StringUtils.substring(e.getMessage(), 0, 2000)); + } + // 设置方法名称 + String className = joinPoint.getTarget().getClass().getName(); + String methodName = joinPoint.getSignature().getName(); + operLog.setMethod(className + "." + methodName + "()"); + // 设置请求方式 + operLog.setRequestMethod(ServletUtils.getRequest().getMethod()); + // 处理设置注解上的参数 + getControllerMethodDescription(joinPoint, controllerLog, operLog, jsonResult); + // 保存数据库 + AsyncManager.me().execute(AsyncFactory.recordOper(operLog)); + } + catch (Exception exp) + { + // 记录本地异常日志 + log.error("==前置通知异常=="); + log.error("异常信息:{}", exp.getMessage()); + exp.printStackTrace(); + } + } + + /** + * 获取注解中对方法的描述信息 用于Controller层注解 + * + * @param log 日志 + * @param operLog 操作日志 + * @throws Exception + */ + public void getControllerMethodDescription(JoinPoint joinPoint, Log log, SysOperLog operLog, Object jsonResult) throws Exception + { + // 设置action动作 + operLog.setBusinessType(log.businessType().ordinal()); + // 设置标题 + operLog.setTitle(log.title()); + // 设置操作人类别 + operLog.setOperatorType(log.operatorType().ordinal()); + // 是否需要保存request,参数和值 + if (log.isSaveRequestData()) + { + // 获取参数的信息,传入到数据库中。 + setRequestValue(joinPoint, operLog); + } + // 是否需要保存response,参数和值 + if (log.isSaveResponseData() && StringUtils.isNotNull(jsonResult)) + { + operLog.setJsonResult(StringUtils.substring(JSONObject.toJSONString(jsonResult), 0, 2000)); + } + } + + /** + * 获取请求的参数,放到log中 + * + * @param operLog 操作日志 + * @throws Exception 异常 + */ + private void setRequestValue(JoinPoint joinPoint, SysOperLog operLog) throws Exception + { + Map map = ServletUtils.getRequest().getParameterMap(); + if (StringUtils.isNotEmpty(map)) + { + String params = JSONObject.toJSONString(map, excludePropertyPreFilter()); + operLog.setOperParam(StringUtils.substring(params, 0, 2000)); + } + else + { + Object args = joinPoint.getArgs(); + if (StringUtils.isNotNull(args)) + { + String params = argsArrayToString(joinPoint.getArgs()); + operLog.setOperParam(StringUtils.substring(params, 0, 2000)); + } + } + } + + /** + * 忽略敏感属性 + */ + public PropertyPreFilters.MySimplePropertyPreFilter excludePropertyPreFilter() + { + return new PropertyPreFilters().addFilter().addExcludes(EXCLUDE_PROPERTIES); + } + + /** + * 参数拼装 + */ + private String argsArrayToString(Object[] paramsArray) + { + String params = ""; + if (paramsArray != null && paramsArray.length > 0) + { + for (Object o : paramsArray) + { + if (StringUtils.isNotNull(o) && !isFilterObject(o)) + { + try + { + Object jsonObj = JSONObject.toJSONString(o, excludePropertyPreFilter()); + params += jsonObj.toString() + " "; + } + catch (Exception e) + { + } + } + } + } + return params.trim(); + } + + /** + * 判断是否需要过滤的对象。 + * + * @param o 对象信息。 + * @return 如果是需要过滤的对象,则返回true;否则返回false。 + */ + @SuppressWarnings("rawtypes") + public boolean isFilterObject(final Object o) + { + Class clazz = o.getClass(); + if (clazz.isArray()) + { + return clazz.getComponentType().isAssignableFrom(MultipartFile.class); + } + else if (Collection.class.isAssignableFrom(clazz)) + { + Collection collection = (Collection) o; + for (Object value : collection) + { + return value instanceof MultipartFile; + } + } + else if (Map.class.isAssignableFrom(clazz)) + { + Map map = (Map) o; + for (Object value : map.entrySet()) + { + Map.Entry entry = (Map.Entry) value; + return entry.getValue() instanceof MultipartFile; + } + } + return o instanceof MultipartFile || o instanceof HttpServletRequest || o instanceof HttpServletResponse + || o instanceof BindingResult; + } +} diff --git a/alive-framework/src/main/java/com/ruoyi/framework/config/ApplicationConfig.java b/alive-framework/src/main/java/com/ruoyi/framework/config/ApplicationConfig.java new file mode 100644 index 0000000..b6b0e88 --- /dev/null +++ b/alive-framework/src/main/java/com/ruoyi/framework/config/ApplicationConfig.java @@ -0,0 +1,20 @@ +package com.ruoyi.framework.config; + +import org.mybatis.spring.annotation.MapperScan; +import org.springframework.context.annotation.Configuration; +import org.springframework.context.annotation.EnableAspectJAutoProxy; + +/** + * 程序注解配置 + * + * @author ruoyi + */ +@Configuration +// 表示通过aop框架暴露该代理对象,AopContext能够访问 +@EnableAspectJAutoProxy(exposeProxy = true) +// 指定要扫描的Mapper类的包的路径 +@MapperScan("com.ruoyi.**.mapper") +public class ApplicationConfig +{ + +} diff --git a/alive-framework/src/main/java/com/ruoyi/framework/config/CaptchaConfig.java b/alive-framework/src/main/java/com/ruoyi/framework/config/CaptchaConfig.java new file mode 100644 index 0000000..43e78ae --- /dev/null +++ b/alive-framework/src/main/java/com/ruoyi/framework/config/CaptchaConfig.java @@ -0,0 +1,83 @@ +package com.ruoyi.framework.config; + +import java.util.Properties; +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; +import com.google.code.kaptcha.impl.DefaultKaptcha; +import com.google.code.kaptcha.util.Config; +import static com.google.code.kaptcha.Constants.*; + +/** + * 验证码配置 + * + * @author ruoyi + */ +@Configuration +public class CaptchaConfig +{ + @Bean(name = "captchaProducer") + public DefaultKaptcha getKaptchaBean() + { + DefaultKaptcha defaultKaptcha = new DefaultKaptcha(); + Properties properties = new Properties(); + // 是否有边框 默认为true 我们可以自己设置yes,no + properties.setProperty(KAPTCHA_BORDER, "yes"); + // 验证码文本字符颜色 默认为Color.BLACK + properties.setProperty(KAPTCHA_TEXTPRODUCER_FONT_COLOR, "black"); + // 验证码图片宽度 默认为200 + properties.setProperty(KAPTCHA_IMAGE_WIDTH, "160"); + // 验证码图片高度 默认为50 + properties.setProperty(KAPTCHA_IMAGE_HEIGHT, "60"); + // 验证码文本字符大小 默认为40 + properties.setProperty(KAPTCHA_TEXTPRODUCER_FONT_SIZE, "38"); + // KAPTCHA_SESSION_KEY + properties.setProperty(KAPTCHA_SESSION_CONFIG_KEY, "kaptchaCode"); + // 验证码文本字符长度 默认为5 + properties.setProperty(KAPTCHA_TEXTPRODUCER_CHAR_LENGTH, "4"); + // 验证码文本字体样式 默认为new Font("Arial", 1, fontSize), new Font("Courier", 1, fontSize) + properties.setProperty(KAPTCHA_TEXTPRODUCER_FONT_NAMES, "Arial,Courier"); + // 图片样式 水纹com.google.code.kaptcha.impl.WaterRipple 鱼眼com.google.code.kaptcha.impl.FishEyeGimpy 阴影com.google.code.kaptcha.impl.ShadowGimpy + properties.setProperty(KAPTCHA_OBSCURIFICATOR_IMPL, "com.google.code.kaptcha.impl.ShadowGimpy"); + Config config = new Config(properties); + defaultKaptcha.setConfig(config); + return defaultKaptcha; + } + + @Bean(name = "captchaProducerMath") + public DefaultKaptcha getKaptchaBeanMath() + { + DefaultKaptcha defaultKaptcha = new DefaultKaptcha(); + Properties properties = new Properties(); + // 是否有边框 默认为true 我们可以自己设置yes,no + properties.setProperty(KAPTCHA_BORDER, "yes"); + // 边框颜色 默认为Color.BLACK + properties.setProperty(KAPTCHA_BORDER_COLOR, "105,179,90"); + // 验证码文本字符颜色 默认为Color.BLACK + properties.setProperty(KAPTCHA_TEXTPRODUCER_FONT_COLOR, "blue"); + // 验证码图片宽度 默认为200 + properties.setProperty(KAPTCHA_IMAGE_WIDTH, "160"); + // 验证码图片高度 默认为50 + properties.setProperty(KAPTCHA_IMAGE_HEIGHT, "60"); + // 验证码文本字符大小 默认为40 + properties.setProperty(KAPTCHA_TEXTPRODUCER_FONT_SIZE, "35"); + // KAPTCHA_SESSION_KEY + properties.setProperty(KAPTCHA_SESSION_CONFIG_KEY, "kaptchaCodeMath"); + // 验证码文本生成器 + properties.setProperty(KAPTCHA_TEXTPRODUCER_IMPL, "com.ruoyi.framework.config.KaptchaTextCreator"); + // 验证码文本字符间距 默认为2 + properties.setProperty(KAPTCHA_TEXTPRODUCER_CHAR_SPACE, "3"); + // 验证码文本字符长度 默认为5 + properties.setProperty(KAPTCHA_TEXTPRODUCER_CHAR_LENGTH, "6"); + // 验证码文本字体样式 默认为new Font("Arial", 1, fontSize), new Font("Courier", 1, fontSize) + properties.setProperty(KAPTCHA_TEXTPRODUCER_FONT_NAMES, "Arial,Courier"); + // 验证码噪点颜色 默认为Color.BLACK + properties.setProperty(KAPTCHA_NOISE_COLOR, "white"); + // 干扰实现类 + properties.setProperty(KAPTCHA_NOISE_IMPL, "com.google.code.kaptcha.impl.NoNoise"); + // 图片样式 水纹com.google.code.kaptcha.impl.WaterRipple 鱼眼com.google.code.kaptcha.impl.FishEyeGimpy 阴影com.google.code.kaptcha.impl.ShadowGimpy + properties.setProperty(KAPTCHA_OBSCURIFICATOR_IMPL, "com.google.code.kaptcha.impl.ShadowGimpy"); + Config config = new Config(properties); + defaultKaptcha.setConfig(config); + return defaultKaptcha; + } +} diff --git a/alive-framework/src/main/java/com/ruoyi/framework/config/DruidConfig.java b/alive-framework/src/main/java/com/ruoyi/framework/config/DruidConfig.java new file mode 100644 index 0000000..1e3ebef --- /dev/null +++ b/alive-framework/src/main/java/com/ruoyi/framework/config/DruidConfig.java @@ -0,0 +1,128 @@ +package com.ruoyi.framework.config; + +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; +import javax.servlet.Filter; +import javax.servlet.FilterChain; +import javax.servlet.ServletException; +import javax.servlet.ServletRequest; +import javax.servlet.ServletResponse; +import javax.sql.DataSource; +import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; +import org.springframework.boot.context.properties.ConfigurationProperties; +import org.springframework.boot.web.servlet.FilterRegistrationBean; +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; +import org.springframework.context.annotation.Primary; +import com.alibaba.druid.pool.DruidDataSource; +import com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceBuilder; +import com.alibaba.druid.spring.boot.autoconfigure.properties.DruidStatProperties; +import com.alibaba.druid.util.Utils; +import com.ruoyi.common.enums.DataSourceType; +import com.ruoyi.common.utils.spring.SpringUtils; +import com.ruoyi.framework.config.properties.DruidProperties; +import com.ruoyi.framework.datasource.DynamicDataSource; + +/** + * druid 配置多数据源 + * + * @author ruoyi + */ +@Configuration +public class DruidConfig +{ + @Bean + @ConfigurationProperties("spring.datasource.druid.master") + public DataSource masterDataSource(DruidProperties druidProperties) + { + DruidDataSource dataSource = DruidDataSourceBuilder.create().build(); + return druidProperties.dataSource(dataSource); + } + + @Bean + @ConfigurationProperties("spring.datasource.druid.slave") + @ConditionalOnProperty(prefix = "spring.datasource.druid.slave", name = "enabled", havingValue = "true") + public DataSource slaveDataSource(DruidProperties druidProperties) + { + DruidDataSource dataSource = DruidDataSourceBuilder.create().build(); + return druidProperties.dataSource(dataSource); + } + + @Bean(name = "dynamicDataSource") + @Primary + public DynamicDataSource dataSource(DataSource masterDataSource) + { + Map targetDataSources = new HashMap<>(); + targetDataSources.put(DataSourceType.MASTER.name(), masterDataSource); + setDataSource(targetDataSources, DataSourceType.SLAVE.name(), "slaveDataSource"); + return new DynamicDataSource(masterDataSource, targetDataSources); + } + + /** + * 设置数据源 + * + * @param targetDataSources 备选数据源集合 + * @param sourceName 数据源名称 + * @param beanName bean名称 + */ + public void setDataSource(Map targetDataSources, String sourceName, String beanName) + { + try + { + DataSource dataSource = SpringUtils.getBean(beanName); + targetDataSources.put(sourceName, dataSource); + } + catch (Exception e) + { + } + } + + /** + * 去除监控页面底部的广告 + */ + @SuppressWarnings({ "rawtypes", "unchecked" }) + @Bean + @ConditionalOnProperty(name = "spring.datasource.druid.statViewServlet.enabled", havingValue = "true") + public FilterRegistrationBean removeDruidFilterRegistrationBean(DruidStatProperties properties) + { + // 获取web监控页面的参数 + DruidStatProperties.StatViewServlet config = properties.getStatViewServlet(); + // 提取common.js的配置路径 + String pattern = config.getUrlPattern() != null ? config.getUrlPattern() : "/druid/*"; + String commonJsPattern = pattern.replaceAll("\\*", "js/common.js"); + final String filePath = "support/http/resources/js/common.js"; + // 创建filter进行过滤 + Filter filter = new Filter() + { + @Override + public void init(javax.servlet.FilterConfig filterConfig) throws ServletException + { + } + + @Override + public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) + throws IOException, ServletException + { + chain.doFilter(request, response); + // 重置缓冲区,响应头不会被重置 + response.resetBuffer(); + // 获取common.js + String text = Utils.readFromResource(filePath); + // 正则替换banner, 除去底部的广告信息 + text = text.replaceAll("
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ", ""); + text = text.replaceAll("powered.*?shrek.wang", ""); + response.getWriter().write(text); + } + + @Override + public void destroy() + { + } + }; + FilterRegistrationBean registrationBean = new FilterRegistrationBean(); + registrationBean.setFilter(filter); + registrationBean.addUrlPatterns(commonJsPattern); + return registrationBean; + } +} diff --git a/alive-framework/src/main/java/com/ruoyi/framework/config/FilterConfig.java b/alive-framework/src/main/java/com/ruoyi/framework/config/FilterConfig.java new file mode 100644 index 0000000..6abb9a2 --- /dev/null +++ b/alive-framework/src/main/java/com/ruoyi/framework/config/FilterConfig.java @@ -0,0 +1,44 @@ +package com.ruoyi.framework.config; + +import java.util.HashMap; +import java.util.Map; +import javax.servlet.DispatcherType; +import org.springframework.beans.factory.annotation.Value; +import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; +import org.springframework.boot.web.servlet.FilterRegistrationBean; +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.common.xss.XssFilter; + +/** + * Filter配置 + * + * @author ruoyi + */ +@Configuration +@ConditionalOnProperty(value = "xss.enabled", havingValue = "true") +public class FilterConfig +{ + @Value("${xss.excludes}") + private String excludes; + + @Value("${xss.urlPatterns}") + private String urlPatterns; + + @SuppressWarnings({ "rawtypes", "unchecked" }) + @Bean + public FilterRegistrationBean xssFilterRegistration() + { + FilterRegistrationBean registration = new FilterRegistrationBean(); + registration.setDispatcherTypes(DispatcherType.REQUEST); + registration.setFilter(new XssFilter()); + registration.addUrlPatterns(StringUtils.split(urlPatterns, ",")); + registration.setName("xssFilter"); + registration.setOrder(FilterRegistrationBean.HIGHEST_PRECEDENCE); + Map initParameters = new HashMap(); + initParameters.put("excludes", excludes); + registration.setInitParameters(initParameters); + return registration; + } +} diff --git a/alive-framework/src/main/java/com/ruoyi/framework/config/I18nConfig.java b/alive-framework/src/main/java/com/ruoyi/framework/config/I18nConfig.java new file mode 100644 index 0000000..c5c209e --- /dev/null +++ b/alive-framework/src/main/java/com/ruoyi/framework/config/I18nConfig.java @@ -0,0 +1,43 @@ +package com.ruoyi.framework.config; + +import java.util.Locale; +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; +import org.springframework.web.servlet.LocaleResolver; +import org.springframework.web.servlet.config.annotation.InterceptorRegistry; +import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; +import org.springframework.web.servlet.i18n.LocaleChangeInterceptor; +import org.springframework.web.servlet.i18n.SessionLocaleResolver; + +/** + * 资源文件配置加载 + * + * @author ruoyi + */ +@Configuration +public class I18nConfig implements WebMvcConfigurer +{ + @Bean + public LocaleResolver localeResolver() + { + SessionLocaleResolver slr = new SessionLocaleResolver(); + // 默认语言 + slr.setDefaultLocale(Locale.SIMPLIFIED_CHINESE); + return slr; + } + + @Bean + public LocaleChangeInterceptor localeChangeInterceptor() + { + LocaleChangeInterceptor lci = new LocaleChangeInterceptor(); + // 参数名 + lci.setParamName("lang"); + return lci; + } + + @Override + public void addInterceptors(InterceptorRegistry registry) + { + registry.addInterceptor(localeChangeInterceptor()); + } +} \ No newline at end of file diff --git a/alive-framework/src/main/java/com/ruoyi/framework/config/KaptchaTextCreator.java b/alive-framework/src/main/java/com/ruoyi/framework/config/KaptchaTextCreator.java new file mode 100644 index 0000000..ae89d3c --- /dev/null +++ b/alive-framework/src/main/java/com/ruoyi/framework/config/KaptchaTextCreator.java @@ -0,0 +1,76 @@ +package com.ruoyi.framework.config; + +import java.security.SecureRandom; +import java.util.Random; +import com.google.code.kaptcha.text.impl.DefaultTextCreator; + +/** + * 验证码文本生成器 + * + * @author ruoyi + */ +public class KaptchaTextCreator extends DefaultTextCreator +{ + private static final String[] CNUMBERS = "0,1,2,3,4,5,6,7,8,9,10".split(","); + + @Override + public String getText() + { + Integer result = 0; + Random random = new SecureRandom(); + int x = random.nextInt(10); + int y = random.nextInt(10); + StringBuilder suChinese = new StringBuilder(); + int randomoperands = (int) Math.round(Math.random() * 2); + if (randomoperands == 0) + { + result = x * y; + suChinese.append(CNUMBERS[x]); + suChinese.append("*"); + suChinese.append(CNUMBERS[y]); + } + else if (randomoperands == 1) + { + if (!(x == 0) && y % x == 0) + { + result = y / x; + suChinese.append(CNUMBERS[y]); + suChinese.append("/"); + suChinese.append(CNUMBERS[x]); + } + else + { + result = x + y; + suChinese.append(CNUMBERS[x]); + suChinese.append("+"); + suChinese.append(CNUMBERS[y]); + } + } + else if (randomoperands == 2) + { + if (x >= y) + { + result = x - y; + suChinese.append(CNUMBERS[x]); + suChinese.append("-"); + suChinese.append(CNUMBERS[y]); + } + else + { + result = y - x; + suChinese.append(CNUMBERS[y]); + suChinese.append("-"); + suChinese.append(CNUMBERS[x]); + } + } + else + { + result = x + y; + suChinese.append(CNUMBERS[x]); + suChinese.append("+"); + suChinese.append(CNUMBERS[y]); + } + suChinese.append("=?@" + result); + return suChinese.toString(); + } +} diff --git a/alive-framework/src/main/java/com/ruoyi/framework/config/MyBatisConfig.java b/alive-framework/src/main/java/com/ruoyi/framework/config/MyBatisConfig.java new file mode 100644 index 0000000..057c941 --- /dev/null +++ b/alive-framework/src/main/java/com/ruoyi/framework/config/MyBatisConfig.java @@ -0,0 +1,132 @@ +package com.ruoyi.framework.config; + +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashSet; +import java.util.List; +import javax.sql.DataSource; +import org.apache.ibatis.io.VFS; +import org.apache.ibatis.session.SqlSessionFactory; +import org.mybatis.spring.SqlSessionFactoryBean; +import org.mybatis.spring.boot.autoconfigure.SpringBootVFS; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; +import org.springframework.core.env.Environment; +import org.springframework.core.io.DefaultResourceLoader; +import org.springframework.core.io.Resource; +import org.springframework.core.io.support.PathMatchingResourcePatternResolver; +import org.springframework.core.io.support.ResourcePatternResolver; +import org.springframework.core.type.classreading.CachingMetadataReaderFactory; +import org.springframework.core.type.classreading.MetadataReader; +import org.springframework.core.type.classreading.MetadataReaderFactory; +import org.springframework.util.ClassUtils; +import com.ruoyi.common.utils.StringUtils; + +/** + * Mybatis支持*匹配扫描包 + * + * @author ruoyi + */ +@Configuration +public class MyBatisConfig +{ + @Autowired + private Environment env; + + static final String DEFAULT_RESOURCE_PATTERN = "**/*.class"; + + public static String setTypeAliasesPackage(String typeAliasesPackage) + { + ResourcePatternResolver resolver = (ResourcePatternResolver) new PathMatchingResourcePatternResolver(); + MetadataReaderFactory metadataReaderFactory = new CachingMetadataReaderFactory(resolver); + List allResult = new ArrayList(); + try + { + for (String aliasesPackage : typeAliasesPackage.split(",")) + { + List result = new ArrayList(); + aliasesPackage = ResourcePatternResolver.CLASSPATH_ALL_URL_PREFIX + + ClassUtils.convertClassNameToResourcePath(aliasesPackage.trim()) + "/" + DEFAULT_RESOURCE_PATTERN; + Resource[] resources = resolver.getResources(aliasesPackage); + if (resources != null && resources.length > 0) + { + MetadataReader metadataReader = null; + for (Resource resource : resources) + { + if (resource.isReadable()) + { + metadataReader = metadataReaderFactory.getMetadataReader(resource); + try + { + result.add(Class.forName(metadataReader.getClassMetadata().getClassName()).getPackage().getName()); + } + catch (ClassNotFoundException e) + { + e.printStackTrace(); + } + } + } + } + if (result.size() > 0) + { + HashSet hashResult = new HashSet(result); + allResult.addAll(hashResult); + } + } + if (allResult.size() > 0) + { + typeAliasesPackage = String.join(",", (String[]) allResult.toArray(new String[0])); + } + else + { + throw new RuntimeException("mybatis typeAliasesPackage 路径扫描错误,参数typeAliasesPackage:" + typeAliasesPackage + "未找到任何包"); + } + } + catch (IOException e) + { + e.printStackTrace(); + } + return typeAliasesPackage; + } + + public Resource[] resolveMapperLocations(String[] mapperLocations) + { + ResourcePatternResolver resourceResolver = new PathMatchingResourcePatternResolver(); + List resources = new ArrayList(); + if (mapperLocations != null) + { + for (String mapperLocation : mapperLocations) + { + try + { + Resource[] mappers = resourceResolver.getResources(mapperLocation); + resources.addAll(Arrays.asList(mappers)); + } + catch (IOException e) + { + // ignore + } + } + } + return resources.toArray(new Resource[resources.size()]); + } + + @Bean + public SqlSessionFactory sqlSessionFactory(DataSource dataSource) throws Exception + { + String typeAliasesPackage = env.getProperty("mybatis.typeAliasesPackage"); + String mapperLocations = env.getProperty("mybatis.mapperLocations"); + String configLocation = env.getProperty("mybatis.configLocation"); + typeAliasesPackage = setTypeAliasesPackage(typeAliasesPackage); + VFS.addImplClass(SpringBootVFS.class); + + final SqlSessionFactoryBean sessionFactory = new SqlSessionFactoryBean(); + sessionFactory.setDataSource(dataSource); + sessionFactory.setTypeAliasesPackage(typeAliasesPackage); + sessionFactory.setMapperLocations(resolveMapperLocations(StringUtils.split(mapperLocations, ","))); + sessionFactory.setConfigLocation(new DefaultResourceLoader().getResource(configLocation)); + return sessionFactory.getObject(); + } +} \ No newline at end of file diff --git a/alive-framework/src/main/java/com/ruoyi/framework/config/ResourcesConfig.java b/alive-framework/src/main/java/com/ruoyi/framework/config/ResourcesConfig.java new file mode 100644 index 0000000..5322ecd --- /dev/null +++ b/alive-framework/src/main/java/com/ruoyi/framework/config/ResourcesConfig.java @@ -0,0 +1,58 @@ +package com.ruoyi.framework.config; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.beans.factory.annotation.Value; +import org.springframework.context.annotation.Configuration; +import org.springframework.web.servlet.config.annotation.InterceptorRegistry; +import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry; +import org.springframework.web.servlet.config.annotation.ViewControllerRegistry; +import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; +import com.ruoyi.common.config.RuoYiConfig; +import com.ruoyi.common.constant.Constants; +import com.ruoyi.framework.interceptor.RepeatSubmitInterceptor; + +/** + * 通用配置 + * + * @author ruoyi + */ +@Configuration +public class ResourcesConfig implements WebMvcConfigurer +{ + /** + * 首页地址 + */ + @Value("${shiro.user.indexUrl}") + private String indexUrl; + + @Autowired + private RepeatSubmitInterceptor repeatSubmitInterceptor; + + /** + * 默认首页的设置,当输入域名是可以自动跳转到默认指定的网页 + */ + @Override + public void addViewControllers(ViewControllerRegistry registry) + { + registry.addViewController("/").setViewName("forward:" + indexUrl); + } + + @Override + public void addResourceHandlers(ResourceHandlerRegistry registry) + { + /** 本地文件上传路径 */ + registry.addResourceHandler(Constants.RESOURCE_PREFIX + "/**").addResourceLocations("file:" + RuoYiConfig.getProfile() + "/"); + + /** swagger配置 */ + registry.addResourceHandler("/swagger-ui/**").addResourceLocations("classpath:/META-INF/resources/webjars/springfox-swagger-ui/"); + } + + /** + * 自定义拦截规则 + */ + @Override + public void addInterceptors(InterceptorRegistry registry) + { + registry.addInterceptor(repeatSubmitInterceptor).addPathPatterns("/**"); + } +} \ No newline at end of file diff --git a/alive-framework/src/main/java/com/ruoyi/framework/config/ShiroConfig.java b/alive-framework/src/main/java/com/ruoyi/framework/config/ShiroConfig.java new file mode 100644 index 0000000..e1239ec --- /dev/null +++ b/alive-framework/src/main/java/com/ruoyi/framework/config/ShiroConfig.java @@ -0,0 +1,417 @@ +package com.ruoyi.framework.config; + +import java.io.ByteArrayInputStream; +import java.io.IOException; +import java.io.InputStream; +import java.util.LinkedHashMap; +import java.util.Map; +import javax.servlet.Filter; +import org.apache.commons.io.IOUtils; +import org.apache.shiro.cache.ehcache.EhCacheManager; +import org.apache.shiro.codec.Base64; +import org.apache.shiro.config.ConfigurationException; +import org.apache.shiro.io.ResourceUtils; +import org.apache.shiro.mgt.SecurityManager; +import org.apache.shiro.spring.security.interceptor.AuthorizationAttributeSourceAdvisor; +import org.apache.shiro.spring.web.ShiroFilterFactoryBean; +import org.apache.shiro.web.mgt.CookieRememberMeManager; +import org.apache.shiro.web.mgt.DefaultWebSecurityManager; +import org.apache.shiro.web.servlet.SimpleCookie; +import org.springframework.beans.factory.annotation.Qualifier; +import org.springframework.beans.factory.annotation.Value; +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; +import com.ruoyi.common.constant.Constants; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.common.utils.security.CipherUtils; +import com.ruoyi.common.utils.spring.SpringUtils; +import com.ruoyi.framework.shiro.realm.UserRealm; +import com.ruoyi.framework.shiro.session.OnlineSessionDAO; +import com.ruoyi.framework.shiro.session.OnlineSessionFactory; +import com.ruoyi.framework.shiro.web.filter.LogoutFilter; +import com.ruoyi.framework.shiro.web.filter.captcha.CaptchaValidateFilter; +import com.ruoyi.framework.shiro.web.filter.kickout.KickoutSessionFilter; +import com.ruoyi.framework.shiro.web.filter.online.OnlineSessionFilter; +import com.ruoyi.framework.shiro.web.filter.sync.SyncOnlineSessionFilter; +import com.ruoyi.framework.shiro.web.session.OnlineWebSessionManager; +import com.ruoyi.framework.shiro.web.session.SpringSessionValidationScheduler; +import at.pollux.thymeleaf.shiro.dialect.ShiroDialect; + +/** + * 权限配置加载 + * + * @author ruoyi + */ +@Configuration +public class ShiroConfig +{ + /** + * Session超时时间,单位为毫秒(默认30分钟) + */ + @Value("${shiro.session.expireTime}") + private int expireTime; + + /** + * 相隔多久检查一次session的有效性,单位毫秒,默认就是10分钟 + */ + @Value("${shiro.session.validationInterval}") + private int validationInterval; + + /** + * 同一个用户最大会话数 + */ + @Value("${shiro.session.maxSession}") + private int maxSession; + + /** + * 踢出之前登录的/之后登录的用户,默认踢出之前登录的用户 + */ + @Value("${shiro.session.kickoutAfter}") + private boolean kickoutAfter; + + /** + * 验证码开关 + */ + @Value("${shiro.user.captchaEnabled}") + private boolean captchaEnabled; + + /** + * 验证码类型 + */ + @Value("${shiro.user.captchaType}") + private String captchaType; + + /** + * 设置Cookie的域名 + */ + @Value("${shiro.cookie.domain}") + private String domain; + + /** + * 设置cookie的有效访问路径 + */ + @Value("${shiro.cookie.path}") + private String path; + + /** + * 设置HttpOnly属性 + */ + @Value("${shiro.cookie.httpOnly}") + private boolean httpOnly; + + /** + * 设置Cookie的过期时间,秒为单位 + */ + @Value("${shiro.cookie.maxAge}") + private int maxAge; + + /** + * 设置cipherKey密钥 + */ + @Value("${shiro.cookie.cipherKey}") + private String cipherKey; + + /** + * 登录地址 + */ + @Value("${shiro.user.loginUrl}") + private String loginUrl; + + /** + * 权限认证失败地址 + */ + @Value("${shiro.user.unauthorizedUrl}") + private String unauthorizedUrl; + + /** + * 是否开启记住我功能 + */ + @Value("${shiro.rememberMe.enabled: false}") + private boolean rememberMe; + + /** + * 缓存管理器 使用Ehcache实现 + */ + @Bean + public EhCacheManager getEhCacheManager() + { + net.sf.ehcache.CacheManager cacheManager = net.sf.ehcache.CacheManager.getCacheManager("ruoyi"); + EhCacheManager em = new EhCacheManager(); + if (StringUtils.isNull(cacheManager)) + { + em.setCacheManager(new net.sf.ehcache.CacheManager(getCacheManagerConfigFileInputStream())); + return em; + } + else + { + em.setCacheManager(cacheManager); + return em; + } + } + + /** + * 返回配置文件流 避免ehcache配置文件一直被占用,无法完全销毁项目重新部署 + */ + protected InputStream getCacheManagerConfigFileInputStream() + { + String configFile = "classpath:ehcache/ehcache-shiro.xml"; + InputStream inputStream = null; + try + { + inputStream = ResourceUtils.getInputStreamForPath(configFile); + byte[] b = IOUtils.toByteArray(inputStream); + InputStream in = new ByteArrayInputStream(b); + return in; + } + catch (IOException e) + { + throw new ConfigurationException( + "Unable to obtain input stream for cacheManagerConfigFile [" + configFile + "]", e); + } + finally + { + IOUtils.closeQuietly(inputStream); + } + } + + /** + * 自定义Realm + */ + @Bean + public UserRealm userRealm(EhCacheManager cacheManager) + { + UserRealm userRealm = new UserRealm(); + userRealm.setAuthorizationCacheName(Constants.SYS_AUTH_CACHE); + userRealm.setCacheManager(cacheManager); + return userRealm; + } + + /** + * 自定义sessionDAO会话 + */ + @Bean + public OnlineSessionDAO sessionDAO() + { + OnlineSessionDAO sessionDAO = new OnlineSessionDAO(); + return sessionDAO; + } + + /** + * 自定义sessionFactory会话 + */ + @Bean + public OnlineSessionFactory sessionFactory() + { + OnlineSessionFactory sessionFactory = new OnlineSessionFactory(); + return sessionFactory; + } + + /** + * 会话管理器 + */ + @Bean + public OnlineWebSessionManager sessionManager() + { + OnlineWebSessionManager manager = new OnlineWebSessionManager(); + // 加入缓存管理器 + manager.setCacheManager(getEhCacheManager()); + // 删除过期的session + manager.setDeleteInvalidSessions(true); + // 设置全局session超时时间 + manager.setGlobalSessionTimeout(expireTime * 60 * 1000); + // 去掉 JSESSIONID + manager.setSessionIdUrlRewritingEnabled(false); + // 定义要使用的无效的Session定时调度器 + manager.setSessionValidationScheduler(SpringUtils.getBean(SpringSessionValidationScheduler.class)); + // 是否定时检查session + manager.setSessionValidationSchedulerEnabled(true); + // 自定义SessionDao + manager.setSessionDAO(sessionDAO()); + // 自定义sessionFactory + manager.setSessionFactory(sessionFactory()); + return manager; + } + + /** + * 安全管理器 + */ + @Bean + public SecurityManager securityManager(UserRealm userRealm) + { + DefaultWebSecurityManager securityManager = new DefaultWebSecurityManager(); + // 设置realm. + securityManager.setRealm(userRealm); + // 记住我 + securityManager.setRememberMeManager(rememberMe ? rememberMeManager() : null); + // 注入缓存管理器; + securityManager.setCacheManager(getEhCacheManager()); + // session管理器 + securityManager.setSessionManager(sessionManager()); + return securityManager; + } + + /** + * 退出过滤器 + */ + public LogoutFilter logoutFilter() + { + LogoutFilter logoutFilter = new LogoutFilter(); + logoutFilter.setLoginUrl(loginUrl); + return logoutFilter; + } + + /** + * Shiro过滤器配置 + */ + @Bean + public ShiroFilterFactoryBean shiroFilterFactoryBean(SecurityManager securityManager) + { + ShiroFilterFactoryBean shiroFilterFactoryBean = new ShiroFilterFactoryBean(); + // Shiro的核心安全接口,这个属性是必须的 + shiroFilterFactoryBean.setSecurityManager(securityManager); + // 身份认证失败,则跳转到登录页面的配置 + shiroFilterFactoryBean.setLoginUrl(loginUrl); + // 权限认证失败,则跳转到指定页面 + shiroFilterFactoryBean.setUnauthorizedUrl(unauthorizedUrl); + // Shiro连接约束配置,即过滤链的定义 + LinkedHashMap filterChainDefinitionMap = new LinkedHashMap<>(); + // 对静态资源设置匿名访问 + filterChainDefinitionMap.put("/favicon.ico**", "anon"); + filterChainDefinitionMap.put("/ruoyi.png**", "anon"); + filterChainDefinitionMap.put("/html/**", "anon"); + filterChainDefinitionMap.put("/css/**", "anon"); + filterChainDefinitionMap.put("/docs/**", "anon"); + filterChainDefinitionMap.put("/fonts/**", "anon"); + filterChainDefinitionMap.put("/img/**", "anon"); + filterChainDefinitionMap.put("/ajax/**", "anon"); + filterChainDefinitionMap.put("/js/**", "anon"); + filterChainDefinitionMap.put("/ruoyi/**", "anon"); + filterChainDefinitionMap.put("/captcha/captchaImage**", "anon"); + // 退出 logout地址,shiro去清除session + filterChainDefinitionMap.put("/logout", "logout"); + // 不需要拦截的访问 + filterChainDefinitionMap.put("/login", "anon,captchaValidate"); + filterChainDefinitionMap.put("/project/publicAccess/*", "anon,captchaValidate"); + filterChainDefinitionMap.put("/project/asset", "anon,captchaValidate"); + // 注册相关 + filterChainDefinitionMap.put("/register", "anon,captchaValidate"); + // 系统权限列表 + // filterChainDefinitionMap.putAll(SpringUtils.getBean(IMenuService.class).selectPermsAll()); + + Map filters = new LinkedHashMap(); + filters.put("onlineSession", onlineSessionFilter()); + filters.put("syncOnlineSession", syncOnlineSessionFilter()); + filters.put("captchaValidate", captchaValidateFilter()); + filters.put("kickout", kickoutSessionFilter()); + // 注销成功,则跳转到指定页面 + filters.put("logout", logoutFilter()); + shiroFilterFactoryBean.setFilters(filters); + + // 所有请求需要认证 + filterChainDefinitionMap.put("/**", "user,kickout,onlineSession,syncOnlineSession"); + shiroFilterFactoryBean.setFilterChainDefinitionMap(filterChainDefinitionMap); + + return shiroFilterFactoryBean; + } + + /** + * 自定义在线用户处理过滤器 + */ + public OnlineSessionFilter onlineSessionFilter() + { + OnlineSessionFilter onlineSessionFilter = new OnlineSessionFilter(); + onlineSessionFilter.setLoginUrl(loginUrl); + onlineSessionFilter.setOnlineSessionDAO(sessionDAO()); + return onlineSessionFilter; + } + + /** + * 自定义在线用户同步过滤器 + */ + public SyncOnlineSessionFilter syncOnlineSessionFilter() + { + SyncOnlineSessionFilter syncOnlineSessionFilter = new SyncOnlineSessionFilter(); + syncOnlineSessionFilter.setOnlineSessionDAO(sessionDAO()); + return syncOnlineSessionFilter; + } + + /** + * 自定义验证码过滤器 + */ + public CaptchaValidateFilter captchaValidateFilter() + { + CaptchaValidateFilter captchaValidateFilter = new CaptchaValidateFilter(); + captchaValidateFilter.setCaptchaEnabled(captchaEnabled); + captchaValidateFilter.setCaptchaType(captchaType); + return captchaValidateFilter; + } + + /** + * cookie 属性设置 + */ + public SimpleCookie rememberMeCookie() + { + SimpleCookie cookie = new SimpleCookie("rememberMe"); + cookie.setDomain(domain); + cookie.setPath(path); + cookie.setHttpOnly(httpOnly); + cookie.setMaxAge(maxAge * 24 * 60 * 60); + return cookie; + } + + /** + * 记住我 + */ + public CookieRememberMeManager rememberMeManager() + { + CookieRememberMeManager cookieRememberMeManager = new CookieRememberMeManager(); + cookieRememberMeManager.setCookie(rememberMeCookie()); + if (StringUtils.isNotEmpty(cipherKey)) + { + cookieRememberMeManager.setCipherKey(Base64.decode(cipherKey)); + } + else + { + cookieRememberMeManager.setCipherKey(CipherUtils.generateNewKey(128, "AES").getEncoded()); + } + return cookieRememberMeManager; + } + + /** + * 同一个用户多设备登录限制 + */ + public KickoutSessionFilter kickoutSessionFilter() + { + KickoutSessionFilter kickoutSessionFilter = new KickoutSessionFilter(); + kickoutSessionFilter.setCacheManager(getEhCacheManager()); + kickoutSessionFilter.setSessionManager(sessionManager()); + // 同一个用户最大的会话数,默认-1无限制;比如2的意思是同一个用户允许最多同时两个人登录 + kickoutSessionFilter.setMaxSession(maxSession); + // 是否踢出后来登录的,默认是false;即后者登录的用户踢出前者登录的用户;踢出顺序 + kickoutSessionFilter.setKickoutAfter(kickoutAfter); + // 被踢出后重定向到的地址; + kickoutSessionFilter.setKickoutUrl("/login?kickout=1"); + return kickoutSessionFilter; + } + + /** + * thymeleaf模板引擎和shiro框架的整合 + */ + @Bean + public ShiroDialect shiroDialect() + { + return new ShiroDialect(); + } + + /** + * 开启Shiro注解通知器 + */ + @Bean + public AuthorizationAttributeSourceAdvisor authorizationAttributeSourceAdvisor( + @Qualifier("securityManager") SecurityManager securityManager) + { + AuthorizationAttributeSourceAdvisor authorizationAttributeSourceAdvisor = new AuthorizationAttributeSourceAdvisor(); + authorizationAttributeSourceAdvisor.setSecurityManager(securityManager); + return authorizationAttributeSourceAdvisor; + } +} diff --git a/alive-framework/src/main/java/com/ruoyi/framework/config/properties/DruidProperties.java b/alive-framework/src/main/java/com/ruoyi/framework/config/properties/DruidProperties.java new file mode 100644 index 0000000..84f7e00 --- /dev/null +++ b/alive-framework/src/main/java/com/ruoyi/framework/config/properties/DruidProperties.java @@ -0,0 +1,77 @@ +package com.ruoyi.framework.config.properties; + +import org.springframework.beans.factory.annotation.Value; +import org.springframework.context.annotation.Configuration; +import com.alibaba.druid.pool.DruidDataSource; + +/** + * druid 配置属性 + * + * @author ruoyi + */ +@Configuration +public class DruidProperties +{ + @Value("${spring.datasource.druid.initialSize}") + private int initialSize; + + @Value("${spring.datasource.druid.minIdle}") + private int minIdle; + + @Value("${spring.datasource.druid.maxActive}") + private int maxActive; + + @Value("${spring.datasource.druid.maxWait}") + private int maxWait; + + @Value("${spring.datasource.druid.timeBetweenEvictionRunsMillis}") + private int timeBetweenEvictionRunsMillis; + + @Value("${spring.datasource.druid.minEvictableIdleTimeMillis}") + private int minEvictableIdleTimeMillis; + + @Value("${spring.datasource.druid.maxEvictableIdleTimeMillis}") + private int maxEvictableIdleTimeMillis; + + @Value("${spring.datasource.druid.validationQuery}") + private String validationQuery; + + @Value("${spring.datasource.druid.testWhileIdle}") + private boolean testWhileIdle; + + @Value("${spring.datasource.druid.testOnBorrow}") + private boolean testOnBorrow; + + @Value("${spring.datasource.druid.testOnReturn}") + private boolean testOnReturn; + + public DruidDataSource dataSource(DruidDataSource datasource) + { + /** 配置初始化大小、最小、最大 */ + datasource.setInitialSize(initialSize); + datasource.setMaxActive(maxActive); + datasource.setMinIdle(minIdle); + + /** 配置获取连接等待超时的时间 */ + datasource.setMaxWait(maxWait); + + /** 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒 */ + datasource.setTimeBetweenEvictionRunsMillis(timeBetweenEvictionRunsMillis); + + /** 配置一个连接在池中最小、最大生存的时间,单位是毫秒 */ + datasource.setMinEvictableIdleTimeMillis(minEvictableIdleTimeMillis); + datasource.setMaxEvictableIdleTimeMillis(maxEvictableIdleTimeMillis); + + /** + * 用来检测连接是否有效的sql,要求是一个查询语句,常用select 'x'。如果validationQuery为null,testOnBorrow、testOnReturn、testWhileIdle都不会起作用。 + */ + datasource.setValidationQuery(validationQuery); + /** 建议配置为true,不影响性能,并且保证安全性。申请连接的时候检测,如果空闲时间大于timeBetweenEvictionRunsMillis,执行validationQuery检测连接是否有效。 */ + datasource.setTestWhileIdle(testWhileIdle); + /** 申请连接时执行validationQuery检测连接是否有效,做了这个配置会降低性能。 */ + datasource.setTestOnBorrow(testOnBorrow); + /** 归还连接时执行validationQuery检测连接是否有效,做了这个配置会降低性能。 */ + datasource.setTestOnReturn(testOnReturn); + return datasource; + } +} diff --git a/alive-framework/src/main/java/com/ruoyi/framework/datasource/DynamicDataSource.java b/alive-framework/src/main/java/com/ruoyi/framework/datasource/DynamicDataSource.java new file mode 100644 index 0000000..94b3d0d --- /dev/null +++ b/alive-framework/src/main/java/com/ruoyi/framework/datasource/DynamicDataSource.java @@ -0,0 +1,27 @@ +package com.ruoyi.framework.datasource; + +import java.util.Map; +import javax.sql.DataSource; +import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource; +import com.ruoyi.common.config.datasource.DynamicDataSourceContextHolder; + +/** + * 动态数据源 + * + * @author ruoyi + */ +public class DynamicDataSource extends AbstractRoutingDataSource +{ + public DynamicDataSource(DataSource defaultTargetDataSource, Map targetDataSources) + { + super.setDefaultTargetDataSource(defaultTargetDataSource); + super.setTargetDataSources(targetDataSources); + super.afterPropertiesSet(); + } + + @Override + protected Object determineCurrentLookupKey() + { + return DynamicDataSourceContextHolder.getDataSourceType(); + } +} \ No newline at end of file diff --git a/alive-framework/src/main/java/com/ruoyi/framework/interceptor/RepeatSubmitInterceptor.java b/alive-framework/src/main/java/com/ruoyi/framework/interceptor/RepeatSubmitInterceptor.java new file mode 100644 index 0000000..6df2e5e --- /dev/null +++ b/alive-framework/src/main/java/com/ruoyi/framework/interceptor/RepeatSubmitInterceptor.java @@ -0,0 +1,55 @@ +package com.ruoyi.framework.interceptor; + +import java.lang.reflect.Method; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import org.springframework.stereotype.Component; +import org.springframework.web.method.HandlerMethod; +import org.springframework.web.servlet.HandlerInterceptor; +import com.ruoyi.common.json.JSON; +import com.ruoyi.common.annotation.RepeatSubmit; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.utils.ServletUtils; + +/** + * 防止重复提交拦截器 + * + * @author ruoyi + */ +@Component +public abstract class RepeatSubmitInterceptor implements HandlerInterceptor +{ + @Override + public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception + { + if (handler instanceof HandlerMethod) + { + HandlerMethod handlerMethod = (HandlerMethod) handler; + Method method = handlerMethod.getMethod(); + RepeatSubmit annotation = method.getAnnotation(RepeatSubmit.class); + if (annotation != null) + { + if (this.isRepeatSubmit(request, annotation)) + { + AjaxResult ajaxResult = AjaxResult.error(annotation.message()); + ServletUtils.renderString(response, JSON.marshal(ajaxResult)); + return false; + } + } + return true; + } + else + { + return true; + } + } + + /** + * 验证是否重复提交由子类实现具体的防重复提交的规则 + * + * @param request 请求对象 + * @param annotation 防复注解 + * @return 结果 + */ + public abstract boolean isRepeatSubmit(HttpServletRequest request, RepeatSubmit annotation) throws Exception; +} diff --git a/alive-framework/src/main/java/com/ruoyi/framework/interceptor/impl/SameUrlDataInterceptor.java b/alive-framework/src/main/java/com/ruoyi/framework/interceptor/impl/SameUrlDataInterceptor.java new file mode 100644 index 0000000..fc0e1e9 --- /dev/null +++ b/alive-framework/src/main/java/com/ruoyi/framework/interceptor/impl/SameUrlDataInterceptor.java @@ -0,0 +1,83 @@ +package com.ruoyi.framework.interceptor.impl; + +import java.util.HashMap; +import java.util.Map; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpSession; +import org.springframework.stereotype.Component; +import com.ruoyi.common.annotation.RepeatSubmit; +import com.ruoyi.common.json.JSON; +import com.ruoyi.framework.interceptor.RepeatSubmitInterceptor; + +/** + * 判断请求url和数据是否和上一次相同, + * 如果和上次相同,则是重复提交表单。 有效时间为10秒内。 + * + * @author ruoyi + */ +@Component +public class SameUrlDataInterceptor extends RepeatSubmitInterceptor +{ + public final String REPEAT_PARAMS = "repeatParams"; + + public final String REPEAT_TIME = "repeatTime"; + + public final String SESSION_REPEAT_KEY = "repeatData"; + + @SuppressWarnings("unchecked") + @Override + public boolean isRepeatSubmit(HttpServletRequest request, RepeatSubmit annotation) throws Exception + { + // 本次参数及系统时间 + String nowParams = JSON.marshal(request.getParameterMap()); + Map nowDataMap = new HashMap(); + nowDataMap.put(REPEAT_PARAMS, nowParams); + nowDataMap.put(REPEAT_TIME, System.currentTimeMillis()); + + // 请求地址(作为存放session的key值) + String url = request.getRequestURI(); + + HttpSession session = request.getSession(); + Object sessionObj = session.getAttribute(SESSION_REPEAT_KEY); + if (sessionObj != null) + { + Map sessionMap = (Map) sessionObj; + if (sessionMap.containsKey(url)) + { + Map preDataMap = (Map) sessionMap.get(url); + if (compareParams(nowDataMap, preDataMap) && compareTime(nowDataMap, preDataMap, annotation.interval())) + { + return true; + } + } + } + Map sessionMap = new HashMap(); + sessionMap.put(url, nowDataMap); + session.setAttribute(SESSION_REPEAT_KEY, sessionMap); + return false; + } + + /** + * 判断参数是否相同 + */ + private boolean compareParams(Map nowMap, Map preMap) + { + String nowParams = (String) nowMap.get(REPEAT_PARAMS); + String preParams = (String) preMap.get(REPEAT_PARAMS); + return nowParams.equals(preParams); + } + + /** + * 判断两次间隔时间 + */ + private boolean compareTime(Map nowMap, Map preMap, int interval) + { + long time1 = (Long) nowMap.get(REPEAT_TIME); + long time2 = (Long) preMap.get(REPEAT_TIME); + if ((time1 - time2) < interval) + { + return true; + } + return false; + } +} diff --git a/alive-framework/src/main/java/com/ruoyi/framework/manager/AsyncManager.java b/alive-framework/src/main/java/com/ruoyi/framework/manager/AsyncManager.java new file mode 100644 index 0000000..8f78300 --- /dev/null +++ b/alive-framework/src/main/java/com/ruoyi/framework/manager/AsyncManager.java @@ -0,0 +1,55 @@ +package com.ruoyi.framework.manager; + +import java.util.TimerTask; +import java.util.concurrent.ScheduledExecutorService; +import java.util.concurrent.TimeUnit; +import com.ruoyi.common.utils.Threads; +import com.ruoyi.common.utils.spring.SpringUtils; + +/** + * 异步任务管理器 + * + * @author liuhulu + */ +public class AsyncManager +{ + /** + * 操作延迟10毫秒 + */ + private final int OPERATE_DELAY_TIME = 10; + + /** + * 异步操作任务调度线程池 + */ + private ScheduledExecutorService executor = SpringUtils.getBean("scheduledExecutorService"); + + /** + * 单例模式 + */ + private AsyncManager(){} + + private static AsyncManager me = new AsyncManager(); + + public static AsyncManager me() + { + return me; + } + + /** + * 执行任务 + * + * @param task 任务 + */ + public void execute(TimerTask task) + { + executor.schedule(task, OPERATE_DELAY_TIME, TimeUnit.MILLISECONDS); + } + + /** + * 停止任务线程池 + */ + public void shutdown() + { + Threads.shutdownAndAwaitTermination(executor); + } +} diff --git a/alive-framework/src/main/java/com/ruoyi/framework/manager/ShutdownManager.java b/alive-framework/src/main/java/com/ruoyi/framework/manager/ShutdownManager.java new file mode 100644 index 0000000..78a4af3 --- /dev/null +++ b/alive-framework/src/main/java/com/ruoyi/framework/manager/ShutdownManager.java @@ -0,0 +1,87 @@ +package com.ruoyi.framework.manager; + +import com.ruoyi.framework.shiro.web.session.SpringSessionValidationScheduler; +import net.sf.ehcache.CacheManager; +import org.apache.shiro.cache.ehcache.EhCacheManager; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Component; +import javax.annotation.PreDestroy; + +/** + * 确保应用退出时能关闭后台线程 + * + * @author cj + */ +@Component +public class ShutdownManager +{ + private static final Logger logger = LoggerFactory.getLogger("sys-user"); + + @Autowired(required = false) + private SpringSessionValidationScheduler springSessionValidationScheduler; + + @Autowired(required = false) + private EhCacheManager ehCacheManager; + + @PreDestroy + public void destroy() + { + shutdownSpringSessionValidationScheduler(); + shutdownAsyncManager(); + shutdownEhCacheManager(); + } + + /** + * 停止Seesion会话检查 + */ + private void shutdownSpringSessionValidationScheduler() + { + if (springSessionValidationScheduler != null && springSessionValidationScheduler.isEnabled()) + { + try + { + logger.info("====关闭会话验证任务===="); + springSessionValidationScheduler.disableSessionValidation(); + } + catch (Exception e) + { + logger.error(e.getMessage(), e); + } + } + } + + /** + * 停止异步执行任务 + */ + private void shutdownAsyncManager() + { + try + { + logger.info("====关闭后台任务任务线程池===="); + AsyncManager.me().shutdown(); + } + catch (Exception e) + { + logger.error(e.getMessage(), e); + } + } + + private void shutdownEhCacheManager() + { + try + { + logger.info("====关闭缓存===="); + if (ehCacheManager != null) + { + CacheManager cacheManager = ehCacheManager.getCacheManager(); + cacheManager.shutdown(); + } + } + catch (Exception e) + { + logger.error(e.getMessage(), e); + } + } +} diff --git a/alive-framework/src/main/java/com/ruoyi/framework/manager/factory/AsyncFactory.java b/alive-framework/src/main/java/com/ruoyi/framework/manager/factory/AsyncFactory.java new file mode 100644 index 0000000..befa9ca --- /dev/null +++ b/alive-framework/src/main/java/com/ruoyi/framework/manager/factory/AsyncFactory.java @@ -0,0 +1,136 @@ +package com.ruoyi.framework.manager.factory; + +import java.util.TimerTask; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import com.ruoyi.common.constant.Constants; +import com.ruoyi.common.utils.AddressUtils; +import com.ruoyi.common.utils.LogUtils; +import com.ruoyi.common.utils.ServletUtils; +import com.ruoyi.common.utils.ShiroUtils; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.common.utils.spring.SpringUtils; +import com.ruoyi.framework.shiro.session.OnlineSession; +import com.ruoyi.system.domain.SysLogininfor; +import com.ruoyi.system.domain.SysOperLog; +import com.ruoyi.system.domain.SysUserOnline; +import com.ruoyi.system.service.ISysOperLogService; +import com.ruoyi.system.service.ISysUserOnlineService; +import com.ruoyi.system.service.impl.SysLogininforServiceImpl; +import eu.bitwalker.useragentutils.UserAgent; + +/** + * 异步工厂(产生任务用) + * + * @author liuhulu + * + */ +public class AsyncFactory +{ + private static final Logger sys_user_logger = LoggerFactory.getLogger("sys-user"); + + /** + * 同步session到数据库 + * + * @param session 在线用户会话 + * @return 任务task + */ + public static TimerTask syncSessionToDb(final OnlineSession session) + { + return new TimerTask() + { + @Override + public void run() + { + SysUserOnline online = new SysUserOnline(); + online.setSessionId(String.valueOf(session.getId())); + online.setDeptName(session.getDeptName()); + online.setLoginName(session.getLoginName()); + online.setStartTimestamp(session.getStartTimestamp()); + online.setLastAccessTime(session.getLastAccessTime()); + online.setExpireTime(session.getTimeout()); + online.setIpaddr(session.getHost()); + online.setLoginLocation(AddressUtils.getRealAddressByIP(session.getHost())); + online.setBrowser(session.getBrowser()); + online.setOs(session.getOs()); + online.setStatus(session.getStatus()); + SpringUtils.getBean(ISysUserOnlineService.class).saveOnline(online); + + } + }; + } + + /** + * 操作日志记录 + * + * @param operLog 操作日志信息 + * @return 任务task + */ + public static TimerTask recordOper(final SysOperLog operLog) + { + return new TimerTask() + { + @Override + public void run() + { + // 远程查询操作地点 + operLog.setOperLocation(AddressUtils.getRealAddressByIP(operLog.getOperIp())); + SpringUtils.getBean(ISysOperLogService.class).insertOperlog(operLog); + } + }; + } + + /** + * 记录登录信息 + * + * @param username 用户名 + * @param status 状态 + * @param message 消息 + * @param args 列表 + * @return 任务task + */ + public static TimerTask recordLogininfor(final String username, final String status, final String message, final Object... args) + { + final UserAgent userAgent = UserAgent.parseUserAgentString(ServletUtils.getRequest().getHeader("User-Agent")); + final String ip = ShiroUtils.getIp(); + return new TimerTask() + { + @Override + public void run() + { + String address = AddressUtils.getRealAddressByIP(ip); + StringBuilder s = new StringBuilder(); + s.append(LogUtils.getBlock(ip)); + s.append(address); + s.append(LogUtils.getBlock(username)); + s.append(LogUtils.getBlock(status)); + s.append(LogUtils.getBlock(message)); + // 打印信息到日志 + sys_user_logger.info(s.toString(), args); + // 获取客户端操作系统 + String os = userAgent.getOperatingSystem().getName(); + // 获取客户端浏览器 + String browser = userAgent.getBrowser().getName(); + // 封装对象 + SysLogininfor logininfor = new SysLogininfor(); + logininfor.setLoginName(username); + logininfor.setIpaddr(ip); + logininfor.setLoginLocation(address); + logininfor.setBrowser(browser); + logininfor.setOs(os); + logininfor.setMsg(message); + // 日志状态 + if (StringUtils.equalsAny(status, Constants.LOGIN_SUCCESS, Constants.LOGOUT, Constants.REGISTER)) + { + logininfor.setStatus(Constants.SUCCESS); + } + else if (Constants.LOGIN_FAIL.equals(status)) + { + logininfor.setStatus(Constants.FAIL); + } + // 插入数据 + SpringUtils.getBean(SysLogininforServiceImpl.class).insertLogininfor(logininfor); + } + }; + } +} diff --git a/alive-framework/src/main/java/com/ruoyi/framework/shiro/realm/UserRealm.java b/alive-framework/src/main/java/com/ruoyi/framework/shiro/realm/UserRealm.java new file mode 100644 index 0000000..e77fafc --- /dev/null +++ b/alive-framework/src/main/java/com/ruoyi/framework/shiro/realm/UserRealm.java @@ -0,0 +1,158 @@ +package com.ruoyi.framework.shiro.realm; + +import java.util.HashSet; +import java.util.Set; +import org.apache.shiro.authc.AuthenticationException; +import org.apache.shiro.authc.AuthenticationInfo; +import org.apache.shiro.authc.AuthenticationToken; +import org.apache.shiro.authc.ExcessiveAttemptsException; +import org.apache.shiro.authc.IncorrectCredentialsException; +import org.apache.shiro.authc.LockedAccountException; +import org.apache.shiro.authc.SimpleAuthenticationInfo; +import org.apache.shiro.authc.UnknownAccountException; +import org.apache.shiro.authc.UsernamePasswordToken; +import org.apache.shiro.authz.AuthorizationInfo; +import org.apache.shiro.authz.SimpleAuthorizationInfo; +import org.apache.shiro.cache.Cache; +import org.apache.shiro.realm.AuthorizingRealm; +import org.apache.shiro.subject.PrincipalCollection; +import org.apache.shiro.subject.SimplePrincipalCollection; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; +import com.ruoyi.common.core.domain.entity.SysUser; +import com.ruoyi.common.exception.user.CaptchaException; +import com.ruoyi.common.exception.user.RoleBlockedException; +import com.ruoyi.common.exception.user.UserBlockedException; +import com.ruoyi.common.exception.user.UserNotExistsException; +import com.ruoyi.common.exception.user.UserPasswordNotMatchException; +import com.ruoyi.common.exception.user.UserPasswordRetryLimitExceedException; +import com.ruoyi.common.utils.ShiroUtils; +import com.ruoyi.framework.shiro.service.SysLoginService; +import com.ruoyi.system.service.ISysMenuService; +import com.ruoyi.system.service.ISysRoleService; + +/** + * 自定义Realm 处理登录 权限 + * + * @author ruoyi + */ +public class UserRealm extends AuthorizingRealm +{ + private static final Logger log = LoggerFactory.getLogger(UserRealm.class); + + @Autowired + private ISysMenuService menuService; + + @Autowired + private ISysRoleService roleService; + + @Autowired + private SysLoginService loginService; + + /** + * 授权 + */ + @Override + protected AuthorizationInfo doGetAuthorizationInfo(PrincipalCollection arg0) + { + SysUser user = ShiroUtils.getSysUser(); + // 角色列表 + Set roles = new HashSet(); + // 功能列表 + Set menus = new HashSet(); + SimpleAuthorizationInfo info = new SimpleAuthorizationInfo(); + // 管理员拥有所有权限 + if (user.isAdmin()) + { + info.addRole("admin"); + info.addStringPermission("*:*:*"); + } + else + { + roles = roleService.selectRoleKeys(user.getUserId()); + menus = menuService.selectPermsByUserId(user.getUserId()); + // 角色加入AuthorizationInfo认证对象 + info.setRoles(roles); + // 权限加入AuthorizationInfo认证对象 + info.setStringPermissions(menus); + } + return info; + } + + /** + * 登录认证 + */ + @Override + protected AuthenticationInfo doGetAuthenticationInfo(AuthenticationToken token) throws AuthenticationException + { + UsernamePasswordToken upToken = (UsernamePasswordToken) token; + String username = upToken.getUsername(); + String password = ""; + if (upToken.getPassword() != null) + { + password = new String(upToken.getPassword()); + } + + SysUser user = null; + try + { + user = loginService.login(username, password); + } + catch (CaptchaException e) + { + throw new AuthenticationException(e.getMessage(), e); + } + catch (UserNotExistsException e) + { + throw new UnknownAccountException(e.getMessage(), e); + } + catch (UserPasswordNotMatchException e) + { + throw new IncorrectCredentialsException(e.getMessage(), e); + } + catch (UserPasswordRetryLimitExceedException e) + { + throw new ExcessiveAttemptsException(e.getMessage(), e); + } + catch (UserBlockedException e) + { + throw new LockedAccountException(e.getMessage(), e); + } + catch (RoleBlockedException e) + { + throw new LockedAccountException(e.getMessage(), e); + } + catch (Exception e) + { + log.info("对用户[" + username + "]进行登录验证..验证未通过{}", e.getMessage()); + throw new AuthenticationException(e.getMessage(), e); + } + SimpleAuthenticationInfo info = new SimpleAuthenticationInfo(user, password, getName()); + return info; + } + + /** + * 清理指定用户授权信息缓存 + */ + public void clearCachedAuthorizationInfo(Object principal) + { + SimplePrincipalCollection principals = new SimplePrincipalCollection(principal, getName()); + this.clearCachedAuthorizationInfo(principals); + } + + /** + * 清理所有用户授权信息缓存 + */ + public void clearAllCachedAuthorizationInfo() + { + Cache cache = getAuthorizationCache(); + if (cache != null) + { + for (Object key : cache.keys()) + { + cache.remove(key); + } + } + } +} diff --git a/alive-framework/src/main/java/com/ruoyi/framework/shiro/service/SysLoginService.java b/alive-framework/src/main/java/com/ruoyi/framework/shiro/service/SysLoginService.java new file mode 100644 index 0000000..07a117f --- /dev/null +++ b/alive-framework/src/main/java/com/ruoyi/framework/shiro/service/SysLoginService.java @@ -0,0 +1,144 @@ +package com.ruoyi.framework.shiro.service; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Component; +import com.ruoyi.common.constant.Constants; +import com.ruoyi.common.constant.ShiroConstants; +import com.ruoyi.common.constant.UserConstants; +import com.ruoyi.common.core.domain.entity.SysUser; +import com.ruoyi.common.enums.UserStatus; +import com.ruoyi.common.exception.user.CaptchaException; +import com.ruoyi.common.exception.user.UserBlockedException; +import com.ruoyi.common.exception.user.UserDeleteException; +import com.ruoyi.common.exception.user.UserNotExistsException; +import com.ruoyi.common.exception.user.UserPasswordNotMatchException; +import com.ruoyi.common.utils.DateUtils; +import com.ruoyi.common.utils.MessageUtils; +import com.ruoyi.common.utils.ServletUtils; +import com.ruoyi.common.utils.ShiroUtils; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.framework.manager.AsyncManager; +import com.ruoyi.framework.manager.factory.AsyncFactory; +import com.ruoyi.system.service.ISysUserService; + +/** + * 登录校验方法 + * + * @author ruoyi + */ +@Component +public class SysLoginService +{ + @Autowired + private SysPasswordService passwordService; + + @Autowired + private ISysUserService userService; + + /** + * 登录 + */ + public SysUser login(String username, String password) + { + // 验证码校验 + if (ShiroConstants.CAPTCHA_ERROR.equals(ServletUtils.getRequest().getAttribute(ShiroConstants.CURRENT_CAPTCHA))) + { + AsyncManager.me().execute(AsyncFactory.recordLogininfor(username, Constants.LOGIN_FAIL, MessageUtils.message("user.jcaptcha.error"))); + throw new CaptchaException(); + } + // 用户名或密码为空 错误 + if (StringUtils.isEmpty(username) || StringUtils.isEmpty(password)) + { + AsyncManager.me().execute(AsyncFactory.recordLogininfor(username, Constants.LOGIN_FAIL, MessageUtils.message("not.null"))); + throw new UserNotExistsException(); + } + // 密码如果不在指定范围内 错误 + if (password.length() < UserConstants.PASSWORD_MIN_LENGTH + || password.length() > UserConstants.PASSWORD_MAX_LENGTH) + { + AsyncManager.me().execute(AsyncFactory.recordLogininfor(username, Constants.LOGIN_FAIL, MessageUtils.message("user.password.not.match"))); + throw new UserPasswordNotMatchException(); + } + + // 用户名不在指定范围内 错误 + if (username.length() < UserConstants.USERNAME_MIN_LENGTH + || username.length() > UserConstants.USERNAME_MAX_LENGTH) + { + AsyncManager.me().execute(AsyncFactory.recordLogininfor(username, Constants.LOGIN_FAIL, MessageUtils.message("user.password.not.match"))); + throw new UserPasswordNotMatchException(); + } + + // 查询用户信息 + SysUser user = userService.selectUserByLoginName(username); + + /** + if (user == null && maybeMobilePhoneNumber(username)) + { + user = userService.selectUserByPhoneNumber(username); + } + + if (user == null && maybeEmail(username)) + { + user = userService.selectUserByEmail(username); + } + */ + + if (user == null) + { + AsyncManager.me().execute(AsyncFactory.recordLogininfor(username, Constants.LOGIN_FAIL, MessageUtils.message("user.not.exists"))); + throw new UserNotExistsException(); + } + + if (UserStatus.DELETED.getCode().equals(user.getDelFlag())) + { + AsyncManager.me().execute(AsyncFactory.recordLogininfor(username, Constants.LOGIN_FAIL, MessageUtils.message("user.password.delete"))); + throw new UserDeleteException(); + } + + if (UserStatus.DISABLE.getCode().equals(user.getStatus())) + { + AsyncManager.me().execute(AsyncFactory.recordLogininfor(username, Constants.LOGIN_FAIL, MessageUtils.message("user.blocked", user.getRemark()))); + throw new UserBlockedException(); + } + + passwordService.validate(user, password); + + AsyncManager.me().execute(AsyncFactory.recordLogininfor(username, Constants.LOGIN_SUCCESS, MessageUtils.message("user.login.success"))); + recordLoginInfo(user.getUserId()); + return user; + } + + /** + private boolean maybeEmail(String username) + { + if (!username.matches(UserConstants.EMAIL_PATTERN)) + { + return false; + } + return true; + } + + private boolean maybeMobilePhoneNumber(String username) + { + if (!username.matches(UserConstants.MOBILE_PHONE_NUMBER_PATTERN)) + { + return false; + } + return true; + } + */ + + /** + * 记录登录信息 + * + * @param userId 用户ID + */ + public void recordLoginInfo(Long userId) + { + SysUser user = new SysUser(); + user.setUserId(userId); + user.setLoginIp(ShiroUtils.getIp()); + user.setLoginDate(DateUtils.getNowDate()); + userService.updateUserInfo(user); + } +} diff --git a/alive-framework/src/main/java/com/ruoyi/framework/shiro/service/SysPasswordService.java b/alive-framework/src/main/java/com/ruoyi/framework/shiro/service/SysPasswordService.java new file mode 100644 index 0000000..0aea63f --- /dev/null +++ b/alive-framework/src/main/java/com/ruoyi/framework/shiro/service/SysPasswordService.java @@ -0,0 +1,85 @@ +package com.ruoyi.framework.shiro.service; + +import java.util.concurrent.atomic.AtomicInteger; +import javax.annotation.PostConstruct; +import org.apache.shiro.cache.Cache; +import org.apache.shiro.cache.CacheManager; +import org.apache.shiro.crypto.hash.Md5Hash; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.beans.factory.annotation.Value; +import org.springframework.stereotype.Component; +import com.ruoyi.common.constant.Constants; +import com.ruoyi.common.constant.ShiroConstants; +import com.ruoyi.common.core.domain.entity.SysUser; +import com.ruoyi.common.exception.user.UserPasswordNotMatchException; +import com.ruoyi.common.exception.user.UserPasswordRetryLimitExceedException; +import com.ruoyi.common.utils.MessageUtils; +import com.ruoyi.framework.manager.AsyncManager; +import com.ruoyi.framework.manager.factory.AsyncFactory; + +/** + * 登录密码方法 + * + * @author ruoyi + */ +@Component +public class SysPasswordService +{ + @Autowired + private CacheManager cacheManager; + + private Cache loginRecordCache; + + @Value(value = "${user.password.maxRetryCount}") + private String maxRetryCount; + + @PostConstruct + public void init() + { + loginRecordCache = cacheManager.getCache(ShiroConstants.LOGINRECORDCACHE); + } + + public void validate(SysUser user, String password) + { + String loginName = user.getLoginName(); + + AtomicInteger retryCount = loginRecordCache.get(loginName); + + if (retryCount == null) + { + retryCount = new AtomicInteger(0); + loginRecordCache.put(loginName, retryCount); + } + if (retryCount.incrementAndGet() > Integer.valueOf(maxRetryCount).intValue()) + { + AsyncManager.me().execute(AsyncFactory.recordLogininfor(loginName, Constants.LOGIN_FAIL, MessageUtils.message("user.password.retry.limit.exceed", maxRetryCount))); + throw new UserPasswordRetryLimitExceedException(Integer.valueOf(maxRetryCount).intValue()); + } + + if (!matches(user, password)) + { + AsyncManager.me().execute(AsyncFactory.recordLogininfor(loginName, Constants.LOGIN_FAIL, MessageUtils.message("user.password.retry.limit.count", retryCount))); + loginRecordCache.put(loginName, retryCount); + throw new UserPasswordNotMatchException(); + } + else + { + clearLoginRecordCache(loginName); + } + } + + public boolean matches(SysUser user, String newPassword) + { + return user.getPassword().equals(encryptPassword(user.getLoginName(), newPassword, user.getSalt())); + } + + public void clearLoginRecordCache(String loginName) + { + loginRecordCache.remove(loginName); + } + + public String encryptPassword(String loginName, String password, String salt) + { + return new Md5Hash(loginName + password + salt).toHex(); + } +} diff --git a/alive-framework/src/main/java/com/ruoyi/framework/shiro/service/SysRegisterService.java b/alive-framework/src/main/java/com/ruoyi/framework/shiro/service/SysRegisterService.java new file mode 100644 index 0000000..a535a36 --- /dev/null +++ b/alive-framework/src/main/java/com/ruoyi/framework/shiro/service/SysRegisterService.java @@ -0,0 +1,83 @@ +package com.ruoyi.framework.shiro.service; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Component; +import com.ruoyi.common.constant.Constants; +import com.ruoyi.common.constant.ShiroConstants; +import com.ruoyi.common.constant.UserConstants; +import com.ruoyi.common.core.domain.entity.SysUser; +import com.ruoyi.common.utils.DateUtils; +import com.ruoyi.common.utils.MessageUtils; +import com.ruoyi.common.utils.ServletUtils; +import com.ruoyi.common.utils.ShiroUtils; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.framework.manager.AsyncManager; +import com.ruoyi.framework.manager.factory.AsyncFactory; +import com.ruoyi.system.service.ISysUserService; + +/** + * 注册校验方法 + * + * @author ruoyi + */ +@Component +public class SysRegisterService +{ + @Autowired + private ISysUserService userService; + + @Autowired + private SysPasswordService passwordService; + + /** + * 注册 + */ + public String register(SysUser user) + { + String msg = "", loginName = user.getLoginName(), password = user.getPassword(); + + if (ShiroConstants.CAPTCHA_ERROR.equals(ServletUtils.getRequest().getAttribute(ShiroConstants.CURRENT_CAPTCHA))) + { + msg = "验证码错误"; + } + else if (StringUtils.isEmpty(loginName)) + { + msg = "用户名不能为空"; + } + else if (StringUtils.isEmpty(password)) + { + msg = "用户密码不能为空"; + } + else if (password.length() < UserConstants.PASSWORD_MIN_LENGTH + || password.length() > UserConstants.PASSWORD_MAX_LENGTH) + { + msg = "密码长度必须在5到20个字符之间"; + } + else if (loginName.length() < UserConstants.USERNAME_MIN_LENGTH + || loginName.length() > UserConstants.USERNAME_MAX_LENGTH) + { + msg = "账户长度必须在2到20个字符之间"; + } + else if (UserConstants.USER_NAME_NOT_UNIQUE.equals(userService.checkLoginNameUnique(loginName))) + { + msg = "保存用户'" + loginName + "'失败,注册账号已存在"; + } + else + { + user.setPwdUpdateDate(DateUtils.getNowDate()); + user.setUserName(loginName); + user.setSalt(ShiroUtils.randomSalt()); + user.setPassword(passwordService.encryptPassword(user.getLoginName(), user.getPassword(), user.getSalt())); + boolean regFlag = userService.registerUser(user); + if (!regFlag) + { + msg = "注册失败,请联系系统管理人员"; + } + else + { + AsyncManager.me().execute(AsyncFactory.recordLogininfor(loginName, Constants.REGISTER, MessageUtils.message("user.register.success"))); + } + } + return msg; + } +} diff --git a/alive-framework/src/main/java/com/ruoyi/framework/shiro/service/SysShiroService.java b/alive-framework/src/main/java/com/ruoyi/framework/shiro/service/SysShiroService.java new file mode 100644 index 0000000..1fb9c7e --- /dev/null +++ b/alive-framework/src/main/java/com/ruoyi/framework/shiro/service/SysShiroService.java @@ -0,0 +1,62 @@ +package com.ruoyi.framework.shiro.service; + +import java.io.Serializable; +import org.apache.shiro.session.Session; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Component; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.framework.shiro.session.OnlineSession; +import com.ruoyi.system.domain.SysUserOnline; +import com.ruoyi.system.service.ISysUserOnlineService; + +/** + * 会话db操作处理 + * + * @author ruoyi + */ +@Component +public class SysShiroService +{ + @Autowired + private ISysUserOnlineService onlineService; + + /** + * 删除会话 + * + * @param onlineSession 会话信息 + */ + public void deleteSession(OnlineSession onlineSession) + { + onlineService.deleteOnlineById(String.valueOf(onlineSession.getId())); + } + + /** + * 获取会话信息 + * + * @param sessionId + * @return + */ + public Session getSession(Serializable sessionId) + { + SysUserOnline userOnline = onlineService.selectOnlineById(String.valueOf(sessionId)); + return StringUtils.isNull(userOnline) ? null : createSession(userOnline); + } + + public Session createSession(SysUserOnline userOnline) + { + OnlineSession onlineSession = new OnlineSession(); + if (StringUtils.isNotNull(userOnline)) + { + onlineSession.setId(userOnline.getSessionId()); + onlineSession.setHost(userOnline.getIpaddr()); + onlineSession.setBrowser(userOnline.getBrowser()); + onlineSession.setOs(userOnline.getOs()); + onlineSession.setDeptName(userOnline.getDeptName()); + onlineSession.setLoginName(userOnline.getLoginName()); + onlineSession.setStartTimestamp(userOnline.getStartTimestamp()); + onlineSession.setLastAccessTime(userOnline.getLastAccessTime()); + onlineSession.setTimeout(userOnline.getExpireTime()); + } + return onlineSession; + } +} diff --git a/alive-framework/src/main/java/com/ruoyi/framework/shiro/session/OnlineSession.java b/alive-framework/src/main/java/com/ruoyi/framework/shiro/session/OnlineSession.java new file mode 100644 index 0000000..f9c417c --- /dev/null +++ b/alive-framework/src/main/java/com/ruoyi/framework/shiro/session/OnlineSession.java @@ -0,0 +1,165 @@ +package com.ruoyi.framework.shiro.session; + +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import org.apache.shiro.session.mgt.SimpleSession; +import com.ruoyi.common.enums.OnlineStatus; + +/** + * 在线用户会话属性 + * + * @author ruoyi + */ +public class OnlineSession extends SimpleSession +{ + private static final long serialVersionUID = 1L; + + /** 用户ID */ + private Long userId; + + /** 用户名称 */ + private String loginName; + + /** 部门名称 */ + private String deptName; + + /** 用户头像 */ + private String avatar; + + /** 登录IP地址 */ + private String host; + + /** 浏览器类型 */ + private String browser; + + /** 操作系统 */ + private String os; + + /** 在线状态 */ + private OnlineStatus status = OnlineStatus.on_line; + + /** 属性是否改变 优化session数据同步 */ + private transient boolean attributeChanged = false; + + @Override + public String getHost() + { + return host; + } + + @Override + public void setHost(String host) + { + this.host = host; + } + + public String getBrowser() + { + return browser; + } + + public void setBrowser(String browser) + { + this.browser = browser; + } + + public String getOs() + { + return os; + } + + public void setOs(String os) + { + this.os = os; + } + + public Long getUserId() + { + return userId; + } + + public void setUserId(Long userId) + { + this.userId = userId; + } + + public String getLoginName() + { + return loginName; + } + + public void setLoginName(String loginName) + { + this.loginName = loginName; + } + + public String getDeptName() + { + return deptName; + } + + public void setDeptName(String deptName) + { + this.deptName = deptName; + } + + public OnlineStatus getStatus() + { + return status; + } + + public void setStatus(OnlineStatus status) + { + this.status = status; + } + + public void markAttributeChanged() + { + this.attributeChanged = true; + } + + public void resetAttributeChanged() + { + this.attributeChanged = false; + } + + public boolean isAttributeChanged() + { + return attributeChanged; + } + + public String getAvatar() { + return avatar; + } + + public void setAvatar(String avatar) { + this.avatar = avatar; + } + + @Override + public void setAttribute(Object key, Object value) + { + super.setAttribute(key, value); + } + + @Override + public Object removeAttribute(Object key) + { + return super.removeAttribute(key); + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("userId", getUserId()) + .append("loginName", getLoginName()) + .append("deptName", getDeptName()) + .append("avatar", getAvatar()) + .append("host", getHost()) + .append("browser", getBrowser()) + .append("os", getOs()) + .append("status", getStatus()) + .append("attributeChanged", isAttributeChanged()) + .toString(); + } +} diff --git a/alive-framework/src/main/java/com/ruoyi/framework/shiro/session/OnlineSessionDAO.java b/alive-framework/src/main/java/com/ruoyi/framework/shiro/session/OnlineSessionDAO.java new file mode 100644 index 0000000..3ee1862 --- /dev/null +++ b/alive-framework/src/main/java/com/ruoyi/framework/shiro/session/OnlineSessionDAO.java @@ -0,0 +1,117 @@ +package com.ruoyi.framework.shiro.session; + +import java.io.Serializable; +import java.util.Date; +import org.apache.shiro.session.Session; +import org.apache.shiro.session.UnknownSessionException; +import org.apache.shiro.session.mgt.eis.EnterpriseCacheSessionDAO; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.beans.factory.annotation.Value; +import com.ruoyi.common.enums.OnlineStatus; +import com.ruoyi.framework.manager.AsyncManager; +import com.ruoyi.framework.manager.factory.AsyncFactory; +import com.ruoyi.framework.shiro.service.SysShiroService; + +/** + * 针对自定义的ShiroSession的db操作 + * + * @author ruoyi + */ +public class OnlineSessionDAO extends EnterpriseCacheSessionDAO +{ + /** + * 同步session到数据库的周期 单位为毫秒(默认1分钟) + */ + @Value("${shiro.session.dbSyncPeriod}") + private int dbSyncPeriod; + + /** + * 上次同步数据库的时间戳 + */ + private static final String LAST_SYNC_DB_TIMESTAMP = OnlineSessionDAO.class.getName() + "LAST_SYNC_DB_TIMESTAMP"; + + @Autowired + private SysShiroService sysShiroService; + + public OnlineSessionDAO() + { + super(); + } + + public OnlineSessionDAO(long expireTime) + { + super(); + } + + /** + * 根据会话ID获取会话 + * + * @param sessionId 会话ID + * @return ShiroSession + */ + @Override + protected Session doReadSession(Serializable sessionId) + { + return sysShiroService.getSession(sessionId); + } + + @Override + public void update(Session session) throws UnknownSessionException + { + super.update(session); + } + + /** + * 更新会话;如更新会话最后访问时间/停止会话/设置超时时间/设置移除属性等会调用 + */ + public void syncToDb(OnlineSession onlineSession) + { + Date lastSyncTimestamp = (Date) onlineSession.getAttribute(LAST_SYNC_DB_TIMESTAMP); + if (lastSyncTimestamp != null) + { + boolean needSync = true; + long deltaTime = onlineSession.getLastAccessTime().getTime() - lastSyncTimestamp.getTime(); + if (deltaTime < dbSyncPeriod * 60 * 1000) + { + // 时间差不足 无需同步 + needSync = false; + } + // isGuest = true 访客 + boolean isGuest = onlineSession.getUserId() == null || onlineSession.getUserId() == 0L; + + // session 数据变更了 同步 + if (!isGuest && onlineSession.isAttributeChanged()) + { + needSync = true; + } + + if (!needSync) + { + return; + } + } + // 更新上次同步数据库时间 + onlineSession.setAttribute(LAST_SYNC_DB_TIMESTAMP, onlineSession.getLastAccessTime()); + // 更新完后 重置标识 + if (onlineSession.isAttributeChanged()) + { + onlineSession.resetAttributeChanged(); + } + AsyncManager.me().execute(AsyncFactory.syncSessionToDb(onlineSession)); + } + + /** + * 当会话过期/停止(如用户退出时)属性等会调用 + */ + @Override + protected void doDelete(Session session) + { + OnlineSession onlineSession = (OnlineSession) session; + if (null == onlineSession) + { + return; + } + onlineSession.setStatus(OnlineStatus.off_line); + sysShiroService.deleteSession(onlineSession); + } +} diff --git a/alive-framework/src/main/java/com/ruoyi/framework/shiro/session/OnlineSessionFactory.java b/alive-framework/src/main/java/com/ruoyi/framework/shiro/session/OnlineSessionFactory.java new file mode 100644 index 0000000..9b1e3a2 --- /dev/null +++ b/alive-framework/src/main/java/com/ruoyi/framework/shiro/session/OnlineSessionFactory.java @@ -0,0 +1,43 @@ +package com.ruoyi.framework.shiro.session; + +import javax.servlet.http.HttpServletRequest; +import org.apache.shiro.session.Session; +import org.apache.shiro.session.mgt.SessionContext; +import org.apache.shiro.session.mgt.SessionFactory; +import org.apache.shiro.web.session.mgt.WebSessionContext; +import org.springframework.stereotype.Component; +import com.ruoyi.common.utils.IpUtils; +import com.ruoyi.common.utils.ServletUtils; +import eu.bitwalker.useragentutils.UserAgent; + +/** + * 自定义sessionFactory会话 + * + * @author ruoyi + */ +@Component +public class OnlineSessionFactory implements SessionFactory +{ + @Override + public Session createSession(SessionContext initData) + { + OnlineSession session = new OnlineSession(); + if (initData != null && initData instanceof WebSessionContext) + { + WebSessionContext sessionContext = (WebSessionContext) initData; + HttpServletRequest request = (HttpServletRequest) sessionContext.getServletRequest(); + if (request != null) + { + UserAgent userAgent = UserAgent.parseUserAgentString(ServletUtils.getRequest().getHeader("User-Agent")); + // 获取客户端操作系统 + String os = userAgent.getOperatingSystem().getName(); + // 获取客户端浏览器 + String browser = userAgent.getBrowser().getName(); + session.setHost(IpUtils.getIpAddr(request)); + session.setBrowser(browser); + session.setOs(os); + } + } + return session; + } +} diff --git a/alive-framework/src/main/java/com/ruoyi/framework/shiro/util/AuthorizationUtils.java b/alive-framework/src/main/java/com/ruoyi/framework/shiro/util/AuthorizationUtils.java new file mode 100644 index 0000000..7ea7e6f --- /dev/null +++ b/alive-framework/src/main/java/com/ruoyi/framework/shiro/util/AuthorizationUtils.java @@ -0,0 +1,30 @@ +package com.ruoyi.framework.shiro.util; + +import org.apache.shiro.SecurityUtils; +import org.apache.shiro.mgt.RealmSecurityManager; +import com.ruoyi.framework.shiro.realm.UserRealm; + +/** + * 用户授权信息 + * + * @author ruoyi + */ +public class AuthorizationUtils +{ + /** + * 清理所有用户授权信息缓存 + */ + public static void clearAllCachedAuthorizationInfo() + { + getUserRealm().clearAllCachedAuthorizationInfo(); + } + + /** + * 获取自定义Realm + */ + public static UserRealm getUserRealm() + { + RealmSecurityManager rsm = (RealmSecurityManager) SecurityUtils.getSecurityManager(); + return (UserRealm) rsm.getRealms().iterator().next(); + } +} diff --git a/alive-framework/src/main/java/com/ruoyi/framework/shiro/web/filter/LogoutFilter.java b/alive-framework/src/main/java/com/ruoyi/framework/shiro/web/filter/LogoutFilter.java new file mode 100644 index 0000000..c6dbfa5 --- /dev/null +++ b/alive-framework/src/main/java/com/ruoyi/framework/shiro/web/filter/LogoutFilter.java @@ -0,0 +1,90 @@ +package com.ruoyi.framework.shiro.web.filter; + +import javax.servlet.ServletRequest; +import javax.servlet.ServletResponse; +import org.apache.shiro.session.SessionException; +import org.apache.shiro.subject.Subject; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import com.ruoyi.common.constant.Constants; +import com.ruoyi.common.core.domain.entity.SysUser; +import com.ruoyi.common.utils.MessageUtils; +import com.ruoyi.common.utils.ShiroUtils; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.common.utils.spring.SpringUtils; +import com.ruoyi.framework.manager.AsyncManager; +import com.ruoyi.framework.manager.factory.AsyncFactory; +import com.ruoyi.system.service.ISysUserOnlineService; + +/** + * 退出过滤器 + * + * @author ruoyi + */ +public class LogoutFilter extends org.apache.shiro.web.filter.authc.LogoutFilter +{ + private static final Logger log = LoggerFactory.getLogger(LogoutFilter.class); + + /** + * 退出后重定向的地址 + */ + private String loginUrl; + + public String getLoginUrl() + { + return loginUrl; + } + + public void setLoginUrl(String loginUrl) + { + this.loginUrl = loginUrl; + } + + @Override + protected boolean preHandle(ServletRequest request, ServletResponse response) throws Exception + { + try + { + Subject subject = getSubject(request, response); + String redirectUrl = getRedirectUrl(request, response, subject); + try + { + SysUser user = ShiroUtils.getSysUser(); + if (StringUtils.isNotNull(user)) + { + String loginName = user.getLoginName(); + // 记录用户退出日志 + AsyncManager.me().execute(AsyncFactory.recordLogininfor(loginName, Constants.LOGOUT, MessageUtils.message("user.logout.success"))); + // 清理缓存 + SpringUtils.getBean(ISysUserOnlineService.class).removeUserCache(loginName, ShiroUtils.getSessionId()); + } + // 退出登录 + subject.logout(); + } + catch (SessionException ise) + { + log.error("logout fail.", ise); + } + issueRedirect(request, response, redirectUrl); + } + catch (Exception e) + { + log.error("Encountered session exception during logout. This can generally safely be ignored.", e); + } + return false; + } + + /** + * 退出跳转URL + */ + @Override + protected String getRedirectUrl(ServletRequest request, ServletResponse response, Subject subject) + { + String url = getLoginUrl(); + if (StringUtils.isNotEmpty(url)) + { + return url; + } + return super.getRedirectUrl(request, response, subject); + } +} diff --git a/alive-framework/src/main/java/com/ruoyi/framework/shiro/web/filter/captcha/CaptchaValidateFilter.java b/alive-framework/src/main/java/com/ruoyi/framework/shiro/web/filter/captcha/CaptchaValidateFilter.java new file mode 100644 index 0000000..22dd339 --- /dev/null +++ b/alive-framework/src/main/java/com/ruoyi/framework/shiro/web/filter/captcha/CaptchaValidateFilter.java @@ -0,0 +1,79 @@ +package com.ruoyi.framework.shiro.web.filter.captcha; + +import javax.servlet.ServletRequest; +import javax.servlet.ServletResponse; +import javax.servlet.http.HttpServletRequest; +import org.apache.shiro.web.filter.AccessControlFilter; +import com.google.code.kaptcha.Constants; +import com.ruoyi.common.constant.ShiroConstants; +import com.ruoyi.common.utils.ShiroUtils; +import com.ruoyi.common.utils.StringUtils; + +/** + * 验证码过滤器 + * + * @author ruoyi + */ +public class CaptchaValidateFilter extends AccessControlFilter +{ + /** + * 是否开启验证码 + */ + private boolean captchaEnabled = true; + + /** + * 验证码类型 + */ + private String captchaType = "math"; + + public void setCaptchaEnabled(boolean captchaEnabled) + { + this.captchaEnabled = captchaEnabled; + } + + public void setCaptchaType(String captchaType) + { + this.captchaType = captchaType; + } + + @Override + public boolean onPreHandle(ServletRequest request, ServletResponse response, Object mappedValue) throws Exception + { + request.setAttribute(ShiroConstants.CURRENT_ENABLED, captchaEnabled); + request.setAttribute(ShiroConstants.CURRENT_TYPE, captchaType); + return super.onPreHandle(request, response, mappedValue); + } + + @Override + protected boolean isAccessAllowed(ServletRequest request, ServletResponse response, Object mappedValue) + throws Exception + { + HttpServletRequest httpServletRequest = (HttpServletRequest) request; + // 验证码禁用 或不是表单提交 允许访问 + if (captchaEnabled == false || !"post".equals(httpServletRequest.getMethod().toLowerCase())) + { + return true; + } + return validateResponse(httpServletRequest, httpServletRequest.getParameter(ShiroConstants.CURRENT_VALIDATECODE)); + } + + public boolean validateResponse(HttpServletRequest request, String validateCode) + { + Object obj = ShiroUtils.getSession().getAttribute(Constants.KAPTCHA_SESSION_KEY); + String code = String.valueOf(obj != null ? obj : ""); + // 验证码清除,防止多次使用。 + request.getSession().removeAttribute(Constants.KAPTCHA_SESSION_KEY); + if (StringUtils.isEmpty(validateCode) || !validateCode.equalsIgnoreCase(code)) + { + return false; + } + return true; + } + + @Override + protected boolean onAccessDenied(ServletRequest request, ServletResponse response) throws Exception + { + request.setAttribute(ShiroConstants.CURRENT_CAPTCHA, ShiroConstants.CAPTCHA_ERROR); + return true; + } +} diff --git a/alive-framework/src/main/java/com/ruoyi/framework/shiro/web/filter/kickout/KickoutSessionFilter.java b/alive-framework/src/main/java/com/ruoyi/framework/shiro/web/filter/kickout/KickoutSessionFilter.java new file mode 100644 index 0000000..d92db34 --- /dev/null +++ b/alive-framework/src/main/java/com/ruoyi/framework/shiro/web/filter/kickout/KickoutSessionFilter.java @@ -0,0 +1,176 @@ +package com.ruoyi.framework.shiro.web.filter.kickout; + +import java.io.IOException; +import java.io.Serializable; +import java.util.ArrayDeque; +import java.util.Deque; +import javax.servlet.ServletRequest; +import javax.servlet.ServletResponse; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import org.apache.shiro.cache.Cache; +import org.apache.shiro.cache.CacheManager; +import org.apache.shiro.session.Session; +import org.apache.shiro.session.mgt.DefaultSessionKey; +import org.apache.shiro.session.mgt.SessionManager; +import org.apache.shiro.subject.Subject; +import org.apache.shiro.web.filter.AccessControlFilter; +import org.apache.shiro.web.util.WebUtils; +import com.fasterxml.jackson.databind.ObjectMapper; +import com.ruoyi.common.constant.ShiroConstants; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.domain.entity.SysUser; +import com.ruoyi.common.utils.ServletUtils; +import com.ruoyi.common.utils.ShiroUtils; + +/** + * 登录帐号控制过滤器 + * + * @author ruoyi + */ +public class KickoutSessionFilter extends AccessControlFilter +{ + private final static ObjectMapper objectMapper = new ObjectMapper(); + + /** + * 同一个用户最大会话数 + **/ + private int maxSession = -1; + + /** + * 踢出之前登录的/之后登录的用户 默认false踢出之前登录的用户 + **/ + private Boolean kickoutAfter = false; + + /** + * 踢出后到的地址 + **/ + private String kickoutUrl; + + private SessionManager sessionManager; + private Cache> cache; + + @Override + protected boolean isAccessAllowed(ServletRequest servletRequest, ServletResponse servletResponse, Object o) + throws Exception + { + return false; + } + + @Override + protected boolean onAccessDenied(ServletRequest request, ServletResponse response) throws Exception + { + Subject subject = getSubject(request, response); + if (!subject.isAuthenticated() && !subject.isRemembered() || maxSession == -1) + { + // 如果没有登录或用户最大会话数为-1,直接进行之后的流程 + return true; + } + try + { + Session session = subject.getSession(); + // 当前登录用户 + SysUser user = ShiroUtils.getSysUser(); + String loginName = user.getLoginName(); + Serializable sessionId = session.getId(); + + // 读取缓存用户 没有就存入 + Deque deque = cache.get(loginName); + if (deque == null) + { + // 初始化队列 + deque = new ArrayDeque(); + } + + // 如果队列里没有此sessionId,且用户没有被踢出;放入队列 + if (!deque.contains(sessionId) && session.getAttribute("kickout") == null) + { + // 将sessionId存入队列 + deque.push(sessionId); + // 将用户的sessionId队列缓存 + cache.put(loginName, deque); + } + + // 如果队列里的sessionId数超出最大会话数,开始踢人 + while (deque.size() > maxSession) + { + // 是否踢出后来登录的,默认是false;即后者登录的用户踢出前者登录的用户; + Serializable kickoutSessionId = kickoutAfter ? deque.removeFirst() : deque.removeLast(); + // 踢出后再更新下缓存队列 + cache.put(loginName, deque); + + try + { + // 获取被踢出的sessionId的session对象 + Session kickoutSession = sessionManager.getSession(new DefaultSessionKey(kickoutSessionId)); + if (null != kickoutSession) + { + // 设置会话的kickout属性表示踢出了 + kickoutSession.setAttribute("kickout", true); + } + } + catch (Exception e) + { + // 面对异常,我们选择忽略 + } + } + + // 如果被踢出了,(前者或后者)直接退出,重定向到踢出后的地址 + if (session.getAttribute("kickout") != null && (Boolean) session.getAttribute("kickout") == true) + { + // 退出登录 + subject.logout(); + saveRequest(request); + return isAjaxResponse(request, response); + } + return true; + } + catch (Exception e) + { + return isAjaxResponse(request, response); + } + } + + private boolean isAjaxResponse(ServletRequest request, ServletResponse response) throws IOException + { + HttpServletRequest req = (HttpServletRequest) request; + HttpServletResponse res = (HttpServletResponse) response; + if (ServletUtils.isAjaxRequest(req)) + { + AjaxResult ajaxResult = AjaxResult.error("您已在别处登录,请您修改密码或重新登录"); + ServletUtils.renderString(res, objectMapper.writeValueAsString(ajaxResult)); + } + else + { + WebUtils.issueRedirect(request, response, kickoutUrl); + } + return false; + } + + public void setMaxSession(int maxSession) + { + this.maxSession = maxSession; + } + + public void setKickoutAfter(boolean kickoutAfter) + { + this.kickoutAfter = kickoutAfter; + } + + public void setKickoutUrl(String kickoutUrl) + { + this.kickoutUrl = kickoutUrl; + } + + public void setSessionManager(SessionManager sessionManager) + { + this.sessionManager = sessionManager; + } + + // 设置Cache的key的前缀 + public void setCacheManager(CacheManager cacheManager) + { + // 必须和ehcache缓存配置中的缓存name一致 + this.cache = cacheManager.getCache(ShiroConstants.SYS_USERCACHE); + } +} \ No newline at end of file diff --git a/alive-framework/src/main/java/com/ruoyi/framework/shiro/web/filter/online/OnlineSessionFilter.java b/alive-framework/src/main/java/com/ruoyi/framework/shiro/web/filter/online/OnlineSessionFilter.java new file mode 100644 index 0000000..adf5120 --- /dev/null +++ b/alive-framework/src/main/java/com/ruoyi/framework/shiro/web/filter/online/OnlineSessionFilter.java @@ -0,0 +1,99 @@ +package com.ruoyi.framework.shiro.web.filter.online; + +import java.io.IOException; +import javax.servlet.ServletRequest; +import javax.servlet.ServletResponse; +import org.apache.shiro.session.Session; +import org.apache.shiro.subject.Subject; +import org.apache.shiro.web.filter.AccessControlFilter; +import org.apache.shiro.web.util.WebUtils; +import org.springframework.beans.factory.annotation.Value; +import com.ruoyi.common.constant.ShiroConstants; +import com.ruoyi.common.core.domain.entity.SysUser; +import com.ruoyi.common.enums.OnlineStatus; +import com.ruoyi.common.utils.ShiroUtils; +import com.ruoyi.framework.shiro.session.OnlineSession; +import com.ruoyi.framework.shiro.session.OnlineSessionDAO; + +/** + * 自定义访问控制 + * + * @author ruoyi + */ +public class OnlineSessionFilter extends AccessControlFilter +{ + /** + * 强制退出后重定向的地址 + */ + @Value("${shiro.user.loginUrl}") + private String loginUrl; + + private OnlineSessionDAO onlineSessionDAO; + + /** + * 表示是否允许访问;mappedValue就是[urls]配置中拦截器参数部分,如果允许访问返回true,否则false; + */ + @Override + protected boolean isAccessAllowed(ServletRequest request, ServletResponse response, Object mappedValue) + throws Exception + { + Subject subject = getSubject(request, response); + if (subject == null || subject.getSession() == null) + { + return true; + } + Session session = onlineSessionDAO.readSession(subject.getSession().getId()); + if (session != null && session instanceof OnlineSession) + { + OnlineSession onlineSession = (OnlineSession) session; + request.setAttribute(ShiroConstants.ONLINE_SESSION, onlineSession); + // 把user对象设置进去 + boolean isGuest = onlineSession.getUserId() == null || onlineSession.getUserId() == 0L; + if (isGuest == true) + { + SysUser user = ShiroUtils.getSysUser(); + if (user != null) + { + onlineSession.setUserId(user.getUserId()); + onlineSession.setLoginName(user.getLoginName()); + onlineSession.setAvatar(user.getAvatar()); + onlineSession.setDeptName(user.getDept().getDeptName()); + onlineSession.markAttributeChanged(); + } + } + + if (onlineSession.getStatus() == OnlineStatus.off_line) + { + return false; + } + } + return true; + } + + /** + * 表示当访问拒绝时是否已经处理了;如果返回true表示需要继续处理;如果返回false表示该拦截器实例已经处理了,将直接返回即可。 + */ + @Override + protected boolean onAccessDenied(ServletRequest request, ServletResponse response) throws Exception + { + Subject subject = getSubject(request, response); + if (subject != null) + { + subject.logout(); + } + saveRequestAndRedirectToLogin(request, response); + return false; + } + + // 跳转到登录页 + @Override + protected void redirectToLogin(ServletRequest request, ServletResponse response) throws IOException + { + WebUtils.issueRedirect(request, response, loginUrl); + } + + public void setOnlineSessionDAO(OnlineSessionDAO onlineSessionDAO) + { + this.onlineSessionDAO = onlineSessionDAO; + } +} diff --git a/alive-framework/src/main/java/com/ruoyi/framework/shiro/web/filter/sync/SyncOnlineSessionFilter.java b/alive-framework/src/main/java/com/ruoyi/framework/shiro/web/filter/sync/SyncOnlineSessionFilter.java new file mode 100644 index 0000000..db83cbc --- /dev/null +++ b/alive-framework/src/main/java/com/ruoyi/framework/shiro/web/filter/sync/SyncOnlineSessionFilter.java @@ -0,0 +1,39 @@ +package com.ruoyi.framework.shiro.web.filter.sync; + +import javax.servlet.ServletRequest; +import javax.servlet.ServletResponse; +import org.apache.shiro.web.filter.PathMatchingFilter; +import com.ruoyi.common.constant.ShiroConstants; +import com.ruoyi.framework.shiro.session.OnlineSession; +import com.ruoyi.framework.shiro.session.OnlineSessionDAO; + +/** + * 同步Session数据到Db + * + * @author ruoyi + */ +public class SyncOnlineSessionFilter extends PathMatchingFilter +{ + private OnlineSessionDAO onlineSessionDAO; + + /** + * 同步会话数据到DB 一次请求最多同步一次 防止过多处理 需要放到Shiro过滤器之前 + */ + @Override + protected boolean onPreHandle(ServletRequest request, ServletResponse response, Object mappedValue) throws Exception + { + OnlineSession session = (OnlineSession) request.getAttribute(ShiroConstants.ONLINE_SESSION); + // 如果session stop了 也不同步 + // session停止时间,如果stopTimestamp不为null,则代表已停止 + if (session != null && session.getUserId() != null && session.getStopTimestamp() == null) + { + onlineSessionDAO.syncToDb(session); + } + return true; + } + + public void setOnlineSessionDAO(OnlineSessionDAO onlineSessionDAO) + { + this.onlineSessionDAO = onlineSessionDAO; + } +} diff --git a/alive-framework/src/main/java/com/ruoyi/framework/shiro/web/session/OnlineWebSessionManager.java b/alive-framework/src/main/java/com/ruoyi/framework/shiro/web/session/OnlineWebSessionManager.java new file mode 100644 index 0000000..7ceebad --- /dev/null +++ b/alive-framework/src/main/java/com/ruoyi/framework/shiro/web/session/OnlineWebSessionManager.java @@ -0,0 +1,175 @@ +package com.ruoyi.framework.shiro.web.session; + +import java.util.ArrayList; +import java.util.Collection; +import java.util.Date; +import java.util.List; +import org.apache.commons.lang3.time.DateUtils; +import org.apache.shiro.session.ExpiredSessionException; +import org.apache.shiro.session.InvalidSessionException; +import org.apache.shiro.session.Session; +import org.apache.shiro.session.mgt.DefaultSessionKey; +import org.apache.shiro.session.mgt.SessionKey; +import org.apache.shiro.web.session.mgt.DefaultWebSessionManager; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import com.ruoyi.common.constant.ShiroConstants; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.common.utils.bean.BeanUtils; +import com.ruoyi.common.utils.spring.SpringUtils; +import com.ruoyi.framework.shiro.session.OnlineSession; +import com.ruoyi.system.domain.SysUserOnline; +import com.ruoyi.system.service.ISysUserOnlineService; + +/** + * 主要是在此如果会话的属性修改了 就标识下其修改了 然后方便 OnlineSessionDao同步 + * + * @author ruoyi + */ +public class OnlineWebSessionManager extends DefaultWebSessionManager +{ + private static final Logger log = LoggerFactory.getLogger(OnlineWebSessionManager.class); + + @Override + public void setAttribute(SessionKey sessionKey, Object attributeKey, Object value) throws InvalidSessionException + { + super.setAttribute(sessionKey, attributeKey, value); + if (value != null && needMarkAttributeChanged(attributeKey)) + { + OnlineSession session = getOnlineSession(sessionKey); + session.markAttributeChanged(); + } + } + + private boolean needMarkAttributeChanged(Object attributeKey) + { + if (attributeKey == null) + { + return false; + } + String attributeKeyStr = attributeKey.toString(); + // 优化 flash属性没必要持久化 + if (attributeKeyStr.startsWith("org.springframework")) + { + return false; + } + if (attributeKeyStr.startsWith("javax.servlet")) + { + return false; + } + if (attributeKeyStr.equals(ShiroConstants.CURRENT_USERNAME)) + { + return false; + } + return true; + } + + @Override + public Object removeAttribute(SessionKey sessionKey, Object attributeKey) throws InvalidSessionException + { + Object removed = super.removeAttribute(sessionKey, attributeKey); + if (removed != null) + { + OnlineSession s = getOnlineSession(sessionKey); + s.markAttributeChanged(); + } + + return removed; + } + + public OnlineSession getOnlineSession(SessionKey sessionKey) + { + OnlineSession session = null; + Object obj = doGetSession(sessionKey); + if (StringUtils.isNotNull(obj)) + { + session = new OnlineSession(); + BeanUtils.copyBeanProp(session, obj); + } + return session; + } + + /** + * 验证session是否有效 用于删除过期session + */ + @Override + public void validateSessions() + { + if (log.isInfoEnabled()) + { + log.info("invalidation sessions..."); + } + + int invalidCount = 0; + + int timeout = (int) this.getGlobalSessionTimeout(); + if (timeout < 0) + { + // 永不过期不进行处理 + return; + } + Date expiredDate = DateUtils.addMilliseconds(new Date(), 0 - timeout); + ISysUserOnlineService userOnlineService = SpringUtils.getBean(ISysUserOnlineService.class); + List userOnlineList = userOnlineService.selectOnlineByExpired(expiredDate); + // 批量过期删除 + List needOfflineIdList = new ArrayList(); + for (SysUserOnline userOnline : userOnlineList) + { + try + { + SessionKey key = new DefaultSessionKey(userOnline.getSessionId()); + Session session = retrieveSession(key); + if (session != null) + { + throw new InvalidSessionException(); + } + } + catch (InvalidSessionException e) + { + if (log.isDebugEnabled()) + { + boolean expired = (e instanceof ExpiredSessionException); + String msg = "Invalidated session with id [" + userOnline.getSessionId() + "]" + + (expired ? " (expired)" : " (stopped)"); + log.debug(msg); + } + invalidCount++; + needOfflineIdList.add(userOnline.getSessionId()); + userOnlineService.removeUserCache(userOnline.getLoginName(), userOnline.getSessionId()); + } + + } + if (needOfflineIdList.size() > 0) + { + try + { + userOnlineService.batchDeleteOnline(needOfflineIdList); + } + catch (Exception e) + { + log.error("batch delete db session error.", e); + } + } + + if (log.isInfoEnabled()) + { + String msg = "Finished invalidation session."; + if (invalidCount > 0) + { + msg += " [" + invalidCount + "] sessions were stopped."; + } + else + { + msg += " No sessions were stopped."; + } + log.info(msg); + } + + } + + @Override + protected Collection getActiveSessions() + { + throw new UnsupportedOperationException("getActiveSessions method not supported"); + } +} diff --git a/alive-framework/src/main/java/com/ruoyi/framework/shiro/web/session/SpringSessionValidationScheduler.java b/alive-framework/src/main/java/com/ruoyi/framework/shiro/web/session/SpringSessionValidationScheduler.java new file mode 100644 index 0000000..60174c0 --- /dev/null +++ b/alive-framework/src/main/java/com/ruoyi/framework/shiro/web/session/SpringSessionValidationScheduler.java @@ -0,0 +1,131 @@ +package com.ruoyi.framework.shiro.web.session; + +import java.util.concurrent.ScheduledExecutorService; +import java.util.concurrent.TimeUnit; +import org.apache.shiro.session.mgt.DefaultSessionManager; +import org.apache.shiro.session.mgt.SessionValidationScheduler; +import org.apache.shiro.session.mgt.ValidatingSessionManager; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.beans.factory.annotation.Qualifier; +import org.springframework.beans.factory.annotation.Value; +import org.springframework.context.annotation.Lazy; +import org.springframework.stereotype.Component; +import com.ruoyi.common.utils.Threads; + +/** + * 自定义任务调度器完成 + * + * @author ruoyi + */ +@Component +public class SpringSessionValidationScheduler implements SessionValidationScheduler +{ + private static final Logger log = LoggerFactory.getLogger(SpringSessionValidationScheduler.class); + + public static final long DEFAULT_SESSION_VALIDATION_INTERVAL = DefaultSessionManager.DEFAULT_SESSION_VALIDATION_INTERVAL; + + /** + * 定时器,用于处理超时的挂起请求,也用于连接断开时的重连。 + */ + @Autowired + @Qualifier("scheduledExecutorService") + private ScheduledExecutorService executorService; + + private volatile boolean enabled = false; + + /** + * 会话验证管理器 + */ + @Autowired + @Qualifier("sessionManager") + @Lazy + private ValidatingSessionManager sessionManager; + + // 相隔多久检查一次session的有效性,单位毫秒,默认就是10分钟 + @Value("${shiro.session.validationInterval}") + private long sessionValidationInterval; + + @Override + public boolean isEnabled() + { + return this.enabled; + } + + /** + * Specifies how frequently (in milliseconds) this Scheduler will call the + * {@link org.apache.shiro.session.mgt.ValidatingSessionManager#validateSessions() + * ValidatingSessionManager#validateSessions()} method. + * + *

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + * Unless this method is called, the default value is {@link #DEFAULT_SESSION_VALIDATION_INTERVAL}. + * + * @param sessionValidationInterval + */ + public void setSessionValidationInterval(long sessionValidationInterval) + { + this.sessionValidationInterval = sessionValidationInterval; + } + + /** + * Starts session validation by creating a spring PeriodicTrigger. + */ + @Override + public void enableSessionValidation() + { + + enabled = true; + + if (log.isDebugEnabled()) + { + log.debug("Scheduling session validation job using Spring Scheduler with " + + "session validation interval of [" + sessionValidationInterval + "]ms..."); + } + + try + { + executorService.scheduleAtFixedRate(new Runnable() + { + @Override + public void run() + { + if (enabled) + { + sessionManager.validateSessions(); + } + } + }, 1000, sessionValidationInterval * 60 * 1000, TimeUnit.MILLISECONDS); + + this.enabled = true; + + if (log.isDebugEnabled()) + { + log.debug("Session validation job successfully scheduled with Spring Scheduler."); + } + + } + catch (Exception e) + { + if (log.isErrorEnabled()) + { + log.error("Error starting the Spring Scheduler session validation job. Session validation may not occur.", e); + } + } + } + + @Override + public void disableSessionValidation() + { + if (log.isDebugEnabled()) + { + log.debug("Stopping Spring Scheduler session validation job..."); + } + + if (this.enabled) + { + Threads.shutdownAndAwaitTermination(executorService); + } + this.enabled = false; + } +} diff --git a/alive-framework/src/main/java/com/ruoyi/framework/web/domain/Server.java b/alive-framework/src/main/java/com/ruoyi/framework/web/domain/Server.java new file mode 100644 index 0000000..6a549f8 --- /dev/null +++ b/alive-framework/src/main/java/com/ruoyi/framework/web/domain/Server.java @@ -0,0 +1,241 @@ +package com.ruoyi.framework.web.domain; + +import java.net.UnknownHostException; +import java.util.LinkedList; +import java.util.List; +import java.util.Properties; +import com.ruoyi.common.utils.Arith; +import com.ruoyi.common.utils.IpUtils; +import com.ruoyi.framework.web.domain.server.Cpu; +import com.ruoyi.framework.web.domain.server.Jvm; +import com.ruoyi.framework.web.domain.server.Mem; +import com.ruoyi.framework.web.domain.server.Sys; +import com.ruoyi.framework.web.domain.server.SysFile; +import oshi.SystemInfo; +import oshi.hardware.CentralProcessor; +import oshi.hardware.CentralProcessor.TickType; +import oshi.hardware.GlobalMemory; +import oshi.hardware.HardwareAbstractionLayer; +import oshi.software.os.FileSystem; +import oshi.software.os.OSFileStore; +import oshi.software.os.OperatingSystem; +import oshi.util.Util; + +/** + * 服务器相关信息 + * + * @author ruoyi + */ +public class Server +{ + + private static final int OSHI_WAIT_SECOND = 1000; + + /** + * CPU相关信息 + */ + private Cpu cpu = new Cpu(); + + /** + * 內存相关信息 + */ + private Mem mem = new Mem(); + + /** + * JVM相关信息 + */ + private Jvm jvm = new Jvm(); + + /** + * 服务器相关信息 + */ + private Sys sys = new Sys(); + + /** + * 磁盘相关信息 + */ + private List sysFiles = new LinkedList(); + + public Cpu getCpu() + { + return cpu; + } + + public void setCpu(Cpu cpu) + { + this.cpu = cpu; + } + + public Mem getMem() + { + return mem; + } + + public void setMem(Mem mem) + { + this.mem = mem; + } + + public Jvm getJvm() + { + return jvm; + } + + public void setJvm(Jvm jvm) + { + this.jvm = jvm; + } + + public Sys getSys() + { + return sys; + } + + public void setSys(Sys sys) + { + this.sys = sys; + } + + public List getSysFiles() + { + return sysFiles; + } + + public void setSysFiles(List sysFiles) + { + this.sysFiles = sysFiles; + } + + public void copyTo() throws Exception + { + SystemInfo si = new SystemInfo(); + HardwareAbstractionLayer hal = si.getHardware(); + + setCpuInfo(hal.getProcessor()); + + setMemInfo(hal.getMemory()); + + setSysInfo(); + + setJvmInfo(); + + setSysFiles(si.getOperatingSystem()); + } + + /** + * 设置CPU信息 + */ + private void setCpuInfo(CentralProcessor processor) + { + // CPU信息 + long[] prevTicks = processor.getSystemCpuLoadTicks(); + Util.sleep(OSHI_WAIT_SECOND); + long[] ticks = processor.getSystemCpuLoadTicks(); + long nice = ticks[TickType.NICE.getIndex()] - prevTicks[TickType.NICE.getIndex()]; + long irq = ticks[TickType.IRQ.getIndex()] - prevTicks[TickType.IRQ.getIndex()]; + long softirq = ticks[TickType.SOFTIRQ.getIndex()] - prevTicks[TickType.SOFTIRQ.getIndex()]; + long steal = ticks[TickType.STEAL.getIndex()] - prevTicks[TickType.STEAL.getIndex()]; + long cSys = ticks[TickType.SYSTEM.getIndex()] - prevTicks[TickType.SYSTEM.getIndex()]; + long user = ticks[TickType.USER.getIndex()] - prevTicks[TickType.USER.getIndex()]; + long iowait = ticks[TickType.IOWAIT.getIndex()] - prevTicks[TickType.IOWAIT.getIndex()]; + long idle = ticks[TickType.IDLE.getIndex()] - prevTicks[TickType.IDLE.getIndex()]; + long totalCpu = user + nice + cSys + idle + iowait + irq + softirq + steal; + cpu.setCpuNum(processor.getLogicalProcessorCount()); + cpu.setTotal(totalCpu); + cpu.setSys(cSys); + cpu.setUsed(user); + cpu.setWait(iowait); + cpu.setFree(idle); + } + + /** + * 设置内存信息 + */ + private void setMemInfo(GlobalMemory memory) + { + mem.setTotal(memory.getTotal()); + mem.setUsed(memory.getTotal() - memory.getAvailable()); + mem.setFree(memory.getAvailable()); + } + + /** + * 设置服务器信息 + */ + private void setSysInfo() + { + Properties props = System.getProperties(); + sys.setComputerName(IpUtils.getHostName()); + sys.setComputerIp(IpUtils.getHostIp()); + sys.setOsName(props.getProperty("os.name")); + sys.setOsArch(props.getProperty("os.arch")); + sys.setUserDir(props.getProperty("user.dir")); + } + + /** + * 设置Java虚拟机 + */ + private void setJvmInfo() throws UnknownHostException + { + Properties props = System.getProperties(); + jvm.setTotal(Runtime.getRuntime().totalMemory()); + jvm.setMax(Runtime.getRuntime().maxMemory()); + jvm.setFree(Runtime.getRuntime().freeMemory()); + jvm.setVersion(props.getProperty("java.version")); + jvm.setHome(props.getProperty("java.home")); + } + + /** + * 设置磁盘信息 + */ + private void setSysFiles(OperatingSystem os) + { + FileSystem fileSystem = os.getFileSystem(); + List fsArray = fileSystem.getFileStores(); + for (OSFileStore fs : fsArray) + { + long free = fs.getUsableSpace(); + long total = fs.getTotalSpace(); + long used = total - free; + SysFile sysFile = new SysFile(); + sysFile.setDirName(fs.getMount()); + sysFile.setSysTypeName(fs.getType()); + sysFile.setTypeName(fs.getName()); + sysFile.setTotal(convertFileSize(total)); + sysFile.setFree(convertFileSize(free)); + sysFile.setUsed(convertFileSize(used)); + sysFile.setUsage(Arith.mul(Arith.div(used, total, 4), 100)); + sysFiles.add(sysFile); + } + } + + /** + * 字节转换 + * + * @param size 字节大小 + * @return 转换后值 + */ + public String convertFileSize(long size) + { + long kb = 1024; + long mb = kb * 1024; + long gb = mb * 1024; + if (size >= gb) + { + return String.format("%.1f GB", (float) size / gb); + } + else if (size >= mb) + { + float f = (float) size / mb; + return String.format(f > 100 ? "%.0f MB" : "%.1f MB", f); + } + else if (size >= kb) + { + float f = (float) size / kb; + return String.format(f > 100 ? "%.0f KB" : "%.1f KB", f); + } + else + { + return String.format("%d B", size); + } + } +} diff --git a/alive-framework/src/main/java/com/ruoyi/framework/web/domain/server/Cpu.java b/alive-framework/src/main/java/com/ruoyi/framework/web/domain/server/Cpu.java new file mode 100644 index 0000000..a13a66c --- /dev/null +++ b/alive-framework/src/main/java/com/ruoyi/framework/web/domain/server/Cpu.java @@ -0,0 +1,101 @@ +package com.ruoyi.framework.web.domain.server; + +import com.ruoyi.common.utils.Arith; + +/** + * CPU相关信息 + * + * @author ruoyi + */ +public class Cpu +{ + /** + * 核心数 + */ + private int cpuNum; + + /** + * CPU总的使用率 + */ + private double total; + + /** + * CPU系统使用率 + */ + private double sys; + + /** + * CPU用户使用率 + */ + private double used; + + /** + * CPU当前等待率 + */ + private double wait; + + /** + * CPU当前空闲率 + */ + private double free; + + public int getCpuNum() + { + return cpuNum; + } + + public void setCpuNum(int cpuNum) + { + this.cpuNum = cpuNum; + } + + public double getTotal() + { + return Arith.round(Arith.mul(total, 100), 2); + } + + public void setTotal(double total) + { + this.total = total; + } + + public double getSys() + { + return Arith.round(Arith.mul(sys / total, 100), 2); + } + + public void setSys(double sys) + { + this.sys = sys; + } + + public double getUsed() + { + return Arith.round(Arith.mul(used / total, 100), 2); + } + + public void setUsed(double used) + { + this.used = used; + } + + public double getWait() + { + return Arith.round(Arith.mul(wait / total, 100), 2); + } + + public void setWait(double wait) + { + this.wait = wait; + } + + public double getFree() + { + return Arith.round(Arith.mul(free / total, 100), 2); + } + + public void setFree(double free) + { + this.free = free; + } +} diff --git a/alive-framework/src/main/java/com/ruoyi/framework/web/domain/server/Jvm.java b/alive-framework/src/main/java/com/ruoyi/framework/web/domain/server/Jvm.java new file mode 100644 index 0000000..444b280 --- /dev/null +++ b/alive-framework/src/main/java/com/ruoyi/framework/web/domain/server/Jvm.java @@ -0,0 +1,130 @@ +package com.ruoyi.framework.web.domain.server; + +import java.lang.management.ManagementFactory; +import com.ruoyi.common.utils.Arith; +import com.ruoyi.common.utils.DateUtils; + +/** + * JVM相关信息 + * + * @author ruoyi + */ +public class Jvm +{ + /** + * 当前JVM占用的内存总数(M) + */ + private double total; + + /** + * JVM最大可用内存总数(M) + */ + private double max; + + /** + * JVM空闲内存(M) + */ + private double free; + + /** + * JDK版本 + */ + private String version; + + /** + * JDK路径 + */ + private String home; + + public double getTotal() + { + return Arith.div(total, (1024 * 1024), 2); + } + + public void setTotal(double total) + { + this.total = total; + } + + public double getMax() + { + return Arith.div(max, (1024 * 1024), 2); + } + + public void setMax(double max) + { + this.max = max; + } + + public double getFree() + { + return Arith.div(free, (1024 * 1024), 2); + } + + public void setFree(double free) + { + this.free = free; + } + + public double getUsed() + { + return Arith.div(total - free, (1024 * 1024), 2); + } + + public double getUsage() + { + return Arith.mul(Arith.div(total - free, total, 4), 100); + } + + /** + * 获取JDK名称 + */ + public String getName() + { + return ManagementFactory.getRuntimeMXBean().getVmName(); + } + + public String getVersion() + { + return version; + } + + public void setVersion(String version) + { + this.version = version; + } + + public String getHome() + { + return home; + } + + public void setHome(String home) + { + this.home = home; + } + + /** + * JDK启动时间 + */ + public String getStartTime() + { + return DateUtils.parseDateToStr(DateUtils.YYYY_MM_DD_HH_MM_SS, DateUtils.getServerStartDate()); + } + + /** + * JDK运行时间 + */ + public String getRunTime() + { + return DateUtils.getDatePoor(DateUtils.getNowDate(), DateUtils.getServerStartDate()); + } + + /** + * 运行参数 + */ + public String getInputArgs() + { + return ManagementFactory.getRuntimeMXBean().getInputArguments().toString(); + } +} diff --git a/alive-framework/src/main/java/com/ruoyi/framework/web/domain/server/Mem.java b/alive-framework/src/main/java/com/ruoyi/framework/web/domain/server/Mem.java new file mode 100644 index 0000000..13eec52 --- /dev/null +++ b/alive-framework/src/main/java/com/ruoyi/framework/web/domain/server/Mem.java @@ -0,0 +1,61 @@ +package com.ruoyi.framework.web.domain.server; + +import com.ruoyi.common.utils.Arith; + +/** + * 內存相关信息 + * + * @author ruoyi + */ +public class Mem +{ + /** + * 内存总量 + */ + private double total; + + /** + * 已用内存 + */ + private double used; + + /** + * 剩余内存 + */ + private double free; + + public double getTotal() + { + return Arith.div(total, (1024 * 1024 * 1024), 2); + } + + public void setTotal(long total) + { + this.total = total; + } + + public double getUsed() + { + return Arith.div(used, (1024 * 1024 * 1024), 2); + } + + public void setUsed(long used) + { + this.used = used; + } + + public double getFree() + { + return Arith.div(free, (1024 * 1024 * 1024), 2); + } + + public void setFree(long free) + { + this.free = free; + } + + public double getUsage() + { + return Arith.mul(Arith.div(used, total, 4), 100); + } +} diff --git a/alive-framework/src/main/java/com/ruoyi/framework/web/domain/server/Sys.java b/alive-framework/src/main/java/com/ruoyi/framework/web/domain/server/Sys.java new file mode 100644 index 0000000..45d64d9 --- /dev/null +++ b/alive-framework/src/main/java/com/ruoyi/framework/web/domain/server/Sys.java @@ -0,0 +1,84 @@ +package com.ruoyi.framework.web.domain.server; + +/** + * 系统相关信息 + * + * @author ruoyi + */ +public class Sys +{ + /** + * 服务器名称 + */ + private String computerName; + + /** + * 服务器Ip + */ + private String computerIp; + + /** + * 项目路径 + */ + private String userDir; + + /** + * 操作系统 + */ + private String osName; + + /** + * 系统架构 + */ + private String osArch; + + public String getComputerName() + { + return computerName; + } + + public void setComputerName(String computerName) + { + this.computerName = computerName; + } + + public String getComputerIp() + { + return computerIp; + } + + public void setComputerIp(String computerIp) + { + this.computerIp = computerIp; + } + + public String getUserDir() + { + return userDir; + } + + public void setUserDir(String userDir) + { + this.userDir = userDir; + } + + public String getOsName() + { + return osName; + } + + public void setOsName(String osName) + { + this.osName = osName; + } + + public String getOsArch() + { + return osArch; + } + + public void setOsArch(String osArch) + { + this.osArch = osArch; + } +} diff --git a/alive-framework/src/main/java/com/ruoyi/framework/web/domain/server/SysFile.java b/alive-framework/src/main/java/com/ruoyi/framework/web/domain/server/SysFile.java new file mode 100644 index 0000000..1320cde --- /dev/null +++ b/alive-framework/src/main/java/com/ruoyi/framework/web/domain/server/SysFile.java @@ -0,0 +1,114 @@ +package com.ruoyi.framework.web.domain.server; + +/** + * 系统文件相关信息 + * + * @author ruoyi + */ +public class SysFile +{ + /** + * 盘符路径 + */ + private String dirName; + + /** + * 盘符类型 + */ + private String sysTypeName; + + /** + * 文件类型 + */ + private String typeName; + + /** + * 总大小 + */ + private String total; + + /** + * 剩余大小 + */ + private String free; + + /** + * 已经使用量 + */ + private String used; + + /** + * 资源的使用率 + */ + private double usage; + + public String getDirName() + { + return dirName; + } + + public void setDirName(String dirName) + { + this.dirName = dirName; + } + + public String getSysTypeName() + { + return sysTypeName; + } + + public void setSysTypeName(String sysTypeName) + { + this.sysTypeName = sysTypeName; + } + + public String getTypeName() + { + return typeName; + } + + public void setTypeName(String typeName) + { + this.typeName = typeName; + } + + public String getTotal() + { + return total; + } + + public void setTotal(String total) + { + this.total = total; + } + + public String getFree() + { + return free; + } + + public void setFree(String free) + { + this.free = free; + } + + public String getUsed() + { + return used; + } + + public void setUsed(String used) + { + this.used = used; + } + + public double getUsage() + { + return usage; + } + + public void setUsage(double usage) + { + this.usage = usage; + } +} diff --git a/alive-framework/src/main/java/com/ruoyi/framework/web/exception/GlobalExceptionHandler.java b/alive-framework/src/main/java/com/ruoyi/framework/web/exception/GlobalExceptionHandler.java new file mode 100644 index 0000000..e315906 --- /dev/null +++ b/alive-framework/src/main/java/com/ruoyi/framework/web/exception/GlobalExceptionHandler.java @@ -0,0 +1,116 @@ +package com.ruoyi.framework.web.exception; + +import javax.servlet.http.HttpServletRequest; +import org.apache.shiro.authz.AuthorizationException; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.validation.BindException; +import org.springframework.web.HttpRequestMethodNotSupportedException; +import org.springframework.web.bind.annotation.ExceptionHandler; +import org.springframework.web.bind.annotation.RestControllerAdvice; +import org.springframework.web.servlet.ModelAndView; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.exception.DemoModeException; +import com.ruoyi.common.exception.ServiceException; +import com.ruoyi.common.utils.ServletUtils; +import com.ruoyi.common.utils.security.PermissionUtils; + +/** + * 全局异常处理器 + * + * @author ruoyi + */ +@RestControllerAdvice +public class GlobalExceptionHandler +{ + private static final Logger log = LoggerFactory.getLogger(GlobalExceptionHandler.class); + + /** + * 权限校验异常(ajax请求返回json,redirect请求跳转页面) + */ + @ExceptionHandler(AuthorizationException.class) + public Object handleAuthorizationException(AuthorizationException e, HttpServletRequest request) + { + String requestURI = request.getRequestURI(); + log.error("请求地址'{}',权限校验失败'{}'", requestURI, e.getMessage()); + if (ServletUtils.isAjaxRequest(request)) + { + return AjaxResult.error(PermissionUtils.getMsg(e.getMessage())); + } + else + { + return new ModelAndView("error/unauth"); + } + } + + /** + * 请求方式不支持 + */ + @ExceptionHandler(HttpRequestMethodNotSupportedException.class) + public AjaxResult handleHttpRequestMethodNotSupported(HttpRequestMethodNotSupportedException e, + HttpServletRequest request) + { + String requestURI = request.getRequestURI(); + log.error("请求地址'{}',不支持'{}'请求", requestURI, e.getMethod()); + return AjaxResult.error(e.getMessage()); + } + + /** + * 拦截未知的运行时异常 + */ + @ExceptionHandler(RuntimeException.class) + public AjaxResult handleRuntimeException(RuntimeException e, HttpServletRequest request) + { + String requestURI = request.getRequestURI(); + log.error("请求地址'{}',发生未知异常.", requestURI, e); + return AjaxResult.error(e.getMessage()); + } + + /** + * 系统异常 + */ + @ExceptionHandler(Exception.class) + public AjaxResult handleException(Exception e, HttpServletRequest request) + { + String requestURI = request.getRequestURI(); + log.error("请求地址'{}',发生系统异常.", requestURI, e); + return AjaxResult.error(e.getMessage()); + } + + /** + * 业务异常 + */ + @ExceptionHandler(ServiceException.class) + public Object handleServiceException(ServiceException e, HttpServletRequest request) + { + log.error(e.getMessage(), e); + if (ServletUtils.isAjaxRequest(request)) + { + return AjaxResult.error(e.getMessage()); + } + else + { + return new ModelAndView("error/service", "errorMessage", e.getMessage()); + } + } + + /** + * 自定义验证异常 + */ + @ExceptionHandler(BindException.class) + public AjaxResult handleBindException(BindException e) + { + log.error(e.getMessage(), e); + String message = e.getAllErrors().get(0).getDefaultMessage(); + return AjaxResult.error(message); + } + + /** + * 演示模式异常 + */ + @ExceptionHandler(DemoModeException.class) + public AjaxResult handleDemoModeException(DemoModeException e) + { + return AjaxResult.error("演示模式,不允许操作"); + } +} diff --git a/alive-framework/src/main/java/com/ruoyi/framework/web/service/CacheService.java b/alive-framework/src/main/java/com/ruoyi/framework/web/service/CacheService.java new file mode 100644 index 0000000..a8b037e --- /dev/null +++ b/alive-framework/src/main/java/com/ruoyi/framework/web/service/CacheService.java @@ -0,0 +1,83 @@ +package com.ruoyi.framework.web.service; + +import java.util.Set; +import org.apache.commons.lang3.ArrayUtils; +import org.springframework.stereotype.Service; +import com.ruoyi.common.constant.Constants; +import com.ruoyi.common.utils.CacheUtils; + +/** + * 缓存操作处理 + * + * @author ruoyi + */ +@Service +public class CacheService +{ + /** + * 获取所有缓存名称 + * + * @return 缓存列表 + */ + public String[] getCacheNames() + { + String[] cacheNames = CacheUtils.getCacheNames(); + return ArrayUtils.removeElement(cacheNames, Constants.SYS_AUTH_CACHE); + } + + /** + * 根据缓存名称获取所有键名 + * + * @param cacheName 缓存名称 + * @return 键名列表 + */ + public Set getCacheKeys(String cacheName) + { + return CacheUtils.getCache(cacheName).keys(); + } + + /** + * 根据缓存名称和键名获取内容值 + * + * @param cacheName 缓存名称 + * @param cacheKey 键名 + * @return 键值 + */ + public Object getCacheValue(String cacheName, String cacheKey) + { + return CacheUtils.get(cacheName, cacheKey); + } + + /** + * 根据名称删除缓存信息 + * + * @param cacheName 缓存名称 + */ + public void clearCacheName(String cacheName) + { + CacheUtils.removeAll(cacheName); + } + + /** + * 根据名称和键名删除缓存信息 + * + * @param cacheName 缓存名称 + * @param cacheKey 键名 + */ + public void clearCacheKey(String cacheName, String cacheKey) + { + CacheUtils.remove(cacheName, cacheKey); + } + + /** + * 清理所有缓存 + */ + public void clearAll() + { + String[] cacheNames = getCacheNames(); + for (String cacheName : cacheNames) + { + CacheUtils.removeAll(cacheName); + } + } +} diff --git a/alive-framework/src/main/java/com/ruoyi/framework/web/service/ConfigService.java b/alive-framework/src/main/java/com/ruoyi/framework/web/service/ConfigService.java new file mode 100644 index 0000000..2859588 --- /dev/null +++ b/alive-framework/src/main/java/com/ruoyi/framework/web/service/ConfigService.java @@ -0,0 +1,28 @@ +package com.ruoyi.framework.web.service; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.system.service.ISysConfigService; + +/** + * RuoYi首创 html调用 thymeleaf 实现参数管理 + * + * @author ruoyi + */ +@Service("config") +public class ConfigService +{ + @Autowired + private ISysConfigService configService; + + /** + * 根据键名查询参数配置信息 + * + * @param configKey 参数键名 + * @return 参数键值 + */ + public String getKey(String configKey) + { + return configService.selectConfigByKey(configKey); + } +} diff --git a/alive-framework/src/main/java/com/ruoyi/framework/web/service/DictService.java b/alive-framework/src/main/java/com/ruoyi/framework/web/service/DictService.java new file mode 100644 index 0000000..f485811 --- /dev/null +++ b/alive-framework/src/main/java/com/ruoyi/framework/web/service/DictService.java @@ -0,0 +1,46 @@ +package com.ruoyi.framework.web.service; + +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.common.core.domain.entity.SysDictData; +import com.ruoyi.system.service.ISysDictDataService; +import com.ruoyi.system.service.ISysDictTypeService; + +/** + * RuoYi首创 html调用 thymeleaf 实现字典读取 + * + * @author ruoyi + */ +@Service("dict") +public class DictService +{ + @Autowired + private ISysDictTypeService dictTypeService; + + @Autowired + private ISysDictDataService dictDataService; + + /** + * 根据字典类型查询字典数据信息 + * + * @param dictType 字典类型 + * @return 参数键值 + */ + public List getType(String dictType) + { + return dictTypeService.selectDictDataByType(dictType); + } + + /** + * 根据字典类型和字典键值查询字典数据信息 + * + * @param dictType 字典类型 + * @param dictValue 字典键值 + * @return 字典标签 + */ + public String getLabel(String dictType, String dictValue) + { + return dictDataService.selectDictLabel(dictType, dictValue); + } +} diff --git a/alive-framework/src/main/java/com/ruoyi/framework/web/service/PermissionService.java b/alive-framework/src/main/java/com/ruoyi/framework/web/service/PermissionService.java new file mode 100644 index 0000000..6441807 --- /dev/null +++ b/alive-framework/src/main/java/com/ruoyi/framework/web/service/PermissionService.java @@ -0,0 +1,262 @@ +package com.ruoyi.framework.web.service; + +import java.beans.BeanInfo; +import java.beans.Introspector; +import java.beans.PropertyDescriptor; +import org.apache.shiro.SecurityUtils; +import org.apache.shiro.subject.Subject; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.stereotype.Service; +import com.ruoyi.common.utils.StringUtils; + +/** + * RuoYi首创 js调用 thymeleaf 实现按钮权限可见性 + * + * @author ruoyi + */ +@Service("permission") +public class PermissionService +{ + private static final Logger log = LoggerFactory.getLogger(PermissionService.class); + + /** 没有权限,hidden用于前端隐藏按钮 */ + public static final String NOACCESS = "hidden"; + + private static final String ROLE_DELIMETER = ","; + + private static final String PERMISSION_DELIMETER = ","; + + /** + * 验证用户是否具备某权限,无权限返回hidden用于前端隐藏(如需返回Boolean使用isPermitted) + * + * @param permission 权限字符串 + * @return 用户是否具备某权限 + */ + public String hasPermi(String permission) + { + return isPermitted(permission) ? StringUtils.EMPTY : NOACCESS; + } + + /** + * 验证用户是否不具备某权限,与 hasPermi逻辑相反。无权限返回hidden用于前端隐藏(如需返回Boolean使用isLacksPermitted) + * + * @param permission 权限字符串 + * @return 用户是否不具备某权限 + */ + public String lacksPermi(String permission) + { + return isLacksPermitted(permission) ? StringUtils.EMPTY : NOACCESS; + } + + /** + * 验证用户是否具有以下任意一个权限,无权限返回hidden用于隐藏(如需返回Boolean使用hasAnyPermissions) + * + * @param permissions 以 PERMISSION_NAMES_DELIMETER 为分隔符的权限列表 + * @return 用户是否具有以下任意一个权限 + */ + public String hasAnyPermi(String permissions) + { + return hasAnyPermissions(permissions, PERMISSION_DELIMETER) ? StringUtils.EMPTY : NOACCESS; + } + + /** + * 验证用户是否具备某角色,无权限返回hidden用于隐藏(如需返回Boolean使用isRole) + * + * @param role 角色字符串 + * @return 用户是否具备某角色 + */ + public String hasRole(String role) + { + return isRole(role) ? StringUtils.EMPTY : NOACCESS; + } + + /** + * 验证用户是否不具备某角色,与hasRole逻辑相反。无权限返回hidden用于隐藏(如需返回Boolean使用isLacksRole) + * + * @param role 角色字符串 + * @return 用户是否不具备某角色 + */ + public String lacksRole(String role) + { + return isLacksRole(role) ? StringUtils.EMPTY : NOACCESS; + } + + /** + * 验证用户是否具有以下任意一个角色,无权限返回hidden用于隐藏(如需返回Boolean使用isAnyRoles) + * + * @param roles 以 ROLE_NAMES_DELIMETER 为分隔符的角色列表 + * @return 用户是否具有以下任意一个角色 + */ + public String hasAnyRoles(String roles) + { + return isAnyRoles(roles, ROLE_DELIMETER) ? StringUtils.EMPTY : NOACCESS; + } + + /** + * 验证用户是否认证通过或已记住的用户。 + * + * @return 用户是否认证通过或已记住的用户 + */ + public boolean isUser() + { + Subject subject = SecurityUtils.getSubject(); + return subject != null && subject.getPrincipal() != null; + } + + /** + * 判断用户是否拥有某个权限 + * + * @param permission 权限字符串 + * @return 用户是否具备某权限 + */ + public boolean isPermitted(String permission) + { + return SecurityUtils.getSubject().isPermitted(permission); + } + + /** + * 判断用户是否不具备某权限,与 isPermitted逻辑相反。 + * + * @param permission 权限名称 + * @return 用户是否不具备某权限 + */ + public boolean isLacksPermitted(String permission) + { + return isPermitted(permission) != true; + } + + /** + * 验证用户是否具有以下任意一个权限。 + * + * @param permissions 以 PERMISSION_NAMES_DELIMETER 为分隔符的权限列表 + * @return 用户是否具有以下任意一个权限 + */ + public boolean hasAnyPermissions(String permissions) + { + return hasAnyPermissions(permissions, PERMISSION_DELIMETER); + } + + /** + * 验证用户是否具有以下任意一个权限。 + * + * @param permissions 以 delimeter 为分隔符的权限列表 + * @param delimeter 权限列表分隔符 + * @return 用户是否具有以下任意一个权限 + */ + public boolean hasAnyPermissions(String permissions, String delimeter) + { + Subject subject = SecurityUtils.getSubject(); + + if (subject != null) + { + if (delimeter == null || delimeter.length() == 0) + { + delimeter = PERMISSION_DELIMETER; + } + + for (String permission : permissions.split(delimeter)) + { + if (permission != null && subject.isPermitted(permission.trim()) == true) + { + return true; + } + } + } + + return false; + } + + /** + * 判断用户是否拥有某个角色 + * + * @param role 角色字符串 + * @return 用户是否具备某角色 + */ + public boolean isRole(String role) + { + return SecurityUtils.getSubject().hasRole(role); + } + + /** + * 验证用户是否不具备某角色,与 isRole逻辑相反。 + * + * @param role 角色名称 + * @return 用户是否不具备某角色 + */ + public boolean isLacksRole(String role) + { + return isRole(role) != true; + } + + /** + * 验证用户是否具有以下任意一个角色。 + * + * @param roles 以 ROLE_NAMES_DELIMETER 为分隔符的角色列表 + * @return 用户是否具有以下任意一个角色 + */ + public boolean isAnyRoles(String roles) + { + return isAnyRoles(roles, ROLE_DELIMETER); + } + + /** + * 验证用户是否具有以下任意一个角色。 + * + * @param roles 以 delimeter 为分隔符的角色列表 + * @param delimeter 角色列表分隔符 + * @return 用户是否具有以下任意一个角色 + */ + public boolean isAnyRoles(String roles, String delimeter) + { + Subject subject = SecurityUtils.getSubject(); + if (subject != null) + { + if (delimeter == null || delimeter.length() == 0) + { + delimeter = ROLE_DELIMETER; + } + + for (String role : roles.split(delimeter)) + { + if (subject.hasRole(role.trim()) == true) + { + return true; + } + } + } + + return false; + } + + /** + * 返回用户属性值 + * + * @param property 属性名称 + * @return 用户属性值 + */ + public Object getPrincipalProperty(String property) + { + Subject subject = SecurityUtils.getSubject(); + if (subject != null) + { + Object principal = subject.getPrincipal(); + try + { + BeanInfo bi = Introspector.getBeanInfo(principal.getClass()); + for (PropertyDescriptor pd : bi.getPropertyDescriptors()) + { + if (pd.getName().equals(property) == true) + { + return pd.getReadMethod().invoke(principal, (Object[]) null); + } + } + } + catch (Exception e) + { + log.error("Error reading property [{}] from principal of type [{}]", property, principal.getClass().getName()); + } + } + return null; + } +} diff --git a/alive-framework/target/alive-framework-4.7.2.jar b/alive-framework/target/alive-framework-4.7.2.jar new file mode 100644 index 0000000..a9e5811 Binary files /dev/null and b/alive-framework/target/alive-framework-4.7.2.jar differ diff --git a/alive-framework/target/classes/com/ruoyi/framework/aspectj/DataScopeAspect.class b/alive-framework/target/classes/com/ruoyi/framework/aspectj/DataScopeAspect.class new file mode 100644 index 0000000..69763c2 Binary files /dev/null and b/alive-framework/target/classes/com/ruoyi/framework/aspectj/DataScopeAspect.class differ diff --git a/alive-framework/target/classes/com/ruoyi/framework/aspectj/DataSourceAspect.class b/alive-framework/target/classes/com/ruoyi/framework/aspectj/DataSourceAspect.class new file mode 100644 index 0000000..6ac45a3 Binary files /dev/null and b/alive-framework/target/classes/com/ruoyi/framework/aspectj/DataSourceAspect.class differ diff --git a/alive-framework/target/classes/com/ruoyi/framework/aspectj/LogAspect.class b/alive-framework/target/classes/com/ruoyi/framework/aspectj/LogAspect.class new file mode 100644 index 0000000..559595b Binary files /dev/null and b/alive-framework/target/classes/com/ruoyi/framework/aspectj/LogAspect.class differ diff --git a/alive-framework/target/classes/com/ruoyi/framework/config/ApplicationConfig.class b/alive-framework/target/classes/com/ruoyi/framework/config/ApplicationConfig.class new file mode 100644 index 0000000..521fd82 Binary files /dev/null and b/alive-framework/target/classes/com/ruoyi/framework/config/ApplicationConfig.class differ diff --git a/alive-framework/target/classes/com/ruoyi/framework/config/CaptchaConfig.class b/alive-framework/target/classes/com/ruoyi/framework/config/CaptchaConfig.class new file mode 100644 index 0000000..eb4e93e Binary files /dev/null and b/alive-framework/target/classes/com/ruoyi/framework/config/CaptchaConfig.class differ diff --git a/alive-framework/target/classes/com/ruoyi/framework/config/DruidConfig$1.class b/alive-framework/target/classes/com/ruoyi/framework/config/DruidConfig$1.class new file mode 100644 index 0000000..de27eac Binary files /dev/null and b/alive-framework/target/classes/com/ruoyi/framework/config/DruidConfig$1.class differ diff --git a/alive-framework/target/classes/com/ruoyi/framework/config/DruidConfig.class b/alive-framework/target/classes/com/ruoyi/framework/config/DruidConfig.class new file mode 100644 index 0000000..94ad7a1 Binary files /dev/null and b/alive-framework/target/classes/com/ruoyi/framework/config/DruidConfig.class differ diff --git a/alive-framework/target/classes/com/ruoyi/framework/config/FilterConfig.class b/alive-framework/target/classes/com/ruoyi/framework/config/FilterConfig.class new file mode 100644 index 0000000..79278ee Binary files /dev/null and b/alive-framework/target/classes/com/ruoyi/framework/config/FilterConfig.class differ diff --git a/alive-framework/target/classes/com/ruoyi/framework/config/I18nConfig.class b/alive-framework/target/classes/com/ruoyi/framework/config/I18nConfig.class new file mode 100644 index 0000000..271dd84 Binary files /dev/null and b/alive-framework/target/classes/com/ruoyi/framework/config/I18nConfig.class differ diff --git a/alive-framework/target/classes/com/ruoyi/framework/config/KaptchaTextCreator.class b/alive-framework/target/classes/com/ruoyi/framework/config/KaptchaTextCreator.class new file mode 100644 index 0000000..f2b83cd Binary files /dev/null and b/alive-framework/target/classes/com/ruoyi/framework/config/KaptchaTextCreator.class differ diff --git a/alive-framework/target/classes/com/ruoyi/framework/config/MyBatisConfig.class b/alive-framework/target/classes/com/ruoyi/framework/config/MyBatisConfig.class new file mode 100644 index 0000000..31802aa Binary files /dev/null and b/alive-framework/target/classes/com/ruoyi/framework/config/MyBatisConfig.class differ diff --git a/alive-framework/target/classes/com/ruoyi/framework/config/ResourcesConfig.class b/alive-framework/target/classes/com/ruoyi/framework/config/ResourcesConfig.class new file mode 100644 index 0000000..159d45f Binary files /dev/null and b/alive-framework/target/classes/com/ruoyi/framework/config/ResourcesConfig.class differ diff --git a/alive-framework/target/classes/com/ruoyi/framework/config/ShiroConfig.class b/alive-framework/target/classes/com/ruoyi/framework/config/ShiroConfig.class new file mode 100644 index 0000000..3a0ba53 Binary files /dev/null and b/alive-framework/target/classes/com/ruoyi/framework/config/ShiroConfig.class differ diff --git a/alive-framework/target/classes/com/ruoyi/framework/config/properties/DruidProperties.class b/alive-framework/target/classes/com/ruoyi/framework/config/properties/DruidProperties.class new file mode 100644 index 0000000..d1e8cbe Binary files /dev/null and b/alive-framework/target/classes/com/ruoyi/framework/config/properties/DruidProperties.class differ diff --git a/alive-framework/target/classes/com/ruoyi/framework/datasource/DynamicDataSource.class b/alive-framework/target/classes/com/ruoyi/framework/datasource/DynamicDataSource.class new file mode 100644 index 0000000..70358d3 Binary files /dev/null and b/alive-framework/target/classes/com/ruoyi/framework/datasource/DynamicDataSource.class differ diff --git a/alive-framework/target/classes/com/ruoyi/framework/interceptor/RepeatSubmitInterceptor.class b/alive-framework/target/classes/com/ruoyi/framework/interceptor/RepeatSubmitInterceptor.class new file mode 100644 index 0000000..54cb670 Binary files /dev/null and b/alive-framework/target/classes/com/ruoyi/framework/interceptor/RepeatSubmitInterceptor.class differ diff --git a/alive-framework/target/classes/com/ruoyi/framework/interceptor/impl/SameUrlDataInterceptor.class b/alive-framework/target/classes/com/ruoyi/framework/interceptor/impl/SameUrlDataInterceptor.class new file mode 100644 index 0000000..d738c0f Binary files /dev/null and b/alive-framework/target/classes/com/ruoyi/framework/interceptor/impl/SameUrlDataInterceptor.class differ diff --git a/alive-framework/target/classes/com/ruoyi/framework/manager/AsyncManager.class b/alive-framework/target/classes/com/ruoyi/framework/manager/AsyncManager.class new file mode 100644 index 0000000..0fa509e Binary files /dev/null and b/alive-framework/target/classes/com/ruoyi/framework/manager/AsyncManager.class differ diff --git a/alive-framework/target/classes/com/ruoyi/framework/manager/ShutdownManager.class b/alive-framework/target/classes/com/ruoyi/framework/manager/ShutdownManager.class new file mode 100644 index 0000000..5b5b5e8 Binary files /dev/null and b/alive-framework/target/classes/com/ruoyi/framework/manager/ShutdownManager.class differ diff --git a/alive-framework/target/classes/com/ruoyi/framework/manager/factory/AsyncFactory$1.class b/alive-framework/target/classes/com/ruoyi/framework/manager/factory/AsyncFactory$1.class new file mode 100644 index 0000000..c41109c Binary files /dev/null and b/alive-framework/target/classes/com/ruoyi/framework/manager/factory/AsyncFactory$1.class differ diff --git a/alive-framework/target/classes/com/ruoyi/framework/manager/factory/AsyncFactory$2.class b/alive-framework/target/classes/com/ruoyi/framework/manager/factory/AsyncFactory$2.class new file mode 100644 index 0000000..0e3d813 Binary files /dev/null and b/alive-framework/target/classes/com/ruoyi/framework/manager/factory/AsyncFactory$2.class differ diff --git a/alive-framework/target/classes/com/ruoyi/framework/manager/factory/AsyncFactory$3.class b/alive-framework/target/classes/com/ruoyi/framework/manager/factory/AsyncFactory$3.class new file mode 100644 index 0000000..c0fd054 Binary files /dev/null and b/alive-framework/target/classes/com/ruoyi/framework/manager/factory/AsyncFactory$3.class differ diff --git a/alive-framework/target/classes/com/ruoyi/framework/manager/factory/AsyncFactory.class b/alive-framework/target/classes/com/ruoyi/framework/manager/factory/AsyncFactory.class new file mode 100644 index 0000000..f3788c3 Binary files /dev/null and b/alive-framework/target/classes/com/ruoyi/framework/manager/factory/AsyncFactory.class differ diff --git a/alive-framework/target/classes/com/ruoyi/framework/shiro/realm/UserRealm.class b/alive-framework/target/classes/com/ruoyi/framework/shiro/realm/UserRealm.class new file mode 100644 index 0000000..90336e3 Binary files /dev/null and b/alive-framework/target/classes/com/ruoyi/framework/shiro/realm/UserRealm.class differ diff --git a/alive-framework/target/classes/com/ruoyi/framework/shiro/service/SysLoginService.class b/alive-framework/target/classes/com/ruoyi/framework/shiro/service/SysLoginService.class new file mode 100644 index 0000000..896aaa5 Binary files /dev/null and b/alive-framework/target/classes/com/ruoyi/framework/shiro/service/SysLoginService.class differ diff --git a/alive-framework/target/classes/com/ruoyi/framework/shiro/service/SysPasswordService.class b/alive-framework/target/classes/com/ruoyi/framework/shiro/service/SysPasswordService.class new file mode 100644 index 0000000..6feb4ee Binary files /dev/null and b/alive-framework/target/classes/com/ruoyi/framework/shiro/service/SysPasswordService.class differ diff --git a/alive-framework/target/classes/com/ruoyi/framework/shiro/service/SysRegisterService.class b/alive-framework/target/classes/com/ruoyi/framework/shiro/service/SysRegisterService.class new file mode 100644 index 0000000..c9905a1 Binary files /dev/null and b/alive-framework/target/classes/com/ruoyi/framework/shiro/service/SysRegisterService.class differ diff --git a/alive-framework/target/classes/com/ruoyi/framework/shiro/service/SysShiroService.class b/alive-framework/target/classes/com/ruoyi/framework/shiro/service/SysShiroService.class new file mode 100644 index 0000000..9407e28 Binary files /dev/null and b/alive-framework/target/classes/com/ruoyi/framework/shiro/service/SysShiroService.class differ diff --git a/alive-framework/target/classes/com/ruoyi/framework/shiro/session/OnlineSession.class b/alive-framework/target/classes/com/ruoyi/framework/shiro/session/OnlineSession.class new file mode 100644 index 0000000..9e28445 Binary files /dev/null and b/alive-framework/target/classes/com/ruoyi/framework/shiro/session/OnlineSession.class differ diff --git a/alive-framework/target/classes/com/ruoyi/framework/shiro/session/OnlineSessionDAO.class b/alive-framework/target/classes/com/ruoyi/framework/shiro/session/OnlineSessionDAO.class new file mode 100644 index 0000000..dddd8e5 Binary files /dev/null and b/alive-framework/target/classes/com/ruoyi/framework/shiro/session/OnlineSessionDAO.class differ diff --git a/alive-framework/target/classes/com/ruoyi/framework/shiro/session/OnlineSessionFactory.class b/alive-framework/target/classes/com/ruoyi/framework/shiro/session/OnlineSessionFactory.class new file mode 100644 index 0000000..292f590 Binary files /dev/null and b/alive-framework/target/classes/com/ruoyi/framework/shiro/session/OnlineSessionFactory.class differ diff --git a/alive-framework/target/classes/com/ruoyi/framework/shiro/util/AuthorizationUtils.class b/alive-framework/target/classes/com/ruoyi/framework/shiro/util/AuthorizationUtils.class new file mode 100644 index 0000000..3801161 Binary files /dev/null and b/alive-framework/target/classes/com/ruoyi/framework/shiro/util/AuthorizationUtils.class differ diff --git a/alive-framework/target/classes/com/ruoyi/framework/shiro/web/filter/LogoutFilter.class b/alive-framework/target/classes/com/ruoyi/framework/shiro/web/filter/LogoutFilter.class new file mode 100644 index 0000000..1727866 Binary files /dev/null and b/alive-framework/target/classes/com/ruoyi/framework/shiro/web/filter/LogoutFilter.class differ diff --git a/alive-framework/target/classes/com/ruoyi/framework/shiro/web/filter/captcha/CaptchaValidateFilter.class b/alive-framework/target/classes/com/ruoyi/framework/shiro/web/filter/captcha/CaptchaValidateFilter.class new file mode 100644 index 0000000..6d7d8d6 Binary files /dev/null and b/alive-framework/target/classes/com/ruoyi/framework/shiro/web/filter/captcha/CaptchaValidateFilter.class differ diff --git a/alive-framework/target/classes/com/ruoyi/framework/shiro/web/filter/kickout/KickoutSessionFilter.class b/alive-framework/target/classes/com/ruoyi/framework/shiro/web/filter/kickout/KickoutSessionFilter.class new file mode 100644 index 0000000..6f11a5d Binary files /dev/null and b/alive-framework/target/classes/com/ruoyi/framework/shiro/web/filter/kickout/KickoutSessionFilter.class differ diff --git a/alive-framework/target/classes/com/ruoyi/framework/shiro/web/filter/online/OnlineSessionFilter.class b/alive-framework/target/classes/com/ruoyi/framework/shiro/web/filter/online/OnlineSessionFilter.class new file mode 100644 index 0000000..19b3440 Binary files /dev/null and b/alive-framework/target/classes/com/ruoyi/framework/shiro/web/filter/online/OnlineSessionFilter.class differ diff --git a/alive-framework/target/classes/com/ruoyi/framework/shiro/web/filter/sync/SyncOnlineSessionFilter.class b/alive-framework/target/classes/com/ruoyi/framework/shiro/web/filter/sync/SyncOnlineSessionFilter.class new file mode 100644 index 0000000..a24993f Binary files /dev/null and b/alive-framework/target/classes/com/ruoyi/framework/shiro/web/filter/sync/SyncOnlineSessionFilter.class differ diff --git a/alive-framework/target/classes/com/ruoyi/framework/shiro/web/session/OnlineWebSessionManager.class b/alive-framework/target/classes/com/ruoyi/framework/shiro/web/session/OnlineWebSessionManager.class new file mode 100644 index 0000000..5ddcd92 Binary files /dev/null and b/alive-framework/target/classes/com/ruoyi/framework/shiro/web/session/OnlineWebSessionManager.class differ diff --git a/alive-framework/target/classes/com/ruoyi/framework/shiro/web/session/SpringSessionValidationScheduler$1.class b/alive-framework/target/classes/com/ruoyi/framework/shiro/web/session/SpringSessionValidationScheduler$1.class new file mode 100644 index 0000000..ce12033 Binary files /dev/null and b/alive-framework/target/classes/com/ruoyi/framework/shiro/web/session/SpringSessionValidationScheduler$1.class differ diff --git a/alive-framework/target/classes/com/ruoyi/framework/shiro/web/session/SpringSessionValidationScheduler.class b/alive-framework/target/classes/com/ruoyi/framework/shiro/web/session/SpringSessionValidationScheduler.class new file mode 100644 index 0000000..ec71aca Binary files /dev/null and b/alive-framework/target/classes/com/ruoyi/framework/shiro/web/session/SpringSessionValidationScheduler.class differ diff --git a/alive-framework/target/classes/com/ruoyi/framework/web/domain/Server.class b/alive-framework/target/classes/com/ruoyi/framework/web/domain/Server.class new file mode 100644 index 0000000..b645741 Binary files /dev/null and b/alive-framework/target/classes/com/ruoyi/framework/web/domain/Server.class differ diff --git a/alive-framework/target/classes/com/ruoyi/framework/web/domain/server/Cpu.class b/alive-framework/target/classes/com/ruoyi/framework/web/domain/server/Cpu.class new file mode 100644 index 0000000..a1d1316 Binary files /dev/null and b/alive-framework/target/classes/com/ruoyi/framework/web/domain/server/Cpu.class differ diff --git a/alive-framework/target/classes/com/ruoyi/framework/web/domain/server/Jvm.class b/alive-framework/target/classes/com/ruoyi/framework/web/domain/server/Jvm.class new file mode 100644 index 0000000..c2b1262 Binary files /dev/null and b/alive-framework/target/classes/com/ruoyi/framework/web/domain/server/Jvm.class differ diff --git a/alive-framework/target/classes/com/ruoyi/framework/web/domain/server/Mem.class b/alive-framework/target/classes/com/ruoyi/framework/web/domain/server/Mem.class new file mode 100644 index 0000000..c810f6d Binary files /dev/null and b/alive-framework/target/classes/com/ruoyi/framework/web/domain/server/Mem.class differ diff --git a/alive-framework/target/classes/com/ruoyi/framework/web/domain/server/Sys.class b/alive-framework/target/classes/com/ruoyi/framework/web/domain/server/Sys.class new file mode 100644 index 0000000..45623d0 Binary files /dev/null and b/alive-framework/target/classes/com/ruoyi/framework/web/domain/server/Sys.class differ diff --git a/alive-framework/target/classes/com/ruoyi/framework/web/domain/server/SysFile.class b/alive-framework/target/classes/com/ruoyi/framework/web/domain/server/SysFile.class new file mode 100644 index 0000000..2b70dfc Binary files /dev/null and b/alive-framework/target/classes/com/ruoyi/framework/web/domain/server/SysFile.class differ diff --git a/alive-framework/target/classes/com/ruoyi/framework/web/exception/GlobalExceptionHandler.class b/alive-framework/target/classes/com/ruoyi/framework/web/exception/GlobalExceptionHandler.class new file mode 100644 index 0000000..12ca141 Binary files /dev/null and b/alive-framework/target/classes/com/ruoyi/framework/web/exception/GlobalExceptionHandler.class differ diff --git a/alive-framework/target/classes/com/ruoyi/framework/web/service/CacheService.class b/alive-framework/target/classes/com/ruoyi/framework/web/service/CacheService.class new file mode 100644 index 0000000..0db5d4d Binary files /dev/null and b/alive-framework/target/classes/com/ruoyi/framework/web/service/CacheService.class differ diff --git a/alive-framework/target/classes/com/ruoyi/framework/web/service/ConfigService.class b/alive-framework/target/classes/com/ruoyi/framework/web/service/ConfigService.class new file mode 100644 index 0000000..970d42c Binary files /dev/null and b/alive-framework/target/classes/com/ruoyi/framework/web/service/ConfigService.class differ diff --git a/alive-framework/target/classes/com/ruoyi/framework/web/service/DictService.class b/alive-framework/target/classes/com/ruoyi/framework/web/service/DictService.class new file mode 100644 index 0000000..6696d1f Binary files /dev/null and b/alive-framework/target/classes/com/ruoyi/framework/web/service/DictService.class differ diff --git a/alive-framework/target/classes/com/ruoyi/framework/web/service/PermissionService.class b/alive-framework/target/classes/com/ruoyi/framework/web/service/PermissionService.class new file mode 100644 index 0000000..43659e7 Binary files /dev/null and b/alive-framework/target/classes/com/ruoyi/framework/web/service/PermissionService.class differ diff --git a/alive-framework/target/maven-archiver/pom.properties b/alive-framework/target/maven-archiver/pom.properties new file mode 100644 index 0000000..43b9a89 --- /dev/null +++ b/alive-framework/target/maven-archiver/pom.properties @@ -0,0 +1,5 @@ +#Generated by Maven +#Mon May 27 15:35:31 GMT+08:00 2024 +version=4.7.2 +groupId=com.alive +artifactId=alive-framework diff --git a/alive-framework/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst b/alive-framework/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst new file mode 100644 index 0000000..54a7a09 --- /dev/null +++ b/alive-framework/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst @@ -0,0 +1,51 @@ +com\ruoyi\framework\config\CaptchaConfig.class +com\ruoyi\framework\shiro\service\SysLoginService.class +com\ruoyi\framework\web\service\CacheService.class +com\ruoyi\framework\web\service\PermissionService.class +com\ruoyi\framework\web\domain\server\Cpu.class +com\ruoyi\framework\shiro\util\AuthorizationUtils.class +com\ruoyi\framework\web\domain\server\Mem.class +com\ruoyi\framework\config\MyBatisConfig.class +com\ruoyi\framework\shiro\web\session\SpringSessionValidationScheduler.class +com\ruoyi\framework\config\DruidConfig$1.class +com\ruoyi\framework\config\ShiroConfig.class +com\ruoyi\framework\manager\factory\AsyncFactory$1.class +com\ruoyi\framework\shiro\web\session\SpringSessionValidationScheduler$1.class +com\ruoyi\framework\manager\factory\AsyncFactory.class +com\ruoyi\framework\manager\factory\AsyncFactory$3.class +com\ruoyi\framework\config\FilterConfig.class +com\ruoyi\framework\shiro\realm\UserRealm.class +com\ruoyi\framework\manager\ShutdownManager.class +com\ruoyi\framework\shiro\web\filter\LogoutFilter.class +com\ruoyi\framework\datasource\DynamicDataSource.class +com\ruoyi\framework\shiro\service\SysPasswordService.class +com\ruoyi\framework\shiro\service\SysShiroService.class +com\ruoyi\framework\web\exception\GlobalExceptionHandler.class +com\ruoyi\framework\shiro\web\filter\captcha\CaptchaValidateFilter.class +com\ruoyi\framework\web\service\DictService.class +com\ruoyi\framework\shiro\web\filter\sync\SyncOnlineSessionFilter.class +com\ruoyi\framework\manager\factory\AsyncFactory$2.class +com\ruoyi\framework\config\KaptchaTextCreator.class +com\ruoyi\framework\config\ResourcesConfig.class +com\ruoyi\framework\shiro\service\SysRegisterService.class +com\ruoyi\framework\interceptor\RepeatSubmitInterceptor.class +com\ruoyi\framework\web\domain\server\Jvm.class +com\ruoyi\framework\config\properties\DruidProperties.class +com\ruoyi\framework\aspectj\DataSourceAspect.class +com\ruoyi\framework\aspectj\LogAspect.class +com\ruoyi\framework\shiro\session\OnlineSession.class +com\ruoyi\framework\config\I18nConfig.class +com\ruoyi\framework\shiro\session\OnlineSessionDAO.class +com\ruoyi\framework\web\domain\server\SysFile.class +com\ruoyi\framework\manager\AsyncManager.class +com\ruoyi\framework\web\service\ConfigService.class +com\ruoyi\framework\shiro\session\OnlineSessionFactory.class +com\ruoyi\framework\interceptor\impl\SameUrlDataInterceptor.class +com\ruoyi\framework\shiro\web\filter\kickout\KickoutSessionFilter.class +com\ruoyi\framework\config\DruidConfig.class +com\ruoyi\framework\web\domain\server\Sys.class +com\ruoyi\framework\shiro\web\session\OnlineWebSessionManager.class +com\ruoyi\framework\config\ApplicationConfig.class +com\ruoyi\framework\shiro\web\filter\online\OnlineSessionFilter.class +com\ruoyi\framework\web\domain\Server.class +com\ruoyi\framework\aspectj\DataScopeAspect.class diff --git a/alive-framework/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst b/alive-framework/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst new file mode 100644 index 0000000..833bd39 --- /dev/null +++ b/alive-framework/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst @@ -0,0 +1,46 @@ +E:\alive\alive-admin\alive-framework\src\main\java\com\ruoyi\framework\config\ApplicationConfig.java +E:\alive\alive-admin\alive-framework\src\main\java\com\ruoyi\framework\shiro\web\filter\captcha\CaptchaValidateFilter.java +E:\alive\alive-admin\alive-framework\src\main\java\com\ruoyi\framework\config\I18nConfig.java +E:\alive\alive-admin\alive-framework\src\main\java\com\ruoyi\framework\shiro\service\SysLoginService.java +E:\alive\alive-admin\alive-framework\src\main\java\com\ruoyi\framework\web\service\CacheService.java +E:\alive\alive-admin\alive-framework\src\main\java\com\ruoyi\framework\shiro\web\session\SpringSessionValidationScheduler.java +E:\alive\alive-admin\alive-framework\src\main\java\com\ruoyi\framework\web\exception\GlobalExceptionHandler.java +E:\alive\alive-admin\alive-framework\src\main\java\com\ruoyi\framework\aspectj\DataScopeAspect.java +E:\alive\alive-admin\alive-framework\src\main\java\com\ruoyi\framework\aspectj\DataSourceAspect.java +E:\alive\alive-admin\alive-framework\src\main\java\com\ruoyi\framework\web\domain\server\Mem.java +E:\alive\alive-admin\alive-framework\src\main\java\com\ruoyi\framework\aspectj\LogAspect.java +E:\alive\alive-admin\alive-framework\src\main\java\com\ruoyi\framework\interceptor\RepeatSubmitInterceptor.java +E:\alive\alive-admin\alive-framework\src\main\java\com\ruoyi\framework\shiro\realm\UserRealm.java +E:\alive\alive-admin\alive-framework\src\main\java\com\ruoyi\framework\shiro\session\OnlineSession.java +E:\alive\alive-admin\alive-framework\src\main\java\com\ruoyi\framework\web\domain\server\Sys.java +E:\alive\alive-admin\alive-framework\src\main\java\com\ruoyi\framework\shiro\service\SysShiroService.java +E:\alive\alive-admin\alive-framework\src\main\java\com\ruoyi\framework\shiro\util\AuthorizationUtils.java +E:\alive\alive-admin\alive-framework\src\main\java\com\ruoyi\framework\web\domain\server\Cpu.java +E:\alive\alive-admin\alive-framework\src\main\java\com\ruoyi\framework\config\DruidConfig.java +E:\alive\alive-admin\alive-framework\src\main\java\com\ruoyi\framework\config\ResourcesConfig.java +E:\alive\alive-admin\alive-framework\src\main\java\com\ruoyi\framework\config\ShiroConfig.java +E:\alive\alive-admin\alive-framework\src\main\java\com\ruoyi\framework\web\domain\Server.java +E:\alive\alive-admin\alive-framework\src\main\java\com\ruoyi\framework\shiro\session\OnlineSessionFactory.java +E:\alive\alive-admin\alive-framework\src\main\java\com\ruoyi\framework\config\CaptchaConfig.java +E:\alive\alive-admin\alive-framework\src\main\java\com\ruoyi\framework\shiro\web\filter\LogoutFilter.java +E:\alive\alive-admin\alive-framework\src\main\java\com\ruoyi\framework\manager\ShutdownManager.java +E:\alive\alive-admin\alive-framework\src\main\java\com\ruoyi\framework\shiro\web\filter\online\OnlineSessionFilter.java +E:\alive\alive-admin\alive-framework\src\main\java\com\ruoyi\framework\web\service\DictService.java +E:\alive\alive-admin\alive-framework\src\main\java\com\ruoyi\framework\shiro\web\session\OnlineWebSessionManager.java +E:\alive\alive-admin\alive-framework\src\main\java\com\ruoyi\framework\web\service\ConfigService.java +E:\alive\alive-admin\alive-framework\src\main\java\com\ruoyi\framework\datasource\DynamicDataSource.java +E:\alive\alive-admin\alive-framework\src\main\java\com\ruoyi\framework\shiro\service\SysPasswordService.java +E:\alive\alive-admin\alive-framework\src\main\java\com\ruoyi\framework\web\domain\server\Jvm.java +E:\alive\alive-admin\alive-framework\src\main\java\com\ruoyi\framework\shiro\service\SysRegisterService.java +E:\alive\alive-admin\alive-framework\src\main\java\com\ruoyi\framework\manager\factory\AsyncFactory.java +E:\alive\alive-admin\alive-framework\src\main\java\com\ruoyi\framework\config\properties\DruidProperties.java +E:\alive\alive-admin\alive-framework\src\main\java\com\ruoyi\framework\shiro\session\OnlineSessionDAO.java +E:\alive\alive-admin\alive-framework\src\main\java\com\ruoyi\framework\shiro\web\filter\kickout\KickoutSessionFilter.java +E:\alive\alive-admin\alive-framework\src\main\java\com\ruoyi\framework\config\MyBatisConfig.java +E:\alive\alive-admin\alive-framework\src\main\java\com\ruoyi\framework\web\service\PermissionService.java +E:\alive\alive-admin\alive-framework\src\main\java\com\ruoyi\framework\config\FilterConfig.java +E:\alive\alive-admin\alive-framework\src\main\java\com\ruoyi\framework\interceptor\impl\SameUrlDataInterceptor.java +E:\alive\alive-admin\alive-framework\src\main\java\com\ruoyi\framework\manager\AsyncManager.java +E:\alive\alive-admin\alive-framework\src\main\java\com\ruoyi\framework\config\KaptchaTextCreator.java +E:\alive\alive-admin\alive-framework\src\main\java\com\ruoyi\framework\shiro\web\filter\sync\SyncOnlineSessionFilter.java +E:\alive\alive-admin\alive-framework\src\main\java\com\ruoyi\framework\web\domain\server\SysFile.java diff --git a/alive-generator/pom.xml b/alive-generator/pom.xml new file mode 100644 index 0000000..4872a31 --- /dev/null +++ b/alive-generator/pom.xml @@ -0,0 +1,40 @@ + + + + alive + com.alive + 4.7.2 + + 4.0.0 + + alive-generator + + + generator代码生成 + + + + + + + org.apache.velocity + velocity-engine-core + + + + + com.alive + alive-common + + + + + com.alibaba + druid-spring-boot-starter + + + + + \ No newline at end of file diff --git a/alive-generator/src/main/java/com/ruoyi/generator/config/GenConfig.java b/alive-generator/src/main/java/com/ruoyi/generator/config/GenConfig.java new file mode 100644 index 0000000..cc4cd14 --- /dev/null +++ b/alive-generator/src/main/java/com/ruoyi/generator/config/GenConfig.java @@ -0,0 +1,73 @@ +package com.ruoyi.generator.config; + +import org.springframework.beans.factory.annotation.Value; +import org.springframework.boot.context.properties.ConfigurationProperties; +import org.springframework.context.annotation.PropertySource; +import org.springframework.stereotype.Component; + +/** + * 读取代码生成相关配置 + * + * @author ruoyi + */ +@Component +@ConfigurationProperties(prefix = "gen") +@PropertySource(value = { "classpath:generator.yml" }) +public class GenConfig +{ + /** 作者 */ + public static String author; + + /** 生成包路径 */ + public static String packageName; + + /** 自动去除表前缀,默认是false */ + public static boolean autoRemovePre; + + /** 表前缀(类名不会包含表前缀) */ + public static String tablePrefix; + + public static String getAuthor() + { + return author; + } + + @Value("${author}") + public void setAuthor(String author) + { + GenConfig.author = author; + } + + public static String getPackageName() + { + return packageName; + } + + @Value("${packageName}") + public void setPackageName(String packageName) + { + GenConfig.packageName = packageName; + } + + public static boolean getAutoRemovePre() + { + return autoRemovePre; + } + + @Value("${autoRemovePre}") + public void setAutoRemovePre(boolean autoRemovePre) + { + GenConfig.autoRemovePre = autoRemovePre; + } + + public static String getTablePrefix() + { + return tablePrefix; + } + + @Value("${tablePrefix}") + public void setTablePrefix(String tablePrefix) + { + GenConfig.tablePrefix = tablePrefix; + } +} diff --git a/alive-generator/src/main/java/com/ruoyi/generator/controller/GenController.java b/alive-generator/src/main/java/com/ruoyi/generator/controller/GenController.java new file mode 100644 index 0000000..d482c22 --- /dev/null +++ b/alive-generator/src/main/java/com/ruoyi/generator/controller/GenController.java @@ -0,0 +1,304 @@ +package com.ruoyi.generator.controller; + +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import javax.servlet.http.HttpServletResponse; +import org.apache.commons.io.IOUtils; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.apache.shiro.authz.annotation.RequiresRoles; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; +import com.alibaba.druid.DbType; +import com.alibaba.druid.sql.SQLUtils; +import com.alibaba.druid.sql.ast.SQLStatement; +import com.alibaba.druid.sql.dialect.mysql.ast.statement.MySqlCreateTableStatement; +import com.alibaba.fastjson.JSON; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.domain.CxSelect; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.core.text.Convert; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.common.utils.security.PermissionUtils; +import com.ruoyi.common.utils.sql.SqlUtil; +import com.ruoyi.generator.domain.GenTable; +import com.ruoyi.generator.domain.GenTableColumn; +import com.ruoyi.generator.service.IGenTableColumnService; +import com.ruoyi.generator.service.IGenTableService; + +/** + * 代码生成 操作处理 + * + * @author ruoyi + */ +@Controller +@RequestMapping("/tool/gen") +public class GenController extends BaseController +{ + private String prefix = "tool/gen"; + + @Autowired + private IGenTableService genTableService; + + @Autowired + private IGenTableColumnService genTableColumnService; + + @RequiresPermissions("tool:gen:view") + @GetMapping() + public String gen() + { + return prefix + "/gen"; + } + + /** + * 查询代码生成列表 + */ + @RequiresPermissions("tool:gen:list") + @PostMapping("/list") + @ResponseBody + public TableDataInfo genList(GenTable genTable) + { + startPage(); + List list = genTableService.selectGenTableList(genTable); + return getDataTable(list); + } + + /** + * 查询数据库列表 + */ + @RequiresPermissions("tool:gen:list") + @PostMapping("/db/list") + @ResponseBody + public TableDataInfo dataList(GenTable genTable) + { + startPage(); + List list = genTableService.selectDbTableList(genTable); + return getDataTable(list); + } + + /** + * 查询数据表字段列表 + */ + @RequiresPermissions("tool:gen:list") + @PostMapping("/column/list") + @ResponseBody + public TableDataInfo columnList(GenTableColumn genTableColumn) + { + TableDataInfo dataInfo = new TableDataInfo(); + List list = genTableColumnService.selectGenTableColumnListByTableId(genTableColumn); + dataInfo.setRows(list); + dataInfo.setTotal(list.size()); + return dataInfo; + } + + /** + * 导入表结构 + */ + @RequiresPermissions("tool:gen:list") + @GetMapping("/importTable") + public String importTable() + { + return prefix + "/importTable"; + } + + /** + * 创建表结构 + */ + @GetMapping("/createTable") + public String createTable() + { + return prefix + "/createTable"; + } + + /** + * 导入表结构(保存) + */ + @RequiresPermissions("tool:gen:list") + @Log(title = "代码生成", businessType = BusinessType.IMPORT) + @PostMapping("/importTable") + @ResponseBody + public AjaxResult importTableSave(String tables) + { + String[] tableNames = Convert.toStrArray(tables); + // 查询表信息 + List tableList = genTableService.selectDbTableListByNames(tableNames); + String operName = Convert.toStr(PermissionUtils.getPrincipalProperty("loginName")); + genTableService.importGenTable(tableList, operName); + return AjaxResult.success(); + } + + /** + * 修改代码生成业务 + */ + @RequiresPermissions("tool:gen:edit") + @GetMapping("/edit/{tableId}") + public String edit(@PathVariable("tableId") Long tableId, ModelMap mmap) + { + GenTable table = genTableService.selectGenTableById(tableId); + List genTables = genTableService.selectGenTableAll(); + List cxSelect = new ArrayList(); + for (GenTable genTable : genTables) + { + if (!StringUtils.equals(table.getTableName(), genTable.getTableName())) + { + CxSelect cxTable = new CxSelect(genTable.getTableName(), genTable.getTableName() + ':' + genTable.getTableComment()); + List cxColumns = new ArrayList(); + for (GenTableColumn tableColumn : genTable.getColumns()) + { + cxColumns.add(new CxSelect(tableColumn.getColumnName(), tableColumn.getColumnName() + ':' + tableColumn.getColumnComment())); + } + cxTable.setS(cxColumns); + cxSelect.add(cxTable); + } + } + mmap.put("table", table); + mmap.put("data", JSON.toJSON(cxSelect)); + return prefix + "/edit"; + } + + /** + * 修改保存代码生成业务 + */ + @RequiresPermissions("tool:gen:edit") + @Log(title = "代码生成", businessType = BusinessType.UPDATE) + @PostMapping("/edit") + @ResponseBody + public AjaxResult editSave(@Validated GenTable genTable) + { + genTableService.validateEdit(genTable); + genTableService.updateGenTable(genTable); + return AjaxResult.success(); + } + + @RequiresPermissions("tool:gen:remove") + @Log(title = "代码生成", businessType = BusinessType.DELETE) + @PostMapping("/remove") + @ResponseBody + public AjaxResult remove(String ids) + { + genTableService.deleteGenTableByIds(ids); + return AjaxResult.success(); + } + + @RequiresRoles("admin") + @Log(title = "创建表", businessType = BusinessType.OTHER) + @PostMapping("/createTable") + @ResponseBody + public AjaxResult create(String sql) + { + try + { + SqlUtil.filterKeyword(sql); + List sqlStatements = SQLUtils.parseStatements(sql, DbType.mysql); + List tableNames = new ArrayList<>(); + for (SQLStatement sqlStatement : sqlStatements) + { + if (sqlStatement instanceof MySqlCreateTableStatement) + { + MySqlCreateTableStatement createTableStatement = (MySqlCreateTableStatement) sqlStatement; + if (genTableService.createTable(createTableStatement.toString())) + { + String tableName = createTableStatement.getTableName().replaceAll("`", ""); + tableNames.add(tableName); + } + } + } + List tableList = genTableService.selectDbTableListByNames(tableNames.toArray(new String[tableNames.size()])); + String operName = Convert.toStr(PermissionUtils.getPrincipalProperty("loginName")); + genTableService.importGenTable(tableList, operName); + return AjaxResult.success(); + } + catch (Exception e) + { + logger.error(e.getMessage(), e); + return AjaxResult.error("创建表结构异常[" + e.getMessage() + "]"); + } + } + + /** + * 预览代码 + */ + @RequiresPermissions("tool:gen:preview") + @GetMapping("/preview/{tableId}") + @ResponseBody + public AjaxResult preview(@PathVariable("tableId") Long tableId) throws IOException + { + Map dataMap = genTableService.previewCode(tableId); + return AjaxResult.success(dataMap); + } + + /** + * 生成代码(下载方式) + */ + @RequiresPermissions("tool:gen:code") + @Log(title = "代码生成", businessType = BusinessType.GENCODE) + @GetMapping("/download/{tableName}") + public void download(HttpServletResponse response, @PathVariable("tableName") String tableName) throws IOException + { + byte[] data = genTableService.downloadCode(tableName); + genCode(response, data); + } + + /** + * 生成代码(自定义路径) + */ + @RequiresPermissions("tool:gen:code") + @Log(title = "代码生成", businessType = BusinessType.GENCODE) + @GetMapping("/genCode/{tableName}") + @ResponseBody + public AjaxResult genCode(@PathVariable("tableName") String tableName) + { + genTableService.generatorCode(tableName); + return AjaxResult.success(); + } + + /** + * 同步数据库 + */ + @RequiresPermissions("tool:gen:edit") + @Log(title = "代码生成", businessType = BusinessType.UPDATE) + @GetMapping("/synchDb/{tableName}") + @ResponseBody + public AjaxResult synchDb(@PathVariable("tableName") String tableName) + { + genTableService.synchDb(tableName); + return AjaxResult.success(); + } + + /** + * 批量生成代码 + */ + @RequiresPermissions("tool:gen:code") + @Log(title = "代码生成", businessType = BusinessType.GENCODE) + @GetMapping("/batchGenCode") + @ResponseBody + public void batchGenCode(HttpServletResponse response, String tables) throws IOException + { + String[] tableNames = Convert.toStrArray(tables); + byte[] data = genTableService.downloadCode(tableNames); + genCode(response, data); + } + + /** + * 生成zip文件 + */ + private void genCode(HttpServletResponse response, byte[] data) throws IOException + { + response.reset(); + response.setHeader("Content-Disposition", "attachment; filename=\"ruoyi.zip\""); + response.addHeader("Content-Length", "" + data.length); + response.setContentType("application/octet-stream; charset=UTF-8"); + IOUtils.write(data, response.getOutputStream()); + } +} \ No newline at end of file diff --git a/alive-generator/src/main/java/com/ruoyi/generator/domain/GenTable.java b/alive-generator/src/main/java/com/ruoyi/generator/domain/GenTable.java new file mode 100644 index 0000000..269779c --- /dev/null +++ b/alive-generator/src/main/java/com/ruoyi/generator/domain/GenTable.java @@ -0,0 +1,372 @@ +package com.ruoyi.generator.domain; + +import java.util.List; +import javax.validation.Valid; +import javax.validation.constraints.NotBlank; +import org.apache.commons.lang3.ArrayUtils; +import com.ruoyi.common.constant.GenConstants; +import com.ruoyi.common.core.domain.BaseEntity; +import com.ruoyi.common.utils.StringUtils; + +/** + * 业务表 gen_table + * + * @author ruoyi + */ +public class GenTable extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 编号 */ + private Long tableId; + + /** 表名称 */ + @NotBlank(message = "表名称不能为空") + private String tableName; + + /** 表描述 */ + @NotBlank(message = "表描述不能为空") + private String tableComment; + + /** 关联父表的表名 */ + private String subTableName; + + /** 本表关联父表的外键名 */ + private String subTableFkName; + + /** 实体类名称(首字母大写) */ + @NotBlank(message = "实体类名称不能为空") + private String className; + + /** 使用的模板(crud单表操作 tree树表操作 sub主子表操作) */ + private String tplCategory; + + /** 生成包路径 */ + @NotBlank(message = "生成包路径不能为空") + private String packageName; + + /** 生成模块名 */ + @NotBlank(message = "生成模块名不能为空") + private String moduleName; + + /** 生成业务名 */ + @NotBlank(message = "生成业务名不能为空") + private String businessName; + + /** 生成功能名 */ + @NotBlank(message = "生成功能名不能为空") + private String functionName; + + /** 生成作者 */ + @NotBlank(message = "作者不能为空") + private String functionAuthor; + + /** 生成代码方式(0zip压缩包 1自定义路径) */ + private String genType; + + /** 生成路径(不填默认项目路径) */ + private String genPath; + + /** 主键信息 */ + private GenTableColumn pkColumn; + + /** 子表信息 */ + private GenTable subTable; + + /** 表列信息 */ + @Valid + private List columns; + + /** 其它生成选项 */ + private String options; + + /** 树编码字段 */ + private String treeCode; + + /** 树父编码字段 */ + private String treeParentCode; + + /** 树名称字段 */ + private String treeName; + + /** 上级菜单ID字段 */ + private String parentMenuId; + + /** 上级菜单名称字段 */ + private String parentMenuName; + + public Long getTableId() + { + return tableId; + } + + public void setTableId(Long tableId) + { + this.tableId = tableId; + } + + public String getTableName() + { + return tableName; + } + + public void setTableName(String tableName) + { + this.tableName = tableName; + } + + public String getTableComment() + { + return tableComment; + } + + public void setTableComment(String tableComment) + { + this.tableComment = tableComment; + } + + public String getSubTableName() + { + return subTableName; + } + + public void setSubTableName(String subTableName) + { + this.subTableName = subTableName; + } + + public String getSubTableFkName() + { + return subTableFkName; + } + + public void setSubTableFkName(String subTableFkName) + { + this.subTableFkName = subTableFkName; + } + + public String getClassName() + { + return className; + } + + public void setClassName(String className) + { + this.className = className; + } + + public String getTplCategory() + { + return tplCategory; + } + + public void setTplCategory(String tplCategory) + { + this.tplCategory = tplCategory; + } + + public String getPackageName() + { + return packageName; + } + + public void setPackageName(String packageName) + { + this.packageName = packageName; + } + + public String getModuleName() + { + return moduleName; + } + + public void setModuleName(String moduleName) + { + this.moduleName = moduleName; + } + + public String getBusinessName() + { + return businessName; + } + + public void setBusinessName(String businessName) + { + this.businessName = businessName; + } + + public String getFunctionName() + { + return functionName; + } + + public void setFunctionName(String functionName) + { + this.functionName = functionName; + } + + public String getFunctionAuthor() + { + return functionAuthor; + } + + public void setFunctionAuthor(String functionAuthor) + { + this.functionAuthor = functionAuthor; + } + + public String getGenType() + { + return genType; + } + + public void setGenType(String genType) + { + this.genType = genType; + } + + public String getGenPath() + { + return genPath; + } + + public void setGenPath(String genPath) + { + this.genPath = genPath; + } + + public GenTableColumn getPkColumn() + { + return pkColumn; + } + + public void setPkColumn(GenTableColumn pkColumn) + { + this.pkColumn = pkColumn; + } + + public GenTable getSubTable() + { + return subTable; + } + + public void setSubTable(GenTable subTable) + { + this.subTable = subTable; + } + + public List getColumns() + { + return columns; + } + + public void setColumns(List columns) + { + this.columns = columns; + } + + public String getOptions() + { + return options; + } + + public void setOptions(String options) + { + this.options = options; + } + + public String getTreeCode() + { + return treeCode; + } + + public void setTreeCode(String treeCode) + { + this.treeCode = treeCode; + } + + public String getTreeParentCode() + { + return treeParentCode; + } + + public void setTreeParentCode(String treeParentCode) + { + this.treeParentCode = treeParentCode; + } + + public String getTreeName() + { + return treeName; + } + + public void setTreeName(String treeName) + { + this.treeName = treeName; + } + + public String getParentMenuId() + { + return parentMenuId; + } + + public void setParentMenuId(String parentMenuId) + { + this.parentMenuId = parentMenuId; + } + + public String getParentMenuName() + { + return parentMenuName; + } + + public void setParentMenuName(String parentMenuName) + { + this.parentMenuName = parentMenuName; + } + + public boolean isSub() + { + return isSub(this.tplCategory); + } + + public static boolean isSub(String tplCategory) + { + return tplCategory != null && StringUtils.equals(GenConstants.TPL_SUB, tplCategory); + } + + public boolean isTree() + { + return isTree(this.tplCategory); + } + + public static boolean isTree(String tplCategory) + { + return tplCategory != null && StringUtils.equals(GenConstants.TPL_TREE, tplCategory); + } + + public boolean isCrud() + { + return isCrud(this.tplCategory); + } + + public static boolean isCrud(String tplCategory) + { + return tplCategory != null && StringUtils.equals(GenConstants.TPL_CRUD, tplCategory); + } + + public boolean isSuperColumn(String javaField) + { + return isSuperColumn(this.tplCategory, javaField); + } + + public static boolean isSuperColumn(String tplCategory, String javaField) + { + if (isTree(tplCategory)) + { + return StringUtils.equalsAnyIgnoreCase(javaField, + ArrayUtils.addAll(GenConstants.TREE_ENTITY, GenConstants.BASE_ENTITY)); + } + return StringUtils.equalsAnyIgnoreCase(javaField, GenConstants.BASE_ENTITY); + } +} \ No newline at end of file diff --git a/alive-generator/src/main/java/com/ruoyi/generator/domain/GenTableColumn.java b/alive-generator/src/main/java/com/ruoyi/generator/domain/GenTableColumn.java new file mode 100644 index 0000000..f421da8 --- /dev/null +++ b/alive-generator/src/main/java/com/ruoyi/generator/domain/GenTableColumn.java @@ -0,0 +1,373 @@ +package com.ruoyi.generator.domain; + +import javax.validation.constraints.NotBlank; +import com.ruoyi.common.core.domain.BaseEntity; +import com.ruoyi.common.utils.StringUtils; + +/** + * 代码生成业务字段表 gen_table_column + * + * @author ruoyi + */ +public class GenTableColumn extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 编号 */ + private Long columnId; + + /** 归属表编号 */ + private Long tableId; + + /** 列名称 */ + private String columnName; + + /** 列描述 */ + private String columnComment; + + /** 列类型 */ + private String columnType; + + /** JAVA类型 */ + private String javaType; + + /** JAVA字段名 */ + @NotBlank(message = "Java属性不能为空") + private String javaField; + + /** 是否主键(1是) */ + private String isPk; + + /** 是否自增(1是) */ + private String isIncrement; + + /** 是否必填(1是) */ + private String isRequired; + + /** 是否为插入字段(1是) */ + private String isInsert; + + /** 是否编辑字段(1是) */ + private String isEdit; + + /** 是否列表字段(1是) */ + private String isList; + + /** 是否查询字段(1是) */ + private String isQuery; + + /** 查询方式(EQ等于、NE不等于、GT大于、LT小于、LIKE模糊、BETWEEN范围) */ + private String queryType; + + /** 显示类型(input文本框、textarea文本域、select下拉框、checkbox复选框、radio单选框、datetime日期控件、upload上传控件、summernote富文本控件) */ + private String htmlType; + + /** 字典类型 */ + private String dictType; + + /** 排序 */ + private Integer sort; + + public void setColumnId(Long columnId) + { + this.columnId = columnId; + } + + public Long getColumnId() + { + return columnId; + } + + public void setTableId(Long tableId) + { + this.tableId = tableId; + } + + public Long getTableId() + { + return tableId; + } + + public void setColumnName(String columnName) + { + this.columnName = columnName; + } + + public String getColumnName() + { + return columnName; + } + + public void setColumnComment(String columnComment) + { + this.columnComment = columnComment; + } + + public String getColumnComment() + { + return columnComment; + } + + public void setColumnType(String columnType) + { + this.columnType = columnType; + } + + public String getColumnType() + { + return columnType; + } + + public void setJavaType(String javaType) + { + this.javaType = javaType; + } + + public String getJavaType() + { + return javaType; + } + + public void setJavaField(String javaField) + { + this.javaField = javaField; + } + + public String getJavaField() + { + return javaField; + } + + public String getCapJavaField() + { + return StringUtils.capitalize(javaField); + } + + public void setIsPk(String isPk) + { + this.isPk = isPk; + } + + public String getIsPk() + { + return isPk; + } + + public boolean isPk() + { + return isPk(this.isPk); + } + + public boolean isPk(String isPk) + { + return isPk != null && StringUtils.equals("1", isPk); + } + + public String getIsIncrement() + { + return isIncrement; + } + + public void setIsIncrement(String isIncrement) + { + this.isIncrement = isIncrement; + } + + public boolean isIncrement() + { + return isIncrement(this.isIncrement); + } + + public boolean isIncrement(String isIncrement) + { + return isIncrement != null && StringUtils.equals("1", isIncrement); + } + + public void setIsRequired(String isRequired) + { + this.isRequired = isRequired; + } + + public String getIsRequired() + { + return isRequired; + } + + public boolean isRequired() + { + return isRequired(this.isRequired); + } + + public boolean isRequired(String isRequired) + { + return isRequired != null && StringUtils.equals("1", isRequired); + } + + public void setIsInsert(String isInsert) + { + this.isInsert = isInsert; + } + + public String getIsInsert() + { + return isInsert; + } + + public boolean isInsert() + { + return isInsert(this.isInsert); + } + + public boolean isInsert(String isInsert) + { + return isInsert != null && StringUtils.equals("1", isInsert); + } + + public void setIsEdit(String isEdit) + { + this.isEdit = isEdit; + } + + public String getIsEdit() + { + return isEdit; + } + + public boolean isEdit() + { + return isInsert(this.isEdit); + } + + public boolean isEdit(String isEdit) + { + return isEdit != null && StringUtils.equals("1", isEdit); + } + + public void setIsList(String isList) + { + this.isList = isList; + } + + public String getIsList() + { + return isList; + } + + public boolean isList() + { + return isList(this.isList); + } + + public boolean isList(String isList) + { + return isList != null && StringUtils.equals("1", isList); + } + + public void setIsQuery(String isQuery) + { + this.isQuery = isQuery; + } + + public String getIsQuery() + { + return isQuery; + } + + public boolean isQuery() + { + return isQuery(this.isQuery); + } + + public boolean isQuery(String isQuery) + { + return isQuery != null && StringUtils.equals("1", isQuery); + } + + public void setQueryType(String queryType) + { + this.queryType = queryType; + } + + public String getQueryType() + { + return queryType; + } + + public String getHtmlType() + { + return htmlType; + } + + public void setHtmlType(String htmlType) + { + this.htmlType = htmlType; + } + + public void setDictType(String dictType) + { + this.dictType = dictType; + } + + public String getDictType() + { + return dictType; + } + + public void setSort(Integer sort) + { + this.sort = sort; + } + + public Integer getSort() + { + return sort; + } + + public boolean isSuperColumn() + { + return isSuperColumn(this.javaField); + } + + public static boolean isSuperColumn(String javaField) + { + return StringUtils.equalsAnyIgnoreCase(javaField, + // BaseEntity + "createBy", "createTime", "updateBy", "updateTime", "remark", + // TreeEntity + "parentName", "parentId", "orderNum", "ancestors"); + } + + public boolean isUsableColumn() + { + return isUsableColumn(javaField); + } + + public static boolean isUsableColumn(String javaField) + { + // isSuperColumn()中的名单用于避免生成多余Domain属性,若某些属性在生成页面时需要用到不能忽略,则放在此处白名单 + return StringUtils.equalsAnyIgnoreCase(javaField, "parentId", "orderNum", "remark"); + } + + public String readConverterExp() + { + String remarks = StringUtils.substringBetween(this.columnComment, "(", ")"); + StringBuffer sb = new StringBuffer(); + if (StringUtils.isNotEmpty(remarks)) + { + for (String value : remarks.split(" ")) + { + if (StringUtils.isNotEmpty(value)) + { + Object startStr = value.subSequence(0, 1); + String endStr = value.substring(1); + sb.append("").append(startStr).append("=").append(endStr).append(","); + } + } + return sb.deleteCharAt(sb.length() - 1).toString(); + } + else + { + return this.columnComment; + } + } +} \ No newline at end of file diff --git a/alive-generator/src/main/java/com/ruoyi/generator/mapper/GenTableColumnMapper.java b/alive-generator/src/main/java/com/ruoyi/generator/mapper/GenTableColumnMapper.java new file mode 100644 index 0000000..0b7bdb5 --- /dev/null +++ b/alive-generator/src/main/java/com/ruoyi/generator/mapper/GenTableColumnMapper.java @@ -0,0 +1,60 @@ +package com.ruoyi.generator.mapper; + +import java.util.List; +import com.ruoyi.generator.domain.GenTableColumn; + +/** + * 业务字段 数据层 + * + * @author ruoyi + */ +public interface GenTableColumnMapper +{ + /** + * 根据表名称查询列信息 + * + * @param tableName 表名称 + * @return 列信息 + */ + public List selectDbTableColumnsByName(String tableName); + + /** + * 查询业务字段列表 + * + * @param genTableColumn 业务字段信息 + * @return 业务字段集合 + */ + public List selectGenTableColumnListByTableId(GenTableColumn genTableColumn); + + /** + * 新增业务字段 + * + * @param genTableColumn 业务字段信息 + * @return 结果 + */ + public int insertGenTableColumn(GenTableColumn genTableColumn); + + /** + * 修改业务字段 + * + * @param genTableColumn 业务字段信息 + * @return 结果 + */ + public int updateGenTableColumn(GenTableColumn genTableColumn); + + /** + * 删除业务字段 + * + * @param genTableColumns 列数据 + * @return 结果 + */ + public int deleteGenTableColumns(List genTableColumns); + + /** + * 批量删除业务字段 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteGenTableColumnByIds(Long[] ids); +} diff --git a/alive-generator/src/main/java/com/ruoyi/generator/mapper/GenTableMapper.java b/alive-generator/src/main/java/com/ruoyi/generator/mapper/GenTableMapper.java new file mode 100644 index 0000000..7265d42 --- /dev/null +++ b/alive-generator/src/main/java/com/ruoyi/generator/mapper/GenTableMapper.java @@ -0,0 +1,91 @@ +package com.ruoyi.generator.mapper; + +import java.util.List; +import com.ruoyi.generator.domain.GenTable; + +/** + * 业务 数据层 + * + * @author ruoyi + */ +public interface GenTableMapper +{ + /** + * 查询业务列表 + * + * @param genTable 业务信息 + * @return 业务集合 + */ + public List selectGenTableList(GenTable genTable); + + /** + * 查询据库列表 + * + * @param genTable 业务信息 + * @return 数据库表集合 + */ + public List selectDbTableList(GenTable genTable); + + /** + * 查询据库列表 + * + * @param tableNames 表名称组 + * @return 数据库表集合 + */ + public List selectDbTableListByNames(String[] tableNames); + + /** + * 查询所有表信息 + * + * @return 表信息集合 + */ + public List selectGenTableAll(); + + /** + * 查询表ID业务信息 + * + * @param id 业务ID + * @return 业务信息 + */ + public GenTable selectGenTableById(Long id); + + /** + * 查询表名称业务信息 + * + * @param tableName 表名称 + * @return 业务信息 + */ + public GenTable selectGenTableByName(String tableName); + + /** + * 新增业务 + * + * @param genTable 业务信息 + * @return 结果 + */ + public int insertGenTable(GenTable genTable); + + /** + * 修改业务 + * + * @param genTable 业务信息 + * @return 结果 + */ + public int updateGenTable(GenTable genTable); + + /** + * 批量删除业务 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteGenTableByIds(Long[] ids); + + /** + * 创建表 + * + * @param sql + * @return 结果 + */ + public int createTable(String sql); +} \ No newline at end of file diff --git a/alive-generator/src/main/java/com/ruoyi/generator/service/IGenTableColumnService.java b/alive-generator/src/main/java/com/ruoyi/generator/service/IGenTableColumnService.java new file mode 100644 index 0000000..69a1e21 --- /dev/null +++ b/alive-generator/src/main/java/com/ruoyi/generator/service/IGenTableColumnService.java @@ -0,0 +1,44 @@ +package com.ruoyi.generator.service; + +import java.util.List; +import com.ruoyi.generator.domain.GenTableColumn; + +/** + * 业务字段 服务层 + * + * @author ruoyi + */ +public interface IGenTableColumnService +{ + /** + * 查询业务字段列表 + * + * @param genTableColumn 业务字段信息 + * @return 业务字段集合 + */ + public List selectGenTableColumnListByTableId(GenTableColumn genTableColumn); + + /** + * 新增业务字段 + * + * @param genTableColumn 业务字段信息 + * @return 结果 + */ + public int insertGenTableColumn(GenTableColumn genTableColumn); + + /** + * 修改业务字段 + * + * @param genTableColumn 业务字段信息 + * @return 结果 + */ + public int updateGenTableColumn(GenTableColumn genTableColumn); + + /** + * 删除业务字段信息 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteGenTableColumnByIds(String ids); +} diff --git a/alive-generator/src/main/java/com/ruoyi/generator/service/IGenTableService.java b/alive-generator/src/main/java/com/ruoyi/generator/service/IGenTableService.java new file mode 100644 index 0000000..4af8fea --- /dev/null +++ b/alive-generator/src/main/java/com/ruoyi/generator/service/IGenTableService.java @@ -0,0 +1,129 @@ +package com.ruoyi.generator.service; + +import java.util.List; +import java.util.Map; +import com.ruoyi.generator.domain.GenTable; + +/** + * 业务 服务层 + * + * @author ruoyi + */ +public interface IGenTableService +{ + /** + * 查询业务列表 + * + * @param genTable 业务信息 + * @return 业务集合 + */ + public List selectGenTableList(GenTable genTable); + + /** + * 查询据库列表 + * + * @param genTable 业务信息 + * @return 数据库表集合 + */ + public List selectDbTableList(GenTable genTable); + + /** + * 查询据库列表 + * + * @param tableNames 表名称组 + * @return 数据库表集合 + */ + public List selectDbTableListByNames(String[] tableNames); + + /** + * 查询所有表信息 + * + * @return 表信息集合 + */ + public List selectGenTableAll(); + + /** + * 查询业务信息 + * + * @param id 业务ID + * @return 业务信息 + */ + public GenTable selectGenTableById(Long id); + + /** + * 修改业务 + * + * @param genTable 业务信息 + * @return 结果 + */ + public void updateGenTable(GenTable genTable); + + /** + * 删除业务信息 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public void deleteGenTableByIds(String ids); + + /** + * 创建表 + * + * @param sql 创建表语句 + * @return 结果 + */ + public boolean createTable(String sql); + + /** + * 导入表结构 + * + * @param tableList 导入表列表 + * @param operName 操作人员 + */ + public void importGenTable(List tableList, String operName); + + /** + * 预览代码 + * + * @param tableId 表编号 + * @return 预览数据列表 + */ + public Map previewCode(Long tableId); + + /** + * 生成代码(下载方式) + * + * @param tableName 表名称 + * @return 数据 + */ + public byte[] downloadCode(String tableName); + + /** + * 生成代码(自定义路径) + * + * @param tableName 表名称 + */ + public void generatorCode(String tableName); + + /** + * 同步数据库 + * + * @param tableName 表名称 + */ + public void synchDb(String tableName); + + /** + * 批量生成代码(下载方式) + * + * @param tableNames 表数组 + * @return 数据 + */ + public byte[] downloadCode(String[] tableNames); + + /** + * 修改保存参数校验 + * + * @param genTable 业务信息 + */ + public void validateEdit(GenTable genTable); +} diff --git a/alive-generator/src/main/java/com/ruoyi/generator/service/impl/GenTableColumnServiceImpl.java b/alive-generator/src/main/java/com/ruoyi/generator/service/impl/GenTableColumnServiceImpl.java new file mode 100644 index 0000000..bd65ec2 --- /dev/null +++ b/alive-generator/src/main/java/com/ruoyi/generator/service/impl/GenTableColumnServiceImpl.java @@ -0,0 +1,69 @@ +package com.ruoyi.generator.service.impl; + +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.common.core.text.Convert; +import com.ruoyi.generator.domain.GenTableColumn; +import com.ruoyi.generator.mapper.GenTableColumnMapper; +import com.ruoyi.generator.service.IGenTableColumnService; + +/** + * 业务字段 服务层实现 + * + * @author ruoyi + */ +@Service +public class GenTableColumnServiceImpl implements IGenTableColumnService +{ + @Autowired + private GenTableColumnMapper genTableColumnMapper; + + /** + * 查询业务字段列表 + * + * @param genTableColumn 业务字段信息 + * @return 业务字段集合 + */ + @Override + public List selectGenTableColumnListByTableId(GenTableColumn genTableColumn) + { + return genTableColumnMapper.selectGenTableColumnListByTableId(genTableColumn); + } + + /** + * 新增业务字段 + * + * @param genTableColumn 业务字段信息 + * @return 结果 + */ + @Override + public int insertGenTableColumn(GenTableColumn genTableColumn) + { + return genTableColumnMapper.insertGenTableColumn(genTableColumn); + } + + /** + * 修改业务字段 + * + * @param genTableColumn 业务字段信息 + * @return 结果 + */ + @Override + public int updateGenTableColumn(GenTableColumn genTableColumn) + { + return genTableColumnMapper.updateGenTableColumn(genTableColumn); + } + + /** + * 删除业务字段对象 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + @Override + public int deleteGenTableColumnByIds(String ids) + { + return genTableColumnMapper.deleteGenTableColumnByIds(Convert.toLongArray(ids)); + } +} \ No newline at end of file diff --git a/alive-generator/src/main/java/com/ruoyi/generator/service/impl/GenTableServiceImpl.java b/alive-generator/src/main/java/com/ruoyi/generator/service/impl/GenTableServiceImpl.java new file mode 100644 index 0000000..fca46c2 --- /dev/null +++ b/alive-generator/src/main/java/com/ruoyi/generator/service/impl/GenTableServiceImpl.java @@ -0,0 +1,534 @@ +package com.ruoyi.generator.service.impl; + +import java.io.ByteArrayOutputStream; +import java.io.File; +import java.io.IOException; +import java.io.StringWriter; +import java.util.LinkedHashMap; +import java.util.List; +import java.util.Map; +import java.util.function.Function; +import java.util.stream.Collectors; +import java.util.zip.ZipEntry; +import java.util.zip.ZipOutputStream; +import org.apache.commons.io.FileUtils; +import org.apache.commons.io.IOUtils; +import org.apache.velocity.Template; +import org.apache.velocity.VelocityContext; +import org.apache.velocity.app.Velocity; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; +import com.alibaba.fastjson.JSON; +import com.alibaba.fastjson.JSONObject; +import com.ruoyi.common.constant.Constants; +import com.ruoyi.common.constant.GenConstants; +import com.ruoyi.common.core.text.CharsetKit; +import com.ruoyi.common.core.text.Convert; +import com.ruoyi.common.exception.ServiceException; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.generator.domain.GenTable; +import com.ruoyi.generator.domain.GenTableColumn; +import com.ruoyi.generator.mapper.GenTableColumnMapper; +import com.ruoyi.generator.mapper.GenTableMapper; +import com.ruoyi.generator.service.IGenTableService; +import com.ruoyi.generator.util.GenUtils; +import com.ruoyi.generator.util.VelocityInitializer; +import com.ruoyi.generator.util.VelocityUtils; + +/** + * 业务 服务层实现 + * + * @author ruoyi + */ +@Service +public class GenTableServiceImpl implements IGenTableService +{ + private static final Logger log = LoggerFactory.getLogger(GenTableServiceImpl.class); + + @Autowired + private GenTableMapper genTableMapper; + + @Autowired + private GenTableColumnMapper genTableColumnMapper; + + /** + * 查询业务信息 + * + * @param id 业务ID + * @return 业务信息 + */ + @Override + public GenTable selectGenTableById(Long id) + { + GenTable genTable = genTableMapper.selectGenTableById(id); + setTableFromOptions(genTable); + return genTable; + } + + /** + * 查询业务列表 + * + * @param genTable 业务信息 + * @return 业务集合 + */ + @Override + public List selectGenTableList(GenTable genTable) + { + return genTableMapper.selectGenTableList(genTable); + } + + /** + * 查询据库列表 + * + * @param genTable 业务信息 + * @return 数据库表集合 + */ + @Override + public List selectDbTableList(GenTable genTable) + { + return genTableMapper.selectDbTableList(genTable); + } + + /** + * 查询据库列表 + * + * @param tableNames 表名称组 + * @return 数据库表集合 + */ + @Override + public List selectDbTableListByNames(String[] tableNames) + { + return genTableMapper.selectDbTableListByNames(tableNames); + } + + /** + * 查询所有表信息 + * + * @return 表信息集合 + */ + @Override + public List selectGenTableAll() + { + return genTableMapper.selectGenTableAll(); + } + + /** + * 修改业务 + * + * @param genTable 业务信息 + * @return 结果 + */ + @Override + @Transactional + public void updateGenTable(GenTable genTable) + { + String options = JSON.toJSONString(genTable.getParams()); + genTable.setOptions(options); + int row = genTableMapper.updateGenTable(genTable); + if (row > 0) + { + for (GenTableColumn cenTableColumn : genTable.getColumns()) + { + genTableColumnMapper.updateGenTableColumn(cenTableColumn); + } + } + } + + /** + * 删除业务对象 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + @Override + @Transactional + public void deleteGenTableByIds(String ids) + { + genTableMapper.deleteGenTableByIds(Convert.toLongArray(ids)); + genTableColumnMapper.deleteGenTableColumnByIds(Convert.toLongArray(ids)); + } + + /** + * 创建表 + * + * @param sql 创建表语句 + * @return 结果 + */ + @Override + public boolean createTable(String sql) + { + return genTableMapper.createTable(sql) == 0; + } + + /** + * 导入表结构 + * + * @param tableList 导入表列表 + * @param operName 操作人员 + */ + @Override + @Transactional + public void importGenTable(List tableList, String operName) + { + try + { + for (GenTable table : tableList) + { + String tableName = table.getTableName(); + GenUtils.initTable(table, operName); + int row = genTableMapper.insertGenTable(table); + if (row > 0) + { + // 保存列信息 + List genTableColumns = genTableColumnMapper.selectDbTableColumnsByName(tableName); + for (GenTableColumn column : genTableColumns) + { + GenUtils.initColumnField(column, table); + genTableColumnMapper.insertGenTableColumn(column); + } + } + } + } + catch (Exception e) + { + throw new ServiceException("导入失败:" + e.getMessage()); + } + } + + /** + * 预览代码 + * + * @param tableId 表编号 + * @return 预览数据列表 + */ + @Override + public Map previewCode(Long tableId) + { + Map dataMap = new LinkedHashMap<>(); + // 查询表信息 + GenTable table = genTableMapper.selectGenTableById(tableId); + // 设置主子表信息 + setSubTable(table); + // 设置主键列信息 + setPkColumn(table); + VelocityInitializer.initVelocity(); + + VelocityContext context = VelocityUtils.prepareContext(table); + + // 获取模板列表 + List templates = VelocityUtils.getTemplateList(table.getTplCategory()); + for (String template : templates) + { + // 渲染模板 + StringWriter sw = new StringWriter(); + Template tpl = Velocity.getTemplate(template, Constants.UTF8); + tpl.merge(context, sw); + dataMap.put(template, sw.toString()); + } + return dataMap; + } + + /** + * 生成代码(下载方式) + * + * @param tableName 表名称 + * @return 数据 + */ + @Override + public byte[] downloadCode(String tableName) + { + ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); + ZipOutputStream zip = new ZipOutputStream(outputStream); + generatorCode(tableName, zip); + IOUtils.closeQuietly(zip); + return outputStream.toByteArray(); + } + + /** + * 生成代码(自定义路径) + * + * @param tableName 表名称 + */ + @Override + public void generatorCode(String tableName) + { + // 查询表信息 + GenTable table = genTableMapper.selectGenTableByName(tableName); + // 设置主子表信息 + setSubTable(table); + // 设置主键列信息 + setPkColumn(table); + + VelocityInitializer.initVelocity(); + + VelocityContext context = VelocityUtils.prepareContext(table); + + // 获取模板列表 + List templates = VelocityUtils.getTemplateList(table.getTplCategory()); + for (String template : templates) + { + if (!StringUtils.contains(template, "sql.vm")) + { + // 渲染模板 + StringWriter sw = new StringWriter(); + Template tpl = Velocity.getTemplate(template, Constants.UTF8); + tpl.merge(context, sw); + try + { + String path = getGenPath(table, template); + FileUtils.writeStringToFile(new File(path), sw.toString(), CharsetKit.UTF_8); + } + catch (IOException e) + { + throw new ServiceException("渲染模板失败,表名:" + table.getTableName()); + } + } + } + } + + /** + * 同步数据库 + * + * @param tableName 表名称 + */ + @Override + @Transactional + public void synchDb(String tableName) + { + GenTable table = genTableMapper.selectGenTableByName(tableName); + List tableColumns = table.getColumns(); + Map tableColumnMap = tableColumns.stream().collect(Collectors.toMap(GenTableColumn::getColumnName, Function.identity())); + + List dbTableColumns = genTableColumnMapper.selectDbTableColumnsByName(tableName); + if (StringUtils.isEmpty(dbTableColumns)) + { + throw new ServiceException("同步数据失败,原表结构不存在"); + } + List dbTableColumnNames = dbTableColumns.stream().map(GenTableColumn::getColumnName).collect(Collectors.toList()); + + dbTableColumns.forEach(column -> { + GenUtils.initColumnField(column, table); + if (tableColumnMap.containsKey(column.getColumnName())) + { + GenTableColumn prevColumn = tableColumnMap.get(column.getColumnName()); + column.setColumnId(prevColumn.getColumnId()); + if (column.isList()) + { + // 如果是列表,继续保留查询方式/字典类型选项 + column.setDictType(prevColumn.getDictType()); + column.setQueryType(prevColumn.getQueryType()); + } + if (StringUtils.isNotEmpty(prevColumn.getIsRequired()) && !column.isPk() + && (column.isInsert() || column.isEdit()) + && ((column.isUsableColumn()) || (!column.isSuperColumn()))) + { + // 如果是(新增/修改&非主键/非忽略及父属性),继续保留必填/显示类型选项 + column.setIsRequired(prevColumn.getIsRequired()); + column.setHtmlType(prevColumn.getHtmlType()); + } + genTableColumnMapper.updateGenTableColumn(column); + } + else + { + genTableColumnMapper.insertGenTableColumn(column); + } + }); + + List delColumns = tableColumns.stream().filter(column -> !dbTableColumnNames.contains(column.getColumnName())).collect(Collectors.toList()); + if (StringUtils.isNotEmpty(delColumns)) + { + genTableColumnMapper.deleteGenTableColumns(delColumns); + } + } + + /** + * 批量生成代码(下载方式) + * + * @param tableNames 表数组 + * @return 数据 + */ + @Override + public byte[] downloadCode(String[] tableNames) + { + ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); + ZipOutputStream zip = new ZipOutputStream(outputStream); + for (String tableName : tableNames) + { + generatorCode(tableName, zip); + } + IOUtils.closeQuietly(zip); + return outputStream.toByteArray(); + } + + /** + * 查询表信息并生成代码 + */ + private void generatorCode(String tableName, ZipOutputStream zip) + { + // 查询表信息 + GenTable table = genTableMapper.selectGenTableByName(tableName); + // 设置主子表信息 + setSubTable(table); + // 设置主键列信息 + setPkColumn(table); + + VelocityInitializer.initVelocity(); + + VelocityContext context = VelocityUtils.prepareContext(table); + + // 获取模板列表 + List templates = VelocityUtils.getTemplateList(table.getTplCategory()); + for (String template : templates) + { + // 渲染模板 + StringWriter sw = new StringWriter(); + Template tpl = Velocity.getTemplate(template, Constants.UTF8); + tpl.merge(context, sw); + try + { + // 添加到zip + zip.putNextEntry(new ZipEntry(VelocityUtils.getFileName(template, table))); + IOUtils.write(sw.toString(), zip, Constants.UTF8); + IOUtils.closeQuietly(sw); + zip.flush(); + zip.closeEntry(); + } + catch (IOException e) + { + log.error("渲染模板失败,表名:" + table.getTableName(), e); + } + } + } + + /** + * 修改保存参数校验 + * + * @param genTable 业务信息 + */ + @Override + public void validateEdit(GenTable genTable) + { + if (GenConstants.TPL_TREE.equals(genTable.getTplCategory())) + { + String options = JSON.toJSONString(genTable.getParams()); + JSONObject paramsObj = JSONObject.parseObject(options); + if (StringUtils.isEmpty(paramsObj.getString(GenConstants.TREE_CODE))) + { + throw new ServiceException("树编码字段不能为空"); + } + else if (StringUtils.isEmpty(paramsObj.getString(GenConstants.TREE_PARENT_CODE))) + { + throw new ServiceException("树父编码字段不能为空"); + } + else if (StringUtils.isEmpty(paramsObj.getString(GenConstants.TREE_NAME))) + { + throw new ServiceException("树名称字段不能为空"); + } + } + else if (GenConstants.TPL_SUB.equals(genTable.getTplCategory())) + { + if (StringUtils.isEmpty(genTable.getSubTableName())) + { + throw new ServiceException("关联子表的表名不能为空"); + } + else if (StringUtils.isEmpty(genTable.getSubTableFkName())) + { + throw new ServiceException("子表关联的外键名不能为空"); + } + } + } + + /** + * 设置主键列信息 + * + * @param table 业务表信息 + */ + public void setPkColumn(GenTable table) + { + for (GenTableColumn column : table.getColumns()) + { + if (column.isPk()) + { + table.setPkColumn(column); + break; + } + } + if (StringUtils.isNull(table.getPkColumn())) + { + table.setPkColumn(table.getColumns().get(0)); + } + if (GenConstants.TPL_SUB.equals(table.getTplCategory())) + { + for (GenTableColumn column : table.getSubTable().getColumns()) + { + if (column.isPk()) + { + table.getSubTable().setPkColumn(column); + break; + } + } + if (StringUtils.isNull(table.getSubTable().getPkColumn())) + { + table.getSubTable().setPkColumn(table.getSubTable().getColumns().get(0)); + } + } + } + + /** + * 设置主子表信息 + * + * @param table 业务表信息 + */ + public void setSubTable(GenTable table) + { + String subTableName = table.getSubTableName(); + if (StringUtils.isNotEmpty(subTableName)) + { + table.setSubTable(genTableMapper.selectGenTableByName(subTableName)); + } + } + + /** + * 设置代码生成其他选项值 + * + * @param genTable 设置后的生成对象 + */ + public void setTableFromOptions(GenTable genTable) + { + JSONObject paramsObj = JSONObject.parseObject(genTable.getOptions()); + if (StringUtils.isNotNull(paramsObj)) + { + String treeCode = paramsObj.getString(GenConstants.TREE_CODE); + String treeParentCode = paramsObj.getString(GenConstants.TREE_PARENT_CODE); + String treeName = paramsObj.getString(GenConstants.TREE_NAME); + String parentMenuId = paramsObj.getString(GenConstants.PARENT_MENU_ID); + String parentMenuName = paramsObj.getString(GenConstants.PARENT_MENU_NAME); + + genTable.setTreeCode(treeCode); + genTable.setTreeParentCode(treeParentCode); + genTable.setTreeName(treeName); + genTable.setParentMenuId(parentMenuId); + genTable.setParentMenuName(parentMenuName); + } + } + + /** + * 获取代码生成地址 + * + * @param table 业务表信息 + * @param template 模板文件路径 + * @return 生成地址 + */ + public static String getGenPath(GenTable table, String template) + { + String genPath = table.getGenPath(); + if (StringUtils.equals(genPath, "/")) + { + return System.getProperty("user.dir") + File.separator + "src" + File.separator + VelocityUtils.getFileName(template, table); + } + return genPath + File.separator + VelocityUtils.getFileName(template, table); + } +} \ No newline at end of file diff --git a/alive-generator/src/main/java/com/ruoyi/generator/util/GenUtils.java b/alive-generator/src/main/java/com/ruoyi/generator/util/GenUtils.java new file mode 100644 index 0000000..e0d53bf --- /dev/null +++ b/alive-generator/src/main/java/com/ruoyi/generator/util/GenUtils.java @@ -0,0 +1,252 @@ +package com.ruoyi.generator.util; + +import java.util.Arrays; +import org.apache.commons.lang3.RegExUtils; +import com.ruoyi.common.constant.GenConstants; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.generator.config.GenConfig; +import com.ruoyi.generator.domain.GenTable; +import com.ruoyi.generator.domain.GenTableColumn; + +/** + * 代码生成器 工具类 + * + * @author ruoyi + */ +public class GenUtils +{ + /** + * 初始化表信息 + */ + public static void initTable(GenTable genTable, String operName) + { + genTable.setClassName(convertClassName(genTable.getTableName())); + genTable.setPackageName(GenConfig.getPackageName()); + genTable.setModuleName(getModuleName(GenConfig.getPackageName())); + genTable.setBusinessName(getBusinessName(genTable.getTableName())); + genTable.setFunctionName(replaceText(genTable.getTableComment())); + genTable.setFunctionAuthor(GenConfig.getAuthor()); + genTable.setCreateBy(operName); + } + + /** + * 初始化列属性字段 + */ + public static void initColumnField(GenTableColumn column, GenTable table) + { + String dataType = getDbType(column.getColumnType()); + String columnName = column.getColumnName(); + column.setTableId(table.getTableId()); + column.setCreateBy(table.getCreateBy()); + // 设置java字段名 + column.setJavaField(StringUtils.toCamelCase(columnName)); + // 设置默认类型 + column.setJavaType(GenConstants.TYPE_STRING); + column.setQueryType(GenConstants.QUERY_EQ); + + if (arraysContains(GenConstants.COLUMNTYPE_STR, dataType) || arraysContains(GenConstants.COLUMNTYPE_TEXT, dataType)) + { + // 字符串长度超过500设置为文本域 + Integer columnLength = getColumnLength(column.getColumnType()); + String htmlType = columnLength >= 500 || arraysContains(GenConstants.COLUMNTYPE_TEXT, dataType) ? GenConstants.HTML_TEXTAREA : GenConstants.HTML_INPUT; + column.setHtmlType(htmlType); + } + else if (arraysContains(GenConstants.COLUMNTYPE_TIME, dataType)) + { + column.setJavaType(GenConstants.TYPE_DATE); + column.setHtmlType(GenConstants.HTML_DATETIME); + } + else if (arraysContains(GenConstants.COLUMNTYPE_NUMBER, dataType)) + { + column.setHtmlType(GenConstants.HTML_INPUT); + + // 如果是浮点型 统一用BigDecimal + String[] str = StringUtils.split(StringUtils.substringBetween(column.getColumnType(), "(", ")"), ","); + if (str != null && str.length == 2 && Integer.parseInt(str[1]) > 0) + { + column.setJavaType(GenConstants.TYPE_BIGDECIMAL); + } + // 如果是整形 + else if (str != null && str.length == 1 && Integer.parseInt(str[0]) <= 10) + { + column.setJavaType(GenConstants.TYPE_INTEGER); + } + // 长整形 + else + { + column.setJavaType(GenConstants.TYPE_INTEGER); + } + } + + // 插入字段(默认所有字段都需要插入) + column.setIsInsert(GenConstants.REQUIRE); + + // 编辑字段 + if (!arraysContains(GenConstants.COLUMNNAME_NOT_EDIT, columnName) && !column.isPk()) + { + column.setIsEdit(GenConstants.REQUIRE); + } + // 列表字段 + if (!arraysContains(GenConstants.COLUMNNAME_NOT_LIST, columnName) && !column.isPk()) + { + column.setIsList(GenConstants.REQUIRE); + } + // 查询字段 + if (!arraysContains(GenConstants.COLUMNNAME_NOT_QUERY, columnName) && !column.isPk()) + { + column.setIsQuery(GenConstants.REQUIRE); + } + + // 查询字段类型 + if (StringUtils.endsWithIgnoreCase(columnName, "name")) + { + column.setQueryType(GenConstants.QUERY_LIKE); + } + // 状态字段设置单选框 + if (StringUtils.endsWithIgnoreCase(columnName, "status")) + { + column.setHtmlType(GenConstants.HTML_RADIO); + } + // 类型&性别字段设置下拉框 + else if (StringUtils.endsWithIgnoreCase(columnName, "type") + || StringUtils.endsWithIgnoreCase(columnName, "sex")) + { + column.setHtmlType(GenConstants.HTML_SELECT); + } + // 文件字段设置上传控件 + else if (StringUtils.endsWithIgnoreCase(columnName, "file")) + { + column.setHtmlType(GenConstants.HTML_UPLOAD); + } + // 内容字段设置富文本控件 + else if (StringUtils.endsWithIgnoreCase(columnName, "content")) + { + column.setHtmlType(GenConstants.HTML_SUMMERNOTE); + } + } + + /** + * 校验数组是否包含指定值 + * + * @param arr 数组 + * @param targetValue 值 + * @return 是否包含 + */ + public static boolean arraysContains(String[] arr, String targetValue) + { + return Arrays.asList(arr).contains(targetValue); + } + + /** + * 获取模块名 + * + * @param packageName 包名 + * @return 模块名 + */ + public static String getModuleName(String packageName) + { + int lastIndex = packageName.lastIndexOf("."); + int nameLength = packageName.length(); + return StringUtils.substring(packageName, lastIndex + 1, nameLength); + } + + /** + * 获取业务名 + * + * @param tableName 表名 + * @return 业务名 + */ + public static String getBusinessName(String tableName) + { + int lastIndex = tableName.lastIndexOf("_"); + int nameLength = tableName.length(); + return StringUtils.substring(tableName, lastIndex + 1, nameLength); + } + + /** + * 表名转换成Java类名 + * + * @param tableName 表名称 + * @return 类名 + */ + public static String convertClassName(String tableName) + { + boolean autoRemovePre = GenConfig.getAutoRemovePre(); + String tablePrefix = GenConfig.getTablePrefix(); + if (autoRemovePre && StringUtils.isNotEmpty(tablePrefix)) + { + String[] searchList = StringUtils.split(tablePrefix, ","); + tableName = replaceFirst(tableName, searchList); + } + return StringUtils.convertToCamelCase(tableName); + } + + /** + * 批量替换前缀 + * + * @param replacementm 替换值 + * @param searchList 替换列表 + * @return + */ + public static String replaceFirst(String replacementm, String[] searchList) + { + String text = replacementm; + for (String searchString : searchList) + { + if (replacementm.startsWith(searchString)) + { + text = replacementm.replaceFirst(searchString, ""); + break; + } + } + return text; + } + + /** + * 关键字替换 + * + * @param text 需要被替换的名字 + * @return 替换后的名字 + */ + public static String replaceText(String text) + { + return RegExUtils.replaceAll(text, "(?:表|若依)", ""); + } + + /** + * 获取数据库类型字段 + * + * @param columnType 列类型 + * @return 截取后的列类型 + */ + public static String getDbType(String columnType) + { + if (StringUtils.indexOf(columnType, "(") > 0) + { + return StringUtils.substringBefore(columnType, "("); + } + else + { + return columnType; + } + } + + /** + * 获取字段长度 + * + * @param columnType 列类型 + * @return 截取后的列类型 + */ + public static Integer getColumnLength(String columnType) + { + if (StringUtils.indexOf(columnType, "(") > 0) + { + String length = StringUtils.substringBetween(columnType, "(", ")"); + return Integer.valueOf(length); + } + else + { + return 0; + } + } +} diff --git a/alive-generator/src/main/java/com/ruoyi/generator/util/VelocityInitializer.java b/alive-generator/src/main/java/com/ruoyi/generator/util/VelocityInitializer.java new file mode 100644 index 0000000..9f69403 --- /dev/null +++ b/alive-generator/src/main/java/com/ruoyi/generator/util/VelocityInitializer.java @@ -0,0 +1,34 @@ +package com.ruoyi.generator.util; + +import java.util.Properties; +import org.apache.velocity.app.Velocity; +import com.ruoyi.common.constant.Constants; + +/** + * VelocityEngine工厂 + * + * @author ruoyi + */ +public class VelocityInitializer +{ + /** + * 初始化vm方法 + */ + public static void initVelocity() + { + Properties p = new Properties(); + try + { + // 加载classpath目录下的vm文件 + p.setProperty("resource.loader.file.class", "org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader"); + // 定义字符集 + p.setProperty(Velocity.INPUT_ENCODING, Constants.UTF8); + // 初始化Velocity引擎,指定配置Properties + Velocity.init(p); + } + catch (Exception e) + { + throw new RuntimeException(e); + } + } +} diff --git a/alive-generator/src/main/java/com/ruoyi/generator/util/VelocityUtils.java b/alive-generator/src/main/java/com/ruoyi/generator/util/VelocityUtils.java new file mode 100644 index 0000000..0c7c3f6 --- /dev/null +++ b/alive-generator/src/main/java/com/ruoyi/generator/util/VelocityUtils.java @@ -0,0 +1,387 @@ +package com.ruoyi.generator.util; + +import java.util.ArrayList; +import java.util.HashSet; +import java.util.List; +import org.apache.velocity.VelocityContext; +import com.alibaba.fastjson.JSONObject; +import com.ruoyi.common.constant.GenConstants; +import com.ruoyi.common.utils.DateUtils; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.generator.config.GenConfig; +import com.ruoyi.generator.domain.GenTable; +import com.ruoyi.generator.domain.GenTableColumn; + +public class VelocityUtils +{ + /** 项目空间路径 */ + private static final String PROJECT_PATH = "main/java"; + + /** mybatis空间路径 */ + private static final String MYBATIS_PATH = "main/resources/mapper"; + + /** html空间路径 */ + private static final String TEMPLATES_PATH = "main/resources/templates"; + + /** 默认上级菜单,系统工具 */ + private static final String DEFAULT_PARENT_MENU_ID = "3"; + + /** + * 设置模板变量信息 + * + * @return 模板列表 + */ + public static VelocityContext prepareContext(GenTable genTable) + { + String moduleName = genTable.getModuleName(); + String businessName = genTable.getBusinessName(); + String packageName = genTable.getPackageName(); + String tplCategory = genTable.getTplCategory(); + String functionName = genTable.getFunctionName(); + + VelocityContext velocityContext = new VelocityContext(); + velocityContext.put("tplCategory", genTable.getTplCategory()); + velocityContext.put("tableName", genTable.getTableName()); + velocityContext.put("functionName", StringUtils.isNotEmpty(functionName) ? functionName : "【】"); + velocityContext.put("ClassName", genTable.getClassName()); + velocityContext.put("className", StringUtils.uncapitalize(genTable.getClassName())); + velocityContext.put("moduleName", genTable.getModuleName()); + velocityContext.put("businessName", genTable.getBusinessName()); + velocityContext.put("basePackage", getPackagePrefix(packageName)); + velocityContext.put("packageName", packageName); + velocityContext.put("author", genTable.getFunctionAuthor()); + velocityContext.put("datetime", DateUtils.getDate()); + velocityContext.put("pkColumn", genTable.getPkColumn()); + velocityContext.put("importList", getImportList(genTable)); + velocityContext.put("permissionPrefix", getPermissionPrefix(moduleName, businessName)); + velocityContext.put("columns", genTable.getColumns()); + velocityContext.put("table", genTable); + setMenuVelocityContext(velocityContext, genTable); + if (GenConstants.TPL_TREE.equals(tplCategory)) + { + setTreeVelocityContext(velocityContext, genTable); + } + if (GenConstants.TPL_SUB.equals(tplCategory)) + { + setSubVelocityContext(velocityContext, genTable); + } + return velocityContext; + } + + public static void setMenuVelocityContext(VelocityContext context, GenTable genTable) + { + String options = genTable.getOptions(); + JSONObject paramsObj = JSONObject.parseObject(options); + String parentMenuId = getParentMenuId(paramsObj); + context.put("parentMenuId", parentMenuId); + } + + public static void setTreeVelocityContext(VelocityContext context, GenTable genTable) + { + String options = genTable.getOptions(); + JSONObject paramsObj = JSONObject.parseObject(options); + String treeCode = getTreecode(paramsObj); + String treeParentCode = getTreeParentCode(paramsObj); + String treeName = getTreeName(paramsObj); + + context.put("treeCode", treeCode); + context.put("treeParentCode", treeParentCode); + context.put("treeName", treeName); + context.put("expandColumn", getExpandColumn(genTable)); + if (paramsObj.containsKey(GenConstants.TREE_PARENT_CODE)) + { + context.put("tree_parent_code", paramsObj.getString(GenConstants.TREE_PARENT_CODE)); + } + if (paramsObj.containsKey(GenConstants.TREE_NAME)) + { + context.put("tree_name", paramsObj.getString(GenConstants.TREE_NAME)); + } + } + + public static void setSubVelocityContext(VelocityContext context, GenTable genTable) + { + GenTable subTable = genTable.getSubTable(); + String subTableName = genTable.getSubTableName(); + String subTableFkName = genTable.getSubTableFkName(); + String subClassName = genTable.getSubTable().getClassName(); + String subTableFkClassName = StringUtils.convertToCamelCase(subTableFkName); + + context.put("subTable", subTable); + context.put("subTableName", subTableName); + context.put("subTableFkName", subTableFkName); + context.put("subTableFkClassName", subTableFkClassName); + context.put("subTableFkclassName", StringUtils.uncapitalize(subTableFkClassName)); + context.put("subClassName", subClassName); + context.put("subclassName", StringUtils.uncapitalize(subClassName)); + context.put("subImportList", getImportList(genTable.getSubTable())); + } + + /** + * 获取模板信息 + * + * @return 模板列表 + */ + public static List getTemplateList(String tplCategory) + { + List templates = new ArrayList(); + templates.add("vm/java/domain.java.vm"); + templates.add("vm/java/mapper.java.vm"); + //templates.add("vm/java/service.java.vm"); + templates.add("vm/java/serviceImpl.java.vm"); + templates.add("vm/java/controller.java.vm"); + templates.add("vm/xml/mapper.xml.vm"); + if (GenConstants.TPL_CRUD.equals(tplCategory)) + { + templates.add("vm/html/list.html.vm"); + } + else if (GenConstants.TPL_TREE.equals(tplCategory)) + { + templates.add("vm/html/tree.html.vm"); + templates.add("vm/html/list-tree.html.vm"); + } + else if (GenConstants.TPL_SUB.equals(tplCategory)) + { + templates.add("vm/html/list.html.vm"); + templates.add("vm/java/sub-domain.java.vm"); + } + templates.add("vm/html/add.html.vm"); + templates.add("vm/html/edit.html.vm"); + templates.add("vm/sql/sql.vm"); + return templates; + } + + /** + * 获取文件名 + */ + public static String getFileName(String template, GenTable genTable) + { + // 文件名称 + String fileName = ""; + // 包路径 + String packageName = genTable.getPackageName(); + // 模块名 + String moduleName = genTable.getModuleName(); + // 大写类名 + String className = genTable.getClassName(); + // 业务名称 + String businessName = genTable.getBusinessName(); + String str = className.substring(0,1).toLowerCase(); + String javaPath = PROJECT_PATH + "/" + StringUtils.replace(packageName, ".", "/"); + String mybatisPath = MYBATIS_PATH + "/" + moduleName; + + String htmlPath = TEMPLATES_PATH + "/" + moduleName + "/" + str+className.substring(1,className.length()); + + + + if (template.contains("domain.java.vm")) + { + fileName = StringUtils.format("{}/domain/{}.java", javaPath, className); + } + if (template.contains("sub-domain.java.vm") && StringUtils.equals(GenConstants.TPL_SUB, genTable.getTplCategory())) + { + fileName = StringUtils.format("{}/domain/{}.java", javaPath, genTable.getSubTable().getClassName()); + } + else if (template.contains("mapper.java.vm")) + { + fileName = StringUtils.format("{}/mapper/{}Mapper.java", javaPath, className); + } + /*else if (template.contains("service.java.vm")) + { + fileName = StringUtils.format("{}/service/{}Service.java", javaPath, className); + }*/ + else if (template.contains("serviceImpl.java.vm")) + { + fileName = StringUtils.format("{}/service/impl/{}Service.java", javaPath, className); + } + else if (template.contains("controller.java.vm")) + { + fileName = StringUtils.format("{}/controller/{}Controller.java", javaPath, className); + } + else if (template.contains("mapper.xml.vm")) + { + fileName = StringUtils.format("{}/{}Mapper.xml", mybatisPath, className); + } + else if (template.contains("list.html.vm")) + { + fileName = StringUtils.format("{}/{}List.html", htmlPath, str+className.substring(1,className.length())); + } + else if (template.contains("list-tree.html.vm")) + { + fileName = StringUtils.format("{}/{}ListTree.html", htmlPath, str+className.substring(1,className.length())); + } + else if (template.contains("tree.html.vm")) + { + fileName = StringUtils.format("{}/{}Tree.html",htmlPath, str+className.substring(1,className.length())); + } + else if (template.contains("add.html.vm")) + { + fileName = StringUtils.format("{}/{}Add.html",htmlPath, str+className.substring(1,className.length())); + } + else if (template.contains("edit.html.vm")) + { + fileName = StringUtils.format("{}/{}Edit.html", htmlPath,str+className.substring(1,className.length())); + } + else if (template.contains("sql.vm")) + { + fileName = str+className.substring(1,className.length()) + "Menu.sql"; + } + return fileName; + } + + /** + * 获取项目文件路径 + * + * @return 路径 + */ + public static String getProjectPath() + { + String packageName = GenConfig.getPackageName(); + StringBuffer projectPath = new StringBuffer(); + projectPath.append("main/java/"); + projectPath.append(packageName.replace(".", "/")); + projectPath.append("/"); + return projectPath.toString(); + } + + /** + * 获取包前缀 + * + * @param packageName 包名称 + * @return 包前缀名称 + */ + public static String getPackagePrefix(String packageName) + { + int lastIndex = packageName.lastIndexOf("."); + return StringUtils.substring(packageName, 0, lastIndex); + } + + /** + * 根据列类型获取导入包 + * + * @param genTable 业务表对象 + * @return 返回需要导入的包列表 + */ + public static HashSet getImportList(GenTable genTable) + { + List columns = genTable.getColumns(); + GenTable subGenTable = genTable.getSubTable(); + HashSet importList = new HashSet(); + if (StringUtils.isNotNull(subGenTable)) + { + importList.add("java.util.List"); + } + for (GenTableColumn column : columns) + { + if (!column.isSuperColumn() && GenConstants.TYPE_DATE.equals(column.getJavaType())) + { + importList.add("java.util.Date"); + importList.add("com.fasterxml.jackson.annotation.JsonFormat"); + } + else if (!column.isSuperColumn() && GenConstants.TYPE_BIGDECIMAL.equals(column.getJavaType())) + { + importList.add("java.math.BigDecimal"); + } + } + return importList; + } + + /** + * 获取权限前缀 + * + * @param moduleName 模块名称 + * @param businessName 业务名称 + * @return 返回权限前缀 + */ + public static String getPermissionPrefix(String moduleName, String businessName) + { + return StringUtils.format("{}:{}", moduleName, businessName); + } + + /** + * 获取上级菜单ID字段 + * + * @param paramsObj 生成其他选项 + * @return 上级菜单ID字段 + */ + public static String getParentMenuId(JSONObject paramsObj) + { + if (StringUtils.isNotEmpty(paramsObj) && paramsObj.containsKey(GenConstants.PARENT_MENU_ID) + && StringUtils.isNotEmpty(paramsObj.getString(GenConstants.PARENT_MENU_ID))) + { + return paramsObj.getString(GenConstants.PARENT_MENU_ID); + } + return DEFAULT_PARENT_MENU_ID; + } + + /** + * 获取树编码 + * + * @param paramsObj 生成其他选项 + * @return 树编码 + */ + public static String getTreecode(JSONObject paramsObj) + { + if (paramsObj.containsKey(GenConstants.TREE_CODE)) + { + return StringUtils.toCamelCase(paramsObj.getString(GenConstants.TREE_CODE)); + } + return StringUtils.EMPTY; + } + + /** + * 获取树父编码 + * + * @param paramsObj 生成其他选项 + * @return 树父编码 + */ + public static String getTreeParentCode(JSONObject paramsObj) + { + if (paramsObj.containsKey(GenConstants.TREE_PARENT_CODE)) + { + return StringUtils.toCamelCase(paramsObj.getString(GenConstants.TREE_PARENT_CODE)); + } + return StringUtils.EMPTY; + } + + /** + * 获取树名称 + * + * @param paramsObj 生成其他选项 + * @return 树名称 + */ + public static String getTreeName(JSONObject paramsObj) + { + if (paramsObj.containsKey(GenConstants.TREE_NAME)) + { + return StringUtils.toCamelCase(paramsObj.getString(GenConstants.TREE_NAME)); + } + return StringUtils.EMPTY; + } + + /** + * 获取需要在哪一列上面显示展开按钮 + * + * @param genTable 业务表对象 + * @return 展开按钮列序号 + */ + public static int getExpandColumn(GenTable genTable) + { + String options = genTable.getOptions(); + JSONObject paramsObj = JSONObject.parseObject(options); + String treeName = paramsObj.getString(GenConstants.TREE_NAME); + int num = 0; + for (GenTableColumn column : genTable.getColumns()) + { + if (column.isList()) + { + num++; + String columnName = column.getColumnName(); + if (columnName.equals(treeName)) + { + break; + } + } + } + return num; + } +} diff --git a/alive-generator/src/main/resources/generator.yml b/alive-generator/src/main/resources/generator.yml new file mode 100644 index 0000000..68a9ef1 --- /dev/null +++ b/alive-generator/src/main/resources/generator.yml @@ -0,0 +1,11 @@ + +# 代码生成 +gen: + # 作者 + author: HayDen + # 默认生成包路径 system 需改成自己的模块名称 如 system monitor tool + packageName: com.ruoyi.system + # 自动去除表前缀,默认是false + autoRemovePre: true + # 表前缀(生成类名不会包含表前缀,多个用逗号分隔) + tablePrefix: sys_,mtxm_,fai_ \ No newline at end of file diff --git a/alive-generator/src/main/resources/mapper/generator/GenTableColumnMapper.xml b/alive-generator/src/main/resources/mapper/generator/GenTableColumnMapper.xml new file mode 100644 index 0000000..86f62de --- /dev/null +++ b/alive-generator/src/main/resources/mapper/generator/GenTableColumnMapper.xml @@ -0,0 +1,127 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select column_id, table_id, column_name, column_comment, column_type, java_type, java_field, is_pk, is_increment, is_required, is_insert, is_edit, is_list, is_query, query_type, html_type, dict_type, sort, create_by, create_time, update_by, update_time from gen_table_column + + + + + + + + insert into gen_table_column ( + table_id, + column_name, + column_comment, + column_type, + java_type, + java_field, + is_pk, + is_increment, + is_required, + is_insert, + is_edit, + is_list, + is_query, + query_type, + html_type, + dict_type, + sort, + create_by, + create_time + )values( + #{tableId}, + #{columnName}, + #{columnComment}, + #{columnType}, + #{javaType}, + #{javaField}, + #{isPk}, + #{isIncrement}, + #{isRequired}, + #{isInsert}, + #{isEdit}, + #{isList}, + #{isQuery}, + #{queryType}, + #{htmlType}, + #{dictType}, + #{sort}, + #{createBy}, + sysdate() + ) + + + + update gen_table_column + + column_comment = #{columnComment}, + java_type = #{javaType}, + java_field = #{javaField}, + is_insert = #{isInsert}, + is_edit = #{isEdit}, + is_list = #{isList}, + is_query = #{isQuery}, + is_required = #{isRequired}, + query_type = #{queryType}, + html_type = #{htmlType}, + dict_type = #{dictType}, + sort = #{sort}, + update_by = #{updateBy}, + update_time = sysdate() + + where column_id = #{columnId} + + + + delete from gen_table_column where table_id in + + #{tableId} + + + + + delete from gen_table_column where column_id in + + #{item.columnId} + + + + \ No newline at end of file diff --git a/alive-generator/src/main/resources/mapper/generator/GenTableMapper.xml b/alive-generator/src/main/resources/mapper/generator/GenTableMapper.xml new file mode 100644 index 0000000..bc7cf52 --- /dev/null +++ b/alive-generator/src/main/resources/mapper/generator/GenTableMapper.xml @@ -0,0 +1,194 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select table_id, table_name, table_comment, sub_table_name, sub_table_fk_name, class_name, tpl_category, package_name, module_name, business_name, function_name, function_author, gen_type, gen_path, options, create_by, create_time, update_by, update_time, remark from gen_table + + + + + + + + + + + + + + + + + + insert into gen_table ( + table_name, + table_comment, + class_name, + tpl_category, + package_name, + module_name, + business_name, + function_name, + function_author, + gen_type, + gen_path, + remark, + create_by, + create_time + )values( + #{tableName}, + #{tableComment}, + #{className}, + #{tplCategory}, + #{packageName}, + #{moduleName}, + #{businessName}, + #{functionName}, + #{functionAuthor}, + #{genType}, + #{genPath}, + #{remark}, + #{createBy}, + sysdate() + ) + + + + ${sql} + + + + update gen_table + + table_name = #{tableName}, + table_comment = #{tableComment}, + sub_table_name = #{subTableName}, + sub_table_fk_name = #{subTableFkName}, + class_name = #{className}, + function_author = #{functionAuthor}, + gen_type = #{genType}, + gen_path = #{genPath}, + tpl_category = #{tplCategory}, + package_name = #{packageName}, + module_name = #{moduleName}, + business_name = #{businessName}, + function_name = #{functionName}, + options = #{options}, + update_by = #{updateBy}, + remark = #{remark}, + update_time = sysdate() + + where table_id = #{tableId} + + + + delete from gen_table where table_id in + + #{tableId} + + + + \ No newline at end of file diff --git a/alive-generator/src/main/resources/templates/tool/gen/createTable.html b/alive-generator/src/main/resources/templates/tool/gen/createTable.html new file mode 100644 index 0000000..c9b9dcf --- /dev/null +++ b/alive-generator/src/main/resources/templates/tool/gen/createTable.html @@ -0,0 +1,30 @@ + + + + + + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + \ No newline at end of file diff --git a/alive-generator/src/main/resources/templates/tool/gen/edit.html b/alive-generator/src/main/resources/templates/tool/gen/edit.html new file mode 100644 index 0000000..56ededc --- /dev/null +++ b/alive-generator/src/main/resources/templates/tool/gen/edit.html @@ -0,0 +1,607 @@ + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + + + + + + + + + + + + + diff --git a/alive-generator/src/main/resources/templates/tool/gen/gen.html b/alive-generator/src/main/resources/templates/tool/gen/gen.html new file mode 100644 index 0000000..bf980d9 --- /dev/null +++ b/alive-generator/src/main/resources/templates/tool/gen/gen.html @@ -0,0 +1,219 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + 表名称: +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + 表描述: +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + + - + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +  搜索 +  重置 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + \ No newline at end of file diff --git a/alive-generator/src/main/resources/templates/tool/gen/importTable.html b/alive-generator/src/main/resources/templates/tool/gen/importTable.html new file mode 100644 index 0000000..91562e7 --- /dev/null +++ b/alive-generator/src/main/resources/templates/tool/gen/importTable.html @@ -0,0 +1,95 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + \ No newline at end of file diff --git a/alive-generator/src/main/resources/vm/html/add.html.vm b/alive-generator/src/main/resources/vm/html/add.html.vm new file mode 100644 index 0000000..5be762a --- /dev/null +++ b/alive-generator/src/main/resources/vm/html/add.html.vm @@ -0,0 +1,378 @@ + + + + +#foreach($column in $columns) +#if($column.insert && !$column.superColumn && !$column.pk && $column.htmlType == "datetime") + +#break +#end +#end +#foreach($column in $columns) +#if($column.insert && !$column.superColumn && !$column.pk && $column.htmlType == "upload") + +#break +#end +#end +#foreach($column in $columns) +#if($column.insert && !$column.superColumn && !$column.pk && $column.htmlType == "summernote") + +#break +#end +#end + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +#if($table.sub) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ${functionName}信息

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +#end +#foreach($column in $columns) +#set($field=$column.javaField) +#if($column.insert && !$column.pk) +#if(($column.usableColumn) || (!$column.superColumn)) +#set($parentheseIndex=$column.columnComment.indexOf("(")) +#if($parentheseIndex != -1) +#set($comment=$column.columnComment.substring(0, $parentheseIndex)) +#else +#set($comment=$column.columnComment) +#end +#set($dictType=$column.dictType) +#if("" != $treeParentCode && $column.javaField == $treeParentCode) +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +#set($BusinessName=$businessName.substring(0,1).toUpperCase() + ${businessName.substring(1)}) +#set($treeId = "${className}?.${treeCode}") + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +#elseif($column.htmlType == "input") +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +#elseif($column.htmlType == "upload") +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +#elseif($column.htmlType == "summernote") +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +#elseif($column.htmlType == "select" && "" != $dictType) +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +#elseif($column.htmlType == "select" && $dictType) +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + 代码生成请选择字典属性 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +#elseif($column.htmlType == "checkbox" && "" != $dictType) +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +#elseif($column.htmlType == "checkbox" && $dictType) +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + 代码生成请选择字典属性 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +#elseif($column.htmlType == "radio" && "" != $dictType) +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +#elseif($column.htmlType == "radio" && $dictType) +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 代码生成请选择字典属性 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +#elseif($column.htmlType == "datetime") +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +#elseif($column.htmlType == "textarea") +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +#end +#end +#end +#end +#if($table.sub) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ${subTable.functionName}信息

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +#end +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +#foreach($column in $columns) +#if($column.insert && !$column.superColumn && !$column.pk && $column.htmlType == "datetime") + +#break +#end +#end +#foreach($column in $columns) +#if($column.insert && !$column.superColumn && !$column.pk && $column.htmlType == "upload") + +#break +#end +#end +#foreach($column in $columns) +#if($column.insert && !$column.superColumn && !$column.pk && $column.htmlType == "summernote") + +#break +#end +#end + + + \ No newline at end of file diff --git a/alive-generator/src/main/resources/vm/html/edit.html.vm b/alive-generator/src/main/resources/vm/html/edit.html.vm new file mode 100644 index 0000000..99df9a5 --- /dev/null +++ b/alive-generator/src/main/resources/vm/html/edit.html.vm @@ -0,0 +1,389 @@ + + + + +#foreach($column in $columns) +#if($column.edit && !$column.superColumn && !$column.pk && $column.htmlType == "datetime") + +#break +#end +#end +#foreach($column in $columns) +#if($column.insert && !$column.superColumn && !$column.pk && $column.htmlType == "upload") + +#break +#end +#end +#foreach($column in $columns) +#if($column.insert && !$column.superColumn && !$column.pk && $column.htmlType == "summernote") + +#break +#end +#end + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +#if($table.sub) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ${functionName}信息

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +#end + +#foreach($column in $columns) +#if($column.edit && !$column.pk) +#if(($column.usableColumn) || (!$column.superColumn)) +#set($parentheseIndex=$column.columnComment.indexOf("(")) +#if($parentheseIndex != -1) +#set($comment=$column.columnComment.substring(0, $parentheseIndex)) +#else +#set($comment=$column.columnComment) +#end +#set($field=$column.javaField) +#set($dictType=$column.dictType) +#if("" != $treeParentCode && $column.javaField == $treeParentCode) +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +#set($BusinessName=$businessName.substring(0,1).toUpperCase() + ${businessName.substring(1)}) + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +#elseif($column.htmlType == "input") +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +#elseif($column.htmlType == "upload") +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +#elseif($column.htmlType == "summernote") +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +#elseif($column.htmlType == "select" && "" != $dictType) +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +#elseif($column.htmlType == "select" && $dictType) +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + 代码生成请选择字典属性 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +#elseif($column.htmlType == "checkbox" && "" != $dictType) +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +#elseif($column.htmlType == "checkbox" && $dictType) +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + 代码生成请选择字典属性 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +#elseif($column.htmlType == "radio" && "" != $dictType) +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +#elseif($column.htmlType == "radio" && $dictType) +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 代码生成请选择字典属性 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +#elseif($column.htmlType == "datetime") +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +#elseif($column.htmlType == "textarea") +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +#end +#end +#end +#end +#if($table.sub) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ${subTable.functionName}信息

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +#end +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +#foreach($column in $columns) +#if($column.edit && !$column.superColumn && !$column.pk && $column.htmlType == "datetime") + +#break +#end +#end +#foreach($column in $columns) +#if($column.insert && !$column.superColumn && !$column.pk && $column.htmlType == "upload") + +#break +#end +#end +#foreach($column in $columns) +#if($column.insert && !$column.superColumn && !$column.pk && $column.htmlType == "summernote") + +#break +#end +#end + + + \ No newline at end of file diff --git a/alive-generator/src/main/resources/vm/html/list-tree.html.vm b/alive-generator/src/main/resources/vm/html/list-tree.html.vm new file mode 100644 index 0000000..7a799ac --- /dev/null +++ b/alive-generator/src/main/resources/vm/html/list-tree.html.vm @@ -0,0 +1,151 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +#foreach($column in $columns) +#if($column.query) +#set($dictType=$column.dictType) +#set($AttrName=$column.javaField.substring(0,1).toUpperCase() + ${column.javaField.substring(1)}) +#set($parentheseIndex=$column.columnComment.indexOf("(")) +#if($parentheseIndex != -1) +#set($comment=$column.columnComment.substring(0, $parentheseIndex)) +#else +#set($comment=$column.columnComment) +#end +#if($column.htmlType == "input") +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +#elseif(($column.htmlType == "select" || $column.htmlType == "radio") && "" != $dictType) +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +#elseif(($column.htmlType == "select" || $column.htmlType == "radio") && $dictType) +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +#elseif($column.htmlType == "datetime") +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + + - + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +#end +#end +#end +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +  搜索 +  重置 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + \ No newline at end of file diff --git a/alive-generator/src/main/resources/vm/html/list.html.vm b/alive-generator/src/main/resources/vm/html/list.html.vm new file mode 100644 index 0000000..02ca747 --- /dev/null +++ b/alive-generator/src/main/resources/vm/html/list.html.vm @@ -0,0 +1,161 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +#foreach($column in $columns) +#if($column.query) +#set($dictType=$column.dictType) +#set($AttrName=$column.javaField.substring(0,1).toUpperCase() + ${column.javaField.substring(1)}) +#set($parentheseIndex=$column.columnComment.indexOf("(")) +#if($parentheseIndex != -1) +#set($comment=$column.columnComment.substring(0, $parentheseIndex)) +#else +#set($comment=$column.columnComment) +#end +#if($column.htmlType == "input") +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +#elseif(($column.htmlType == "select" || $column.htmlType == "radio") && "" != $dictType) +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +#elseif(($column.htmlType == "select" || $column.htmlType == "radio") && $dictType) +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +#elseif($column.htmlType == "datetime") + +#end +#end +#end +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + + - + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +  搜索 +  重置 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + \ No newline at end of file diff --git a/alive-generator/src/main/resources/vm/html/tree.html.vm b/alive-generator/src/main/resources/vm/html/tree.html.vm new file mode 100644 index 0000000..a52f886 --- /dev/null +++ b/alive-generator/src/main/resources/vm/html/tree.html.vm @@ -0,0 +1,51 @@ + + + + + + + + +#set($treeId = "${className}?." + $treeCode) +#set($treeName = "${className}?." + $treeName) + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 展开 / + 折叠 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + \ No newline at end of file diff --git a/alive-generator/src/main/resources/vm/java/controller.java.vm b/alive-generator/src/main/resources/vm/java/controller.java.vm new file mode 100644 index 0000000..d399737 --- /dev/null +++ b/alive-generator/src/main/resources/vm/java/controller.java.vm @@ -0,0 +1,163 @@ +package ${packageName}.controller; + +import com.ruoyi.common.utils.StringUtils; +import java.util.List; +import com.ruoyi.common.core.domain.entity.SysUser; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.enums.BusinessType; +import ${packageName}.domain.${ClassName}; +import ${packageName}.service.${ClassName}Service; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.utils.poi.ExcelUtil; +#if($table.crud || $table.sub) +#elseif($table.tree) +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.common.core.domain.Ztree; +#end + +/** + * ${functionName}Controller + * + * @author ${author} + * @date ${datetime} + */ +@Controller +@RequestMapping("/project/${className}") +public class ${ClassName}Controller extends BaseController +{ + private String prefix = "project/${className}"; + + @Autowired + private ${ClassName}Service ${className}Service; + + @RequiresPermissions("project:${className}:view") + @GetMapping() + public String ${className}() + { + return prefix + "/${className}List"; + } + + /** + * 查询${functionName}列表 + */ + @RequiresPermissions("project:${className}:list") + @PostMapping("/list") + @ResponseBody + public TableDataInfo list(${ClassName} ${className}) + { + startPage(); + List<${ClassName}> list = ${className}Service.select${ClassName}List(${className}); + return getDataTable(list); + } + + /** + * 查询${functionName}对象 + */ + @RequiresPermissions("project:${className}:${className}") + @PostMapping("/${className}") + @ResponseBody + public ${ClassName} find${ClassName}(${ClassName} ${className}) + { + ${className} = ${className}Service.find${ClassName}(${className}); + return ${className}; + } + + /** + * 导出${functionName}列表 + */ + @RequiresPermissions("project:${className}:export") + @Log(title = "${functionName}", businessType = BusinessType.EXPORT) + @PostMapping("/export") + @ResponseBody + public AjaxResult export(${ClassName} ${className}) + { + List<${ClassName}> list = ${className}Service.select${ClassName}List(${className}); + ExcelUtil<${ClassName}> util = new ExcelUtil<${ClassName}>(${ClassName}.class); + return util.exportExcel(list, "${functionName}"); + } + + /** + * 新增${functionName} + */ + @GetMapping("/add") + public String add() + { + return prefix + "/${className}Add"; + } + /** + * 新增${functionName} + */ + @GetMapping(value = { "/add/{${pkColumn.javaField}}", "/add/" }) + public String add(@PathVariable(value = "${pkColumn.javaField}", required = false) Integer ${pkColumn.javaField}, ModelMap mmap) + { + if (StringUtils.isNotNull(${pkColumn.javaField})) + { + mmap.put("${className}", ${className}Service.select${ClassName}ById(${pkColumn.javaField})); + } + return prefix + "/${className}Add"; + } + + /** + * 新增保存${functionName} + */ + @RequiresPermissions("project:${className}:add") + @Log(title = "${functionName}", businessType = BusinessType.INSERT) + @PostMapping("/add") + @ResponseBody + public AjaxResult addSave(${ClassName} ${className}) + { + SysUser sysUser = getSysUser(); + ${className}.setCreateBy(sysUser.getUserName()); + return toAjax(${className}Service.updateOrAdd${ClassName}(${className})); + } + + /** + * 修改${functionName} + */ + @GetMapping("/edit/{${pkColumn.javaField}}") + public String edit(@PathVariable("${pkColumn.javaField}") Integer ${pkColumn.javaField}, ModelMap mmap) + { + ${ClassName} ${className} = ${className}Service.select${ClassName}ById(${pkColumn.javaField}); + mmap.put("${className}", ${className}); + return prefix + "/${className}Edit"; + } + + /** + * 修改保存${functionName} + */ + @RequiresPermissions("project:${className}:edit") + @Log(title = "${functionName}", businessType = BusinessType.UPDATE) + @PostMapping("/edit") + @ResponseBody + public AjaxResult editSave(${ClassName} ${className}) + { + SysUser sysUser = getSysUser(); + ${className}.setUpdateBy(sysUser.getUserName()); + return toAjax(${className}Service.updateOrAdd${ClassName}(${className})); + } + + + /** + * 删除${functionName} + */ + @RequiresPermissions("project:${className}:remove") + @Log(title = "${functionName}", businessType = BusinessType.DELETE) + @PostMapping( "/remove") + @ResponseBody + public AjaxResult remove(String ids) + { + return toAjax(${className}Service.delete${ClassName}ByIds(ids)); + } + +} diff --git a/alive-generator/src/main/resources/vm/java/domain.java.vm b/alive-generator/src/main/resources/vm/java/domain.java.vm new file mode 100644 index 0000000..7bdaa02 --- /dev/null +++ b/alive-generator/src/main/resources/vm/java/domain.java.vm @@ -0,0 +1,78 @@ +package ${packageName}.domain; + +#foreach ($import in $importList) +import ${import}; +#end +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import lombok.experimental.Accessors; +import com.ruoyi.common.core.domain.BaseEntity; +import lombok.Getter; +import lombok.Setter; +import java.util.Date; +#if($table.crud || $table.sub) +import com.ruoyi.common.core.domain.BaseEntity; +#elseif($table.tree) +import com.ruoyi.common.core.domain.TreeEntity; +#end + +/** + * ${functionName}对象 ${tableName} + * + * @author ${author} + * @date ${datetime} + */ +#if($table.crud || $table.sub) +#set($Entity="BaseEntity") +#elseif($table.tree) +#set($Entity="TreeEntity") +#end +@Setter +@Getter +@Accessors(chain = true) +public class ${ClassName} extends BaseEntity +{ + private static final long serialVersionUID = 1L; + +#foreach ($column in $columns) +#if(!$table.isSuperColumn($column.javaField)) + /** + * $column.columnComment + */ + #if($column.list) +#set($parentheseIndex=$column.columnComment.indexOf("(")) +#if($parentheseIndex != -1) +#set($comment=$column.columnComment.substring(0, $parentheseIndex)) +#else +#set($comment=$column.columnComment) +#end +#if($parentheseIndex != -1) +@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") +#elseif($column.javaType == 'Date') +@Excel(name = "${comment}", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss") +#else +@Excel(name = "${comment}") +#end +#end + private $column.javaType $column.javaField; + +#end +#end +#if($table.sub) + /** + * $table.subTable.functionName信息 + */ +private List<${subClassName}> ${subclassName}List; + +#end +#foreach ($column in $columns) +#if(!$table.isSuperColumn($column.javaField)) +#if($column.javaField.length() > 2 && $column.javaField.substring(1,2).matches("[A-Z]")) +#set($AttrName=$column.javaField) +#else +#set($AttrName=$column.javaField.substring(0,1).toUpperCase() + ${column.javaField.substring(1)}) +#end +#end +#end +} diff --git a/alive-generator/src/main/resources/vm/java/mapper.java.vm b/alive-generator/src/main/resources/vm/java/mapper.java.vm new file mode 100644 index 0000000..6567f24 --- /dev/null +++ b/alive-generator/src/main/resources/vm/java/mapper.java.vm @@ -0,0 +1,64 @@ +package ${packageName}.mapper; + +import java.util.List; +import ${packageName}.domain.${ClassName}; +#if($table.sub) +import ${packageName}.domain.${subClassName}; +#end + +/** + * ${functionName}Mapper接口 + * + * @author ${author} + * @date ${datetime} + */ +public interface ${ClassName}Mapper +{ + /** + * 查询${functionName} + * + * @param ${pkColumn.javaField} ${functionName}ID + * @return ${functionName} + */ + ${ClassName} select${ClassName}ById(Integer ${pkColumn.javaField}); + + /** + * 查询${functionName}列表 + * + * @param ${className} ${functionName} + * @return ${functionName}集合 + */ + List<${ClassName}> select${ClassName}List(${ClassName} ${className}); + + /** + * 查询${functionName}对象 + * + * @param ${className} ${functionName} + * @return ${functionName} + */ + ${ClassName} find${ClassName}(${ClassName} ${className}); + + /** + * 新增${functionName} + * + * @param ${className} ${functionName} + * @return 结果 + */ + int insert${ClassName}(${ClassName} ${className}); + + /** + * 修改${functionName} + * + * @param ${className} ${functionName} + * @return 结果 + */ + int update${ClassName}(${ClassName} ${className}); + + /** + * 批量删除${functionName} + * + * @param ${pkColumn.javaField}s 需要删除的数据ID + * @return 结果 + */ + int delete${ClassName}ByIds(String[] ${pkColumn.javaField}s); +} diff --git a/alive-generator/src/main/resources/vm/java/service.java.vm b/alive-generator/src/main/resources/vm/java/service.java.vm new file mode 100644 index 0000000..2219657 --- /dev/null +++ b/alive-generator/src/main/resources/vm/java/service.java.vm @@ -0,0 +1,57 @@ +package ${packageName}.service; + +import java.util.List; +import ${packageName}.domain.${ClassName}; +#if($table.tree) +import com.ruoyi.common.core.domain.Ztree; +#end + +/** + * ${functionName}Service接口 + * + * @author ${author} + * @date ${datetime} + */ +public interface ${ClassName}Service +{ + /** + * 查询${functionName} + * + * @param ${pkColumn.javaField} ${functionName}ID + * @return ${functionName} + */ + ${ClassName} select${ClassName}ById(Integer ${pkColumn.javaField}); + + /** + * 查询${functionName}列表 + * + * @param ${className} ${functionName} + * @return ${functionName}集合 + */ + List<${ClassName}> select${ClassName}List(${ClassName} ${className}); + + /** + * 查询${functionName}对象 + * + * @param ${className} ${functionName} + * @return ${functionName} + */ + ${ClassName} find${ClassName}(${ClassName} ${className}); + + /** + * 修改或者添加${functionName} + * + * @param ${className} ${functionName} + * @return 结果 + */ + int updateOrAdd${ClassName}(${ClassName} ${className}); + + /** + * 批量删除${functionName} + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + int delete${ClassName}ByIds(String ids); + +} diff --git a/alive-generator/src/main/resources/vm/java/serviceImpl.java.vm b/alive-generator/src/main/resources/vm/java/serviceImpl.java.vm new file mode 100644 index 0000000..f54d839 --- /dev/null +++ b/alive-generator/src/main/resources/vm/java/serviceImpl.java.vm @@ -0,0 +1,123 @@ +package ${packageName}.service.impl; + +import java.util.List; +#if($table.tree) +import java.util.ArrayList; +import com.ruoyi.common.core.domain.Ztree; +#end +#foreach ($column in $columns) +#if($column.javaField == 'createTime' || $column.javaField == 'updateTime') +import com.ruoyi.common.utils.DateUtils; +#break +#end +#end +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +#if($table.sub) +import java.util.ArrayList; +import com.ruoyi.common.utils.StringUtils; +import org.springframework.transaction.annotation.Transactional; +import ${packageName}.domain.${subClassName}; +#end +import ${packageName}.mapper.${ClassName}Mapper; +import ${packageName}.domain.${ClassName}; +import com.ruoyi.common.core.text.Convert; + +/** + * ${functionName}Service业务层处理 + * + * @author ${author} + * @date ${datetime} + */ +@Service +public class ${ClassName}Service +{ + @Autowired + private ${ClassName}Mapper ${className}Mapper; + + /** + * 查询${functionName} + * + * @param ${pkColumn.javaField} ${functionName}ID + * @return ${functionName} + */ + public ${ClassName} select${ClassName}ById(Integer ${pkColumn.javaField}) + { + return ${className}Mapper.select${ClassName}ById(${pkColumn.javaField}); + } + + /** + * 查询${functionName}列表 + * + * @param ${className} ${functionName} + * @return ${functionName} + */ + public List<${ClassName}> select${ClassName}List(${ClassName} ${className}) + { + List<${ClassName}> ${className}List = ${className}Mapper.select${ClassName}List(${className}); + return ${className}List; + } + + /** + * 查询${functionName}对象 + * + * @param ${className} ${functionName} + * @return ${functionName} + */ + public ${ClassName} find${ClassName}(${ClassName} ${className}) + { + ${className} = ${className}Mapper.find${ClassName}(${className}); + return ${className}; + } + + /** + * 修改或者添加${functionName} + * + * @param ${className} ${functionName} + * @return 结果 + */ +#if($table.sub) + @Transactional +#end + public int updateOrAdd${ClassName}(${ClassName} ${className}) { + if (${className}.getId() != null){ + #foreach ($column in $columns) + #if($column.javaField == 'updateTime') + ${className}.setUpdateTime(DateUtils.getNowDate()); + #end + #end + #if($table.sub) + ${className}Mapper.delete${subClassName}By${subTableFkClassName}(${className}.get${pkColumn.capJavaField}()) + ; + insert${subClassName}(${className}); + #end + return ${className}Mapper.update${ClassName}(${className}); + }else{ + ${className}.setCreateTime(DateUtils.getNowDate()); + #if($table.sub) + int rows = ${className}Mapper.insert${ClassName}(${className}); + insert${subClassName}(${className}); + return rows; + #else + return ${className}Mapper.insert${ClassName}(${className}); + #end + } + } + + /** + * 删除${functionName}对象 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + #if($table.sub) + @Transactional + #end + public int delete${ClassName}ByIds(String ids) + { + #if($table.sub) + ${className}Mapper.delete${subClassName}By${subTableFkClassName}s(Convert.toStrArray(ids)); + #end + return ${className}Mapper.delete${ClassName}ByIds(Convert.toStrArray(ids)); + } +} diff --git a/alive-generator/src/main/resources/vm/java/sub-domain.java.vm b/alive-generator/src/main/resources/vm/java/sub-domain.java.vm new file mode 100644 index 0000000..c1b6fe9 --- /dev/null +++ b/alive-generator/src/main/resources/vm/java/sub-domain.java.vm @@ -0,0 +1,66 @@ +package ${packageName}.domain; + +#foreach ($import in $subImportList) +import ${import}; +#end +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.BaseEntity; +import lombok.Getter; +import lombok.Setter; + +/** + * ${subTable.functionName}对象 ${subTableName} + * + * @author ${author} + * @date ${datetime} + */ +@Setter +@Getter +public class ${subClassName} extends BaseEntity +{ + private static final long serialVersionUID = 1L; + +#foreach ($column in $subTable.columns) +#if(!$table.isSuperColumn($column.javaField)) + /** $column.columnComment */ +#if($column.list) +#set($parentheseIndex=$column.columnComment.indexOf("(")) +#if($parentheseIndex != -1) +#set($comment=$column.columnComment.substring(0, $parentheseIndex)) +#else +#set($comment=$column.columnComment) +#end +#if($parentheseIndex != -1) + @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") +#elseif($column.javaType == 'Date') + @Excel(name = "${comment}", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss") +#else + @Excel(name = "${comment}") +#end +#end + private $column.javaType $column.javaField; + +#end +#end +#foreach ($column in $subTable.columns) +#if(!$table.isSuperColumn($column.javaField)) +#if($column.javaField.length() > 2 && $column.javaField.substring(1,2).matches("[A-Z]")) +#set($AttrName=$column.javaField) +#else +#set($AttrName=$column.javaField.substring(0,1).toUpperCase() + ${column.javaField.substring(1)}) +#end + public void set${AttrName}($column.javaType $column.javaField) + { + this.$column.javaField = $column.javaField; + } + + public $column.javaType get${AttrName}() + { + return $column.javaField; + } +#end +#end + +} diff --git a/alive-generator/src/main/resources/vm/sql/sql.vm b/alive-generator/src/main/resources/vm/sql/sql.vm new file mode 100644 index 0000000..9d0019c --- /dev/null +++ b/alive-generator/src/main/resources/vm/sql/sql.vm @@ -0,0 +1,22 @@ +-- 菜单 SQL +insert into sys_menu (menu_name, parent_id, order_num, url, menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark) +values('${functionName}', '${parentMenuId}', '1', '/project/${businessName}', 'C', '0', '${permissionPrefix}:view', '#', 'admin', '2018-03-01', 'ry', '2018-03-01', '${functionName}菜单'); + +-- 按钮父菜单ID +SELECT @parentId := LAST_INSERT_ID(); + +-- 按钮 SQL +insert into sys_menu (menu_name, parent_id, order_num, url, menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark) +values('${functionName}查询', @parentId, '1', '#', 'F', '0', '${permissionPrefix}:list', '#', 'admin', '2018-03-01', 'ry', '2018-03-01', ''); + +insert into sys_menu (menu_name, parent_id, order_num, url, menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark) +values('${functionName}新增', @parentId, '2', '#', 'F', '0', '${permissionPrefix}:add', '#', 'admin', '2018-03-01', 'ry', '2018-03-01', ''); + +insert into sys_menu (menu_name, parent_id, order_num, url, menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark) +values('${functionName}修改', @parentId, '3', '#', 'F', '0', '${permissionPrefix}:edit', '#', 'admin', '2018-03-01', 'ry', '2018-03-01', ''); + +insert into sys_menu (menu_name, parent_id, order_num, url, menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark) +values('${functionName}删除', @parentId, '4', '#', 'F', '0', '${permissionPrefix}:remove', '#', 'admin', '2018-03-01', 'ry', '2018-03-01', ''); + +insert into sys_menu (menu_name, parent_id, order_num, url, menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark) +values('${functionName}导出', @parentId, '5', '#', 'F', '0', '${permissionPrefix}:export', '#', 'admin', '2018-03-01', 'ry', '2018-03-01', ''); diff --git a/alive-generator/src/main/resources/vm/xml/mapper.xml.vm b/alive-generator/src/main/resources/vm/xml/mapper.xml.vm new file mode 100644 index 0000000..5c08eb7 --- /dev/null +++ b/alive-generator/src/main/resources/vm/xml/mapper.xml.vm @@ -0,0 +1,143 @@ + + + + + +#foreach ($column in $columns) + +#end +#if($table.tree) + +#end + +#if($table.sub) + + + + + + +#foreach ($column in $subTable.columns) + +#end + +#end + + + select#foreach($column in $columns) $column.columnName#if($foreach.count != $columns.size()),#end#end from ${tableName} + + + + + + + + + + insert into ${tableName} + +#foreach($column in $columns) +#if($column.columnName != $pkColumn.columnName || !$pkColumn.increment) + $column.columnName, +#end +#end + + +#foreach($column in $columns) +#if($column.columnName != $pkColumn.columnName || !$pkColumn.increment) + #{$column.javaField}, +#end +#end + + + + + update ${tableName} + +#foreach($column in $columns) +#if($column.columnName != $pkColumn.columnName) + $column.columnName = #{$column.javaField}, +#end +#end + + where ${pkColumn.columnName} = #{${pkColumn.javaField}} + + + + delete from ${tableName} where ${pkColumn.columnName} in + + #{${pkColumn.javaField}} + + + + \ No newline at end of file diff --git a/alive-generator/target/alive-generator-4.7.2.jar b/alive-generator/target/alive-generator-4.7.2.jar new file mode 100644 index 0000000..0032d0b Binary files /dev/null and b/alive-generator/target/alive-generator-4.7.2.jar differ diff --git a/alive-generator/target/classes/com/ruoyi/generator/config/GenConfig.class b/alive-generator/target/classes/com/ruoyi/generator/config/GenConfig.class new file mode 100644 index 0000000..90bf2a6 Binary files /dev/null and b/alive-generator/target/classes/com/ruoyi/generator/config/GenConfig.class differ diff --git a/alive-generator/target/classes/com/ruoyi/generator/controller/GenController.class b/alive-generator/target/classes/com/ruoyi/generator/controller/GenController.class new file mode 100644 index 0000000..7e263c4 Binary files /dev/null and b/alive-generator/target/classes/com/ruoyi/generator/controller/GenController.class differ diff --git a/alive-generator/target/classes/com/ruoyi/generator/domain/GenTable.class b/alive-generator/target/classes/com/ruoyi/generator/domain/GenTable.class new file mode 100644 index 0000000..54d637d Binary files /dev/null and b/alive-generator/target/classes/com/ruoyi/generator/domain/GenTable.class differ diff --git a/alive-generator/target/classes/com/ruoyi/generator/domain/GenTableColumn.class b/alive-generator/target/classes/com/ruoyi/generator/domain/GenTableColumn.class new file mode 100644 index 0000000..790092d Binary files /dev/null and b/alive-generator/target/classes/com/ruoyi/generator/domain/GenTableColumn.class differ diff --git a/alive-generator/target/classes/com/ruoyi/generator/mapper/GenTableColumnMapper.class b/alive-generator/target/classes/com/ruoyi/generator/mapper/GenTableColumnMapper.class new file mode 100644 index 0000000..5ae5e99 Binary files /dev/null and b/alive-generator/target/classes/com/ruoyi/generator/mapper/GenTableColumnMapper.class differ diff --git a/alive-generator/target/classes/com/ruoyi/generator/mapper/GenTableMapper.class b/alive-generator/target/classes/com/ruoyi/generator/mapper/GenTableMapper.class new file mode 100644 index 0000000..00455eb Binary files /dev/null and b/alive-generator/target/classes/com/ruoyi/generator/mapper/GenTableMapper.class differ diff --git a/alive-generator/target/classes/com/ruoyi/generator/service/IGenTableColumnService.class b/alive-generator/target/classes/com/ruoyi/generator/service/IGenTableColumnService.class new file mode 100644 index 0000000..b5d14ee Binary files /dev/null and b/alive-generator/target/classes/com/ruoyi/generator/service/IGenTableColumnService.class differ diff --git a/alive-generator/target/classes/com/ruoyi/generator/service/IGenTableService.class b/alive-generator/target/classes/com/ruoyi/generator/service/IGenTableService.class new file mode 100644 index 0000000..baf3d71 Binary files /dev/null and b/alive-generator/target/classes/com/ruoyi/generator/service/IGenTableService.class differ diff --git a/alive-generator/target/classes/com/ruoyi/generator/service/impl/GenTableColumnServiceImpl.class b/alive-generator/target/classes/com/ruoyi/generator/service/impl/GenTableColumnServiceImpl.class new file mode 100644 index 0000000..14b4d17 Binary files /dev/null and b/alive-generator/target/classes/com/ruoyi/generator/service/impl/GenTableColumnServiceImpl.class differ diff --git a/alive-generator/target/classes/com/ruoyi/generator/service/impl/GenTableServiceImpl.class b/alive-generator/target/classes/com/ruoyi/generator/service/impl/GenTableServiceImpl.class new file mode 100644 index 0000000..35d1ff8 Binary files /dev/null and b/alive-generator/target/classes/com/ruoyi/generator/service/impl/GenTableServiceImpl.class differ diff --git a/alive-generator/target/classes/com/ruoyi/generator/util/GenUtils.class b/alive-generator/target/classes/com/ruoyi/generator/util/GenUtils.class new file mode 100644 index 0000000..f4d46d7 Binary files /dev/null and b/alive-generator/target/classes/com/ruoyi/generator/util/GenUtils.class differ diff --git a/alive-generator/target/classes/com/ruoyi/generator/util/VelocityInitializer.class b/alive-generator/target/classes/com/ruoyi/generator/util/VelocityInitializer.class new file mode 100644 index 0000000..4caf94e Binary files /dev/null and b/alive-generator/target/classes/com/ruoyi/generator/util/VelocityInitializer.class differ diff --git a/alive-generator/target/classes/com/ruoyi/generator/util/VelocityUtils.class b/alive-generator/target/classes/com/ruoyi/generator/util/VelocityUtils.class new file mode 100644 index 0000000..3474120 Binary files /dev/null and b/alive-generator/target/classes/com/ruoyi/generator/util/VelocityUtils.class differ diff --git a/alive-generator/target/classes/generator.yml b/alive-generator/target/classes/generator.yml new file mode 100644 index 0000000..68a9ef1 --- /dev/null +++ b/alive-generator/target/classes/generator.yml @@ -0,0 +1,11 @@ + +# 代码生成 +gen: + # 作者 + author: HayDen + # 默认生成包路径 system 需改成自己的模块名称 如 system monitor tool + packageName: com.ruoyi.system + # 自动去除表前缀,默认是false + autoRemovePre: true + # 表前缀(生成类名不会包含表前缀,多个用逗号分隔) + tablePrefix: sys_,mtxm_,fai_ \ No newline at end of file diff --git a/alive-generator/target/classes/mapper/generator/GenTableColumnMapper.xml b/alive-generator/target/classes/mapper/generator/GenTableColumnMapper.xml new file mode 100644 index 0000000..86f62de --- /dev/null +++ b/alive-generator/target/classes/mapper/generator/GenTableColumnMapper.xml @@ -0,0 +1,127 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select column_id, table_id, column_name, column_comment, column_type, java_type, java_field, is_pk, is_increment, is_required, is_insert, is_edit, is_list, is_query, query_type, html_type, dict_type, sort, create_by, create_time, update_by, update_time from gen_table_column + + + + + + + + insert into gen_table_column ( + table_id, + column_name, + column_comment, + column_type, + java_type, + java_field, + is_pk, + is_increment, + is_required, + is_insert, + is_edit, + is_list, + is_query, + query_type, + html_type, + dict_type, + sort, + create_by, + create_time + )values( + #{tableId}, + #{columnName}, + #{columnComment}, + #{columnType}, + #{javaType}, + #{javaField}, + #{isPk}, + #{isIncrement}, + #{isRequired}, + #{isInsert}, + #{isEdit}, + #{isList}, + #{isQuery}, + #{queryType}, + #{htmlType}, + #{dictType}, + #{sort}, + #{createBy}, + sysdate() + ) + + + + update gen_table_column + + column_comment = #{columnComment}, + java_type = #{javaType}, + java_field = #{javaField}, + is_insert = #{isInsert}, + is_edit = #{isEdit}, + is_list = #{isList}, + is_query = #{isQuery}, + is_required = #{isRequired}, + query_type = #{queryType}, + html_type = #{htmlType}, + dict_type = #{dictType}, + sort = #{sort}, + update_by = #{updateBy}, + update_time = sysdate() + + where column_id = #{columnId} + + + + delete from gen_table_column where table_id in + + #{tableId} + + + + + delete from gen_table_column where column_id in + + #{item.columnId} + + + + \ No newline at end of file diff --git a/alive-generator/target/classes/mapper/generator/GenTableMapper.xml b/alive-generator/target/classes/mapper/generator/GenTableMapper.xml new file mode 100644 index 0000000..bc7cf52 --- /dev/null +++ b/alive-generator/target/classes/mapper/generator/GenTableMapper.xml @@ -0,0 +1,194 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select table_id, table_name, table_comment, sub_table_name, sub_table_fk_name, class_name, tpl_category, package_name, module_name, business_name, function_name, function_author, gen_type, gen_path, options, create_by, create_time, update_by, update_time, remark from gen_table + + + + + + + + + + + + + + + + + + insert into gen_table ( + table_name, + table_comment, + class_name, + tpl_category, + package_name, + module_name, + business_name, + function_name, + function_author, + gen_type, + gen_path, + remark, + create_by, + create_time + )values( + #{tableName}, + #{tableComment}, + #{className}, + #{tplCategory}, + #{packageName}, + #{moduleName}, + #{businessName}, + #{functionName}, + #{functionAuthor}, + #{genType}, + #{genPath}, + #{remark}, + #{createBy}, + sysdate() + ) + + + + ${sql} + + + + update gen_table + + table_name = #{tableName}, + table_comment = #{tableComment}, + sub_table_name = #{subTableName}, + sub_table_fk_name = #{subTableFkName}, + class_name = #{className}, + function_author = #{functionAuthor}, + gen_type = #{genType}, + gen_path = #{genPath}, + tpl_category = #{tplCategory}, + package_name = #{packageName}, + module_name = #{moduleName}, + business_name = #{businessName}, + function_name = #{functionName}, + options = #{options}, + update_by = #{updateBy}, + remark = #{remark}, + update_time = sysdate() + + where table_id = #{tableId} + + + + delete from gen_table where table_id in + + #{tableId} + + + + \ No newline at end of file diff --git a/alive-generator/target/classes/templates/tool/gen/createTable.html b/alive-generator/target/classes/templates/tool/gen/createTable.html new file mode 100644 index 0000000..c9b9dcf --- /dev/null +++ b/alive-generator/target/classes/templates/tool/gen/createTable.html @@ -0,0 +1,30 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + \ No newline at end of file diff --git a/alive-generator/target/classes/templates/tool/gen/edit.html b/alive-generator/target/classes/templates/tool/gen/edit.html new file mode 100644 index 0000000..56ededc --- /dev/null +++ b/alive-generator/target/classes/templates/tool/gen/edit.html @@ -0,0 +1,607 @@ + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + + + + + + + + + + + + + diff --git a/alive-generator/target/classes/templates/tool/gen/gen.html b/alive-generator/target/classes/templates/tool/gen/gen.html new file mode 100644 index 0000000..bf980d9 --- /dev/null +++ b/alive-generator/target/classes/templates/tool/gen/gen.html @@ -0,0 +1,219 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + 表名称: +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + 表描述: +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + + - + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +  搜索 +  重置 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + \ No newline at end of file diff --git a/alive-generator/target/classes/templates/tool/gen/importTable.html b/alive-generator/target/classes/templates/tool/gen/importTable.html new file mode 100644 index 0000000..91562e7 --- /dev/null +++ b/alive-generator/target/classes/templates/tool/gen/importTable.html @@ -0,0 +1,95 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + \ No newline at end of file diff --git a/alive-generator/target/classes/vm/html/add.html.vm b/alive-generator/target/classes/vm/html/add.html.vm new file mode 100644 index 0000000..5be762a --- /dev/null +++ b/alive-generator/target/classes/vm/html/add.html.vm @@ -0,0 +1,378 @@ + + + + +#foreach($column in $columns) +#if($column.insert && !$column.superColumn && !$column.pk && $column.htmlType == "datetime") + +#break +#end +#end +#foreach($column in $columns) +#if($column.insert && !$column.superColumn && !$column.pk && $column.htmlType == "upload") + +#break +#end +#end +#foreach($column in $columns) +#if($column.insert && !$column.superColumn && !$column.pk && $column.htmlType == "summernote") + +#break +#end +#end + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +#if($table.sub) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ${functionName}信息

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +#end +#foreach($column in $columns) +#set($field=$column.javaField) +#if($column.insert && !$column.pk) +#if(($column.usableColumn) || (!$column.superColumn)) +#set($parentheseIndex=$column.columnComment.indexOf("(")) +#if($parentheseIndex != -1) +#set($comment=$column.columnComment.substring(0, $parentheseIndex)) +#else +#set($comment=$column.columnComment) +#end +#set($dictType=$column.dictType) +#if("" != $treeParentCode && $column.javaField == $treeParentCode) +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +#set($BusinessName=$businessName.substring(0,1).toUpperCase() + ${businessName.substring(1)}) +#set($treeId = "${className}?.${treeCode}") + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +#elseif($column.htmlType == "input") +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +#elseif($column.htmlType == "upload") +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +#elseif($column.htmlType == "summernote") +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +#elseif($column.htmlType == "select" && "" != $dictType) +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +#elseif($column.htmlType == "select" && $dictType) +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + 代码生成请选择字典属性 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +#elseif($column.htmlType == "checkbox" && "" != $dictType) +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +#elseif($column.htmlType == "checkbox" && $dictType) +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + 代码生成请选择字典属性 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +#elseif($column.htmlType == "radio" && "" != $dictType) +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +#elseif($column.htmlType == "radio" && $dictType) +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 代码生成请选择字典属性 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +#elseif($column.htmlType == "datetime") +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +#elseif($column.htmlType == "textarea") +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +#end +#end +#end +#end +#if($table.sub) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ${subTable.functionName}信息

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +#end +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +#foreach($column in $columns) +#if($column.insert && !$column.superColumn && !$column.pk && $column.htmlType == "datetime") + +#break +#end +#end +#foreach($column in $columns) +#if($column.insert && !$column.superColumn && !$column.pk && $column.htmlType == "upload") + +#break +#end +#end +#foreach($column in $columns) +#if($column.insert && !$column.superColumn && !$column.pk && $column.htmlType == "summernote") + +#break +#end +#end + + + \ No newline at end of file diff --git a/alive-generator/target/classes/vm/html/edit.html.vm b/alive-generator/target/classes/vm/html/edit.html.vm new file mode 100644 index 0000000..99df9a5 --- /dev/null +++ b/alive-generator/target/classes/vm/html/edit.html.vm @@ -0,0 +1,389 @@ + + + + +#foreach($column in $columns) +#if($column.edit && !$column.superColumn && !$column.pk && $column.htmlType == "datetime") + +#break +#end +#end +#foreach($column in $columns) +#if($column.insert && !$column.superColumn && !$column.pk && $column.htmlType == "upload") + +#break +#end +#end +#foreach($column in $columns) +#if($column.insert && !$column.superColumn && !$column.pk && $column.htmlType == "summernote") + +#break +#end +#end + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +#if($table.sub) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ${functionName}信息

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +#end + +#foreach($column in $columns) +#if($column.edit && !$column.pk) +#if(($column.usableColumn) || (!$column.superColumn)) +#set($parentheseIndex=$column.columnComment.indexOf("(")) +#if($parentheseIndex != -1) +#set($comment=$column.columnComment.substring(0, $parentheseIndex)) +#else +#set($comment=$column.columnComment) +#end +#set($field=$column.javaField) +#set($dictType=$column.dictType) +#if("" != $treeParentCode && $column.javaField == $treeParentCode) +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +#set($BusinessName=$businessName.substring(0,1).toUpperCase() + ${businessName.substring(1)}) + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +#elseif($column.htmlType == "input") +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +#elseif($column.htmlType == "upload") +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +#elseif($column.htmlType == "summernote") +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +#elseif($column.htmlType == "select" && "" != $dictType) +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +#elseif($column.htmlType == "select" && $dictType) +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + 代码生成请选择字典属性 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +#elseif($column.htmlType == "checkbox" && "" != $dictType) +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +#elseif($column.htmlType == "checkbox" && $dictType) +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + 代码生成请选择字典属性 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +#elseif($column.htmlType == "radio" && "" != $dictType) +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +#elseif($column.htmlType == "radio" && $dictType) +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 代码生成请选择字典属性 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +#elseif($column.htmlType == "datetime") +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +#elseif($column.htmlType == "textarea") +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +#end +#end +#end +#end +#if($table.sub) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ${subTable.functionName}信息

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +#end +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +#foreach($column in $columns) +#if($column.edit && !$column.superColumn && !$column.pk && $column.htmlType == "datetime") + +#break +#end +#end +#foreach($column in $columns) +#if($column.insert && !$column.superColumn && !$column.pk && $column.htmlType == "upload") + +#break +#end +#end +#foreach($column in $columns) +#if($column.insert && !$column.superColumn && !$column.pk && $column.htmlType == "summernote") + +#break +#end +#end + + + \ No newline at end of file diff --git a/alive-generator/target/classes/vm/html/list-tree.html.vm b/alive-generator/target/classes/vm/html/list-tree.html.vm new file mode 100644 index 0000000..7a799ac --- /dev/null +++ b/alive-generator/target/classes/vm/html/list-tree.html.vm @@ -0,0 +1,151 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +#foreach($column in $columns) +#if($column.query) +#set($dictType=$column.dictType) +#set($AttrName=$column.javaField.substring(0,1).toUpperCase() + ${column.javaField.substring(1)}) +#set($parentheseIndex=$column.columnComment.indexOf("(")) +#if($parentheseIndex != -1) +#set($comment=$column.columnComment.substring(0, $parentheseIndex)) +#else +#set($comment=$column.columnComment) +#end +#if($column.htmlType == "input") +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +#elseif(($column.htmlType == "select" || $column.htmlType == "radio") && "" != $dictType) +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +#elseif(($column.htmlType == "select" || $column.htmlType == "radio") && $dictType) +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +#elseif($column.htmlType == "datetime") +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + + - + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +#end +#end +#end +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +  搜索 +  重置 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + \ No newline at end of file diff --git a/alive-generator/target/classes/vm/html/list.html.vm b/alive-generator/target/classes/vm/html/list.html.vm new file mode 100644 index 0000000..02ca747 --- /dev/null +++ b/alive-generator/target/classes/vm/html/list.html.vm @@ -0,0 +1,161 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +#foreach($column in $columns) +#if($column.query) +#set($dictType=$column.dictType) +#set($AttrName=$column.javaField.substring(0,1).toUpperCase() + ${column.javaField.substring(1)}) +#set($parentheseIndex=$column.columnComment.indexOf("(")) +#if($parentheseIndex != -1) +#set($comment=$column.columnComment.substring(0, $parentheseIndex)) +#else +#set($comment=$column.columnComment) +#end +#if($column.htmlType == "input") +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +#elseif(($column.htmlType == "select" || $column.htmlType == "radio") && "" != $dictType) +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +#elseif(($column.htmlType == "select" || $column.htmlType == "radio") && $dictType) +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +#elseif($column.htmlType == "datetime") + +#end +#end +#end +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + + - + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +  搜索 +  重置 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + \ No newline at end of file diff --git a/alive-generator/target/classes/vm/html/tree.html.vm b/alive-generator/target/classes/vm/html/tree.html.vm new file mode 100644 index 0000000..a52f886 --- /dev/null +++ b/alive-generator/target/classes/vm/html/tree.html.vm @@ -0,0 +1,51 @@ + + + + + + + + +#set($treeId = "${className}?." + $treeCode) +#set($treeName = "${className}?." + $treeName) + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + 展开 / + 折叠 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + \ No newline at end of file diff --git a/alive-generator/target/classes/vm/java/controller.java.vm b/alive-generator/target/classes/vm/java/controller.java.vm new file mode 100644 index 0000000..d399737 --- /dev/null +++ b/alive-generator/target/classes/vm/java/controller.java.vm @@ -0,0 +1,163 @@ +package ${packageName}.controller; + +import com.ruoyi.common.utils.StringUtils; +import java.util.List; +import com.ruoyi.common.core.domain.entity.SysUser; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.enums.BusinessType; +import ${packageName}.domain.${ClassName}; +import ${packageName}.service.${ClassName}Service; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.utils.poi.ExcelUtil; +#if($table.crud || $table.sub) +#elseif($table.tree) +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.common.core.domain.Ztree; +#end + +/** + * ${functionName}Controller + * + * @author ${author} + * @date ${datetime} + */ +@Controller +@RequestMapping("/project/${className}") +public class ${ClassName}Controller extends BaseController +{ + private String prefix = "project/${className}"; + + @Autowired + private ${ClassName}Service ${className}Service; + + @RequiresPermissions("project:${className}:view") + @GetMapping() + public String ${className}() + { + return prefix + "/${className}List"; + } + + /** + * 查询${functionName}列表 + */ + @RequiresPermissions("project:${className}:list") + @PostMapping("/list") + @ResponseBody + public TableDataInfo list(${ClassName} ${className}) + { + startPage(); + List<${ClassName}> list = ${className}Service.select${ClassName}List(${className}); + return getDataTable(list); + } + + /** + * 查询${functionName}对象 + */ + @RequiresPermissions("project:${className}:${className}") + @PostMapping("/${className}") + @ResponseBody + public ${ClassName} find${ClassName}(${ClassName} ${className}) + { + ${className} = ${className}Service.find${ClassName}(${className}); + return ${className}; + } + + /** + * 导出${functionName}列表 + */ + @RequiresPermissions("project:${className}:export") + @Log(title = "${functionName}", businessType = BusinessType.EXPORT) + @PostMapping("/export") + @ResponseBody + public AjaxResult export(${ClassName} ${className}) + { + List<${ClassName}> list = ${className}Service.select${ClassName}List(${className}); + ExcelUtil<${ClassName}> util = new ExcelUtil<${ClassName}>(${ClassName}.class); + return util.exportExcel(list, "${functionName}"); + } + + /** + * 新增${functionName} + */ + @GetMapping("/add") + public String add() + { + return prefix + "/${className}Add"; + } + /** + * 新增${functionName} + */ + @GetMapping(value = { "/add/{${pkColumn.javaField}}", "/add/" }) + public String add(@PathVariable(value = "${pkColumn.javaField}", required = false) Integer ${pkColumn.javaField}, ModelMap mmap) + { + if (StringUtils.isNotNull(${pkColumn.javaField})) + { + mmap.put("${className}", ${className}Service.select${ClassName}ById(${pkColumn.javaField})); + } + return prefix + "/${className}Add"; + } + + /** + * 新增保存${functionName} + */ + @RequiresPermissions("project:${className}:add") + @Log(title = "${functionName}", businessType = BusinessType.INSERT) + @PostMapping("/add") + @ResponseBody + public AjaxResult addSave(${ClassName} ${className}) + { + SysUser sysUser = getSysUser(); + ${className}.setCreateBy(sysUser.getUserName()); + return toAjax(${className}Service.updateOrAdd${ClassName}(${className})); + } + + /** + * 修改${functionName} + */ + @GetMapping("/edit/{${pkColumn.javaField}}") + public String edit(@PathVariable("${pkColumn.javaField}") Integer ${pkColumn.javaField}, ModelMap mmap) + { + ${ClassName} ${className} = ${className}Service.select${ClassName}ById(${pkColumn.javaField}); + mmap.put("${className}", ${className}); + return prefix + "/${className}Edit"; + } + + /** + * 修改保存${functionName} + */ + @RequiresPermissions("project:${className}:edit") + @Log(title = "${functionName}", businessType = BusinessType.UPDATE) + @PostMapping("/edit") + @ResponseBody + public AjaxResult editSave(${ClassName} ${className}) + { + SysUser sysUser = getSysUser(); + ${className}.setUpdateBy(sysUser.getUserName()); + return toAjax(${className}Service.updateOrAdd${ClassName}(${className})); + } + + + /** + * 删除${functionName} + */ + @RequiresPermissions("project:${className}:remove") + @Log(title = "${functionName}", businessType = BusinessType.DELETE) + @PostMapping( "/remove") + @ResponseBody + public AjaxResult remove(String ids) + { + return toAjax(${className}Service.delete${ClassName}ByIds(ids)); + } + +} diff --git a/alive-generator/target/classes/vm/java/domain.java.vm b/alive-generator/target/classes/vm/java/domain.java.vm new file mode 100644 index 0000000..7bdaa02 --- /dev/null +++ b/alive-generator/target/classes/vm/java/domain.java.vm @@ -0,0 +1,78 @@ +package ${packageName}.domain; + +#foreach ($import in $importList) +import ${import}; +#end +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import lombok.experimental.Accessors; +import com.ruoyi.common.core.domain.BaseEntity; +import lombok.Getter; +import lombok.Setter; +import java.util.Date; +#if($table.crud || $table.sub) +import com.ruoyi.common.core.domain.BaseEntity; +#elseif($table.tree) +import com.ruoyi.common.core.domain.TreeEntity; +#end + +/** + * ${functionName}对象 ${tableName} + * + * @author ${author} + * @date ${datetime} + */ +#if($table.crud || $table.sub) +#set($Entity="BaseEntity") +#elseif($table.tree) +#set($Entity="TreeEntity") +#end +@Setter +@Getter +@Accessors(chain = true) +public class ${ClassName} extends BaseEntity +{ + private static final long serialVersionUID = 1L; + +#foreach ($column in $columns) +#if(!$table.isSuperColumn($column.javaField)) + /** + * $column.columnComment + */ + #if($column.list) +#set($parentheseIndex=$column.columnComment.indexOf("(")) +#if($parentheseIndex != -1) +#set($comment=$column.columnComment.substring(0, $parentheseIndex)) +#else +#set($comment=$column.columnComment) +#end +#if($parentheseIndex != -1) +@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") +#elseif($column.javaType == 'Date') +@Excel(name = "${comment}", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss") +#else +@Excel(name = "${comment}") +#end +#end + private $column.javaType $column.javaField; + +#end +#end +#if($table.sub) + /** + * $table.subTable.functionName信息 + */ +private List<${subClassName}> ${subclassName}List; + +#end +#foreach ($column in $columns) +#if(!$table.isSuperColumn($column.javaField)) +#if($column.javaField.length() > 2 && $column.javaField.substring(1,2).matches("[A-Z]")) +#set($AttrName=$column.javaField) +#else +#set($AttrName=$column.javaField.substring(0,1).toUpperCase() + ${column.javaField.substring(1)}) +#end +#end +#end +} diff --git a/alive-generator/target/classes/vm/java/mapper.java.vm b/alive-generator/target/classes/vm/java/mapper.java.vm new file mode 100644 index 0000000..6567f24 --- /dev/null +++ b/alive-generator/target/classes/vm/java/mapper.java.vm @@ -0,0 +1,64 @@ +package ${packageName}.mapper; + +import java.util.List; +import ${packageName}.domain.${ClassName}; +#if($table.sub) +import ${packageName}.domain.${subClassName}; +#end + +/** + * ${functionName}Mapper接口 + * + * @author ${author} + * @date ${datetime} + */ +public interface ${ClassName}Mapper +{ + /** + * 查询${functionName} + * + * @param ${pkColumn.javaField} ${functionName}ID + * @return ${functionName} + */ + ${ClassName} select${ClassName}ById(Integer ${pkColumn.javaField}); + + /** + * 查询${functionName}列表 + * + * @param ${className} ${functionName} + * @return ${functionName}集合 + */ + List<${ClassName}> select${ClassName}List(${ClassName} ${className}); + + /** + * 查询${functionName}对象 + * + * @param ${className} ${functionName} + * @return ${functionName} + */ + ${ClassName} find${ClassName}(${ClassName} ${className}); + + /** + * 新增${functionName} + * + * @param ${className} ${functionName} + * @return 结果 + */ + int insert${ClassName}(${ClassName} ${className}); + + /** + * 修改${functionName} + * + * @param ${className} ${functionName} + * @return 结果 + */ + int update${ClassName}(${ClassName} ${className}); + + /** + * 批量删除${functionName} + * + * @param ${pkColumn.javaField}s 需要删除的数据ID + * @return 结果 + */ + int delete${ClassName}ByIds(String[] ${pkColumn.javaField}s); +} diff --git a/alive-generator/target/classes/vm/java/service.java.vm b/alive-generator/target/classes/vm/java/service.java.vm new file mode 100644 index 0000000..2219657 --- /dev/null +++ b/alive-generator/target/classes/vm/java/service.java.vm @@ -0,0 +1,57 @@ +package ${packageName}.service; + +import java.util.List; +import ${packageName}.domain.${ClassName}; +#if($table.tree) +import com.ruoyi.common.core.domain.Ztree; +#end + +/** + * ${functionName}Service接口 + * + * @author ${author} + * @date ${datetime} + */ +public interface ${ClassName}Service +{ + /** + * 查询${functionName} + * + * @param ${pkColumn.javaField} ${functionName}ID + * @return ${functionName} + */ + ${ClassName} select${ClassName}ById(Integer ${pkColumn.javaField}); + + /** + * 查询${functionName}列表 + * + * @param ${className} ${functionName} + * @return ${functionName}集合 + */ + List<${ClassName}> select${ClassName}List(${ClassName} ${className}); + + /** + * 查询${functionName}对象 + * + * @param ${className} ${functionName} + * @return ${functionName} + */ + ${ClassName} find${ClassName}(${ClassName} ${className}); + + /** + * 修改或者添加${functionName} + * + * @param ${className} ${functionName} + * @return 结果 + */ + int updateOrAdd${ClassName}(${ClassName} ${className}); + + /** + * 批量删除${functionName} + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + int delete${ClassName}ByIds(String ids); + +} diff --git a/alive-generator/target/classes/vm/java/serviceImpl.java.vm b/alive-generator/target/classes/vm/java/serviceImpl.java.vm new file mode 100644 index 0000000..f54d839 --- /dev/null +++ b/alive-generator/target/classes/vm/java/serviceImpl.java.vm @@ -0,0 +1,123 @@ +package ${packageName}.service.impl; + +import java.util.List; +#if($table.tree) +import java.util.ArrayList; +import com.ruoyi.common.core.domain.Ztree; +#end +#foreach ($column in $columns) +#if($column.javaField == 'createTime' || $column.javaField == 'updateTime') +import com.ruoyi.common.utils.DateUtils; +#break +#end +#end +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +#if($table.sub) +import java.util.ArrayList; +import com.ruoyi.common.utils.StringUtils; +import org.springframework.transaction.annotation.Transactional; +import ${packageName}.domain.${subClassName}; +#end +import ${packageName}.mapper.${ClassName}Mapper; +import ${packageName}.domain.${ClassName}; +import com.ruoyi.common.core.text.Convert; + +/** + * ${functionName}Service业务层处理 + * + * @author ${author} + * @date ${datetime} + */ +@Service +public class ${ClassName}Service +{ + @Autowired + private ${ClassName}Mapper ${className}Mapper; + + /** + * 查询${functionName} + * + * @param ${pkColumn.javaField} ${functionName}ID + * @return ${functionName} + */ + public ${ClassName} select${ClassName}ById(Integer ${pkColumn.javaField}) + { + return ${className}Mapper.select${ClassName}ById(${pkColumn.javaField}); + } + + /** + * 查询${functionName}列表 + * + * @param ${className} ${functionName} + * @return ${functionName} + */ + public List<${ClassName}> select${ClassName}List(${ClassName} ${className}) + { + List<${ClassName}> ${className}List = ${className}Mapper.select${ClassName}List(${className}); + return ${className}List; + } + + /** + * 查询${functionName}对象 + * + * @param ${className} ${functionName} + * @return ${functionName} + */ + public ${ClassName} find${ClassName}(${ClassName} ${className}) + { + ${className} = ${className}Mapper.find${ClassName}(${className}); + return ${className}; + } + + /** + * 修改或者添加${functionName} + * + * @param ${className} ${functionName} + * @return 结果 + */ +#if($table.sub) + @Transactional +#end + public int updateOrAdd${ClassName}(${ClassName} ${className}) { + if (${className}.getId() != null){ + #foreach ($column in $columns) + #if($column.javaField == 'updateTime') + ${className}.setUpdateTime(DateUtils.getNowDate()); + #end + #end + #if($table.sub) + ${className}Mapper.delete${subClassName}By${subTableFkClassName}(${className}.get${pkColumn.capJavaField}()) + ; + insert${subClassName}(${className}); + #end + return ${className}Mapper.update${ClassName}(${className}); + }else{ + ${className}.setCreateTime(DateUtils.getNowDate()); + #if($table.sub) + int rows = ${className}Mapper.insert${ClassName}(${className}); + insert${subClassName}(${className}); + return rows; + #else + return ${className}Mapper.insert${ClassName}(${className}); + #end + } + } + + /** + * 删除${functionName}对象 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + #if($table.sub) + @Transactional + #end + public int delete${ClassName}ByIds(String ids) + { + #if($table.sub) + ${className}Mapper.delete${subClassName}By${subTableFkClassName}s(Convert.toStrArray(ids)); + #end + return ${className}Mapper.delete${ClassName}ByIds(Convert.toStrArray(ids)); + } +} diff --git a/alive-generator/target/classes/vm/java/sub-domain.java.vm b/alive-generator/target/classes/vm/java/sub-domain.java.vm new file mode 100644 index 0000000..c1b6fe9 --- /dev/null +++ b/alive-generator/target/classes/vm/java/sub-domain.java.vm @@ -0,0 +1,66 @@ +package ${packageName}.domain; + +#foreach ($import in $subImportList) +import ${import}; +#end +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.BaseEntity; +import lombok.Getter; +import lombok.Setter; + +/** + * ${subTable.functionName}对象 ${subTableName} + * + * @author ${author} + * @date ${datetime} + */ +@Setter +@Getter +public class ${subClassName} extends BaseEntity +{ + private static final long serialVersionUID = 1L; + +#foreach ($column in $subTable.columns) +#if(!$table.isSuperColumn($column.javaField)) + /** $column.columnComment */ +#if($column.list) +#set($parentheseIndex=$column.columnComment.indexOf("(")) +#if($parentheseIndex != -1) +#set($comment=$column.columnComment.substring(0, $parentheseIndex)) +#else +#set($comment=$column.columnComment) +#end +#if($parentheseIndex != -1) + @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") +#elseif($column.javaType == 'Date') + @Excel(name = "${comment}", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss") +#else + @Excel(name = "${comment}") +#end +#end + private $column.javaType $column.javaField; + +#end +#end +#foreach ($column in $subTable.columns) +#if(!$table.isSuperColumn($column.javaField)) +#if($column.javaField.length() > 2 && $column.javaField.substring(1,2).matches("[A-Z]")) +#set($AttrName=$column.javaField) +#else +#set($AttrName=$column.javaField.substring(0,1).toUpperCase() + ${column.javaField.substring(1)}) +#end + public void set${AttrName}($column.javaType $column.javaField) + { + this.$column.javaField = $column.javaField; + } + + public $column.javaType get${AttrName}() + { + return $column.javaField; + } +#end +#end + +} diff --git a/alive-generator/target/classes/vm/sql/sql.vm b/alive-generator/target/classes/vm/sql/sql.vm new file mode 100644 index 0000000..9d0019c --- /dev/null +++ b/alive-generator/target/classes/vm/sql/sql.vm @@ -0,0 +1,22 @@ +-- 菜单 SQL +insert into sys_menu (menu_name, parent_id, order_num, url, menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark) +values('${functionName}', '${parentMenuId}', '1', '/project/${businessName}', 'C', '0', '${permissionPrefix}:view', '#', 'admin', '2018-03-01', 'ry', '2018-03-01', '${functionName}菜单'); + +-- 按钮父菜单ID +SELECT @parentId := LAST_INSERT_ID(); + +-- 按钮 SQL +insert into sys_menu (menu_name, parent_id, order_num, url, menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark) +values('${functionName}查询', @parentId, '1', '#', 'F', '0', '${permissionPrefix}:list', '#', 'admin', '2018-03-01', 'ry', '2018-03-01', ''); + +insert into sys_menu (menu_name, parent_id, order_num, url, menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark) +values('${functionName}新增', @parentId, '2', '#', 'F', '0', '${permissionPrefix}:add', '#', 'admin', '2018-03-01', 'ry', '2018-03-01', ''); + +insert into sys_menu (menu_name, parent_id, order_num, url, menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark) +values('${functionName}修改', @parentId, '3', '#', 'F', '0', '${permissionPrefix}:edit', '#', 'admin', '2018-03-01', 'ry', '2018-03-01', ''); + +insert into sys_menu (menu_name, parent_id, order_num, url, menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark) +values('${functionName}删除', @parentId, '4', '#', 'F', '0', '${permissionPrefix}:remove', '#', 'admin', '2018-03-01', 'ry', '2018-03-01', ''); + +insert into sys_menu (menu_name, parent_id, order_num, url, menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark) +values('${functionName}导出', @parentId, '5', '#', 'F', '0', '${permissionPrefix}:export', '#', 'admin', '2018-03-01', 'ry', '2018-03-01', ''); diff --git a/alive-generator/target/classes/vm/xml/mapper.xml.vm b/alive-generator/target/classes/vm/xml/mapper.xml.vm new file mode 100644 index 0000000..5c08eb7 --- /dev/null +++ b/alive-generator/target/classes/vm/xml/mapper.xml.vm @@ -0,0 +1,143 @@ + + + + + +#foreach ($column in $columns) + +#end +#if($table.tree) + +#end + +#if($table.sub) + + + + + + +#foreach ($column in $subTable.columns) + +#end + +#end + + + select#foreach($column in $columns) $column.columnName#if($foreach.count != $columns.size()),#end#end from ${tableName} + + + + + + + + + + insert into ${tableName} + +#foreach($column in $columns) +#if($column.columnName != $pkColumn.columnName || !$pkColumn.increment) + $column.columnName, +#end +#end + + +#foreach($column in $columns) +#if($column.columnName != $pkColumn.columnName || !$pkColumn.increment) + #{$column.javaField}, +#end +#end + + + + + update ${tableName} + +#foreach($column in $columns) +#if($column.columnName != $pkColumn.columnName) + $column.columnName = #{$column.javaField}, +#end +#end + + where ${pkColumn.columnName} = #{${pkColumn.javaField}} + + + + delete from ${tableName} where ${pkColumn.columnName} in + + #{${pkColumn.javaField}} + + + + \ No newline at end of file diff --git a/alive-generator/target/maven-archiver/pom.properties b/alive-generator/target/maven-archiver/pom.properties new file mode 100644 index 0000000..98faced --- /dev/null +++ b/alive-generator/target/maven-archiver/pom.properties @@ -0,0 +1,5 @@ +#Generated by Maven +#Mon May 27 15:35:33 GMT+08:00 2024 +version=4.7.2 +groupId=com.alive +artifactId=alive-generator diff --git a/alive-generator/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst b/alive-generator/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst new file mode 100644 index 0000000..6045629 --- /dev/null +++ b/alive-generator/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst @@ -0,0 +1,13 @@ +com\ruoyi\generator\service\IGenTableColumnService.class +com\ruoyi\generator\service\impl\GenTableColumnServiceImpl.class +com\ruoyi\generator\controller\GenController.class +com\ruoyi\generator\domain\GenTable.class +com\ruoyi\generator\util\VelocityUtils.class +com\ruoyi\generator\mapper\GenTableMapper.class +com\ruoyi\generator\mapper\GenTableColumnMapper.class +com\ruoyi\generator\util\GenUtils.class +com\ruoyi\generator\util\VelocityInitializer.class +com\ruoyi\generator\domain\GenTableColumn.class +com\ruoyi\generator\service\IGenTableService.class +com\ruoyi\generator\config\GenConfig.class +com\ruoyi\generator\service\impl\GenTableServiceImpl.class diff --git a/alive-generator/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst b/alive-generator/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst new file mode 100644 index 0000000..193a742 --- /dev/null +++ b/alive-generator/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst @@ -0,0 +1,13 @@ +E:\alive\alive-admin\alive-generator\src\main\java\com\ruoyi\generator\controller\GenController.java +E:\alive\alive-admin\alive-generator\src\main\java\com\ruoyi\generator\mapper\GenTableMapper.java +E:\alive\alive-admin\alive-generator\src\main\java\com\ruoyi\generator\service\IGenTableColumnService.java +E:\alive\alive-admin\alive-generator\src\main\java\com\ruoyi\generator\service\IGenTableService.java +E:\alive\alive-admin\alive-generator\src\main\java\com\ruoyi\generator\config\GenConfig.java +E:\alive\alive-admin\alive-generator\src\main\java\com\ruoyi\generator\domain\GenTable.java +E:\alive\alive-admin\alive-generator\src\main\java\com\ruoyi\generator\util\GenUtils.java +E:\alive\alive-admin\alive-generator\src\main\java\com\ruoyi\generator\mapper\GenTableColumnMapper.java +E:\alive\alive-admin\alive-generator\src\main\java\com\ruoyi\generator\service\impl\GenTableColumnServiceImpl.java +E:\alive\alive-admin\alive-generator\src\main\java\com\ruoyi\generator\util\VelocityUtils.java +E:\alive\alive-admin\alive-generator\src\main\java\com\ruoyi\generator\service\impl\GenTableServiceImpl.java +E:\alive\alive-admin\alive-generator\src\main\java\com\ruoyi\generator\util\VelocityInitializer.java +E:\alive\alive-admin\alive-generator\src\main\java\com\ruoyi\generator\domain\GenTableColumn.java diff --git a/alive-quartz/pom.xml b/alive-quartz/pom.xml new file mode 100644 index 0000000..a20d7a6 --- /dev/null +++ b/alive-quartz/pom.xml @@ -0,0 +1,46 @@ + + + + alive + com.alive + 4.7.2 + + 4.0.0 + + alive-quartz + + + quartz定时任务 + + + + + + + org.quartz-scheduler + quartz + + + com.mchange + c3p0 + + + + + + + com.alive + alive-common + + + + + com.alive + alive-server + + + + + \ No newline at end of file diff --git a/alive-quartz/src/main/java/com/ruoyi/quartz/config/ScheduleConfig.java b/alive-quartz/src/main/java/com/ruoyi/quartz/config/ScheduleConfig.java new file mode 100644 index 0000000..3f2cb5f --- /dev/null +++ b/alive-quartz/src/main/java/com/ruoyi/quartz/config/ScheduleConfig.java @@ -0,0 +1,57 @@ +//package com.ruoyi.quartz.config; +// +//import org.springframework.context.annotation.Bean; +//import org.springframework.context.annotation.Configuration; +//import org.springframework.scheduling.quartz.SchedulerFactoryBean; +//import javax.sql.DataSource; +//import java.util.Properties; +// +///** +// * 定时任务配置(单机部署建议默认走内存,如需集群需要创建qrtz数据库表/打开类注释) +// * +// * @author ruoyi +// */ +//@Configuration +//public class ScheduleConfig +//{ +// @Bean +// public SchedulerFactoryBean schedulerFactoryBean(DataSource dataSource) +// { +// SchedulerFactoryBean factory = new SchedulerFactoryBean(); +// factory.setDataSource(dataSource); +// +// // quartz参数 +// Properties prop = new Properties(); +// prop.put("org.quartz.scheduler.instanceName", "RuoyiScheduler"); +// prop.put("org.quartz.scheduler.instanceId", "AUTO"); +// // 线程池配置 +// prop.put("org.quartz.threadPool.class", "org.quartz.simpl.SimpleThreadPool"); +// prop.put("org.quartz.threadPool.threadCount", "20"); +// prop.put("org.quartz.threadPool.threadPriority", "5"); +// // JobStore配置 +// prop.put("org.quartz.jobStore.class", "org.springframework.scheduling.quartz.LocalDataSourceJobStore"); +// // 集群配置 +// prop.put("org.quartz.jobStore.isClustered", "true"); +// prop.put("org.quartz.jobStore.clusterCheckinInterval", "15000"); +// prop.put("org.quartz.jobStore.maxMisfiresToHandleAtATime", "1"); +// prop.put("org.quartz.jobStore.txIsolationLevelSerializable", "true"); +// +// // sqlserver 启用 +// // prop.put("org.quartz.jobStore.selectWithLockSQL", "SELECT * FROM {0}LOCKS UPDLOCK WHERE LOCK_NAME = ?"); +// prop.put("org.quartz.jobStore.misfireThreshold", "12000"); +// prop.put("org.quartz.jobStore.tablePrefix", "QRTZ_"); +// factory.setQuartzProperties(prop); +// +// factory.setSchedulerName("RuoyiScheduler"); +// // 延时启动 +// factory.setStartupDelay(1); +// factory.setApplicationContextSchedulerContextKey("applicationContextKey"); +// // 可选,QuartzScheduler +// // 启动时更新己存在的Job,这样就不用每次修改targetObject后删除qrtz_job_details表对应记录了 +// factory.setOverwriteExistingJobs(true); +// // 设置自动启动,默认为true +// factory.setAutoStartup(true); +// +// return factory; +// } +//} diff --git a/alive-quartz/src/main/java/com/ruoyi/quartz/controller/SysJobController.java b/alive-quartz/src/main/java/com/ruoyi/quartz/controller/SysJobController.java new file mode 100644 index 0000000..f0523b5 --- /dev/null +++ b/alive-quartz/src/main/java/com/ruoyi/quartz/controller/SysJobController.java @@ -0,0 +1,247 @@ +package com.ruoyi.quartz.controller; + +import java.util.List; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.quartz.SchedulerException; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.bind.annotation.ResponseBody; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.constant.Constants; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.common.exception.job.TaskException; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.common.utils.poi.ExcelUtil; +import com.ruoyi.quartz.domain.SysJob; +import com.ruoyi.quartz.service.ISysJobService; +import com.ruoyi.quartz.util.CronUtils; +import com.ruoyi.quartz.util.ScheduleUtils; + +/** + * 调度任务信息操作处理 + * + * @author ruoyi + */ +@Controller +@RequestMapping("/monitor/job") +public class SysJobController extends BaseController +{ + private String prefix = "monitor/job"; + + @Autowired + private ISysJobService jobService; + + @RequiresPermissions("monitor:job:view") + @GetMapping() + public String job() + { + return prefix + "/job"; + } + + @RequiresPermissions("monitor:job:list") + @PostMapping("/list") + @ResponseBody + public TableDataInfo list(SysJob job) + { + startPage(); + List list = jobService.selectJobList(job); + return getDataTable(list); + } + + @Log(title = "定时任务", businessType = BusinessType.EXPORT) + @RequiresPermissions("monitor:job:export") + @PostMapping("/export") + @ResponseBody + public AjaxResult export(SysJob job) + { + List list = jobService.selectJobList(job); + ExcelUtil util = new ExcelUtil(SysJob.class); + return util.exportExcel(list, "定时任务"); + } + + @Log(title = "定时任务", businessType = BusinessType.DELETE) + @RequiresPermissions("monitor:job:remove") + @PostMapping("/remove") + @ResponseBody + public AjaxResult remove(String ids) throws SchedulerException + { + jobService.deleteJobByIds(ids); + return success(); + } + + @RequiresPermissions("monitor:job:detail") + @GetMapping("/detail/{jobId}") + public String detail(@PathVariable("jobId") Long jobId, ModelMap mmap) + { + mmap.put("name", "job"); + mmap.put("job", jobService.selectJobById(jobId)); + return prefix + "/detail"; + } + + /** + * 任务调度状态修改 + */ + @Log(title = "定时任务", businessType = BusinessType.UPDATE) + @RequiresPermissions("monitor:job:changeStatus") + @PostMapping("/changeStatus") + @ResponseBody + public AjaxResult changeStatus(SysJob job) throws SchedulerException + { + SysJob newJob = jobService.selectJobById(job.getJobId()); + newJob.setStatus(job.getStatus()); + return toAjax(jobService.changeStatus(newJob)); + } + + /** + * 任务调度立即执行一次 + */ + @Log(title = "定时任务", businessType = BusinessType.UPDATE) + @RequiresPermissions("monitor:job:changeStatus") + @PostMapping("/run") + @ResponseBody + public AjaxResult run(SysJob job) throws SchedulerException + { + jobService.run(job); + return success(); + } + + /** + * 新增调度 + */ + @GetMapping("/add") + public String add() + { + return prefix + "/add"; + } + + /** + * 新增保存调度 + */ + @Log(title = "定时任务", businessType = BusinessType.INSERT) + @RequiresPermissions("monitor:job:add") + @PostMapping("/add") + @ResponseBody + public AjaxResult addSave(@Validated SysJob job) throws SchedulerException, TaskException + { + if (!CronUtils.isValid(job.getCronExpression())) + { + return error("新增任务'" + job.getJobName() + "'失败,Cron表达式不正确"); + } + else if (StringUtils.containsIgnoreCase(job.getInvokeTarget(), Constants.LOOKUP_RMI)) + { + return error("新增任务'" + job.getJobName() + "'失败,目标字符串不允许'rmi'调用"); + } + else if (StringUtils.containsAnyIgnoreCase(job.getInvokeTarget(), new String[] { Constants.LOOKUP_LDAP, Constants.LOOKUP_LDAPS })) + { + return error("新增任务'" + job.getJobName() + "'失败,目标字符串不允许'ldap(s)'调用"); + } + else if (StringUtils.containsAnyIgnoreCase(job.getInvokeTarget(), new String[] { Constants.HTTP, Constants.HTTPS })) + { + return error("新增任务'" + job.getJobName() + "'失败,目标字符串不允许'http(s)'调用"); + } + else if (StringUtils.containsAnyIgnoreCase(job.getInvokeTarget(), Constants.JOB_ERROR_STR)) + { + return error("新增任务'" + job.getJobName() + "'失败,目标字符串存在违规"); + } + else if (!ScheduleUtils.whiteList(job.getInvokeTarget())) + { + return error("新增任务'" + job.getJobName() + "'失败,目标字符串不在白名单内"); + } + job.setCreateBy(getLoginName()); + return toAjax(jobService.insertJob(job)); + } + + /** + * 修改调度 + */ + @RequiresPermissions("monitor:job:edit") + @GetMapping("/edit/{jobId}") + public String edit(@PathVariable("jobId") Long jobId, ModelMap mmap) + { + mmap.put("job", jobService.selectJobById(jobId)); + return prefix + "/edit"; + } + + /** + * 修改保存调度 + */ + @Log(title = "定时任务", businessType = BusinessType.UPDATE) + @RequiresPermissions("monitor:job:edit") + @PostMapping("/edit") + @ResponseBody + public AjaxResult editSave(@Validated SysJob job) throws SchedulerException, TaskException + { + if (!CronUtils.isValid(job.getCronExpression())) + { + return error("修改任务'" + job.getJobName() + "'失败,Cron表达式不正确"); + } + else if (StringUtils.containsIgnoreCase(job.getInvokeTarget(), Constants.LOOKUP_RMI)) + { + return error("修改任务'" + job.getJobName() + "'失败,目标字符串不允许'rmi'调用"); + } + else if (StringUtils.containsAnyIgnoreCase(job.getInvokeTarget(), new String[] { Constants.LOOKUP_LDAP, Constants.LOOKUP_LDAPS })) + { + return error("修改任务'" + job.getJobName() + "'失败,目标字符串不允许'ldap'调用"); + } + else if (StringUtils.containsAnyIgnoreCase(job.getInvokeTarget(), new String[] { Constants.HTTP, Constants.HTTPS })) + { + return error("修改任务'" + job.getJobName() + "'失败,目标字符串不允许'http(s)'调用"); + } + else if (StringUtils.containsAnyIgnoreCase(job.getInvokeTarget(), Constants.JOB_ERROR_STR)) + { + return error("修改任务'" + job.getJobName() + "'失败,目标字符串存在违规"); + } + else if (!ScheduleUtils.whiteList(job.getInvokeTarget())) + { + return error("修改任务'" + job.getJobName() + "'失败,目标字符串不在白名单内"); + } + return toAjax(jobService.updateJob(job)); + } + + /** + * 校验cron表达式是否有效 + */ + @PostMapping("/checkCronExpressionIsValid") + @ResponseBody + public boolean checkCronExpressionIsValid(SysJob job) + { + return jobService.checkCronExpressionIsValid(job.getCronExpression()); + } + + /** + * Cron表达式在线生成 + */ + @GetMapping("/cron") + public String cron() + { + return prefix + "/cron"; + } + + /** + * 查询cron表达式近5次的执行时间 + */ + @GetMapping("/queryCronExpression") + @ResponseBody + public AjaxResult queryCronExpression(@RequestParam(value = "cronExpression", required = false) String cronExpression) + { + if (jobService.checkCronExpressionIsValid(cronExpression)) + { + List dateList = CronUtils.getRecentTriggerTime(cronExpression); + return success(dateList); + } + else + { + return error("表达式无效"); + } + } +} diff --git a/alive-quartz/src/main/java/com/ruoyi/quartz/controller/SysJobLogController.java b/alive-quartz/src/main/java/com/ruoyi/quartz/controller/SysJobLogController.java new file mode 100644 index 0000000..f44533c --- /dev/null +++ b/alive-quartz/src/main/java/com/ruoyi/quartz/controller/SysJobLogController.java @@ -0,0 +1,103 @@ +package com.ruoyi.quartz.controller; + +import java.util.List; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.bind.annotation.ResponseBody; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.common.utils.poi.ExcelUtil; +import com.ruoyi.quartz.domain.SysJob; +import com.ruoyi.quartz.domain.SysJobLog; +import com.ruoyi.quartz.service.ISysJobLogService; +import com.ruoyi.quartz.service.ISysJobService; + +/** + * 调度日志操作处理 + * + * @author ruoyi + */ +@Controller +@RequestMapping("/monitor/jobLog") +public class SysJobLogController extends BaseController +{ + private String prefix = "monitor/job"; + + @Autowired + private ISysJobService jobService; + + @Autowired + private ISysJobLogService jobLogService; + + @RequiresPermissions("monitor:job:view") + @GetMapping() + public String jobLog(@RequestParam(value = "jobId", required = false) Long jobId, ModelMap mmap) + { + if (StringUtils.isNotNull(jobId)) + { + SysJob job = jobService.selectJobById(jobId); + mmap.put("job", job); + } + return prefix + "/jobLog"; + } + + @RequiresPermissions("monitor:job:list") + @PostMapping("/list") + @ResponseBody + public TableDataInfo list(SysJobLog jobLog) + { + startPage(); + List list = jobLogService.selectJobLogList(jobLog); + return getDataTable(list); + } + + @Log(title = "调度日志", businessType = BusinessType.EXPORT) + @RequiresPermissions("monitor:job:export") + @PostMapping("/export") + @ResponseBody + public AjaxResult export(SysJobLog jobLog) + { + List list = jobLogService.selectJobLogList(jobLog); + ExcelUtil util = new ExcelUtil(SysJobLog.class); + return util.exportExcel(list, "调度日志"); + } + + @Log(title = "调度日志", businessType = BusinessType.DELETE) + @RequiresPermissions("monitor:job:remove") + @PostMapping("/remove") + @ResponseBody + public AjaxResult remove(String ids) + { + return toAjax(jobLogService.deleteJobLogByIds(ids)); + } + + @RequiresPermissions("monitor:job:detail") + @GetMapping("/detail/{jobLogId}") + public String detail(@PathVariable("jobLogId") Long jobLogId, ModelMap mmap) + { + mmap.put("name", "jobLog"); + mmap.put("jobLog", jobLogService.selectJobLogById(jobLogId)); + return prefix + "/detail"; + } + + @Log(title = "调度日志", businessType = BusinessType.CLEAN) + @RequiresPermissions("monitor:job:remove") + @PostMapping("/clean") + @ResponseBody + public AjaxResult clean() + { + jobLogService.cleanJobLog(); + return success(); + } +} diff --git a/alive-quartz/src/main/java/com/ruoyi/quartz/domain/SysJob.java b/alive-quartz/src/main/java/com/ruoyi/quartz/domain/SysJob.java new file mode 100644 index 0000000..ea63675 --- /dev/null +++ b/alive-quartz/src/main/java/com/ruoyi/quartz/domain/SysJob.java @@ -0,0 +1,169 @@ +package com.ruoyi.quartz.domain; + +import java.io.Serializable; +import java.util.Date; +import javax.validation.constraints.*; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.annotation.Excel.ColumnType; +import com.ruoyi.common.constant.ScheduleConstants; +import com.ruoyi.common.core.domain.BaseEntity; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.quartz.util.CronUtils; + +/** + * 定时任务调度表 sys_job + * + * @author ruoyi + */ +public class SysJob extends BaseEntity implements Serializable +{ + private static final long serialVersionUID = 1L; + + /** 任务ID */ + @Excel(name = "任务序号", cellType = ColumnType.NUMERIC) + private Long jobId; + + /** 任务名称 */ + @Excel(name = "任务名称") + private String jobName; + + /** 任务组名 */ + @Excel(name = "任务组名") + private String jobGroup; + + /** 调用目标字符串 */ + @Excel(name = "调用目标字符串") + private String invokeTarget; + + /** cron执行表达式 */ + @Excel(name = "执行表达式 ") + private String cronExpression; + + /** cron计划策略 */ + @Excel(name = "计划策略 ", readConverterExp = "0=默认,1=立即触发执行,2=触发一次执行,3=不触发立即执行") + private String misfirePolicy = ScheduleConstants.MISFIRE_DEFAULT; + + /** 是否并发执行(0允许 1禁止) */ + @Excel(name = "并发执行", readConverterExp = "0=允许,1=禁止") + private String concurrent; + + /** 任务状态(0正常 1暂停) */ + @Excel(name = "任务状态", readConverterExp = "0=正常,1=暂停") + private String status; + + public Long getJobId() + { + return jobId; + } + + public void setJobId(Long jobId) + { + this.jobId = jobId; + } + + @NotBlank(message = "任务名称不能为空") + @Size(min = 0, max = 64, message = "任务名称不能超过64个字符") + public String getJobName() + { + return jobName; + } + + public void setJobName(String jobName) + { + this.jobName = jobName; + } + + public String getJobGroup() + { + return jobGroup; + } + + public void setJobGroup(String jobGroup) + { + this.jobGroup = jobGroup; + } + + @NotBlank(message = "调用目标字符串不能为空") + @Size(min = 0, max = 1000, message = "调用目标字符串长度不能超过500个字符") + public String getInvokeTarget() + { + return invokeTarget; + } + + public void setInvokeTarget(String invokeTarget) + { + this.invokeTarget = invokeTarget; + } + + @NotBlank(message = "Cron执行表达式不能为空") + @Size(min = 0, max = 255, message = "Cron执行表达式不能超过255个字符") + public String getCronExpression() + { + return cronExpression; + } + + public void setCronExpression(String cronExpression) + { + this.cronExpression = cronExpression; + } + + public Date getNextValidTime() + { + if (StringUtils.isNotEmpty(cronExpression)) + { + return CronUtils.getNextExecution(cronExpression); + } + return null; + } + + public String getMisfirePolicy() + { + return misfirePolicy; + } + + public void setMisfirePolicy(String misfirePolicy) + { + this.misfirePolicy = misfirePolicy; + } + + public String getConcurrent() + { + return concurrent; + } + + public void setConcurrent(String concurrent) + { + this.concurrent = concurrent; + } + + public String getStatus() + { + return status; + } + + public void setStatus(String status) + { + this.status = status; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("jobId", getJobId()) + .append("jobName", getJobName()) + .append("jobGroup", getJobGroup()) + .append("cronExpression", getCronExpression()) + .append("nextValidTime", getNextValidTime()) + .append("misfirePolicy", getMisfirePolicy()) + .append("concurrent", getConcurrent()) + .append("status", getStatus()) + .append("createBy", getCreateBy()) + .append("createTime", getCreateTime()) + .append("updateBy", getUpdateBy()) + .append("updateTime", getUpdateTime()) + .append("remark", getRemark()) + .toString(); + } +} \ No newline at end of file diff --git a/alive-quartz/src/main/java/com/ruoyi/quartz/domain/SysJobLog.java b/alive-quartz/src/main/java/com/ruoyi/quartz/domain/SysJobLog.java new file mode 100644 index 0000000..89602bd --- /dev/null +++ b/alive-quartz/src/main/java/com/ruoyi/quartz/domain/SysJobLog.java @@ -0,0 +1,155 @@ +package com.ruoyi.quartz.domain; + +import java.util.Date; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.BaseEntity; + +/** + * 定时任务调度日志表 sys_job_log + * + * @author ruoyi + */ +public class SysJobLog extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** ID */ + @Excel(name = "日志序号") + private Long jobLogId; + + /** 任务名称 */ + @Excel(name = "任务名称") + private String jobName; + + /** 任务组名 */ + @Excel(name = "任务组名") + private String jobGroup; + + /** 调用目标字符串 */ + @Excel(name = "调用目标字符串") + private String invokeTarget; + + /** 日志信息 */ + @Excel(name = "日志信息") + private String jobMessage; + + /** 执行状态(0正常 1失败) */ + @Excel(name = "执行状态", readConverterExp = "0=正常,1=失败") + private String status; + + /** 异常信息 */ + @Excel(name = "异常信息") + private String exceptionInfo; + + /** 开始时间 */ + private Date startTime; + + /** 结束时间 */ + private Date endTime; + + public Long getJobLogId() + { + return jobLogId; + } + + public void setJobLogId(Long jobLogId) + { + this.jobLogId = jobLogId; + } + + public String getJobName() + { + return jobName; + } + + public void setJobName(String jobName) + { + this.jobName = jobName; + } + + public String getJobGroup() + { + return jobGroup; + } + + public void setJobGroup(String jobGroup) + { + this.jobGroup = jobGroup; + } + + public String getInvokeTarget() + { + return invokeTarget; + } + + public void setInvokeTarget(String invokeTarget) + { + this.invokeTarget = invokeTarget; + } + + public String getJobMessage() + { + return jobMessage; + } + + public void setJobMessage(String jobMessage) + { + this.jobMessage = jobMessage; + } + + public String getStatus() + { + return status; + } + + public void setStatus(String status) + { + this.status = status; + } + + public String getExceptionInfo() + { + return exceptionInfo; + } + + public void setExceptionInfo(String exceptionInfo) + { + this.exceptionInfo = exceptionInfo; + } + + public Date getStartTime() + { + return startTime; + } + + public void setStartTime(Date startTime) + { + this.startTime = startTime; + } + + public Date getEndTime() + { + return endTime; + } + + public void setEndTime(Date endTime) + { + this.endTime = endTime; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("jobLogId", getJobLogId()) + .append("jobName", getJobName()) + .append("jobGroup", getJobGroup()) + .append("jobMessage", getJobMessage()) + .append("status", getStatus()) + .append("exceptionInfo", getExceptionInfo()) + .append("startTime", getStartTime()) + .append("endTime", getEndTime()) + .toString(); + } +} diff --git a/alive-quartz/src/main/java/com/ruoyi/quartz/mapper/SysJobMapper.java b/alive-quartz/src/main/java/com/ruoyi/quartz/mapper/SysJobMapper.java new file mode 100644 index 0000000..5207c7a --- /dev/null +++ b/alive-quartz/src/main/java/com/ruoyi/quartz/mapper/SysJobMapper.java @@ -0,0 +1,67 @@ +package com.ruoyi.quartz.mapper; + +import com.ruoyi.quartz.domain.SysJob; +import java.util.List; + +/** + * 调度任务信息 数据层 + * + * @author ruoyi + */ +public interface SysJobMapper +{ + /** + * 查询调度任务日志集合 + * + * @param job 调度信息 + * @return 操作日志集合 + */ + public List selectJobList(SysJob job); + + /** + * 查询所有调度任务 + * + * @return 调度任务列表 + */ + public List selectJobAll(); + + /** + * 通过调度ID查询调度任务信息 + * + * @param jobId 调度ID + * @return 角色对象信息 + */ + public SysJob selectJobById(Long jobId); + + /** + * 通过调度ID删除调度任务信息 + * + * @param jobId 调度ID + * @return 结果 + */ + public int deleteJobById(Long jobId); + + /** + * 批量删除调度任务信息 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteJobByIds(Long[] ids); + + /** + * 修改调度任务信息 + * + * @param job 调度任务信息 + * @return 结果 + */ + public int updateJob(SysJob job); + + /** + * 新增调度任务信息 + * + * @param job 调度任务信息 + * @return 结果 + */ + public int insertJob(SysJob job); +} diff --git a/alive-quartz/src/main/java/com/ruoyi/quartz/service/ISysJobLogService.java b/alive-quartz/src/main/java/com/ruoyi/quartz/service/ISysJobLogService.java new file mode 100644 index 0000000..4e112d5 --- /dev/null +++ b/alive-quartz/src/main/java/com/ruoyi/quartz/service/ISysJobLogService.java @@ -0,0 +1,56 @@ +package com.ruoyi.quartz.service; + +import java.util.List; +import com.ruoyi.quartz.domain.SysJobLog; + +/** + * 定时任务调度日志信息信息 服务层 + * + * @author ruoyi + */ +public interface ISysJobLogService +{ + /** + * 获取quartz调度器日志的计划任务 + * + * @param jobLog 调度日志信息 + * @return 调度任务日志集合 + */ + public List selectJobLogList(SysJobLog jobLog); + + /** + * 通过调度任务日志ID查询调度信息 + * + * @param jobLogId 调度任务日志ID + * @return 调度任务日志对象信息 + */ + public SysJobLog selectJobLogById(Long jobLogId); + + /** + * 新增任务日志 + * + * @param jobLog 调度日志信息 + */ + public void addJobLog(SysJobLog jobLog); + + /** + * 批量删除调度日志信息 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteJobLogByIds(String ids); + + /** + * 删除任务日志 + * + * @param jobId 调度日志ID + * @return 结果 + */ + public int deleteJobLogById(Long jobId); + + /** + * 清空任务日志 + */ + public void cleanJobLog(); +} diff --git a/alive-quartz/src/main/java/com/ruoyi/quartz/service/ISysJobService.java b/alive-quartz/src/main/java/com/ruoyi/quartz/service/ISysJobService.java new file mode 100644 index 0000000..7856697 --- /dev/null +++ b/alive-quartz/src/main/java/com/ruoyi/quartz/service/ISysJobService.java @@ -0,0 +1,102 @@ +package com.ruoyi.quartz.service; + +import java.util.List; +import org.quartz.SchedulerException; +import com.ruoyi.common.exception.job.TaskException; +import com.ruoyi.quartz.domain.SysJob; + +/** + * 定时任务调度信息信息 服务层 + * + * @author ruoyi + */ +public interface ISysJobService +{ + /** + * 获取quartz调度器的计划任务 + * + * @param job 调度信息 + * @return 调度任务集合 + */ + public List selectJobList(SysJob job); + + /** + * 通过调度任务ID查询调度信息 + * + * @param jobId 调度任务ID + * @return 调度任务对象信息 + */ + public SysJob selectJobById(Long jobId); + + /** + * 暂停任务 + * + * @param job 调度信息 + * @return 结果 + */ + public int pauseJob(SysJob job) throws SchedulerException; + + /** + * 恢复任务 + * + * @param job 调度信息 + * @return 结果 + */ + public int resumeJob(SysJob job) throws SchedulerException; + + /** + * 删除任务后,所对应的trigger也将被删除 + * + * @param job 调度信息 + * @return 结果 + */ + public int deleteJob(SysJob job) throws SchedulerException; + + /** + * 批量删除调度信息 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public void deleteJobByIds(String ids) throws SchedulerException; + + /** + * 任务调度状态修改 + * + * @param job 调度信息 + * @return 结果 + */ + public int changeStatus(SysJob job) throws SchedulerException; + + /** + * 立即运行任务 + * + * @param job 调度信息 + * @return 结果 + */ + public void run(SysJob job) throws SchedulerException; + + /** + * 新增任务 + * + * @param job 调度信息 + * @return 结果 + */ + public int insertJob(SysJob job) throws SchedulerException, TaskException; + + /** + * 更新任务 + * + * @param job 调度信息 + * @return 结果 + */ + public int updateJob(SysJob job) throws SchedulerException, TaskException; + + /** + * 校验cron表达式是否有效 + * + * @param cronExpression 表达式 + * @return 结果 + */ + public boolean checkCronExpressionIsValid(String cronExpression); +} \ No newline at end of file diff --git a/alive-quartz/src/main/java/com/ruoyi/quartz/service/impl/SysJobLogServiceImpl.java b/alive-quartz/src/main/java/com/ruoyi/quartz/service/impl/SysJobLogServiceImpl.java new file mode 100644 index 0000000..06e4cd7 --- /dev/null +++ b/alive-quartz/src/main/java/com/ruoyi/quartz/service/impl/SysJobLogServiceImpl.java @@ -0,0 +1,90 @@ +package com.ruoyi.quartz.service.impl; + +import java.util.ArrayList; +import java.util.List; +import org.springframework.stereotype.Service; +import com.ruoyi.common.core.text.Convert; +import com.ruoyi.quartz.domain.SysJobLog; +import com.ruoyi.quartz.service.ISysJobLogService; + +/** + * 定时任务调度日志信息 服务层 + * + * @author ruoyi + */ +@Service +public class SysJobLogServiceImpl implements ISysJobLogService +{ + /*@Autowired + private SysJobLogMapper jobLogMapper;*/ + + /** + * 获取quartz调度器日志的计划任务 + * + * @param jobLog 调度日志信息 + * @return 调度任务日志集合 + */ + @Override + public List selectJobLogList(SysJobLog jobLog) + { + return new ArrayList<>(); + } + + /** + * 通过调度任务日志ID查询调度信息 + * + * @param jobLogId 调度任务日志ID + * @return 调度任务日志对象信息 + */ + @Override + public SysJobLog selectJobLogById(Long jobLogId) + { + return new SysJobLog(); + } + + /** + * 新增任务日志 + * + * @param jobLog 调度日志信息 + */ + @Override + public void addJobLog(SysJobLog jobLog) + { + //jobLogMapper.insertJobLog(jobLog); + } + + /** + * 批量删除调度日志信息 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + @Override + public int deleteJobLogByIds(String ids) + { + //return jobLogMapper.deleteJobLogByIds(Convert.toStrArray(ids)); + return 1; + } + + /** + * 删除任务日志 + * + * @param jobId 调度日志ID + */ + @Override + public int deleteJobLogById(Long jobId) + { + //return jobLogMapper.deleteJobLogById(jobId); + + return 1; + } + + /** + * 清空任务日志 + */ + @Override + public void cleanJobLog() + { + //jobLogMapper.cleanJobLog(); + } +} diff --git a/alive-quartz/src/main/java/com/ruoyi/quartz/service/impl/SysJobServiceImpl.java b/alive-quartz/src/main/java/com/ruoyi/quartz/service/impl/SysJobServiceImpl.java new file mode 100644 index 0000000..226e0bc --- /dev/null +++ b/alive-quartz/src/main/java/com/ruoyi/quartz/service/impl/SysJobServiceImpl.java @@ -0,0 +1,256 @@ +package com.ruoyi.quartz.service.impl; + +import java.util.List; +import javax.annotation.PostConstruct; +import org.quartz.JobDataMap; +import org.quartz.JobKey; +import org.quartz.Scheduler; +import org.quartz.SchedulerException; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; +import com.ruoyi.common.constant.ScheduleConstants; +import com.ruoyi.common.core.text.Convert; +import com.ruoyi.common.exception.job.TaskException; +import com.ruoyi.quartz.domain.SysJob; +import com.ruoyi.quartz.mapper.SysJobMapper; +import com.ruoyi.quartz.service.ISysJobService; +import com.ruoyi.quartz.util.CronUtils; +import com.ruoyi.quartz.util.ScheduleUtils; + +/** + * 定时任务调度信息 服务层 + * + * @author ruoyi + */ +@Service +public class SysJobServiceImpl implements ISysJobService +{ + @Autowired + private Scheduler scheduler; + + @Autowired + private SysJobMapper jobMapper; + + /** + * 项目启动时,初始化定时器 + * 主要是防止手动修改数据库导致未同步到定时任务处理(注:不能手动修改数据库ID和任务组名,否则会导致脏数据) + */ + @PostConstruct + public void init() throws SchedulerException, TaskException + { + scheduler.clear(); + List jobList = jobMapper.selectJobAll(); + for (SysJob job : jobList) + { + ScheduleUtils.createScheduleJob(scheduler, job); + } + } + + /** + * 获取quartz调度器的计划任务列表 + * + * @param job 调度信息 + * @return + */ + @Override + public List selectJobList(SysJob job) + { + return jobMapper.selectJobList(job); + } + + /** + * 通过调度任务ID查询调度信息 + * + * @param jobId 调度任务ID + * @return 调度任务对象信息 + */ + @Override + public SysJob selectJobById(Long jobId) + { + return jobMapper.selectJobById(jobId); + } + + /** + * 暂停任务 + * + * @param job 调度信息 + */ + @Override + @Transactional(rollbackFor = Exception.class) + public int pauseJob(SysJob job) throws SchedulerException + { + Long jobId = job.getJobId(); + String jobGroup = job.getJobGroup(); + job.setStatus(ScheduleConstants.Status.PAUSE.getValue()); + int rows = jobMapper.updateJob(job); + if (rows > 0) + { + scheduler.pauseJob(ScheduleUtils.getJobKey(jobId, jobGroup)); + } + return rows; + } + + /** + * 恢复任务 + * + * @param job 调度信息 + */ + @Override + @Transactional(rollbackFor = Exception.class) + public int resumeJob(SysJob job) throws SchedulerException + { + Long jobId = job.getJobId(); + String jobGroup = job.getJobGroup(); + job.setStatus(ScheduleConstants.Status.NORMAL.getValue()); + int rows = jobMapper.updateJob(job); + if (rows > 0) + { + scheduler.resumeJob(ScheduleUtils.getJobKey(jobId, jobGroup)); + } + return rows; + } + + /** + * 删除任务后,所对应的trigger也将被删除 + * + * @param job 调度信息 + */ + @Override + @Transactional(rollbackFor = Exception.class) + public int deleteJob(SysJob job) throws SchedulerException + { + Long jobId = job.getJobId(); + String jobGroup = job.getJobGroup(); + int rows = jobMapper.deleteJobById(jobId); + if (rows > 0) + { + scheduler.deleteJob(ScheduleUtils.getJobKey(jobId, jobGroup)); + } + return rows; + } + + /** + * 批量删除调度信息 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + @Override + @Transactional(rollbackFor = Exception.class) + public void deleteJobByIds(String ids) throws SchedulerException + { + Long[] jobIds = Convert.toLongArray(ids); + for (Long jobId : jobIds) + { + SysJob job = jobMapper.selectJobById(jobId); + deleteJob(job); + } + } + + /** + * 任务调度状态修改 + * + * @param job 调度信息 + */ + @Override + @Transactional(rollbackFor = Exception.class) + public int changeStatus(SysJob job) throws SchedulerException + { + int rows = 0; + String status = job.getStatus(); + if (ScheduleConstants.Status.NORMAL.getValue().equals(status)) + { + rows = resumeJob(job); + } + else if (ScheduleConstants.Status.PAUSE.getValue().equals(status)) + { + rows = pauseJob(job); + } + return rows; + } + + /** + * 立即运行任务 + * + * @param job 调度信息 + */ + @Override + @Transactional(rollbackFor = Exception.class) + public void run(SysJob job) throws SchedulerException + { + Long jobId = job.getJobId(); + SysJob tmpObj = selectJobById(job.getJobId()); + // 参数 + JobDataMap dataMap = new JobDataMap(); + dataMap.put(ScheduleConstants.TASK_PROPERTIES, tmpObj); + scheduler.triggerJob(ScheduleUtils.getJobKey(jobId, tmpObj.getJobGroup()), dataMap); + } + + /** + * 新增任务 + * + * @param job 调度信息 调度信息 + */ + @Override + @Transactional(rollbackFor = Exception.class) + public int insertJob(SysJob job) throws SchedulerException, TaskException + { + job.setStatus(ScheduleConstants.Status.PAUSE.getValue()); + int rows = jobMapper.insertJob(job); + if (rows > 0) + { + ScheduleUtils.createScheduleJob(scheduler, job); + } + return rows; + } + + /** + * 更新任务的时间表达式 + * + * @param job 调度信息 + */ + @Override + @Transactional(rollbackFor = Exception.class) + public int updateJob(SysJob job) throws SchedulerException, TaskException + { + SysJob properties = selectJobById(job.getJobId()); + int rows = jobMapper.updateJob(job); + if (rows > 0) + { + updateSchedulerJob(job, properties.getJobGroup()); + } + return rows; + } + + /** + * 更新任务 + * + * @param job 任务对象 + * @param jobGroup 任务组名 + */ + public void updateSchedulerJob(SysJob job, String jobGroup) throws SchedulerException, TaskException + { + Long jobId = job.getJobId(); + // 判断是否存在 + JobKey jobKey = ScheduleUtils.getJobKey(jobId, jobGroup); + if (scheduler.checkExists(jobKey)) + { + // 防止创建时存在数据问题 先移除,然后在执行创建操作 + scheduler.deleteJob(jobKey); + } + ScheduleUtils.createScheduleJob(scheduler, job); + } + + /** + * 校验cron表达式是否有效 + * + * @param cronExpression 表达式 + * @return 结果 + */ + @Override + public boolean checkCronExpressionIsValid(String cronExpression) + { + return CronUtils.isValid(cronExpression); + } +} \ No newline at end of file diff --git a/alive-quartz/src/main/java/com/ruoyi/quartz/task/YaohTimeTask.java b/alive-quartz/src/main/java/com/ruoyi/quartz/task/YaohTimeTask.java new file mode 100644 index 0000000..c3f3e7c --- /dev/null +++ b/alive-quartz/src/main/java/com/ruoyi/quartz/task/YaohTimeTask.java @@ -0,0 +1,72 @@ +package com.ruoyi.quartz.task; + +import com.ruoyi.common.utils.DateUtils; +import com.ruoyi.quartz.util.DateUtil; +import com.ruoyi.system.domain.*; +import com.ruoyi.system.service.*; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Component; + +import java.math.BigDecimal; +import java.util.Date; +import java.util.List; + +/** + * 夜王相关定时任务 + * @author HayDen + */ +@Component("yaohTimeTask") +public class YaohTimeTask +{/* + + @Autowired + private YaohTimeService yaohTimeService; + + @Autowired + private YaohConfigService yaohConfigService; + + @Autowired + private YaohTaskService yaohTaskService; + + *//** + * 每天晚上00:00:00秒执行 生成当天的任务数据 + *//* + public void addYaoh(){ + List yaohTimeList = yaohTimeService.selectYaohTimeList(new YaohTime().setFlag(1).setStatus(1)); + YaohConfig yaohConfig = yaohConfigService.findYaohConfig(new YaohConfig()); + if(yaohConfig != null){ + for (YaohTime yaohTime : yaohTimeList) { + if(yaohConfig.getIssueAmount().compareTo(yaohConfig.getCountAmount()) < 0){ + if(yaohConfig.getIssueAmount().add(yaohConfig.getAmount()).compareTo(yaohConfig.getCountAmount()) > 0){ + yaohConfig.setAmount(yaohConfig.getCountAmount().subtract(yaohConfig.getIssueAmount())); + yaohConfig.setIssueAmount(yaohConfig.getCountAmount()); + }else{ + yaohConfig.setIssueAmount(yaohConfig.getIssueAmount().add(yaohConfig.getAmount())); + } + YaohTask task = new YaohTask(); + task.setStartTime(DateUtil.getFinallyHhMm(new Date(),yaohTime.getTime())); + //20分钟后夜王击败即可结算 + task.setSettlementTime(DateUtils.addMinute(task.getStartTime(),20)); + //30分钟为游戏结算时间,就算夜王未击败 + task.setEndTime(DateUtils.addMinute(task.getStartTime(),30)); + task.setStatus(0); + task.setGrade(yaohConfig.getGrade()); + task.setAmount(yaohConfig.getAmount()); + task.setCombatPower(yaohConfig.getCombatPower()); + task.setWinPercentage(yaohConfig.getWinPercentage()); + task.setTimeWeights(yaohConfig.getTimeWeights()); + task.setPowerWeights(yaohConfig.getPowerWeights()); + task.setClickWeights(yaohConfig.getClickWeights()); + task.setCreateTime(new Date()); + yaohTaskService.updateOrAddYaohTask(task); + + //yaohTime.setStatus(0); + //yaohTimeService.updateOrAddYaohTime(yaohTime); + } + } + } + }*/ + + + +} diff --git a/alive-quartz/src/main/java/com/ruoyi/quartz/task/server/WithdrawServer.java b/alive-quartz/src/main/java/com/ruoyi/quartz/task/server/WithdrawServer.java new file mode 100644 index 0000000..aac7983 --- /dev/null +++ b/alive-quartz/src/main/java/com/ruoyi/quartz/task/server/WithdrawServer.java @@ -0,0 +1,87 @@ +package com.ruoyi.quartz.task.server; + +import com.ruoyi.common.utils.DateUtils; +import com.ruoyi.system.domain.*; +import com.ruoyi.system.domain.vo.WalletOperateTypeEnum; +import com.ruoyi.system.service.*; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +import java.math.BigDecimal; +import java.util.Date; +import java.util.List; + +/** + * 购买银币 + * @author HayDen + */ +@Service +public class WithdrawServer +{/* + + @Autowired + private ContractLogService contractLogService; + + @Autowired + private WithdrawUserService withdrawService; + + @Autowired + private WalletService walletService; + + + *//** + * C2C购买成功业务处理类 + * @param contractLog + *//* + public void withdrawSuccess(ContractLog contractLog){ + WithdrawUser withdrawUser = withdrawService.findWithdrawUser(new WithdrawUser().setOrderNumber(contractLog.getOrderNumber())); + + if(contractLog.getPayAmount().compareTo(withdrawUser.getAmount()) != 0){ + //支付币种和支付金额不一致,直接订单失败 + withdrawFail(contractLog,withdrawUser,"支付金额错误",null); + return; + } + if(withdrawUser.getStatus() != 1){ + withdrawFail(contractLog,withdrawUser,"提币失败",null); + return; + } + withdrawService.updateOrAddWithdrawUser(withdrawUser.setStatus(2)); + + walletService.operateWallet(2,new Wallet().setAddress(withdrawUser.getAddress()) + .setAmount(withdrawUser.getAmount().negate()).setCoinName(Wallet.GDC), WalletOperateTypeEnum.WITHDRAWAL_SUCCESS,1+""); + contractLog.setType(1); + contractLogService.updateContractLog(contractLog); + } + + *//** + * 购买C2C失败业务处理类 + *//* + public void withdrawFail(ContractLog contractLog, WithdrawUser withdrawUser, String illustrate, Integer time) { + if (time != null) { + List withdrawUserList = withdrawService.selectWithdrawUserList(new WithdrawUser().setStatus(1)); + if(withdrawUserList != null && withdrawUserList.size() > 0){ + for (WithdrawUser withdraw : withdrawUserList) { + if (DateUtils.timePastTenSecond(withdraw.getCreateTime(), time).getTime() < System.currentTimeMillis()) { + withdrawService.updateOrAddWithdrawUser(withdraw.setStatus(3)); + //释放解冻 + walletService.operateWallet(4,new Wallet().setAddress(withdraw.getAddress()) + .setAmount(withdraw.getAmount()).setCoinName(Wallet.GDC), WalletOperateTypeEnum.WITHDRAWAL_BACK,1+""); + } + } + } + } + if (contractLog != null) { + contractLog.setType(3); + contractLog.setUpdateTime(new Date()); + contractLog.setIllustrate(illustrate); + contractLogService.updateContractLog(contractLog); + } + if (withdrawUser != null ) { + withdrawService.updateOrAddWithdrawUser(withdrawUser.setStatus(3)); + //释放解冻 + walletService.operateWallet(4,new Wallet().setAddress(withdrawUser.getAddress()) + .setAmount(withdrawUser.getAmount()).setCoinName(Wallet.GDC), WalletOperateTypeEnum.WITHDRAWAL_BACK,1+""); + } + }*/ + +} diff --git a/alive-quartz/src/main/java/com/ruoyi/quartz/util/AbstractQuartzJob.java b/alive-quartz/src/main/java/com/ruoyi/quartz/util/AbstractQuartzJob.java new file mode 100644 index 0000000..2cc9266 --- /dev/null +++ b/alive-quartz/src/main/java/com/ruoyi/quartz/util/AbstractQuartzJob.java @@ -0,0 +1,107 @@ +package com.ruoyi.quartz.util; + +import java.util.Date; +import org.quartz.Job; +import org.quartz.JobExecutionContext; +import org.quartz.JobExecutionException; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import com.ruoyi.common.constant.Constants; +import com.ruoyi.common.constant.ScheduleConstants; +import com.ruoyi.common.utils.ExceptionUtil; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.common.utils.bean.BeanUtils; +import com.ruoyi.common.utils.spring.SpringUtils; +import com.ruoyi.quartz.domain.SysJob; +import com.ruoyi.quartz.domain.SysJobLog; +import com.ruoyi.quartz.service.ISysJobLogService; + +/** + * 抽象quartz调用 + * + * @author ruoyi + */ +public abstract class AbstractQuartzJob implements Job +{ + private static final Logger log = LoggerFactory.getLogger(AbstractQuartzJob.class); + + /** + * 线程本地变量 + */ + private static ThreadLocal threadLocal = new ThreadLocal<>(); + + @Override + public void execute(JobExecutionContext context) throws JobExecutionException + { + SysJob sysJob = new SysJob(); + BeanUtils.copyBeanProp(sysJob, context.getMergedJobDataMap().get(ScheduleConstants.TASK_PROPERTIES)); + try + { + before(context, sysJob); + if (sysJob != null) + { + doExecute(context, sysJob); + } + after(context, sysJob, null); + } + catch (Exception e) + { + log.error("任务执行异常 - :", e); + after(context, sysJob, e); + } + } + + /** + * 执行前 + * + * @param context 工作执行上下文对象 + * @param sysJob 系统计划任务 + */ + protected void before(JobExecutionContext context, SysJob sysJob) + { + threadLocal.set(new Date()); + } + + /** + * 执行后 + * + * @param context 工作执行上下文对象 + * @param sysScheduleJob 系统计划任务 + */ + protected void after(JobExecutionContext context, SysJob sysJob, Exception e) + { + Date startTime = threadLocal.get(); + threadLocal.remove(); + + final SysJobLog sysJobLog = new SysJobLog(); + sysJobLog.setJobName(sysJob.getJobName()); + sysJobLog.setJobGroup(sysJob.getJobGroup()); + sysJobLog.setInvokeTarget(sysJob.getInvokeTarget()); + sysJobLog.setStartTime(startTime); + sysJobLog.setEndTime(new Date()); + long runMs = sysJobLog.getEndTime().getTime() - sysJobLog.getStartTime().getTime(); + sysJobLog.setJobMessage(sysJobLog.getJobName() + " 总共耗时:" + runMs + "毫秒"); + if (e != null) + { + sysJobLog.setStatus(Constants.FAIL); + String errorMsg = StringUtils.substring(ExceptionUtil.getExceptionMessage(e), 0, 2000); + sysJobLog.setExceptionInfo(errorMsg); + } + else + { + sysJobLog.setStatus(Constants.SUCCESS); + } + + // 写入数据库当中 + SpringUtils.getBean(ISysJobLogService.class).addJobLog(sysJobLog); + } + + /** + * 执行方法,由子类重载 + * + * @param context 工作执行上下文对象 + * @param sysJob 系统计划任务 + * @throws Exception 执行过程中的异常 + */ + protected abstract void doExecute(JobExecutionContext context, SysJob sysJob) throws Exception; +} diff --git a/alive-quartz/src/main/java/com/ruoyi/quartz/util/CronUtils.java b/alive-quartz/src/main/java/com/ruoyi/quartz/util/CronUtils.java new file mode 100644 index 0000000..01a84cb --- /dev/null +++ b/alive-quartz/src/main/java/com/ruoyi/quartz/util/CronUtils.java @@ -0,0 +1,94 @@ +package com.ruoyi.quartz.util; + +import java.text.ParseException; +import java.util.ArrayList; +import java.util.Date; +import java.util.List; +import org.quartz.CronExpression; +import org.quartz.TriggerUtils; +import org.quartz.impl.triggers.CronTriggerImpl; +import com.ruoyi.common.utils.DateUtils; + +/** + * cron表达式工具类 + * + * @author ruoyi + * + */ +public class CronUtils +{ + /** + * 返回一个布尔值代表一个给定的Cron表达式的有效性 + * + * @param cronExpression Cron表达式 + * @return boolean 表达式是否有效 + */ + public static boolean isValid(String cronExpression) + { + return CronExpression.isValidExpression(cronExpression); + } + + /** + * 返回一个字符串值,表示该消息无效Cron表达式给出有效性 + * + * @param cronExpression Cron表达式 + * @return String 无效时返回表达式错误描述,如果有效返回null + */ + public static String getInvalidMessage(String cronExpression) + { + try + { + new CronExpression(cronExpression); + return null; + } + catch (ParseException pe) + { + return pe.getMessage(); + } + } + + /** + * 返回下一个执行时间根据给定的Cron表达式 + * + * @param cronExpression Cron表达式 + * @return Date 下次Cron表达式执行时间 + */ + public static Date getNextExecution(String cronExpression) + { + try + { + CronExpression cron = new CronExpression(cronExpression); + return cron.getNextValidTimeAfter(new Date(System.currentTimeMillis())); + } + catch (ParseException e) + { + throw new IllegalArgumentException(e.getMessage()); + } + } + + /** + * 通过表达式获取近10次的执行时间 + * + * @param cron 表达式 + * @return 时间列表 + */ + public static List getRecentTriggerTime(String cron) + { + List list = new ArrayList(); + try + { + CronTriggerImpl cronTriggerImpl = new CronTriggerImpl(); + cronTriggerImpl.setCronExpression(cron); + List dates = TriggerUtils.computeFireTimes(cronTriggerImpl, null, 10); + for (Date date : dates) + { + list.add(DateUtils.parseDateToStr(DateUtils.YYYY_MM_DD_HH_MM_SS, date)); + } + } + catch (ParseException e) + { + return null; + } + return list; + } +} diff --git a/alive-quartz/src/main/java/com/ruoyi/quartz/util/DateUtil.java b/alive-quartz/src/main/java/com/ruoyi/quartz/util/DateUtil.java new file mode 100644 index 0000000..85149dc --- /dev/null +++ b/alive-quartz/src/main/java/com/ruoyi/quartz/util/DateUtil.java @@ -0,0 +1,1191 @@ +package com.ruoyi.quartz.util; + + +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +import java.sql.Time; +import java.sql.Timestamp; +import java.text.DateFormat; +import java.text.ParseException; +import java.text.ParsePosition; +import java.text.SimpleDateFormat; +import java.util.*; + + +public class DateUtil { + + // ~ Static fields/initializers + // ============================================= + + private static Logger log = LoggerFactory.getLogger(DateUtil.class); + private static String defaultDatePattern = null; + private static String timePattern = "HH:mm"; + public static final String TS_FORMAT = DateUtil.getDatePattern() + " HH:mm:ss.S"; + private static final SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); + private static final SimpleDateFormat sdf3 = new SimpleDateFormat("EEEE"); + private static final SimpleDateFormat sdf1 = new SimpleDateFormat("HH:mm:ss"); + private static final SimpleDateFormat sdf2 = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); + private static final SimpleDateFormat sdf4 = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss"); + private static final SimpleDateFormat sdf5 = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss:SSS"); + private static final String PATTERN_DATE = "yyyy-MM-dd"; + + // ~ Methods + // ================================================================ + + public DateUtil() { + } + + /** + * 获取当前服务器时间(yyyy-MM-dd HH:mm:ss:SSS)。 + */ + public static String getCurrentFullDateTime() { + try { + return sdf5.format(new Date()); + } catch (Exception e) { + log.debug("DateUtil.getCurrentFullDateTime(): " + e.getMessage()); + return ""; + } + } + + /** + * 获得服务器当前日期及时间,以格式为:yyyy-MM-dd HH:mm:ss的日期字符串形式返回 + */ + public static String getStringDateTimeT(Date date) { + try { + return sdf4.format(date); + } catch (Exception e) { + log.debug("DateUtil.getDateTime():" + e.getMessage()); + return ""; + } + } + + public static Date getDateTimeT(String times) { + try { + return sdf4.parse(times); + } catch (Exception e) { + log.debug("DateUtil.getDateTime():" + e.getMessage()); + return null; + } + } + + + /** + * 获得服务器当前日期及时间,以格式为:yyyy-MM-dd HH:mm:ss的日期字符串形式返回 + */ + public static String getDateTime() { + Calendar cale = Calendar.getInstance(); + try { + return sdf2.format(cale.getTime()); + } catch (Exception e) { + log.debug("DateUtil.getDateTime():" + e.getMessage()); + return ""; + } + } + + /** + * 获得服务器当前日期,以格式为:yyyy-MM-dd的日期字符串形式返回 + */ + public static String getDate() { + Calendar cale = Calendar.getInstance(); + try { + return sdf.format(cale.getTime()); + } catch (Exception e) { + log.debug("DateUtil.getDate():" + e.getMessage()); + return ""; + } + } + + /** + * 获得服务器zuo日期,以格式为:yyyy-MM-dd的日期字符串形式返回 + */ + public static String getYesterdayDate() { + Calendar cale = Calendar.getInstance(); + cale.add(Calendar.DATE, -1); + try { + return sdf.format(cale.getTime()); + } catch (Exception e) { + log.debug("DateUtil.getDate():" + e.getMessage()); + return ""; + } + } + + /** + * 获得服务器当前时间,以格式为:HH:mm:ss的日期字符串形式返回 + */ + public static String getTime() { + Calendar cale = Calendar.getInstance(); + String temp = ""; + try { + temp += sdf1.format(cale.getTime()); + return temp; + } catch (Exception e) { + log.debug("DateUtil.getTime():" + e.getMessage()); + return ""; + } + } + + /** + * 获得服务器当前时间,以格式为:HH:mm:ss的日期字符串形式返回 + */ + public static Long getTimeLong() { + Calendar cale = Calendar.getInstance(); + String temp = ""; + try { + temp += sdf1.format(cale.getTime()); + return sdf1.parse(temp).getTime(); + } catch (Exception e) { + log.debug("DateUtil.getTimeLong():" + e.getMessage()); + return 0L; + } + } + + /** + * 统计时开始日期的默认值, 今年的开始时间 + */ + public static String getStartDate() { + try { + return getYear() + "-01-01"; + } catch (Exception e) { + log.debug("DateUtil.getStartDate():" + e.getMessage()); + return ""; + } + } + + /** + * 统计时结束日期的默认值 + */ + public static String getEndDate() { + try { + return getDate(); + } catch (Exception e) { + log.debug("DateUtil.getEndDate():" + e.getMessage()); + return ""; + } + } + + /** + * 获得服务器当前日期的年份 + */ + public static String getYear() { + Calendar cale = Calendar.getInstance(); + try { + // 返回的int型,需要字符串转换 + return String.valueOf(cale.get(Calendar.YEAR)); + } catch (Exception e) { + log.debug("DateUtil.getYear():" + e.getMessage()); + return ""; + } + } + + /** + * 获得服务器当前日期的年份 + */ + public static String getWeek() { + Calendar cale = Calendar.getInstance(); + try { + // 返回的int型,需要字符串转换 + return sdf3.format(cale.getTime()); + } catch (Exception e) { + log.debug("DateUtil.getYear():" + e.getMessage()); + return ""; + } + } + + /** + * 获得服务器当前日期的月份 + */ + public static String getMonth() { + Calendar cale = Calendar.getInstance(); + try { + // 一个数字格式,非常好 + java.text.DecimalFormat df = new java.text.DecimalFormat(); + df.applyPattern("00"); + return df.format((cale.get(Calendar.MONTH) + 1)); + // return String.valueOf(cale.get(Calendar.MONTH) + 1); + } catch (Exception e) { + log.debug("DateUtil.getMonth():" + e.getMessage()); + return ""; + } + } + + /** + * 获得服务器在当前月中天数 + */ + public static String getDay() { + Calendar cale = Calendar.getInstance(); + try { + return String.valueOf(cale.get(Calendar.DAY_OF_MONTH)); + } catch (Exception e) { + log.debug("DateUtil.getDay():" + e.getMessage()); + return ""; + } + } + + /** + * 字符串转换成日期 + * + * @param str + * @return date + */ + public static Date StrToHhMmSs(String str) { + SimpleDateFormat format = new SimpleDateFormat("HH:mm:ss"); + Date date = null; + try { + date = format.parse(str); + } catch (ParseException e) { + e.printStackTrace(); + } + return date; + } + + /** + * 判断当前时间是否在[startTime, endTime]区间,注意时间格式要一致 + * + * @param nowTime 当前时间 + * @param startTime 开始时间 + * @param endTime 结束时间 + * @return + * @author jqlin + */ + public static boolean isEffectiveDate(Date nowTime, Date startTime, Date endTime) { + if (nowTime.getTime() == startTime.getTime() + || nowTime.getTime() == endTime.getTime()) { + return true; + } + + Calendar date = Calendar.getInstance(); + date.setTime(nowTime); + + Calendar begin = Calendar.getInstance(); + begin.setTime(startTime); + + Calendar end = Calendar.getInstance(); + end.setTime(endTime); + + if (date.after(begin) && date.before(end)) { + return true; + } else { + return false; + } + } + + /** + * 判断时间是否在时间段内 + * + * @param nowTime + * @param beginTime + * @param endTime + * @return + */ + public static boolean belongCalendar(Date nowTime, Date beginTime, + Date endTime) { + Calendar date = Calendar.getInstance(); + date.setTime(nowTime); + + Calendar begin = Calendar.getInstance(); + begin.setTime(beginTime); + + Calendar end = Calendar.getInstance(); + end.setTime(endTime); + + if (date.after(begin) && date.before(end)) { + return true; + } else { + return false; + } + } + + public static String dateToHhMmSs(Date date) { + if (date != null) { + SimpleDateFormat dateFormat = new SimpleDateFormat("HH:mm:ss"); + String tablename = dateFormat.format(date); + return tablename; + } + return null; + } + + /** + * 根据两个时间判断当前时间是否在两个时间范围内 + * + * @param begin + * @param end + * @return + */ + public Boolean ifDateInner(Date begin, Date end) { + SimpleDateFormat df = new SimpleDateFormat("HH:mm");// 设置日期格式 + Date now = null; + Date beginTime = null; + Date endTime = null; + try { + now = df.parse(df.format(new Date())); + beginTime = df.parse(dateToHhMmSs(begin)); + endTime = df.parse(dateToHhMmSs(end)); + } catch (Exception e) { + e.printStackTrace(); + } + return belongCalendar(now, beginTime, endTime); + } + + /** + * 比较两个日期相差的天数, 第一个日期要比第二个日期要晚 + */ + public static int getMargin(String date1, String date2) { + int margin; + try { + ParsePosition pos = new ParsePosition(0); + ParsePosition pos1 = new ParsePosition(0); + Date dt1 = sdf.parse(date1, pos); + Date dt2 = sdf.parse(date2, pos1); + long l = dt1.getTime() - dt2.getTime(); + margin = (int) (l / (24 * 60 * 60 * 1000)); + return margin; + } catch (Exception e) { + log.debug("DateUtil.getMargin():" + e.toString()); + return 0; + } + } + + /** + * 比较两个日期相差的天数,格式不一样 第一个日期要比第二个日期要晚 + */ + public static double getDoubleMargin(String date1, String date2) { + double margin; + try { + ParsePosition pos = new ParsePosition(0); + ParsePosition pos1 = new ParsePosition(0); + Date dt1 = sdf2.parse(date1, pos); + Date dt2 = sdf2.parse(date2, pos1); + long l = dt1.getTime() - dt2.getTime(); + margin = (l / (24 * 60 * 60 * 1000.00)); + return margin; + } catch (Exception e) { + log.debug("DateUtil.getMargin():" + e.toString()); + return 0; + } + } + + /** + * 比较两个日期相差的天数,格式不一样 第一个日期要比第二个日期要晚 + */ + public static double getDoubleHoursMargin(String date1, String date2) { + double margin; + try { + ParsePosition pos = new ParsePosition(0); + ParsePosition pos1 = new ParsePosition(0); + Date dt1 = sdf2.parse(date1, pos); + Date dt2 = sdf2.parse(date2, pos1); + long l = dt1.getTime() - dt2.getTime(); + margin = (l / (60 * 60 * 1000.00)); + return margin; + } catch (Exception e) { + log.debug("DateUtil.getMargin():" + e.toString()); + return 0; + } + } + + /** + * 比较两个日期相差的月数 + */ + public static int getMonthMargin(String date1, String date2) { + int margin; + try { + margin = (Integer.parseInt(date2.substring(0, 4)) - Integer + .parseInt(date1.substring(0, 4))) * 12; + margin += (Integer.parseInt(date2.substring(4, 7).replaceAll("-0", + "-")) - Integer.parseInt(date1.substring(4, 7).replaceAll( + "-0", "-"))); + return margin; + } catch (Exception e) { + log.debug("DateUtil.getMargin():" + e.toString()); + return 0; + } + } + + /** + * 返回日期加X天后的日期 + */ + public static String addDay(String date, int i) { + try { + GregorianCalendar gCal = new GregorianCalendar( + Integer.parseInt(date.substring(0, 4)), + Integer.parseInt(date.substring(5, 7)) - 1, + Integer.parseInt(date.substring(8, 10))); + gCal.add(GregorianCalendar.DATE, i); + return sdf.format(gCal.getTime()); + } catch (Exception e) { + log.debug("DateUtil.addDay():" + e.toString()); + return getDate(); + } + } + + /** + * 返回日期加X月后的日期 + */ + public static String addMonth(String date, int i) { + try { + GregorianCalendar gCal = new GregorianCalendar( + Integer.parseInt(date.substring(0, 4)), + Integer.parseInt(date.substring(5, 7)) - 1, + Integer.parseInt(date.substring(8, 10))); + gCal.add(GregorianCalendar.MONTH, i); + return sdf.format(gCal.getTime()); + } catch (Exception e) { + log.debug("DateUtil.addMonth():" + e.toString()); + return getDate(); + } + } + + /** + * 返回日期加X年后的日期 + */ + public static String addYear(String date, int i) { + try { + GregorianCalendar gCal = new GregorianCalendar( + Integer.parseInt(date.substring(0, 4)), + Integer.parseInt(date.substring(5, 7)) - 1, + Integer.parseInt(date.substring(8, 10))); + gCal.add(GregorianCalendar.YEAR, i); + return sdf.format(gCal.getTime()); + } catch (Exception e) { + log.debug("DateUtil.addYear():" + e.toString()); + return ""; + } + } + + /** + * 返回某年某月中的最大天 + */ + public static int getMaxDay(String year, String month) { + int day = 0; + try { + int iyear = Integer.parseInt(year); + int imonth = Integer.parseInt(month); + if (imonth == 1 || imonth == 3 || imonth == 5 || imonth == 7 + || imonth == 8 || imonth == 10 || imonth == 12) { + day = 31; + } else if (imonth == 4 || imonth == 6 || imonth == 9 + || imonth == 11) { + day = 30; + } else if ((0 == (iyear % 4)) && (0 != (iyear % 100)) + || (0 == (iyear % 400))) { + day = 29; + } else { + day = 28; + } + return day; + } catch (Exception e) { + log.debug("DateUtil.getMonthDay():" + e.toString()); + return 1; + } + } + + /** + * 格式化日期 + */ + @SuppressWarnings("static-access") + public String rollDate(String orgDate, int Type, int Span) { + try { + String temp = ""; + int iyear, imonth, iday; + int iPos = 0; + char seperater = '-'; + if (orgDate == null || orgDate.length() < 6) { + return ""; + } + + iPos = orgDate.indexOf(seperater); + if (iPos > 0) { + iyear = Integer.parseInt(orgDate.substring(0, iPos)); + temp = orgDate.substring(iPos + 1); + } else { + iyear = Integer.parseInt(orgDate.substring(0, 4)); + temp = orgDate.substring(4); + } + + iPos = temp.indexOf(seperater); + if (iPos > 0) { + imonth = Integer.parseInt(temp.substring(0, iPos)); + temp = temp.substring(iPos + 1); + } else { + imonth = Integer.parseInt(temp.substring(0, 2)); + temp = temp.substring(2); + } + + imonth--; + if (imonth < 0 || imonth > 11) { + imonth = 0; + } + + iday = Integer.parseInt(temp); + if (iday < 1 || iday > 31) + iday = 1; + + Calendar orgcale = Calendar.getInstance(); + orgcale.set(iyear, imonth, iday); + temp = this.rollDate(orgcale, Type, Span); + return temp; + } catch (Exception e) { + return ""; + } + } + + public static String rollDate(Calendar cal, int Type, int Span) { + try { + String temp = ""; + Calendar rolcale; + rolcale = cal; + rolcale.add(Type, Span); + temp = sdf.format(rolcale.getTime()); + return temp; + } catch (Exception e) { + return ""; + } + } + + + /** + * 返回默认的日期格式 + */ + public static synchronized String getDatePattern() { + defaultDatePattern = "yyyy-MM-dd"; + return defaultDatePattern; + } + + /** + * 将指定日期按默认格式进行格式代化成字符串后输出如:yyyy-MM-dd + */ + public static final String getDate(Date aDate) { + SimpleDateFormat df = null; + String returnValue = ""; + + if (aDate != null) { + df = new SimpleDateFormat(getDatePattern()); + returnValue = df.format(aDate); + } + + return (returnValue); + } + + /** + * 取得给定日期的时间字符串,格式为当前默认时间格式 + */ + public static String getTimeNow(Date theTime) { + return getDateTime(timePattern, theTime); + } + + /** + * 取得给定日期的时间字符串,格式为当前默认时间格式 + */ + public static String getTimeNowSs(Date theTime) { + SimpleDateFormat sdf = new SimpleDateFormat("HH:mm:ss"); + String time = sdf.format(theTime); + return time; + } + + /** + * 取得当前时间的Calendar日历对象 + */ + public Calendar getToday() throws ParseException { + Date today = new Date(); + SimpleDateFormat df = new SimpleDateFormat(getDatePattern()); + String todayAsString = df.format(today); + Calendar cal = new GregorianCalendar(); + cal.setTime(convertStringToDate(todayAsString)); + return cal; + } + + /** + * 将日期类转换成指定格式的字符串形式 + */ + public static final String getDateTime(String aMask, Date aDate) { + SimpleDateFormat df = null; + String returnValue = ""; + + if (aDate == null) { + log.error("aDate is null!"); + } else { + df = new SimpleDateFormat(aMask); + returnValue = df.format(aDate); + } + return (returnValue); + } + + /** + * 将指定的日期转换成默认格式的字符串形式 + */ + public static final String convertDateToString(Date aDate) { + return getDateTime(getDatePattern(), aDate); + } + + /** + * 将日期字符串按指定格式转换成日期类型 + * + * @param aMask 指定的日期格式,如:yyyy-MM-dd + * @param strDate 待转换的日期字符串 + */ + + public static final Date convertStringToDate(String aMask, String strDate) + throws ParseException { + SimpleDateFormat df = null; + Date date = null; + df = new SimpleDateFormat(aMask); + + if (log.isDebugEnabled()) { + log.debug("converting '" + strDate + "' to date with mask '" + + aMask + "'"); + } + try { + date = df.parse(strDate); + } catch (ParseException pe) { + log.error("ParseException: " + pe); + throw pe; + } + return (date); + } + + /** + * 将日期字符串按默认格式转换成日期类型 + */ + public static Date convertStringToDate(String strDate) + throws ParseException { + Date aDate = null; + + try { + if (log.isDebugEnabled()) { + log.debug("converting date with pattern: " + getDatePattern()); + } + aDate = convertStringToDate(getDatePattern(), strDate); + } catch (ParseException pe) { + log.error("Could not convert '" + strDate + + "' to a date, throwing exception"); + throw new ParseException(pe.getMessage(), pe.getErrorOffset()); + + } + + return aDate; + } + + /** + * 返回一个JAVA简单类型的日期字符串 + */ + public static String getSimpleDateFormat() { + SimpleDateFormat formatter = new SimpleDateFormat(); + String NDateTime = formatter.format(new Date()); + return NDateTime; + } + + /** + * 将两个字符串格式的日期进行比较 + * + * @param last 要比较的第一个日期字符串 + * @param now 要比较的第二个日期格式字符串 + * @return true(last 在now 日期之前), false(last 在now 日期之后) + */ + public static boolean compareTo(String last, String now) { + try { + SimpleDateFormat formatter = new SimpleDateFormat( + "yyyy-MM-dd HH:mm:ss"); + Date temp1 = formatter.parse(last); + Date temp2 = formatter.parse(now); + if (temp1.after(temp2)) + return false; + else if (temp1.before(temp2)) + return true; + } catch (ParseException e) { + log.debug(e.getMessage()); + } + return false; + } + + + /** + * 取得当前时间的日戳 + * + * @return + */ + @SuppressWarnings("deprecation") + public static String getTimestamp() { + Date date = new Date(); + String timestamp = "" + (date.getYear() + 1900) + date.getMonth() + + date.getDate() + date.getMinutes() + date.getSeconds() + + date.getTime(); + return timestamp; + } + + /* + * 将10 or 13 位时间戳转为时间字符串 + * convert the number 1407449951 1407499055617 to date/time format timestamp + */ + public static String timestamp2Date(String str_num, String format) { + SimpleDateFormat sdf = new SimpleDateFormat(format); + if (str_num.length() == 13) { + String date = sdf.format(new Date(Long.parseLong(str_num))); +// LogUtil.debug("timestamp2Date"+ "将13位时间戳:" + str_num + "转化为字符串:", date); + return date; + } else { + String date = sdf.format(new Date(Integer.parseInt(str_num) * 1000L)); +// LogUtil.debug("timestamp2Date" + "将10位时间戳:" + str_num + "转化为字符串:", date); + return date; + } + } + + // /** +// * 时间戳转时间(10位时间戳) +// * @param time +// * @return +// */ + public static String timestampToDate(long time) { +// String dateTime; +// SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-mm-dd hh:mm:ss"); +// long timeLong = Long.valueOf(time); +// dateTime = simpleDateFormat.format(new Date(timeLong * 1000L)); + + long timeStamp = (long) time * 1000;//直接是时间戳 +// long timeStamp = System.currentTimeMillis(); //获取当前时间戳,也可以是你自已给的一个随机的或是别人给你的时间戳(一定是long型的数据) + System.out.println(timeStamp); + SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");//这个是你要转成后的时间的格式 + String sd = sdf.format(new Date(timeStamp)); // 时间戳转换成时间 + return sd; + } + +// public static String timestampToDate(String s){ +// String res; +// SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); +// long lt = new Long(s); +// Date date = new Date(lt); +// res = simpleDateFormat.format(date); +// return res; +// } + + + /** + * 取得指定时间的日戳 + * + * @return + */ + @SuppressWarnings("deprecation") + public static String getTimestamp(Date date) { + String timestamp = "" + (date.getYear() + 1900) + date.getMonth() + + date.getDate() + date.getMinutes() + date.getSeconds() + + date.getTime(); + return timestamp; + } + + public static String getMondayOfWeek() { + Calendar calendar = Calendar.getInstance(); + DateFormat dateFormat = new SimpleDateFormat(PATTERN_DATE); + calendar.set(Calendar.DAY_OF_WEEK, Calendar.MONDAY); + return dateFormat.format(calendar.getTime()); + } + + public static List getQujianDateList(String startDate, + String endDate) throws ParseException { + List dateList = new ArrayList(); + SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); + Date begin = sdf.parse(startDate); + Date end = sdf.parse(endDate); + double between = (end.getTime() - begin.getTime()) / 1000;// 除以1000是为了转换成秒 + double day = between / (24 * 3600); + dateList.add(startDate); + for (int i = 1; i <= day; i++) { + + Calendar cd = Calendar.getInstance(); + cd.setTime(sdf.parse(startDate)); + cd.add(Calendar.DATE, i);// 增加一天 + // cd.add(Calendar.MONTH, n);//增加一个月 +// System.out.println(sdf.format(cd.getTime())); + dateList.add(sdf.format(cd.getTime())); + + } + return dateList; + } + + /* + * 将时间戳转换为时间 + */ + public static String stampToDate(String s) { + String res; + SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); + long lt = new Long(s); + Date date = new Date(lt * 1000L); + res = simpleDateFormat.format(date); + return res; + } + + /* + * 将时间戳转换为时间 + */ + public static String stamp13ToDate(String s) { + String res; + SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); + long lt = new Long(s); + Date date = new Date(lt); + res = simpleDateFormat.format(date); + return res; + } + + /** + * 根据传入的时间加上或减去若干秒 + * + * @param date Date 日期 + * @param Second Second 秒数 + * @return 返回相加后的日期 + */ + public static Date addSecond(Date date, Long Second) { + Calendar calendar = Calendar.getInstance(); + long millis = getMillis(date) + Second * 1000; + calendar.setTimeInMillis(millis); + return calendar.getTime(); + } + + /** + * 功能描述:返回毫秒 + * + * @param date 日期 + * @return 返回毫秒 + */ + public static long getMillis(Date date) { + Calendar calendar = Calendar.getInstance(); + calendar.setTime(date); + return calendar.getTimeInMillis(); + } + + + /** + * 返回日期加X天后的日期 + */ + public static String addHour(String day, int hour) { + SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); + Date date = null; + try { + date = format.parse(day); + } catch (Exception ex) { + ex.printStackTrace(); + } + if (date == null) + return ""; + System.out.println("front:" + format.format(date)); //显示输入的日期 + Calendar cal = Calendar.getInstance(); + cal.setTime(date); + cal.add(Calendar.HOUR, hour);// 24小时制 + date = cal.getTime(); + System.out.println("after:" + format.format(date)); //显示更新后的日期 + return format.format(date); + } + + + /** + * 获取指定的时间:yyyy-MM-dd + * -1是昨天 0是当天 1是明天 + * + * @param date + * @return + */ + public static String getYesterdayString(String format, Date date, int day) { + SimpleDateFormat sdf = new SimpleDateFormat(format); + Calendar calendar = Calendar.getInstance(); + calendar.setTime(date); + + calendar.add(Calendar.DAY_OF_MONTH, day); + Date yesterdayDate = calendar.getTime(); + return sdf.format(yesterdayDate); + } + + // 获取本周的开始时间 + public static Date getBeginDayOfWeek() { + Date date = new Date(); + if (date == null) { + return null; + } + Calendar cal = Calendar.getInstance(); + cal.setTime(date); + int dayofweek = cal.get(Calendar.DAY_OF_WEEK); + if (dayofweek == 1) { + dayofweek += 7; + } + cal.add(Calendar.DATE, 2 - dayofweek); + return getDayStartTime(cal.getTime()); + } + + // 获取上周的开始时间 + @SuppressWarnings("unused") + public static Date getBeginDayOfLastWeek() { + Date date = new Date(); + Calendar cal = Calendar.getInstance(); + cal.setTime(date); + int dayofweek = cal.get(Calendar.DAY_OF_WEEK); + if (dayofweek == 1) { + dayofweek += 7; + } + cal.add(Calendar.DATE, 2 - dayofweek - 7); + return getDayStartTime(cal.getTime()); + } + + // 获取上周的结束时间 + public static Date getEndDayOfLastWeek() { + Calendar cal = Calendar.getInstance(); + cal.setTime(getBeginDayOfLastWeek()); + cal.add(Calendar.DAY_OF_WEEK, 6); + Date weekEndSta = cal.getTime(); + return getDayEndTime(weekEndSta); + } + + // 获取某个日期的结束时间 + public static Timestamp getDayEndTime(Date d) { + Calendar calendar = Calendar.getInstance(); + if (null != d) + calendar.setTime(d); + calendar.set(calendar.get(Calendar.YEAR), calendar.get(Calendar.MONTH), + calendar.get(Calendar.DAY_OF_MONTH), 23, 59, 59); + calendar.set(Calendar.MILLISECOND, 999); + return new Timestamp(calendar.getTimeInMillis()); + } + + // 获取某个日期的开始时间 + public static Timestamp getDayStartTime(Date d) { + Calendar calendar = Calendar.getInstance(); + if (null != d) + calendar.setTime(d); + calendar.set(calendar.get(Calendar.YEAR), calendar.get(Calendar.MONTH), + calendar.get(Calendar.DAY_OF_MONTH), 0, 0, 0); + calendar.set(Calendar.MILLISECOND, 0); + return new Timestamp(calendar.getTimeInMillis()); + } + + + /** + * 获取当天的开始时间 + */ + public static Date getDayBegin() { + Calendar cal = new GregorianCalendar(); + cal.set(Calendar.HOUR_OF_DAY, 0); + cal.set(Calendar.MINUTE, 0); + cal.set(Calendar.SECOND, 0); + cal.set(Calendar.MILLISECOND, 0); + return cal.getTime(); + } + + /** + * 获取当天的结束时间 + */ + public static Date getDayEnd() { + Calendar cal = new GregorianCalendar(); + cal.set(Calendar.HOUR_OF_DAY, 23); + cal.set(Calendar.MINUTE, 59); + cal.set(Calendar.SECOND, 59); + return cal.getTime(); + } + + /** + * 获取昨天的开始时间 + */ + public static Date getBeginDayOfYesterday() { + Calendar cal = new GregorianCalendar(); + cal.setTime(getDayBegin()); + cal.add(Calendar.DAY_OF_MONTH, -1); + return cal.getTime(); + } + + /** + * 获取昨天的结束时间 + */ + public static Date getEndDayOfYesterDay() { + Calendar cal = new GregorianCalendar(); + cal.setTime(getDayEnd()); + cal.add(Calendar.DAY_OF_MONTH, -1); + return cal.getTime(); + } + + /** + * 获取明天的开始时间 + */ + public static Date getBeginDayOfTomorrow() { + Calendar cal = new GregorianCalendar(); + cal.setTime(getDayBegin()); + cal.add(Calendar.DAY_OF_MONTH, 1); + return cal.getTime(); + } + + /** + * 获取明天的结束时间 + */ + public static Date getEndDayOfTomorrow() { + Calendar cal = new GregorianCalendar(); + cal.setTime(getDayEnd()); + cal.add(Calendar.DAY_OF_MONTH, 1); + return cal.getTime(); + } + + + public static boolean openWithdrawal(Time beginTime, Time endTime, Timestamp now) { + boolean flag = false; + try { + SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); + SimpleDateFormat sdf1 = new SimpleDateFormat("yyyy-MM-dd"); + try { + Date date = new Date(); + long nows = now.getTime(); + long s = sdf.parse(sdf1.format(date) + " " + beginTime).getTime(); + long e = sdf.parse(sdf1.format(date) + " " + endTime).getTime(); + if (s < nows && e >= nows) { + flag = true; + } + } catch (Exception e) { + e.printStackTrace(); + flag = false; + } + + } catch (Exception e) { + e.printStackTrace(); + return false; + } + return flag; + } + + + public static boolean openJoin(String assemblyTime, Timestamp now) { + try { + SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); + SimpleDateFormat sdf1 = new SimpleDateFormat("yyyy-MM-dd"); + boolean flag = false; + String value = assemblyTime.trim(); + if (value.equals("0")) { + return false; + } else if (value.equals("24")) { + return true; + } + try { + Date date = new Date(); + long nows = now.getTime(); + long s = sdf.parse(sdf1.format(date) + " " + (value.trim().split("-")[0]) + ":00").getTime(); + long e = sdf.parse(sdf1.format(date) + " " + (value.trim().split("-")[1]) + ":00").getTime(); + if (s < nows && e >= nows) { + flag = true; + } + } catch (Exception e) { + e.printStackTrace(); + flag = false; + } + return flag; + } catch (Exception e) { + e.printStackTrace(); + return false; + } + } + + public static String getNowDate() { + SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); + String newDate = sdf.format(new Date()); + return newDate; + } + + public static String getMyTimeFormat(Integer status) { + SimpleDateFormat sdf = new SimpleDateFormat("MM-dd HH:mm"); + String newDate = status + "&" + sdf.format(new Date()); + return newDate; + } + + /** + * String转Date + */ + public static Date stringByData(String res) { + SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd MM-dd HH:mm");//注意月份是MM + Date date = null; + try { + date = simpleDateFormat.parse(res); + return date; + } catch (ParseException e) { + e.printStackTrace(); + return null; + } + } + + /** + * 在基础时间上加或者减一天 + * + * @param date 当前时间 + * @param day 正数为加负数为减 + * @return + */ + public static Date getNextDay(Date date, Integer day) { + Calendar calendar = Calendar.getInstance(); + calendar.setTime(date); + calendar.add(Calendar.DAY_OF_MONTH, day);//+1今天的时间加一天 + date = calendar.getTime(); + return date; + } + + public static SimpleDateFormat format = new SimpleDateFormat("yyyyMMdd"); + public static SimpleDateFormat format1 = new SimpleDateFormat( + "yyyyMMdd HH:mm:ss"); + + /** + * 得到指定日期的一天的某一时刻 + * + * @param date + * @return + */ + public static Date getFinallyHhMm(Date date,String hhmm) { + String temp = format.format(date); + temp += " "+hhmm; + + try { + return format1.parse(temp); + } catch (Exception e) { + return null; + } + } + + + /** + * 得到指定日期的一天的的最后时刻23:59:59 + * + * @param date + * @return + */ + public static Date getFinallyDate(Date date) { + String temp = format.format(date); + temp += " 23:59:59"; + + try { + return format1.parse(temp); + } catch (Exception e) { + return null; + } + } + + /** + * 得到指定日期的一天的开始时刻00:00:00 + * + * @param date + * @return + */ + public static Date getStartDate(Date date) { + String temp = format.format(date); + temp += " 00:00:00"; + + try { + return format1.parse(temp); + } catch (Exception e) { + return null; + } + } + + /** + * 获取{addDay}天后的0点 + * + * @param addDay 多少天后,0当天 + * @return + */ + public static Timestamp getDayStartTime(int addDay) { + Calendar cal = Calendar.getInstance(Locale.CHINA); + cal.set(Calendar.HOUR_OF_DAY, 0); + cal.set(Calendar.MINUTE, 0); + cal.set(Calendar.SECOND, 0); + cal.set(Calendar.MILLISECOND, 0); + cal.add(Calendar.DAY_OF_MONTH, addDay); + return new Timestamp(cal.getTimeInMillis()); + } + +} diff --git a/alive-quartz/src/main/java/com/ruoyi/quartz/util/JobInvokeUtil.java b/alive-quartz/src/main/java/com/ruoyi/quartz/util/JobInvokeUtil.java new file mode 100644 index 0000000..e2e420e --- /dev/null +++ b/alive-quartz/src/main/java/com/ruoyi/quartz/util/JobInvokeUtil.java @@ -0,0 +1,182 @@ +package com.ruoyi.quartz.util; + +import java.lang.reflect.InvocationTargetException; +import java.lang.reflect.Method; +import java.util.LinkedList; +import java.util.List; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.common.utils.spring.SpringUtils; +import com.ruoyi.quartz.domain.SysJob; + +/** + * 任务执行工具 + * + * @author ruoyi + */ +public class JobInvokeUtil +{ + /** + * 执行方法 + * + * @param sysJob 系统任务 + */ + public static void invokeMethod(SysJob sysJob) throws Exception + { + String invokeTarget = sysJob.getInvokeTarget(); + String beanName = getBeanName(invokeTarget); + String methodName = getMethodName(invokeTarget); + List methodParams = getMethodParams(invokeTarget); + + if (!isValidClassName(beanName)) + { + Object bean = SpringUtils.getBean(beanName); + invokeMethod(bean, methodName, methodParams); + } + else + { + Object bean = Class.forName(beanName).newInstance(); + invokeMethod(bean, methodName, methodParams); + } + } + + /** + * 调用任务方法 + * + * @param bean 目标对象 + * @param methodName 方法名称 + * @param methodParams 方法参数 + */ + private static void invokeMethod(Object bean, String methodName, List methodParams) + throws NoSuchMethodException, SecurityException, IllegalAccessException, IllegalArgumentException, + InvocationTargetException + { + if (StringUtils.isNotNull(methodParams) && methodParams.size() > 0) + { + Method method = bean.getClass().getDeclaredMethod(methodName, getMethodParamsType(methodParams)); + method.invoke(bean, getMethodParamsValue(methodParams)); + } + else + { + Method method = bean.getClass().getDeclaredMethod(methodName); + method.invoke(bean); + } + } + + /** + * 校验是否为为class包名 + * + * @param invokeTarget 名称 + * @return true是 false否 + */ + public static boolean isValidClassName(String invokeTarget) + { + return StringUtils.countMatches(invokeTarget, ".") > 1; + } + + /** + * 获取bean名称 + * + * @param invokeTarget 目标字符串 + * @return bean名称 + */ + public static String getBeanName(String invokeTarget) + { + String beanName = StringUtils.substringBefore(invokeTarget, "("); + return StringUtils.substringBeforeLast(beanName, "."); + } + + /** + * 获取bean方法 + * + * @param invokeTarget 目标字符串 + * @return method方法 + */ + public static String getMethodName(String invokeTarget) + { + String methodName = StringUtils.substringBefore(invokeTarget, "("); + return StringUtils.substringAfterLast(methodName, "."); + } + + /** + * 获取method方法参数相关列表 + * + * @param invokeTarget 目标字符串 + * @return method方法相关参数列表 + */ + public static List getMethodParams(String invokeTarget) + { + String methodStr = StringUtils.substringBetween(invokeTarget, "(", ")"); + if (StringUtils.isEmpty(methodStr)) + { + return null; + } + String[] methodParams = methodStr.split(",(?=([^\"']*[\"'][^\"']*[\"'])*[^\"']*$)"); + List classs = new LinkedList<>(); + for (int i = 0; i < methodParams.length; i++) + { + String str = StringUtils.trimToEmpty(methodParams[i]); + // String字符串类型,以'或"开头 + if (StringUtils.startsWithAny(str, "'", "\"")) + { + classs.add(new Object[] { StringUtils.substring(str, 1, str.length() - 1), String.class }); + } + // boolean布尔类型,等于true或者false + else if ("true".equalsIgnoreCase(str) || "false".equalsIgnoreCase(str)) + { + classs.add(new Object[] { Boolean.valueOf(str), Boolean.class }); + } + // long长整形,以L结尾 + else if (StringUtils.endsWith(str, "L")) + { + classs.add(new Object[] { Long.valueOf(StringUtils.substring(str, 0, str.length() - 1)), Long.class }); + } + // double浮点类型,以D结尾 + else if (StringUtils.endsWith(str, "D")) + { + classs.add(new Object[] { Double.valueOf(StringUtils.substring(str, 0, str.length() - 1)), Double.class }); + } + // 其他类型归类为整形 + else + { + classs.add(new Object[] { Integer.valueOf(str), Integer.class }); + } + } + return classs; + } + + /** + * 获取参数类型 + * + * @param methodParams 参数相关列表 + * @return 参数类型列表 + */ + public static Class[] getMethodParamsType(List methodParams) + { + Class[] classs = new Class[methodParams.size()]; + int index = 0; + for (Object[] os : methodParams) + { + classs[index] = (Class) os[1]; + index++; + } + return classs; + } + + /** + * 获取参数值 + * + * @param methodParams 参数相关列表 + * @return 参数值列表 + */ + public static Object[] getMethodParamsValue(List methodParams) + { + Object[] classs = new Object[methodParams.size()]; + int index = 0; + for (Object[] os : methodParams) + { + classs[index] = (Object) os[0]; + index++; + } + return classs; + } +} diff --git a/alive-quartz/src/main/java/com/ruoyi/quartz/util/QuartzDisallowConcurrentExecution.java b/alive-quartz/src/main/java/com/ruoyi/quartz/util/QuartzDisallowConcurrentExecution.java new file mode 100644 index 0000000..5e13558 --- /dev/null +++ b/alive-quartz/src/main/java/com/ruoyi/quartz/util/QuartzDisallowConcurrentExecution.java @@ -0,0 +1,21 @@ +package com.ruoyi.quartz.util; + +import org.quartz.DisallowConcurrentExecution; +import org.quartz.JobExecutionContext; +import com.ruoyi.quartz.domain.SysJob; + +/** + * 定时任务处理(禁止并发执行) + * + * @author ruoyi + * + */ +@DisallowConcurrentExecution +public class QuartzDisallowConcurrentExecution extends AbstractQuartzJob +{ + @Override + protected void doExecute(JobExecutionContext context, SysJob sysJob) throws Exception + { + JobInvokeUtil.invokeMethod(sysJob); + } +} diff --git a/alive-quartz/src/main/java/com/ruoyi/quartz/util/QuartzJobExecution.java b/alive-quartz/src/main/java/com/ruoyi/quartz/util/QuartzJobExecution.java new file mode 100644 index 0000000..e975326 --- /dev/null +++ b/alive-quartz/src/main/java/com/ruoyi/quartz/util/QuartzJobExecution.java @@ -0,0 +1,19 @@ +package com.ruoyi.quartz.util; + +import org.quartz.JobExecutionContext; +import com.ruoyi.quartz.domain.SysJob; + +/** + * 定时任务处理(允许并发执行) + * + * @author ruoyi + * + */ +public class QuartzJobExecution extends AbstractQuartzJob +{ + @Override + protected void doExecute(JobExecutionContext context, SysJob sysJob) throws Exception + { + JobInvokeUtil.invokeMethod(sysJob); + } +} diff --git a/alive-quartz/src/main/java/com/ruoyi/quartz/util/ScheduleUtils.java b/alive-quartz/src/main/java/com/ruoyi/quartz/util/ScheduleUtils.java new file mode 100644 index 0000000..9b9ca51 --- /dev/null +++ b/alive-quartz/src/main/java/com/ruoyi/quartz/util/ScheduleUtils.java @@ -0,0 +1,135 @@ +package com.ruoyi.quartz.util; + +import org.quartz.CronScheduleBuilder; +import org.quartz.CronTrigger; +import org.quartz.Job; +import org.quartz.JobBuilder; +import org.quartz.JobDetail; +import org.quartz.JobKey; +import org.quartz.Scheduler; +import org.quartz.SchedulerException; +import org.quartz.TriggerBuilder; +import org.quartz.TriggerKey; +import com.ruoyi.common.constant.Constants; +import com.ruoyi.common.constant.ScheduleConstants; +import com.ruoyi.common.exception.job.TaskException; +import com.ruoyi.common.exception.job.TaskException.Code; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.quartz.domain.SysJob; + +/** + * 定时任务工具类 + * + * @author ruoyi + * + */ +public class ScheduleUtils +{ + /** + * 得到quartz任务类 + * + * @param sysJob 执行计划 + * @return 具体执行任务类 + */ + private static Class getQuartzJobClass(SysJob sysJob) + { + boolean isConcurrent = "0".equals(sysJob.getConcurrent()); + return isConcurrent ? QuartzJobExecution.class : QuartzDisallowConcurrentExecution.class; + } + + /** + * 构建任务触发对象 + */ + public static TriggerKey getTriggerKey(Long jobId, String jobGroup) + { + return TriggerKey.triggerKey(ScheduleConstants.TASK_CLASS_NAME + jobId, jobGroup); + } + + /** + * 构建任务键对象 + */ + public static JobKey getJobKey(Long jobId, String jobGroup) + { + return JobKey.jobKey(ScheduleConstants.TASK_CLASS_NAME + jobId, jobGroup); + } + + /** + * 创建定时任务 + */ + public static void createScheduleJob(Scheduler scheduler, SysJob job) throws SchedulerException, TaskException + { + Class jobClass = getQuartzJobClass(job); + // 构建job信息 + Long jobId = job.getJobId(); + String jobGroup = job.getJobGroup(); + JobDetail jobDetail = JobBuilder.newJob(jobClass).withIdentity(getJobKey(jobId, jobGroup)).build(); + + // 表达式调度构建器 + CronScheduleBuilder cronScheduleBuilder = CronScheduleBuilder.cronSchedule(job.getCronExpression()); + cronScheduleBuilder = handleCronScheduleMisfirePolicy(job, cronScheduleBuilder); + + // 按新的cronExpression表达式构建一个新的trigger + CronTrigger trigger = TriggerBuilder.newTrigger().withIdentity(getTriggerKey(jobId, jobGroup)) + .withSchedule(cronScheduleBuilder).build(); + + // 放入参数,运行时的方法可以获取 + jobDetail.getJobDataMap().put(ScheduleConstants.TASK_PROPERTIES, job); + + // 判断是否存在 + if (scheduler.checkExists(getJobKey(jobId, jobGroup))) + { + // 防止创建时存在数据问题 先移除,然后在执行创建操作 + scheduler.deleteJob(getJobKey(jobId, jobGroup)); + } + + scheduler.scheduleJob(jobDetail, trigger); + + // 暂停任务 + if (job.getStatus().equals(ScheduleConstants.Status.PAUSE.getValue())) + { + scheduler.pauseJob(ScheduleUtils.getJobKey(jobId, jobGroup)); + } + } + + /** + * 设置定时任务策略 + */ + public static CronScheduleBuilder handleCronScheduleMisfirePolicy(SysJob job, CronScheduleBuilder cb) + throws TaskException + { + switch (job.getMisfirePolicy()) + { + case ScheduleConstants.MISFIRE_DEFAULT: + return cb; + case ScheduleConstants.MISFIRE_IGNORE_MISFIRES: + return cb.withMisfireHandlingInstructionIgnoreMisfires(); + case ScheduleConstants.MISFIRE_FIRE_AND_PROCEED: + return cb.withMisfireHandlingInstructionFireAndProceed(); + case ScheduleConstants.MISFIRE_DO_NOTHING: + return cb.withMisfireHandlingInstructionDoNothing(); + default: + throw new TaskException("The task misfire policy '" + job.getMisfirePolicy() + + "' cannot be used in cron schedule tasks", Code.CONFIG_ERROR); + } + } + + /** + * 检查包名是否为白名单配置 + * + * @param invokeTarget 目标字符串 + * @return 结果 + */ + public static boolean whiteList(String invokeTarget) + { + String packageName = StringUtils.substringBefore(invokeTarget, "("); + int count = StringUtils.countMatches(packageName, "."); + if (count > 1) + { + if (!StringUtils.containsAnyIgnoreCase(invokeTarget, Constants.JOB_WHITELIST_STR)) + { + return false; + } + } + return true; + } +} \ No newline at end of file diff --git a/alive-quartz/src/main/resources/mapper/quartz/SysJobMapper.xml b/alive-quartz/src/main/resources/mapper/quartz/SysJobMapper.xml new file mode 100644 index 0000000..5605c44 --- /dev/null +++ b/alive-quartz/src/main/resources/mapper/quartz/SysJobMapper.xml @@ -0,0 +1,111 @@ + + + + + + + + + + + + + + + + + + + + + + select job_id, job_name, job_group, invoke_target, cron_expression, misfire_policy, concurrent, status, create_by, create_time, remark + from sys_job + + + + + + + + + + delete from sys_job where job_id = #{jobId} + + + + delete from sys_job where job_id in + + #{jobId} + + + + + update sys_job + + job_name = #{jobName}, + job_group = #{jobGroup}, + invoke_target = #{invokeTarget}, + cron_expression = #{cronExpression}, + misfire_policy = #{misfirePolicy}, + concurrent = #{concurrent}, + status = #{status}, + remark = #{remark}, + update_by = #{updateBy}, + update_time = sysdate() + + where job_id = #{jobId} + + + + insert into sys_job( + job_id, + job_name, + job_group, + invoke_target, + cron_expression, + misfire_policy, + concurrent, + status, + remark, + create_by, + create_time + )values( + #{jobId}, + #{jobName}, + #{jobGroup}, + #{invokeTarget}, + #{cronExpression}, + #{misfirePolicy}, + #{concurrent}, + #{status}, + #{remark}, + #{createBy}, + sysdate() + ) + + + \ No newline at end of file diff --git a/alive-quartz/src/main/resources/templates/monitor/job/add.html b/alive-quartz/src/main/resources/templates/monitor/job/add.html new file mode 100644 index 0000000..1893cfd --- /dev/null +++ b/alive-quartz/src/main/resources/templates/monitor/job/add.html @@ -0,0 +1,109 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + Bean调用示例:ryTask.ryParams('ry') + Class类调用示例:com.ruoyi.quartz.task.RyTask.ryParams('ry') + 参数说明:支持字符串,布尔类型,长整型,浮点型,整型 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + diff --git a/alive-quartz/src/main/resources/templates/monitor/job/cron.html b/alive-quartz/src/main/resources/templates/monitor/job/cron.html new file mode 100644 index 0000000..85bd0ac --- /dev/null +++ b/alive-quartz/src/main/resources/templates/monitor/job/cron.html @@ -0,0 +1,1172 @@ + + + + + + Cron表达式在线生成 + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                表达式

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                分钟小时星期
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                表达式字段
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Cron 表达式
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + + + + \ No newline at end of file diff --git a/alive-quartz/src/main/resources/templates/monitor/job/detail.html b/alive-quartz/src/main/resources/templates/monitor/job/detail.html new file mode 100644 index 0000000..730fa81 --- /dev/null +++ b/alive-quartz/src/main/resources/templates/monitor/job/detail.html @@ -0,0 +1,99 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                默认策略
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                立即执行
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                执行一次
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                放弃执行
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + \ No newline at end of file diff --git a/alive-quartz/src/main/resources/templates/monitor/job/edit.html b/alive-quartz/src/main/resources/templates/monitor/job/edit.html new file mode 100644 index 0000000..12ae1d7 --- /dev/null +++ b/alive-quartz/src/main/resources/templates/monitor/job/edit.html @@ -0,0 +1,111 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + Bean调用示例:ryTask.ryParams('ry') + Class类调用示例:com.ruoyi.quartz.task.RyTask.ryParams('ry') + 参数说明:支持字符串,布尔类型,长整型,浮点型,整型 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + diff --git a/alive-quartz/src/main/resources/templates/monitor/job/job.html b/alive-quartz/src/main/resources/templates/monitor/job/job.html new file mode 100644 index 0000000..cefc99d --- /dev/null +++ b/alive-quartz/src/main/resources/templates/monitor/job/job.html @@ -0,0 +1,198 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + 任务名称: +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + 任务分组: +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + 任务状态: +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +  搜索 +  重置 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + \ No newline at end of file diff --git a/alive-quartz/src/main/resources/templates/monitor/job/jobLog.html b/alive-quartz/src/main/resources/templates/monitor/job/jobLog.html new file mode 100644 index 0000000..71028c6 --- /dev/null +++ b/alive-quartz/src/main/resources/templates/monitor/job/jobLog.html @@ -0,0 +1,138 @@ + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + 任务名称: +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + 任务分组: +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + 执行状态: +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + + - + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +  搜索 +  重置 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + \ No newline at end of file diff --git a/alive-quartz/target/alive-quartz-4.7.2.jar b/alive-quartz/target/alive-quartz-4.7.2.jar new file mode 100644 index 0000000..26438b4 Binary files /dev/null and b/alive-quartz/target/alive-quartz-4.7.2.jar differ diff --git a/alive-quartz/target/classes/com/ruoyi/quartz/controller/SysJobController.class b/alive-quartz/target/classes/com/ruoyi/quartz/controller/SysJobController.class new file mode 100644 index 0000000..2f02cc9 Binary files /dev/null and b/alive-quartz/target/classes/com/ruoyi/quartz/controller/SysJobController.class differ diff --git a/alive-quartz/target/classes/com/ruoyi/quartz/controller/SysJobLogController.class b/alive-quartz/target/classes/com/ruoyi/quartz/controller/SysJobLogController.class new file mode 100644 index 0000000..5884cdc Binary files /dev/null and b/alive-quartz/target/classes/com/ruoyi/quartz/controller/SysJobLogController.class differ diff --git a/alive-quartz/target/classes/com/ruoyi/quartz/domain/SysJob.class b/alive-quartz/target/classes/com/ruoyi/quartz/domain/SysJob.class new file mode 100644 index 0000000..6b3e9fa Binary files /dev/null and b/alive-quartz/target/classes/com/ruoyi/quartz/domain/SysJob.class differ diff --git a/alive-quartz/target/classes/com/ruoyi/quartz/domain/SysJobLog.class b/alive-quartz/target/classes/com/ruoyi/quartz/domain/SysJobLog.class new file mode 100644 index 0000000..80d5b9d Binary files /dev/null and b/alive-quartz/target/classes/com/ruoyi/quartz/domain/SysJobLog.class differ diff --git a/alive-quartz/target/classes/com/ruoyi/quartz/mapper/SysJobMapper.class b/alive-quartz/target/classes/com/ruoyi/quartz/mapper/SysJobMapper.class new file mode 100644 index 0000000..db85482 Binary files /dev/null and b/alive-quartz/target/classes/com/ruoyi/quartz/mapper/SysJobMapper.class differ diff --git a/alive-quartz/target/classes/com/ruoyi/quartz/service/ISysJobLogService.class b/alive-quartz/target/classes/com/ruoyi/quartz/service/ISysJobLogService.class new file mode 100644 index 0000000..7abe030 Binary files /dev/null and b/alive-quartz/target/classes/com/ruoyi/quartz/service/ISysJobLogService.class differ diff --git a/alive-quartz/target/classes/com/ruoyi/quartz/service/ISysJobService.class b/alive-quartz/target/classes/com/ruoyi/quartz/service/ISysJobService.class new file mode 100644 index 0000000..c4ff068 Binary files /dev/null and b/alive-quartz/target/classes/com/ruoyi/quartz/service/ISysJobService.class differ diff --git a/alive-quartz/target/classes/com/ruoyi/quartz/service/impl/SysJobLogServiceImpl.class b/alive-quartz/target/classes/com/ruoyi/quartz/service/impl/SysJobLogServiceImpl.class new file mode 100644 index 0000000..a310de6 Binary files /dev/null and b/alive-quartz/target/classes/com/ruoyi/quartz/service/impl/SysJobLogServiceImpl.class differ diff --git a/alive-quartz/target/classes/com/ruoyi/quartz/service/impl/SysJobServiceImpl.class b/alive-quartz/target/classes/com/ruoyi/quartz/service/impl/SysJobServiceImpl.class new file mode 100644 index 0000000..18cbce9 Binary files /dev/null and b/alive-quartz/target/classes/com/ruoyi/quartz/service/impl/SysJobServiceImpl.class differ diff --git a/alive-quartz/target/classes/com/ruoyi/quartz/task/YaohTimeTask.class b/alive-quartz/target/classes/com/ruoyi/quartz/task/YaohTimeTask.class new file mode 100644 index 0000000..8721121 Binary files /dev/null and b/alive-quartz/target/classes/com/ruoyi/quartz/task/YaohTimeTask.class differ diff --git a/alive-quartz/target/classes/com/ruoyi/quartz/task/server/WithdrawServer.class b/alive-quartz/target/classes/com/ruoyi/quartz/task/server/WithdrawServer.class new file mode 100644 index 0000000..a10f6a0 Binary files /dev/null and b/alive-quartz/target/classes/com/ruoyi/quartz/task/server/WithdrawServer.class differ diff --git a/alive-quartz/target/classes/com/ruoyi/quartz/util/AbstractQuartzJob.class b/alive-quartz/target/classes/com/ruoyi/quartz/util/AbstractQuartzJob.class new file mode 100644 index 0000000..7a74f78 Binary files /dev/null and b/alive-quartz/target/classes/com/ruoyi/quartz/util/AbstractQuartzJob.class differ diff --git a/alive-quartz/target/classes/com/ruoyi/quartz/util/CronUtils.class b/alive-quartz/target/classes/com/ruoyi/quartz/util/CronUtils.class new file mode 100644 index 0000000..2f17389 Binary files /dev/null and b/alive-quartz/target/classes/com/ruoyi/quartz/util/CronUtils.class differ diff --git a/alive-quartz/target/classes/com/ruoyi/quartz/util/DateUtil.class b/alive-quartz/target/classes/com/ruoyi/quartz/util/DateUtil.class new file mode 100644 index 0000000..f004ae4 Binary files /dev/null and b/alive-quartz/target/classes/com/ruoyi/quartz/util/DateUtil.class differ diff --git a/alive-quartz/target/classes/com/ruoyi/quartz/util/JobInvokeUtil.class b/alive-quartz/target/classes/com/ruoyi/quartz/util/JobInvokeUtil.class new file mode 100644 index 0000000..81d0911 Binary files /dev/null and b/alive-quartz/target/classes/com/ruoyi/quartz/util/JobInvokeUtil.class differ diff --git a/alive-quartz/target/classes/com/ruoyi/quartz/util/QuartzDisallowConcurrentExecution.class b/alive-quartz/target/classes/com/ruoyi/quartz/util/QuartzDisallowConcurrentExecution.class new file mode 100644 index 0000000..a749705 Binary files /dev/null and b/alive-quartz/target/classes/com/ruoyi/quartz/util/QuartzDisallowConcurrentExecution.class differ diff --git a/alive-quartz/target/classes/com/ruoyi/quartz/util/QuartzJobExecution.class b/alive-quartz/target/classes/com/ruoyi/quartz/util/QuartzJobExecution.class new file mode 100644 index 0000000..1f4bf9c Binary files /dev/null and b/alive-quartz/target/classes/com/ruoyi/quartz/util/QuartzJobExecution.class differ diff --git a/alive-quartz/target/classes/com/ruoyi/quartz/util/ScheduleUtils.class b/alive-quartz/target/classes/com/ruoyi/quartz/util/ScheduleUtils.class new file mode 100644 index 0000000..e3449bc Binary files /dev/null and b/alive-quartz/target/classes/com/ruoyi/quartz/util/ScheduleUtils.class differ diff --git a/alive-quartz/target/classes/mapper/quartz/SysJobMapper.xml b/alive-quartz/target/classes/mapper/quartz/SysJobMapper.xml new file mode 100644 index 0000000..5605c44 --- /dev/null +++ b/alive-quartz/target/classes/mapper/quartz/SysJobMapper.xml @@ -0,0 +1,111 @@ + + + + + + + + + + + + + + + + + + + + + + select job_id, job_name, job_group, invoke_target, cron_expression, misfire_policy, concurrent, status, create_by, create_time, remark + from sys_job + + + + + + + + + + delete from sys_job where job_id = #{jobId} + + + + delete from sys_job where job_id in + + #{jobId} + + + + + update sys_job + + job_name = #{jobName}, + job_group = #{jobGroup}, + invoke_target = #{invokeTarget}, + cron_expression = #{cronExpression}, + misfire_policy = #{misfirePolicy}, + concurrent = #{concurrent}, + status = #{status}, + remark = #{remark}, + update_by = #{updateBy}, + update_time = sysdate() + + where job_id = #{jobId} + + + + insert into sys_job( + job_id, + job_name, + job_group, + invoke_target, + cron_expression, + misfire_policy, + concurrent, + status, + remark, + create_by, + create_time + )values( + #{jobId}, + #{jobName}, + #{jobGroup}, + #{invokeTarget}, + #{cronExpression}, + #{misfirePolicy}, + #{concurrent}, + #{status}, + #{remark}, + #{createBy}, + sysdate() + ) + + + \ No newline at end of file diff --git a/alive-quartz/target/classes/templates/monitor/job/add.html b/alive-quartz/target/classes/templates/monitor/job/add.html new file mode 100644 index 0000000..1893cfd --- /dev/null +++ b/alive-quartz/target/classes/templates/monitor/job/add.html @@ -0,0 +1,109 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + Bean调用示例:ryTask.ryParams('ry') + Class类调用示例:com.ruoyi.quartz.task.RyTask.ryParams('ry') + 参数说明:支持字符串,布尔类型,长整型,浮点型,整型 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + diff --git a/alive-quartz/target/classes/templates/monitor/job/cron.html b/alive-quartz/target/classes/templates/monitor/job/cron.html new file mode 100644 index 0000000..85bd0ac --- /dev/null +++ b/alive-quartz/target/classes/templates/monitor/job/cron.html @@ -0,0 +1,1172 @@ + + + + + + Cron表达式在线生成 + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                表达式

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                分钟小时星期
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                表达式字段
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Cron 表达式
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + + + + + + \ No newline at end of file diff --git a/alive-quartz/target/classes/templates/monitor/job/detail.html b/alive-quartz/target/classes/templates/monitor/job/detail.html new file mode 100644 index 0000000..730fa81 --- /dev/null +++ b/alive-quartz/target/classes/templates/monitor/job/detail.html @@ -0,0 +1,99 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                默认策略
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                立即执行
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                执行一次
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                放弃执行
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + \ No newline at end of file diff --git a/alive-quartz/target/classes/templates/monitor/job/edit.html b/alive-quartz/target/classes/templates/monitor/job/edit.html new file mode 100644 index 0000000..12ae1d7 --- /dev/null +++ b/alive-quartz/target/classes/templates/monitor/job/edit.html @@ -0,0 +1,111 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + Bean调用示例:ryTask.ryParams('ry') + Class类调用示例:com.ruoyi.quartz.task.RyTask.ryParams('ry') + 参数说明:支持字符串,布尔类型,长整型,浮点型,整型 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + diff --git a/alive-quartz/target/classes/templates/monitor/job/job.html b/alive-quartz/target/classes/templates/monitor/job/job.html new file mode 100644 index 0000000..cefc99d --- /dev/null +++ b/alive-quartz/target/classes/templates/monitor/job/job.html @@ -0,0 +1,198 @@ + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + 任务名称: +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + 任务分组: +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + 任务状态: +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +  搜索 +  重置 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + \ No newline at end of file diff --git a/alive-quartz/target/classes/templates/monitor/job/jobLog.html b/alive-quartz/target/classes/templates/monitor/job/jobLog.html new file mode 100644 index 0000000..71028c6 --- /dev/null +++ b/alive-quartz/target/classes/templates/monitor/job/jobLog.html @@ -0,0 +1,138 @@ + + + + + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + 任务名称: +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + 任务分组: +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + 执行状态: +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • + + + - + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +  搜索 +  重置 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                + + + + \ No newline at end of file diff --git a/alive-quartz/target/maven-archiver/pom.properties b/alive-quartz/target/maven-archiver/pom.properties new file mode 100644 index 0000000..bebc540 --- /dev/null +++ b/alive-quartz/target/maven-archiver/pom.properties @@ -0,0 +1,5 @@ +#Generated by Maven +#Mon May 27 15:35:33 GMT+08:00 2024 +version=4.7.2 +groupId=com.alive +artifactId=alive-quartz diff --git a/alive-quartz/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst b/alive-quartz/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst new file mode 100644 index 0000000..b58346e --- /dev/null +++ b/alive-quartz/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst @@ -0,0 +1,18 @@ +com\ruoyi\quartz\util\QuartzDisallowConcurrentExecution.class +com\ruoyi\quartz\util\CronUtils.class +com\ruoyi\quartz\task\server\WithdrawServer.class +com\ruoyi\quartz\util\DateUtil.class +com\ruoyi\quartz\service\impl\SysJobLogServiceImpl.class +com\ruoyi\quartz\service\ISysJobLogService.class +com\ruoyi\quartz\task\YaohTimeTask.class +com\ruoyi\quartz\controller\SysJobLogController.class +com\ruoyi\quartz\util\JobInvokeUtil.class +com\ruoyi\quartz\controller\SysJobController.class +com\ruoyi\quartz\util\ScheduleUtils.class +com\ruoyi\quartz\mapper\SysJobMapper.class +com\ruoyi\quartz\domain\SysJob.class +com\ruoyi\quartz\domain\SysJobLog.class +com\ruoyi\quartz\util\AbstractQuartzJob.class +com\ruoyi\quartz\service\impl\SysJobServiceImpl.class +com\ruoyi\quartz\service\ISysJobService.class +com\ruoyi\quartz\util\QuartzJobExecution.class diff --git a/alive-quartz/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst b/alive-quartz/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst new file mode 100644 index 0000000..f1404a6 --- /dev/null +++ b/alive-quartz/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst @@ -0,0 +1,19 @@ +E:\alive\alive-admin\alive-quartz\src\main\java\com\ruoyi\quartz\service\impl\SysJobLogServiceImpl.java +E:\alive\alive-admin\alive-quartz\src\main\java\com\ruoyi\quartz\domain\SysJob.java +E:\alive\alive-admin\alive-quartz\src\main\java\com\ruoyi\quartz\domain\SysJobLog.java +E:\alive\alive-admin\alive-quartz\src\main\java\com\ruoyi\quartz\config\ScheduleConfig.java +E:\alive\alive-admin\alive-quartz\src\main\java\com\ruoyi\quartz\service\impl\SysJobServiceImpl.java +E:\alive\alive-admin\alive-quartz\src\main\java\com\ruoyi\quartz\util\ScheduleUtils.java +E:\alive\alive-admin\alive-quartz\src\main\java\com\ruoyi\quartz\service\ISysJobLogService.java +E:\alive\alive-admin\alive-quartz\src\main\java\com\ruoyi\quartz\util\QuartzDisallowConcurrentExecution.java +E:\alive\alive-admin\alive-quartz\src\main\java\com\ruoyi\quartz\util\AbstractQuartzJob.java +E:\alive\alive-admin\alive-quartz\src\main\java\com\ruoyi\quartz\controller\SysJobLogController.java +E:\alive\alive-admin\alive-quartz\src\main\java\com\ruoyi\quartz\mapper\SysJobMapper.java +E:\alive\alive-admin\alive-quartz\src\main\java\com\ruoyi\quartz\util\CronUtils.java +E:\alive\alive-admin\alive-quartz\src\main\java\com\ruoyi\quartz\util\JobInvokeUtil.java +E:\alive\alive-admin\alive-quartz\src\main\java\com\ruoyi\quartz\controller\SysJobController.java +E:\alive\alive-admin\alive-quartz\src\main\java\com\ruoyi\quartz\service\ISysJobService.java +E:\alive\alive-admin\alive-quartz\src\main\java\com\ruoyi\quartz\task\YaohTimeTask.java +E:\alive\alive-admin\alive-quartz\src\main\java\com\ruoyi\quartz\util\DateUtil.java +E:\alive\alive-admin\alive-quartz\src\main\java\com\ruoyi\quartz\task\server\WithdrawServer.java +E:\alive\alive-admin\alive-quartz\src\main\java\com\ruoyi\quartz\util\QuartzJobExecution.java diff --git a/alive-server/pom.xml b/alive-server/pom.xml new file mode 100644 index 0000000..5e54f94 --- /dev/null +++ b/alive-server/pom.xml @@ -0,0 +1,49 @@ + + + + alive + com.alive + 4.7.2 + + 4.0.0 + + alive-server + + + server服务模块 + + + + + + + com.alive + alive-common + + + org.projectlombok + lombok + 1.16.20 + provided + + + + org.springframework.boot + spring-boot-starter-data-redis + + + + org.apache.httpcomponents + httpclient + 4.5.6 + + + org.apache.httpcomponents + httpmime + 4.5.10 + + + + \ No newline at end of file diff --git a/alive-server/src/main/java/com/ruoyi/system/domain/ActivityConfig.java b/alive-server/src/main/java/com/ruoyi/system/domain/ActivityConfig.java new file mode 100644 index 0000000..f6c2bab --- /dev/null +++ b/alive-server/src/main/java/com/ruoyi/system/domain/ActivityConfig.java @@ -0,0 +1,101 @@ +package com.ruoyi.system.domain; + +import java.math.BigDecimal; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import lombok.experimental.Accessors; +import com.ruoyi.common.core.domain.BaseEntity; +import lombok.Getter; +import lombok.Setter; +import java.util.Date; +import com.ruoyi.common.core.domain.BaseEntity; + +/** + * 活动配置对象 activity_config + * + * @author HayDen + * @date 2024-04-24 + */ +@Setter +@Getter +@Accessors(chain = true) +public class ActivityConfig extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + + /** + * 标记删除,0 / 1 + */ +@Excel(name = "标记删除,0 / 1") + private String flag; + + /** + * 活动标题 + */ +@Excel(name = "活动标题") + private String title; + + /** + * 活动内容 + */ +@Excel(name = "活动内容") + private String titleContent; + + /** + * 活动图片 + */ +@Excel(name = "活动图片") + private String activityImg; + + /** + * 活动跳转链接 + */ +@Excel(name = "活动跳转链接") + private String activityUrl; + + /** + * 1=进行中 2=已结束 3=已下架 + */ +@Excel(name = "1=进行中 2=已结束 3=已下架") + private Integer state; + + /** + * 奖励金额 + */ +@Excel(name = "奖励金额") + private BigDecimal amount; + + /** + * 上级奖励金额 + */ +@Excel(name = "上级奖励金额") + private BigDecimal superiorAmount; + + /** + * 每天可以做的次数(每天1次) -1表示任务是一次性的 + */ +@Excel(name = "每天可以做的次数(每天1次) -1表示任务是一次性的") + private Integer activityNumber; + + /** + * 1=社交媒体活动 2=测试网络活动 + */ +@Excel(name = "1=社交媒体活动 2=测试网络活动 ") + private Integer category; + + /** + * 1=推特关注 2=推特转载 3=推特点赞 4=推特评论 5=推特改名 6=加入Discord 7=推荐 8=测试跨链桥 + */ +@Excel(name = "1=推特关注 2=推特转载 3=推特点赞 4=推特评论 5=推特改名 6=加入Discord 7=推荐 8=测试跨链桥 9=绑定邀请码 10=加入TG") + private Integer type; + + /** + * (关注的推特名)(评论、转载、点赞的推文ID、改名的后缀) + */ +@Excel(name = "", readConverterExp = "关=注的推特名") + private String mark; + + private Integer number; +} diff --git a/alive-server/src/main/java/com/ruoyi/system/domain/ActivityLog.java b/alive-server/src/main/java/com/ruoyi/system/domain/ActivityLog.java new file mode 100644 index 0000000..7a253e5 --- /dev/null +++ b/alive-server/src/main/java/com/ruoyi/system/domain/ActivityLog.java @@ -0,0 +1,108 @@ +package com.ruoyi.system.domain; + +import java.math.BigDecimal; +import java.util.Date; +import com.fasterxml.jackson.annotation.JsonFormat; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import lombok.experimental.Accessors; +import com.ruoyi.common.core.domain.BaseEntity; +import lombok.Getter; +import lombok.Setter; +import java.util.Date; +import com.ruoyi.common.core.domain.BaseEntity; + +/** + * 活动任务日志对象 activity_log + * + * @author HayDen + * @date 2024-04-24 + */ +@Setter +@Getter +@Accessors(chain = true) +public class ActivityLog extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + + /** + * 标记删除,0 / 1 + */ + @Excel(name = "标记删除,0 / 1") + private String flag; + + /** + * 配置ID + */ +@Excel(name = "配置ID") + private Integer activityConfigId; + + /** + * 用户地址 + */ +@Excel(name = "用户地址") + private String address; + + /** + * 上级地址 + */ +@Excel(name = "上级地址") + private String superiorAddress; + + /** + * 活动标题 + */ +@Excel(name = "活动标题") + private String title; + + /** + * 1=发起任务 2=已完成 3=失败 + */ +@Excel(name = "1=发起任务 2=已完成 3=失败") + private Integer type; + + /** + * 奖励金额 + */ +@Excel(name = "奖励金额") + private BigDecimal amount; + + /** + * 上级奖励金额 + */ +@Excel(name = "上级奖励金额") + private BigDecimal superiorAmount; + + /** + * 任务结束时间 + */ +@Excel(name = "任务结束时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss") + private Date endTime; + + /** + * 配置的TYPE + */ +@Excel(name = "配置的TYPE") + private Integer configType; + + /** + * (关注的推特名)(评论、转载、点赞的推文ID、改名的后缀) + */ +@Excel(name = "", readConverterExp = "关=注的推特名") + private String mark; + + /** + * 转账hash,多笔中间用逗号分隔 + */ +@Excel(name = "转账hash,多笔中间用逗号分隔") + private String hashs; + + /** + * 0:未执行链上发放 1:已链上发放 + */ +@Excel(name = "0:未执行链上发放 1:已链上发放") + private Integer transferType; + +} diff --git a/alive-server/src/main/java/com/ruoyi/system/domain/ActivityStatistics.java b/alive-server/src/main/java/com/ruoyi/system/domain/ActivityStatistics.java new file mode 100644 index 0000000..6408262 --- /dev/null +++ b/alive-server/src/main/java/com/ruoyi/system/domain/ActivityStatistics.java @@ -0,0 +1,47 @@ +package com.ruoyi.system.domain; + +import java.math.BigDecimal; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import lombok.experimental.Accessors; +import com.ruoyi.common.core.domain.BaseEntity; +import lombok.Getter; +import lombok.Setter; +import java.util.Date; +import com.ruoyi.common.core.domain.BaseEntity; + +/** + * 业绩统计对象 activity_statistics + * + * @author HayDen + * @date 2024-04-24 + */ +@Setter +@Getter +@Accessors(chain = true) +public class ActivityStatistics extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + + /** + * 标记删除,0 / 1 + */ + @Excel(name = "标记删除,0 / 1") + private String flag; + + + /** + * 用户地址 + */ +@Excel(name = "用户地址") + private String address; + + /** + * 累计业绩 + */ +@Excel(name = "累计业绩") + private BigDecimal amount; + +} diff --git a/alive-server/src/main/java/com/ruoyi/system/domain/CoinConfig.java b/alive-server/src/main/java/com/ruoyi/system/domain/CoinConfig.java new file mode 100644 index 0000000..2c2ccd7 --- /dev/null +++ b/alive-server/src/main/java/com/ruoyi/system/domain/CoinConfig.java @@ -0,0 +1,75 @@ +package com.ruoyi.system.domain; + +import java.math.BigDecimal; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import lombok.experimental.Accessors; +import com.ruoyi.common.core.domain.BaseEntity; +import lombok.Getter; +import lombok.Setter; +import java.util.Date; +import com.ruoyi.common.core.domain.BaseEntity; + +/** + * 币种配置对象 coin_config + * + * @author HayDen + * @date 2024-05-27 + */ +@Setter +@Getter +@Accessors(chain = true) +public class CoinConfig extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** + * 币种名称 + */ +@Excel(name = "币种名称") + private String coinName; + + /** + * 1=认购中 2=已下架 + */ +@Excel(name = "1=认购中 2=已下架") + private Integer state; + + /** + * USDT 价格 + */ +@Excel(name = "USDT 价格") + private BigDecimal usdtPrice; + + /** + * 最低认购数量 + */ +@Excel(name = "最低认购数量") + private BigDecimal minNumber; + + /** + * 最高认购数量 + */ +@Excel(name = "最高认购数量") + private BigDecimal maxNumber; + + /** + * 空投数量 + */ +@Excel(name = "空投数量") + private BigDecimal airdropNumber; + + /** + * 私募总金额 + */ +@Excel(name = "私募总金额") + private BigDecimal privatePlacement; + + /** + * 已消耗私募金额 + */ +@Excel(name = "已消耗私募金额") + private BigDecimal toPrivatePlacement; + +} diff --git a/alive-server/src/main/java/com/ruoyi/system/domain/Node.java b/alive-server/src/main/java/com/ruoyi/system/domain/Node.java new file mode 100644 index 0000000..088cc9d --- /dev/null +++ b/alive-server/src/main/java/com/ruoyi/system/domain/Node.java @@ -0,0 +1,56 @@ +package com.ruoyi.system.domain; + +import java.math.BigDecimal; +import java.util.Date; + +import com.fasterxml.jackson.annotation.JsonFormat; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import lombok.experimental.Accessors; +import com.ruoyi.common.core.domain.BaseEntity; +import lombok.Getter; +import lombok.Setter; + +import java.util.Date; + +import com.ruoyi.common.core.domain.BaseEntity; + +/** + * 用户节点对象 node + * + * @author HayDen + * @date 2024-01-11 + */ +@Setter +@Getter +@Accessors(chain = true) +public class Node extends BaseEntity { + private static final long serialVersionUID = 1L; + + /** + * 认购币种 + */ + @Excel(name = "认购币种") + private String buyCoin; + + /** + * 支付金额 + */ + @Excel(name = "支付金额") + private BigDecimal buyAmount; + + /** + * 购买数量 + */ + @Excel(name = "购买数量") + private Integer buyNumber; + + /** + * 确认时间 + */ + @Excel(name = "确认时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss") + private Date confirmTime; + + private String address; +} diff --git a/alive-server/src/main/java/com/ruoyi/system/domain/NodeAwardSetting.java b/alive-server/src/main/java/com/ruoyi/system/domain/NodeAwardSetting.java new file mode 100644 index 0000000..d83c24f --- /dev/null +++ b/alive-server/src/main/java/com/ruoyi/system/domain/NodeAwardSetting.java @@ -0,0 +1,75 @@ +package com.ruoyi.system.domain; + +import java.math.BigDecimal; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import lombok.experimental.Accessors; +import com.ruoyi.common.core.domain.BaseEntity; +import lombok.Getter; +import lombok.Setter; +import java.util.Date; +import com.ruoyi.common.core.domain.BaseEntity; + +/** + * 节点奖励设置对象 node_award_setting + * + * @author HayDen + * @date 2024-02-24 + */ +@Setter +@Getter +@Accessors(chain = true) +public class NodeAwardSetting extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** + * 节点奖励id + */ +@Excel(name = "节点奖励id") + private Integer nodeSettingId; + + /** + * 返佣比例 + */ +@Excel(name = "返佣比例") + private BigDecimal rebate; + + /** + * 购买盒子获取Rbit奖励数量 + */ +@Excel(name = "购买盒子获取Rbit奖励数量") + private BigDecimal rbitAmount; + + /** + * 1代Rbit奖励比例 + */ +@Excel(name = "1代Rbit奖励比例") + private BigDecimal rbitOne; + + /** + * 2代Rbit奖励比例 + */ +@Excel(name = "2代Rbit奖励比例") + private BigDecimal rebateTwo; + + /** + * 购买盒子NFT碎片奖励数量 + */ +@Excel(name = "购买盒子NFT碎片奖励数量") + private BigDecimal nftAmount; + + /** + * 1代NFT碎片奖励比例 + */ +@Excel(name = "1代NFT碎片奖励比例") + private BigDecimal nftOne; + + /** + * 2代NFT碎片奖励比例 + */ +@Excel(name = "2代NFT碎片奖励比例") + private BigDecimal nftTwo; + +} diff --git a/alive-server/src/main/java/com/ruoyi/system/domain/NodeBuyLog.java b/alive-server/src/main/java/com/ruoyi/system/domain/NodeBuyLog.java new file mode 100644 index 0000000..53fd213 --- /dev/null +++ b/alive-server/src/main/java/com/ruoyi/system/domain/NodeBuyLog.java @@ -0,0 +1,173 @@ +package com.ruoyi.system.domain; + +import java.math.BigDecimal; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import lombok.experimental.Accessors; +import com.ruoyi.common.core.domain.BaseEntity; +import lombok.Getter; +import lombok.Setter; +import java.util.Date; +import com.ruoyi.common.core.domain.BaseEntity; + +/** + * 节点认购记录对象 node_buy_log + * + * @author HayDen + * @date 2024-02-25 + */ +@Setter +@Getter +@Accessors(chain = true) +public class NodeBuyLog extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** + * 钱包地址 + */ + @Excel(name = "钱包地址") + private String walletAddress; + + /** + * 推荐人ID + */ + @Excel(name = "推荐人ID") + private Integer recommendId; + + /** + * 间推人ID + */ + @Excel(name = "间推人ID") + private Integer indirectUserId; + + /** + * 认购数量 + */ + @Excel(name = "认购数量") + private BigDecimal buyCount; + + /** + * 支付币种 + */ + @Excel(name = "支付币种") + private String payCoin; + + /** + * 认购金额 + */ + @Excel(name = "认购金额") + private BigDecimal buyAmount; + + /** + * 节点配置ID + */ + @Excel(name = "节点配置ID") + private Integer nodeSettingId; + + /** + * 1:订单生成 2:链上确认 3:支付成功 4:支付失败 + */ + @Excel(name = "1:订单生成 2:链上确认 3:支付成功 4:支付失败") + private Integer status; + + /** + * 用户id + */ + @Excel(name = "用户id") + private Integer userId; + + /** + * 交易hash + */ + @Excel(name = "交易hash") + private String hash; + + /** + * 订单号 + */ + @Excel(name = "订单号") + private String orderNumber; + + /** + * 出账地址 + */ + @Excel(name = "出账地址") + private String inputAddress; + + /** + * 到账地址 + */ + @Excel(name = "到账地址") + private String outAddress; + + /** + * 推荐人返佣金额 + */ + @Excel(name = "推荐人返佣金额") + private BigDecimal rebate; + + /** + * 购买盒子获取Rbit奖励数量 + */ + @Excel(name = "购买盒子获取Rbit奖励数量") + private BigDecimal rbitAmount; + + /** + * 1代Rbit奖励 + */ + @Excel(name = "1代Rbit奖励") + private BigDecimal rbitOne; + + /** + * 2代Rbit奖励 + */ + @Excel(name = "2代Rbit奖励") + private BigDecimal rbitTwo; + + /** + * 购买盒子NFT碎片奖励数量 + */ + @Excel(name = "购买盒子NFT碎片奖励数量") + private BigDecimal nftAmount; + + /** + * 1代NFT碎片奖励 + */ + @Excel(name = "1代NFT碎片奖励") + private BigDecimal nftOne; + + /** + * 2代NFT碎片奖励 + */ + @Excel(name = "2代NFT碎片奖励") + private BigDecimal nftTwo; + + /** + * 订单说明 + */ + @Excel(name = "订单说明") + private String illustrate; + + /** + * 节点名称 + */ + private String nodeName; + + /** + * 上级地址 + */ + private String address; + + /** + * + * 特定顶级用户 + */ + private String topAddress; + + private Long topUserId; + + @Excel(name = "1=结算 0=未结算") + private Integer topSettlement; +} diff --git a/alive-server/src/main/java/com/ruoyi/system/domain/NodePriceConfig.java b/alive-server/src/main/java/com/ruoyi/system/domain/NodePriceConfig.java new file mode 100644 index 0000000..779e615 --- /dev/null +++ b/alive-server/src/main/java/com/ruoyi/system/domain/NodePriceConfig.java @@ -0,0 +1,51 @@ +package com.ruoyi.system.domain; + +import java.math.BigDecimal; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import lombok.experimental.Accessors; +import com.ruoyi.common.core.domain.BaseEntity; +import lombok.Getter; +import lombok.Setter; +import java.util.Date; +import com.ruoyi.common.core.domain.BaseEntity; + +/** + * 节点价格区间配置对象 node_price_config + * + * @author HayDen + * @date 2024-01-08 + */ +@Setter +@Getter +@Accessors(chain = true) +public class NodePriceConfig extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** + * 节点配置id + */ + @Excel(name = "节点配置id") + private Integer nodeSettingId; + + /** + * 区间开始数量 + */ + @Excel(name = "区间开始数量") + private Integer startNum; + + /** + * 区间结束数量 + */ + @Excel(name = "区间结束数量") + private Integer endNum; + + /** + * 价格 + */ + @Excel(name = "价格") + private BigDecimal price; + +} diff --git a/alive-server/src/main/java/com/ruoyi/system/domain/NodeSetting.java b/alive-server/src/main/java/com/ruoyi/system/domain/NodeSetting.java new file mode 100644 index 0000000..8215128 --- /dev/null +++ b/alive-server/src/main/java/com/ruoyi/system/domain/NodeSetting.java @@ -0,0 +1,94 @@ +package com.ruoyi.system.domain; + +import java.math.BigDecimal; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import lombok.experimental.Accessors; +import com.ruoyi.common.core.domain.BaseEntity; +import lombok.Getter; +import lombok.Setter; +import java.util.Date; +import com.ruoyi.common.core.domain.BaseEntity; + +/** + * 节点设置对象 node_setting + * + * @author HayDen + * @date 2024-02-24 + */ +@Setter +@Getter +@Accessors(chain = true) +public class NodeSetting extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** + * 认购币种 + */ + @Excel(name = "认购币种") + private String buyCoinName; + + /** + * 节点总量 + */ + @Excel(name = "节点总量") + private Integer nodeTotal; + + /** + * 节点价格 + */ + @Excel(name = "节点价格") + private BigDecimal nodePrice; + + /** + * 单地址限购数量 + */ + @Excel(name = "单地址限购数量") + private Integer purchaseLimit; + + /** + * 已购数量 + */ + @Excel(name = "已购数量") + private Integer purchasedCount; + + /** + * 已购金额 + */ + @Excel(name = "已购金额") + private BigDecimal purchasedAmount; + + /** + * 当前状态:1:认购中;2:已完成;3:待认购 + */ + @Excel(name = "当前状态:1:认购中;2:已完成;3:待认购") + private Integer status; + + /** + * 节点名称 + */ + @Excel(name = "节点名称") + private String nodeName; + + /** + * 节点说明 + */ + @Excel(name = "节点说明") + private String illustrate; + + /** + * 标题 + */ + @Excel(name = "标题") + private String title; + + /** + * 节点等级 + */ + @Excel(name = "节点等级") + private String nodeGrade; + + private String nodeNamePs; +} diff --git a/alive-server/src/main/java/com/ruoyi/system/domain/NodeTask.java b/alive-server/src/main/java/com/ruoyi/system/domain/NodeTask.java new file mode 100644 index 0000000..9979a96 --- /dev/null +++ b/alive-server/src/main/java/com/ruoyi/system/domain/NodeTask.java @@ -0,0 +1,69 @@ +package com.ruoyi.system.domain; + +import java.math.BigDecimal; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import lombok.experimental.Accessors; +import com.ruoyi.common.core.domain.BaseEntity; +import lombok.Getter; +import lombok.Setter; +import java.util.Date; +import com.ruoyi.common.core.domain.BaseEntity; + +/** + * NEER任务配置对象 node_task + * + * @author HayDen + * @date 2024-02-24 + */ +@Setter +@Getter +@Accessors(chain = true) +public class NodeTask extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** + * 标记删除,0 / 1 + */ +@Excel(name = "标记删除,0 / 1") + private String flag; + + /** + * 类型,1链接钱包,2关注推特 3:加入TG 4加入Discord 5邀请获得积分 + */ +@Excel(name = "类型,1链接钱包,2关注推特 3:加入TG 4加入Discord 5邀请获得积分") + private Integer type; + + /** + * 名称,没什么用,方便看数据库 + */ +@Excel(name = "名称,没什么用,方便看数据库") + private String title; + + /** + * 奖励数量 + */ +@Excel(name = "奖励数量") + private BigDecimal awardValue; + + /** + * 推荐人奖励 + */ +@Excel(name = "推荐人奖励") + private BigDecimal recommendValue; + + /** + * 类型2的任务目标,其它类型忽略 + */ +@Excel(name = "类型2的任务目标,其它类型忽略") + private Integer type2Target; + + /** + * 奖励币种iD(0=战力) + */ +@Excel(name = "奖励币种iD", readConverterExp = "0==战力") + private Integer coinId; + +} diff --git a/alive-server/src/main/java/com/ruoyi/system/domain/NodeTaskLog.java b/alive-server/src/main/java/com/ruoyi/system/domain/NodeTaskLog.java new file mode 100644 index 0000000..86335cf --- /dev/null +++ b/alive-server/src/main/java/com/ruoyi/system/domain/NodeTaskLog.java @@ -0,0 +1,69 @@ +package com.ruoyi.system.domain; + +import java.math.BigDecimal; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import lombok.experimental.Accessors; +import com.ruoyi.common.core.domain.BaseEntity; +import lombok.Getter; +import lombok.Setter; +import java.util.Date; +import com.ruoyi.common.core.domain.BaseEntity; + +/** + * 我的任务奖励对象 node_task_log + * + * @author HayDen + * @date 2024-02-24 + */ +@Setter +@Getter +@Accessors(chain = true) +public class NodeTaskLog extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** + * 标记删除,0 / 1 + */ +@Excel(name = "标记删除,0 / 1") + private String flag; + + /** + * 任务id + */ +@Excel(name = "任务id") + private Integer taskId; + + /** + * 会员id + */ +@Excel(name = "会员id") + private Integer memberId; + + /** + * 0=待确认 1=待领取 2=已领取 + */ +@Excel(name = "0=待确认 1=待领取 2=已领取") + private Integer state; + + /** + * 奖励积分数量 + */ +@Excel(name = "奖励积分数量") + private BigDecimal awardValue; + + /** + * 奖励币种 + */ +@Excel(name = "奖励币种") + private String coinName; + + /** + * 推荐人奖励 + */ +@Excel(name = "推荐人奖励") + private BigDecimal recommendValue; + +} diff --git a/alive-server/src/main/java/com/ruoyi/system/domain/Notice.java b/alive-server/src/main/java/com/ruoyi/system/domain/Notice.java new file mode 100644 index 0000000..aa532fa --- /dev/null +++ b/alive-server/src/main/java/com/ruoyi/system/domain/Notice.java @@ -0,0 +1,44 @@ +package com.ruoyi.system.domain; + +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import lombok.experimental.Accessors; +import com.ruoyi.common.core.domain.BaseEntity; +import lombok.Getter; +import lombok.Setter; +import java.util.Date; +import com.ruoyi.common.core.domain.BaseEntity; + +/** + * 公告对象 notice + * + * @author HayDen + * @date 2024-01-08 + */ +@Setter +@Getter +@Accessors(chain = true) +public class Notice extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** + * 标题 + */ + @Excel(name = "标题") + private String title; + + /** + * 内容 + */ + @Excel(name = "内容") + private String content; + + /** + * 是否置顶(1:置顶;0未置顶) + */ + @Excel(name = "是否置顶(1:置顶;0未置顶)") + private String isTop; + +} diff --git a/alive-server/src/main/java/com/ruoyi/system/domain/PayCoinLog.java b/alive-server/src/main/java/com/ruoyi/system/domain/PayCoinLog.java new file mode 100644 index 0000000..d9a31ee --- /dev/null +++ b/alive-server/src/main/java/com/ruoyi/system/domain/PayCoinLog.java @@ -0,0 +1,93 @@ +package com.ruoyi.system.domain; + +import java.math.BigDecimal; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import lombok.experimental.Accessors; +import com.ruoyi.common.core.domain.BaseEntity; +import lombok.Getter; +import lombok.Setter; +import java.util.Date; +import com.ruoyi.common.core.domain.BaseEntity; + +/** + * 兑换币种日志对象 pay_coin_log + * + * @author HayDen + * @date 2024-05-27 + */ +@Setter +@Getter +@Accessors(chain = true) +public class PayCoinLog extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** + * 用户ID + */ +@Excel(name = "用户ID") + private Integer memberId; + + /** + * 用户地址 + */ +@Excel(name = "用户地址") + private String address; + + /** + * 购买币种ID + */ +@Excel(name = "购买币种ID") + private Integer coinId; + + /** + * 币种名称 + */ +@Excel(name = "币种名称") + private String coinName; + + /** + * 支付USDT金额 + */ +@Excel(name = "支付USDT金额") + private BigDecimal payUsdt; + + /** + * 到账金额 + */ +@Excel(name = "到账金额") + private BigDecimal amount; + + /** + * 单价 + */ +@Excel(name = "单价") + private BigDecimal unitPrice; + + /** + * 1:订单生成 2:链上确认 3:支付成功 4:支付失败 + */ +@Excel(name = "1:订单生成 2:链上确认 3:支付成功 4:支付失败") + private Integer status; + + /** + * 交易hash + */ +@Excel(name = "交易hash") + private String hash; + + /** + * 订单号 + */ +@Excel(name = "订单号") + private String orderNumber; + + /** + * 订单说明 + */ +@Excel(name = "订单说明") + private String illustrate; + +} diff --git a/alive-server/src/main/java/com/ruoyi/system/domain/TConfig.java b/alive-server/src/main/java/com/ruoyi/system/domain/TConfig.java new file mode 100644 index 0000000..f4aa381 --- /dev/null +++ b/alive-server/src/main/java/com/ruoyi/system/domain/TConfig.java @@ -0,0 +1,45 @@ +package com.ruoyi.system.domain; + +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import lombok.experimental.Accessors; +import com.ruoyi.common.core.domain.BaseEntity; +import lombok.Getter; +import lombok.Setter; + +import java.util.Date; + +import com.ruoyi.common.core.domain.BaseEntity; + +/** + * 配置对象 t_config + * + * @author HayDen + * @date 2024-01-11 + */ +@Setter +@Getter +@Accessors(chain = true) +public class TConfig extends BaseEntity { + private static final long serialVersionUID = 1L; + + /** + * key + */ + @Excel(name = "key") + private String nodeKey; + + /** + * value + */ + @Excel(name = "value") + private String nodeValue; + + /** + * $column.columnComment + */ + @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") + private String nodeName; + +} diff --git a/alive-server/src/main/java/com/ruoyi/system/domain/TMember.java b/alive-server/src/main/java/com/ruoyi/system/domain/TMember.java new file mode 100644 index 0000000..634643a --- /dev/null +++ b/alive-server/src/main/java/com/ruoyi/system/domain/TMember.java @@ -0,0 +1,128 @@ +package com.ruoyi.system.domain; + +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import lombok.experimental.Accessors; +import com.ruoyi.common.core.domain.BaseEntity; +import lombok.Getter; +import lombok.Setter; + +import java.util.Date; + +import com.ruoyi.common.core.domain.BaseEntity; + +/** + * 用户对象 t_member + * + * @author HayDen + * @date 2024-01-11 + */ +@Setter +@Getter +@Accessors(chain = true) +public class TMember extends BaseEntity { + private static final long serialVersionUID = 1L; + + + /** + * 账号 + */ + @Excel(name = "账号") + private String account; + + /** + * 账号类型,1地址,2邮箱 + */ + @Excel(name = "账号类型,1地址,2邮箱") + private Integer accountType; + + /** + * 推荐人ID + */ + @Excel(name = "推荐人ID") + private Integer referId; + + /** + * 上面的人 + */ + @Excel(name = "上面的人") + private String allPid; + + /** + * 登录密码 + */ + @Excel(name = "登录密码") + private String passwordLogin; + + /** + * 支付密码 + */ + @Excel(name = "支付密码") + private String passwordPay; + + /** + * 邀请码 + */ + @Excel(name = "邀请码") + private String shareCode; + + /** + * 8位UID + */ + @Excel(name = "8位UID") + private String uid; + + /** + * 等级,看代码 + */ + @Excel(name = "等级,看代码") + private Integer level; + + /** + * 后台设置的等级 + */ + @Excel(name = "后台设置的等级") + private Integer minLevel; + + /** + * 直推人数 + */ + @Excel(name = "直推人数") + private Integer shareNum; + + /** + * 团队人数,含自己 + */ + @Excel(name = "团队人数,含自己") + private Integer teamNum; + + + /** + * 返佣 + */ + private String rebate; + + + /** + * BRIT + */ + private String brit; + + /** + * 积分 + */ + private String integral; + + /** + * 配件 + */ + private String accessories; + + /** + * 团队购买盒子数量,不算自己 + */ + private Integer buyNumber; + + private Integer topUser; +} diff --git a/alive-server/src/main/java/com/ruoyi/system/domain/TMemberWallet.java b/alive-server/src/main/java/com/ruoyi/system/domain/TMemberWallet.java new file mode 100644 index 0000000..f4ba371 --- /dev/null +++ b/alive-server/src/main/java/com/ruoyi/system/domain/TMemberWallet.java @@ -0,0 +1,58 @@ +package com.ruoyi.system.domain; + +import java.math.BigDecimal; + +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import lombok.experimental.Accessors; +import com.ruoyi.common.core.domain.BaseEntity; +import lombok.Getter; +import lombok.Setter; + +import java.util.Date; + +import com.ruoyi.common.core.domain.BaseEntity; + +/** + * 资产对象 t_member_wallet + * + * @author HayDen + * @date 2024-01-11 + */ +@Setter +@Getter +@Accessors(chain = true) +public class TMemberWallet extends BaseEntity { + private static final long serialVersionUID = 1L; + + /** + * $column.columnComment + */ + @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") + private Integer memberId; + + /** + * 币种id + */ + @Excel(name = "币种id") + private Integer coinId; + + /** + * 余额 + */ + @Excel(name = "余额") + private BigDecimal balance; + + /** + * 冻结,余额的一部分 + */ + @Excel(name = "冻结,余额的一部分") + private BigDecimal frozen; + + private String account; + + private String uid; + + private String coinName; +} diff --git a/alive-server/src/main/java/com/ruoyi/system/domain/TMemberWalletLog.java b/alive-server/src/main/java/com/ruoyi/system/domain/TMemberWalletLog.java new file mode 100644 index 0000000..b3205df --- /dev/null +++ b/alive-server/src/main/java/com/ruoyi/system/domain/TMemberWalletLog.java @@ -0,0 +1,99 @@ +package com.ruoyi.system.domain; + +import java.math.BigDecimal; + +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import lombok.experimental.Accessors; +import com.ruoyi.common.core.domain.BaseEntity; +import lombok.Getter; +import lombok.Setter; + +import java.util.Date; + +import com.ruoyi.common.core.domain.BaseEntity; + +/** + * 资产流水对象 t_member_wallet_log + * + * @author HayDen + * @date 2024-01-11 + */ +@Setter +@Getter +@Accessors(chain = true) +public class TMemberWalletLog extends BaseEntity { + private static final long serialVersionUID = 1L; + + /** + * $column.columnComment + */ + @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") + private Integer memberId; + + /** + * $column.columnComment + */ + @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") + private Integer walletId; + + /** + * 1余额,2冻结 + */ + @Excel(name = "1余额,2冻结") + private Integer type; + + /** + * 币种id + */ + @Excel(name = "币种id") + private Integer coinId; + + /** + * $column.columnComment + */ + @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") + private Integer opType; + + /** + * 流水类型 + */ + @Excel(name = "流水类型") + private String opRemark; + + /** + * $column.columnComment + */ + @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") + private BigDecimal opValue; + + /** + * $column.columnComment + */ + @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") + private BigDecimal opBefore; + + /** + * $column.columnComment + */ + @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") + private BigDecimal opAfter; + + /** + * 额外的备注 + */ + @Excel(name = "额外的备注") + private String extRemark; + + /** + * 1=返佣 2=BRIT 3=积分 4=配件 + */ + private Integer types; + + private String account; + + private String uid; + + private String coinName; +} diff --git a/alive-server/src/main/java/com/ruoyi/system/domain/User.java b/alive-server/src/main/java/com/ruoyi/system/domain/User.java new file mode 100644 index 0000000..10c21bc --- /dev/null +++ b/alive-server/src/main/java/com/ruoyi/system/domain/User.java @@ -0,0 +1,81 @@ +package com.ruoyi.system.domain; + +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import lombok.experimental.Accessors; +import com.ruoyi.common.core.domain.BaseEntity; +import lombok.Getter; +import lombok.Setter; + +import java.util.Date; + +import com.ruoyi.common.core.domain.BaseEntity; + +/** + * 用户对象 fai_user + * + * @author HayDen + * @date 2022-11-11 + */ +@Setter +@Getter +@Accessors(chain = true) +public class User extends BaseEntity { + private static final long serialVersionUID = 1L; + + /** + * 标记删除,0 / 1 + */ + @Excel(name = "标记删除,0 / 1") + private Integer flag; + + /** + * 用户昵称 + */ + @Excel(name = "用户昵称") + private String name; + + /** + * 用户地址 + */ + @Excel(name = "用户地址") + private String address; + + /** + * 父类ID + */ + @Excel(name = "父类ID") + private Long directUserId; + + /** + * 父类地址 + */ + @Excel(name = "父类地址") + private String parentAddress; + + /** + * 所有父级id,从根节点开始,前后包含逗号 + */ + @Excel(name = "所有父级id,从根节点开始,前后包含逗号") + private String allParentId; + + /** + * 0无效,1有效 + */ + @Excel(name = "0无效,1有效") + private Long valid; + + /** + * 用户头像 + */ + @Excel(name = "用户头像") + private String img; + + /** + * 角色背景图片 + */ + @Excel(name = "角色背景图片") + private String roleImg; + +} diff --git a/alive-server/src/main/java/com/ruoyi/system/domain/UserPassword.java b/alive-server/src/main/java/com/ruoyi/system/domain/UserPassword.java new file mode 100644 index 0000000..cb442d0 --- /dev/null +++ b/alive-server/src/main/java/com/ruoyi/system/domain/UserPassword.java @@ -0,0 +1,55 @@ +package com.ruoyi.system.domain; + +import lombok.Getter; +import lombok.Setter; +import lombok.experimental.Accessors; + +import java.util.Date; + +/** + * 用户密码配置对象 sys_user_password + * + * @author HayDen + * @date 2022-06-16 + */ +@Setter +@Getter +@Accessors(chain = true) +public class UserPassword { + private static final long serialVersionUID = 1L; + + /** + * 参数主键 + */ + private Long id; + + /** + * 用户账号 + */ + private String userName; + + /** + * 用户地址 + */ + private String address; + + /** + * 密码 + */ + private String password; + + /** 创建者 */ + private String createBy; + + /** 创建时间 */ + private Date createTime; + + /** 更新者 */ + private String updateBy; + + /** 更新时间 */ + private Date updateTime; + + /** 备注 */ + private String remark; +} diff --git a/alive-server/src/main/java/com/ruoyi/system/domain/vo/BaseEnum.java b/alive-server/src/main/java/com/ruoyi/system/domain/vo/BaseEnum.java new file mode 100644 index 0000000..4b8b758 --- /dev/null +++ b/alive-server/src/main/java/com/ruoyi/system/domain/vo/BaseEnum.java @@ -0,0 +1,12 @@ +package com.ruoyi.system.domain.vo; + +public interface BaseEnum { + + int getEnumCode(); + + //BaseEnum valueOf(int enumCode); + + default String i18nKey() { + return null; + } +} diff --git a/alive-server/src/main/java/com/ruoyi/system/domain/vo/InviteResp.java b/alive-server/src/main/java/com/ruoyi/system/domain/vo/InviteResp.java new file mode 100644 index 0000000..d68634c --- /dev/null +++ b/alive-server/src/main/java/com/ruoyi/system/domain/vo/InviteResp.java @@ -0,0 +1,58 @@ +package com.ruoyi.system.domain.vo; + +import lombok.Data; +import lombok.experimental.Accessors; + +import java.math.BigDecimal; + +/** + * 邀请相关 + */ +@Data +@Accessors(chain = true) +public class InviteResp { + + /** + * 用户id + */ + private Integer id; + + /** + * 用户地址 + */ + private String account; + + + /** + * 推荐人地址 + */ + private String address; + + /** + * 购买总数量 + */ + private Integer buyCount; + + /** + * 支付总金额 + */ + private BigDecimal buyAmount; + + /** + * 奖励NFT总数量 + */ + private BigDecimal nftNumber; + + /** + * 总贡献值 + */ + private BigDecimal contribution; + + /** + * 支付币种 + */ + private String payCoin; + +} + + diff --git a/alive-server/src/main/java/com/ruoyi/system/domain/vo/UserBoxResp.java b/alive-server/src/main/java/com/ruoyi/system/domain/vo/UserBoxResp.java new file mode 100644 index 0000000..4eb5fb5 --- /dev/null +++ b/alive-server/src/main/java/com/ruoyi/system/domain/vo/UserBoxResp.java @@ -0,0 +1,28 @@ +package com.ruoyi.system.domain.vo; + +import lombok.Data; +import lombok.experimental.Accessors; + +import java.math.BigDecimal; + +/** + * 邀请相关 + */ +@Data +@Accessors(chain = true) +public class UserBoxResp { + + /** + * 用户id + */ + private Long referId; + + /** + * 下级购买盒子数量 + */ + private Integer buyNumber; + + +} + + diff --git a/alive-server/src/main/java/com/ruoyi/system/domain/vo/UserEquipgeResp.java b/alive-server/src/main/java/com/ruoyi/system/domain/vo/UserEquipgeResp.java new file mode 100644 index 0000000..6bcb3cb --- /dev/null +++ b/alive-server/src/main/java/com/ruoyi/system/domain/vo/UserEquipgeResp.java @@ -0,0 +1,52 @@ +package com.ruoyi.system.domain.vo; + +import lombok.Data; +import lombok.experimental.Accessors; + +/** + * 用户装备 + */ +@Data +@Accessors(chain = true) +public class UserEquipgeResp { + + /** + * 装备数量 + */ + private Integer count; + + /** + * 装备名称 + */ + private String name; + + /** + * 装备图片 + */ + private String img; + + /** + * 装备等级 + */ + private Integer grade; + + /** + * 装备等级配置表ID + */ + private Integer mallGradeId; + + /** + * 装备升级药水数量 + */ + private Long numberOfPotions; + + /** + * 装备升级药水图片 + */ + private String potionsImg; + + /** + * 装备合成消耗数量 + */ + private Integer synthesisNumber; +} diff --git a/alive-server/src/main/java/com/ruoyi/system/domain/vo/WalletOperateTypeEnum.java b/alive-server/src/main/java/com/ruoyi/system/domain/vo/WalletOperateTypeEnum.java new file mode 100644 index 0000000..97ac6cd --- /dev/null +++ b/alive-server/src/main/java/com/ruoyi/system/domain/vo/WalletOperateTypeEnum.java @@ -0,0 +1,53 @@ +package com.ruoyi.system.domain.vo; + +public enum WalletOperateTypeEnum implements BaseEnum { + EXTRACT_AIRDROP(0, "提取空投"), + AIRDROP_WAS_SUCCESSFUL(1, "空投成功"), + ACTIVATE_AIRDROP(2, "激活空投"), + BACKGROUND_OPERATIONS(3, "后台操作"), + EMANCIPATION(4, "释放"), + EQUIPMENT_REPAIR(5, "装备修复"), + BUY_SILVER_COINS(6, "购买银币"), + MISSION_REWARDS(7, "任务奖励"), + MAKE_AN_APPOINTMENT_TO_WITHDRAW(8, "预约提币"), + WITHDRAWAL_BACK(9, "提币退回"), + WITHDRAWAL_SUCCESS(10, "提币成功"), + BETRAYAL_OF_THE_NIGHT_KING(11, "夜王背叛"), + ; + private final int code; + private final String remark; + + WalletOperateTypeEnum(int code, String remark) { + this.code = code; + this.remark = remark; + } + + public int getCode() { + return code; + } + + public String getRemark() { + return remark; + } + + @Override + public int getEnumCode() { + return this.code; + } + + @Override + public String i18nKey() { + return "WalletOperateTypeEnum." + getCode(); + } + + + public static WalletOperateTypeEnum valueOf(int enumCode) { + for (WalletOperateTypeEnum typeEnum : WalletOperateTypeEnum.values()) { + if (typeEnum.getEnumCode() == enumCode) { + return typeEnum; + } + } + return null; + } +} + diff --git a/alive-server/src/main/java/com/ruoyi/system/mapper/ActivityConfigMapper.java b/alive-server/src/main/java/com/ruoyi/system/mapper/ActivityConfigMapper.java new file mode 100644 index 0000000..770c042 --- /dev/null +++ b/alive-server/src/main/java/com/ruoyi/system/mapper/ActivityConfigMapper.java @@ -0,0 +1,63 @@ +package com.ruoyi.system.mapper; + +import java.util.List; +import com.ruoyi.system.domain.ActivityConfig; + +/** + * 活动配置Mapper接口 + * + * @author HayDen + * @date 2024-04-24 + */ +public interface ActivityConfigMapper +{ + /** + * 查询活动配置 + * + * @param id 活动配置ID + * @return 活动配置 + */ + ActivityConfig selectActivityConfigById(Integer id); + + /** + * 查询活动配置列表 + * + * @param activityConfig 活动配置 + * @return 活动配置集合 + */ + List selectActivityConfigList(ActivityConfig activityConfig); + + List findActivityConfigCount(); + + /** + * 查询活动配置对象 + * + * @param activityConfig 活动配置 + * @return 活动配置 + */ + ActivityConfig findActivityConfig(ActivityConfig activityConfig); + + /** + * 新增活动配置 + * + * @param activityConfig 活动配置 + * @return 结果 + */ + int insertActivityConfig(ActivityConfig activityConfig); + + /** + * 修改活动配置 + * + * @param activityConfig 活动配置 + * @return 结果 + */ + int updateActivityConfig(ActivityConfig activityConfig); + + /** + * 批量删除活动配置 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + int deleteActivityConfigByIds(String[] ids); +} diff --git a/alive-server/src/main/java/com/ruoyi/system/mapper/ActivityLogMapper.java b/alive-server/src/main/java/com/ruoyi/system/mapper/ActivityLogMapper.java new file mode 100644 index 0000000..12ad1a8 --- /dev/null +++ b/alive-server/src/main/java/com/ruoyi/system/mapper/ActivityLogMapper.java @@ -0,0 +1,61 @@ +package com.ruoyi.system.mapper; + +import java.util.List; +import com.ruoyi.system.domain.ActivityLog; + +/** + * 活动任务日志Mapper接口 + * + * @author HayDen + * @date 2024-04-24 + */ +public interface ActivityLogMapper +{ + /** + * 查询活动任务日志 + * + * @param id 活动任务日志ID + * @return 活动任务日志 + */ + ActivityLog selectActivityLogById(Integer id); + + /** + * 查询活动任务日志列表 + * + * @param activityLog 活动任务日志 + * @return 活动任务日志集合 + */ + List selectActivityLogList(ActivityLog activityLog); + + /** + * 查询活动任务日志对象 + * + * @param activityLog 活动任务日志 + * @return 活动任务日志 + */ + ActivityLog findActivityLog(ActivityLog activityLog); + + /** + * 新增活动任务日志 + * + * @param activityLog 活动任务日志 + * @return 结果 + */ + int insertActivityLog(ActivityLog activityLog); + + /** + * 修改活动任务日志 + * + * @param activityLog 活动任务日志 + * @return 结果 + */ + int updateActivityLog(ActivityLog activityLog); + + /** + * 批量删除活动任务日志 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + int deleteActivityLogByIds(String[] ids); +} diff --git a/alive-server/src/main/java/com/ruoyi/system/mapper/ActivityStatisticsMapper.java b/alive-server/src/main/java/com/ruoyi/system/mapper/ActivityStatisticsMapper.java new file mode 100644 index 0000000..9d9620f --- /dev/null +++ b/alive-server/src/main/java/com/ruoyi/system/mapper/ActivityStatisticsMapper.java @@ -0,0 +1,61 @@ +package com.ruoyi.system.mapper; + +import java.util.List; +import com.ruoyi.system.domain.ActivityStatistics; + +/** + * 业绩统计Mapper接口 + * + * @author HayDen + * @date 2024-04-24 + */ +public interface ActivityStatisticsMapper +{ + /** + * 查询业绩统计 + * + * @param id 业绩统计ID + * @return 业绩统计 + */ + ActivityStatistics selectActivityStatisticsById(Integer id); + + /** + * 查询业绩统计列表 + * + * @param activityStatistics 业绩统计 + * @return 业绩统计集合 + */ + List selectActivityStatisticsList(ActivityStatistics activityStatistics); + + /** + * 查询业绩统计对象 + * + * @param activityStatistics 业绩统计 + * @return 业绩统计 + */ + ActivityStatistics findActivityStatistics(ActivityStatistics activityStatistics); + + /** + * 新增业绩统计 + * + * @param activityStatistics 业绩统计 + * @return 结果 + */ + int insertActivityStatistics(ActivityStatistics activityStatistics); + + /** + * 修改业绩统计 + * + * @param activityStatistics 业绩统计 + * @return 结果 + */ + int updateActivityStatistics(ActivityStatistics activityStatistics); + + /** + * 批量删除业绩统计 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + int deleteActivityStatisticsByIds(String[] ids); +} diff --git a/alive-server/src/main/java/com/ruoyi/system/mapper/CoinConfigMapper.java b/alive-server/src/main/java/com/ruoyi/system/mapper/CoinConfigMapper.java new file mode 100644 index 0000000..8b44fc5 --- /dev/null +++ b/alive-server/src/main/java/com/ruoyi/system/mapper/CoinConfigMapper.java @@ -0,0 +1,61 @@ +package com.ruoyi.system.mapper; + +import java.util.List; +import com.ruoyi.system.domain.CoinConfig; + +/** + * 币种配置Mapper接口 + * + * @author HayDen + * @date 2024-05-27 + */ +public interface CoinConfigMapper +{ + /** + * 查询币种配置 + * + * @param id 币种配置ID + * @return 币种配置 + */ + CoinConfig selectCoinConfigById(Integer id); + + /** + * 查询币种配置列表 + * + * @param coinConfig 币种配置 + * @return 币种配置集合 + */ + List selectCoinConfigList(CoinConfig coinConfig); + + /** + * 查询币种配置对象 + * + * @param coinConfig 币种配置 + * @return 币种配置 + */ + CoinConfig findCoinConfig(CoinConfig coinConfig); + + /** + * 新增币种配置 + * + * @param coinConfig 币种配置 + * @return 结果 + */ + int insertCoinConfig(CoinConfig coinConfig); + + /** + * 修改币种配置 + * + * @param coinConfig 币种配置 + * @return 结果 + */ + int updateCoinConfig(CoinConfig coinConfig); + + /** + * 批量删除币种配置 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + int deleteCoinConfigByIds(String[] ids); +} diff --git a/alive-server/src/main/java/com/ruoyi/system/mapper/NodeAwardSettingMapper.java b/alive-server/src/main/java/com/ruoyi/system/mapper/NodeAwardSettingMapper.java new file mode 100644 index 0000000..5a9a331 --- /dev/null +++ b/alive-server/src/main/java/com/ruoyi/system/mapper/NodeAwardSettingMapper.java @@ -0,0 +1,61 @@ +package com.ruoyi.system.mapper; + +import java.util.List; +import com.ruoyi.system.domain.NodeAwardSetting; + +/** + * 节点奖励设置Mapper接口 + * + * @author HayDen + * @date 2024-02-24 + */ +public interface NodeAwardSettingMapper +{ + /** + * 查询节点奖励设置 + * + * @param id 节点奖励设置ID + * @return 节点奖励设置 + */ + NodeAwardSetting selectNodeAwardSettingById(Integer id); + + /** + * 查询节点奖励设置列表 + * + * @param nodeAwardSetting 节点奖励设置 + * @return 节点奖励设置集合 + */ + List selectNodeAwardSettingList(NodeAwardSetting nodeAwardSetting); + + /** + * 查询节点奖励设置对象 + * + * @param nodeAwardSetting 节点奖励设置 + * @return 节点奖励设置 + */ + NodeAwardSetting findNodeAwardSetting(NodeAwardSetting nodeAwardSetting); + + /** + * 新增节点奖励设置 + * + * @param nodeAwardSetting 节点奖励设置 + * @return 结果 + */ + int insertNodeAwardSetting(NodeAwardSetting nodeAwardSetting); + + /** + * 修改节点奖励设置 + * + * @param nodeAwardSetting 节点奖励设置 + * @return 结果 + */ + int updateNodeAwardSetting(NodeAwardSetting nodeAwardSetting); + + /** + * 批量删除节点奖励设置 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + int deleteNodeAwardSettingByIds(String[] ids); +} diff --git a/alive-server/src/main/java/com/ruoyi/system/mapper/NodeBuyLogMapper.java b/alive-server/src/main/java/com/ruoyi/system/mapper/NodeBuyLogMapper.java new file mode 100644 index 0000000..fa0f67c --- /dev/null +++ b/alive-server/src/main/java/com/ruoyi/system/mapper/NodeBuyLogMapper.java @@ -0,0 +1,70 @@ +package com.ruoyi.system.mapper; + +import java.util.List; +import com.ruoyi.system.domain.NodeBuyLog; + +/** + * 节点认购记录Mapper接口 + * + * @author HayDen + * @date 2024-01-08 + */ +public interface NodeBuyLogMapper +{ + /** + * 查询节点认购记录 + * + * @param id 节点认购记录ID + * @return 节点认购记录 + */ + NodeBuyLog selectNodeSubscribeById(Integer id); + + /** + * 查询节点认购记录列表 + * + * @param nodeSubscribe 节点认购记录 + * @return 节点认购记录集合 + */ + List selectNodeSubscribeList(NodeBuyLog nodeSubscribe); + + /** + * 查询节点认购记录对象 + * + * @param nodeSubscribe 节点认购记录 + * @return 节点认购记录 + */ + NodeBuyLog findNodeSubscribe(NodeBuyLog nodeSubscribe); + + /** + * 新增节点认购记录 + * + * @param nodeSubscribe 节点认购记录 + * @return 结果 + */ + int insertNodeSubscribe(NodeBuyLog nodeSubscribe); + + /** + * 修改节点认购记录 + * + * @param nodeSubscribe 节点认购记录 + * @return 结果 + */ + int updateNodeSubscribe(NodeBuyLog nodeSubscribe); + + /** + * 批量删除节点认购记录 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + int deleteNodeSubscribeByIds(String[] ids); + + /** + * 查询未结算的数据 + * @param array + * @return + */ + Integer countLogTop(String[] array); + + Integer updateBuyLogTop(String[] array); +} diff --git a/alive-server/src/main/java/com/ruoyi/system/mapper/NodeMapper.java b/alive-server/src/main/java/com/ruoyi/system/mapper/NodeMapper.java new file mode 100644 index 0000000..054d4fb --- /dev/null +++ b/alive-server/src/main/java/com/ruoyi/system/mapper/NodeMapper.java @@ -0,0 +1,61 @@ +package com.ruoyi.system.mapper; + +import java.util.List; +import com.ruoyi.system.domain.Node; + +/** + * 用户节点Mapper接口 + * + * @author HayDen + * @date 2024-01-11 + */ +public interface NodeMapper +{ + /** + * 查询用户节点 + * + * @param id 用户节点ID + * @return 用户节点 + */ + Node selectNodeById(Integer id); + + /** + * 查询用户节点列表 + * + * @param node 用户节点 + * @return 用户节点集合 + */ + List selectNodeList(Node node); + + /** + * 查询用户节点对象 + * + * @param node 用户节点 + * @return 用户节点 + */ + Node findNode(Node node); + + /** + * 新增用户节点 + * + * @param node 用户节点 + * @return 结果 + */ + int insertNode(Node node); + + /** + * 修改用户节点 + * + * @param node 用户节点 + * @return 结果 + */ + int updateNode(Node node); + + /** + * 批量删除用户节点 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + int deleteNodeByIds(String[] ids); +} diff --git a/alive-server/src/main/java/com/ruoyi/system/mapper/NodePriceConfigMapper.java b/alive-server/src/main/java/com/ruoyi/system/mapper/NodePriceConfigMapper.java new file mode 100644 index 0000000..31b69bd --- /dev/null +++ b/alive-server/src/main/java/com/ruoyi/system/mapper/NodePriceConfigMapper.java @@ -0,0 +1,61 @@ +package com.ruoyi.system.mapper; + +import java.util.List; +import com.ruoyi.system.domain.NodePriceConfig; + +/** + * 节点价格区间配置Mapper接口 + * + * @author HayDen + * @date 2024-01-08 + */ +public interface NodePriceConfigMapper +{ + /** + * 查询节点价格区间配置 + * + * @param id 节点价格区间配置ID + * @return 节点价格区间配置 + */ + NodePriceConfig selectNodePriceConfigById(Integer id); + + /** + * 查询节点价格区间配置列表 + * + * @param nodePriceConfig 节点价格区间配置 + * @return 节点价格区间配置集合 + */ + List selectNodePriceConfigList(NodePriceConfig nodePriceConfig); + + /** + * 查询节点价格区间配置对象 + * + * @param nodePriceConfig 节点价格区间配置 + * @return 节点价格区间配置 + */ + NodePriceConfig findNodePriceConfig(NodePriceConfig nodePriceConfig); + + /** + * 新增节点价格区间配置 + * + * @param nodePriceConfig 节点价格区间配置 + * @return 结果 + */ + int insertNodePriceConfig(NodePriceConfig nodePriceConfig); + + /** + * 修改节点价格区间配置 + * + * @param nodePriceConfig 节点价格区间配置 + * @return 结果 + */ + int updateNodePriceConfig(NodePriceConfig nodePriceConfig); + + /** + * 批量删除节点价格区间配置 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + int deleteNodePriceConfigByIds(String[] ids); +} diff --git a/alive-server/src/main/java/com/ruoyi/system/mapper/NodeSettingMapper.java b/alive-server/src/main/java/com/ruoyi/system/mapper/NodeSettingMapper.java new file mode 100644 index 0000000..4486dda --- /dev/null +++ b/alive-server/src/main/java/com/ruoyi/system/mapper/NodeSettingMapper.java @@ -0,0 +1,64 @@ +package com.ruoyi.system.mapper; + +import java.util.List; +import com.ruoyi.system.domain.NodeSetting; +import org.apache.ibatis.annotations.Param; + +/** + * 节点设置Mapper接口 + * + * @author HayDen + * @date 2024-01-08 + */ +public interface NodeSettingMapper +{ + /** + * 查询节点设置 + * + * @param id 节点设置ID + * @return 节点设置 + */ + NodeSetting selectNodeSettingById(Integer id); + + /** + * 查询节点设置列表 + * + * @param nodeSetting 节点设置 + * @return 节点设置集合 + */ + List selectNodeSettingList(NodeSetting nodeSetting); + + /** + * 查询节点设置对象 + * + * @param nodeSetting 节点设置 + * @return 节点设置 + */ + NodeSetting findNodeSetting(NodeSetting nodeSetting); + + /** + * 新增节点设置 + * + * @param nodeSetting 节点设置 + * @return 结果 + */ + int insertNodeSetting(NodeSetting nodeSetting); + + /** + * 修改节点设置 + * + * @param nodeSetting 节点设置 + * @return 结果 + */ + int updateNodeSetting(NodeSetting nodeSetting); + + /** + * 批量删除节点设置 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + int deleteNodeSettingByIds(String[] ids); + + Integer countPriceConfig(@Param("startNumber") Integer startNumber,@Param("endNumber") Integer endNumber,@Param("id") Integer id,@Param("nodeSettingId") Integer nodeSettingId); +} diff --git a/alive-server/src/main/java/com/ruoyi/system/mapper/NodeTaskLogMapper.java b/alive-server/src/main/java/com/ruoyi/system/mapper/NodeTaskLogMapper.java new file mode 100644 index 0000000..7951c41 --- /dev/null +++ b/alive-server/src/main/java/com/ruoyi/system/mapper/NodeTaskLogMapper.java @@ -0,0 +1,61 @@ +package com.ruoyi.system.mapper; + +import java.util.List; +import com.ruoyi.system.domain.NodeTaskLog; + +/** + * 我的任务奖励Mapper接口 + * + * @author HayDen + * @date 2024-02-24 + */ +public interface NodeTaskLogMapper +{ + /** + * 查询我的任务奖励 + * + * @param id 我的任务奖励ID + * @return 我的任务奖励 + */ + NodeTaskLog selectNodeTaskLogById(Integer id); + + /** + * 查询我的任务奖励列表 + * + * @param nodeTaskLog 我的任务奖励 + * @return 我的任务奖励集合 + */ + List selectNodeTaskLogList(NodeTaskLog nodeTaskLog); + + /** + * 查询我的任务奖励对象 + * + * @param nodeTaskLog 我的任务奖励 + * @return 我的任务奖励 + */ + NodeTaskLog findNodeTaskLog(NodeTaskLog nodeTaskLog); + + /** + * 新增我的任务奖励 + * + * @param nodeTaskLog 我的任务奖励 + * @return 结果 + */ + int insertNodeTaskLog(NodeTaskLog nodeTaskLog); + + /** + * 修改我的任务奖励 + * + * @param nodeTaskLog 我的任务奖励 + * @return 结果 + */ + int updateNodeTaskLog(NodeTaskLog nodeTaskLog); + + /** + * 批量删除我的任务奖励 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + int deleteNodeTaskLogByIds(String[] ids); +} diff --git a/alive-server/src/main/java/com/ruoyi/system/mapper/NodeTaskMapper.java b/alive-server/src/main/java/com/ruoyi/system/mapper/NodeTaskMapper.java new file mode 100644 index 0000000..f9fe4bb --- /dev/null +++ b/alive-server/src/main/java/com/ruoyi/system/mapper/NodeTaskMapper.java @@ -0,0 +1,61 @@ +package com.ruoyi.system.mapper; + +import java.util.List; +import com.ruoyi.system.domain.NodeTask; + +/** + * NEER任务配置Mapper接口 + * + * @author HayDen + * @date 2024-02-24 + */ +public interface NodeTaskMapper +{ + /** + * 查询NEER任务配置 + * + * @param id NEER任务配置ID + * @return NEER任务配置 + */ + NodeTask selectNodeTaskById(Integer id); + + /** + * 查询NEER任务配置列表 + * + * @param nodeTask NEER任务配置 + * @return NEER任务配置集合 + */ + List selectNodeTaskList(NodeTask nodeTask); + + /** + * 查询NEER任务配置对象 + * + * @param nodeTask NEER任务配置 + * @return NEER任务配置 + */ + NodeTask findNodeTask(NodeTask nodeTask); + + /** + * 新增NEER任务配置 + * + * @param nodeTask NEER任务配置 + * @return 结果 + */ + int insertNodeTask(NodeTask nodeTask); + + /** + * 修改NEER任务配置 + * + * @param nodeTask NEER任务配置 + * @return 结果 + */ + int updateNodeTask(NodeTask nodeTask); + + /** + * 批量删除NEER任务配置 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + int deleteNodeTaskByIds(String[] ids); +} diff --git a/alive-server/src/main/java/com/ruoyi/system/mapper/NoticeMapper.java b/alive-server/src/main/java/com/ruoyi/system/mapper/NoticeMapper.java new file mode 100644 index 0000000..3b5b792 --- /dev/null +++ b/alive-server/src/main/java/com/ruoyi/system/mapper/NoticeMapper.java @@ -0,0 +1,61 @@ +package com.ruoyi.system.mapper; + +import java.util.List; +import com.ruoyi.system.domain.Notice; + +/** + * 公告Mapper接口 + * + * @author HayDen + * @date 2024-01-08 + */ +public interface NoticeMapper +{ + /** + * 查询公告 + * + * @param id 公告ID + * @return 公告 + */ + Notice selectNoticeById(Integer id); + + /** + * 查询公告列表 + * + * @param notice 公告 + * @return 公告集合 + */ + List selectNoticeList(Notice notice); + + /** + * 查询公告对象 + * + * @param notice 公告 + * @return 公告 + */ + Notice findNotice(Notice notice); + + /** + * 新增公告 + * + * @param notice 公告 + * @return 结果 + */ + int insertNotice(Notice notice); + + /** + * 修改公告 + * + * @param notice 公告 + * @return 结果 + */ + int updateNotice(Notice notice); + + /** + * 批量删除公告 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + int deleteNoticeByIds(String[] ids); +} diff --git a/alive-server/src/main/java/com/ruoyi/system/mapper/PayCoinLogMapper.java b/alive-server/src/main/java/com/ruoyi/system/mapper/PayCoinLogMapper.java new file mode 100644 index 0000000..5862925 --- /dev/null +++ b/alive-server/src/main/java/com/ruoyi/system/mapper/PayCoinLogMapper.java @@ -0,0 +1,61 @@ +package com.ruoyi.system.mapper; + +import java.util.List; +import com.ruoyi.system.domain.PayCoinLog; + +/** + * 兑换币种日志Mapper接口 + * + * @author HayDen + * @date 2024-05-27 + */ +public interface PayCoinLogMapper +{ + /** + * 查询兑换币种日志 + * + * @param id 兑换币种日志ID + * @return 兑换币种日志 + */ + PayCoinLog selectPayCoinLogById(Integer id); + + /** + * 查询兑换币种日志列表 + * + * @param payCoinLog 兑换币种日志 + * @return 兑换币种日志集合 + */ + List selectPayCoinLogList(PayCoinLog payCoinLog); + + /** + * 查询兑换币种日志对象 + * + * @param payCoinLog 兑换币种日志 + * @return 兑换币种日志 + */ + PayCoinLog findPayCoinLog(PayCoinLog payCoinLog); + + /** + * 新增兑换币种日志 + * + * @param payCoinLog 兑换币种日志 + * @return 结果 + */ + int insertPayCoinLog(PayCoinLog payCoinLog); + + /** + * 修改兑换币种日志 + * + * @param payCoinLog 兑换币种日志 + * @return 结果 + */ + int updatePayCoinLog(PayCoinLog payCoinLog); + + /** + * 批量删除兑换币种日志 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + int deletePayCoinLogByIds(String[] ids); +} diff --git a/alive-server/src/main/java/com/ruoyi/system/mapper/TConfigMapper.java b/alive-server/src/main/java/com/ruoyi/system/mapper/TConfigMapper.java new file mode 100644 index 0000000..a22627c --- /dev/null +++ b/alive-server/src/main/java/com/ruoyi/system/mapper/TConfigMapper.java @@ -0,0 +1,61 @@ +package com.ruoyi.system.mapper; + +import java.util.List; +import com.ruoyi.system.domain.TConfig; + +/** + * 配置Mapper接口 + * + * @author HayDen + * @date 2024-01-11 + */ +public interface TConfigMapper +{ + /** + * 查询配置 + * + * @param id 配置ID + * @return 配置 + */ + TConfig selectTConfigById(Integer id); + + /** + * 查询配置列表 + * + * @param tConfig 配置 + * @return 配置集合 + */ + List selectTConfigList(TConfig tConfig); + + /** + * 查询配置对象 + * + * @param tConfig 配置 + * @return 配置 + */ + TConfig findTConfig(TConfig tConfig); + + /** + * 新增配置 + * + * @param tConfig 配置 + * @return 结果 + */ + int insertTConfig(TConfig tConfig); + + /** + * 修改配置 + * + * @param tConfig 配置 + * @return 结果 + */ + int updateTConfig(TConfig tConfig); + + /** + * 批量删除配置 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + int deleteTConfigByIds(String[] ids); +} diff --git a/alive-server/src/main/java/com/ruoyi/system/mapper/TMemberMapper.java b/alive-server/src/main/java/com/ruoyi/system/mapper/TMemberMapper.java new file mode 100644 index 0000000..6f1e856 --- /dev/null +++ b/alive-server/src/main/java/com/ruoyi/system/mapper/TMemberMapper.java @@ -0,0 +1,81 @@ +package com.ruoyi.system.mapper; + +import java.util.List; +import com.ruoyi.system.domain.TMember; +import com.ruoyi.system.domain.vo.InviteResp; +import com.ruoyi.system.domain.vo.UserBoxResp; +import org.apache.ibatis.annotations.Param; + +/** + * 用户Mapper接口 + * + * @author HayDen + * @date 2024-01-11 + */ +public interface TMemberMapper +{ + /** + * 查询用户 + * + * @param id 用户ID + * @return 用户 + */ + TMember selectTMemberById(Integer id); + + String findUserAddressById(Integer id); + + /** + * 查询用户列表 + * + * @param tMember 用户 + * @return 用户集合 + */ + List selectTMemberList(TMember tMember); + + Integer sumBoxNumber(Long userId); + + List findTMemberList(TMember tMember); + + List findInviteRespList(InviteResp inviteResp); + + /** + * 查询下级购买盒子数量汇总 + */ + List findUserBoxRespList(@Param("ids")List ids); + + /** + * 查询用户对象 + * + * @param tMember 用户 + * @return 用户 + */ + TMember findTMember(TMember tMember); + + /** + * 新增用户 + * + * @param tMember 用户 + * @return 结果 + */ + int insertTMember(TMember tMember); + + /** + * 修改用户 + * + * @param tMember 用户 + * @return 结果 + */ + int updateTMember(TMember tMember); + + /** + * 批量删除用户 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + int deleteTMemberByIds(String[] ids); + + Integer getTeamNodeNumber(@Param("id") Long id); + + Integer countUserByTopUser(@Param("array") String[] array,@Param("id") Long id); +} diff --git a/alive-server/src/main/java/com/ruoyi/system/mapper/TMemberWalletLogMapper.java b/alive-server/src/main/java/com/ruoyi/system/mapper/TMemberWalletLogMapper.java new file mode 100644 index 0000000..7c80f2e --- /dev/null +++ b/alive-server/src/main/java/com/ruoyi/system/mapper/TMemberWalletLogMapper.java @@ -0,0 +1,63 @@ +package com.ruoyi.system.mapper; + +import java.util.List; +import com.ruoyi.system.domain.TMemberWalletLog; + +/** + * 资产流水Mapper接口 + * + * @author HayDen + * @date 2024-01-11 + */ +public interface TMemberWalletLogMapper +{ + /** + * 查询资产流水 + * + * @param id 资产流水ID + * @return 资产流水 + */ + TMemberWalletLog selectTMemberWalletLogById(Integer id); + + /** + * 查询资产流水列表 + * + * @param tMemberWalletLog 资产流水 + * @return 资产流水集合 + */ + List selectTMemberWalletLogList(TMemberWalletLog tMemberWalletLog); + + List findTMemberWalletLogList(TMemberWalletLog tMemberWalletLog); + + /** + * 查询资产流水对象 + * + * @param tMemberWalletLog 资产流水 + * @return 资产流水 + */ + TMemberWalletLog findTMemberWalletLog(TMemberWalletLog tMemberWalletLog); + + /** + * 新增资产流水 + * + * @param tMemberWalletLog 资产流水 + * @return 结果 + */ + int insertTMemberWalletLog(TMemberWalletLog tMemberWalletLog); + + /** + * 修改资产流水 + * + * @param tMemberWalletLog 资产流水 + * @return 结果 + */ + int updateTMemberWalletLog(TMemberWalletLog tMemberWalletLog); + + /** + * 批量删除资产流水 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + int deleteTMemberWalletLogByIds(String[] ids); +} diff --git a/alive-server/src/main/java/com/ruoyi/system/mapper/TMemberWalletMapper.java b/alive-server/src/main/java/com/ruoyi/system/mapper/TMemberWalletMapper.java new file mode 100644 index 0000000..61742db --- /dev/null +++ b/alive-server/src/main/java/com/ruoyi/system/mapper/TMemberWalletMapper.java @@ -0,0 +1,61 @@ +package com.ruoyi.system.mapper; + +import java.util.List; +import com.ruoyi.system.domain.TMemberWallet; + +/** + * 资产Mapper接口 + * + * @author HayDen + * @date 2024-01-11 + */ +public interface TMemberWalletMapper +{ + /** + * 查询资产 + * + * @param id 资产ID + * @return 资产 + */ + TMemberWallet selectTMemberWalletById(Integer id); + + /** + * 查询资产列表 + * + * @param tMemberWallet 资产 + * @return 资产集合 + */ + List selectTMemberWalletList(TMemberWallet tMemberWallet); + + /** + * 查询资产对象 + * + * @param tMemberWallet 资产 + * @return 资产 + */ + TMemberWallet findTMemberWallet(TMemberWallet tMemberWallet); + + /** + * 新增资产 + * + * @param tMemberWallet 资产 + * @return 结果 + */ + int insertTMemberWallet(TMemberWallet tMemberWallet); + + /** + * 修改资产 + * + * @param tMemberWallet 资产 + * @return 结果 + */ + int updateTMemberWallet(TMemberWallet tMemberWallet); + + /** + * 批量删除资产 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + int deleteTMemberWalletByIds(String[] ids); +} diff --git a/alive-server/src/main/java/com/ruoyi/system/mapper/UserMapper.java b/alive-server/src/main/java/com/ruoyi/system/mapper/UserMapper.java new file mode 100644 index 0000000..fe6cfdb --- /dev/null +++ b/alive-server/src/main/java/com/ruoyi/system/mapper/UserMapper.java @@ -0,0 +1,61 @@ +package com.ruoyi.system.mapper; + +import java.util.List; +import com.ruoyi.system.domain.User; + +/** + * 用户Mapper接口 + * + * @author HayDen + * @date 2022-11-11 + */ +public interface UserMapper +{ + /** + * 查询用户 + * + * @param id 用户ID + * @return 用户 + */ + User selectUserById(Integer id); + + /** + * 查询用户列表 + * + * @param user 用户 + * @return 用户集合 + */ + List selectUserList(User user); + + /** + * 查询用户对象 + * + * @param user 用户 + * @return 用户 + */ + User findUser(User user); + + /** + * 新增用户 + * + * @param user 用户 + * @return 结果 + */ + int insertUser(User user); + + /** + * 修改用户 + * + * @param user 用户 + * @return 结果 + */ + int updateUser(User user); + + /** + * 批量删除用户 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + int deleteUserByIds(String[] ids); +} diff --git a/alive-server/src/main/java/com/ruoyi/system/mapper/UserPasswordMapper.java b/alive-server/src/main/java/com/ruoyi/system/mapper/UserPasswordMapper.java new file mode 100644 index 0000000..4087bc6 --- /dev/null +++ b/alive-server/src/main/java/com/ruoyi/system/mapper/UserPasswordMapper.java @@ -0,0 +1,65 @@ +package com.ruoyi.system.mapper; + +import com.ruoyi.system.domain.UserPassword; +import org.apache.ibatis.annotations.Param; + +import java.util.List; + +/** + * 用户密码配置Mapper接口 + * + * @author HayDen + * @date 2022-06-16 + */ +public interface UserPasswordMapper +{ + /** + * 查询用户密码配置 + * + * @param id 用户密码配置ID + * @return 用户密码配置 + */ + UserPassword selectUserPasswordById(Integer id); + + /** + * 查询用户密码配置列表 + * + * @param userPassword 用户密码配置 + * @return 用户密码配置集合 + */ + List selectUserPasswordList(UserPassword userPassword); + + /** + * 查询用户密码配置对象 + * + * @param userPassword 用户密码配置 + * @return 用户密码配置 + */ + UserPassword findUserPassword(UserPassword userPassword); + + /** + * 新增用户密码配置 + * + * @param userPassword 用户密码配置 + * @return 结果 + */ + int insertUserPassword(UserPassword userPassword); + + /** + * 修改用户密码配置 + * + * @param userPassword 用户密码配置 + * @return 结果 + */ + int updateUserPassword(UserPassword userPassword); + + /** + * 批量删除用户密码配置 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + int deleteUserPasswordByIds(String[] ids); + + UserPassword findUserPasswordByAddress(@Param("address") String address); +} diff --git a/alive-server/src/main/java/com/ruoyi/system/service/ActivityConfigService.java b/alive-server/src/main/java/com/ruoyi/system/service/ActivityConfigService.java new file mode 100644 index 0000000..4ffba57 --- /dev/null +++ b/alive-server/src/main/java/com/ruoyi/system/service/ActivityConfigService.java @@ -0,0 +1,90 @@ +package com.ruoyi.system.service; + +import java.util.List; +import com.ruoyi.common.utils.DateUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.system.mapper.ActivityConfigMapper; +import com.ruoyi.system.domain.ActivityConfig; +import com.ruoyi.common.core.text.Convert; + +/** + * 活动配置Service业务层处理 + * + * @author HayDen + * @date 2024-04-24 + */ +@Service +public class ActivityConfigService +{ + @Autowired + private ActivityConfigMapper activityConfigMapper; + + public List findActivityConfigCount() + { + List activityConfigList = activityConfigMapper.findActivityConfigCount(); + return activityConfigList; + } + + /** + * 查询活动配置 + * + * @param id 活动配置ID + * @return 活动配置 + */ + public ActivityConfig selectActivityConfigById(Integer id) + { + return activityConfigMapper.selectActivityConfigById(id); + } + + /** + * 查询活动配置列表 + * + * @param activityConfig 活动配置 + * @return 活动配置 + */ + public List selectActivityConfigList(ActivityConfig activityConfig) + { + List activityConfigList = activityConfigMapper.selectActivityConfigList(activityConfig); + return activityConfigList; + } + + /** + * 查询活动配置对象 + * + * @param activityConfig 活动配置 + * @return 活动配置 + */ + public ActivityConfig findActivityConfig(ActivityConfig activityConfig) + { + activityConfig = activityConfigMapper.findActivityConfig(activityConfig); + return activityConfig; + } + + /** + * 修改或者添加活动配置 + * + * @param activityConfig 活动配置 + * @return 结果 + */ + public int updateOrAddActivityConfig(ActivityConfig activityConfig) { + if (activityConfig.getId() != null){ + activityConfig.setUpdateTime(DateUtils.getNowDate()); + return activityConfigMapper.updateActivityConfig(activityConfig); + }else{ + activityConfig.setCreateTime(DateUtils.getNowDate()); + return activityConfigMapper.insertActivityConfig(activityConfig); + } + } + + /** + * 删除活动配置对象 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteActivityConfigByIds(String ids) + { + return activityConfigMapper.deleteActivityConfigByIds(Convert.toStrArray(ids)); + } +} diff --git a/alive-server/src/main/java/com/ruoyi/system/service/ActivityLogService.java b/alive-server/src/main/java/com/ruoyi/system/service/ActivityLogService.java new file mode 100644 index 0000000..a2e1c53 --- /dev/null +++ b/alive-server/src/main/java/com/ruoyi/system/service/ActivityLogService.java @@ -0,0 +1,84 @@ +package com.ruoyi.system.service; + +import java.util.List; +import com.ruoyi.common.utils.DateUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.system.mapper.ActivityLogMapper; +import com.ruoyi.system.domain.ActivityLog; +import com.ruoyi.common.core.text.Convert; + +/** + * 活动任务日志Service业务层处理 + * + * @author HayDen + * @date 2024-04-24 + */ +@Service +public class ActivityLogService +{ + @Autowired + private ActivityLogMapper activityLogMapper; + + /** + * 查询活动任务日志 + * + * @param id 活动任务日志ID + * @return 活动任务日志 + */ + public ActivityLog selectActivityLogById(Integer id) + { + return activityLogMapper.selectActivityLogById(id); + } + + /** + * 查询活动任务日志列表 + * + * @param activityLog 活动任务日志 + * @return 活动任务日志 + */ + public List selectActivityLogList(ActivityLog activityLog) + { + List activityLogList = activityLogMapper.selectActivityLogList(activityLog); + return activityLogList; + } + + /** + * 查询活动任务日志对象 + * + * @param activityLog 活动任务日志 + * @return 活动任务日志 + */ + public ActivityLog findActivityLog(ActivityLog activityLog) + { + activityLog = activityLogMapper.findActivityLog(activityLog); + return activityLog; + } + + /** + * 修改或者添加活动任务日志 + * + * @param activityLog 活动任务日志 + * @return 结果 + */ + public int updateOrAddActivityLog(ActivityLog activityLog) { + if (activityLog.getId() != null){ + activityLog.setUpdateTime(DateUtils.getNowDate()); + return activityLogMapper.updateActivityLog(activityLog); + }else{ + activityLog.setCreateTime(DateUtils.getNowDate()); + return activityLogMapper.insertActivityLog(activityLog); + } + } + + /** + * 删除活动任务日志对象 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteActivityLogByIds(String ids) + { + return activityLogMapper.deleteActivityLogByIds(Convert.toStrArray(ids)); + } +} diff --git a/alive-server/src/main/java/com/ruoyi/system/service/ActivityStatisticsService.java b/alive-server/src/main/java/com/ruoyi/system/service/ActivityStatisticsService.java new file mode 100644 index 0000000..2f5ba1c --- /dev/null +++ b/alive-server/src/main/java/com/ruoyi/system/service/ActivityStatisticsService.java @@ -0,0 +1,84 @@ +package com.ruoyi.system.service; + +import java.util.List; +import com.ruoyi.common.utils.DateUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.system.mapper.ActivityStatisticsMapper; +import com.ruoyi.system.domain.ActivityStatistics; +import com.ruoyi.common.core.text.Convert; + +/** + * 业绩统计Service业务层处理 + * + * @author HayDen + * @date 2024-04-24 + */ +@Service +public class ActivityStatisticsService +{ + @Autowired + private ActivityStatisticsMapper activityStatisticsMapper; + + /** + * 查询业绩统计 + * + * @param id 业绩统计ID + * @return 业绩统计 + */ + public ActivityStatistics selectActivityStatisticsById(Integer id) + { + return activityStatisticsMapper.selectActivityStatisticsById(id); + } + + /** + * 查询业绩统计列表 + * + * @param activityStatistics 业绩统计 + * @return 业绩统计 + */ + public List selectActivityStatisticsList(ActivityStatistics activityStatistics) + { + List activityStatisticsList = activityStatisticsMapper.selectActivityStatisticsList(activityStatistics); + return activityStatisticsList; + } + + /** + * 查询业绩统计对象 + * + * @param activityStatistics 业绩统计 + * @return 业绩统计 + */ + public ActivityStatistics findActivityStatistics(ActivityStatistics activityStatistics) + { + activityStatistics = activityStatisticsMapper.findActivityStatistics(activityStatistics); + return activityStatistics; + } + + /** + * 修改或者添加业绩统计 + * + * @param activityStatistics 业绩统计 + * @return 结果 + */ + public int updateOrAddActivityStatistics(ActivityStatistics activityStatistics) { + if (activityStatistics.getId() != null){ + activityStatistics.setUpdateTime(DateUtils.getNowDate()); + return activityStatisticsMapper.updateActivityStatistics(activityStatistics); + }else{ + activityStatistics.setCreateTime(DateUtils.getNowDate()); + return activityStatisticsMapper.insertActivityStatistics(activityStatistics); + } + } + + /** + * 删除业绩统计对象 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteActivityStatisticsByIds(String ids) + { + return activityStatisticsMapper.deleteActivityStatisticsByIds(Convert.toStrArray(ids)); + } +} diff --git a/alive-server/src/main/java/com/ruoyi/system/service/CoinConfigService.java b/alive-server/src/main/java/com/ruoyi/system/service/CoinConfigService.java new file mode 100644 index 0000000..0d82c16 --- /dev/null +++ b/alive-server/src/main/java/com/ruoyi/system/service/CoinConfigService.java @@ -0,0 +1,84 @@ +package com.ruoyi.system.service; + +import java.util.List; +import com.ruoyi.common.utils.DateUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.system.mapper.CoinConfigMapper; +import com.ruoyi.system.domain.CoinConfig; +import com.ruoyi.common.core.text.Convert; + +/** + * 币种配置Service业务层处理 + * + * @author HayDen + * @date 2024-05-27 + */ +@Service +public class CoinConfigService +{ + @Autowired + private CoinConfigMapper coinConfigMapper; + + /** + * 查询币种配置 + * + * @param id 币种配置ID + * @return 币种配置 + */ + public CoinConfig selectCoinConfigById(Integer id) + { + return coinConfigMapper.selectCoinConfigById(id); + } + + /** + * 查询币种配置列表 + * + * @param coinConfig 币种配置 + * @return 币种配置 + */ + public List selectCoinConfigList(CoinConfig coinConfig) + { + List coinConfigList = coinConfigMapper.selectCoinConfigList(coinConfig); + return coinConfigList; + } + + /** + * 查询币种配置对象 + * + * @param coinConfig 币种配置 + * @return 币种配置 + */ + public CoinConfig findCoinConfig(CoinConfig coinConfig) + { + coinConfig = coinConfigMapper.findCoinConfig(coinConfig); + return coinConfig; + } + + /** + * 修改或者添加币种配置 + * + * @param coinConfig 币种配置 + * @return 结果 + */ + public int updateOrAddCoinConfig(CoinConfig coinConfig) { + if (coinConfig.getId() != null){ + coinConfig.setUpdateTime(DateUtils.getNowDate()); + return coinConfigMapper.updateCoinConfig(coinConfig); + }else{ + coinConfig.setCreateTime(DateUtils.getNowDate()); + return coinConfigMapper.insertCoinConfig(coinConfig); + } + } + + /** + * 删除币种配置对象 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteCoinConfigByIds(String ids) + { + return coinConfigMapper.deleteCoinConfigByIds(Convert.toStrArray(ids)); + } +} diff --git a/alive-server/src/main/java/com/ruoyi/system/service/NodeAwardSettingService.java b/alive-server/src/main/java/com/ruoyi/system/service/NodeAwardSettingService.java new file mode 100644 index 0000000..c78eb7c --- /dev/null +++ b/alive-server/src/main/java/com/ruoyi/system/service/NodeAwardSettingService.java @@ -0,0 +1,84 @@ +package com.ruoyi.system.service; + +import java.util.List; +import com.ruoyi.common.utils.DateUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.system.mapper.NodeAwardSettingMapper; +import com.ruoyi.system.domain.NodeAwardSetting; +import com.ruoyi.common.core.text.Convert; + +/** + * 节点奖励设置Service业务层处理 + * + * @author HayDen + * @date 2024-02-24 + */ +@Service +public class NodeAwardSettingService +{ + @Autowired + private NodeAwardSettingMapper nodeAwardSettingMapper; + + /** + * 查询节点奖励设置 + * + * @param id 节点奖励设置ID + * @return 节点奖励设置 + */ + public NodeAwardSetting selectNodeAwardSettingById(Integer id) + { + return nodeAwardSettingMapper.selectNodeAwardSettingById(id); + } + + /** + * 查询节点奖励设置列表 + * + * @param nodeAwardSetting 节点奖励设置 + * @return 节点奖励设置 + */ + public List selectNodeAwardSettingList(NodeAwardSetting nodeAwardSetting) + { + List nodeAwardSettingList = nodeAwardSettingMapper.selectNodeAwardSettingList(nodeAwardSetting); + return nodeAwardSettingList; + } + + /** + * 查询节点奖励设置对象 + * + * @param nodeAwardSetting 节点奖励设置 + * @return 节点奖励设置 + */ + public NodeAwardSetting findNodeAwardSetting(NodeAwardSetting nodeAwardSetting) + { + nodeAwardSetting = nodeAwardSettingMapper.findNodeAwardSetting(nodeAwardSetting); + return nodeAwardSetting; + } + + /** + * 修改或者添加节点奖励设置 + * + * @param nodeAwardSetting 节点奖励设置 + * @return 结果 + */ + public int updateOrAddNodeAwardSetting(NodeAwardSetting nodeAwardSetting) { + if (nodeAwardSetting.getId() != null){ + nodeAwardSetting.setUpdateTime(DateUtils.getNowDate()); + return nodeAwardSettingMapper.updateNodeAwardSetting(nodeAwardSetting); + }else{ + nodeAwardSetting.setCreateTime(DateUtils.getNowDate()); + return nodeAwardSettingMapper.insertNodeAwardSetting(nodeAwardSetting); + } + } + + /** + * 删除节点奖励设置对象 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteNodeAwardSettingByIds(String ids) + { + return nodeAwardSettingMapper.deleteNodeAwardSettingByIds(Convert.toStrArray(ids)); + } +} diff --git a/alive-server/src/main/java/com/ruoyi/system/service/NodeBuyLogService.java b/alive-server/src/main/java/com/ruoyi/system/service/NodeBuyLogService.java new file mode 100644 index 0000000..85c7a1e --- /dev/null +++ b/alive-server/src/main/java/com/ruoyi/system/service/NodeBuyLogService.java @@ -0,0 +1,98 @@ +package com.ruoyi.system.service; + +import java.util.List; +import com.ruoyi.common.utils.DateUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.system.mapper.NodeBuyLogMapper; +import com.ruoyi.system.domain.NodeBuyLog; +import com.ruoyi.common.core.text.Convert; + +/** + * 节点认购记录Service业务层处理 + * + * @author HayDen + * @date 2024-01-08 + */ +@Service +public class NodeBuyLogService +{ + @Autowired + private NodeBuyLogMapper nodeSubscribeMapper; + + /** + * 查询节点认购记录 + * + * @param id 节点认购记录ID + * @return 节点认购记录 + */ + public NodeBuyLog selectNodeSubscribeById(Integer id) + { + return nodeSubscribeMapper.selectNodeSubscribeById(id); + } + + /** + * 查询节点认购记录列表 + * + * @param nodeSubscribe 节点认购记录 + * @return 节点认购记录 + */ + public List selectNodeSubscribeList(NodeBuyLog nodeSubscribe) + { + List nodeSubscribeList = nodeSubscribeMapper.selectNodeSubscribeList(nodeSubscribe); + return nodeSubscribeList; + } + + /** + * 查询节点认购记录对象 + * + * @param nodeSubscribe 节点认购记录 + * @return 节点认购记录 + */ + public NodeBuyLog findNodeSubscribe(NodeBuyLog nodeSubscribe) + { + nodeSubscribe = nodeSubscribeMapper.findNodeSubscribe(nodeSubscribe); + return nodeSubscribe; + } + + /** + * 修改或者添加节点认购记录 + * + * @param nodeSubscribe 节点认购记录 + * @return 结果 + */ + public int updateOrAddNodeSubscribe(NodeBuyLog nodeSubscribe) { + if (nodeSubscribe.getId() != null){ + return nodeSubscribeMapper.updateNodeSubscribe(nodeSubscribe); + }else{ + nodeSubscribe.setCreateTime(DateUtils.getNowDate()); + return nodeSubscribeMapper.insertNodeSubscribe(nodeSubscribe); + } + } + + /** + * 删除节点认购记录对象 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteNodeSubscribeByIds(String ids) + { + return nodeSubscribeMapper.deleteNodeSubscribeByIds(Convert.toStrArray(ids)); + } + + /** + * 查询未结算的数据 + * @return + */ + public int countLogTop(String[] ids) + { + return nodeSubscribeMapper.countLogTop(ids); + } + + + public int updateBuyLogTop(String[] ids) + { + return nodeSubscribeMapper.updateBuyLogTop(ids); + } +} diff --git a/alive-server/src/main/java/com/ruoyi/system/service/NodePriceConfigService.java b/alive-server/src/main/java/com/ruoyi/system/service/NodePriceConfigService.java new file mode 100644 index 0000000..53737ca --- /dev/null +++ b/alive-server/src/main/java/com/ruoyi/system/service/NodePriceConfigService.java @@ -0,0 +1,84 @@ +package com.ruoyi.system.service; + +import java.util.List; +import com.ruoyi.common.utils.DateUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.system.mapper.NodePriceConfigMapper; +import com.ruoyi.system.domain.NodePriceConfig; +import com.ruoyi.common.core.text.Convert; + +/** + * 节点价格区间配置Service业务层处理 + * + * @author HayDen + * @date 2024-01-08 + */ +@Service +public class NodePriceConfigService +{ + @Autowired + private NodePriceConfigMapper nodePriceConfigMapper; + + /** + * 查询节点价格区间配置 + * + * @param id 节点价格区间配置ID + * @return 节点价格区间配置 + */ + public NodePriceConfig selectNodePriceConfigById(Integer id) + { + return nodePriceConfigMapper.selectNodePriceConfigById(id); + } + + /** + * 查询节点价格区间配置列表 + * + * @param nodePriceConfig 节点价格区间配置 + * @return 节点价格区间配置 + */ + public List selectNodePriceConfigList(NodePriceConfig nodePriceConfig) + { + List nodePriceConfigList = nodePriceConfigMapper.selectNodePriceConfigList(nodePriceConfig); + return nodePriceConfigList; + } + + /** + * 查询节点价格区间配置对象 + * + * @param nodePriceConfig 节点价格区间配置 + * @return 节点价格区间配置 + */ + public NodePriceConfig findNodePriceConfig(NodePriceConfig nodePriceConfig) + { + nodePriceConfig = nodePriceConfigMapper.findNodePriceConfig(nodePriceConfig); + return nodePriceConfig; + } + + /** + * 修改或者添加节点价格区间配置 + * + * @param nodePriceConfig 节点价格区间配置 + * @return 结果 + */ + public int updateOrAddNodePriceConfig(NodePriceConfig nodePriceConfig) { + if (nodePriceConfig.getId() != null){ + nodePriceConfig.setUpdateTime(DateUtils.getNowDate()); + return nodePriceConfigMapper.updateNodePriceConfig(nodePriceConfig); + }else{ + nodePriceConfig.setCreateTime(DateUtils.getNowDate()); + return nodePriceConfigMapper.insertNodePriceConfig(nodePriceConfig); + } + } + + /** + * 删除节点价格区间配置对象 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteNodePriceConfigByIds(String ids) + { + return nodePriceConfigMapper.deleteNodePriceConfigByIds(Convert.toStrArray(ids)); + } +} diff --git a/alive-server/src/main/java/com/ruoyi/system/service/NodeService.java b/alive-server/src/main/java/com/ruoyi/system/service/NodeService.java new file mode 100644 index 0000000..3204088 --- /dev/null +++ b/alive-server/src/main/java/com/ruoyi/system/service/NodeService.java @@ -0,0 +1,84 @@ +package com.ruoyi.system.service; + +import java.util.List; +import com.ruoyi.common.utils.DateUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.system.mapper.NodeMapper; +import com.ruoyi.system.domain.Node; +import com.ruoyi.common.core.text.Convert; + +/** + * 用户节点Service业务层处理 + * + * @author HayDen + * @date 2024-01-11 + */ +@Service +public class NodeService +{ + @Autowired + private NodeMapper nodeMapper; + + /** + * 查询用户节点 + * + * @param id 用户节点ID + * @return 用户节点 + */ + public Node selectNodeById(Integer id) + { + return nodeMapper.selectNodeById(id); + } + + /** + * 查询用户节点列表 + * + * @param node 用户节点 + * @return 用户节点 + */ + public List selectNodeList(Node node) + { + List nodeList = nodeMapper.selectNodeList(node); + return nodeList; + } + + /** + * 查询用户节点对象 + * + * @param node 用户节点 + * @return 用户节点 + */ + public Node findNode(Node node) + { + node = nodeMapper.findNode(node); + return node; + } + + /** + * 修改或者添加用户节点 + * + * @param node 用户节点 + * @return 结果 + */ + public int updateOrAddNode(Node node) { + if (node.getId() != null){ + node.setUpdateTime(DateUtils.getNowDate()); + return nodeMapper.updateNode(node); + }else{ + node.setCreateTime(DateUtils.getNowDate()); + return nodeMapper.insertNode(node); + } + } + + /** + * 删除用户节点对象 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteNodeByIds(String ids) + { + return nodeMapper.deleteNodeByIds(Convert.toStrArray(ids)); + } +} diff --git a/alive-server/src/main/java/com/ruoyi/system/service/NodeSettingService.java b/alive-server/src/main/java/com/ruoyi/system/service/NodeSettingService.java new file mode 100644 index 0000000..08fa9f3 --- /dev/null +++ b/alive-server/src/main/java/com/ruoyi/system/service/NodeSettingService.java @@ -0,0 +1,97 @@ +package com.ruoyi.system.service; + +import java.util.List; +import com.ruoyi.common.utils.DateUtils; +import org.apache.ibatis.annotations.Param; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.system.mapper.NodeSettingMapper; +import com.ruoyi.system.domain.NodeSetting; +import com.ruoyi.common.core.text.Convert; + +/** + * 节点设置Service业务层处理 + * + * @author HayDen + * @date 2024-01-08 + */ +@Service +public class NodeSettingService +{ + @Autowired + private NodeSettingMapper nodeSettingMapper; + + /** + * 查询节点设置 + * + * @param id 节点设置ID + * @return 节点设置 + */ + public NodeSetting selectNodeSettingById(Integer id) + { + return nodeSettingMapper.selectNodeSettingById(id); + } + + /** + * 查询节点设置列表 + * + * @param nodeSetting 节点设置 + * @return 节点设置 + */ + public List selectNodeSettingList(NodeSetting nodeSetting) + { + List nodeSettingList = nodeSettingMapper.selectNodeSettingList(nodeSetting); + return nodeSettingList; + } + + /** + * 查询节点设置对象 + * + * @param nodeSetting 节点设置 + * @return 节点设置 + */ + public NodeSetting findNodeSetting(NodeSetting nodeSetting) + { + nodeSetting = nodeSettingMapper.findNodeSetting(nodeSetting); + return nodeSetting; + } + + /** + * 修改或者添加节点设置 + * + * @param nodeSetting 节点设置 + * @return 结果 + */ + public int updateOrAddNodeSetting(NodeSetting nodeSetting) { + nodeSetting.setNodeName(nodeSetting.getNodeName()); + if (nodeSetting.getId() != null){ + nodeSetting.setUpdateTime(DateUtils.getNowDate()); + return nodeSettingMapper.updateNodeSetting(nodeSetting); + }else{ + nodeSetting.setCreateTime(DateUtils.getNowDate()); + return nodeSettingMapper.insertNodeSetting(nodeSetting); + } + } + + /** + * 删除节点设置对象 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteNodeSettingByIds(String ids) + { + return nodeSettingMapper.deleteNodeSettingByIds(Convert.toStrArray(ids)); + } + + /** + * 查询节点设置 + * + * @param id 节点设置ID + * @return 节点设置 + */ + public Integer countPriceConfig(Integer startNumber,Integer endNumber,Integer id,Integer nodeSettingId) + { + return nodeSettingMapper.countPriceConfig(startNumber,endNumber,id,nodeSettingId); + } +} diff --git a/alive-server/src/main/java/com/ruoyi/system/service/NodeTaskLogService.java b/alive-server/src/main/java/com/ruoyi/system/service/NodeTaskLogService.java new file mode 100644 index 0000000..cfb987b --- /dev/null +++ b/alive-server/src/main/java/com/ruoyi/system/service/NodeTaskLogService.java @@ -0,0 +1,84 @@ +package com.ruoyi.system.service; + +import java.util.List; +import com.ruoyi.common.utils.DateUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.system.mapper.NodeTaskLogMapper; +import com.ruoyi.system.domain.NodeTaskLog; +import com.ruoyi.common.core.text.Convert; + +/** + * 我的任务奖励Service业务层处理 + * + * @author HayDen + * @date 2024-02-24 + */ +@Service +public class NodeTaskLogService +{ + @Autowired + private NodeTaskLogMapper nodeTaskLogMapper; + + /** + * 查询我的任务奖励 + * + * @param id 我的任务奖励ID + * @return 我的任务奖励 + */ + public NodeTaskLog selectNodeTaskLogById(Integer id) + { + return nodeTaskLogMapper.selectNodeTaskLogById(id); + } + + /** + * 查询我的任务奖励列表 + * + * @param nodeTaskLog 我的任务奖励 + * @return 我的任务奖励 + */ + public List selectNodeTaskLogList(NodeTaskLog nodeTaskLog) + { + List nodeTaskLogList = nodeTaskLogMapper.selectNodeTaskLogList(nodeTaskLog); + return nodeTaskLogList; + } + + /** + * 查询我的任务奖励对象 + * + * @param nodeTaskLog 我的任务奖励 + * @return 我的任务奖励 + */ + public NodeTaskLog findNodeTaskLog(NodeTaskLog nodeTaskLog) + { + nodeTaskLog = nodeTaskLogMapper.findNodeTaskLog(nodeTaskLog); + return nodeTaskLog; + } + + /** + * 修改或者添加我的任务奖励 + * + * @param nodeTaskLog 我的任务奖励 + * @return 结果 + */ + public int updateOrAddNodeTaskLog(NodeTaskLog nodeTaskLog) { + if (nodeTaskLog.getId() != null){ + nodeTaskLog.setUpdateTime(DateUtils.getNowDate()); + return nodeTaskLogMapper.updateNodeTaskLog(nodeTaskLog); + }else{ + nodeTaskLog.setCreateTime(DateUtils.getNowDate()); + return nodeTaskLogMapper.insertNodeTaskLog(nodeTaskLog); + } + } + + /** + * 删除我的任务奖励对象 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteNodeTaskLogByIds(String ids) + { + return nodeTaskLogMapper.deleteNodeTaskLogByIds(Convert.toStrArray(ids)); + } +} diff --git a/alive-server/src/main/java/com/ruoyi/system/service/NodeTaskService.java b/alive-server/src/main/java/com/ruoyi/system/service/NodeTaskService.java new file mode 100644 index 0000000..e7aa9c2 --- /dev/null +++ b/alive-server/src/main/java/com/ruoyi/system/service/NodeTaskService.java @@ -0,0 +1,84 @@ +package com.ruoyi.system.service; + +import java.util.List; +import com.ruoyi.common.utils.DateUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.system.mapper.NodeTaskMapper; +import com.ruoyi.system.domain.NodeTask; +import com.ruoyi.common.core.text.Convert; + +/** + * NEER任务配置Service业务层处理 + * + * @author HayDen + * @date 2024-02-24 + */ +@Service +public class NodeTaskService +{ + @Autowired + private NodeTaskMapper nodeTaskMapper; + + /** + * 查询NEER任务配置 + * + * @param id NEER任务配置ID + * @return NEER任务配置 + */ + public NodeTask selectNodeTaskById(Integer id) + { + return nodeTaskMapper.selectNodeTaskById(id); + } + + /** + * 查询NEER任务配置列表 + * + * @param nodeTask NEER任务配置 + * @return NEER任务配置 + */ + public List selectNodeTaskList(NodeTask nodeTask) + { + List nodeTaskList = nodeTaskMapper.selectNodeTaskList(nodeTask); + return nodeTaskList; + } + + /** + * 查询NEER任务配置对象 + * + * @param nodeTask NEER任务配置 + * @return NEER任务配置 + */ + public NodeTask findNodeTask(NodeTask nodeTask) + { + nodeTask = nodeTaskMapper.findNodeTask(nodeTask); + return nodeTask; + } + + /** + * 修改或者添加NEER任务配置 + * + * @param nodeTask NEER任务配置 + * @return 结果 + */ + public int updateOrAddNodeTask(NodeTask nodeTask) { + if (nodeTask.getId() != null){ + nodeTask.setUpdateTime(DateUtils.getNowDate()); + return nodeTaskMapper.updateNodeTask(nodeTask); + }else{ + nodeTask.setCreateTime(DateUtils.getNowDate()); + return nodeTaskMapper.insertNodeTask(nodeTask); + } + } + + /** + * 删除NEER任务配置对象 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteNodeTaskByIds(String ids) + { + return nodeTaskMapper.deleteNodeTaskByIds(Convert.toStrArray(ids)); + } +} diff --git a/alive-server/src/main/java/com/ruoyi/system/service/NoticeService.java b/alive-server/src/main/java/com/ruoyi/system/service/NoticeService.java new file mode 100644 index 0000000..30c4080 --- /dev/null +++ b/alive-server/src/main/java/com/ruoyi/system/service/NoticeService.java @@ -0,0 +1,84 @@ +package com.ruoyi.system.service; + +import java.util.List; +import com.ruoyi.common.utils.DateUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.system.mapper.NoticeMapper; +import com.ruoyi.system.domain.Notice; +import com.ruoyi.common.core.text.Convert; + +/** + * 公告Service业务层处理 + * + * @author HayDen + * @date 2024-01-08 + */ +@Service +public class NoticeService +{ + @Autowired + private NoticeMapper noticeMapper; + + /** + * 查询公告 + * + * @param id 公告ID + * @return 公告 + */ + public Notice selectNoticeById(Integer id) + { + return noticeMapper.selectNoticeById(id); + } + + /** + * 查询公告列表 + * + * @param notice 公告 + * @return 公告 + */ + public List selectNoticeList(Notice notice) + { + List noticeList = noticeMapper.selectNoticeList(notice); + return noticeList; + } + + /** + * 查询公告对象 + * + * @param notice 公告 + * @return 公告 + */ + public Notice findNotice(Notice notice) + { + notice = noticeMapper.findNotice(notice); + return notice; + } + + /** + * 修改或者添加公告 + * + * @param notice 公告 + * @return 结果 + */ + public int updateOrAddNotice(Notice notice) { + if (notice.getId() != null){ + notice.setUpdateTime(DateUtils.getNowDate()); + return noticeMapper.updateNotice(notice); + }else{ + notice.setCreateTime(DateUtils.getNowDate()); + return noticeMapper.insertNotice(notice); + } + } + + /** + * 删除公告对象 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteNoticeByIds(String ids) + { + return noticeMapper.deleteNoticeByIds(Convert.toStrArray(ids)); + } +} diff --git a/alive-server/src/main/java/com/ruoyi/system/service/PayCoinLogService.java b/alive-server/src/main/java/com/ruoyi/system/service/PayCoinLogService.java new file mode 100644 index 0000000..afc8d70 --- /dev/null +++ b/alive-server/src/main/java/com/ruoyi/system/service/PayCoinLogService.java @@ -0,0 +1,84 @@ +package com.ruoyi.system.service; + +import java.util.List; +import com.ruoyi.common.utils.DateUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.system.mapper.PayCoinLogMapper; +import com.ruoyi.system.domain.PayCoinLog; +import com.ruoyi.common.core.text.Convert; + +/** + * 兑换币种日志Service业务层处理 + * + * @author HayDen + * @date 2024-05-27 + */ +@Service +public class PayCoinLogService +{ + @Autowired + private PayCoinLogMapper payCoinLogMapper; + + /** + * 查询兑换币种日志 + * + * @param id 兑换币种日志ID + * @return 兑换币种日志 + */ + public PayCoinLog selectPayCoinLogById(Integer id) + { + return payCoinLogMapper.selectPayCoinLogById(id); + } + + /** + * 查询兑换币种日志列表 + * + * @param payCoinLog 兑换币种日志 + * @return 兑换币种日志 + */ + public List selectPayCoinLogList(PayCoinLog payCoinLog) + { + List payCoinLogList = payCoinLogMapper.selectPayCoinLogList(payCoinLog); + return payCoinLogList; + } + + /** + * 查询兑换币种日志对象 + * + * @param payCoinLog 兑换币种日志 + * @return 兑换币种日志 + */ + public PayCoinLog findPayCoinLog(PayCoinLog payCoinLog) + { + payCoinLog = payCoinLogMapper.findPayCoinLog(payCoinLog); + return payCoinLog; + } + + /** + * 修改或者添加兑换币种日志 + * + * @param payCoinLog 兑换币种日志 + * @return 结果 + */ + public int updateOrAddPayCoinLog(PayCoinLog payCoinLog) { + if (payCoinLog.getId() != null){ + payCoinLog.setUpdateTime(DateUtils.getNowDate()); + return payCoinLogMapper.updatePayCoinLog(payCoinLog); + }else{ + payCoinLog.setCreateTime(DateUtils.getNowDate()); + return payCoinLogMapper.insertPayCoinLog(payCoinLog); + } + } + + /** + * 删除兑换币种日志对象 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deletePayCoinLogByIds(String ids) + { + return payCoinLogMapper.deletePayCoinLogByIds(Convert.toStrArray(ids)); + } +} diff --git a/alive-server/src/main/java/com/ruoyi/system/service/TConfigService.java b/alive-server/src/main/java/com/ruoyi/system/service/TConfigService.java new file mode 100644 index 0000000..52faa9a --- /dev/null +++ b/alive-server/src/main/java/com/ruoyi/system/service/TConfigService.java @@ -0,0 +1,84 @@ +package com.ruoyi.system.service; + +import java.util.List; +import com.ruoyi.common.utils.DateUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.system.mapper.TConfigMapper; +import com.ruoyi.system.domain.TConfig; +import com.ruoyi.common.core.text.Convert; + +/** + * 配置Service业务层处理 + * + * @author HayDen + * @date 2024-01-11 + */ +@Service +public class TConfigService +{ + @Autowired + private TConfigMapper tConfigMapper; + + /** + * 查询配置 + * + * @param id 配置ID + * @return 配置 + */ + public TConfig selectTConfigById(Integer id) + { + return tConfigMapper.selectTConfigById(id); + } + + /** + * 查询配置列表 + * + * @param tConfig 配置 + * @return 配置 + */ + public List selectTConfigList(TConfig tConfig) + { + List tConfigList = tConfigMapper.selectTConfigList(tConfig); + return tConfigList; + } + + /** + * 查询配置对象 + * + * @param tConfig 配置 + * @return 配置 + */ + public TConfig findTConfig(TConfig tConfig) + { + tConfig = tConfigMapper.findTConfig(tConfig); + return tConfig; + } + + /** + * 修改或者添加配置 + * + * @param tConfig 配置 + * @return 结果 + */ + public int updateOrAddTConfig(TConfig tConfig) { + if (tConfig.getId() != null){ + tConfig.setUpdateTime(DateUtils.getNowDate()); + return tConfigMapper.updateTConfig(tConfig); + }else{ + tConfig.setCreateTime(DateUtils.getNowDate()); + return tConfigMapper.insertTConfig(tConfig); + } + } + + /** + * 删除配置对象 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteTConfigByIds(String ids) + { + return tConfigMapper.deleteTConfigByIds(Convert.toStrArray(ids)); + } +} diff --git a/alive-server/src/main/java/com/ruoyi/system/service/TMemberService.java b/alive-server/src/main/java/com/ruoyi/system/service/TMemberService.java new file mode 100644 index 0000000..942c915 --- /dev/null +++ b/alive-server/src/main/java/com/ruoyi/system/service/TMemberService.java @@ -0,0 +1,126 @@ +package com.ruoyi.system.service; + +import java.math.BigDecimal; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import com.ruoyi.common.utils.DateUtils; +import com.ruoyi.system.domain.vo.InviteResp; +import com.ruoyi.system.domain.vo.UserBoxResp; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.system.mapper.TMemberMapper; +import com.ruoyi.system.domain.TMember; +import com.ruoyi.common.core.text.Convert; + +/** + * 用户Service业务层处理 + * + * @author HayDen + * @date 2024-01-11 + */ +@Service +public class TMemberService +{ + @Autowired + private TMemberMapper tMemberMapper; + + public Integer getTeamNodeNumber(Long id){ + return tMemberMapper.getTeamNodeNumber(id); + } + + public String findUserAddressById(Integer id) + { + return tMemberMapper.findUserAddressById(id); + } + + /** + * 查询用户 + * + * @param id 用户ID + * @return 用户 + */ + public TMember selectTMemberById(Integer id) + { + return tMemberMapper.selectTMemberById(id); + } + + public Integer countUserByTopUser(String[] array,Long id) + { + return tMemberMapper.countUserByTopUser(array,id); + } + + /** + * 查询用户列表 + * + * @param tMember 用户 + * @return 用户 + */ + public List selectTMemberList(TMember tMember) + { + List tMemberList = tMemberMapper.selectTMemberList(tMember); + for (TMember tMember1 : tMemberList){ + //团队购买盒子数量,不算自己 + tMember1.setBuyNumber(tMemberMapper.sumBoxNumber(tMember1.getId())); + tMember1.setRebate(new BigDecimal(tMember1.getRebate()).stripTrailingZeros().toPlainString()); + tMember1.setBrit(new BigDecimal(tMember1.getBrit()).stripTrailingZeros().toPlainString()); + tMember1.setIntegral(new BigDecimal(tMember1.getIntegral()).stripTrailingZeros().toPlainString()); + tMember1.setAccessories(new BigDecimal(tMember1.getAccessories()).stripTrailingZeros().toPlainString()); + } + return tMemberList; + } + + public List findTMemberList(TMember tMember) + { + List tMemberList = tMemberMapper.findTMemberList(tMember); + return tMemberList; + } + + public List findInviteRespList(InviteResp inviteResp) + { + List tMemberList = tMemberMapper.findInviteRespList(inviteResp); + return tMemberList; + } + + + /** + * 查询用户对象 + * + * @param tMember 用户 + * @return 用户 + */ + public TMember findTMember(TMember tMember) + { + tMember = tMemberMapper.findTMember(tMember); + return tMember; + } + + /** + * 修改或者添加用户 + * + * @param tMember 用户 + * @return 结果 + */ + public int updateOrAddTMember(TMember tMember) { + if (tMember.getId() != null){ + tMember.setUpdateTime(DateUtils.getNowDate()); + return tMemberMapper.updateTMember(tMember); + }else{ + tMember.setCreateTime(DateUtils.getNowDate()); + return tMemberMapper.insertTMember(tMember); + } + } + + /** + * 删除用户对象 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteTMemberByIds(String ids) + { + return tMemberMapper.deleteTMemberByIds(Convert.toStrArray(ids)); + } +} diff --git a/alive-server/src/main/java/com/ruoyi/system/service/TMemberWalletLogService.java b/alive-server/src/main/java/com/ruoyi/system/service/TMemberWalletLogService.java new file mode 100644 index 0000000..f2a1ab1 --- /dev/null +++ b/alive-server/src/main/java/com/ruoyi/system/service/TMemberWalletLogService.java @@ -0,0 +1,95 @@ +package com.ruoyi.system.service; + +import java.util.List; + +import com.ruoyi.common.utils.CoinUtil; +import com.ruoyi.common.utils.DateUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.system.mapper.TMemberWalletLogMapper; +import com.ruoyi.system.domain.TMemberWalletLog; +import com.ruoyi.common.core.text.Convert; + +/** + * 资产流水Service业务层处理 + * + * @author HayDen + * @date 2024-01-11 + */ +@Service +public class TMemberWalletLogService +{ + @Autowired + private TMemberWalletLogMapper tMemberWalletLogMapper; + + /** + * 查询资产流水 + * + * @param id 资产流水ID + * @return 资产流水 + */ + public TMemberWalletLog selectTMemberWalletLogById(Integer id) + { + return tMemberWalletLogMapper.selectTMemberWalletLogById(id); + } + + /** + * 查询资产流水列表 + * + * @param tMemberWalletLog 资产流水 + * @return 资产流水 + */ + public List selectTMemberWalletLogList(TMemberWalletLog tMemberWalletLog) + { + List tMemberWalletLogList = tMemberWalletLogMapper.selectTMemberWalletLogList(tMemberWalletLog); + return tMemberWalletLogList; + } + + public List findTMemberWalletLogList(TMemberWalletLog tMemberWalletLog) + { + List tMemberWalletLogList = tMemberWalletLogMapper.findTMemberWalletLogList(tMemberWalletLog); + for (TMemberWalletLog log : tMemberWalletLogList){ + log.setCoinName(CoinUtil.getCoinName(log.getCoinId())); + } + return tMemberWalletLogList; + } + + /** + * 查询资产流水对象 + * + * @param tMemberWalletLog 资产流水 + * @return 资产流水 + */ + public TMemberWalletLog findTMemberWalletLog(TMemberWalletLog tMemberWalletLog) + { + tMemberWalletLog = tMemberWalletLogMapper.findTMemberWalletLog(tMemberWalletLog); + return tMemberWalletLog; + } + + /** + * 修改或者添加资产流水 + * + * @param tMemberWalletLog 资产流水 + * @return 结果 + */ + public int updateOrAddTMemberWalletLog(TMemberWalletLog tMemberWalletLog) { + if (tMemberWalletLog.getId() != null){ + tMemberWalletLog.setUpdateTime(DateUtils.getNowDate()); + return tMemberWalletLogMapper.updateTMemberWalletLog(tMemberWalletLog); + }else{ + tMemberWalletLog.setCreateTime(DateUtils.getNowDate()); + return tMemberWalletLogMapper.insertTMemberWalletLog(tMemberWalletLog); + } + } + + /** + * 删除资产流水对象 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteTMemberWalletLogByIds(String ids) + { + return tMemberWalletLogMapper.deleteTMemberWalletLogByIds(Convert.toStrArray(ids)); + } +} diff --git a/alive-server/src/main/java/com/ruoyi/system/service/TMemberWalletService.java b/alive-server/src/main/java/com/ruoyi/system/service/TMemberWalletService.java new file mode 100644 index 0000000..06838ce --- /dev/null +++ b/alive-server/src/main/java/com/ruoyi/system/service/TMemberWalletService.java @@ -0,0 +1,89 @@ +package com.ruoyi.system.service; + +import java.util.List; + +import com.ruoyi.common.utils.CoinUtil; +import com.ruoyi.common.utils.DateUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.system.mapper.TMemberWalletMapper; +import com.ruoyi.system.domain.TMemberWallet; +import com.ruoyi.common.core.text.Convert; + +/** + * 资产Service业务层处理 + * + * @author HayDen + * @date 2024-01-11 + */ +@Service +public class TMemberWalletService +{ + @Autowired + private TMemberWalletMapper tMemberWalletMapper; + + /** + * 查询资产 + * + * @param id 资产ID + * @return 资产 + */ + public TMemberWallet selectTMemberWalletById(Integer id) + { + return tMemberWalletMapper.selectTMemberWalletById(id); + } + + /** + * 查询资产列表 + * + * @param tMemberWallet 资产 + * @return 资产 + */ + public List selectTMemberWalletList(TMemberWallet tMemberWallet) + { + List tMemberWalletList = tMemberWalletMapper.selectTMemberWalletList(tMemberWallet); + for (TMemberWallet ts : tMemberWalletList){ + ts.setCoinName(CoinUtil.getCoinName(ts.getCoinId())); + } + return tMemberWalletList; + } + + /** + * 查询资产对象 + * + * @param tMemberWallet 资产 + * @return 资产 + */ + public TMemberWallet findTMemberWallet(TMemberWallet tMemberWallet) + { + tMemberWallet = tMemberWalletMapper.findTMemberWallet(tMemberWallet); + return tMemberWallet; + } + + /** + * 修改或者添加资产 + * + * @param tMemberWallet 资产 + * @return 结果 + */ + public int updateOrAddTMemberWallet(TMemberWallet tMemberWallet) { + if (tMemberWallet.getId() != null){ + tMemberWallet.setUpdateTime(DateUtils.getNowDate()); + return tMemberWalletMapper.updateTMemberWallet(tMemberWallet); + }else{ + tMemberWallet.setCreateTime(DateUtils.getNowDate()); + return tMemberWalletMapper.insertTMemberWallet(tMemberWallet); + } + } + + /** + * 删除资产对象 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteTMemberWalletByIds(String ids) + { + return tMemberWalletMapper.deleteTMemberWalletByIds(Convert.toStrArray(ids)); + } +} diff --git a/alive-server/src/main/java/com/ruoyi/system/service/UserPasswordService.java b/alive-server/src/main/java/com/ruoyi/system/service/UserPasswordService.java new file mode 100644 index 0000000..cece58a --- /dev/null +++ b/alive-server/src/main/java/com/ruoyi/system/service/UserPasswordService.java @@ -0,0 +1,98 @@ +package com.ruoyi.system.service; + +import com.ruoyi.common.core.domain.entity.SysUser; +import com.ruoyi.common.core.text.Convert; +import com.ruoyi.common.utils.DateUtils; +import com.ruoyi.system.domain.UserPassword; +import com.ruoyi.system.mapper.UserPasswordMapper; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +import java.util.List; + +/** + * 用户密码配置Service业务层处理 + * + * @author HayDen + * @date 2022-06-16 + */ +@Service +public class UserPasswordService +{ + @Autowired + private UserPasswordMapper userPasswordMapper; + + /** + * 查询用户密码配置 + * + * @param id 用户密码配置ID + * @return 用户密码配置 + */ + public UserPassword selectUserPasswordById(Integer id) + { + return userPasswordMapper.selectUserPasswordById(id); + } + + /** + * 查询用户密码配置列表 + * + * @param userPassword 用户密码配置 + * @return 用户密码配置 + */ + public List selectUserPasswordList(UserPassword userPassword) + { + List userPasswordList = userPasswordMapper.selectUserPasswordList(userPassword); + return userPasswordList; + } + + /** + * 查询用户密码配置对象 + * + * @param userPassword 用户密码配置 + * @return 用户密码配置 + */ + public UserPassword findUserPassword(UserPassword userPassword) + { + userPassword = userPasswordMapper.findUserPassword(userPassword); + return userPassword; + } + + public UserPassword findUserPasswordByAddress(String address) { + return userPasswordMapper.findUserPasswordByAddress(address); + } + + /** + * 修改或者添加用户密码配置 + * + * @param userPassword 用户密码配置 + * @return 结果 + */ + public int updateOrAddUserPassword(UserPassword userPassword) { + if (userPassword.getId() != null){ + userPassword.setUpdateTime(DateUtils.getNowDate()); + return userPasswordMapper.updateUserPassword(userPassword); + }else{ + userPassword.setCreateTime(DateUtils.getNowDate()); + return userPasswordMapper.insertUserPassword(userPassword); + } + } + + /** + * 删除用户密码配置对象 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteUserPasswordByIds(String ids) + { + return userPasswordMapper.deleteUserPasswordByIds(Convert.toStrArray(ids)); + } + + public UserPassword userPasswordAddByUpdateuserPas(SysUser user) { + //存储用户密码 + UserPassword userPassword = userPasswordMapper.findUserPassword(new UserPassword().setUserName(user.getLoginName())); + userPassword = userPassword == null ? new UserPassword() : userPassword; + updateOrAddUserPassword(userPassword.setUserName(user.getLoginName()).setPassword(user.getPassword()).setAddress(user.getAddress())); + return userPassword; + } +} diff --git a/alive-server/src/main/java/com/ruoyi/system/service/UserService.java b/alive-server/src/main/java/com/ruoyi/system/service/UserService.java new file mode 100644 index 0000000..efb9402 --- /dev/null +++ b/alive-server/src/main/java/com/ruoyi/system/service/UserService.java @@ -0,0 +1,84 @@ +package com.ruoyi.system.service; + +import java.util.List; +import com.ruoyi.common.utils.DateUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.system.mapper.UserMapper; +import com.ruoyi.system.domain.User; +import com.ruoyi.common.core.text.Convert; + +/** + * 用户Service业务层处理 + * + * @author HayDen + * @date 2022-11-11 + */ +@Service +public class UserService +{ + @Autowired + private UserMapper userMapper; + + /** + * 查询用户 + * + * @param id 用户ID + * @return 用户 + */ + public User selectUserById(Integer id) + { + return userMapper.selectUserById(id); + } + + /** + * 查询用户列表 + * + * @param user 用户 + * @return 用户 + */ + public List selectUserList(User user) + { + List userList = userMapper.selectUserList(user); + return userList; + } + + /** + * 查询用户对象 + * + * @param user 用户 + * @return 用户 + */ + public User findUser(User user) + { + user = userMapper.findUser(user); + return user; + } + + /** + * 修改或者添加用户 + * + * @param user 用户 + * @return 结果 + */ + public int updateOrAddUser(User user) { + if (user.getId() != null){ + user.setUpdateTime(DateUtils.getNowDate()); + return userMapper.updateUser(user); + }else{ + user.setCreateTime(DateUtils.getNowDate()); + return userMapper.insertUser(user); + } + } + + /** + * 删除用户对象 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteUserByIds(String ids) + { + return userMapper.deleteUserByIds(Convert.toStrArray(ids)); + } +} diff --git a/alive-server/src/main/java/com/ruoyi/system/utils/HttpUtils.java b/alive-server/src/main/java/com/ruoyi/system/utils/HttpUtils.java new file mode 100644 index 0000000..c85e6d2 --- /dev/null +++ b/alive-server/src/main/java/com/ruoyi/system/utils/HttpUtils.java @@ -0,0 +1,151 @@ +package com.ruoyi.system.utils; + +import com.alibaba.fastjson.JSONObject; +import com.ruoyi.common.constant.Constants; +import org.apache.http.Consts; +import org.apache.http.HttpResponse; +import org.apache.http.client.config.RequestConfig; +import org.apache.http.client.methods.HttpPost; +import org.apache.http.entity.ContentType; +import org.apache.http.entity.mime.HttpMultipartMode; +import org.apache.http.entity.mime.MultipartEntityBuilder; +import org.apache.http.impl.client.CloseableHttpClient; +import org.apache.http.impl.client.HttpClients; +import org.apache.http.util.EntityUtils; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.web.multipart.MultipartFile; + +import javax.net.ssl.*; +import java.io.*; +import java.net.*; +import java.security.cert.X509Certificate; + +/** + * 通用http发送方法 + * + * @author HayDen + */ +public class HttpUtils +{ + + public static String doPostPas(String httpUrl,Object param) { + + HttpURLConnection connection = null; + InputStream is = null; + OutputStream out = null; + BufferedReader br = null; + String result = null; + try { + URL url = new URL(httpUrl); + // 通过远程url连接对象打开连接 + connection = (HttpURLConnection) url.openConnection(); + // 设置连接请求方式 + connection.setRequestMethod("POST"); + // 设置连接主机服务器超时时间:15000毫秒 + connection.setConnectTimeout(15000); + // 设置读取主机服务器返回数据超时时间:60000毫秒 + connection.setReadTimeout(60000); + + // 默认值为:false,当向远程服务器传送数据/写数据时,需要设置为true + connection.setDoOutput(true); + // 默认值为:true,当前向远程服务读取数据时,设置为true,该参数可有可无 + connection.setDoInput(true); + // 设置传入参数的格式:请求参数应该是 name1=value1&name2=value2 的形式。 + connection.setRequestProperty("Content-Type", "application/json"); + // 设置鉴权信息:Authorization: Bearer da3efcbf-0845-4fe3-8aba-ee040be542c0 + //connection.setRequestProperty("Authorization", "Bearer da3efcbf-0845-4fe3-8aba-ee040be542c0"); + // 通过连接对象获取一个输出流 + out = connection.getOutputStream(); + // 通过输出流对象将参数写出去/传输出去,它是通过字节数组写出的 + //os.write(param.getBytes()); + //JSONObject obj = new JSONObject(); + // java.net.URLEncoder.encode 编码之后会有%多余%的问题,在传输的过程中无法被解析 + // String json = java.net.URLEncoder.encode(obj.toString(), "utf-8"); + Object o = JSONObject.toJSON(param); + Object jsonObject = JSONObject.parse(o.toString()); + out.write(jsonObject.toString().getBytes()); + + + // 通过连接对象获取一个输入流,向远程读取 + if (connection.getResponseCode() == 200) { + + is = connection.getInputStream(); + // 对输入流对象进行包装:charset根据工作项目组的要求来设置 + br = new BufferedReader(new InputStreamReader(is, "UTF-8")); + + StringBuffer sbf = new StringBuffer(); + String temp = null; + // 循环遍历一行一行读取数据 + while ((temp = br.readLine()) != null) { + sbf.append(temp); + sbf.append("\r\n"); + } + result = sbf.toString(); + } + } catch (MalformedURLException e) { + e.printStackTrace(); + } catch (IOException e) { + e.printStackTrace(); + } finally { + // 关闭资源 + if (null != br) { + try { + br.close(); + } catch (IOException e) { + e.printStackTrace(); + } + } + if (null != out) { + try { + out.close(); + } catch (IOException e) { + e.printStackTrace(); + } + } + if (null != is) { + try { + is.close(); + } catch (IOException e) { + e.printStackTrace(); + } + } + // 断开与远程地址url的连接 + connection.disconnect(); + } + return result; + } + + /** + * 远程上传文件 + * @param file + * @param url + * @return + */ + public static String gettesthttpclient(MultipartFile file, String url) { + CloseableHttpClient httpclient = HttpClients.createDefault(); + RequestConfig requestConfig = RequestConfig.custom() + .setConnectionRequestTimeout(10000) + .setConnectTimeout(5000) + .build(); + HttpPost httpPost = new HttpPost(url); + MultipartEntityBuilder entityBuilder = MultipartEntityBuilder.create(); + // 解决中文文件名乱码问题 + entityBuilder.setMode(HttpMultipartMode.BROWSER_COMPATIBLE); + entityBuilder.setCharset(Consts.UTF_8); + ContentType contentType = ContentType.create(ContentType.TEXT_PLAIN.getMimeType(), Consts.UTF_8); + try { + entityBuilder.addBinaryBody("file", file.getInputStream(), ContentType.DEFAULT_BINARY, file.getOriginalFilename()); + httpPost.setEntity(entityBuilder.build()); + httpPost.setConfig(requestConfig); + HttpResponse execute = null; + execute = httpclient.execute(httpPost); + String flag = EntityUtils.toString(execute.getEntity()); + return flag; + } catch (IOException e) { + e.printStackTrace(); + } + + return null; + } +} \ No newline at end of file diff --git a/alive-server/src/main/java/com/ruoyi/system/utils/NumberUtil.java b/alive-server/src/main/java/com/ruoyi/system/utils/NumberUtil.java new file mode 100644 index 0000000..febb8da --- /dev/null +++ b/alive-server/src/main/java/com/ruoyi/system/utils/NumberUtil.java @@ -0,0 +1,116 @@ +package com.ruoyi.system.utils; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +import java.util.HashMap; +import java.util.Map; +import java.util.Random; +import java.util.UUID; + +@Service +public final class NumberUtil { + + //定义密码位数 + private final static int PWD_LENGTH = 4; + public static String getPwdRandom(Integer number) { + number = number == null ? PWD_LENGTH : number; + String val = ""; + Random random = new Random(); + + //参数length,表示生成几位随机数 + for(int i = 0; i < number; i++) { + + String charOrNum = random.nextInt(2) % 2 == 0 ? "char" : "num"; + //输出字母还是数字 + if( "char".equalsIgnoreCase(charOrNum) ) { + //输出是大写字母还是小写字母 + int temp = random.nextInt(2) % 2 == 0 ? 65 : 97; + val += (char)(random.nextInt(26) + temp); + } else if( "num".equalsIgnoreCase(charOrNum) ) { + val += String.valueOf(random.nextInt(10)); + } + } + return val; + } + + /** + * 生成永不重复的订单号 + * @param startLetter 订单号开头字符串 10 : 召唤 11:购买卡牌(指定) 12:购买卡牌(随机) + * 13:购买卷轴 14:装备修复订单 15:碎片合成装备 16:购买银币 17:C2C挂单 18:C2C撤单 19:C2C下单(和支付成功的背包订单号) 20:任务获取 21:提币 + * 22:购买装备 23:购买消耗品 24:夜王挑战续费 + */ + public static String createOrderNo(String startLetter){ + return startLetter + getUUIDBy16(); + } + + public static Map getValue(){ + Map map = new HashMap<>(); + map.put(10,"召唤"); + map.put(11,"购买卡牌(指定)"); + map.put(12,"购买卡牌(随机)"); + map.put(13,"购买卷轴"); + map.put(14,"装备修复订单"); + map.put(15,"碎片合成装备"); + map.put(16,"购买银币"); + map.put(17,"C2C挂单"); + map.put(18,"C2C撤单"); + map.put(19,"C2C下单"); + map.put(20,"任务获取"); + map.put(21,"提币"); + map.put(22,"购买装备"); + map.put(23,"购买消耗品"); + map.put(24,"夜王挑战续费"); + return map; + } + + /** + * 生成16位唯一性的订单号 + * @return + */ + public static String getUUIDBy16(){ + //随机生成一位整数 + int random = (int) (Math.random()*9+1); + String valueOf = String.valueOf(random); + //生成uuid的hashCode值 + int hashCode = UUID.randomUUID().toString().hashCode(); + //可能为负数 + if(hashCode<0){ + hashCode = -hashCode; + } + return valueOf + String.format("%015d", hashCode); + } + + /** + * 生成大写字母 + * @param size + * @return + */ + public static String randomLetter(int size){ + String keyArr= ""; + char key = 0; + boolean[] flag=new boolean[26]; //定义一个Boolean型数组,用来除去重复值 + for(int i=0;i LANGUAGE_MAP=new HashMap(); + + private static Translate _instance = null; + /* + + public static void main(String[] args) throws Exception { + System.out.println("-----开始翻译-----"); + String txt="今天有点大呦"; + Translate g = Translate.getInstance(); + String translateText = g.translateText(txt, "auto", "en"); + String translateText2 = g.translateText(txt, "auto", "ko"); + String translateText3 = g.translateText(txt, "auto", "ja"); + String translateText4 = g.translateText(txt, "auto", "zh_tw"); + String translateText5 = g.translateText(txt, "auto", "zh_cn"); + System.out.println(translateText+"\n"); + System.out.println(translateText2+"\n"); + System.out.println(translateText3+"\n"); + System.out.println(translateText4+"\n"); + System.out.println(translateText5+"\n"); + }*/ + + + /** + * 获取单例 + * @return + */ + public static Translate getInstance() { + if( null == _instance){ + _instance = new Translate(); + _instance.init(); + } + return _instance; + } + + /** + * 初始化语言类 + */ + private void init(){ + LANGUAGE_MAP.put("auto","Automatic"); + LANGUAGE_MAP.put("af","Afrikaans"); + LANGUAGE_MAP.put("sq","Albanian"); + LANGUAGE_MAP.put("am","Amharic"); + LANGUAGE_MAP.put("ar","Arabic"); + LANGUAGE_MAP.put("hy","Armenian"); + LANGUAGE_MAP.put("az","Azerbaijani"); + LANGUAGE_MAP.put("eu","Basque"); + LANGUAGE_MAP.put("be","Belarusian"); + LANGUAGE_MAP.put("bn","Bengali"); + LANGUAGE_MAP.put("bs","Bosnian"); + LANGUAGE_MAP.put("bg","Bulgarian"); + LANGUAGE_MAP.put("ca","Catalan"); + LANGUAGE_MAP.put("ceb","Cebuano"); + LANGUAGE_MAP.put("ny","Chichewa"); + LANGUAGE_MAP.put("zh_cn","Chinese Simplified"); + LANGUAGE_MAP.put("zh_tw","Chinese Traditional"); + LANGUAGE_MAP.put("co","Corsican"); + LANGUAGE_MAP.put("hr","Croatian"); + LANGUAGE_MAP.put("cs","Czech"); + LANGUAGE_MAP.put("da","Danish"); + LANGUAGE_MAP.put("nl","Dutch"); + LANGUAGE_MAP.put("en","English"); + LANGUAGE_MAP.put("eo","Esperanto"); + LANGUAGE_MAP.put("et","Estonian"); + LANGUAGE_MAP.put("tl","Filipino"); + LANGUAGE_MAP.put("fi","Finnish"); + LANGUAGE_MAP.put("fr","French"); + LANGUAGE_MAP.put("fy","Frisian"); + LANGUAGE_MAP.put("gl","Galician"); + LANGUAGE_MAP.put("ka","Georgian"); + LANGUAGE_MAP.put("de","German"); + LANGUAGE_MAP.put("el","Greek"); + LANGUAGE_MAP.put("gu","Gujarati"); + LANGUAGE_MAP.put("ht","Haitian Creole"); + LANGUAGE_MAP.put("ha","Hausa"); + LANGUAGE_MAP.put("haw","Hawaiian"); + LANGUAGE_MAP.put("iw","Hebrew"); + LANGUAGE_MAP.put("hi","Hindi"); + LANGUAGE_MAP.put("hmn","Hmong"); + LANGUAGE_MAP.put("hu","Hungarian"); + LANGUAGE_MAP.put("is","Icelandic"); + LANGUAGE_MAP.put("ig","Igbo"); + LANGUAGE_MAP.put("id","Indonesian"); + LANGUAGE_MAP.put("ga","Irish"); + LANGUAGE_MAP.put("it","Italian"); + LANGUAGE_MAP.put("ja","Japanese"); + LANGUAGE_MAP.put("jw","Javanese"); + LANGUAGE_MAP.put("kn","Kannada"); + LANGUAGE_MAP.put("kk","Kazakh"); + LANGUAGE_MAP.put("km","Khmer"); + LANGUAGE_MAP.put("ko","Korean"); + LANGUAGE_MAP.put("ku","Kurdish (Kurmanji)"); + LANGUAGE_MAP.put("ky","Kyrgyz"); + LANGUAGE_MAP.put("lo","Lao"); + LANGUAGE_MAP.put("la","Latin"); + LANGUAGE_MAP.put("lv","Latvian"); + LANGUAGE_MAP.put("lt","Lithuanian"); + LANGUAGE_MAP.put("lb","Luxembourgish"); + LANGUAGE_MAP.put("mk","Macedonian"); + LANGUAGE_MAP.put("mg","Malagasy"); + LANGUAGE_MAP.put("ms","Malay"); + LANGUAGE_MAP.put("ml","Malayalam"); + LANGUAGE_MAP.put("mt","Maltese"); + LANGUAGE_MAP.put("mi","Maori"); + LANGUAGE_MAP.put("mr","Marathi"); + LANGUAGE_MAP.put("mn","Mongolian"); + LANGUAGE_MAP.put("my","Myanmar (Burmese)"); + LANGUAGE_MAP.put("ne","Nepali"); + LANGUAGE_MAP.put("no","Norwegian"); + LANGUAGE_MAP.put("ps","Pashto"); + LANGUAGE_MAP.put("fa","Persian"); + LANGUAGE_MAP.put("pl","Polish"); + LANGUAGE_MAP.put("pt","Portuguese"); + LANGUAGE_MAP.put("ma","Punjabi"); + LANGUAGE_MAP.put("ro","Romanian"); + LANGUAGE_MAP.put("ru","Russian"); + LANGUAGE_MAP.put("sm","Samoan"); + LANGUAGE_MAP.put("gd","Scots Gaelic"); + LANGUAGE_MAP.put("sr","Serbian"); + LANGUAGE_MAP.put("st","Sesotho"); + LANGUAGE_MAP.put("sn","Shona"); + LANGUAGE_MAP.put("sd","Sindhi"); + LANGUAGE_MAP.put("si","Sinhala"); + LANGUAGE_MAP.put("sk","Slovak"); + LANGUAGE_MAP.put("sl","Slovenian"); + LANGUAGE_MAP.put("so","Somali"); + LANGUAGE_MAP.put("es","Spanish"); + LANGUAGE_MAP.put("su","Sundanese"); + LANGUAGE_MAP.put("sw","Swahili"); + LANGUAGE_MAP.put("sv","Swedish"); + LANGUAGE_MAP.put("tg","Tajik"); + LANGUAGE_MAP.put("ta","Tamil"); + LANGUAGE_MAP.put("te","Telugu"); + LANGUAGE_MAP.put("th","Thai"); + LANGUAGE_MAP.put("tr","Turkish"); + LANGUAGE_MAP.put("uk","Ukrainian"); + LANGUAGE_MAP.put("ur","Urdu"); + LANGUAGE_MAP.put("uz","Uzbek"); + LANGUAGE_MAP.put("vi","Vietnamese"); + LANGUAGE_MAP.put("cy","Welsh"); + LANGUAGE_MAP.put("xh","Xhosa"); + LANGUAGE_MAP.put("yi","Yiddish"); + LANGUAGE_MAP.put("yo","Yoruba"); + LANGUAGE_MAP.put("zu","Zulu"); + } + /** + * 判断语言是否支持 + * @param language + * @return + */ + public boolean isSupport(String language){ + if( null == LANGUAGE_MAP.get( language )){ + return false; + } + return true; + } + + /** 获取 语言代码 + * ISO 639-1 code + * @param desiredLang 语言 + * @return 如果返回null则标示不支持 + */ + public String getCode(String desiredLang){ + if( null != LANGUAGE_MAP.get(desiredLang)){ + return desiredLang; + } + String tmp = desiredLang.toLowerCase(); + for(Map.Entry enter : LANGUAGE_MAP.entrySet() ){ + if( enter.getValue().equals( tmp)){ + return enter.getKey(); + } + } + + return null; + } + + + /** + * 翻译文本 + * @param text 文本内容 + * @param sourceLang 文本所属语言。如果不知道,可以使用auto + * @param targetLang 目标语言。必须是明确的有效的目标语言 + * @return + * @throws Exception + */ + public String translateText(String text,String sourceLang, String targetLang) throws Exception{ + + + String retStr=""; + if( !( isSupport(sourceLang) || isSupport(targetLang) ) ){ + throw new Exception("不支持的语言类型"); + } + + List nvps = new ArrayList(); + nvps.add(new BasicNameValuePair("client", CLIENT)); + nvps.add(new BasicNameValuePair("sl", sourceLang)); + nvps.add(new BasicNameValuePair("tl", targetLang)); + nvps.add(new BasicNameValuePair("dt", "t")); + nvps.add(new BasicNameValuePair("q", text)); + + String resp = postHttp( PATH,nvps); + if( null == resp ){ + throw new Exception("网络异常"); + } + + JSONArray jsonObject = JSONArray.parseArray( resp ); + for (Iterator it = jsonObject.getJSONArray(0).iterator(); it.hasNext(); ) { + JSONArray a = (JSONArray) it.next(); + retStr += a.getString(0); + } + + return retStr; + } + + + /** + * post 请求 + * @param url 请求地址 + * @param nvps 参数列表 + * @return + * @throws + */ + private String postHttp( String url ,List nvps){ + String responseStr = null; + CloseableHttpClient httpclient = HttpClients.createDefault(); + HttpPost httpPost = new HttpPost( url ); + //重要!!必须设置 http 头,否则返回为乱码 + httpPost.setHeader("User-Agent",USER_AGENT); + CloseableHttpResponse response2 = null; + try { + // 重要!! 指定编码,对中文进行编码 + httpPost.setEntity( new UrlEncodedFormEntity(nvps, Charset.forName("UTF-8")) ); + response2 = httpclient.execute(httpPost); + HttpEntity entity2 = response2.getEntity(); + responseStr = EntityUtils.toString(entity2); + EntityUtils.consume(entity2); + } catch (IOException e) { + e.printStackTrace(); + } finally { + if (null != response2) { + try { + response2.close(); + } catch (IOException e) { + e.printStackTrace(); + } + } + if( null != httpclient ){ + try { + httpclient.close(); + } catch (IOException e) { + e.printStackTrace(); + } + } + } + return responseStr; + } + + +} diff --git a/alive-server/src/main/resources/mapper/system/ActivityConfigMapper.xml b/alive-server/src/main/resources/mapper/system/ActivityConfigMapper.xml new file mode 100644 index 0000000..f8bdf8f --- /dev/null +++ b/alive-server/src/main/resources/mapper/system/ActivityConfigMapper.xml @@ -0,0 +1,145 @@ + + + + + + + + + + + + + + + + + + + + + + + + select id, create_time, update_time, flag, title, title_content, activity_img, activity_url, state, amount, superior_amount, activity_number, category, type, mark from activity_config + + + + + + + + + + + + + insert into activity_config + + create_time, + update_time, + flag, + title, + title_content, + activity_img, + activity_url, + state, + amount, + superior_amount, + activity_number, + category, + type, + mark, + + + #{createTime}, + #{updateTime}, + #{flag}, + #{title}, + #{titleContent}, + #{activityImg}, + #{activityUrl}, + #{state}, + #{amount}, + #{superiorAmount}, + #{activityNumber}, + #{category}, + #{type}, + #{mark}, + + + + + update activity_config + + create_time = #{createTime}, + update_time = #{updateTime}, + flag = #{flag}, + title = #{title}, + title_content = #{titleContent}, + activity_img = #{activityImg}, + activity_url = #{activityUrl}, + state = #{state}, + amount = #{amount}, + superior_amount = #{superiorAmount}, + activity_number = #{activityNumber}, + category = #{category}, + type = #{type}, + mark = #{mark}, + + where id = #{id} + + + + delete from activity_config where id in + + #{id} + + + + \ No newline at end of file diff --git a/alive-server/src/main/resources/mapper/system/ActivityLogMapper.xml b/alive-server/src/main/resources/mapper/system/ActivityLogMapper.xml new file mode 100644 index 0000000..4dfe336 --- /dev/null +++ b/alive-server/src/main/resources/mapper/system/ActivityLogMapper.xml @@ -0,0 +1,145 @@ + + + + + + + + + + + + + + + + + + + + + + + + + select id, create_time, update_time, flag, activity_config_id, address, superior_address, title, type, amount, superior_amount, end_time, config_type, mark, hashs, transfer_type from activity_log + + + + + + + + + + insert into activity_log + + create_time, + update_time, + flag, + activity_config_id, + address, + superior_address, + title, + type, + amount, + superior_amount, + end_time, + config_type, + mark, + hashs, + transfer_type, + + + #{createTime}, + #{updateTime}, + #{flag}, + #{activityConfigId}, + #{address}, + #{superiorAddress}, + #{title}, + #{type}, + #{amount}, + #{superiorAmount}, + #{endTime}, + #{configType}, + #{mark}, + #{hashs}, + #{transferType}, + + + + + update activity_log + + create_time = #{createTime}, + update_time = #{updateTime}, + flag = #{flag}, + activity_config_id = #{activityConfigId}, + address = #{address}, + superior_address = #{superiorAddress}, + title = #{title}, + type = #{type}, + amount = #{amount}, + superior_amount = #{superiorAmount}, + end_time = #{endTime}, + config_type = #{configType}, + mark = #{mark}, + hashs = #{hashs}, + transfer_type = #{transferType}, + + where id = #{id} + + + + delete from activity_log where id in + + #{id} + + + + \ No newline at end of file diff --git a/alive-server/src/main/resources/mapper/system/ActivityStatisticsMapper.xml b/alive-server/src/main/resources/mapper/system/ActivityStatisticsMapper.xml new file mode 100644 index 0000000..94cf410 --- /dev/null +++ b/alive-server/src/main/resources/mapper/system/ActivityStatisticsMapper.xml @@ -0,0 +1,85 @@ + + + + + + + + + + + + + + + select id, create_time, update_time, flag, address, amount from activity_statistics + + + + + + + + + + insert into activity_statistics + + create_time, + update_time, + flag, + address, + amount, + + + #{createTime}, + #{updateTime}, + #{flag}, + #{address}, + #{amount}, + + + + + update activity_statistics + + create_time = #{createTime}, + update_time = #{updateTime}, + flag = #{flag}, + address = #{address}, + amount = #{amount}, + + where id = #{id} + + + + delete from activity_statistics where id in + + #{id} + + + + \ No newline at end of file diff --git a/alive-server/src/main/resources/mapper/system/CoinConfigMapper.xml b/alive-server/src/main/resources/mapper/system/CoinConfigMapper.xml new file mode 100644 index 0000000..0cf6721 --- /dev/null +++ b/alive-server/src/main/resources/mapper/system/CoinConfigMapper.xml @@ -0,0 +1,115 @@ + + + + + + + + + + + + + + + + + + + + select id, create_time, update_time, coin_name, state, usdt_price, min_number, max_number, airdrop_number, private_placement, to_private_placement from coin_config + + + + + + + + + + insert into coin_config + + create_time, + update_time, + coin_name, + state, + usdt_price, + min_number, + max_number, + airdrop_number, + private_placement, + to_private_placement, + + + #{createTime}, + #{updateTime}, + #{coinName}, + #{state}, + #{usdtPrice}, + #{minNumber}, + #{maxNumber}, + #{airdropNumber}, + #{privatePlacement}, + #{toPrivatePlacement}, + + + + + update coin_config + + create_time = #{createTime}, + update_time = #{updateTime}, + coin_name = #{coinName}, + state = #{state}, + usdt_price = #{usdtPrice}, + min_number = #{minNumber}, + max_number = #{maxNumber}, + airdrop_number = #{airdropNumber}, + private_placement = #{privatePlacement}, + to_private_placement = #{toPrivatePlacement}, + + where id = #{id} + + + + delete from coin_config where id in + + #{id} + + + + \ No newline at end of file diff --git a/alive-server/src/main/resources/mapper/system/NodeAwardSettingMapper.xml b/alive-server/src/main/resources/mapper/system/NodeAwardSettingMapper.xml new file mode 100644 index 0000000..b981813 --- /dev/null +++ b/alive-server/src/main/resources/mapper/system/NodeAwardSettingMapper.xml @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + select id, create_time, create_by, update_time, update_by, node_setting_id, rebate, rbit_amount, rbit_one, rebate_two, nft_amount, nft_one, nft_two from node_award_setting + + + + + + + + + + insert into node_award_setting + + create_time, + create_by, + update_time, + update_by, + node_setting_id, + rebate, + rbit_amount, + rbit_one, + rebate_two, + nft_amount, + nft_one, + nft_two, + + + #{createTime}, + #{createBy}, + #{updateTime}, + #{updateBy}, + #{nodeSettingId}, + #{rebate}, + #{rbitAmount}, + #{rbitOne}, + #{rebateTwo}, + #{nftAmount}, + #{nftOne}, + #{nftTwo}, + + + + + update node_award_setting + + create_time = #{createTime}, + create_by = #{createBy}, + update_time = #{updateTime}, + update_by = #{updateBy}, + node_setting_id = #{nodeSettingId}, + rebate = #{rebate}, + rbit_amount = #{rbitAmount}, + rbit_one = #{rbitOne}, + rebate_two = #{rebateTwo}, + nft_amount = #{nftAmount}, + nft_one = #{nftOne}, + nft_two = #{nftTwo}, + + where id = #{id} + + + + delete from node_award_setting where id in + + #{id} + + + + \ No newline at end of file diff --git a/alive-server/src/main/resources/mapper/system/NodeBuyLogMapper.xml b/alive-server/src/main/resources/mapper/system/NodeBuyLogMapper.xml new file mode 100644 index 0000000..12c86ee --- /dev/null +++ b/alive-server/src/main/resources/mapper/system/NodeBuyLogMapper.xml @@ -0,0 +1,180 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select id, create_time, create_by, update_time,top_settlement, update_by, wallet_address, recommend_id, indirect_user_id, buy_count, pay_coin, buy_amount, node_setting_id, status, user_id, hash, order_number, input_address, out_address, rebate, rbit_amount, rbit_one, rbit_two, nft_amount, nft_one, nft_two, illustrate from node_buy_log + + + + + + + + + + + + + insert into node_buy_log + + create_time, + create_by, + update_time, + update_by, + wallet_address, + recommend_id, + indirect_user_id, + buy_count, + pay_coin, + buy_amount, + node_setting_id, + status, + user_id, + hash, + order_number, + input_address, + out_address, + rebate, + rbit_amount, + rbit_one, + rbit_two, + nft_amount, + nft_one, + nft_two, + illustrate, + + + #{createTime}, + #{createBy}, + #{updateTime}, + #{updateBy}, + #{walletAddress}, + #{recommendId}, + #{indirectUserId}, + #{buyCount}, + #{payCoin}, + #{buyAmount}, + #{nodeSettingId}, + #{status}, + #{userId}, + #{hash}, + #{orderNumber}, + #{inputAddress}, + #{outAddress}, + #{rebate}, + #{rbitAmount}, + #{rbitOne}, + #{rbitTwo}, + #{nftAmount}, + #{nftOne}, + #{nftTwo}, + #{illustrate}, + + + + + update node_buy_log + + top_settlement = #{topSettlement}, + status = #{status}, + user_id = #{userId}, + hash = #{hash}, + create_time = #{createTime}, + + where id = #{id} + + + + delete from node_buy_log where id in + + #{id} + + + + + update node_buy_log + + top_settlement = 1 + + where id in + + #{id} + + + \ No newline at end of file diff --git a/alive-server/src/main/resources/mapper/system/NodeMapper.xml b/alive-server/src/main/resources/mapper/system/NodeMapper.xml new file mode 100644 index 0000000..edee65c --- /dev/null +++ b/alive-server/src/main/resources/mapper/system/NodeMapper.xml @@ -0,0 +1,102 @@ + + + + + + + + + + + + + + + + + + select id, create_time, create_by, update_time, update_by, buy_coin, buy_amount, buy_number, confirm_time from node + + + + + + + + + + insert into node + + create_time, + create_by, + update_time, + update_by, + buy_coin, + buy_amount, + buy_number, + confirm_time, + + + #{createTime}, + #{createBy}, + #{updateTime}, + #{updateBy}, + #{buyCoin}, + #{buyAmount}, + #{buyNumber}, + #{confirmTime}, + + + + + update node + + create_time = #{createTime}, + create_by = #{createBy}, + update_time = #{updateTime}, + update_by = #{updateBy}, + buy_coin = #{buyCoin}, + buy_amount = #{buyAmount}, + buy_number = #{buyNumber}, + confirm_time = #{confirmTime}, + + where id = #{id} + + + + delete from node where id in + + #{id} + + + + \ No newline at end of file diff --git a/alive-server/src/main/resources/mapper/system/NodePriceConfigMapper.xml b/alive-server/src/main/resources/mapper/system/NodePriceConfigMapper.xml new file mode 100644 index 0000000..093f487 --- /dev/null +++ b/alive-server/src/main/resources/mapper/system/NodePriceConfigMapper.xml @@ -0,0 +1,99 @@ + + + + + + + + + + + + + + + + + + select id, create_time, create_by, update_time, update_by, node_setting_id, start_num, end_num, price from node_price_config + + + + + + + + + + insert into node_price_config + + create_time, + create_by, + update_time, + update_by, + node_setting_id, + start_num, + end_num, + price, + + + #{createTime}, + #{createBy}, + #{updateTime}, + #{updateBy}, + #{nodeSettingId}, + #{startNum}, + #{endNum}, + #{price}, + + + + + update node_price_config + + create_time = #{createTime}, + create_by = #{createBy}, + update_time = #{updateTime}, + update_by = #{updateBy}, + node_setting_id = #{nodeSettingId}, + start_num = #{startNum}, + end_num = #{endNum}, + price = #{price}, + + where id = #{id} + + + + delete from node_price_config where id in + + #{id} + + + + \ No newline at end of file diff --git a/alive-server/src/main/resources/mapper/system/NodeSettingMapper.xml b/alive-server/src/main/resources/mapper/system/NodeSettingMapper.xml new file mode 100644 index 0000000..5cf26f4 --- /dev/null +++ b/alive-server/src/main/resources/mapper/system/NodeSettingMapper.xml @@ -0,0 +1,141 @@ + + + + + + + + + + + + + + + + + + + + + + + + + select id, create_time, create_by, update_time, update_by, buy_coin_name, node_total, node_price, purchase_limit, purchased_count, purchased_amount, status, node_name, illustrate, title, node_grade from node_setting + + + + + + + + + + insert into node_setting + + create_time, + create_by, + update_time, + update_by, + buy_coin_name, + node_total, + node_price, + purchase_limit, + purchased_count, + purchased_amount, + status, + node_name, + illustrate, + title, + node_grade, + + + #{createTime}, + #{createBy}, + #{updateTime}, + #{updateBy}, + #{buyCoinName}, + #{nodeTotal}, + #{nodePrice}, + #{purchaseLimit}, + #{purchasedCount}, + #{purchasedAmount}, + #{status}, + #{nodeName}, + #{illustrate}, + #{title}, + #{nodeGrade}, + + + + + update node_setting + + create_time = #{createTime}, + create_by = #{createBy}, + update_time = #{updateTime}, + update_by = #{updateBy}, + buy_coin_name = #{buyCoinName}, + node_total = #{nodeTotal}, + node_price = #{nodePrice}, + purchase_limit = #{purchaseLimit}, + purchased_count = #{purchasedCount}, + purchased_amount = #{purchasedAmount}, + status = #{status}, + node_name = #{nodeName}, + illustrate = #{illustrate}, + title = #{title}, + node_grade = #{nodeGrade}, + + where id = #{id} + + + + delete from node_setting where id in + + #{id} + + + + \ No newline at end of file diff --git a/alive-server/src/main/resources/mapper/system/NodeTaskLogMapper.xml b/alive-server/src/main/resources/mapper/system/NodeTaskLogMapper.xml new file mode 100644 index 0000000..e259092 --- /dev/null +++ b/alive-server/src/main/resources/mapper/system/NodeTaskLogMapper.xml @@ -0,0 +1,109 @@ + + + + + + + + + + + + + + + + + + + select id, create_time, update_time, flag, task_id, member_id, state, award_value, coin_name, recommend_value from node_task_log + + + + + + + + + + insert into node_task_log + + create_time, + update_time, + flag, + task_id, + member_id, + state, + award_value, + coin_name, + recommend_value, + + + #{createTime}, + #{updateTime}, + #{flag}, + #{taskId}, + #{memberId}, + #{state}, + #{awardValue}, + #{coinName}, + #{recommendValue}, + + + + + update node_task_log + + create_time = #{createTime}, + update_time = #{updateTime}, + flag = #{flag}, + task_id = #{taskId}, + member_id = #{memberId}, + state = #{state}, + award_value = #{awardValue}, + coin_name = #{coinName}, + recommend_value = #{recommendValue}, + + where id = #{id} + + + + delete from node_task_log where id in + + #{id} + + + + \ No newline at end of file diff --git a/alive-server/src/main/resources/mapper/system/NodeTaskMapper.xml b/alive-server/src/main/resources/mapper/system/NodeTaskMapper.xml new file mode 100644 index 0000000..a228de3 --- /dev/null +++ b/alive-server/src/main/resources/mapper/system/NodeTaskMapper.xml @@ -0,0 +1,109 @@ + + + + + + + + + + + + + + + + + + + select id, create_time, update_time, flag, type, title, award_value, recommend_value, type2_target, coin_id from node_task + + + + + + + + + + insert into node_task + + create_time, + update_time, + flag, + type, + title, + award_value, + recommend_value, + type2_target, + coin_id, + + + #{createTime}, + #{updateTime}, + #{flag}, + #{type}, + #{title}, + #{awardValue}, + #{recommendValue}, + #{type2Target}, + #{coinId}, + + + + + update node_task + + create_time = #{createTime}, + update_time = #{updateTime}, + flag = #{flag}, + type = #{type}, + title = #{title}, + award_value = #{awardValue}, + recommend_value = #{recommendValue}, + type2_target = #{type2Target}, + coin_id = #{coinId}, + + where id = #{id} + + + + delete from node_task where id in + + #{id} + + + + \ No newline at end of file diff --git a/alive-server/src/main/resources/mapper/system/NoticeMapper.xml b/alive-server/src/main/resources/mapper/system/NoticeMapper.xml new file mode 100644 index 0000000..15b2aa4 --- /dev/null +++ b/alive-server/src/main/resources/mapper/system/NoticeMapper.xml @@ -0,0 +1,95 @@ + + + + + + + + + + + + + + + + + select id, title, content, is_top, create_time, create_by, update_time, update_by from notice + + + + + + + + + + insert into notice + + id, + title, + content, + is_top, + create_time, + create_by, + update_time, + update_by, + + + #{id}, + #{title}, + #{content}, + #{isTop}, + #{createTime}, + #{createBy}, + #{updateTime}, + #{updateBy}, + + + + + update notice + + title = #{title}, + content = #{content}, + is_top = #{isTop}, + create_time = #{createTime}, + create_by = #{createBy}, + update_time = #{updateTime}, + update_by = #{updateBy}, + + where id = #{id} + + + + delete from notice where id in + + #{id} + + + + \ No newline at end of file diff --git a/alive-server/src/main/resources/mapper/system/PayCoinLogMapper.xml b/alive-server/src/main/resources/mapper/system/PayCoinLogMapper.xml new file mode 100644 index 0000000..e4656ea --- /dev/null +++ b/alive-server/src/main/resources/mapper/system/PayCoinLogMapper.xml @@ -0,0 +1,133 @@ + + + + + + + + + + + + + + + + + + + + + + + select id, create_time, update_time, member_id, address, coin_id, coin_name, pay_usdt, amount, unit_price, status, hash, order_number, illustrate from pay_coin_log + + + + + + + + + + insert into pay_coin_log + + create_time, + update_time, + member_id, + address, + coin_id, + coin_name, + pay_usdt, + amount, + unit_price, + status, + hash, + order_number, + illustrate, + + + #{createTime}, + #{updateTime}, + #{memberId}, + #{address}, + #{coinId}, + #{coinName}, + #{payUsdt}, + #{amount}, + #{unitPrice}, + #{status}, + #{hash}, + #{orderNumber}, + #{illustrate}, + + + + + update pay_coin_log + + create_time = #{createTime}, + update_time = #{updateTime}, + member_id = #{memberId}, + address = #{address}, + coin_id = #{coinId}, + coin_name = #{coinName}, + pay_usdt = #{payUsdt}, + amount = #{amount}, + unit_price = #{unitPrice}, + status = #{status}, + hash = #{hash}, + order_number = #{orderNumber}, + illustrate = #{illustrate}, + + where id = #{id} + + + + delete from pay_coin_log where id in + + #{id} + + + + \ No newline at end of file diff --git a/alive-server/src/main/resources/mapper/system/TConfigMapper.xml b/alive-server/src/main/resources/mapper/system/TConfigMapper.xml new file mode 100644 index 0000000..7d90127 --- /dev/null +++ b/alive-server/src/main/resources/mapper/system/TConfigMapper.xml @@ -0,0 +1,93 @@ + + + + + + + + + + + + + + + + + select id, create_time, create_by, update_time, update_by, node_key, node_value, node_name from t_config + + + + + + + + + + insert into t_config + + create_time, + create_by, + update_time, + update_by, + node_key, + node_value, + node_name, + + + #{createTime}, + #{createBy}, + #{updateTime}, + #{updateBy}, + #{nodeKey}, + #{nodeValue}, + #{nodeName}, + + + + + update t_config + + create_time = #{createTime}, + create_by = #{createBy}, + update_time = #{updateTime}, + update_by = #{updateBy}, + node_key = #{nodeKey}, + node_value = #{nodeValue}, + node_name = #{nodeName}, + + where id = #{id} + + + + delete from t_config where id in + + #{id} + + + + \ No newline at end of file diff --git a/alive-server/src/main/resources/mapper/system/TMemberMapper.xml b/alive-server/src/main/resources/mapper/system/TMemberMapper.xml new file mode 100644 index 0000000..a7ed244 --- /dev/null +++ b/alive-server/src/main/resources/mapper/system/TMemberMapper.xml @@ -0,0 +1,221 @@ + + + + + + + + + + + + + + + + + + + + + + + + + select id, create_time, update_time, account,top_user, account_type, refer_id, all_pid, password_login, password_pay, share_code, uid, level, min_level, share_num, team_num from t_member + + + + + + + + + + + + + + + + + + + + + insert into t_member + + create_time, + update_time, + account, + account_type, + refer_id, + all_pid, + password_login, + password_pay, + share_code, + uid, + level, + min_level, + share_num, + team_num, + + + #{createTime}, + #{updateTime}, + #{account}, + #{accountType}, + #{referId}, + #{allPid}, + #{passwordLogin}, + #{passwordPay}, + #{shareCode}, + #{uid}, + #{level}, + #{minLevel}, + #{shareNum}, + #{teamNum}, + + + + + update t_member + + create_time = #{createTime}, + update_time = #{updateTime}, + account = #{account}, + account_type = #{accountType}, + refer_id = #{referId}, + all_pid = #{allPid}, + password_login = #{passwordLogin}, + password_pay = #{passwordPay}, + share_code = #{shareCode}, + uid = #{uid}, + level = #{level}, + min_level = #{minLevel}, + share_num = #{shareNum}, + team_num = #{teamNum}, + top_user = #{topUser}, + + where id = #{id} + + + + delete from t_member where id in + + #{id} + + + + + + + + \ No newline at end of file diff --git a/alive-server/src/main/resources/mapper/system/TMemberWalletLogMapper.xml b/alive-server/src/main/resources/mapper/system/TMemberWalletLogMapper.xml new file mode 100644 index 0000000..3a626ca --- /dev/null +++ b/alive-server/src/main/resources/mapper/system/TMemberWalletLogMapper.xml @@ -0,0 +1,170 @@ + + + + + + + + + + + + + + + + + + + + + + select id, create_time, update_time, flag, member_id, wallet_id, type, coin_id, op_type, op_remark, op_value, op_before, op_after, ext_remark from t_member_wallet_log + + + + + + + + + + + + insert into t_member_wallet_log + + create_time, + update_time, + flag, + member_id, + wallet_id, + type, + coin_id, + op_type, + op_remark, + op_value, + op_before, + op_after, + ext_remark, + + + #{createTime}, + #{updateTime}, + #{flag}, + #{memberId}, + #{walletId}, + #{type}, + #{coinId}, + #{opType}, + #{opRemark}, + #{opValue}, + #{opBefore}, + #{opAfter}, + #{extRemark}, + + + + + update t_member_wallet_log + + create_time = #{createTime}, + update_time = #{updateTime}, + flag = #{flag}, + member_id = #{memberId}, + wallet_id = #{walletId}, + type = #{type}, + coin_id = #{coinId}, + op_type = #{opType}, + op_remark = #{opRemark}, + op_value = #{opValue}, + op_before = #{opBefore}, + op_after = #{opAfter}, + ext_remark = #{extRemark}, + + where id = #{id} + + + + delete from t_member_wallet_log where id in + + #{id} + + + + \ No newline at end of file diff --git a/alive-server/src/main/resources/mapper/system/TMemberWalletMapper.xml b/alive-server/src/main/resources/mapper/system/TMemberWalletMapper.xml new file mode 100644 index 0000000..c8eaaa1 --- /dev/null +++ b/alive-server/src/main/resources/mapper/system/TMemberWalletMapper.xml @@ -0,0 +1,98 @@ + + + + + + + + + + + + + + + + select id, create_time, update_time, flag, member_id, coin_id, balance, frozen from t_member_wallet + + + + + + + + + + insert into t_member_wallet + + create_time, + update_time, + flag, + member_id, + coin_id, + balance, + frozen, + + + #{createTime}, + #{updateTime}, + #{flag}, + #{memberId}, + #{coinId}, + #{balance}, + #{frozen}, + + + + + update t_member_wallet + + create_time = #{createTime}, + update_time = #{updateTime}, + flag = #{flag}, + member_id = #{memberId}, + coin_id = #{coinId}, + balance = #{balance}, + frozen = #{frozen}, + + where id = #{id} + + + + delete from t_member_wallet where id in + + #{id} + + + + \ No newline at end of file diff --git a/alive-server/src/main/resources/mapper/system/UserMapper.xml b/alive-server/src/main/resources/mapper/system/UserMapper.xml new file mode 100644 index 0000000..785ff00 --- /dev/null +++ b/alive-server/src/main/resources/mapper/system/UserMapper.xml @@ -0,0 +1,129 @@ + + + + + + + + + + + + + + + + + + + + + + + select id, create_time, create_by, update_time, update_by, flag, name, address, direct_user_id, parent_address, all_parent_id, valid, img, role_img, from fai_user + + + + + + + + + + insert into fai_user + + create_time, + create_by, + update_time, + update_by, + flag, + name, + address, + direct_user_id, + parent_address, + all_parent_id, + valid, + img, + role_img, + + + #{createTime}, + #{createBy}, + #{updateTime}, + #{updateBy}, + #{flag}, + #{name}, + #{address}, + #{directUserId}, + #{parentAddress}, + #{allParentId}, + #{valid}, + #{img}, + #{roleImg}, + + + + + update fai_user + + create_time = #{createTime}, + create_by = #{createBy}, + update_time = #{updateTime}, + update_by = #{updateBy}, + flag = #{flag}, + name = #{name}, + address = #{address}, + direct_user_id = #{directUserId}, + parent_address = #{parentAddress}, + all_parent_id = #{allParentId}, + valid = #{valid}, + img = #{img}, + role_img = #{roleImg}, + + where id = #{id} + + + + delete from fai_user where id in + + #{id} + + + + \ No newline at end of file diff --git a/alive-server/src/main/resources/mapper/system/UserPasswordMapper.xml b/alive-server/src/main/resources/mapper/system/UserPasswordMapper.xml new file mode 100644 index 0000000..47c1f77 --- /dev/null +++ b/alive-server/src/main/resources/mapper/system/UserPasswordMapper.xml @@ -0,0 +1,99 @@ + + + + + + + + + + + + + + + + + + select id, user_name, password, create_by,address, create_time, update_by, update_time, remark from sys_user_password + + + + + + + + + + + + insert into sys_user_password + + user_name, + password, + create_by, + create_time, + update_by, + update_time, + remark, + address, + + + #{userName}, + #{password}, + #{createBy}, + #{createTime}, + #{updateBy}, + #{updateTime}, + #{remark}, + #{address}, + + + + + update sys_user_password + + user_name = #{userName}, + password = #{password}, + create_by = #{createBy}, + create_time = #{createTime}, + update_by = #{updateBy}, + update_time = #{updateTime}, + remark = #{remark}, + address = #{address}, + + where id = #{id} + + + + delete from sys_user_password where id in + + #{id} + + + + \ No newline at end of file diff --git a/alive-server/target/alive-server-4.7.2.jar b/alive-server/target/alive-server-4.7.2.jar new file mode 100644 index 0000000..5c9ba3d Binary files /dev/null and b/alive-server/target/alive-server-4.7.2.jar differ diff --git a/alive-server/target/classes/com/ruoyi/system/domain/ActivityConfig.class b/alive-server/target/classes/com/ruoyi/system/domain/ActivityConfig.class new file mode 100644 index 0000000..a5b3135 Binary files /dev/null and b/alive-server/target/classes/com/ruoyi/system/domain/ActivityConfig.class differ diff --git a/alive-server/target/classes/com/ruoyi/system/domain/ActivityLog.class b/alive-server/target/classes/com/ruoyi/system/domain/ActivityLog.class new file mode 100644 index 0000000..bb2bed6 Binary files /dev/null and b/alive-server/target/classes/com/ruoyi/system/domain/ActivityLog.class differ diff --git a/alive-server/target/classes/com/ruoyi/system/domain/ActivityStatistics.class b/alive-server/target/classes/com/ruoyi/system/domain/ActivityStatistics.class new file mode 100644 index 0000000..7c6c9b9 Binary files /dev/null and b/alive-server/target/classes/com/ruoyi/system/domain/ActivityStatistics.class differ diff --git a/alive-server/target/classes/com/ruoyi/system/domain/CoinConfig.class b/alive-server/target/classes/com/ruoyi/system/domain/CoinConfig.class new file mode 100644 index 0000000..9a748aa Binary files /dev/null and b/alive-server/target/classes/com/ruoyi/system/domain/CoinConfig.class differ diff --git a/alive-server/target/classes/com/ruoyi/system/domain/Node.class b/alive-server/target/classes/com/ruoyi/system/domain/Node.class new file mode 100644 index 0000000..0dca117 Binary files /dev/null and b/alive-server/target/classes/com/ruoyi/system/domain/Node.class differ diff --git a/alive-server/target/classes/com/ruoyi/system/domain/NodeAwardSetting.class b/alive-server/target/classes/com/ruoyi/system/domain/NodeAwardSetting.class new file mode 100644 index 0000000..6ac228d Binary files /dev/null and b/alive-server/target/classes/com/ruoyi/system/domain/NodeAwardSetting.class differ diff --git a/alive-server/target/classes/com/ruoyi/system/domain/NodeBuyLog.class b/alive-server/target/classes/com/ruoyi/system/domain/NodeBuyLog.class new file mode 100644 index 0000000..69ed190 Binary files /dev/null and b/alive-server/target/classes/com/ruoyi/system/domain/NodeBuyLog.class differ diff --git a/alive-server/target/classes/com/ruoyi/system/domain/NodePriceConfig.class b/alive-server/target/classes/com/ruoyi/system/domain/NodePriceConfig.class new file mode 100644 index 0000000..6aa3242 Binary files /dev/null and b/alive-server/target/classes/com/ruoyi/system/domain/NodePriceConfig.class differ diff --git a/alive-server/target/classes/com/ruoyi/system/domain/NodeSetting.class b/alive-server/target/classes/com/ruoyi/system/domain/NodeSetting.class new file mode 100644 index 0000000..12f12d8 Binary files /dev/null and b/alive-server/target/classes/com/ruoyi/system/domain/NodeSetting.class differ diff --git a/alive-server/target/classes/com/ruoyi/system/domain/NodeTask.class b/alive-server/target/classes/com/ruoyi/system/domain/NodeTask.class new file mode 100644 index 0000000..e34d0fa Binary files /dev/null and b/alive-server/target/classes/com/ruoyi/system/domain/NodeTask.class differ diff --git a/alive-server/target/classes/com/ruoyi/system/domain/NodeTaskLog.class b/alive-server/target/classes/com/ruoyi/system/domain/NodeTaskLog.class new file mode 100644 index 0000000..d632e19 Binary files /dev/null and b/alive-server/target/classes/com/ruoyi/system/domain/NodeTaskLog.class differ diff --git a/alive-server/target/classes/com/ruoyi/system/domain/Notice.class b/alive-server/target/classes/com/ruoyi/system/domain/Notice.class new file mode 100644 index 0000000..3ab589d Binary files /dev/null and b/alive-server/target/classes/com/ruoyi/system/domain/Notice.class differ diff --git a/alive-server/target/classes/com/ruoyi/system/domain/PayCoinLog.class b/alive-server/target/classes/com/ruoyi/system/domain/PayCoinLog.class new file mode 100644 index 0000000..7eaeff7 Binary files /dev/null and b/alive-server/target/classes/com/ruoyi/system/domain/PayCoinLog.class differ diff --git a/alive-server/target/classes/com/ruoyi/system/domain/TConfig.class b/alive-server/target/classes/com/ruoyi/system/domain/TConfig.class new file mode 100644 index 0000000..dc75ed9 Binary files /dev/null and b/alive-server/target/classes/com/ruoyi/system/domain/TConfig.class differ diff --git a/alive-server/target/classes/com/ruoyi/system/domain/TMember.class b/alive-server/target/classes/com/ruoyi/system/domain/TMember.class new file mode 100644 index 0000000..d50cae5 Binary files /dev/null and b/alive-server/target/classes/com/ruoyi/system/domain/TMember.class differ diff --git a/alive-server/target/classes/com/ruoyi/system/domain/TMemberWallet.class b/alive-server/target/classes/com/ruoyi/system/domain/TMemberWallet.class new file mode 100644 index 0000000..a28ba01 Binary files /dev/null and b/alive-server/target/classes/com/ruoyi/system/domain/TMemberWallet.class differ diff --git a/alive-server/target/classes/com/ruoyi/system/domain/TMemberWalletLog.class b/alive-server/target/classes/com/ruoyi/system/domain/TMemberWalletLog.class new file mode 100644 index 0000000..dea6b61 Binary files /dev/null and b/alive-server/target/classes/com/ruoyi/system/domain/TMemberWalletLog.class differ diff --git a/alive-server/target/classes/com/ruoyi/system/domain/User.class b/alive-server/target/classes/com/ruoyi/system/domain/User.class new file mode 100644 index 0000000..9bb3aa1 Binary files /dev/null and b/alive-server/target/classes/com/ruoyi/system/domain/User.class differ diff --git a/alive-server/target/classes/com/ruoyi/system/domain/UserPassword.class b/alive-server/target/classes/com/ruoyi/system/domain/UserPassword.class new file mode 100644 index 0000000..9eac8d7 Binary files /dev/null and b/alive-server/target/classes/com/ruoyi/system/domain/UserPassword.class differ diff --git a/alive-server/target/classes/com/ruoyi/system/domain/vo/BaseEnum.class b/alive-server/target/classes/com/ruoyi/system/domain/vo/BaseEnum.class new file mode 100644 index 0000000..19f3230 Binary files /dev/null and b/alive-server/target/classes/com/ruoyi/system/domain/vo/BaseEnum.class differ diff --git a/alive-server/target/classes/com/ruoyi/system/domain/vo/InviteResp.class b/alive-server/target/classes/com/ruoyi/system/domain/vo/InviteResp.class new file mode 100644 index 0000000..f13eeab Binary files /dev/null and b/alive-server/target/classes/com/ruoyi/system/domain/vo/InviteResp.class differ diff --git a/alive-server/target/classes/com/ruoyi/system/domain/vo/UserBoxResp.class b/alive-server/target/classes/com/ruoyi/system/domain/vo/UserBoxResp.class new file mode 100644 index 0000000..776aea6 Binary files /dev/null and b/alive-server/target/classes/com/ruoyi/system/domain/vo/UserBoxResp.class differ diff --git a/alive-server/target/classes/com/ruoyi/system/domain/vo/UserEquipgeResp.class b/alive-server/target/classes/com/ruoyi/system/domain/vo/UserEquipgeResp.class new file mode 100644 index 0000000..edf7139 Binary files /dev/null and b/alive-server/target/classes/com/ruoyi/system/domain/vo/UserEquipgeResp.class differ diff --git a/alive-server/target/classes/com/ruoyi/system/domain/vo/WalletOperateTypeEnum.class b/alive-server/target/classes/com/ruoyi/system/domain/vo/WalletOperateTypeEnum.class new file mode 100644 index 0000000..3de81e5 Binary files /dev/null and b/alive-server/target/classes/com/ruoyi/system/domain/vo/WalletOperateTypeEnum.class differ diff --git a/alive-server/target/classes/com/ruoyi/system/mapper/ActivityConfigMapper.class b/alive-server/target/classes/com/ruoyi/system/mapper/ActivityConfigMapper.class new file mode 100644 index 0000000..838f9bd Binary files /dev/null and b/alive-server/target/classes/com/ruoyi/system/mapper/ActivityConfigMapper.class differ diff --git a/alive-server/target/classes/com/ruoyi/system/mapper/ActivityLogMapper.class b/alive-server/target/classes/com/ruoyi/system/mapper/ActivityLogMapper.class new file mode 100644 index 0000000..e338e8a Binary files /dev/null and b/alive-server/target/classes/com/ruoyi/system/mapper/ActivityLogMapper.class differ diff --git a/alive-server/target/classes/com/ruoyi/system/mapper/ActivityStatisticsMapper.class b/alive-server/target/classes/com/ruoyi/system/mapper/ActivityStatisticsMapper.class new file mode 100644 index 0000000..7603760 Binary files /dev/null and b/alive-server/target/classes/com/ruoyi/system/mapper/ActivityStatisticsMapper.class differ diff --git a/alive-server/target/classes/com/ruoyi/system/mapper/CoinConfigMapper.class b/alive-server/target/classes/com/ruoyi/system/mapper/CoinConfigMapper.class new file mode 100644 index 0000000..c07d7e7 Binary files /dev/null and b/alive-server/target/classes/com/ruoyi/system/mapper/CoinConfigMapper.class differ diff --git a/alive-server/target/classes/com/ruoyi/system/mapper/NodeAwardSettingMapper.class b/alive-server/target/classes/com/ruoyi/system/mapper/NodeAwardSettingMapper.class new file mode 100644 index 0000000..f50e667 Binary files /dev/null and b/alive-server/target/classes/com/ruoyi/system/mapper/NodeAwardSettingMapper.class differ diff --git a/alive-server/target/classes/com/ruoyi/system/mapper/NodeBuyLogMapper.class b/alive-server/target/classes/com/ruoyi/system/mapper/NodeBuyLogMapper.class new file mode 100644 index 0000000..e386dd5 Binary files /dev/null and b/alive-server/target/classes/com/ruoyi/system/mapper/NodeBuyLogMapper.class differ diff --git a/alive-server/target/classes/com/ruoyi/system/mapper/NodeMapper.class b/alive-server/target/classes/com/ruoyi/system/mapper/NodeMapper.class new file mode 100644 index 0000000..3847258 Binary files /dev/null and b/alive-server/target/classes/com/ruoyi/system/mapper/NodeMapper.class differ diff --git a/alive-server/target/classes/com/ruoyi/system/mapper/NodePriceConfigMapper.class b/alive-server/target/classes/com/ruoyi/system/mapper/NodePriceConfigMapper.class new file mode 100644 index 0000000..c40bba9 Binary files /dev/null and b/alive-server/target/classes/com/ruoyi/system/mapper/NodePriceConfigMapper.class differ diff --git a/alive-server/target/classes/com/ruoyi/system/mapper/NodeSettingMapper.class b/alive-server/target/classes/com/ruoyi/system/mapper/NodeSettingMapper.class new file mode 100644 index 0000000..ea9fcf5 Binary files /dev/null and b/alive-server/target/classes/com/ruoyi/system/mapper/NodeSettingMapper.class differ diff --git a/alive-server/target/classes/com/ruoyi/system/mapper/NodeTaskLogMapper.class b/alive-server/target/classes/com/ruoyi/system/mapper/NodeTaskLogMapper.class new file mode 100644 index 0000000..4fabd76 Binary files /dev/null and b/alive-server/target/classes/com/ruoyi/system/mapper/NodeTaskLogMapper.class differ diff --git a/alive-server/target/classes/com/ruoyi/system/mapper/NodeTaskMapper.class b/alive-server/target/classes/com/ruoyi/system/mapper/NodeTaskMapper.class new file mode 100644 index 0000000..d0fedd1 Binary files /dev/null and b/alive-server/target/classes/com/ruoyi/system/mapper/NodeTaskMapper.class differ diff --git a/alive-server/target/classes/com/ruoyi/system/mapper/NoticeMapper.class b/alive-server/target/classes/com/ruoyi/system/mapper/NoticeMapper.class new file mode 100644 index 0000000..de4cd74 Binary files /dev/null and b/alive-server/target/classes/com/ruoyi/system/mapper/NoticeMapper.class differ diff --git a/alive-server/target/classes/com/ruoyi/system/mapper/PayCoinLogMapper.class b/alive-server/target/classes/com/ruoyi/system/mapper/PayCoinLogMapper.class new file mode 100644 index 0000000..ad40c0f Binary files /dev/null and b/alive-server/target/classes/com/ruoyi/system/mapper/PayCoinLogMapper.class differ diff --git a/alive-server/target/classes/com/ruoyi/system/mapper/TConfigMapper.class b/alive-server/target/classes/com/ruoyi/system/mapper/TConfigMapper.class new file mode 100644 index 0000000..318dee7 Binary files /dev/null and b/alive-server/target/classes/com/ruoyi/system/mapper/TConfigMapper.class differ diff --git a/alive-server/target/classes/com/ruoyi/system/mapper/TMemberMapper.class b/alive-server/target/classes/com/ruoyi/system/mapper/TMemberMapper.class new file mode 100644 index 0000000..7788331 Binary files /dev/null and b/alive-server/target/classes/com/ruoyi/system/mapper/TMemberMapper.class differ diff --git a/alive-server/target/classes/com/ruoyi/system/mapper/TMemberWalletLogMapper.class b/alive-server/target/classes/com/ruoyi/system/mapper/TMemberWalletLogMapper.class new file mode 100644 index 0000000..06e7d1f Binary files /dev/null and b/alive-server/target/classes/com/ruoyi/system/mapper/TMemberWalletLogMapper.class differ diff --git a/alive-server/target/classes/com/ruoyi/system/mapper/TMemberWalletMapper.class b/alive-server/target/classes/com/ruoyi/system/mapper/TMemberWalletMapper.class new file mode 100644 index 0000000..a58b964 Binary files /dev/null and b/alive-server/target/classes/com/ruoyi/system/mapper/TMemberWalletMapper.class differ diff --git a/alive-server/target/classes/com/ruoyi/system/mapper/UserMapper.class b/alive-server/target/classes/com/ruoyi/system/mapper/UserMapper.class new file mode 100644 index 0000000..998fe3e Binary files /dev/null and b/alive-server/target/classes/com/ruoyi/system/mapper/UserMapper.class differ diff --git a/alive-server/target/classes/com/ruoyi/system/mapper/UserPasswordMapper.class b/alive-server/target/classes/com/ruoyi/system/mapper/UserPasswordMapper.class new file mode 100644 index 0000000..0717459 Binary files /dev/null and b/alive-server/target/classes/com/ruoyi/system/mapper/UserPasswordMapper.class differ diff --git a/alive-server/target/classes/com/ruoyi/system/service/ActivityConfigService.class b/alive-server/target/classes/com/ruoyi/system/service/ActivityConfigService.class new file mode 100644 index 0000000..eba9236 Binary files /dev/null and b/alive-server/target/classes/com/ruoyi/system/service/ActivityConfigService.class differ diff --git a/alive-server/target/classes/com/ruoyi/system/service/ActivityLogService.class b/alive-server/target/classes/com/ruoyi/system/service/ActivityLogService.class new file mode 100644 index 0000000..cd0f63f Binary files /dev/null and b/alive-server/target/classes/com/ruoyi/system/service/ActivityLogService.class differ diff --git a/alive-server/target/classes/com/ruoyi/system/service/ActivityStatisticsService.class b/alive-server/target/classes/com/ruoyi/system/service/ActivityStatisticsService.class new file mode 100644 index 0000000..8020e2e Binary files /dev/null and b/alive-server/target/classes/com/ruoyi/system/service/ActivityStatisticsService.class differ diff --git a/alive-server/target/classes/com/ruoyi/system/service/CoinConfigService.class b/alive-server/target/classes/com/ruoyi/system/service/CoinConfigService.class new file mode 100644 index 0000000..da1e817 Binary files /dev/null and b/alive-server/target/classes/com/ruoyi/system/service/CoinConfigService.class differ diff --git a/alive-server/target/classes/com/ruoyi/system/service/NodeAwardSettingService.class b/alive-server/target/classes/com/ruoyi/system/service/NodeAwardSettingService.class new file mode 100644 index 0000000..1f944ce Binary files /dev/null and b/alive-server/target/classes/com/ruoyi/system/service/NodeAwardSettingService.class differ diff --git a/alive-server/target/classes/com/ruoyi/system/service/NodeBuyLogService.class b/alive-server/target/classes/com/ruoyi/system/service/NodeBuyLogService.class new file mode 100644 index 0000000..4acc218 Binary files /dev/null and b/alive-server/target/classes/com/ruoyi/system/service/NodeBuyLogService.class differ diff --git a/alive-server/target/classes/com/ruoyi/system/service/NodePriceConfigService.class b/alive-server/target/classes/com/ruoyi/system/service/NodePriceConfigService.class new file mode 100644 index 0000000..7ff734e Binary files /dev/null and b/alive-server/target/classes/com/ruoyi/system/service/NodePriceConfigService.class differ diff --git a/alive-server/target/classes/com/ruoyi/system/service/NodeService.class b/alive-server/target/classes/com/ruoyi/system/service/NodeService.class new file mode 100644 index 0000000..dd8103b Binary files /dev/null and b/alive-server/target/classes/com/ruoyi/system/service/NodeService.class differ diff --git a/alive-server/target/classes/com/ruoyi/system/service/NodeSettingService.class b/alive-server/target/classes/com/ruoyi/system/service/NodeSettingService.class new file mode 100644 index 0000000..00d159c Binary files /dev/null and b/alive-server/target/classes/com/ruoyi/system/service/NodeSettingService.class differ diff --git a/alive-server/target/classes/com/ruoyi/system/service/NodeTaskLogService.class b/alive-server/target/classes/com/ruoyi/system/service/NodeTaskLogService.class new file mode 100644 index 0000000..c813918 Binary files /dev/null and b/alive-server/target/classes/com/ruoyi/system/service/NodeTaskLogService.class differ diff --git a/alive-server/target/classes/com/ruoyi/system/service/NodeTaskService.class b/alive-server/target/classes/com/ruoyi/system/service/NodeTaskService.class new file mode 100644 index 0000000..c4de494 Binary files /dev/null and b/alive-server/target/classes/com/ruoyi/system/service/NodeTaskService.class differ diff --git a/alive-server/target/classes/com/ruoyi/system/service/NoticeService.class b/alive-server/target/classes/com/ruoyi/system/service/NoticeService.class new file mode 100644 index 0000000..403584b Binary files /dev/null and b/alive-server/target/classes/com/ruoyi/system/service/NoticeService.class differ diff --git a/alive-server/target/classes/com/ruoyi/system/service/PayCoinLogService.class b/alive-server/target/classes/com/ruoyi/system/service/PayCoinLogService.class new file mode 100644 index 0000000..feeb0fe Binary files /dev/null and b/alive-server/target/classes/com/ruoyi/system/service/PayCoinLogService.class differ diff --git a/alive-server/target/classes/com/ruoyi/system/service/TConfigService.class b/alive-server/target/classes/com/ruoyi/system/service/TConfigService.class new file mode 100644 index 0000000..6b45725 Binary files /dev/null and b/alive-server/target/classes/com/ruoyi/system/service/TConfigService.class differ diff --git a/alive-server/target/classes/com/ruoyi/system/service/TMemberService.class b/alive-server/target/classes/com/ruoyi/system/service/TMemberService.class new file mode 100644 index 0000000..543cb8f Binary files /dev/null and b/alive-server/target/classes/com/ruoyi/system/service/TMemberService.class differ diff --git a/alive-server/target/classes/com/ruoyi/system/service/TMemberWalletLogService.class b/alive-server/target/classes/com/ruoyi/system/service/TMemberWalletLogService.class new file mode 100644 index 0000000..108b1f3 Binary files /dev/null and b/alive-server/target/classes/com/ruoyi/system/service/TMemberWalletLogService.class differ diff --git a/alive-server/target/classes/com/ruoyi/system/service/TMemberWalletService.class b/alive-server/target/classes/com/ruoyi/system/service/TMemberWalletService.class new file mode 100644 index 0000000..8fffbb9 Binary files /dev/null and b/alive-server/target/classes/com/ruoyi/system/service/TMemberWalletService.class differ diff --git a/alive-server/target/classes/com/ruoyi/system/service/UserPasswordService.class b/alive-server/target/classes/com/ruoyi/system/service/UserPasswordService.class new file mode 100644 index 0000000..6ea795a Binary files /dev/null and b/alive-server/target/classes/com/ruoyi/system/service/UserPasswordService.class differ diff --git a/alive-server/target/classes/com/ruoyi/system/service/UserService.class b/alive-server/target/classes/com/ruoyi/system/service/UserService.class new file mode 100644 index 0000000..7fbbdea Binary files /dev/null and b/alive-server/target/classes/com/ruoyi/system/service/UserService.class differ diff --git a/alive-server/target/classes/com/ruoyi/system/utils/HttpUtils.class b/alive-server/target/classes/com/ruoyi/system/utils/HttpUtils.class new file mode 100644 index 0000000..2c28ea8 Binary files /dev/null and b/alive-server/target/classes/com/ruoyi/system/utils/HttpUtils.class differ diff --git a/alive-server/target/classes/com/ruoyi/system/utils/NumberUtil.class b/alive-server/target/classes/com/ruoyi/system/utils/NumberUtil.class new file mode 100644 index 0000000..5ad94f0 Binary files /dev/null and b/alive-server/target/classes/com/ruoyi/system/utils/NumberUtil.class differ diff --git a/alive-server/target/classes/com/ruoyi/system/utils/Translate.class b/alive-server/target/classes/com/ruoyi/system/utils/Translate.class new file mode 100644 index 0000000..c62db3e Binary files /dev/null and b/alive-server/target/classes/com/ruoyi/system/utils/Translate.class differ diff --git a/alive-server/target/classes/mapper/system/ActivityConfigMapper.xml b/alive-server/target/classes/mapper/system/ActivityConfigMapper.xml new file mode 100644 index 0000000..f8bdf8f --- /dev/null +++ b/alive-server/target/classes/mapper/system/ActivityConfigMapper.xml @@ -0,0 +1,145 @@ + + + + + + + + + + + + + + + + + + + + + + + + select id, create_time, update_time, flag, title, title_content, activity_img, activity_url, state, amount, superior_amount, activity_number, category, type, mark from activity_config + + + + + + + + + + + + + insert into activity_config + + create_time, + update_time, + flag, + title, + title_content, + activity_img, + activity_url, + state, + amount, + superior_amount, + activity_number, + category, + type, + mark, + + + #{createTime}, + #{updateTime}, + #{flag}, + #{title}, + #{titleContent}, + #{activityImg}, + #{activityUrl}, + #{state}, + #{amount}, + #{superiorAmount}, + #{activityNumber}, + #{category}, + #{type}, + #{mark}, + + + + + update activity_config + + create_time = #{createTime}, + update_time = #{updateTime}, + flag = #{flag}, + title = #{title}, + title_content = #{titleContent}, + activity_img = #{activityImg}, + activity_url = #{activityUrl}, + state = #{state}, + amount = #{amount}, + superior_amount = #{superiorAmount}, + activity_number = #{activityNumber}, + category = #{category}, + type = #{type}, + mark = #{mark}, + + where id = #{id} + + + + delete from activity_config where id in + + #{id} + + + + \ No newline at end of file diff --git a/alive-server/target/classes/mapper/system/ActivityLogMapper.xml b/alive-server/target/classes/mapper/system/ActivityLogMapper.xml new file mode 100644 index 0000000..4dfe336 --- /dev/null +++ b/alive-server/target/classes/mapper/system/ActivityLogMapper.xml @@ -0,0 +1,145 @@ + + + + + + + + + + + + + + + + + + + + + + + + + select id, create_time, update_time, flag, activity_config_id, address, superior_address, title, type, amount, superior_amount, end_time, config_type, mark, hashs, transfer_type from activity_log + + + + + + + + + + insert into activity_log + + create_time, + update_time, + flag, + activity_config_id, + address, + superior_address, + title, + type, + amount, + superior_amount, + end_time, + config_type, + mark, + hashs, + transfer_type, + + + #{createTime}, + #{updateTime}, + #{flag}, + #{activityConfigId}, + #{address}, + #{superiorAddress}, + #{title}, + #{type}, + #{amount}, + #{superiorAmount}, + #{endTime}, + #{configType}, + #{mark}, + #{hashs}, + #{transferType}, + + + + + update activity_log + + create_time = #{createTime}, + update_time = #{updateTime}, + flag = #{flag}, + activity_config_id = #{activityConfigId}, + address = #{address}, + superior_address = #{superiorAddress}, + title = #{title}, + type = #{type}, + amount = #{amount}, + superior_amount = #{superiorAmount}, + end_time = #{endTime}, + config_type = #{configType}, + mark = #{mark}, + hashs = #{hashs}, + transfer_type = #{transferType}, + + where id = #{id} + + + + delete from activity_log where id in + + #{id} + + + + \ No newline at end of file diff --git a/alive-server/target/classes/mapper/system/ActivityStatisticsMapper.xml b/alive-server/target/classes/mapper/system/ActivityStatisticsMapper.xml new file mode 100644 index 0000000..94cf410 --- /dev/null +++ b/alive-server/target/classes/mapper/system/ActivityStatisticsMapper.xml @@ -0,0 +1,85 @@ + + + + + + + + + + + + + + + select id, create_time, update_time, flag, address, amount from activity_statistics + + + + + + + + + + insert into activity_statistics + + create_time, + update_time, + flag, + address, + amount, + + + #{createTime}, + #{updateTime}, + #{flag}, + #{address}, + #{amount}, + + + + + update activity_statistics + + create_time = #{createTime}, + update_time = #{updateTime}, + flag = #{flag}, + address = #{address}, + amount = #{amount}, + + where id = #{id} + + + + delete from activity_statistics where id in + + #{id} + + + + \ No newline at end of file diff --git a/alive-server/target/classes/mapper/system/CoinConfigMapper.xml b/alive-server/target/classes/mapper/system/CoinConfigMapper.xml new file mode 100644 index 0000000..0cf6721 --- /dev/null +++ b/alive-server/target/classes/mapper/system/CoinConfigMapper.xml @@ -0,0 +1,115 @@ + + + + + + + + + + + + + + + + + + + + select id, create_time, update_time, coin_name, state, usdt_price, min_number, max_number, airdrop_number, private_placement, to_private_placement from coin_config + + + + + + + + + + insert into coin_config + + create_time, + update_time, + coin_name, + state, + usdt_price, + min_number, + max_number, + airdrop_number, + private_placement, + to_private_placement, + + + #{createTime}, + #{updateTime}, + #{coinName}, + #{state}, + #{usdtPrice}, + #{minNumber}, + #{maxNumber}, + #{airdropNumber}, + #{privatePlacement}, + #{toPrivatePlacement}, + + + + + update coin_config + + create_time = #{createTime}, + update_time = #{updateTime}, + coin_name = #{coinName}, + state = #{state}, + usdt_price = #{usdtPrice}, + min_number = #{minNumber}, + max_number = #{maxNumber}, + airdrop_number = #{airdropNumber}, + private_placement = #{privatePlacement}, + to_private_placement = #{toPrivatePlacement}, + + where id = #{id} + + + + delete from coin_config where id in + + #{id} + + + + \ No newline at end of file diff --git a/alive-server/target/classes/mapper/system/NodeAwardSettingMapper.xml b/alive-server/target/classes/mapper/system/NodeAwardSettingMapper.xml new file mode 100644 index 0000000..b981813 --- /dev/null +++ b/alive-server/target/classes/mapper/system/NodeAwardSettingMapper.xml @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + select id, create_time, create_by, update_time, update_by, node_setting_id, rebate, rbit_amount, rbit_one, rebate_two, nft_amount, nft_one, nft_two from node_award_setting + + + + + + + + + + insert into node_award_setting + + create_time, + create_by, + update_time, + update_by, + node_setting_id, + rebate, + rbit_amount, + rbit_one, + rebate_two, + nft_amount, + nft_one, + nft_two, + + + #{createTime}, + #{createBy}, + #{updateTime}, + #{updateBy}, + #{nodeSettingId}, + #{rebate}, + #{rbitAmount}, + #{rbitOne}, + #{rebateTwo}, + #{nftAmount}, + #{nftOne}, + #{nftTwo}, + + + + + update node_award_setting + + create_time = #{createTime}, + create_by = #{createBy}, + update_time = #{updateTime}, + update_by = #{updateBy}, + node_setting_id = #{nodeSettingId}, + rebate = #{rebate}, + rbit_amount = #{rbitAmount}, + rbit_one = #{rbitOne}, + rebate_two = #{rebateTwo}, + nft_amount = #{nftAmount}, + nft_one = #{nftOne}, + nft_two = #{nftTwo}, + + where id = #{id} + + + + delete from node_award_setting where id in + + #{id} + + + + \ No newline at end of file diff --git a/alive-server/target/classes/mapper/system/NodeBuyLogMapper.xml b/alive-server/target/classes/mapper/system/NodeBuyLogMapper.xml new file mode 100644 index 0000000..12c86ee --- /dev/null +++ b/alive-server/target/classes/mapper/system/NodeBuyLogMapper.xml @@ -0,0 +1,180 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select id, create_time, create_by, update_time,top_settlement, update_by, wallet_address, recommend_id, indirect_user_id, buy_count, pay_coin, buy_amount, node_setting_id, status, user_id, hash, order_number, input_address, out_address, rebate, rbit_amount, rbit_one, rbit_two, nft_amount, nft_one, nft_two, illustrate from node_buy_log + + + + + + + + + + + + + insert into node_buy_log + + create_time, + create_by, + update_time, + update_by, + wallet_address, + recommend_id, + indirect_user_id, + buy_count, + pay_coin, + buy_amount, + node_setting_id, + status, + user_id, + hash, + order_number, + input_address, + out_address, + rebate, + rbit_amount, + rbit_one, + rbit_two, + nft_amount, + nft_one, + nft_two, + illustrate, + + + #{createTime}, + #{createBy}, + #{updateTime}, + #{updateBy}, + #{walletAddress}, + #{recommendId}, + #{indirectUserId}, + #{buyCount}, + #{payCoin}, + #{buyAmount}, + #{nodeSettingId}, + #{status}, + #{userId}, + #{hash}, + #{orderNumber}, + #{inputAddress}, + #{outAddress}, + #{rebate}, + #{rbitAmount}, + #{rbitOne}, + #{rbitTwo}, + #{nftAmount}, + #{nftOne}, + #{nftTwo}, + #{illustrate}, + + + + + update node_buy_log + + top_settlement = #{topSettlement}, + status = #{status}, + user_id = #{userId}, + hash = #{hash}, + create_time = #{createTime}, + + where id = #{id} + + + + delete from node_buy_log where id in + + #{id} + + + + + update node_buy_log + + top_settlement = 1 + + where id in + + #{id} + + + \ No newline at end of file diff --git a/alive-server/target/classes/mapper/system/NodeMapper.xml b/alive-server/target/classes/mapper/system/NodeMapper.xml new file mode 100644 index 0000000..edee65c --- /dev/null +++ b/alive-server/target/classes/mapper/system/NodeMapper.xml @@ -0,0 +1,102 @@ + + + + + + + + + + + + + + + + + + select id, create_time, create_by, update_time, update_by, buy_coin, buy_amount, buy_number, confirm_time from node + + + + + + + + + + insert into node + + create_time, + create_by, + update_time, + update_by, + buy_coin, + buy_amount, + buy_number, + confirm_time, + + + #{createTime}, + #{createBy}, + #{updateTime}, + #{updateBy}, + #{buyCoin}, + #{buyAmount}, + #{buyNumber}, + #{confirmTime}, + + + + + update node + + create_time = #{createTime}, + create_by = #{createBy}, + update_time = #{updateTime}, + update_by = #{updateBy}, + buy_coin = #{buyCoin}, + buy_amount = #{buyAmount}, + buy_number = #{buyNumber}, + confirm_time = #{confirmTime}, + + where id = #{id} + + + + delete from node where id in + + #{id} + + + + \ No newline at end of file diff --git a/alive-server/target/classes/mapper/system/NodePriceConfigMapper.xml b/alive-server/target/classes/mapper/system/NodePriceConfigMapper.xml new file mode 100644 index 0000000..093f487 --- /dev/null +++ b/alive-server/target/classes/mapper/system/NodePriceConfigMapper.xml @@ -0,0 +1,99 @@ + + + + + + + + + + + + + + + + + + select id, create_time, create_by, update_time, update_by, node_setting_id, start_num, end_num, price from node_price_config + + + + + + + + + + insert into node_price_config + + create_time, + create_by, + update_time, + update_by, + node_setting_id, + start_num, + end_num, + price, + + + #{createTime}, + #{createBy}, + #{updateTime}, + #{updateBy}, + #{nodeSettingId}, + #{startNum}, + #{endNum}, + #{price}, + + + + + update node_price_config + + create_time = #{createTime}, + create_by = #{createBy}, + update_time = #{updateTime}, + update_by = #{updateBy}, + node_setting_id = #{nodeSettingId}, + start_num = #{startNum}, + end_num = #{endNum}, + price = #{price}, + + where id = #{id} + + + + delete from node_price_config where id in + + #{id} + + + + \ No newline at end of file diff --git a/alive-server/target/classes/mapper/system/NodeSettingMapper.xml b/alive-server/target/classes/mapper/system/NodeSettingMapper.xml new file mode 100644 index 0000000..5cf26f4 --- /dev/null +++ b/alive-server/target/classes/mapper/system/NodeSettingMapper.xml @@ -0,0 +1,141 @@ + + + + + + + + + + + + + + + + + + + + + + + + + select id, create_time, create_by, update_time, update_by, buy_coin_name, node_total, node_price, purchase_limit, purchased_count, purchased_amount, status, node_name, illustrate, title, node_grade from node_setting + + + + + + + + + + insert into node_setting + + create_time, + create_by, + update_time, + update_by, + buy_coin_name, + node_total, + node_price, + purchase_limit, + purchased_count, + purchased_amount, + status, + node_name, + illustrate, + title, + node_grade, + + + #{createTime}, + #{createBy}, + #{updateTime}, + #{updateBy}, + #{buyCoinName}, + #{nodeTotal}, + #{nodePrice}, + #{purchaseLimit}, + #{purchasedCount}, + #{purchasedAmount}, + #{status}, + #{nodeName}, + #{illustrate}, + #{title}, + #{nodeGrade}, + + + + + update node_setting + + create_time = #{createTime}, + create_by = #{createBy}, + update_time = #{updateTime}, + update_by = #{updateBy}, + buy_coin_name = #{buyCoinName}, + node_total = #{nodeTotal}, + node_price = #{nodePrice}, + purchase_limit = #{purchaseLimit}, + purchased_count = #{purchasedCount}, + purchased_amount = #{purchasedAmount}, + status = #{status}, + node_name = #{nodeName}, + illustrate = #{illustrate}, + title = #{title}, + node_grade = #{nodeGrade}, + + where id = #{id} + + + + delete from node_setting where id in + + #{id} + + + + \ No newline at end of file diff --git a/alive-server/target/classes/mapper/system/NodeTaskLogMapper.xml b/alive-server/target/classes/mapper/system/NodeTaskLogMapper.xml new file mode 100644 index 0000000..e259092 --- /dev/null +++ b/alive-server/target/classes/mapper/system/NodeTaskLogMapper.xml @@ -0,0 +1,109 @@ + + + + + + + + + + + + + + + + + + + select id, create_time, update_time, flag, task_id, member_id, state, award_value, coin_name, recommend_value from node_task_log + + + + + + + + + + insert into node_task_log + + create_time, + update_time, + flag, + task_id, + member_id, + state, + award_value, + coin_name, + recommend_value, + + + #{createTime}, + #{updateTime}, + #{flag}, + #{taskId}, + #{memberId}, + #{state}, + #{awardValue}, + #{coinName}, + #{recommendValue}, + + + + + update node_task_log + + create_time = #{createTime}, + update_time = #{updateTime}, + flag = #{flag}, + task_id = #{taskId}, + member_id = #{memberId}, + state = #{state}, + award_value = #{awardValue}, + coin_name = #{coinName}, + recommend_value = #{recommendValue}, + + where id = #{id} + + + + delete from node_task_log where id in + + #{id} + + + + \ No newline at end of file diff --git a/alive-server/target/classes/mapper/system/NodeTaskMapper.xml b/alive-server/target/classes/mapper/system/NodeTaskMapper.xml new file mode 100644 index 0000000..a228de3 --- /dev/null +++ b/alive-server/target/classes/mapper/system/NodeTaskMapper.xml @@ -0,0 +1,109 @@ + + + + + + + + + + + + + + + + + + + select id, create_time, update_time, flag, type, title, award_value, recommend_value, type2_target, coin_id from node_task + + + + + + + + + + insert into node_task + + create_time, + update_time, + flag, + type, + title, + award_value, + recommend_value, + type2_target, + coin_id, + + + #{createTime}, + #{updateTime}, + #{flag}, + #{type}, + #{title}, + #{awardValue}, + #{recommendValue}, + #{type2Target}, + #{coinId}, + + + + + update node_task + + create_time = #{createTime}, + update_time = #{updateTime}, + flag = #{flag}, + type = #{type}, + title = #{title}, + award_value = #{awardValue}, + recommend_value = #{recommendValue}, + type2_target = #{type2Target}, + coin_id = #{coinId}, + + where id = #{id} + + + + delete from node_task where id in + + #{id} + + + + \ No newline at end of file diff --git a/alive-server/target/classes/mapper/system/NoticeMapper.xml b/alive-server/target/classes/mapper/system/NoticeMapper.xml new file mode 100644 index 0000000..15b2aa4 --- /dev/null +++ b/alive-server/target/classes/mapper/system/NoticeMapper.xml @@ -0,0 +1,95 @@ + + + + + + + + + + + + + + + + + select id, title, content, is_top, create_time, create_by, update_time, update_by from notice + + + + + + + + + + insert into notice + + id, + title, + content, + is_top, + create_time, + create_by, + update_time, + update_by, + + + #{id}, + #{title}, + #{content}, + #{isTop}, + #{createTime}, + #{createBy}, + #{updateTime}, + #{updateBy}, + + + + + update notice + + title = #{title}, + content = #{content}, + is_top = #{isTop}, + create_time = #{createTime}, + create_by = #{createBy}, + update_time = #{updateTime}, + update_by = #{updateBy}, + + where id = #{id} + + + + delete from notice where id in + + #{id} + + + + \ No newline at end of file diff --git a/alive-server/target/classes/mapper/system/PayCoinLogMapper.xml b/alive-server/target/classes/mapper/system/PayCoinLogMapper.xml new file mode 100644 index 0000000..e4656ea --- /dev/null +++ b/alive-server/target/classes/mapper/system/PayCoinLogMapper.xml @@ -0,0 +1,133 @@ + + + + + + + + + + + + + + + + + + + + + + + select id, create_time, update_time, member_id, address, coin_id, coin_name, pay_usdt, amount, unit_price, status, hash, order_number, illustrate from pay_coin_log + + + + + + + + + + insert into pay_coin_log + + create_time, + update_time, + member_id, + address, + coin_id, + coin_name, + pay_usdt, + amount, + unit_price, + status, + hash, + order_number, + illustrate, + + + #{createTime}, + #{updateTime}, + #{memberId}, + #{address}, + #{coinId}, + #{coinName}, + #{payUsdt}, + #{amount}, + #{unitPrice}, + #{status}, + #{hash}, + #{orderNumber}, + #{illustrate}, + + + + + update pay_coin_log + + create_time = #{createTime}, + update_time = #{updateTime}, + member_id = #{memberId}, + address = #{address}, + coin_id = #{coinId}, + coin_name = #{coinName}, + pay_usdt = #{payUsdt}, + amount = #{amount}, + unit_price = #{unitPrice}, + status = #{status}, + hash = #{hash}, + order_number = #{orderNumber}, + illustrate = #{illustrate}, + + where id = #{id} + + + + delete from pay_coin_log where id in + + #{id} + + + + \ No newline at end of file diff --git a/alive-server/target/classes/mapper/system/TConfigMapper.xml b/alive-server/target/classes/mapper/system/TConfigMapper.xml new file mode 100644 index 0000000..7d90127 --- /dev/null +++ b/alive-server/target/classes/mapper/system/TConfigMapper.xml @@ -0,0 +1,93 @@ + + + + + + + + + + + + + + + + + select id, create_time, create_by, update_time, update_by, node_key, node_value, node_name from t_config + + + + + + + + + + insert into t_config + + create_time, + create_by, + update_time, + update_by, + node_key, + node_value, + node_name, + + + #{createTime}, + #{createBy}, + #{updateTime}, + #{updateBy}, + #{nodeKey}, + #{nodeValue}, + #{nodeName}, + + + + + update t_config + + create_time = #{createTime}, + create_by = #{createBy}, + update_time = #{updateTime}, + update_by = #{updateBy}, + node_key = #{nodeKey}, + node_value = #{nodeValue}, + node_name = #{nodeName}, + + where id = #{id} + + + + delete from t_config where id in + + #{id} + + + + \ No newline at end of file diff --git a/alive-server/target/classes/mapper/system/TMemberMapper.xml b/alive-server/target/classes/mapper/system/TMemberMapper.xml new file mode 100644 index 0000000..a7ed244 --- /dev/null +++ b/alive-server/target/classes/mapper/system/TMemberMapper.xml @@ -0,0 +1,221 @@ + + + + + + + + + + + + + + + + + + + + + + + + + select id, create_time, update_time, account,top_user, account_type, refer_id, all_pid, password_login, password_pay, share_code, uid, level, min_level, share_num, team_num from t_member + + + + + + + + + + + + + + + + + + + + + insert into t_member + + create_time, + update_time, + account, + account_type, + refer_id, + all_pid, + password_login, + password_pay, + share_code, + uid, + level, + min_level, + share_num, + team_num, + + + #{createTime}, + #{updateTime}, + #{account}, + #{accountType}, + #{referId}, + #{allPid}, + #{passwordLogin}, + #{passwordPay}, + #{shareCode}, + #{uid}, + #{level}, + #{minLevel}, + #{shareNum}, + #{teamNum}, + + + + + update t_member + + create_time = #{createTime}, + update_time = #{updateTime}, + account = #{account}, + account_type = #{accountType}, + refer_id = #{referId}, + all_pid = #{allPid}, + password_login = #{passwordLogin}, + password_pay = #{passwordPay}, + share_code = #{shareCode}, + uid = #{uid}, + level = #{level}, + min_level = #{minLevel}, + share_num = #{shareNum}, + team_num = #{teamNum}, + top_user = #{topUser}, + + where id = #{id} + + + + delete from t_member where id in + + #{id} + + + + + + + + \ No newline at end of file diff --git a/alive-server/target/classes/mapper/system/TMemberWalletLogMapper.xml b/alive-server/target/classes/mapper/system/TMemberWalletLogMapper.xml new file mode 100644 index 0000000..3a626ca --- /dev/null +++ b/alive-server/target/classes/mapper/system/TMemberWalletLogMapper.xml @@ -0,0 +1,170 @@ + + + + + + + + + + + + + + + + + + + + + + select id, create_time, update_time, flag, member_id, wallet_id, type, coin_id, op_type, op_remark, op_value, op_before, op_after, ext_remark from t_member_wallet_log + + + + + + + + + + + + insert into t_member_wallet_log + + create_time, + update_time, + flag, + member_id, + wallet_id, + type, + coin_id, + op_type, + op_remark, + op_value, + op_before, + op_after, + ext_remark, + + + #{createTime}, + #{updateTime}, + #{flag}, + #{memberId}, + #{walletId}, + #{type}, + #{coinId}, + #{opType}, + #{opRemark}, + #{opValue}, + #{opBefore}, + #{opAfter}, + #{extRemark}, + + + + + update t_member_wallet_log + + create_time = #{createTime}, + update_time = #{updateTime}, + flag = #{flag}, + member_id = #{memberId}, + wallet_id = #{walletId}, + type = #{type}, + coin_id = #{coinId}, + op_type = #{opType}, + op_remark = #{opRemark}, + op_value = #{opValue}, + op_before = #{opBefore}, + op_after = #{opAfter}, + ext_remark = #{extRemark}, + + where id = #{id} + + + + delete from t_member_wallet_log where id in + + #{id} + + + + \ No newline at end of file diff --git a/alive-server/target/classes/mapper/system/TMemberWalletMapper.xml b/alive-server/target/classes/mapper/system/TMemberWalletMapper.xml new file mode 100644 index 0000000..c8eaaa1 --- /dev/null +++ b/alive-server/target/classes/mapper/system/TMemberWalletMapper.xml @@ -0,0 +1,98 @@ + + + + + + + + + + + + + + + + select id, create_time, update_time, flag, member_id, coin_id, balance, frozen from t_member_wallet + + + + + + + + + + insert into t_member_wallet + + create_time, + update_time, + flag, + member_id, + coin_id, + balance, + frozen, + + + #{createTime}, + #{updateTime}, + #{flag}, + #{memberId}, + #{coinId}, + #{balance}, + #{frozen}, + + + + + update t_member_wallet + + create_time = #{createTime}, + update_time = #{updateTime}, + flag = #{flag}, + member_id = #{memberId}, + coin_id = #{coinId}, + balance = #{balance}, + frozen = #{frozen}, + + where id = #{id} + + + + delete from t_member_wallet where id in + + #{id} + + + + \ No newline at end of file diff --git a/alive-server/target/classes/mapper/system/UserMapper.xml b/alive-server/target/classes/mapper/system/UserMapper.xml new file mode 100644 index 0000000..785ff00 --- /dev/null +++ b/alive-server/target/classes/mapper/system/UserMapper.xml @@ -0,0 +1,129 @@ + + + + + + + + + + + + + + + + + + + + + + + select id, create_time, create_by, update_time, update_by, flag, name, address, direct_user_id, parent_address, all_parent_id, valid, img, role_img, from fai_user + + + + + + + + + + insert into fai_user + + create_time, + create_by, + update_time, + update_by, + flag, + name, + address, + direct_user_id, + parent_address, + all_parent_id, + valid, + img, + role_img, + + + #{createTime}, + #{createBy}, + #{updateTime}, + #{updateBy}, + #{flag}, + #{name}, + #{address}, + #{directUserId}, + #{parentAddress}, + #{allParentId}, + #{valid}, + #{img}, + #{roleImg}, + + + + + update fai_user + + create_time = #{createTime}, + create_by = #{createBy}, + update_time = #{updateTime}, + update_by = #{updateBy}, + flag = #{flag}, + name = #{name}, + address = #{address}, + direct_user_id = #{directUserId}, + parent_address = #{parentAddress}, + all_parent_id = #{allParentId}, + valid = #{valid}, + img = #{img}, + role_img = #{roleImg}, + + where id = #{id} + + + + delete from fai_user where id in + + #{id} + + + + \ No newline at end of file diff --git a/alive-server/target/classes/mapper/system/UserPasswordMapper.xml b/alive-server/target/classes/mapper/system/UserPasswordMapper.xml new file mode 100644 index 0000000..47c1f77 --- /dev/null +++ b/alive-server/target/classes/mapper/system/UserPasswordMapper.xml @@ -0,0 +1,99 @@ + + + + + + + + + + + + + + + + + + select id, user_name, password, create_by,address, create_time, update_by, update_time, remark from sys_user_password + + + + + + + + + + + + insert into sys_user_password + + user_name, + password, + create_by, + create_time, + update_by, + update_time, + remark, + address, + + + #{userName}, + #{password}, + #{createBy}, + #{createTime}, + #{updateBy}, + #{updateTime}, + #{remark}, + #{address}, + + + + + update sys_user_password + + user_name = #{userName}, + password = #{password}, + create_by = #{createBy}, + create_time = #{createTime}, + update_by = #{updateBy}, + update_time = #{updateTime}, + remark = #{remark}, + address = #{address}, + + where id = #{id} + + + + delete from sys_user_password where id in + + #{id} + + + + \ No newline at end of file diff --git a/alive-server/target/maven-archiver/pom.properties b/alive-server/target/maven-archiver/pom.properties new file mode 100644 index 0000000..f6a26e4 --- /dev/null +++ b/alive-server/target/maven-archiver/pom.properties @@ -0,0 +1,5 @@ +#Generated by Maven +#Mon May 27 15:35:32 GMT+08:00 2024 +version=4.7.2 +groupId=com.alive +artifactId=alive-server diff --git a/alive-server/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst b/alive-server/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst new file mode 100644 index 0000000..cfb95cd --- /dev/null +++ b/alive-server/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst @@ -0,0 +1,65 @@ +com\ruoyi\system\domain\NodeSetting.class +com\ruoyi\system\domain\vo\UserEquipgeResp.class +com\ruoyi\system\domain\NodePriceConfig.class +com\ruoyi\system\mapper\NodeBuyLogMapper.class +com\ruoyi\system\service\NodeAwardSettingService.class +com\ruoyi\system\domain\vo\BaseEnum.class +com\ruoyi\system\utils\Translate.class +com\ruoyi\system\domain\CoinConfig.class +com\ruoyi\system\service\PayCoinLogService.class +com\ruoyi\system\service\NodePriceConfigService.class +com\ruoyi\system\domain\ActivityLog.class +com\ruoyi\system\mapper\TConfigMapper.class +com\ruoyi\system\mapper\ActivityConfigMapper.class +com\ruoyi\system\mapper\NodeAwardSettingMapper.class +com\ruoyi\system\domain\NodeBuyLog.class +com\ruoyi\system\mapper\NodeMapper.class +com\ruoyi\system\service\UserPasswordService.class +com\ruoyi\system\service\NodeSettingService.class +com\ruoyi\system\service\TMemberWalletService.class +com\ruoyi\system\utils\NumberUtil.class +com\ruoyi\system\mapper\CoinConfigMapper.class +com\ruoyi\system\mapper\UserMapper.class +com\ruoyi\system\domain\TMember.class +com\ruoyi\system\domain\NodeAwardSetting.class +com\ruoyi\system\domain\Notice.class +com\ruoyi\system\mapper\TMemberWalletLogMapper.class +com\ruoyi\system\domain\PayCoinLog.class +com\ruoyi\system\service\ActivityStatisticsService.class +com\ruoyi\system\service\TConfigService.class +com\ruoyi\system\mapper\TMemberWalletMapper.class +com\ruoyi\system\mapper\ActivityLogMapper.class +com\ruoyi\system\domain\vo\InviteResp.class +com\ruoyi\system\domain\NodeTaskLog.class +com\ruoyi\system\service\UserService.class +com\ruoyi\system\mapper\NodeSettingMapper.class +com\ruoyi\system\service\TMemberWalletLogService.class +com\ruoyi\system\domain\vo\WalletOperateTypeEnum.class +com\ruoyi\system\mapper\ActivityStatisticsMapper.class +com\ruoyi\system\domain\TConfig.class +com\ruoyi\system\domain\TMemberWalletLog.class +com\ruoyi\system\service\NoticeService.class +com\ruoyi\system\domain\ActivityStatistics.class +com\ruoyi\system\service\NodeTaskLogService.class +com\ruoyi\system\service\NodeTaskService.class +com\ruoyi\system\service\ActivityLogService.class +com\ruoyi\system\mapper\NoticeMapper.class +com\ruoyi\system\service\CoinConfigService.class +com\ruoyi\system\utils\HttpUtils.class +com\ruoyi\system\domain\Node.class +com\ruoyi\system\service\ActivityConfigService.class +com\ruoyi\system\mapper\NodeTaskMapper.class +com\ruoyi\system\mapper\NodePriceConfigMapper.class +com\ruoyi\system\service\NodeService.class +com\ruoyi\system\service\TMemberService.class +com\ruoyi\system\domain\NodeTask.class +com\ruoyi\system\mapper\PayCoinLogMapper.class +com\ruoyi\system\domain\UserPassword.class +com\ruoyi\system\domain\ActivityConfig.class +com\ruoyi\system\domain\User.class +com\ruoyi\system\mapper\UserPasswordMapper.class +com\ruoyi\system\mapper\TMemberMapper.class +com\ruoyi\system\domain\TMemberWallet.class +com\ruoyi\system\mapper\NodeTaskLogMapper.class +com\ruoyi\system\domain\vo\UserBoxResp.class +com\ruoyi\system\service\NodeBuyLogService.class diff --git a/alive-server/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst b/alive-server/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst new file mode 100644 index 0000000..f4b2b5d --- /dev/null +++ b/alive-server/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst @@ -0,0 +1,65 @@ +E:\alive\alive-admin\alive-server\src\main\java\com\ruoyi\system\mapper\TMemberWalletLogMapper.java +E:\alive\alive-admin\alive-server\src\main\java\com\ruoyi\system\service\TConfigService.java +E:\alive\alive-admin\alive-server\src\main\java\com\ruoyi\system\domain\TMemberWallet.java +E:\alive\alive-admin\alive-server\src\main\java\com\ruoyi\system\domain\vo\UserEquipgeResp.java +E:\alive\alive-admin\alive-server\src\main\java\com\ruoyi\system\mapper\ActivityLogMapper.java +E:\alive\alive-admin\alive-server\src\main\java\com\ruoyi\system\domain\UserPassword.java +E:\alive\alive-admin\alive-server\src\main\java\com\ruoyi\system\mapper\NoticeMapper.java +E:\alive\alive-admin\alive-server\src\main\java\com\ruoyi\system\domain\TMember.java +E:\alive\alive-admin\alive-server\src\main\java\com\ruoyi\system\service\NodeBuyLogService.java +E:\alive\alive-admin\alive-server\src\main\java\com\ruoyi\system\service\NodePriceConfigService.java +E:\alive\alive-admin\alive-server\src\main\java\com\ruoyi\system\mapper\NodeMapper.java +E:\alive\alive-admin\alive-server\src\main\java\com\ruoyi\system\service\NodeSettingService.java +E:\alive\alive-admin\alive-server\src\main\java\com\ruoyi\system\domain\ActivityLog.java +E:\alive\alive-admin\alive-server\src\main\java\com\ruoyi\system\mapper\TMemberWalletMapper.java +E:\alive\alive-admin\alive-server\src\main\java\com\ruoyi\system\utils\NumberUtil.java +E:\alive\alive-admin\alive-server\src\main\java\com\ruoyi\system\service\NodeAwardSettingService.java +E:\alive\alive-admin\alive-server\src\main\java\com\ruoyi\system\domain\ActivityStatistics.java +E:\alive\alive-admin\alive-server\src\main\java\com\ruoyi\system\service\ActivityStatisticsService.java +E:\alive\alive-admin\alive-server\src\main\java\com\ruoyi\system\service\NodeTaskLogService.java +E:\alive\alive-admin\alive-server\src\main\java\com\ruoyi\system\service\TMemberService.java +E:\alive\alive-admin\alive-server\src\main\java\com\ruoyi\system\service\TMemberWalletService.java +E:\alive\alive-admin\alive-server\src\main\java\com\ruoyi\system\mapper\PayCoinLogMapper.java +E:\alive\alive-admin\alive-server\src\main\java\com\ruoyi\system\domain\NodeTask.java +E:\alive\alive-admin\alive-server\src\main\java\com\ruoyi\system\domain\TConfig.java +E:\alive\alive-admin\alive-server\src\main\java\com\ruoyi\system\domain\NodeTaskLog.java +E:\alive\alive-admin\alive-server\src\main\java\com\ruoyi\system\service\PayCoinLogService.java +E:\alive\alive-admin\alive-server\src\main\java\com\ruoyi\system\service\NodeTaskService.java +E:\alive\alive-admin\alive-server\src\main\java\com\ruoyi\system\domain\NodeSetting.java +E:\alive\alive-admin\alive-server\src\main\java\com\ruoyi\system\mapper\NodeTaskLogMapper.java +E:\alive\alive-admin\alive-server\src\main\java\com\ruoyi\system\mapper\UserMapper.java +E:\alive\alive-admin\alive-server\src\main\java\com\ruoyi\system\domain\User.java +E:\alive\alive-admin\alive-server\src\main\java\com\ruoyi\system\domain\CoinConfig.java +E:\alive\alive-admin\alive-server\src\main\java\com\ruoyi\system\domain\ActivityConfig.java +E:\alive\alive-admin\alive-server\src\main\java\com\ruoyi\system\service\UserService.java +E:\alive\alive-admin\alive-server\src\main\java\com\ruoyi\system\service\CoinConfigService.java +E:\alive\alive-admin\alive-server\src\main\java\com\ruoyi\system\domain\vo\BaseEnum.java +E:\alive\alive-admin\alive-server\src\main\java\com\ruoyi\system\mapper\TConfigMapper.java +E:\alive\alive-admin\alive-server\src\main\java\com\ruoyi\system\mapper\NodeAwardSettingMapper.java +E:\alive\alive-admin\alive-server\src\main\java\com\ruoyi\system\domain\PayCoinLog.java +E:\alive\alive-admin\alive-server\src\main\java\com\ruoyi\system\mapper\TMemberMapper.java +E:\alive\alive-admin\alive-server\src\main\java\com\ruoyi\system\domain\Notice.java +E:\alive\alive-admin\alive-server\src\main\java\com\ruoyi\system\domain\TMemberWalletLog.java +E:\alive\alive-admin\alive-server\src\main\java\com\ruoyi\system\domain\vo\WalletOperateTypeEnum.java +E:\alive\alive-admin\alive-server\src\main\java\com\ruoyi\system\mapper\NodeSettingMapper.java +E:\alive\alive-admin\alive-server\src\main\java\com\ruoyi\system\domain\vo\InviteResp.java +E:\alive\alive-admin\alive-server\src\main\java\com\ruoyi\system\service\TMemberWalletLogService.java +E:\alive\alive-admin\alive-server\src\main\java\com\ruoyi\system\service\UserPasswordService.java +E:\alive\alive-admin\alive-server\src\main\java\com\ruoyi\system\domain\NodePriceConfig.java +E:\alive\alive-admin\alive-server\src\main\java\com\ruoyi\system\mapper\ActivityStatisticsMapper.java +E:\alive\alive-admin\alive-server\src\main\java\com\ruoyi\system\mapper\UserPasswordMapper.java +E:\alive\alive-admin\alive-server\src\main\java\com\ruoyi\system\mapper\CoinConfigMapper.java +E:\alive\alive-admin\alive-server\src\main\java\com\ruoyi\system\service\NodeService.java +E:\alive\alive-admin\alive-server\src\main\java\com\ruoyi\system\service\NoticeService.java +E:\alive\alive-admin\alive-server\src\main\java\com\ruoyi\system\domain\Node.java +E:\alive\alive-admin\alive-server\src\main\java\com\ruoyi\system\domain\vo\UserBoxResp.java +E:\alive\alive-admin\alive-server\src\main\java\com\ruoyi\system\mapper\NodePriceConfigMapper.java +E:\alive\alive-admin\alive-server\src\main\java\com\ruoyi\system\utils\HttpUtils.java +E:\alive\alive-admin\alive-server\src\main\java\com\ruoyi\system\domain\NodeAwardSetting.java +E:\alive\alive-admin\alive-server\src\main\java\com\ruoyi\system\mapper\ActivityConfigMapper.java +E:\alive\alive-admin\alive-server\src\main\java\com\ruoyi\system\mapper\NodeBuyLogMapper.java +E:\alive\alive-admin\alive-server\src\main\java\com\ruoyi\system\domain\NodeBuyLog.java +E:\alive\alive-admin\alive-server\src\main\java\com\ruoyi\system\service\ActivityConfigService.java +E:\alive\alive-admin\alive-server\src\main\java\com\ruoyi\system\utils\Translate.java +E:\alive\alive-admin\alive-server\src\main\java\com\ruoyi\system\mapper\NodeTaskMapper.java +E:\alive\alive-admin\alive-server\src\main\java\com\ruoyi\system\service\ActivityLogService.java diff --git a/alive-system/pom.xml b/alive-system/pom.xml new file mode 100644 index 0000000..1dc7fa3 --- /dev/null +++ b/alive-system/pom.xml @@ -0,0 +1,30 @@ + + + + alive + com.alive + 4.7.2 + + 4.0.0 + + alive-system + + + system系统模块 + + + + + + + com.alive + alive-common + + + + + + + \ No newline at end of file diff --git a/alive-system/src/main/java/com/ruoyi/system/domain/SysConfig.java b/alive-system/src/main/java/com/ruoyi/system/domain/SysConfig.java new file mode 100644 index 0000000..56f3767 --- /dev/null +++ b/alive-system/src/main/java/com/ruoyi/system/domain/SysConfig.java @@ -0,0 +1,110 @@ +package com.ruoyi.system.domain; + +import javax.validation.constraints.*; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.annotation.Excel.ColumnType; +import com.ruoyi.common.core.domain.BaseEntity; + +/** + * 参数配置表 sys_config + * + * @author ruoyi + */ +public class SysConfig extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 参数主键 */ + @Excel(name = "参数主键", cellType = ColumnType.NUMERIC) + private Long configId; + + /** 参数名称 */ + @Excel(name = "参数名称") + private String configName; + + /** 参数键名 */ + @Excel(name = "参数键名") + private String configKey; + + /** 参数键值 */ + @Excel(name = "参数键值") + private String configValue; + + /** 系统内置(Y是 N否) */ + @Excel(name = "系统内置", readConverterExp = "Y=是,N=否") + private String configType; + + public Long getConfigId() + { + return configId; + } + + public void setConfigId(Long configId) + { + this.configId = configId; + } + + @NotBlank(message = "参数名称不能为空") + @Size(min = 0, max = 100, message = "参数名称不能超过100个字符") + public String getConfigName() + { + return configName; + } + + public void setConfigName(String configName) + { + this.configName = configName; + } + + @NotBlank(message = "参数键名长度不能为空") + @Size(min = 0, max = 100, message = "参数键名长度不能超过100个字符") + public String getConfigKey() + { + return configKey; + } + + public void setConfigKey(String configKey) + { + this.configKey = configKey; + } + + @NotBlank(message = "参数键值不能为空") + @Size(min = 0, max = 500, message = "参数键值长度不能超过500个字符") + public String getConfigValue() + { + return configValue; + } + + public void setConfigValue(String configValue) + { + this.configValue = configValue; + } + + public String getConfigType() + { + return configType; + } + + public void setConfigType(String configType) + { + this.configType = configType; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("configId", getConfigId()) + .append("configName", getConfigName()) + .append("configKey", getConfigKey()) + .append("configValue", getConfigValue()) + .append("configType", getConfigType()) + .append("createBy", getCreateBy()) + .append("createTime", getCreateTime()) + .append("updateBy", getUpdateBy()) + .append("updateTime", getUpdateTime()) + .append("remark", getRemark()) + .toString(); + } +} diff --git a/alive-system/src/main/java/com/ruoyi/system/domain/SysLogininfor.java b/alive-system/src/main/java/com/ruoyi/system/domain/SysLogininfor.java new file mode 100644 index 0000000..29b3af1 --- /dev/null +++ b/alive-system/src/main/java/com/ruoyi/system/domain/SysLogininfor.java @@ -0,0 +1,159 @@ +package com.ruoyi.system.domain; + +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import java.util.Date; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.annotation.Excel.ColumnType; +import com.ruoyi.common.core.domain.BaseEntity; + +/** + * 系统访问记录表 sys_logininfor + * + * @author ruoyi + */ +public class SysLogininfor extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** ID */ + @Excel(name = "序号", cellType = ColumnType.NUMERIC) + private Long infoId; + + /** 用户账号 */ + @Excel(name = "用户账号") + private String loginName; + + /** 登录状态 0成功 1失败 */ + @Excel(name = "登录状态", readConverterExp = "0=成功,1=失败") + private String status; + + /** 登录IP地址 */ + @Excel(name = "登录地址") + private String ipaddr; + + /** 登录地点 */ + @Excel(name = "登录地点") + private String loginLocation; + + /** 浏览器类型 */ + @Excel(name = "浏览器") + private String browser; + + /** 操作系统 */ + @Excel(name = "操作系统") + private String os; + + /** 提示消息 */ + @Excel(name = "提示消息") + private String msg; + + /** 访问时间 */ + @Excel(name = "访问时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss") + private Date loginTime; + + public Long getInfoId() + { + return infoId; + } + + public void setInfoId(Long infoId) + { + this.infoId = infoId; + } + + public String getLoginName() + { + return loginName; + } + + public void setLoginName(String loginName) + { + this.loginName = loginName; + } + + public String getStatus() + { + return status; + } + + public void setStatus(String status) + { + this.status = status; + } + + public String getIpaddr() + { + return ipaddr; + } + + public void setIpaddr(String ipaddr) + { + this.ipaddr = ipaddr; + } + + public String getLoginLocation() + { + return loginLocation; + } + + public void setLoginLocation(String loginLocation) + { + this.loginLocation = loginLocation; + } + + public String getBrowser() + { + return browser; + } + + public void setBrowser(String browser) + { + this.browser = browser; + } + + public String getOs() + { + return os; + } + + public void setOs(String os) + { + this.os = os; + } + + public String getMsg() + { + return msg; + } + + public void setMsg(String msg) + { + this.msg = msg; + } + + public Date getLoginTime() + { + return loginTime; + } + + public void setLoginTime(Date loginTime) + { + this.loginTime = loginTime; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("infoId", getInfoId()) + .append("loginName", getLoginName()) + .append("ipaddr", getIpaddr()) + .append("loginLocation", getLoginLocation()) + .append("browser", getBrowser()) + .append("os", getOs()) + .append("status", getStatus()) + .append("msg", getMsg()) + .append("loginTime", getLoginTime()) + .toString(); + } +} \ No newline at end of file diff --git a/alive-system/src/main/java/com/ruoyi/system/domain/SysNotice.java b/alive-system/src/main/java/com/ruoyi/system/domain/SysNotice.java new file mode 100644 index 0000000..8c07a54 --- /dev/null +++ b/alive-system/src/main/java/com/ruoyi/system/domain/SysNotice.java @@ -0,0 +1,102 @@ +package com.ruoyi.system.domain; + +import javax.validation.constraints.NotBlank; +import javax.validation.constraints.Size; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.core.domain.BaseEntity; +import com.ruoyi.common.xss.Xss; + +/** + * 通知公告表 sys_notice + * + * @author ruoyi + */ +public class SysNotice extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 公告ID */ + private Long noticeId; + + /** 公告标题 */ + private String noticeTitle; + + /** 公告类型(1通知 2公告) */ + private String noticeType; + + /** 公告内容 */ + private String noticeContent; + + /** 公告状态(0正常 1关闭) */ + private String status; + + public Long getNoticeId() + { + return noticeId; + } + + public void setNoticeId(Long noticeId) + { + this.noticeId = noticeId; + } + + public void setNoticeTitle(String noticeTitle) + { + this.noticeTitle = noticeTitle; + } + + @Xss(message = "公告标题不能包含脚本字符") + @NotBlank(message = "公告标题不能为空") + @Size(min = 0, max = 50, message = "公告标题不能超过50个字符") + public String getNoticeTitle() + { + return noticeTitle; + } + + public void setNoticeType(String noticeType) + { + this.noticeType = noticeType; + } + + public String getNoticeType() + { + return noticeType; + } + + public void setNoticeContent(String noticeContent) + { + this.noticeContent = noticeContent; + } + + public String getNoticeContent() + { + return noticeContent; + } + + public void setStatus(String status) + { + this.status = status; + } + + public String getStatus() + { + return status; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("noticeId", getNoticeId()) + .append("noticeTitle", getNoticeTitle()) + .append("noticeType", getNoticeType()) + .append("noticeContent", getNoticeContent()) + .append("status", getStatus()) + .append("createBy", getCreateBy()) + .append("createTime", getCreateTime()) + .append("updateBy", getUpdateBy()) + .append("updateTime", getUpdateTime()) + .append("remark", getRemark()) + .toString(); + } +} diff --git a/alive-system/src/main/java/com/ruoyi/system/domain/SysOperLog.java b/alive-system/src/main/java/com/ruoyi/system/domain/SysOperLog.java new file mode 100644 index 0000000..56ddde7 --- /dev/null +++ b/alive-system/src/main/java/com/ruoyi/system/domain/SysOperLog.java @@ -0,0 +1,277 @@ +package com.ruoyi.system.domain; + +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import java.util.Date; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.annotation.Excel.ColumnType; +import com.ruoyi.common.core.domain.BaseEntity; + +/** + * 操作日志记录表 oper_log + * + * @author ruoyi + */ +public class SysOperLog extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 日志主键 */ + @Excel(name = "操作序号", cellType = ColumnType.NUMERIC) + private Long operId; + + /** 操作模块 */ + @Excel(name = "操作模块") + private String title; + + /** 业务类型(0其它 1新增 2修改 3删除) */ + @Excel(name = "业务类型", readConverterExp = "0=其它,1=新增,2=修改,3=删除,4=授权,5=导出,6=导入,7=强退,8=生成代码,9=清空数据") + private Integer businessType; + + /** 业务类型数组 */ + private Integer[] businessTypes; + + /** 请求方法 */ + @Excel(name = "请求方法") + private String method; + + /** 请求方式 */ + @Excel(name = "请求方式") + private String requestMethod; + + /** 操作类别(0其它 1后台用户 2手机端用户) */ + @Excel(name = "操作类别", readConverterExp = "0=其它,1=后台用户,2=手机端用户") + private Integer operatorType; + + /** 操作人员 */ + @Excel(name = "操作人员") + private String operName; + + /** 部门名称 */ + @Excel(name = "部门名称") + private String deptName; + + /** 请求url */ + @Excel(name = "请求地址") + private String operUrl; + + /** 操作地址 */ + @Excel(name = "操作地址") + private String operIp; + + /** 操作地点 */ + @Excel(name = "操作地点") + private String operLocation; + + /** 请求参数 */ + @Excel(name = "请求参数") + private String operParam; + + /** 返回参数 */ + @Excel(name = "返回参数") + private String jsonResult; + + /** 操作状态(0正常 1异常) */ + @Excel(name = "状态", readConverterExp = "0=正常,1=异常") + private Integer status; + + /** 错误消息 */ + @Excel(name = "错误消息") + private String errorMsg; + + /** 操作时间 */ + @Excel(name = "操作时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss") + private Date operTime; + + public Long getOperId() + { + return operId; + } + + public void setOperId(Long operId) + { + this.operId = operId; + } + + public String getTitle() + { + return title; + } + + public void setTitle(String title) + { + this.title = title; + } + + public Integer getBusinessType() + { + return businessType; + } + + public void setBusinessType(Integer businessType) + { + this.businessType = businessType; + } + + public Integer[] getBusinessTypes() + { + return businessTypes; + } + + public void setBusinessTypes(Integer[] businessTypes) + { + this.businessTypes = businessTypes; + } + + public String getMethod() + { + return method; + } + + public void setMethod(String method) + { + this.method = method; + } + + public String getRequestMethod() + { + return requestMethod; + } + + public void setRequestMethod(String requestMethod) + { + this.requestMethod = requestMethod; + } + + public Integer getOperatorType() + { + return operatorType; + } + + public void setOperatorType(Integer operatorType) + { + this.operatorType = operatorType; + } + + public String getOperName() + { + return operName; + } + + public void setOperName(String operName) + { + this.operName = operName; + } + + public String getDeptName() + { + return deptName; + } + + public void setDeptName(String deptName) + { + this.deptName = deptName; + } + + public String getOperUrl() + { + return operUrl; + } + + public void setOperUrl(String operUrl) + { + this.operUrl = operUrl; + } + + public String getOperIp() + { + return operIp; + } + + public void setOperIp(String operIp) + { + this.operIp = operIp; + } + + public String getOperLocation() + { + return operLocation; + } + + public void setOperLocation(String operLocation) + { + this.operLocation = operLocation; + } + + public String getOperParam() + { + return operParam; + } + + public void setOperParam(String operParam) + { + this.operParam = operParam; + } + + public String getJsonResult() + { + return jsonResult; + } + + public void setJsonResult(String jsonResult) + { + this.jsonResult = jsonResult; + } + + public Integer getStatus() + { + return status; + } + + public void setStatus(Integer status) + { + this.status = status; + } + + public String getErrorMsg() + { + return errorMsg; + } + + public void setErrorMsg(String errorMsg) + { + this.errorMsg = errorMsg; + } + + public Date getOperTime() + { + return operTime; + } + + public void setOperTime(Date operTime) + { + this.operTime = operTime; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("operId", getOperId()) + .append("title", getTitle()) + .append("businessType", getBusinessType()) + .append("businessTypes", getBusinessTypes()) + .append("method", getMethod()) + .append("requestMethod", getRequestMethod()) + .append("operatorType", getOperatorType()) + .append("operName", getOperName()) + .append("deptName", getDeptName()) + .append("operUrl", getOperUrl()) + .append("operIp", getOperIp()) + .append("operLocation", getOperLocation()) + .append("operParam", getOperParam()) + .append("status", getStatus()) + .append("errorMsg", getErrorMsg()) + .append("operTime", getOperTime()) + .toString(); + } +} diff --git a/alive-system/src/main/java/com/ruoyi/system/domain/SysPost.java b/alive-system/src/main/java/com/ruoyi/system/domain/SysPost.java new file mode 100644 index 0000000..a172f66 --- /dev/null +++ b/alive-system/src/main/java/com/ruoyi/system/domain/SysPost.java @@ -0,0 +1,122 @@ +package com.ruoyi.system.domain; + +import javax.validation.constraints.*; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.annotation.Excel.ColumnType; +import com.ruoyi.common.core.domain.BaseEntity; + +/** + * 岗位表 sys_post + * + * @author ruoyi + */ +public class SysPost extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 岗位序号 */ + @Excel(name = "岗位序号", cellType = ColumnType.NUMERIC) + private Long postId; + + /** 岗位编码 */ + @Excel(name = "岗位编码") + private String postCode; + + /** 岗位名称 */ + @Excel(name = "岗位名称") + private String postName; + + /** 岗位排序 */ + @Excel(name = "岗位排序", cellType = ColumnType.NUMERIC) + private String postSort; + + /** 状态(0正常 1停用) */ + @Excel(name = "状态", readConverterExp = "0=正常,1=停用") + private String status; + + /** 用户是否存在此岗位标识 默认不存在 */ + private boolean flag = false; + + public Long getPostId() + { + return postId; + } + + public void setPostId(Long postId) + { + this.postId = postId; + } + + @NotBlank(message = "岗位编码不能为空") + @Size(min = 0, max = 64, message = "岗位编码长度不能超过64个字符") + public String getPostCode() + { + return postCode; + } + + public void setPostCode(String postCode) + { + this.postCode = postCode; + } + + @NotBlank(message = "岗位名称不能为空") + @Size(min = 0, max = 50, message = "岗位名称长度不能超过50个字符") + public String getPostName() + { + return postName; + } + + public void setPostName(String postName) + { + this.postName = postName; + } + + @NotBlank(message = "显示顺序不能为空") + public String getPostSort() + { + return postSort; + } + + public void setPostSort(String postSort) + { + this.postSort = postSort; + } + + public String getStatus() + { + return status; + } + + public void setStatus(String status) + { + this.status = status; + } + + public boolean isFlag() + { + return flag; + } + + public void setFlag(boolean flag) + { + this.flag = flag; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("postId", getPostId()) + .append("postCode", getPostCode()) + .append("postName", getPostName()) + .append("postSort", getPostSort()) + .append("status", getStatus()) + .append("createBy", getCreateBy()) + .append("createTime", getCreateTime()) + .append("updateBy", getUpdateBy()) + .append("updateTime", getUpdateTime()) + .append("remark", getRemark()) + .toString(); + } +} diff --git a/alive-system/src/main/java/com/ruoyi/system/domain/SysRoleDept.java b/alive-system/src/main/java/com/ruoyi/system/domain/SysRoleDept.java new file mode 100644 index 0000000..47b21bf --- /dev/null +++ b/alive-system/src/main/java/com/ruoyi/system/domain/SysRoleDept.java @@ -0,0 +1,46 @@ +package com.ruoyi.system.domain; + +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; + +/** + * 角色和部门关联 sys_role_dept + * + * @author ruoyi + */ +public class SysRoleDept +{ + /** 角色ID */ + private Long roleId; + + /** 部门ID */ + private Long deptId; + + public Long getRoleId() + { + return roleId; + } + + public void setRoleId(Long roleId) + { + this.roleId = roleId; + } + + public Long getDeptId() + { + return deptId; + } + + public void setDeptId(Long deptId) + { + this.deptId = deptId; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("roleId", getRoleId()) + .append("deptId", getDeptId()) + .toString(); + } +} diff --git a/alive-system/src/main/java/com/ruoyi/system/domain/SysRoleMenu.java b/alive-system/src/main/java/com/ruoyi/system/domain/SysRoleMenu.java new file mode 100644 index 0000000..de10a74 --- /dev/null +++ b/alive-system/src/main/java/com/ruoyi/system/domain/SysRoleMenu.java @@ -0,0 +1,46 @@ +package com.ruoyi.system.domain; + +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; + +/** + * 角色和菜单关联 sys_role_menu + * + * @author ruoyi + */ +public class SysRoleMenu +{ + /** 角色ID */ + private Long roleId; + + /** 菜单ID */ + private Long menuId; + + public Long getRoleId() + { + return roleId; + } + + public void setRoleId(Long roleId) + { + this.roleId = roleId; + } + + public Long getMenuId() + { + return menuId; + } + + public void setMenuId(Long menuId) + { + this.menuId = menuId; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("roleId", getRoleId()) + .append("menuId", getMenuId()) + .toString(); + } +} diff --git a/alive-system/src/main/java/com/ruoyi/system/domain/SysUserOnline.java b/alive-system/src/main/java/com/ruoyi/system/domain/SysUserOnline.java new file mode 100644 index 0000000..e13506e --- /dev/null +++ b/alive-system/src/main/java/com/ruoyi/system/domain/SysUserOnline.java @@ -0,0 +1,177 @@ +package com.ruoyi.system.domain; + +import java.util.Date; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.core.domain.BaseEntity; +import com.ruoyi.common.enums.OnlineStatus; + +/** + * 当前在线会话 sys_user_online + * + * @author ruoyi + */ +public class SysUserOnline extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 用户会话id */ + private String sessionId; + + /** 部门名称 */ + private String deptName; + + /** 登录名称 */ + private String loginName; + + /** 登录IP地址 */ + private String ipaddr; + + /** 登录地址 */ + private String loginLocation; + + /** 浏览器类型 */ + private String browser; + + /** 操作系统 */ + private String os; + + /** session创建时间 */ + private Date startTimestamp; + + /** session最后访问时间 */ + private Date lastAccessTime; + + /** 超时时间,单位为分钟 */ + private Long expireTime; + + /** 在线状态 */ + private OnlineStatus status = OnlineStatus.on_line; + + public String getSessionId() + { + return sessionId; + } + + public void setSessionId(String sessionId) + { + this.sessionId = sessionId; + } + + public String getDeptName() + { + return deptName; + } + + public void setDeptName(String deptName) + { + this.deptName = deptName; + } + + public String getLoginName() + { + return loginName; + } + + public void setLoginName(String loginName) + { + this.loginName = loginName; + } + + public String getIpaddr() + { + return ipaddr; + } + + public void setIpaddr(String ipaddr) + { + this.ipaddr = ipaddr; + } + + public String getLoginLocation() + { + return loginLocation; + } + + public void setLoginLocation(String loginLocation) + { + this.loginLocation = loginLocation; + } + + public String getBrowser() + { + return browser; + } + + public void setBrowser(String browser) + { + this.browser = browser; + } + + public String getOs() + { + return os; + } + + public void setOs(String os) + { + this.os = os; + } + + public Date getStartTimestamp() + { + return startTimestamp; + } + + public void setStartTimestamp(Date startTimestamp) + { + this.startTimestamp = startTimestamp; + } + + public Date getLastAccessTime() + { + return lastAccessTime; + } + + public void setLastAccessTime(Date lastAccessTime) + { + this.lastAccessTime = lastAccessTime; + } + + public Long getExpireTime() + { + return expireTime; + } + + public void setExpireTime(Long expireTime) + { + this.expireTime = expireTime; + } + + public OnlineStatus getStatus() + { + return status; + } + + public void setStatus(OnlineStatus status) + { + this.status = status; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("sessionId", getSessionId()) + .append("loginName", getLoginName()) + .append("deptName", getDeptName()) + .append("ipaddr", getIpaddr()) + .append("loginLocation", getLoginLocation()) + .append("browser", getBrowser()) + .append("os", getOs()) + .append("status", getStatus()) + .append("startTimestamp", getStartTimestamp()) + .append("lastAccessTime", getLastAccessTime()) + .append("expireTime", getExpireTime()) + .toString(); + } +} diff --git a/alive-system/src/main/java/com/ruoyi/system/domain/SysUserPost.java b/alive-system/src/main/java/com/ruoyi/system/domain/SysUserPost.java new file mode 100644 index 0000000..6e8c416 --- /dev/null +++ b/alive-system/src/main/java/com/ruoyi/system/domain/SysUserPost.java @@ -0,0 +1,46 @@ +package com.ruoyi.system.domain; + +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; + +/** + * 用户和岗位关联 sys_user_post + * + * @author ruoyi + */ +public class SysUserPost +{ + /** 用户ID */ + private Long userId; + + /** 岗位ID */ + private Long postId; + + public Long getUserId() + { + return userId; + } + + public void setUserId(Long userId) + { + this.userId = userId; + } + + public Long getPostId() + { + return postId; + } + + public void setPostId(Long postId) + { + this.postId = postId; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("userId", getUserId()) + .append("postId", getPostId()) + .toString(); + } +} diff --git a/alive-system/src/main/java/com/ruoyi/system/domain/SysUserRole.java b/alive-system/src/main/java/com/ruoyi/system/domain/SysUserRole.java new file mode 100644 index 0000000..4d15810 --- /dev/null +++ b/alive-system/src/main/java/com/ruoyi/system/domain/SysUserRole.java @@ -0,0 +1,46 @@ +package com.ruoyi.system.domain; + +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; + +/** + * 用户和角色关联 sys_user_role + * + * @author ruoyi + */ +public class SysUserRole +{ + /** 用户ID */ + private Long userId; + + /** 角色ID */ + private Long roleId; + + public Long getUserId() + { + return userId; + } + + public void setUserId(Long userId) + { + this.userId = userId; + } + + public Long getRoleId() + { + return roleId; + } + + public void setRoleId(Long roleId) + { + this.roleId = roleId; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("userId", getUserId()) + .append("roleId", getRoleId()) + .toString(); + } +} diff --git a/alive-system/src/main/java/com/ruoyi/system/mapper/SysDeptMapper.java b/alive-system/src/main/java/com/ruoyi/system/mapper/SysDeptMapper.java new file mode 100644 index 0000000..c5690fd --- /dev/null +++ b/alive-system/src/main/java/com/ruoyi/system/mapper/SysDeptMapper.java @@ -0,0 +1,117 @@ +package com.ruoyi.system.mapper; + +import java.util.List; +import org.apache.ibatis.annotations.Param; +import com.ruoyi.common.core.domain.entity.SysDept; + +/** + * 部门管理 数据层 + * + * @author ruoyi + */ +public interface SysDeptMapper +{ + /** + * 查询部门人数 + * + * @param dept 部门信息 + * @return 结果 + */ + public int selectDeptCount(SysDept dept); + + /** + * 查询部门是否存在用户 + * + * @param deptId 部门ID + * @return 结果 + */ + public int checkDeptExistUser(Long deptId); + + /** + * 查询部门管理数据 + * + * @param dept 部门信息 + * @return 部门信息集合 + */ + public List selectDeptList(SysDept dept); + + /** + * 删除部门管理信息 + * + * @param deptId 部门ID + * @return 结果 + */ + public int deleteDeptById(Long deptId); + + /** + * 新增部门信息 + * + * @param dept 部门信息 + * @return 结果 + */ + public int insertDept(SysDept dept); + + /** + * 修改部门信息 + * + * @param dept 部门信息 + * @return 结果 + */ + public int updateDept(SysDept dept); + + /** + * 修改子元素关系 + * + * @param depts 子元素 + * @return 结果 + */ + public int updateDeptChildren(@Param("depts") List depts); + + /** + * 根据部门ID查询信息 + * + * @param deptId 部门ID + * @return 部门信息 + */ + public SysDept selectDeptById(Long deptId); + + /** + * 校验部门名称是否唯一 + * + * @param deptName 部门名称 + * @param parentId 父部门ID + * @return 结果 + */ + public SysDept checkDeptNameUnique(@Param("deptName") String deptName, @Param("parentId") Long parentId); + + /** + * 根据角色ID查询部门 + * + * @param roleId 角色ID + * @return 部门列表 + */ + public List selectRoleDeptTree(Long roleId); + + /** + * 修改所在部门正常状态 + * + * @param deptIds 部门ID组 + */ + public void updateDeptStatusNormal(Long[] deptIds); + + /** + * 根据ID查询所有子部门 + * + * @param deptId 部门ID + * @return 部门列表 + */ + public List selectChildrenDeptById(Long deptId); + + /** + * 根据ID查询所有子部门(正常状态) + * + * @param deptId 部门ID + * @return 子部门数 + */ + public int selectNormalChildrenDeptById(Long deptId); +} diff --git a/alive-system/src/main/java/com/ruoyi/system/mapper/SysDictDataMapper.java b/alive-system/src/main/java/com/ruoyi/system/mapper/SysDictDataMapper.java new file mode 100644 index 0000000..368252a --- /dev/null +++ b/alive-system/src/main/java/com/ruoyi/system/mapper/SysDictDataMapper.java @@ -0,0 +1,95 @@ +package com.ruoyi.system.mapper; + +import java.util.List; +import org.apache.ibatis.annotations.Param; +import com.ruoyi.common.core.domain.entity.SysDictData; + +/** + * 字典表 数据层 + * + * @author ruoyi + */ +public interface SysDictDataMapper +{ + /** + * 根据条件分页查询字典数据 + * + * @param dictData 字典数据信息 + * @return 字典数据集合信息 + */ + public List selectDictDataList(SysDictData dictData); + + /** + * 根据字典类型查询字典数据 + * + * @param dictType 字典类型 + * @return 字典数据集合信息 + */ + public List selectDictDataByType(String dictType); + + /** + * 根据字典类型和字典键值查询字典数据信息 + * + * @param dictType 字典类型 + * @param dictValue 字典键值 + * @return 字典标签 + */ + public String selectDictLabel(@Param("dictType") String dictType, @Param("dictValue") String dictValue); + + /** + * 根据字典数据ID查询信息 + * + * @param dictCode 字典数据ID + * @return 字典数据 + */ + public SysDictData selectDictDataById(Long dictCode); + + /** + * 查询字典数据 + * + * @param dictType 字典类型 + * @return 字典数据 + */ + public int countDictDataByType(String dictType); + + /** + * 通过字典ID删除字典数据信息 + * + * @param dictCode 字典数据ID + * @return 结果 + */ + public int deleteDictDataById(Long dictCode); + + /** + * 批量删除字典数据 + * + * @param ids 需要删除的数据 + * @return 结果 + */ + public int deleteDictDataByIds(String[] ids); + + /** + * 新增字典数据信息 + * + * @param dictData 字典数据信息 + * @return 结果 + */ + public int insertDictData(SysDictData dictData); + + /** + * 修改字典数据信息 + * + * @param dictData 字典数据信息 + * @return 结果 + */ + public int updateDictData(SysDictData dictData); + + /** + * 同步修改字典类型 + * + * @param oldDictType 旧字典类型 + * @param newDictType 新旧字典类型 + * @return 结果 + */ + public int updateDictDataType(@Param("oldDictType") String oldDictType, @Param("newDictType") String newDictType); +} diff --git a/alive-system/src/main/java/com/ruoyi/system/mapper/SysDictTypeMapper.java b/alive-system/src/main/java/com/ruoyi/system/mapper/SysDictTypeMapper.java new file mode 100644 index 0000000..25be4f4 --- /dev/null +++ b/alive-system/src/main/java/com/ruoyi/system/mapper/SysDictTypeMapper.java @@ -0,0 +1,83 @@ +package com.ruoyi.system.mapper; + +import java.util.List; +import com.ruoyi.common.core.domain.entity.SysDictType; + +/** + * 字典表 数据层 + * + * @author ruoyi + */ +public interface SysDictTypeMapper +{ + /** + * 根据条件分页查询字典类型 + * + * @param dictType 字典类型信息 + * @return 字典类型集合信息 + */ + public List selectDictTypeList(SysDictType dictType); + + /** + * 根据所有字典类型 + * + * @return 字典类型集合信息 + */ + public List selectDictTypeAll(); + + /** + * 根据字典类型ID查询信息 + * + * @param dictId 字典类型ID + * @return 字典类型 + */ + public SysDictType selectDictTypeById(Long dictId); + + /** + * 根据字典类型查询信息 + * + * @param dictType 字典类型 + * @return 字典类型 + */ + public SysDictType selectDictTypeByType(String dictType); + + /** + * 通过字典ID删除字典信息 + * + * @param dictId 字典ID + * @return 结果 + */ + public int deleteDictTypeById(Long dictId); + + /** + * 批量删除字典类型 + * + * @param ids 需要删除的数据 + * @return 结果 + */ + public int deleteDictTypeByIds(Long[] ids); + + /** + * 新增字典类型信息 + * + * @param dictType 字典类型信息 + * @return 结果 + */ + public int insertDictType(SysDictType dictType); + + /** + * 修改字典类型信息 + * + * @param dictType 字典类型信息 + * @return 结果 + */ + public int updateDictType(SysDictType dictType); + + /** + * 校验字典类型称是否唯一 + * + * @param dictType 字典类型 + * @return 结果 + */ + public SysDictType checkDictTypeUnique(String dictType); +} diff --git a/alive-system/src/main/java/com/ruoyi/system/mapper/SysMenuMapper.java b/alive-system/src/main/java/com/ruoyi/system/mapper/SysMenuMapper.java new file mode 100644 index 0000000..62361f7 --- /dev/null +++ b/alive-system/src/main/java/com/ruoyi/system/mapper/SysMenuMapper.java @@ -0,0 +1,124 @@ +package com.ruoyi.system.mapper; + +import java.util.List; +import org.apache.ibatis.annotations.Param; +import com.ruoyi.common.core.domain.entity.SysMenu; + +/** + * 菜单表 数据层 + * + * @author ruoyi + */ +public interface SysMenuMapper +{ + /** + * 查询系统所有菜单(含按钮) + * + * @return 菜单列表 + */ + public List selectMenuAll(); + + /** + * 根据用户ID查询菜单 + * + * @param userId 用户ID + * @return 菜单列表 + */ + public List selectMenuAllByUserId(Long userId); + + /** + * 查询系统正常显示菜单(不含按钮) + * + * @return 菜单列表 + */ + public List selectMenuNormalAll(); + + /** + * 根据用户ID查询菜单 + * + * @param userId 用户ID + * @return 菜单列表 + */ + public List selectMenusByUserId(Long userId); + + /** + * 根据用户ID查询权限 + * + * @param userId 用户ID + * @return 权限列表 + */ + public List selectPermsByUserId(Long userId); + + /** + * 根据角色ID查询菜单 + * + * @param roleId 角色ID + * @return 菜单列表 + */ + public List selectMenuTree(Long roleId); + + /** + * 查询系统菜单列表 + * + * @param menu 菜单信息 + * @return 菜单列表 + */ + public List selectMenuList(SysMenu menu); + + /** + * 查询系统菜单列表 + * + * @param menu 菜单信息 + * @return 菜单列表 + */ + public List selectMenuListByUserId(SysMenu menu); + + /** + * 删除菜单管理信息 + * + * @param menuId 菜单ID + * @return 结果 + */ + public int deleteMenuById(Long menuId); + + /** + * 根据菜单ID查询信息 + * + * @param menuId 菜单ID + * @return 菜单信息 + */ + public SysMenu selectMenuById(Long menuId); + + /** + * 查询菜单数量 + * + * @param parentId 菜单父ID + * @return 结果 + */ + public int selectCountMenuByParentId(Long parentId); + + /** + * 新增菜单信息 + * + * @param menu 菜单信息 + * @return 结果 + */ + public int insertMenu(SysMenu menu); + + /** + * 修改菜单信息 + * + * @param menu 菜单信息 + * @return 结果 + */ + public int updateMenu(SysMenu menu); + + /** + * 校验菜单名称是否唯一 + * + * @param menuName 菜单名称 + * @param parentId 父菜单ID + * @return 结果 + */ + public SysMenu checkMenuNameUnique(@Param("menuName") String menuName, @Param("parentId") Long parentId); +} diff --git a/alive-system/src/main/java/com/ruoyi/system/mapper/SysPostMapper.java b/alive-system/src/main/java/com/ruoyi/system/mapper/SysPostMapper.java new file mode 100644 index 0000000..188f335 --- /dev/null +++ b/alive-system/src/main/java/com/ruoyi/system/mapper/SysPostMapper.java @@ -0,0 +1,83 @@ +package com.ruoyi.system.mapper; + +import java.util.List; +import com.ruoyi.system.domain.SysPost; + +/** + * 岗位信息 数据层 + * + * @author ruoyi + */ +public interface SysPostMapper +{ + /** + * 查询岗位数据集合 + * + * @param post 岗位信息 + * @return 岗位数据集合 + */ + public List selectPostList(SysPost post); + + /** + * 查询所有岗位 + * + * @return 岗位列表 + */ + public List selectPostAll(); + + /** + * 根据用户ID查询岗位 + * + * @param userId 用户ID + * @return 岗位列表 + */ + public List selectPostsByUserId(Long userId); + + /** + * 通过岗位ID查询岗位信息 + * + * @param postId 岗位ID + * @return 角色对象信息 + */ + public SysPost selectPostById(Long postId); + + /** + * 批量删除岗位信息 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deletePostByIds(Long[] ids); + + /** + * 修改岗位信息 + * + * @param post 岗位信息 + * @return 结果 + */ + public int updatePost(SysPost post); + + /** + * 新增岗位信息 + * + * @param post 岗位信息 + * @return 结果 + */ + public int insertPost(SysPost post); + + /** + * 校验岗位名称 + * + * @param postName 岗位名称 + * @return 结果 + */ + public SysPost checkPostNameUnique(String postName); + + /** + * 校验岗位编码 + * + * @param postCode 岗位编码 + * @return 结果 + */ + public SysPost checkPostCodeUnique(String postCode); +} diff --git a/alive-system/src/main/java/com/ruoyi/system/mapper/SysRoleDeptMapper.java b/alive-system/src/main/java/com/ruoyi/system/mapper/SysRoleDeptMapper.java new file mode 100644 index 0000000..f9d3a2f --- /dev/null +++ b/alive-system/src/main/java/com/ruoyi/system/mapper/SysRoleDeptMapper.java @@ -0,0 +1,44 @@ +package com.ruoyi.system.mapper; + +import java.util.List; +import com.ruoyi.system.domain.SysRoleDept; + +/** + * 角色与部门关联表 数据层 + * + * @author ruoyi + */ +public interface SysRoleDeptMapper +{ + /** + * 通过角色ID删除角色和部门关联 + * + * @param roleId 角色ID + * @return 结果 + */ + public int deleteRoleDeptByRoleId(Long roleId); + + /** + * 批量删除角色部门关联信息 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteRoleDept(Long[] ids); + + /** + * 查询部门使用数量 + * + * @param deptId 部门ID + * @return 结果 + */ + public int selectCountRoleDeptByDeptId(Long deptId); + + /** + * 批量新增角色部门信息 + * + * @param roleDeptList 角色部门列表 + * @return 结果 + */ + public int batchRoleDept(List roleDeptList); +} diff --git a/alive-system/src/main/java/com/ruoyi/system/mapper/SysRoleMapper.java b/alive-system/src/main/java/com/ruoyi/system/mapper/SysRoleMapper.java new file mode 100644 index 0000000..78a3ec7 --- /dev/null +++ b/alive-system/src/main/java/com/ruoyi/system/mapper/SysRoleMapper.java @@ -0,0 +1,84 @@ +package com.ruoyi.system.mapper; + +import java.util.List; +import com.ruoyi.common.core.domain.entity.SysRole; + +/** + * 角色表 数据层 + * + * @author ruoyi + */ +public interface SysRoleMapper +{ + /** + * 根据条件分页查询角色数据 + * + * @param role 角色信息 + * @return 角色数据集合信息 + */ + public List selectRoleList(SysRole role); + + /** + * 根据用户ID查询角色 + * + * @param userId 用户ID + * @return 角色列表 + */ + public List selectRolesByUserId(Long userId); + + /** + * 通过角色ID查询角色 + * + * @param roleId 角色ID + * @return 角色对象信息 + */ + public SysRole selectRoleById(Long roleId); + + /** + * 通过角色ID删除角色 + * + * @param roleId 角色ID + * @return 结果 + */ + public int deleteRoleById(Long roleId); + + /** + * 批量角色用户信息 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteRoleByIds(Long[] ids); + + /** + * 修改角色信息 + * + * @param role 角色信息 + * @return 结果 + */ + public int updateRole(SysRole role); + + /** + * 新增角色信息 + * + * @param role 角色信息 + * @return 结果 + */ + public int insertRole(SysRole role); + + /** + * 校验角色名称是否唯一 + * + * @param roleName 角色名称 + * @return 角色信息 + */ + public SysRole checkRoleNameUnique(String roleName); + + /** + * 校验角色权限是否唯一 + * + * @param roleKey 角色权限 + * @return 角色信息 + */ + public SysRole checkRoleKeyUnique(String roleKey); +} diff --git a/alive-system/src/main/java/com/ruoyi/system/mapper/SysRoleMenuMapper.java b/alive-system/src/main/java/com/ruoyi/system/mapper/SysRoleMenuMapper.java new file mode 100644 index 0000000..9b88796 --- /dev/null +++ b/alive-system/src/main/java/com/ruoyi/system/mapper/SysRoleMenuMapper.java @@ -0,0 +1,44 @@ +package com.ruoyi.system.mapper; + +import java.util.List; +import com.ruoyi.system.domain.SysRoleMenu; + +/** + * 角色与菜单关联表 数据层 + * + * @author ruoyi + */ +public interface SysRoleMenuMapper +{ + /** + * 通过角色ID删除角色和菜单关联 + * + * @param roleId 角色ID + * @return 结果 + */ + public int deleteRoleMenuByRoleId(Long roleId); + + /** + * 批量删除角色菜单关联信息 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteRoleMenu(Long[] ids); + + /** + * 查询菜单使用数量 + * + * @param menuId 菜单ID + * @return 结果 + */ + public int selectCountRoleMenuByMenuId(Long menuId); + + /** + * 批量新增角色菜单信息 + * + * @param roleMenuList 角色菜单列表 + * @return 结果 + */ + public int batchRoleMenu(List roleMenuList); +} diff --git a/alive-system/src/main/java/com/ruoyi/system/mapper/SysUserMapper.java b/alive-system/src/main/java/com/ruoyi/system/mapper/SysUserMapper.java new file mode 100644 index 0000000..6ea2662 --- /dev/null +++ b/alive-system/src/main/java/com/ruoyi/system/mapper/SysUserMapper.java @@ -0,0 +1,124 @@ +package com.ruoyi.system.mapper; + +import java.util.List; +import com.ruoyi.common.core.domain.entity.SysUser; + +/** + * 用户表 数据层 + * + * @author ruoyi + */ +public interface SysUserMapper +{ + /** + * 根据条件分页查询用户列表 + * + * @param sysUser 用户信息 + * @return 用户信息集合信息 + */ + public List selectUserList(SysUser sysUser); + + /** + * 根据条件分页查询已配用户角色列表 + * + * @param user 用户信息 + * @return 用户信息集合信息 + */ + public List selectAllocatedList(SysUser user); + + /** + * 根据条件分页查询未分配用户角色列表 + * + * @param user 用户信息 + * @return 用户信息集合信息 + */ + public List selectUnallocatedList(SysUser user); + + /** + * 通过用户名查询用户 + * + * @param userName 用户名 + * @return 用户对象信息 + */ + public SysUser selectUserByLoginName(String userName); + + /** + * 通过手机号码查询用户 + * + * @param phoneNumber 手机号码 + * @return 用户对象信息 + */ + public SysUser selectUserByPhoneNumber(String phoneNumber); + + /** + * 通过邮箱查询用户 + * + * @param email 邮箱 + * @return 用户对象信息 + */ + public SysUser selectUserByEmail(String email); + + /** + * 通过用户ID查询用户 + * + * @param userId 用户ID + * @return 用户对象信息 + */ + public SysUser selectUserById(Long userId); + + /** + * 通过用户ID删除用户 + * + * @param userId 用户ID + * @return 结果 + */ + public int deleteUserById(Long userId); + + /** + * 批量删除用户信息 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteUserByIds(Long[] ids); + + /** + * 修改用户信息 + * + * @param user 用户信息 + * @return 结果 + */ + public int updateUser(SysUser user); + + /** + * 新增用户信息 + * + * @param user 用户信息 + * @return 结果 + */ + public int insertUser(SysUser user); + + /** + * 校验用户名称是否唯一 + * + * @param loginName 登录名称 + * @return 结果 + */ + public int checkLoginNameUnique(String loginName); + + /** + * 校验手机号码是否唯一 + * + * @param phonenumber 手机号码 + * @return 结果 + */ + public SysUser checkPhoneUnique(String phonenumber); + + /** + * 校验email是否唯一 + * + * @param email 用户邮箱 + * @return 结果 + */ + public SysUser checkEmailUnique(String email); +} diff --git a/alive-system/src/main/java/com/ruoyi/system/mapper/SysUserPostMapper.java b/alive-system/src/main/java/com/ruoyi/system/mapper/SysUserPostMapper.java new file mode 100644 index 0000000..d72ac45 --- /dev/null +++ b/alive-system/src/main/java/com/ruoyi/system/mapper/SysUserPostMapper.java @@ -0,0 +1,44 @@ +package com.ruoyi.system.mapper; + +import java.util.List; +import com.ruoyi.system.domain.SysUserPost; + +/** + * 用户与岗位关联表 数据层 + * + * @author ruoyi + */ +public interface SysUserPostMapper +{ + /** + * 通过用户ID删除用户和岗位关联 + * + * @param userId 用户ID + * @return 结果 + */ + public int deleteUserPostByUserId(Long userId); + + /** + * 通过岗位ID查询岗位使用数量 + * + * @param postId 岗位ID + * @return 结果 + */ + public int countUserPostById(Long postId); + + /** + * 批量删除用户和岗位关联 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteUserPost(Long[] ids); + + /** + * 批量新增用户岗位信息 + * + * @param userPostList 用户角色列表 + * @return 结果 + */ + public int batchUserPost(List userPostList); +} diff --git a/alive-system/src/main/java/com/ruoyi/system/mapper/SysUserRoleMapper.java b/alive-system/src/main/java/com/ruoyi/system/mapper/SysUserRoleMapper.java new file mode 100644 index 0000000..669d1ec --- /dev/null +++ b/alive-system/src/main/java/com/ruoyi/system/mapper/SysUserRoleMapper.java @@ -0,0 +1,70 @@ +package com.ruoyi.system.mapper; + +import java.util.List; +import org.apache.ibatis.annotations.Param; +import com.ruoyi.system.domain.SysUserRole; + +/** + * 用户与角色关联表 数据层 + * + * @author ruoyi + */ +public interface SysUserRoleMapper +{ + /** + * 通过用户ID查询用户和角色关联 + * + * @param userId 用户ID + * @return 用户和角色关联列表 + */ + public List selectUserRoleByUserId(Long userId); + + /** + * 通过用户ID删除用户和角色关联 + * + * @param userId 用户ID + * @return 结果 + */ + public int deleteUserRoleByUserId(Long userId); + + /** + * 批量删除用户和角色关联 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteUserRole(Long[] ids); + + /** + * 通过角色ID查询角色使用数量 + * + * @param roleId 角色ID + * @return 结果 + */ + public int countUserRoleByRoleId(Long roleId); + + /** + * 批量新增用户角色信息 + * + * @param userRoleList 用户角色列表 + * @return 结果 + */ + public int batchUserRole(List userRoleList); + + /** + * 删除用户和角色关联信息 + * + * @param userRole 用户和角色关联信息 + * @return 结果 + */ + public int deleteUserRoleInfo(SysUserRole userRole); + + /** + * 批量取消授权用户角色 + * + * @param roleId 角色ID + * @param userIds 需要删除的用户数据ID + * @return 结果 + */ + public int deleteUserRoleInfos(@Param("roleId") Long roleId, @Param("userIds") Long[] userIds); +} diff --git a/alive-system/src/main/java/com/ruoyi/system/service/ISysConfigService.java b/alive-system/src/main/java/com/ruoyi/system/service/ISysConfigService.java new file mode 100644 index 0000000..21ec83f --- /dev/null +++ b/alive-system/src/main/java/com/ruoyi/system/service/ISysConfigService.java @@ -0,0 +1,82 @@ +package com.ruoyi.system.service; + +import java.util.List; +import com.ruoyi.system.domain.SysConfig; + +/** + * 参数配置 服务层 + * + * @author ruoyi + */ +public interface ISysConfigService +{ + /** + * 查询参数配置信息 + * + * @param configId 参数配置ID + * @return 参数配置信息 + */ + public SysConfig selectConfigById(Long configId); + + /** + * 根据键名查询参数配置信息 + * + * @param configKey 参数键名 + * @return 参数键值 + */ + public String selectConfigByKey(String configKey); + + /** + * 查询参数配置列表 + * + * @param config 参数配置信息 + * @return 参数配置集合 + */ + public List selectConfigList(SysConfig config); + + /** + * 新增参数配置 + * + * @param config 参数配置信息 + * @return 结果 + */ + public int insertConfig(SysConfig config); + + /** + * 修改参数配置 + * + * @param config 参数配置信息 + * @return 结果 + */ + public int updateConfig(SysConfig config); + + /** + * 批量删除参数配置信息 + * + * @param ids 需要删除的数据ID + */ + public void deleteConfigByIds(String ids); + + /** + * 加载参数缓存数据 + */ + public void loadingConfigCache(); + + /** + * 清空参数缓存数据 + */ + public void clearConfigCache(); + + /** + * 重置参数缓存数据 + */ + public void resetConfigCache(); + + /** + * 校验参数键名是否唯一 + * + * @param config 参数信息 + * @return 结果 + */ + public String checkConfigKeyUnique(SysConfig config); +} diff --git a/alive-system/src/main/java/com/ruoyi/system/service/ISysDeptService.java b/alive-system/src/main/java/com/ruoyi/system/service/ISysDeptService.java new file mode 100644 index 0000000..19a5fca --- /dev/null +++ b/alive-system/src/main/java/com/ruoyi/system/service/ISysDeptService.java @@ -0,0 +1,117 @@ +package com.ruoyi.system.service; + +import java.util.List; +import com.ruoyi.common.core.domain.Ztree; +import com.ruoyi.common.core.domain.entity.SysDept; +import com.ruoyi.common.core.domain.entity.SysRole; + +/** + * 部门管理 服务层 + * + * @author ruoyi + */ +public interface ISysDeptService +{ + /** + * 查询部门管理数据 + * + * @param dept 部门信息 + * @return 部门信息集合 + */ + public List selectDeptList(SysDept dept); + + /** + * 查询部门管理树 + * + * @param dept 部门信息 + * @return 所有部门信息 + */ + public List selectDeptTree(SysDept dept); + + /** + * 查询部门管理树(排除下级) + * + * @param dept 部门信息 + * @return 所有部门信息 + */ + public List selectDeptTreeExcludeChild(SysDept dept); + + /** + * 根据角色ID查询菜单 + * + * @param role 角色对象 + * @return 菜单列表 + */ + public List roleDeptTreeData(SysRole role); + + /** + * 查询部门人数 + * + * @param parentId 父部门ID + * @return 结果 + */ + public int selectDeptCount(Long parentId); + + /** + * 查询部门是否存在用户 + * + * @param deptId 部门ID + * @return 结果 true 存在 false 不存在 + */ + public boolean checkDeptExistUser(Long deptId); + + /** + * 删除部门管理信息 + * + * @param deptId 部门ID + * @return 结果 + */ + public int deleteDeptById(Long deptId); + + /** + * 新增保存部门信息 + * + * @param dept 部门信息 + * @return 结果 + */ + public int insertDept(SysDept dept); + + /** + * 修改保存部门信息 + * + * @param dept 部门信息 + * @return 结果 + */ + public int updateDept(SysDept dept); + + /** + * 根据部门ID查询信息 + * + * @param deptId 部门ID + * @return 部门信息 + */ + public SysDept selectDeptById(Long deptId); + + /** + * 根据ID查询所有子部门(正常状态) + * + * @param deptId 部门ID + * @return 子部门数 + */ + public int selectNormalChildrenDeptById(Long deptId); + + /** + * 校验部门名称是否唯一 + * + * @param dept 部门信息 + * @return 结果 + */ + public String checkDeptNameUnique(SysDept dept); + + /** + * 校验部门是否有数据权限 + * + * @param deptId 部门id + */ + public void checkDeptDataScope(Long deptId); +} diff --git a/alive-system/src/main/java/com/ruoyi/system/service/ISysDictDataService.java b/alive-system/src/main/java/com/ruoyi/system/service/ISysDictDataService.java new file mode 100644 index 0000000..efb6bdd --- /dev/null +++ b/alive-system/src/main/java/com/ruoyi/system/service/ISysDictDataService.java @@ -0,0 +1,60 @@ +package com.ruoyi.system.service; + +import java.util.List; +import com.ruoyi.common.core.domain.entity.SysDictData; + +/** + * 字典 业务层 + * + * @author ruoyi + */ +public interface ISysDictDataService +{ + /** + * 根据条件分页查询字典数据 + * + * @param dictData 字典数据信息 + * @return 字典数据集合信息 + */ + public List selectDictDataList(SysDictData dictData); + + /** + * 根据字典类型和字典键值查询字典数据信息 + * + * @param dictType 字典类型 + * @param dictValue 字典键值 + * @return 字典标签 + */ + public String selectDictLabel(String dictType, String dictValue); + + /** + * 根据字典数据ID查询信息 + * + * @param dictCode 字典数据ID + * @return 字典数据 + */ + public SysDictData selectDictDataById(Long dictCode); + + /** + * 批量删除字典数据 + * + * @param ids 需要删除的数据 + */ + public void deleteDictDataByIds(String ids); + + /** + * 新增保存字典数据信息 + * + * @param dictData 字典数据信息 + * @return 结果 + */ + public int insertDictData(SysDictData dictData); + + /** + * 修改保存字典数据信息 + * + * @param dictData 字典数据信息 + * @return 结果 + */ + public int updateDictData(SysDictData dictData); +} diff --git a/alive-system/src/main/java/com/ruoyi/system/service/ISysDictTypeService.java b/alive-system/src/main/java/com/ruoyi/system/service/ISysDictTypeService.java new file mode 100644 index 0000000..b9c2635 --- /dev/null +++ b/alive-system/src/main/java/com/ruoyi/system/service/ISysDictTypeService.java @@ -0,0 +1,107 @@ +package com.ruoyi.system.service; + +import java.util.List; +import com.ruoyi.common.core.domain.Ztree; +import com.ruoyi.common.core.domain.entity.SysDictData; +import com.ruoyi.common.core.domain.entity.SysDictType; + +/** + * 字典 业务层 + * + * @author ruoyi + */ +public interface ISysDictTypeService +{ + /** + * 根据条件分页查询字典类型 + * + * @param dictType 字典类型信息 + * @return 字典类型集合信息 + */ + public List selectDictTypeList(SysDictType dictType); + + /** + * 根据所有字典类型 + * + * @return 字典类型集合信息 + */ + public List selectDictTypeAll(); + + /** + * 根据字典类型查询字典数据 + * + * @param dictType 字典类型 + * @return 字典数据集合信息 + */ + public List selectDictDataByType(String dictType); + + /** + * 根据字典类型ID查询信息 + * + * @param dictId 字典类型ID + * @return 字典类型 + */ + public SysDictType selectDictTypeById(Long dictId); + + /** + * 根据字典类型查询信息 + * + * @param dictType 字典类型 + * @return 字典类型 + */ + public SysDictType selectDictTypeByType(String dictType); + + /** + * 批量删除字典类型 + * + * @param ids 需要删除的数据 + */ + public void deleteDictTypeByIds(String ids); + + /** + * 加载字典缓存数据 + */ + public void loadingDictCache(); + + /** + * 清空字典缓存数据 + */ + public void clearDictCache(); + + /** + * 重置字典缓存数据 + */ + public void resetDictCache(); + + /** + * 新增保存字典类型信息 + * + * @param dictType 字典类型信息 + * @return 结果 + */ + public int insertDictType(SysDictType dictType); + + /** + * 修改保存字典类型信息 + * + * @param dictType 字典类型信息 + * @return 结果 + */ + public int updateDictType(SysDictType dictType); + + /** + * 校验字典类型称是否唯一 + * + * @param dictType 字典类型 + * @return 结果 + */ + public String checkDictTypeUnique(SysDictType dictType); + + /** + * 查询字典类型树 + * + * @param dictType 字典类型 + * @return 所有字典类型 + */ + public List selectDictTree(SysDictType dictType); +} diff --git a/alive-system/src/main/java/com/ruoyi/system/service/ISysLogininforService.java b/alive-system/src/main/java/com/ruoyi/system/service/ISysLogininforService.java new file mode 100644 index 0000000..ea99dff --- /dev/null +++ b/alive-system/src/main/java/com/ruoyi/system/service/ISysLogininforService.java @@ -0,0 +1,40 @@ +package com.ruoyi.system.service; + +import java.util.List; +import com.ruoyi.system.domain.SysLogininfor; + +/** + * 系统访问日志情况信息 服务层 + * + * @author ruoyi + */ +public interface ISysLogininforService +{ + /** + * 新增系统登录日志 + * + * @param logininfor 访问日志对象 + */ + public void insertLogininfor(SysLogininfor logininfor); + + /** + * 查询系统登录日志集合 + * + * @param logininfor 访问日志对象 + * @return 登录记录集合 + */ + public List selectLogininforList(SysLogininfor logininfor); + + /** + * 批量删除系统登录日志 + * + * @param ids 需要删除的数据 + * @return 结果 + */ + public int deleteLogininforByIds(String ids); + + /** + * 清空系统登录日志 + */ + public void cleanLogininfor(); +} diff --git a/alive-system/src/main/java/com/ruoyi/system/service/ISysMenuService.java b/alive-system/src/main/java/com/ruoyi/system/service/ISysMenuService.java new file mode 100644 index 0000000..237d06f --- /dev/null +++ b/alive-system/src/main/java/com/ruoyi/system/service/ISysMenuService.java @@ -0,0 +1,131 @@ +package com.ruoyi.system.service; + +import java.util.List; +import java.util.Map; +import java.util.Set; +import com.ruoyi.common.core.domain.Ztree; +import com.ruoyi.common.core.domain.entity.SysMenu; +import com.ruoyi.common.core.domain.entity.SysRole; +import com.ruoyi.common.core.domain.entity.SysUser; + +/** + * 菜单 业务层 + * + * @author ruoyi + */ +public interface ISysMenuService +{ + /** + * 根据用户ID查询菜单 + * + * @param user 用户信息 + * @return 菜单列表 + */ + public List selectMenusByUser(SysUser user); + + /** + * 查询系统菜单列表 + * + * @param menu 菜单信息 + * @param userId 用户ID + * @return 菜单列表 + */ + public List selectMenuList(SysMenu menu, Long userId); + + /** + * 查询菜单集合 + * + * @param userId 用户ID + * @return 所有菜单信息 + */ + public List selectMenuAll(Long userId); + + /** + * 根据用户ID查询权限 + * + * @param userId 用户ID + * @return 权限列表 + */ + public Set selectPermsByUserId(Long userId); + + /** + * 根据角色ID查询菜单 + * + * @param role 角色对象 + * @param userId 用户ID + * @return 菜单列表 + */ + public List roleMenuTreeData(SysRole role, Long userId); + + /** + * 查询所有菜单信息 + * + * @param userId 用户ID + * @return 菜单列表 + */ + public List menuTreeData(Long userId); + + /** + * 查询系统所有权限 + * + * @param userId 用户ID + * @return 权限列表 + */ + public Map selectPermsAll(Long userId); + + /** + * 删除菜单管理信息 + * + * @param menuId 菜单ID + * @return 结果 + */ + public int deleteMenuById(Long menuId); + + /** + * 根据菜单ID查询信息 + * + * @param menuId 菜单ID + * @return 菜单信息 + */ + public SysMenu selectMenuById(Long menuId); + + /** + * 查询菜单数量 + * + * @param parentId 菜单父ID + * @return 结果 + */ + public int selectCountMenuByParentId(Long parentId); + + /** + * 查询菜单使用数量 + * + * @param menuId 菜单ID + * @return 结果 + */ + public int selectCountRoleMenuByMenuId(Long menuId); + + /** + * 新增保存菜单信息 + * + * @param menu 菜单信息 + * @return 结果 + */ + public int insertMenu(SysMenu menu); + + /** + * 修改保存菜单信息 + * + * @param menu 菜单信息 + * @return 结果 + */ + public int updateMenu(SysMenu menu); + + /** + * 校验菜单名称是否唯一 + * + * @param menu 菜单信息 + * @return 结果 + */ + public String checkMenuNameUnique(SysMenu menu); +} diff --git a/alive-system/src/main/java/com/ruoyi/system/service/ISysNoticeService.java b/alive-system/src/main/java/com/ruoyi/system/service/ISysNoticeService.java new file mode 100644 index 0000000..6398b5a --- /dev/null +++ b/alive-system/src/main/java/com/ruoyi/system/service/ISysNoticeService.java @@ -0,0 +1,52 @@ +package com.ruoyi.system.service; + +import java.util.List; +import com.ruoyi.system.domain.SysNotice; + +/** + * 公告 服务层 + * + * @author ruoyi + */ +public interface ISysNoticeService +{ + /** + * 查询公告信息 + * + * @param noticeId 公告ID + * @return 公告信息 + */ + public SysNotice selectNoticeById(Long noticeId); + + /** + * 查询公告列表 + * + * @param notice 公告信息 + * @return 公告集合 + */ + public List selectNoticeList(SysNotice notice); + + /** + * 新增公告 + * + * @param notice 公告信息 + * @return 结果 + */ + public int insertNotice(SysNotice notice); + + /** + * 修改公告 + * + * @param notice 公告信息 + * @return 结果 + */ + public int updateNotice(SysNotice notice); + + /** + * 删除公告信息 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteNoticeByIds(String ids); +} diff --git a/alive-system/src/main/java/com/ruoyi/system/service/ISysOperLogService.java b/alive-system/src/main/java/com/ruoyi/system/service/ISysOperLogService.java new file mode 100644 index 0000000..3cdc5d2 --- /dev/null +++ b/alive-system/src/main/java/com/ruoyi/system/service/ISysOperLogService.java @@ -0,0 +1,48 @@ +package com.ruoyi.system.service; + +import java.util.List; +import com.ruoyi.system.domain.SysOperLog; + +/** + * 操作日志 服务层 + * + * @author ruoyi + */ +public interface ISysOperLogService +{ + /** + * 新增操作日志 + * + * @param operLog 操作日志对象 + */ + public void insertOperlog(SysOperLog operLog); + + /** + * 查询系统操作日志集合 + * + * @param operLog 操作日志对象 + * @return 操作日志集合 + */ + public List selectOperLogList(SysOperLog operLog); + + /** + * 批量删除系统操作日志 + * + * @param ids 需要删除的数据 + * @return 结果 + */ + public int deleteOperLogByIds(String ids); + + /** + * 查询操作日志详细 + * + * @param operId 操作ID + * @return 操作日志对象 + */ + public SysOperLog selectOperLogById(Long operId); + + /** + * 清空操作日志 + */ + public void cleanOperLog(); +} diff --git a/alive-system/src/main/java/com/ruoyi/system/service/ISysPostService.java b/alive-system/src/main/java/com/ruoyi/system/service/ISysPostService.java new file mode 100644 index 0000000..eaacd6b --- /dev/null +++ b/alive-system/src/main/java/com/ruoyi/system/service/ISysPostService.java @@ -0,0 +1,91 @@ +package com.ruoyi.system.service; + +import java.util.List; +import com.ruoyi.system.domain.SysPost; + +/** + * 岗位信息 服务层 + * + * @author ruoyi + */ +public interface ISysPostService +{ + /** + * 查询岗位信息集合 + * + * @param post 岗位信息 + * @return 岗位信息集合 + */ + public List selectPostList(SysPost post); + + /** + * 查询所有岗位 + * + * @return 岗位列表 + */ + public List selectPostAll(); + + /** + * 根据用户ID查询岗位 + * + * @param userId 用户ID + * @return 岗位列表 + */ + public List selectPostsByUserId(Long userId); + + /** + * 通过岗位ID查询岗位信息 + * + * @param postId 岗位ID + * @return 角色对象信息 + */ + public SysPost selectPostById(Long postId); + + /** + * 批量删除岗位信息 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deletePostByIds(String ids); + + /** + * 新增保存岗位信息 + * + * @param post 岗位信息 + * @return 结果 + */ + public int insertPost(SysPost post); + + /** + * 修改保存岗位信息 + * + * @param post 岗位信息 + * @return 结果 + */ + public int updatePost(SysPost post); + + /** + * 通过岗位ID查询岗位使用数量 + * + * @param postId 岗位ID + * @return 结果 + */ + public int countUserPostById(Long postId); + + /** + * 校验岗位名称 + * + * @param post 岗位信息 + * @return 结果 + */ + public String checkPostNameUnique(SysPost post); + + /** + * 校验岗位编码 + * + * @param post 岗位信息 + * @return 结果 + */ + public String checkPostCodeUnique(SysPost post); +} diff --git a/alive-system/src/main/java/com/ruoyi/system/service/ISysRoleService.java b/alive-system/src/main/java/com/ruoyi/system/service/ISysRoleService.java new file mode 100644 index 0000000..d2fc3a7 --- /dev/null +++ b/alive-system/src/main/java/com/ruoyi/system/service/ISysRoleService.java @@ -0,0 +1,166 @@ +package com.ruoyi.system.service; + +import java.util.List; +import java.util.Set; +import com.ruoyi.common.core.domain.entity.SysRole; +import com.ruoyi.system.domain.SysUserRole; + +/** + * 角色业务层 + * + * @author ruoyi + */ +public interface ISysRoleService +{ + /** + * 根据条件分页查询角色数据 + * + * @param role 角色信息 + * @return 角色数据集合信息 + */ + public List selectRoleList(SysRole role); + + /** + * 根据用户ID查询角色列表 + * + * @param userId 用户ID + * @return 权限列表 + */ + public Set selectRoleKeys(Long userId); + + /** + * 根据用户ID查询角色权限 + * + * @param userId 用户ID + * @return 角色列表 + */ + public List selectRolesByUserId(Long userId); + + /** + * 查询所有角色 + * + * @return 角色列表 + */ + public List selectRoleAll(); + + /** + * 通过角色ID查询角色 + * + * @param roleId 角色ID + * @return 角色对象信息 + */ + public SysRole selectRoleById(Long roleId); + + /** + * 通过角色ID删除角色 + * + * @param roleId 角色ID + * @return 结果 + */ + public boolean deleteRoleById(Long roleId); + + /** + * 批量删除角色用户信息 + * + * @param ids 需要删除的数据ID + * @return 结果 + * @throws Exception 异常 + */ + public int deleteRoleByIds(String ids); + + /** + * 新增保存角色信息 + * + * @param role 角色信息 + * @return 结果 + */ + public int insertRole(SysRole role); + + /** + * 修改保存角色信息 + * + * @param role 角色信息 + * @return 结果 + */ + public int updateRole(SysRole role); + + /** + * 修改数据权限信息 + * + * @param role 角色信息 + * @return 结果 + */ + public int authDataScope(SysRole role); + + /** + * 校验角色名称是否唯一 + * + * @param role 角色信息 + * @return 结果 + */ + public String checkRoleNameUnique(SysRole role); + + /** + * 校验角色权限是否唯一 + * + * @param role 角色信息 + * @return 结果 + */ + public String checkRoleKeyUnique(SysRole role); + + /** + * 校验角色是否允许操作 + * + * @param role 角色信息 + */ + public void checkRoleAllowed(SysRole role); + + /** + * 校验角色是否有数据权限 + * + * @param roleId 角色id + */ + public void checkRoleDataScope(Long roleId); + + /** + * 通过角色ID查询角色使用数量 + * + * @param roleId 角色ID + * @return 结果 + */ + public int countUserRoleByRoleId(Long roleId); + + /** + * 角色状态修改 + * + * @param role 角色信息 + * @return 结果 + */ + public int changeStatus(SysRole role); + + /** + * 取消授权用户角色 + * + * @param userRole 用户和角色关联信息 + * @return 结果 + */ + public int deleteAuthUser(SysUserRole userRole); + + /** + * 批量取消授权用户角色 + * + * @param roleId 角色ID + * @param userIds 需要删除的用户数据ID + * @return 结果 + */ + public int deleteAuthUsers(Long roleId, String userIds); + + /** + * 批量选择授权用户角色 + * + * @param roleId 角色ID + * @param userIds 需要删除的用户数据ID + * @return 结果 + */ + public int insertAuthUsers(Long roleId, String userIds); +} diff --git a/alive-system/src/main/java/com/ruoyi/system/service/ISysUserOnlineService.java b/alive-system/src/main/java/com/ruoyi/system/service/ISysUserOnlineService.java new file mode 100644 index 0000000..50c99a1 --- /dev/null +++ b/alive-system/src/main/java/com/ruoyi/system/service/ISysUserOnlineService.java @@ -0,0 +1,75 @@ +package com.ruoyi.system.service; + +import java.util.Date; +import java.util.List; +import com.ruoyi.system.domain.SysUserOnline; + +/** + * 在线用户 服务层 + * + * @author ruoyi + */ +public interface ISysUserOnlineService +{ + /** + * 通过会话序号查询信息 + * + * @param sessionId 会话ID + * @return 在线用户信息 + */ + public SysUserOnline selectOnlineById(String sessionId); + + /** + * 通过会话序号删除信息 + * + * @param sessionId 会话ID + * @return 在线用户信息 + */ + public void deleteOnlineById(String sessionId); + + /** + * 通过会话序号删除信息 + * + * @param sessions 会话ID集合 + * @return 在线用户信息 + */ + public void batchDeleteOnline(List sessions); + + /** + * 保存会话信息 + * + * @param online 会话信息 + */ + public void saveOnline(SysUserOnline online); + + /** + * 查询会话集合 + * + * @param userOnline 分页参数 + * @return 会话集合 + */ + public List selectUserOnlineList(SysUserOnline userOnline); + + /** + * 强退用户 + * + * @param sessionId 会话ID + */ + public void forceLogout(String sessionId); + + /** + * 清理用户缓存 + * + * @param loginName 登录名称 + * @param sessionId 会话ID + */ + public void removeUserCache(String loginName, String sessionId); + + /** + * 查询会话集合 + * + * @param expiredDate 有效期 + * @return 会话集合 + */ + public List selectOnlineByExpired(Date expiredDate); +} diff --git a/alive-system/src/main/java/com/ruoyi/system/service/ISysUserService.java b/alive-system/src/main/java/com/ruoyi/system/service/ISysUserService.java new file mode 100644 index 0000000..7832165 --- /dev/null +++ b/alive-system/src/main/java/com/ruoyi/system/service/ISysUserService.java @@ -0,0 +1,214 @@ +package com.ruoyi.system.service; + +import java.util.List; +import com.ruoyi.common.core.domain.entity.SysUser; +import com.ruoyi.system.domain.SysUserRole; + +/** + * 用户 业务层 + * + * @author ruoyi + */ +public interface ISysUserService +{ + /** + * 根据条件分页查询用户列表 + * + * @param user 用户信息 + * @return 用户信息集合信息 + */ + public List selectUserList(SysUser user); + + /** + * 根据条件分页查询已分配用户角色列表 + * + * @param user 用户信息 + * @return 用户信息集合信息 + */ + public List selectAllocatedList(SysUser user); + + /** + * 根据条件分页查询未分配用户角色列表 + * + * @param user 用户信息 + * @return 用户信息集合信息 + */ + public List selectUnallocatedList(SysUser user); + + /** + * 通过用户名查询用户 + * + * @param userName 用户名 + * @return 用户对象信息 + */ + public SysUser selectUserByLoginName(String userName); + + /** + * 通过手机号码查询用户 + * + * @param phoneNumber 手机号码 + * @return 用户对象信息 + */ + public SysUser selectUserByPhoneNumber(String phoneNumber); + + /** + * 通过邮箱查询用户 + * + * @param email 邮箱 + * @return 用户对象信息 + */ + public SysUser selectUserByEmail(String email); + + /** + * 通过用户ID查询用户 + * + * @param userId 用户ID + * @return 用户对象信息 + */ + public SysUser selectUserById(Long userId); + + /** + * 通过用户ID查询用户和角色关联 + * + * @param userId 用户ID + * @return 用户和角色关联列表 + */ + public List selectUserRoleByUserId(Long userId); + + /** + * 通过用户ID删除用户 + * + * @param userId 用户ID + * @return 结果 + */ + public int deleteUserById(Long userId); + + /** + * 批量删除用户信息 + * + * @param ids 需要删除的数据ID + * @return 结果 + * @throws Exception 异常 + */ + public int deleteUserByIds(String ids); + + /** + * 保存用户信息 + * + * @param user 用户信息 + * @return 结果 + */ + public int insertUser(SysUser user); + + /** + * 注册用户信息 + * + * @param user 用户信息 + * @return 结果 + */ + public boolean registerUser(SysUser user); + + /** + * 保存用户信息 + * + * @param user 用户信息 + * @return 结果 + */ + public int updateUser(SysUser user); + + /** + * 修改用户详细信息 + * + * @param user 用户信息 + * @return 结果 + */ + public int updateUserInfo(SysUser user); + + /** + * 用户授权角色 + * + * @param userId 用户ID + * @param roleIds 角色组 + */ + public void insertUserAuth(Long userId, Long[] roleIds); + + /** + * 修改用户密码信息 + * + * @param user 用户信息 + * @return 结果 + */ + public int resetUserPwd(SysUser user); + + /** + * 校验用户名称是否唯一 + * + * @param loginName 登录名称 + * @return 结果 + */ + public String checkLoginNameUnique(String loginName); + + /** + * 校验手机号码是否唯一 + * + * @param user 用户信息 + * @return 结果 + */ + public String checkPhoneUnique(SysUser user); + + /** + * 校验email是否唯一 + * + * @param user 用户信息 + * @return 结果 + */ + public String checkEmailUnique(SysUser user); + + /** + * 校验用户是否允许操作 + * + * @param user 用户信息 + */ + public void checkUserAllowed(SysUser user); + + /** + * 校验用户是否有数据权限 + * + * @param userId 用户id + */ + public void checkUserDataScope(Long userId); + + /** + * 根据用户ID查询用户所属角色组 + * + * @param userId 用户ID + * @return 结果 + */ + public String selectUserRoleGroup(Long userId); + + /** + * 根据用户ID查询用户所属岗位组 + * + * @param userId 用户ID + * @return 结果 + */ + public String selectUserPostGroup(Long userId); + + /** + * 导入用户数据 + * + * @param userList 用户数据列表 + * @param isUpdateSupport 是否更新支持,如果已存在,则进行更新数据 + * @param operName 操作用户 + * @return 结果 + */ + public String importUser(List userList, Boolean isUpdateSupport, String operName); + + /** + * 用户状态修改 + * + * @param user 用户信息 + * @return 结果 + */ + public int changeStatus(SysUser user); +} diff --git a/alive-system/src/main/java/com/ruoyi/system/service/impl/SysConfigServiceImpl.java b/alive-system/src/main/java/com/ruoyi/system/service/impl/SysConfigServiceImpl.java new file mode 100644 index 0000000..0d3d004 --- /dev/null +++ b/alive-system/src/main/java/com/ruoyi/system/service/impl/SysConfigServiceImpl.java @@ -0,0 +1,209 @@ +package com.ruoyi.system.service.impl; + +import java.util.ArrayList; +import java.util.List; +import javax.annotation.PostConstruct; +import org.springframework.stereotype.Service; +import com.ruoyi.common.constant.Constants; +import com.ruoyi.common.constant.UserConstants; +import com.ruoyi.common.core.text.Convert; +import com.ruoyi.common.utils.CacheUtils; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.system.domain.SysConfig; +import com.ruoyi.system.service.ISysConfigService; + +/** + * 参数配置 服务层实现 + * + * @author ruoyi + */ +@Service +public class SysConfigServiceImpl implements ISysConfigService +{ + + /** + * 项目启动时,初始化参数到缓存 + */ + @PostConstruct + public void init() + { + loadingConfigCache(); + } + + /** + * 查询参数配置信息 + * + * @param configId 参数配置ID + * @return 参数配置信息 + */ + @Override + public SysConfig selectConfigById(Long configId) + { + SysConfig config = new SysConfig(); + config.setConfigId(configId); + return new SysConfig(); + } + + /** + * 根据键名查询参数配置信息 + * + * @param configKey 参数key + * @return 参数键值 + */ + @Override + public String selectConfigByKey(String configKey) + { + String configValue = Convert.toStr(CacheUtils.get(getCacheName(), getCacheKey(configKey))); + if (StringUtils.isNotEmpty(configValue)) + { + return configValue; + } + SysConfig config = new SysConfig(); + config.setConfigKey(configKey); + SysConfig retConfig = null; + if (StringUtils.isNotNull(retConfig)) + { + CacheUtils.put(getCacheName(), getCacheKey(configKey), retConfig.getConfigValue()); + return retConfig.getConfigValue(); + } + return StringUtils.EMPTY; + } + + /** + * 查询参数配置列表 + * + * @param config 参数配置信息 + * @return 参数配置集合 + */ + @Override + public List selectConfigList(SysConfig config) + { + return new ArrayList<>(); + } + + /** + * 新增参数配置 + * + * @param config 参数配置信息 + * @return 结果 + */ + @Override + public int insertConfig(SysConfig config) + { + /*int row = configMapper.insertConfig(config); + if (row > 0) + { + CacheUtils.put(getCacheName(), getCacheKey(config.getConfigKey()), config.getConfigValue()); + }*/ + return 1; + } + + /** + * 修改参数配置 + * + * @param config 参数配置信息 + * @return 结果 + */ + @Override + public int updateConfig(SysConfig config) + { + /*int row = configMapper.updateConfig(config); + if (row > 0) + { + CacheUtils.put(getCacheName(), getCacheKey(config.getConfigKey()), config.getConfigValue()); + }*/ + return 1; + } + + /** + * 批量删除参数配置对象 + * + * @param ids 需要删除的数据ID + */ + @Override + public void deleteConfigByIds(String ids) + { + /*Long[] configIds = Convert.toLongArray(ids); + for (Long configId : configIds) + { + SysConfig config = selectConfigById(configId); + if (StringUtils.equals(UserConstants.YES, config.getConfigType())) + { + throw new ServiceException(String.format("内置参数【%1$s】不能删除 ", config.getConfigKey())); + } + configMapper.deleteConfigById(configId); + CacheUtils.remove(getCacheName(), getCacheKey(config.getConfigKey())); + }*/ + } + + /** + * 加载参数缓存数据 + */ + @Override + public void loadingConfigCache() + { + /*List configsList = configMapper.selectConfigList(new SysConfig()); + for (SysConfig config : configsList) + { + CacheUtils.put(getCacheName(), getCacheKey(config.getConfigKey()), config.getConfigValue()); + }*/ + } + + /** + * 清空参数缓存数据 + */ + @Override + public void clearConfigCache() + { + CacheUtils.removeAll(getCacheName()); + } + + /** + * 重置参数缓存数据 + */ + @Override + public void resetConfigCache() + { + clearConfigCache(); + loadingConfigCache(); + } + + /** + * 校验参数键名是否唯一 + * + * @param config 参数配置信息 + * @return 结果 + */ + @Override + public String checkConfigKeyUnique(SysConfig config) + { + /*Long configId = StringUtils.isNull(config.getConfigId()) ? -1L : config.getConfigId(); + SysConfig info = configMapper.checkConfigKeyUnique(config.getConfigKey()); + if (StringUtils.isNotNull(info) && info.getConfigId().longValue() != configId.longValue()) + { + return UserConstants.CONFIG_KEY_NOT_UNIQUE; + }*/ + return UserConstants.CONFIG_KEY_UNIQUE; + } + + /** + * 获取cache name + * + * @return 缓存名 + */ + private String getCacheName() + { + return Constants.SYS_CONFIG_CACHE; + } + + /** + * 设置cache key + * + * @param configKey 参数键 + * @return 缓存键key + */ + private String getCacheKey(String configKey) + { + return Constants.SYS_CONFIG_KEY + configKey; + } +} diff --git a/alive-system/src/main/java/com/ruoyi/system/service/impl/SysDeptServiceImpl.java b/alive-system/src/main/java/com/ruoyi/system/service/impl/SysDeptServiceImpl.java new file mode 100644 index 0000000..b8c7802 --- /dev/null +++ b/alive-system/src/main/java/com/ruoyi/system/service/impl/SysDeptServiceImpl.java @@ -0,0 +1,335 @@ +package com.ruoyi.system.service.impl; + +import java.util.ArrayList; +import java.util.Iterator; +import java.util.List; +import org.apache.commons.lang3.ArrayUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; +import com.ruoyi.common.annotation.DataScope; +import com.ruoyi.common.constant.UserConstants; +import com.ruoyi.common.core.domain.Ztree; +import com.ruoyi.common.core.domain.entity.SysDept; +import com.ruoyi.common.core.domain.entity.SysRole; +import com.ruoyi.common.core.domain.entity.SysUser; +import com.ruoyi.common.core.text.Convert; +import com.ruoyi.common.exception.ServiceException; +import com.ruoyi.common.utils.ShiroUtils; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.common.utils.spring.SpringUtils; +import com.ruoyi.system.mapper.SysDeptMapper; +import com.ruoyi.system.service.ISysDeptService; + +/** + * 部门管理 服务实现 + * + * @author ruoyi + */ +@Service +public class SysDeptServiceImpl implements ISysDeptService +{ + @Autowired + private SysDeptMapper deptMapper; + + /** + * 查询部门管理数据 + * + * @param dept 部门信息 + * @return 部门信息集合 + */ + @Override + @DataScope(deptAlias = "d") + public List selectDeptList(SysDept dept) + { + return deptMapper.selectDeptList(dept); + } + + /** + * 查询部门管理树 + * + * @param dept 部门信息 + * @return 所有部门信息 + */ + @Override + @DataScope(deptAlias = "d") + public List selectDeptTree(SysDept dept) + { + List deptList = deptMapper.selectDeptList(dept); + List ztrees = initZtree(deptList); + return ztrees; + } + + /** + * 查询部门管理树(排除下级) + * + * @param deptId 部门ID + * @return 所有部门信息 + */ + @Override + @DataScope(deptAlias = "d") + public List selectDeptTreeExcludeChild(SysDept dept) + { + Long excludeId = dept.getExcludeId(); + List deptList = deptMapper.selectDeptList(dept); + Iterator it = deptList.iterator(); + while (it.hasNext()) + { + SysDept d = (SysDept) it.next(); + if (d.getDeptId().intValue() == excludeId + || ArrayUtils.contains(StringUtils.split(d.getAncestors(), ","), excludeId + "")) + { + it.remove(); + } + } + List ztrees = initZtree(deptList); + return ztrees; + } + + /** + * 根据角色ID查询部门(数据权限) + * + * @param role 角色对象 + * @return 部门列表(数据权限) + */ + @Override + public List roleDeptTreeData(SysRole role) + { + Long roleId = role.getRoleId(); + List ztrees = new ArrayList(); + List deptList = selectDeptList(new SysDept()); + if (StringUtils.isNotNull(roleId)) + { + List roleDeptList = deptMapper.selectRoleDeptTree(roleId); + ztrees = initZtree(deptList, roleDeptList); + } + else + { + ztrees = initZtree(deptList); + } + return ztrees; + } + + /** + * 对象转部门树 + * + * @param deptList 部门列表 + * @return 树结构列表 + */ + public List initZtree(List deptList) + { + return initZtree(deptList, null); + } + + /** + * 对象转部门树 + * + * @param deptList 部门列表 + * @param roleDeptList 角色已存在菜单列表 + * @return 树结构列表 + */ + public List initZtree(List deptList, List roleDeptList) + { + + List ztrees = new ArrayList(); + boolean isCheck = StringUtils.isNotNull(roleDeptList); + for (SysDept dept : deptList) + { + if (UserConstants.DEPT_NORMAL.equals(dept.getStatus())) + { + Ztree ztree = new Ztree(); + ztree.setId(dept.getDeptId()); + ztree.setpId(dept.getParentId()); + ztree.setName(dept.getDeptName()); + ztree.setTitle(dept.getDeptName()); + if (isCheck) + { + ztree.setChecked(roleDeptList.contains(dept.getDeptId() + dept.getDeptName())); + } + ztrees.add(ztree); + } + } + return ztrees; + } + + /** + * 查询部门人数 + * + * @param parentId 部门ID + * @return 结果 + */ + @Override + public int selectDeptCount(Long parentId) + { + SysDept dept = new SysDept(); + dept.setParentId(parentId); + return deptMapper.selectDeptCount(dept); + } + + /** + * 查询部门是否存在用户 + * + * @param deptId 部门ID + * @return 结果 true 存在 false 不存在 + */ + @Override + public boolean checkDeptExistUser(Long deptId) + { + int result = deptMapper.checkDeptExistUser(deptId); + return result > 0 ? true : false; + } + + /** + * 删除部门管理信息 + * + * @param deptId 部门ID + * @return 结果 + */ + @Override + public int deleteDeptById(Long deptId) + { + return deptMapper.deleteDeptById(deptId); + } + + /** + * 新增保存部门信息 + * + * @param dept 部门信息 + * @return 结果 + */ + @Override + public int insertDept(SysDept dept) + { + SysDept info = deptMapper.selectDeptById(dept.getParentId()); + // 如果父节点不为"正常"状态,则不允许新增子节点 + if (!UserConstants.DEPT_NORMAL.equals(info.getStatus())) + { + throw new ServiceException("部门停用,不允许新增"); + } + dept.setAncestors(info.getAncestors() + "," + dept.getParentId()); + return deptMapper.insertDept(dept); + } + + /** + * 修改保存部门信息 + * + * @param dept 部门信息 + * @return 结果 + */ + @Override + @Transactional + public int updateDept(SysDept dept) + { + SysDept newParentDept = deptMapper.selectDeptById(dept.getParentId()); + SysDept oldDept = selectDeptById(dept.getDeptId()); + if (StringUtils.isNotNull(newParentDept) && StringUtils.isNotNull(oldDept)) + { + String newAncestors = newParentDept.getAncestors() + "," + newParentDept.getDeptId(); + String oldAncestors = oldDept.getAncestors(); + dept.setAncestors(newAncestors); + updateDeptChildren(dept.getDeptId(), newAncestors, oldAncestors); + } + int result = deptMapper.updateDept(dept); + if (UserConstants.DEPT_NORMAL.equals(dept.getStatus()) && StringUtils.isNotEmpty(dept.getAncestors()) + && !StringUtils.equals("0", dept.getAncestors())) + { + // 如果该部门是启用状态,则启用该部门的所有上级部门 + updateParentDeptStatusNormal(dept); + } + return result; + } + + /** + * 修改该部门的父级部门状态 + * + * @param dept 当前部门 + */ + private void updateParentDeptStatusNormal(SysDept dept) + { + String ancestors = dept.getAncestors(); + Long[] deptIds = Convert.toLongArray(ancestors); + deptMapper.updateDeptStatusNormal(deptIds); + } + + /** + * 修改子元素关系 + * + * @param deptId 被修改的部门ID + * @param newAncestors 新的父ID集合 + * @param oldAncestors 旧的父ID集合 + */ + public void updateDeptChildren(Long deptId, String newAncestors, String oldAncestors) + { + List children = deptMapper.selectChildrenDeptById(deptId); + for (SysDept child : children) + { + child.setAncestors(child.getAncestors().replaceFirst(oldAncestors, newAncestors)); + } + if (children.size() > 0) + { + deptMapper.updateDeptChildren(children); + } + } + + /** + * 根据部门ID查询信息 + * + * @param deptId 部门ID + * @return 部门信息 + */ + @Override + public SysDept selectDeptById(Long deptId) + { + return deptMapper.selectDeptById(deptId); + } + + /** + * 根据ID查询所有子部门(正常状态) + * + * @param deptId 部门ID + * @return 子部门数 + */ + @Override + public int selectNormalChildrenDeptById(Long deptId) + { + return deptMapper.selectNormalChildrenDeptById(deptId); + } + + /** + * 校验部门名称是否唯一 + * + * @param dept 部门信息 + * @return 结果 + */ + @Override + public String checkDeptNameUnique(SysDept dept) + { + Long deptId = StringUtils.isNull(dept.getDeptId()) ? -1L : dept.getDeptId(); + SysDept info = deptMapper.checkDeptNameUnique(dept.getDeptName(), dept.getParentId()); + if (StringUtils.isNotNull(info) && info.getDeptId().longValue() != deptId.longValue()) + { + return UserConstants.DEPT_NAME_NOT_UNIQUE; + } + return UserConstants.DEPT_NAME_UNIQUE; + } + + /** + * 校验部门是否有数据权限 + * + * @param deptId 部门id + */ + @Override + public void checkDeptDataScope(Long deptId) + { + if (!SysUser.isAdmin(ShiroUtils.getUserId())) + { + SysDept dept = new SysDept(); + dept.setDeptId(deptId); + List depts = SpringUtils.getAopProxy(this).selectDeptList(dept); + if (StringUtils.isEmpty(depts)) + { + throw new ServiceException("没有权限访问部门数据!"); + } + } + } +} diff --git a/alive-system/src/main/java/com/ruoyi/system/service/impl/SysDictDataServiceImpl.java b/alive-system/src/main/java/com/ruoyi/system/service/impl/SysDictDataServiceImpl.java new file mode 100644 index 0000000..bf9e6e5 --- /dev/null +++ b/alive-system/src/main/java/com/ruoyi/system/service/impl/SysDictDataServiceImpl.java @@ -0,0 +1,113 @@ +package com.ruoyi.system.service.impl; + +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.common.core.domain.entity.SysDictData; +import com.ruoyi.common.core.text.Convert; +import com.ruoyi.common.utils.DictUtils; +import com.ruoyi.system.mapper.SysDictDataMapper; +import com.ruoyi.system.service.ISysDictDataService; + +/** + * 字典 业务层处理 + * + * @author ruoyi + */ +@Service +public class SysDictDataServiceImpl implements ISysDictDataService +{ + @Autowired + private SysDictDataMapper dictDataMapper; + + /** + * 根据条件分页查询字典数据 + * + * @param dictData 字典数据信息 + * @return 字典数据集合信息 + */ + @Override + public List selectDictDataList(SysDictData dictData) + { + return dictDataMapper.selectDictDataList(dictData); + } + + /** + * 根据字典类型和字典键值查询字典数据信息 + * + * @param dictType 字典类型 + * @param dictValue 字典键值 + * @return 字典标签 + */ + @Override + public String selectDictLabel(String dictType, String dictValue) + { + return dictDataMapper.selectDictLabel(dictType, dictValue); + } + + /** + * 根据字典数据ID查询信息 + * + * @param dictCode 字典数据ID + * @return 字典数据 + */ + @Override + public SysDictData selectDictDataById(Long dictCode) + { + return dictDataMapper.selectDictDataById(dictCode); + } + + /** + * 批量删除字典数据 + * + * @param ids 需要删除的数据 + */ + @Override + public void deleteDictDataByIds(String ids) + { + Long[] dictCodes = Convert.toLongArray(ids); + for (Long dictCode : dictCodes) + { + SysDictData data = selectDictDataById(dictCode); + dictDataMapper.deleteDictDataById(dictCode); + List dictDatas = dictDataMapper.selectDictDataByType(data.getDictType()); + DictUtils.setDictCache(data.getDictType(), dictDatas); + } + } + + /** + * 新增保存字典数据信息 + * + * @param data 字典数据信息 + * @return 结果 + */ + @Override + public int insertDictData(SysDictData data) + { + int row = dictDataMapper.insertDictData(data); + if (row > 0) + { + List dictDatas = dictDataMapper.selectDictDataByType(data.getDictType()); + DictUtils.setDictCache(data.getDictType(), dictDatas); + } + return row; + } + + /** + * 修改保存字典数据信息 + * + * @param data 字典数据信息 + * @return 结果 + */ + @Override + public int updateDictData(SysDictData data) + { + int row = dictDataMapper.updateDictData(data); + if (row > 0) + { + List dictDatas = dictDataMapper.selectDictDataByType(data.getDictType()); + DictUtils.setDictCache(data.getDictType(), dictDatas); + } + return row; + } +} diff --git a/alive-system/src/main/java/com/ruoyi/system/service/impl/SysDictTypeServiceImpl.java b/alive-system/src/main/java/com/ruoyi/system/service/impl/SysDictTypeServiceImpl.java new file mode 100644 index 0000000..a1ce544 --- /dev/null +++ b/alive-system/src/main/java/com/ruoyi/system/service/impl/SysDictTypeServiceImpl.java @@ -0,0 +1,260 @@ +package com.ruoyi.system.service.impl; + +import java.util.ArrayList; +import java.util.Comparator; +import java.util.List; +import java.util.Map; +import java.util.stream.Collectors; +import javax.annotation.PostConstruct; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; +import com.ruoyi.common.constant.UserConstants; +import com.ruoyi.common.core.domain.Ztree; +import com.ruoyi.common.core.domain.entity.SysDictData; +import com.ruoyi.common.core.domain.entity.SysDictType; +import com.ruoyi.common.core.text.Convert; +import com.ruoyi.common.exception.ServiceException; +import com.ruoyi.common.utils.DictUtils; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.system.mapper.SysDictDataMapper; +import com.ruoyi.system.mapper.SysDictTypeMapper; +import com.ruoyi.system.service.ISysDictTypeService; + +/** + * 字典 业务层处理 + * + * @author ruoyi + */ +@Service +public class SysDictTypeServiceImpl implements ISysDictTypeService +{ + @Autowired + private SysDictTypeMapper dictTypeMapper; + + @Autowired + private SysDictDataMapper dictDataMapper; + + /** + * 项目启动时,初始化字典到缓存 + */ + @PostConstruct + public void init() + { + loadingDictCache(); + } + + /** + * 根据条件分页查询字典类型 + * + * @param dictType 字典类型信息 + * @return 字典类型集合信息 + */ + @Override + public List selectDictTypeList(SysDictType dictType) + { + return dictTypeMapper.selectDictTypeList(dictType); + } + + /** + * 根据所有字典类型 + * + * @return 字典类型集合信息 + */ + @Override + public List selectDictTypeAll() + { + return dictTypeMapper.selectDictTypeAll(); + } + + /** + * 根据字典类型查询字典数据 + * + * @param dictType 字典类型 + * @return 字典数据集合信息 + */ + @Override + public List selectDictDataByType(String dictType) + { + List dictDatas = DictUtils.getDictCache(dictType); + if (StringUtils.isNotEmpty(dictDatas)) + { + return dictDatas; + } + dictDatas = dictDataMapper.selectDictDataByType(dictType); + if (StringUtils.isNotEmpty(dictDatas)) + { + DictUtils.setDictCache(dictType, dictDatas); + return dictDatas; + } + return null; + } + + /** + * 根据字典类型ID查询信息 + * + * @param dictId 字典类型ID + * @return 字典类型 + */ + @Override + public SysDictType selectDictTypeById(Long dictId) + { + return dictTypeMapper.selectDictTypeById(dictId); + } + + /** + * 根据字典类型查询信息 + * + * @param dictType 字典类型 + * @return 字典类型 + */ + @Override + public SysDictType selectDictTypeByType(String dictType) + { + return dictTypeMapper.selectDictTypeByType(dictType); + } + + /** + * 批量删除字典类型 + * + * @param ids 需要删除的数据 + */ + @Override + public void deleteDictTypeByIds(String ids) + { + Long[] dictIds = Convert.toLongArray(ids); + for (Long dictId : dictIds) + { + SysDictType dictType = selectDictTypeById(dictId); + if (dictDataMapper.countDictDataByType(dictType.getDictType()) > 0) + { + throw new ServiceException(String.format("%1$s已分配,不能删除", dictType.getDictName())); + } + dictTypeMapper.deleteDictTypeById(dictId); + DictUtils.removeDictCache(dictType.getDictType()); + } + } + + /** + * 加载字典缓存数据 + */ + @Override + public void loadingDictCache() + { + SysDictData dictData = new SysDictData(); + dictData.setStatus("0"); + Map> dictDataMap = dictDataMapper.selectDictDataList(dictData).stream().collect(Collectors.groupingBy(SysDictData::getDictType)); + for (Map.Entry> entry : dictDataMap.entrySet()) + { + DictUtils.setDictCache(entry.getKey(), entry.getValue().stream().sorted(Comparator.comparing(SysDictData::getDictSort)).collect(Collectors.toList())); + } + } + + /** + * 清空字典缓存数据 + */ + @Override + public void clearDictCache() + { + DictUtils.clearDictCache(); + } + + /** + * 重置字典缓存数据 + */ + @Override + public void resetDictCache() + { + clearDictCache(); + loadingDictCache(); + } + + /** + * 新增保存字典类型信息 + * + * @param dict 字典类型信息 + * @return 结果 + */ + @Override + public int insertDictType(SysDictType dict) + { + int row = dictTypeMapper.insertDictType(dict); + if (row > 0) + { + DictUtils.setDictCache(dict.getDictType(), null); + } + return row; + } + + /** + * 修改保存字典类型信息 + * + * @param dict 字典类型信息 + * @return 结果 + */ + @Override + @Transactional + public int updateDictType(SysDictType dict) + { + SysDictType oldDict = dictTypeMapper.selectDictTypeById(dict.getDictId()); + dictDataMapper.updateDictDataType(oldDict.getDictType(), dict.getDictType()); + int row = dictTypeMapper.updateDictType(dict); + if (row > 0) + { + List dictDatas = dictDataMapper.selectDictDataByType(dict.getDictType()); + DictUtils.setDictCache(dict.getDictType(), dictDatas); + } + return row; + } + + /** + * 校验字典类型称是否唯一 + * + * @param dict 字典类型 + * @return 结果 + */ + @Override + public String checkDictTypeUnique(SysDictType dict) + { + Long dictId = StringUtils.isNull(dict.getDictId()) ? -1L : dict.getDictId(); + SysDictType dictType = dictTypeMapper.checkDictTypeUnique(dict.getDictType()); + if (StringUtils.isNotNull(dictType) && dictType.getDictId().longValue() != dictId.longValue()) + { + return UserConstants.DICT_TYPE_NOT_UNIQUE; + } + return UserConstants.DICT_TYPE_UNIQUE; + } + + /** + * 查询字典类型树 + * + * @param dictType 字典类型 + * @return 所有字典类型 + */ + @Override + public List selectDictTree(SysDictType dictType) + { + List ztrees = new ArrayList(); + List dictList = dictTypeMapper.selectDictTypeList(dictType); + for (SysDictType dict : dictList) + { + if (UserConstants.DICT_NORMAL.equals(dict.getStatus())) + { + Ztree ztree = new Ztree(); + ztree.setId(dict.getDictId()); + ztree.setName(transDictName(dict)); + ztree.setTitle(dict.getDictType()); + ztrees.add(ztree); + } + } + return ztrees; + } + + public String transDictName(SysDictType dictType) + { + StringBuffer sb = new StringBuffer(); + sb.append("(" + dictType.getDictName() + ")"); + sb.append("   " + dictType.getDictType()); + return sb.toString(); + } +} diff --git a/alive-system/src/main/java/com/ruoyi/system/service/impl/SysLogininforServiceImpl.java b/alive-system/src/main/java/com/ruoyi/system/service/impl/SysLogininforServiceImpl.java new file mode 100644 index 0000000..1038f86 --- /dev/null +++ b/alive-system/src/main/java/com/ruoyi/system/service/impl/SysLogininforServiceImpl.java @@ -0,0 +1,62 @@ +package com.ruoyi.system.service.impl; + +import java.util.ArrayList; +import java.util.List; +import org.springframework.stereotype.Service; +import com.ruoyi.common.core.text.Convert; +import com.ruoyi.system.domain.SysLogininfor; +import com.ruoyi.system.service.ISysLogininforService; + +/** + * 系统访问日志情况信息 服务层处理 + * + * @author ruoyi + */ +@Service +public class SysLogininforServiceImpl implements ISysLogininforService +{ + + /** + * 新增系统登录日志 + * + * @param logininfor 访问日志对象 + */ + @Override + public void insertLogininfor(SysLogininfor logininfor) + { + //logininforMapper.insertLogininfor(logininfor); + } + + /** + * 查询系统登录日志集合 + * + * @param logininfor 访问日志对象 + * @return 登录记录集合 + */ + @Override + public List selectLogininforList(SysLogininfor logininfor) + { + return new ArrayList<>(); + } + + /** + * 批量删除系统登录日志 + * + * @param ids 需要删除的数据 + * @return 结果 + */ + @Override + public int deleteLogininforByIds(String ids) + { + return 1; + } + + /** + * 清空系统登录日志 + */ + @Override + public void cleanLogininfor() + { + //logininforMapper.cleanLogininfor(); + } +} diff --git a/alive-system/src/main/java/com/ruoyi/system/service/impl/SysMenuServiceImpl.java b/alive-system/src/main/java/com/ruoyi/system/service/impl/SysMenuServiceImpl.java new file mode 100644 index 0000000..9f1313f --- /dev/null +++ b/alive-system/src/main/java/com/ruoyi/system/service/impl/SysMenuServiceImpl.java @@ -0,0 +1,389 @@ +package com.ruoyi.system.service.impl; + +import java.text.MessageFormat; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashSet; +import java.util.Iterator; +import java.util.LinkedHashMap; +import java.util.LinkedList; +import java.util.List; +import java.util.Set; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.common.constant.UserConstants; +import com.ruoyi.common.core.domain.Ztree; +import com.ruoyi.common.core.domain.entity.SysMenu; +import com.ruoyi.common.core.domain.entity.SysRole; +import com.ruoyi.common.core.domain.entity.SysUser; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.system.mapper.SysMenuMapper; +import com.ruoyi.system.mapper.SysRoleMenuMapper; +import com.ruoyi.system.service.ISysMenuService; + +/** + * 菜单 业务层处理 + * + * @author ruoyi + */ +@Service +public class SysMenuServiceImpl implements ISysMenuService +{ + public static final String PREMISSION_STRING = "perms[\"{0}\"]"; + + @Autowired + private SysMenuMapper menuMapper; + + @Autowired + private SysRoleMenuMapper roleMenuMapper; + + /** + * 根据用户查询菜单 + * + * @param user 用户信息 + * @return 菜单列表 + */ + @Override + public List selectMenusByUser(SysUser user) + { + List menus = new LinkedList(); + // 管理员显示所有菜单信息 + if (user.isAdmin()) + { + menus = menuMapper.selectMenuNormalAll(); + } + else + { + menus = menuMapper.selectMenusByUserId(user.getUserId()); + } + return getChildPerms(menus, 0); + } + + /** + * 查询菜单集合 + * + * @return 所有菜单信息 + */ + @Override + public List selectMenuList(SysMenu menu, Long userId) + { + List menuList = null; + if (SysUser.isAdmin(userId)) + { + menuList = menuMapper.selectMenuList(menu); + } + else + { + menu.getParams().put("userId", userId); + menuList = menuMapper.selectMenuListByUserId(menu); + } + return menuList; + } + + /** + * 查询菜单集合 + * + * @return 所有菜单信息 + */ + @Override + public List selectMenuAll(Long userId) + { + List menuList = null; + if (SysUser.isAdmin(userId)) + { + menuList = menuMapper.selectMenuAll(); + } + else + { + menuList = menuMapper.selectMenuAllByUserId(userId); + } + return menuList; + } + + /** + * 根据用户ID查询权限 + * + * @param userId 用户ID + * @return 权限列表 + */ + @Override + public Set selectPermsByUserId(Long userId) + { + List perms = menuMapper.selectPermsByUserId(userId); + Set permsSet = new HashSet<>(); + for (String perm : perms) + { + if (StringUtils.isNotEmpty(perm)) + { + permsSet.addAll(Arrays.asList(perm.trim().split(","))); + } + } + return permsSet; + } + + /** + * 根据角色ID查询菜单 + * + * @param role 角色对象 + * @return 菜单列表 + */ + @Override + public List roleMenuTreeData(SysRole role, Long userId) + { + Long roleId = role.getRoleId(); + List ztrees = new ArrayList(); + List menuList = selectMenuAll(userId); + if (StringUtils.isNotNull(roleId)) + { + List roleMenuList = menuMapper.selectMenuTree(roleId); + ztrees = initZtree(menuList, roleMenuList, true); + } + else + { + ztrees = initZtree(menuList, null, true); + } + return ztrees; + } + + /** + * 查询所有菜单 + * + * @return 菜单列表 + */ + @Override + public List menuTreeData(Long userId) + { + List menuList = selectMenuAll(userId); + List ztrees = initZtree(menuList); + return ztrees; + } + + /** + * 查询系统所有权限 + * + * @return 权限列表 + */ + @Override + public LinkedHashMap selectPermsAll(Long userId) + { + LinkedHashMap section = new LinkedHashMap<>(); + List permissions = selectMenuAll(userId); + if (StringUtils.isNotEmpty(permissions)) + { + for (SysMenu menu : permissions) + { + section.put(menu.getUrl(), MessageFormat.format(PREMISSION_STRING, menu.getPerms())); + } + } + return section; + } + + /** + * 对象转菜单树 + * + * @param menuList 菜单列表 + * @return 树结构列表 + */ + public List initZtree(List menuList) + { + return initZtree(menuList, null, false); + } + + /** + * 对象转菜单树 + * + * @param menuList 菜单列表 + * @param roleMenuList 角色已存在菜单列表 + * @param permsFlag 是否需要显示权限标识 + * @return 树结构列表 + */ + public List initZtree(List menuList, List roleMenuList, boolean permsFlag) + { + List ztrees = new ArrayList(); + boolean isCheck = StringUtils.isNotNull(roleMenuList); + for (SysMenu menu : menuList) + { + Ztree ztree = new Ztree(); + ztree.setId(menu.getMenuId()); + ztree.setpId(menu.getParentId()); + ztree.setName(transMenuName(menu, permsFlag)); + ztree.setTitle(menu.getMenuName()); + if (isCheck) + { + ztree.setChecked(roleMenuList.contains(menu.getMenuId() + menu.getPerms())); + } + ztrees.add(ztree); + } + return ztrees; + } + + public String transMenuName(SysMenu menu, boolean permsFlag) + { + StringBuffer sb = new StringBuffer(); + sb.append(menu.getMenuName()); + if (permsFlag) + { + sb.append("   " + menu.getPerms() + ""); + } + return sb.toString(); + } + + /** + * 删除菜单管理信息 + * + * @param menuId 菜单ID + * @return 结果 + */ + @Override + public int deleteMenuById(Long menuId) + { + return menuMapper.deleteMenuById(menuId); + } + + /** + * 根据菜单ID查询信息 + * + * @param menuId 菜单ID + * @return 菜单信息 + */ + @Override + public SysMenu selectMenuById(Long menuId) + { + return menuMapper.selectMenuById(menuId); + } + + /** + * 查询子菜单数量 + * + * @param parentId 父级菜单ID + * @return 结果 + */ + @Override + public int selectCountMenuByParentId(Long parentId) + { + return menuMapper.selectCountMenuByParentId(parentId); + } + + /** + * 查询菜单使用数量 + * + * @param menuId 菜单ID + * @return 结果 + */ + @Override + public int selectCountRoleMenuByMenuId(Long menuId) + { + return roleMenuMapper.selectCountRoleMenuByMenuId(menuId); + } + + /** + * 新增保存菜单信息 + * + * @param menu 菜单信息 + * @return 结果 + */ + @Override + public int insertMenu(SysMenu menu) + { + return menuMapper.insertMenu(menu); + } + + /** + * 修改保存菜单信息 + * + * @param menu 菜单信息 + * @return 结果 + */ + @Override + public int updateMenu(SysMenu menu) + { + return menuMapper.updateMenu(menu); + } + + /** + * 校验菜单名称是否唯一 + * + * @param menu 菜单信息 + * @return 结果 + */ + @Override + public String checkMenuNameUnique(SysMenu menu) + { + Long menuId = StringUtils.isNull(menu.getMenuId()) ? -1L : menu.getMenuId(); + SysMenu info = menuMapper.checkMenuNameUnique(menu.getMenuName(), menu.getParentId()); + if (StringUtils.isNotNull(info) && info.getMenuId().longValue() != menuId.longValue()) + { + return UserConstants.MENU_NAME_NOT_UNIQUE; + } + return UserConstants.MENU_NAME_UNIQUE; + } + + /** + * 根据父节点的ID获取所有子节点 + * + * @param list 分类表 + * @param parentId 传入的父节点ID + * @return String + */ + public List getChildPerms(List list, int parentId) + { + List returnList = new ArrayList(); + for (Iterator iterator = list.iterator(); iterator.hasNext();) + { + SysMenu t = (SysMenu) iterator.next(); + // 一、根据传入的某个父节点ID,遍历该父节点的所有子节点 + if (t.getParentId() == parentId) + { + recursionFn(list, t); + returnList.add(t); + } + } + return returnList; + } + + /** + * 递归列表 + * + * @param list + * @param t + */ + private void recursionFn(List list, SysMenu t) + { + // 得到子节点列表 + List childList = getChildList(list, t); + t.setChildren(childList); + for (SysMenu tChild : childList) + { + if (hasChild(list, tChild)) + { + recursionFn(list, tChild); + } + } + } + + /** + * 得到子节点列表 + */ + private List getChildList(List list, SysMenu t) + { + List tlist = new ArrayList(); + Iterator it = list.iterator(); + while (it.hasNext()) + { + SysMenu n = (SysMenu) it.next(); + if (n.getParentId().longValue() == t.getMenuId().longValue()) + { + tlist.add(n); + } + } + return tlist; + } + + /** + * 判断是否有子节点 + */ + private boolean hasChild(List list, SysMenu t) + { + return getChildList(list, t).size() > 0; + } +} diff --git a/alive-system/src/main/java/com/ruoyi/system/service/impl/SysNoticeServiceImpl.java b/alive-system/src/main/java/com/ruoyi/system/service/impl/SysNoticeServiceImpl.java new file mode 100644 index 0000000..455dcb8 --- /dev/null +++ b/alive-system/src/main/java/com/ruoyi/system/service/impl/SysNoticeServiceImpl.java @@ -0,0 +1,78 @@ +package com.ruoyi.system.service.impl; + +import java.util.ArrayList; +import java.util.List; +import org.springframework.stereotype.Service; +import com.ruoyi.common.core.text.Convert; +import com.ruoyi.system.domain.SysNotice; +import com.ruoyi.system.service.ISysNoticeService; + +/** + * 公告 服务层实现 + * + * @author ruoyi + * @date 2018-06-25 + */ +@Service +public class SysNoticeServiceImpl implements ISysNoticeService +{ + /** + * 查询公告信息 + * + * @param noticeId 公告ID + * @return 公告信息 + */ + @Override + public SysNotice selectNoticeById(Long noticeId) + { + return new SysNotice(); + } + + /** + * 查询公告列表 + * + * @param notice 公告信息 + * @return 公告集合 + */ + @Override + public List selectNoticeList(SysNotice notice) + { + return new ArrayList<>(); + } + + /** + * 新增公告 + * + * @param notice 公告信息 + * @return 结果 + */ + @Override + public int insertNotice(SysNotice notice) + { + return 1; + } + + /** + * 修改公告 + * + * @param notice 公告信息 + * @return 结果 + */ + @Override + public int updateNotice(SysNotice notice) + { + return 1; + } + + /** + * 删除公告对象 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + @Override + public int deleteNoticeByIds(String ids) + { + return 1; + } +} diff --git a/alive-system/src/main/java/com/ruoyi/system/service/impl/SysOperLogServiceImpl.java b/alive-system/src/main/java/com/ruoyi/system/service/impl/SysOperLogServiceImpl.java new file mode 100644 index 0000000..57d7d6d --- /dev/null +++ b/alive-system/src/main/java/com/ruoyi/system/service/impl/SysOperLogServiceImpl.java @@ -0,0 +1,74 @@ +package com.ruoyi.system.service.impl; + +import java.util.ArrayList; +import java.util.List; +import org.springframework.stereotype.Service; +import com.ruoyi.common.core.text.Convert; +import com.ruoyi.system.domain.SysOperLog; +import com.ruoyi.system.service.ISysOperLogService; + +/** + * 操作日志 服务层处理 + * + * @author ruoyi + */ +@Service +public class SysOperLogServiceImpl implements ISysOperLogService +{ + + /** + * 新增操作日志 + * + * @param operLog 操作日志对象 + */ + @Override + public void insertOperlog(SysOperLog operLog) + { + // operLogMapper.insertOperlog(operLog); + } + + /** + * 查询系统操作日志集合 + * + * @param operLog 操作日志对象 + * @return 操作日志集合 + */ + @Override + public List selectOperLogList(SysOperLog operLog) + { + return new ArrayList<>(); + } + + /** + * 批量删除系统操作日志 + * + * @param ids 需要删除的数据 + * @return + */ + @Override + public int deleteOperLogByIds(String ids) + { + return 1; + } + + /** + * 查询操作日志详细 + * + * @param operId 操作ID + * @return 操作日志对象 + */ + @Override + public SysOperLog selectOperLogById(Long operId) + { + return new SysOperLog(); + } + + /** + * 清空操作日志 + */ + @Override + public void cleanOperLog() + { + //operLogMapper.cleanOperLog(); + } +} diff --git a/alive-system/src/main/java/com/ruoyi/system/service/impl/SysPostServiceImpl.java b/alive-system/src/main/java/com/ruoyi/system/service/impl/SysPostServiceImpl.java new file mode 100644 index 0000000..b2421f1 --- /dev/null +++ b/alive-system/src/main/java/com/ruoyi/system/service/impl/SysPostServiceImpl.java @@ -0,0 +1,181 @@ +package com.ruoyi.system.service.impl; + +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.common.constant.UserConstants; +import com.ruoyi.common.core.text.Convert; +import com.ruoyi.common.exception.ServiceException; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.system.domain.SysPost; +import com.ruoyi.system.mapper.SysPostMapper; +import com.ruoyi.system.mapper.SysUserPostMapper; +import com.ruoyi.system.service.ISysPostService; + +/** + * 岗位信息 服务层处理 + * + * @author ruoyi + */ +@Service +public class SysPostServiceImpl implements ISysPostService +{ + @Autowired + private SysPostMapper postMapper; + + @Autowired + private SysUserPostMapper userPostMapper; + + /** + * 查询岗位信息集合 + * + * @param post 岗位信息 + * @return 岗位信息集合 + */ + @Override + public List selectPostList(SysPost post) + { + return postMapper.selectPostList(post); + } + + /** + * 查询所有岗位 + * + * @return 岗位列表 + */ + @Override + public List selectPostAll() + { + return postMapper.selectPostAll(); + } + + /** + * 根据用户ID查询岗位 + * + * @param userId 用户ID + * @return 岗位列表 + */ + @Override + public List selectPostsByUserId(Long userId) + { + List userPosts = postMapper.selectPostsByUserId(userId); + List posts = postMapper.selectPostAll(); + for (SysPost post : posts) + { + for (SysPost userRole : userPosts) + { + if (post.getPostId().longValue() == userRole.getPostId().longValue()) + { + post.setFlag(true); + break; + } + } + } + return posts; + } + + /** + * 通过岗位ID查询岗位信息 + * + * @param postId 岗位ID + * @return 角色对象信息 + */ + @Override + public SysPost selectPostById(Long postId) + { + return postMapper.selectPostById(postId); + } + + /** + * 批量删除岗位信息 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + @Override + public int deletePostByIds(String ids) + { + Long[] postIds = Convert.toLongArray(ids); + for (Long postId : postIds) + { + SysPost post = selectPostById(postId); + if (countUserPostById(postId) > 0) + { + throw new ServiceException(String.format("%1$s已分配,不能删除", post.getPostName())); + } + } + return postMapper.deletePostByIds(postIds); + } + + /** + * 新增保存岗位信息 + * + * @param post 岗位信息 + * @return 结果 + */ + @Override + public int insertPost(SysPost post) + { + return postMapper.insertPost(post); + } + + /** + * 修改保存岗位信息 + * + * @param post 岗位信息 + * @return 结果 + */ + @Override + public int updatePost(SysPost post) + { + return postMapper.updatePost(post); + } + + /** + * 通过岗位ID查询岗位使用数量 + * + * @param postId 岗位ID + * @return 结果 + */ + @Override + public int countUserPostById(Long postId) + { + return userPostMapper.countUserPostById(postId); + } + + /** + * 校验岗位名称是否唯一 + * + * @param post 岗位信息 + * @return 结果 + */ + @Override + public String checkPostNameUnique(SysPost post) + { + Long postId = StringUtils.isNull(post.getPostId()) ? -1L : post.getPostId(); + SysPost info = postMapper.checkPostNameUnique(post.getPostName()); + if (StringUtils.isNotNull(info) && info.getPostId().longValue() != postId.longValue()) + { + return UserConstants.POST_NAME_NOT_UNIQUE; + } + return UserConstants.POST_NAME_UNIQUE; + } + + /** + * 校验岗位编码是否唯一 + * + * @param post 岗位信息 + * @return 结果 + */ + @Override + public String checkPostCodeUnique(SysPost post) + { + Long postId = StringUtils.isNull(post.getPostId()) ? -1L : post.getPostId(); + SysPost info = postMapper.checkPostCodeUnique(post.getPostCode()); + if (StringUtils.isNotNull(info) && info.getPostId().longValue() != postId.longValue()) + { + return UserConstants.POST_CODE_NOT_UNIQUE; + } + return UserConstants.POST_CODE_UNIQUE; + } +} diff --git a/alive-system/src/main/java/com/ruoyi/system/service/impl/SysRoleServiceImpl.java b/alive-system/src/main/java/com/ruoyi/system/service/impl/SysRoleServiceImpl.java new file mode 100644 index 0000000..56ee2a4 --- /dev/null +++ b/alive-system/src/main/java/com/ruoyi/system/service/impl/SysRoleServiceImpl.java @@ -0,0 +1,415 @@ +package com.ruoyi.system.service.impl; + +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashSet; +import java.util.List; +import java.util.Set; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; +import com.ruoyi.common.annotation.DataScope; +import com.ruoyi.common.constant.UserConstants; +import com.ruoyi.common.core.domain.entity.SysRole; +import com.ruoyi.common.core.domain.entity.SysUser; +import com.ruoyi.common.core.text.Convert; +import com.ruoyi.common.exception.ServiceException; +import com.ruoyi.common.utils.ShiroUtils; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.common.utils.spring.SpringUtils; +import com.ruoyi.system.domain.SysRoleDept; +import com.ruoyi.system.domain.SysRoleMenu; +import com.ruoyi.system.domain.SysUserRole; +import com.ruoyi.system.mapper.SysRoleDeptMapper; +import com.ruoyi.system.mapper.SysRoleMapper; +import com.ruoyi.system.mapper.SysRoleMenuMapper; +import com.ruoyi.system.mapper.SysUserRoleMapper; +import com.ruoyi.system.service.ISysRoleService; + +/** + * 角色 业务层处理 + * + * @author ruoyi + */ +@Service +public class SysRoleServiceImpl implements ISysRoleService +{ + @Autowired + private SysRoleMapper roleMapper; + + @Autowired + private SysRoleMenuMapper roleMenuMapper; + + @Autowired + private SysUserRoleMapper userRoleMapper; + + @Autowired + private SysRoleDeptMapper roleDeptMapper; + + /** + * 根据条件分页查询角色数据 + * + * @param role 角色信息 + * @return 角色数据集合信息 + */ + @Override + @DataScope(deptAlias = "d") + public List selectRoleList(SysRole role) + { + return roleMapper.selectRoleList(role); + } + + /** + * 根据用户ID查询权限 + * + * @param userId 用户ID + * @return 权限列表 + */ + @Override + public Set selectRoleKeys(Long userId) + { + List perms = roleMapper.selectRolesByUserId(userId); + Set permsSet = new HashSet<>(); + for (SysRole perm : perms) + { + if (StringUtils.isNotNull(perm)) + { + permsSet.addAll(Arrays.asList(perm.getRoleKey().trim().split(","))); + } + } + return permsSet; + } + + /** + * 根据用户ID查询角色 + * + * @param userId 用户ID + * @return 角色列表 + */ + @Override + public List selectRolesByUserId(Long userId) + { + List userRoles = roleMapper.selectRolesByUserId(userId); + List roles = selectRoleAll(); + for (SysRole role : roles) + { + for (SysRole userRole : userRoles) + { + if (role.getRoleId().longValue() == userRole.getRoleId().longValue()) + { + role.setFlag(true); + break; + } + } + } + return roles; + } + + /** + * 查询所有角色 + * + * @return 角色列表 + */ + @Override + public List selectRoleAll() + { + return SpringUtils.getAopProxy(this).selectRoleList(new SysRole()); + } + + /** + * 通过角色ID查询角色 + * + * @param roleId 角色ID + * @return 角色对象信息 + */ + @Override + public SysRole selectRoleById(Long roleId) + { + return roleMapper.selectRoleById(roleId); + } + + /** + * 通过角色ID删除角色 + * + * @param roleId 角色ID + * @return 结果 + */ + @Override + @Transactional + public boolean deleteRoleById(Long roleId) + { + // 删除角色与菜单关联 + roleMenuMapper.deleteRoleMenuByRoleId(roleId); + // 删除角色与部门关联 + roleDeptMapper.deleteRoleDeptByRoleId(roleId); + return roleMapper.deleteRoleById(roleId) > 0 ? true : false; + } + + /** + * 批量删除角色信息 + * + * @param ids 需要删除的数据ID + * @throws Exception + */ + @Override + @Transactional + public int deleteRoleByIds(String ids) + { + Long[] roleIds = Convert.toLongArray(ids); + for (Long roleId : roleIds) + { + checkRoleAllowed(new SysRole(roleId)); + checkRoleDataScope(roleId); + SysRole role = selectRoleById(roleId); + if (countUserRoleByRoleId(roleId) > 0) + { + throw new ServiceException(String.format("%1$s已分配,不能删除", role.getRoleName())); + } + } + // 删除角色与菜单关联 + roleMenuMapper.deleteRoleMenu(roleIds); + // 删除角色与部门关联 + roleDeptMapper.deleteRoleDept(roleIds); + return roleMapper.deleteRoleByIds(roleIds); + } + + /** + * 新增保存角色信息 + * + * @param role 角色信息 + * @return 结果 + */ + @Override + @Transactional + public int insertRole(SysRole role) + { + // 新增角色信息 + roleMapper.insertRole(role); + return insertRoleMenu(role); + } + + /** + * 修改保存角色信息 + * + * @param role 角色信息 + * @return 结果 + */ + @Override + @Transactional + public int updateRole(SysRole role) + { + // 修改角色信息 + roleMapper.updateRole(role); + // 删除角色与菜单关联 + roleMenuMapper.deleteRoleMenuByRoleId(role.getRoleId()); + return insertRoleMenu(role); + } + + /** + * 修改数据权限信息 + * + * @param role 角色信息 + * @return 结果 + */ + @Override + @Transactional + public int authDataScope(SysRole role) + { + // 修改角色信息 + roleMapper.updateRole(role); + // 删除角色与部门关联 + roleDeptMapper.deleteRoleDeptByRoleId(role.getRoleId()); + // 新增角色和部门信息(数据权限) + return insertRoleDept(role); + } + + /** + * 新增角色菜单信息 + * + * @param role 角色对象 + */ + public int insertRoleMenu(SysRole role) + { + int rows = 1; + // 新增用户与角色管理 + List list = new ArrayList(); + for (Long menuId : role.getMenuIds()) + { + SysRoleMenu rm = new SysRoleMenu(); + rm.setRoleId(role.getRoleId()); + rm.setMenuId(menuId); + list.add(rm); + } + if (list.size() > 0) + { + rows = roleMenuMapper.batchRoleMenu(list); + } + return rows; + } + + /** + * 新增角色部门信息(数据权限) + * + * @param role 角色对象 + */ + public int insertRoleDept(SysRole role) + { + int rows = 1; + // 新增角色与部门(数据权限)管理 + List list = new ArrayList(); + for (Long deptId : role.getDeptIds()) + { + SysRoleDept rd = new SysRoleDept(); + rd.setRoleId(role.getRoleId()); + rd.setDeptId(deptId); + list.add(rd); + } + if (list.size() > 0) + { + rows = roleDeptMapper.batchRoleDept(list); + } + return rows; + } + + /** + * 校验角色名称是否唯一 + * + * @param role 角色信息 + * @return 结果 + */ + @Override + public String checkRoleNameUnique(SysRole role) + { + Long roleId = StringUtils.isNull(role.getRoleId()) ? -1L : role.getRoleId(); + SysRole info = roleMapper.checkRoleNameUnique(role.getRoleName()); + if (StringUtils.isNotNull(info) && info.getRoleId().longValue() != roleId.longValue()) + { + return UserConstants.ROLE_NAME_NOT_UNIQUE; + } + return UserConstants.ROLE_NAME_UNIQUE; + } + + /** + * 校验角色权限是否唯一 + * + * @param role 角色信息 + * @return 结果 + */ + @Override + public String checkRoleKeyUnique(SysRole role) + { + Long roleId = StringUtils.isNull(role.getRoleId()) ? -1L : role.getRoleId(); + SysRole info = roleMapper.checkRoleKeyUnique(role.getRoleKey()); + if (StringUtils.isNotNull(info) && info.getRoleId().longValue() != roleId.longValue()) + { + return UserConstants.ROLE_KEY_NOT_UNIQUE; + } + return UserConstants.ROLE_KEY_UNIQUE; + } + + /** + * 校验角色是否允许操作 + * + * @param role 角色信息 + */ + @Override + public void checkRoleAllowed(SysRole role) + { + if (StringUtils.isNotNull(role.getRoleId()) && role.isAdmin()) + { + throw new ServiceException("不允许操作超级管理员角色"); + } + } + + /** + * 校验角色是否有数据权限 + * + * @param roleId 角色id + */ + @Override + public void checkRoleDataScope(Long roleId) + { + if (!SysUser.isAdmin(ShiroUtils.getUserId())) + { + SysRole role = new SysRole(); + role.setRoleId(roleId); + List roles = SpringUtils.getAopProxy(this).selectRoleList(role); + if (StringUtils.isEmpty(roles)) + { + throw new ServiceException("没有权限访问角色数据!"); + } + } + } + + /** + * 通过角色ID查询角色使用数量 + * + * @param roleId 角色ID + * @return 结果 + */ + @Override + public int countUserRoleByRoleId(Long roleId) + { + return userRoleMapper.countUserRoleByRoleId(roleId); + } + + /** + * 角色状态修改 + * + * @param role 角色信息 + * @return 结果 + */ + @Override + public int changeStatus(SysRole role) + { + return roleMapper.updateRole(role); + } + + /** + * 取消授权用户角色 + * + * @param userRole 用户和角色关联信息 + * @return 结果 + */ + @Override + public int deleteAuthUser(SysUserRole userRole) + { + return userRoleMapper.deleteUserRoleInfo(userRole); + } + + /** + * 批量取消授权用户角色 + * + * @param roleId 角色ID + * @param userIds 需要删除的用户数据ID + * @return 结果 + */ + @Override + public int deleteAuthUsers(Long roleId, String userIds) + { + return userRoleMapper.deleteUserRoleInfos(roleId, Convert.toLongArray(userIds)); + } + + /** + * 批量选择授权用户角色 + * + * @param roleId 角色ID + * @param userIds 需要授权的用户数据ID + * @return 结果 + */ + @Override + public int insertAuthUsers(Long roleId, String userIds) + { + Long[] users = Convert.toLongArray(userIds); + // 新增用户与角色管理 + List list = new ArrayList(); + for (Long userId : users) + { + SysUserRole ur = new SysUserRole(); + ur.setUserId(userId); + ur.setRoleId(roleId); + list.add(ur); + } + return userRoleMapper.batchUserRole(list); + } +} diff --git a/alive-system/src/main/java/com/ruoyi/system/service/impl/SysUserOnlineServiceImpl.java b/alive-system/src/main/java/com/ruoyi/system/service/impl/SysUserOnlineServiceImpl.java new file mode 100644 index 0000000..7b62244 --- /dev/null +++ b/alive-system/src/main/java/com/ruoyi/system/service/impl/SysUserOnlineServiceImpl.java @@ -0,0 +1,140 @@ +package com.ruoyi.system.service.impl; + +import java.io.Serializable; +import java.util.ArrayList; +import java.util.Date; +import java.util.Deque; +import java.util.List; + +import org.apache.shiro.cache.Cache; +import org.apache.shiro.cache.ehcache.EhCacheManager; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.common.constant.ShiroConstants; +import com.ruoyi.common.utils.DateUtils; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.system.domain.SysUserOnline; +import com.ruoyi.system.service.ISysUserOnlineService; + +/** + * 在线用户 服务层处理 + * + * @author ruoyi + */ +@Service +public class SysUserOnlineServiceImpl implements ISysUserOnlineService +{ + + @Autowired + private EhCacheManager ehCacheManager; + + /** + * 通过会话序号查询信息 + * + * @param sessionId 会话ID + * @return 在线用户信息 + */ + @Override + public SysUserOnline selectOnlineById(String sessionId) + { + return null; + } + + /** + * 通过会话序号删除信息 + * + * @param sessionId 会话ID + * @return 在线用户信息 + */ + @Override + public void deleteOnlineById(String sessionId) + { + /*SysUserOnline userOnline = selectOnlineById(sessionId); + if (StringUtils.isNotNull(userOnline)) + { + userOnlineDao.deleteOnlineById(sessionId); + }*/ + } + + /** + * 通过会话序号删除信息 + * + * @param sessions 会话ID集合 + * @return 在线用户信息 + */ + @Override + public void batchDeleteOnline(List sessions) + { + /*for (String sessionId : sessions) + { + SysUserOnline userOnline = selectOnlineById(sessionId); + if (StringUtils.isNotNull(userOnline)) + { + userOnlineDao.deleteOnlineById(sessionId); + } + }*/ + } + + /** + * 保存会话信息 + * + * @param online 会话信息 + */ + @Override + public void saveOnline(SysUserOnline online) + { + //userOnlineDao.saveOnline(online); + } + + /** + * 查询会话集合 + * + * @param userOnline 在线用户 + */ + @Override + public List selectUserOnlineList(SysUserOnline userOnline) + { + return new ArrayList<>(); + } + + /** + * 强退用户 + * + * @param sessionId 会话ID + */ + @Override + public void forceLogout(String sessionId) + { + //userOnlineDao.deleteOnlineById(sessionId); + } + + /** + * 清理用户缓存 + * + * @param loginName 登录名称 + * @param sessionId 会话ID + */ + @Override + public void removeUserCache(String loginName, String sessionId) + { + Cache> cache = ehCacheManager.getCache(ShiroConstants.SYS_USERCACHE); + Deque deque = cache.get(loginName); + if (StringUtils.isEmpty(deque) || deque.size() == 0) + { + return; + } + deque.remove(sessionId); + } + + /** + * 查询会话集合 + * + * @param expiredDate 失效日期 + */ + @Override + public List selectOnlineByExpired(Date expiredDate) + { + String lastAccessTime = DateUtils.parseDateToStr(DateUtils.YYYY_MM_DD_HH_MM_SS, expiredDate); + return new ArrayList<>(); + } +} diff --git a/alive-system/src/main/java/com/ruoyi/system/service/impl/SysUserServiceImpl.java b/alive-system/src/main/java/com/ruoyi/system/service/impl/SysUserServiceImpl.java new file mode 100644 index 0000000..c840a3c --- /dev/null +++ b/alive-system/src/main/java/com/ruoyi/system/service/impl/SysUserServiceImpl.java @@ -0,0 +1,550 @@ +package com.ruoyi.system.service.impl; + +import java.util.ArrayList; +import java.util.List; +import java.util.stream.Collectors; +import javax.validation.Validator; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; +import org.springframework.util.CollectionUtils; +import com.ruoyi.common.annotation.DataScope; +import com.ruoyi.common.constant.UserConstants; +import com.ruoyi.common.core.domain.entity.SysRole; +import com.ruoyi.common.core.domain.entity.SysUser; +import com.ruoyi.common.core.text.Convert; +import com.ruoyi.common.exception.ServiceException; +import com.ruoyi.common.utils.ShiroUtils; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.common.utils.bean.BeanValidators; +import com.ruoyi.common.utils.security.Md5Utils; +import com.ruoyi.common.utils.spring.SpringUtils; +import com.ruoyi.system.domain.SysPost; +import com.ruoyi.system.domain.SysUserPost; +import com.ruoyi.system.domain.SysUserRole; +import com.ruoyi.system.mapper.SysPostMapper; +import com.ruoyi.system.mapper.SysRoleMapper; +import com.ruoyi.system.mapper.SysUserMapper; +import com.ruoyi.system.mapper.SysUserPostMapper; +import com.ruoyi.system.mapper.SysUserRoleMapper; +import com.ruoyi.system.service.ISysConfigService; +import com.ruoyi.system.service.ISysUserService; + +/** + * 用户 业务层处理 + * + * @author ruoyi + */ +@Service +public class SysUserServiceImpl implements ISysUserService +{ + private static final Logger log = LoggerFactory.getLogger(SysUserServiceImpl.class); + + @Autowired + private SysUserMapper userMapper; + + @Autowired + private SysRoleMapper roleMapper; + + @Autowired + private SysPostMapper postMapper; + + @Autowired + private SysUserPostMapper userPostMapper; + + @Autowired + private SysUserRoleMapper userRoleMapper; + + @Autowired + private ISysConfigService configService; + + @Autowired + protected Validator validator; + + /** + * 根据条件分页查询用户列表 + * + * @param user 用户信息 + * @return 用户信息集合信息 + */ + @Override + @DataScope(deptAlias = "d", userAlias = "u") + public List selectUserList(SysUser user) + { + return userMapper.selectUserList(user); + } + + /** + * 根据条件分页查询已分配用户角色列表 + * + * @param user 用户信息 + * @return 用户信息集合信息 + */ + @Override + @DataScope(deptAlias = "d", userAlias = "u") + public List selectAllocatedList(SysUser user) + { + return userMapper.selectAllocatedList(user); + } + + /** + * 根据条件分页查询未分配用户角色列表 + * + * @param user 用户信息 + * @return 用户信息集合信息 + */ + @Override + @DataScope(deptAlias = "d", userAlias = "u") + public List selectUnallocatedList(SysUser user) + { + return userMapper.selectUnallocatedList(user); + } + + /** + * 通过用户名查询用户 + * + * @param userName 用户名 + * @return 用户对象信息 + */ + @Override + public SysUser selectUserByLoginName(String userName) + { + return userMapper.selectUserByLoginName(userName); + } + + /** + * 通过手机号码查询用户 + * + * @param phoneNumber 手机号码 + * @return 用户对象信息 + */ + @Override + public SysUser selectUserByPhoneNumber(String phoneNumber) + { + return userMapper.selectUserByPhoneNumber(phoneNumber); + } + + /** + * 通过邮箱查询用户 + * + * @param email 邮箱 + * @return 用户对象信息 + */ + @Override + public SysUser selectUserByEmail(String email) + { + return userMapper.selectUserByEmail(email); + } + + /** + * 通过用户ID查询用户 + * + * @param userId 用户ID + * @return 用户对象信息 + */ + @Override + public SysUser selectUserById(Long userId) + { + return userMapper.selectUserById(userId); + } + + /** + * 通过用户ID查询用户和角色关联 + * + * @param userId 用户ID + * @return 用户和角色关联列表 + */ + @Override + public List selectUserRoleByUserId(Long userId) + { + return userRoleMapper.selectUserRoleByUserId(userId); + } + + /** + * 通过用户ID删除用户 + * + * @param userId 用户ID + * @return 结果 + */ + @Override + @Transactional + public int deleteUserById(Long userId) + { + // 删除用户与角色关联 + userRoleMapper.deleteUserRoleByUserId(userId); + // 删除用户与岗位表 + userPostMapper.deleteUserPostByUserId(userId); + return userMapper.deleteUserById(userId); + } + + /** + * 批量删除用户信息 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + @Override + @Transactional + public int deleteUserByIds(String ids) + { + Long[] userIds = Convert.toLongArray(ids); + for (Long userId : userIds) + { + checkUserAllowed(new SysUser(userId)); + checkUserDataScope(userId); + } + // 删除用户与角色关联 + userRoleMapper.deleteUserRole(userIds); + // 删除用户与岗位关联 + userPostMapper.deleteUserPost(userIds); + return userMapper.deleteUserByIds(userIds); + } + + /** + * 新增保存用户信息 + * + * @param user 用户信息 + * @return 结果 + */ + @Override + @Transactional + public int insertUser(SysUser user) + { + // 新增用户信息 + int rows = userMapper.insertUser(user); + // 新增用户岗位关联 + insertUserPost(user); + // 新增用户与角色管理 + insertUserRole(user.getUserId(), user.getRoleIds()); + return rows; + } + + /** + * 注册用户信息 + * + * @param user 用户信息 + * @return 结果 + */ + @Override + public boolean registerUser(SysUser user) + { + user.setUserType(UserConstants.REGISTER_USER_TYPE); + return userMapper.insertUser(user) > 0; + } + + /** + * 修改保存用户信息 + * + * @param user 用户信息 + * @return 结果 + */ + @Override + @Transactional + public int updateUser(SysUser user) + { + Long userId = user.getUserId(); + // 删除用户与角色关联 + userRoleMapper.deleteUserRoleByUserId(userId); + // 新增用户与角色管理 + insertUserRole(user.getUserId(), user.getRoleIds()); + // 删除用户与岗位关联 + userPostMapper.deleteUserPostByUserId(userId); + // 新增用户与岗位管理 + insertUserPost(user); + return userMapper.updateUser(user); + } + + /** + * 修改用户个人详细信息 + * + * @param user 用户信息 + * @return 结果 + */ + @Override + public int updateUserInfo(SysUser user) + { + return userMapper.updateUser(user); + } + + /** + * 用户授权角色 + * + * @param userId 用户ID + * @param roleIds 角色组 + */ + @Override + @Transactional + public void insertUserAuth(Long userId, Long[] roleIds) + { + userRoleMapper.deleteUserRoleByUserId(userId); + insertUserRole(userId, roleIds); + } + + /** + * 修改用户密码 + * + * @param user 用户信息 + * @return 结果 + */ + @Override + public int resetUserPwd(SysUser user) + { + return updateUserInfo(user); + } + + /** + * 新增用户角色信息 + * + * @param userId 用户ID + * @param roleIds 角色组 + */ + public void insertUserRole(Long userId, Long[] roleIds) + { + if (StringUtils.isNotNull(roleIds)) + { + // 新增用户与角色管理 + List list = new ArrayList(); + for (Long roleId : roleIds) + { + SysUserRole ur = new SysUserRole(); + ur.setUserId(userId); + ur.setRoleId(roleId); + list.add(ur); + } + if (list.size() > 0) + { + userRoleMapper.batchUserRole(list); + } + } + } + + /** + * 新增用户岗位信息 + * + * @param user 用户对象 + */ + public void insertUserPost(SysUser user) + { + Long[] posts = user.getPostIds(); + if (StringUtils.isNotNull(posts)) + { + // 新增用户与岗位管理 + List list = new ArrayList(); + for (Long postId : posts) + { + SysUserPost up = new SysUserPost(); + up.setUserId(user.getUserId()); + up.setPostId(postId); + list.add(up); + } + if (list.size() > 0) + { + userPostMapper.batchUserPost(list); + } + } + } + + /** + * 校验登录名称是否唯一 + * + * @param loginName 用户名 + * @return + */ + @Override + public String checkLoginNameUnique(String loginName) + { + int count = userMapper.checkLoginNameUnique(loginName); + if (count > 0) + { + return UserConstants.USER_NAME_NOT_UNIQUE; + } + return UserConstants.USER_NAME_UNIQUE; + } + + /** + * 校验手机号码是否唯一 + * + * @param user 用户信息 + * @return + */ + @Override + public String checkPhoneUnique(SysUser user) + { + Long userId = StringUtils.isNull(user.getUserId()) ? -1L : user.getUserId(); + SysUser info = userMapper.checkPhoneUnique(user.getPhonenumber()); + if (StringUtils.isNotNull(info) && info.getUserId().longValue() != userId.longValue()) + { + return UserConstants.USER_PHONE_NOT_UNIQUE; + } + return UserConstants.USER_PHONE_UNIQUE; + } + + /** + * 校验email是否唯一 + * + * @param user 用户信息 + * @return + */ + @Override + public String checkEmailUnique(SysUser user) + { + Long userId = StringUtils.isNull(user.getUserId()) ? -1L : user.getUserId(); + SysUser info = userMapper.checkEmailUnique(user.getEmail()); + if (StringUtils.isNotNull(info) && info.getUserId().longValue() != userId.longValue()) + { + return UserConstants.USER_EMAIL_NOT_UNIQUE; + } + return UserConstants.USER_EMAIL_UNIQUE; + } + + /** + * 校验用户是否允许操作 + * + * @param user 用户信息 + */ + @Override + public void checkUserAllowed(SysUser user) + { + if (StringUtils.isNotNull(user.getUserId()) && user.isAdmin()) + { + throw new ServiceException("不允许操作超级管理员用户"); + } + } + + /** + * 校验用户是否有数据权限 + * + * @param userId 用户id + */ + @Override + public void checkUserDataScope(Long userId) + { + if (!SysUser.isAdmin(ShiroUtils.getUserId())) + { + SysUser user = new SysUser(); + user.setUserId(userId); + List users = SpringUtils.getAopProxy(this).selectUserList(user); + if (StringUtils.isEmpty(users)) + { + throw new ServiceException("没有权限访问用户数据!"); + } + } + } + + /** + * 查询用户所属角色组 + * + * @param userId 用户ID + * @return 结果 + */ + @Override + public String selectUserRoleGroup(Long userId) + { + List list = roleMapper.selectRolesByUserId(userId); + if (CollectionUtils.isEmpty(list)) + { + return StringUtils.EMPTY; + } + return list.stream().map(SysRole::getRoleName).collect(Collectors.joining(",")); + } + + /** + * 查询用户所属岗位组 + * + * @param userId 用户ID + * @return 结果 + */ + @Override + public String selectUserPostGroup(Long userId) + { + List list = postMapper.selectPostsByUserId(userId); + if (CollectionUtils.isEmpty(list)) + { + return StringUtils.EMPTY; + } + return list.stream().map(SysPost::getPostName).collect(Collectors.joining(",")); + } + + /** + * 导入用户数据 + * + * @param userList 用户数据列表 + * @param isUpdateSupport 是否更新支持,如果已存在,则进行更新数据 + * @param operName 操作用户 + * @return 结果 + */ + @Override + public String importUser(List userList, Boolean isUpdateSupport, String operName) + { + if (StringUtils.isNull(userList) || userList.size() == 0) + { + throw new ServiceException("导入用户数据不能为空!"); + } + int successNum = 0; + int failureNum = 0; + StringBuilder successMsg = new StringBuilder(); + StringBuilder failureMsg = new StringBuilder(); + String password = configService.selectConfigByKey("sys.user.initPassword"); + for (SysUser user : userList) + { + try + { + // 验证是否存在这个用户 + SysUser u = userMapper.selectUserByLoginName(user.getLoginName()); + if (StringUtils.isNull(u)) + { + BeanValidators.validateWithException(validator, user); + user.setPassword(Md5Utils.hash(user.getLoginName() + password)); + user.setCreateBy(operName); + this.insertUser(user); + successNum++; + successMsg.append("
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                " + successNum + "、账号 " + user.getLoginName() + " 导入成功"); + } + else if (isUpdateSupport) + { + BeanValidators.validateWithException(validator, user); + user.setUpdateBy(operName); + this.updateUser(user); + successNum++; + successMsg.append("
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                " + successNum + "、账号 " + user.getLoginName() + " 更新成功"); + } + else + { + failureNum++; + failureMsg.append("
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                " + failureNum + "、账号 " + user.getLoginName() + " 已存在"); + } + } + catch (Exception e) + { + failureNum++; + String msg = "
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                " + failureNum + "、账号 " + user.getLoginName() + " 导入失败:"; + failureMsg.append(msg + e.getMessage()); + log.error(msg, e); + } + } + if (failureNum > 0) + { + failureMsg.insert(0, "很抱歉,导入失败!共 " + failureNum + " 条数据格式不正确,错误如下:"); + throw new ServiceException(failureMsg.toString()); + } + else + { + successMsg.insert(0, "恭喜您,数据已全部导入成功!共 " + successNum + " 条,数据如下:"); + } + return successMsg.toString(); + } + + /** + * 用户状态修改 + * + * @param user 用户信息 + * @return 结果 + */ + @Override + public int changeStatus(SysUser user) + { + return userMapper.updateUser(user); + } +} diff --git a/alive-system/src/main/resources/mapper/system/SysDeptMapper.xml b/alive-system/src/main/resources/mapper/system/SysDeptMapper.xml new file mode 100644 index 0000000..2f0df5c --- /dev/null +++ b/alive-system/src/main/resources/mapper/system/SysDeptMapper.xml @@ -0,0 +1,158 @@ + + + + + + + + + + + + + + + + + + + + + + + + select d.dept_id, d.parent_id, d.ancestors, d.dept_name, d.order_num, d.leader, d.phone, d.email, d.status, d.del_flag, d.create_by, d.create_time + from sys_dept d + + + + + + + + + + + + + + + + + + + + insert into sys_dept( + dept_id, + parent_id, + dept_name, + ancestors, + order_num, + leader, + phone, + email, + status, + create_by, + create_time + )values( + #{deptId}, + #{parentId}, + #{deptName}, + #{ancestors}, + #{orderNum}, + #{leader}, + #{phone}, + #{email}, + #{status}, + #{createBy}, + sysdate() + ) + + + + update sys_dept + + parent_id = #{parentId}, + dept_name = #{deptName}, + ancestors = #{ancestors}, + order_num = #{orderNum}, + leader = #{leader}, + phone = #{phone}, + email = #{email}, + status = #{status}, + update_by = #{updateBy}, + update_time = sysdate() + + where dept_id = #{deptId} + + + + update sys_dept set ancestors = + + when #{item.deptId} then #{item.ancestors} + + where dept_id in + + #{item.deptId} + + + + + update sys_dept set del_flag = '2' where dept_id = #{deptId} + + + + update sys_dept set status = '0' where dept_id in + + #{deptId} + + + + \ No newline at end of file diff --git a/alive-system/src/main/resources/mapper/system/SysDictDataMapper.xml b/alive-system/src/main/resources/mapper/system/SysDictDataMapper.xml new file mode 100644 index 0000000..b26e075 --- /dev/null +++ b/alive-system/src/main/resources/mapper/system/SysDictDataMapper.xml @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + select dict_code, dict_sort, dict_label, dict_value, dict_type, css_class, list_class, is_default, status, create_by, create_time, remark + from sys_dict_data + + + + + + + + + + + + + + delete from sys_dict_data where dict_code = #{dictCode} + + + + delete from sys_dict_data where dict_code in + + #{dictCode} + + + + + update sys_dict_data + + dict_sort = #{dictSort}, + dict_label = #{dictLabel}, + dict_value = #{dictValue}, + dict_type = #{dictType}, + css_class = #{cssClass}, + list_class = #{listClass}, + is_default = #{isDefault}, + status = #{status}, + remark = #{remark}, + update_by = #{updateBy}, + update_time = sysdate() + + where dict_code = #{dictCode} + + + + update sys_dict_data set dict_type = #{newDictType} where dict_type = #{oldDictType} + + + + insert into sys_dict_data( + dict_sort, + dict_label, + dict_value, + dict_type, + css_class, + list_class, + is_default, + status, + remark, + create_by, + create_time + )values( + #{dictSort}, + #{dictLabel}, + #{dictValue}, + #{dictType}, + #{cssClass}, + #{listClass}, + #{isDefault}, + #{status}, + #{remark}, + #{createBy}, + sysdate() + ) + + + \ No newline at end of file diff --git a/alive-system/src/main/resources/mapper/system/SysDictTypeMapper.xml b/alive-system/src/main/resources/mapper/system/SysDictTypeMapper.xml new file mode 100644 index 0000000..15de8cc --- /dev/null +++ b/alive-system/src/main/resources/mapper/system/SysDictTypeMapper.xml @@ -0,0 +1,105 @@ + + + + + + + + + + + + + + + + + select dict_id, dict_name, dict_type, status, create_by, create_time, remark + from sys_dict_type + + + + + + + + + + + + + + delete from sys_dict_type where dict_id = #{dictId} + + + + delete from sys_dict_type where dict_id in + + #{dictId} + + + + + update sys_dict_type + + dict_name = #{dictName}, + dict_type = #{dictType}, + status = #{status}, + remark = #{remark}, + update_by = #{updateBy}, + update_time = sysdate() + + where dict_id = #{dictId} + + + + insert into sys_dict_type( + dict_name, + dict_type, + status, + remark, + create_by, + create_time + )values( + #{dictName}, + #{dictType}, + #{status}, + #{remark}, + #{createBy}, + sysdate() + ) + + + \ No newline at end of file diff --git a/alive-system/src/main/resources/mapper/system/SysMenuMapper.xml b/alive-system/src/main/resources/mapper/system/SysMenuMapper.xml new file mode 100644 index 0000000..f9af0dc --- /dev/null +++ b/alive-system/src/main/resources/mapper/system/SysMenuMapper.xml @@ -0,0 +1,184 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + select menu_id, menu_name, parent_id, order_num, url, target, menu_type, visible, is_refresh, ifnull(perms,'') as perms, icon, create_by, create_time + from sys_menu + + + + + + + + + + + + + + + + + + + + delete from sys_menu where menu_id = #{menuId} or parent_id = #{menuId} + + + + + + + + + + update sys_menu + + menu_name = #{menuName}, + parent_id = #{parentId}, + order_num = #{orderNum}, + url = #{url}, + target = #{target}, + menu_type = #{menuType}, + visible = #{visible}, + is_refresh = #{isRefresh}, + perms = #{perms}, + icon = #{icon}, + remark = #{remark}, + update_by = #{updateBy}, + update_time = sysdate() + + where menu_id = #{menuId} + + + + insert into sys_menu( + menu_id, + parent_id, + menu_name, + order_num, + url, + target, + menu_type, + visible, + is_refresh, + perms, + icon, + remark, + create_by, + create_time + )values( + #{menuId}, + #{parentId}, + #{menuName}, + #{orderNum}, + #{url}, + #{target}, + #{menuType}, + #{visible}, + #{isRefresh}, + #{perms}, + #{icon}, + #{remark}, + #{createBy}, + sysdate() + ) + + + \ No newline at end of file diff --git a/alive-system/src/main/resources/mapper/system/SysPostMapper.xml b/alive-system/src/main/resources/mapper/system/SysPostMapper.xml new file mode 100644 index 0000000..86e4751 --- /dev/null +++ b/alive-system/src/main/resources/mapper/system/SysPostMapper.xml @@ -0,0 +1,110 @@ + + + + + + + + + + + + + + + + + + + select post_id, post_code, post_name, post_sort, status, create_by, create_time, remark + from sys_post + + + + + + + + + + + + + + + + delete from sys_post where post_id in + + #{postId} + + + + + update sys_post + + post_code = #{postCode}, + post_name = #{postName}, + post_sort = #{postSort}, + status = #{status}, + remark = #{remark}, + update_by = #{updateBy}, + update_time = sysdate() + + where post_id = #{postId} + + + + insert into sys_post( + post_id, + post_code, + post_name, + post_sort, + status, + remark, + create_by, + create_time + )values( + #{postId}, + #{postCode}, + #{postName}, + #{postSort}, + #{status}, + #{remark}, + #{createBy}, + sysdate() + ) + + + \ No newline at end of file diff --git a/alive-system/src/main/resources/mapper/system/SysRoleDeptMapper.xml b/alive-system/src/main/resources/mapper/system/SysRoleDeptMapper.xml new file mode 100644 index 0000000..7c4139b --- /dev/null +++ b/alive-system/src/main/resources/mapper/system/SysRoleDeptMapper.xml @@ -0,0 +1,34 @@ + + + + + + + + + + + delete from sys_role_dept where role_id=#{roleId} + + + + + + delete from sys_role_dept where role_id in + + #{roleId} + + + + + insert into sys_role_dept(role_id, dept_id) values + + (#{item.roleId},#{item.deptId}) + + + + \ No newline at end of file diff --git a/alive-system/src/main/resources/mapper/system/SysRoleMapper.xml b/alive-system/src/main/resources/mapper/system/SysRoleMapper.xml new file mode 100644 index 0000000..4422bb0 --- /dev/null +++ b/alive-system/src/main/resources/mapper/system/SysRoleMapper.xml @@ -0,0 +1,134 @@ + + + + + + + + + + + + + + + + + + + + + select distinct r.role_id, r.role_name, r.role_key, r.role_sort, r.data_scope, + r.status, r.del_flag, r.create_time, r.remark + from sys_role r + left join sys_user_role ur on ur.role_id = r.role_id + left join sys_user u on u.user_id = ur.user_id + left join sys_dept d on u.dept_id = d.dept_id + + + + select r.role_id, r.role_name, r.role_key, r.role_sort, r.data_scope, r.status, r.del_flag, r.create_time, r.remark + from sys_role r + + + + + + + + + + + + + + update sys_role set del_flag = '2' where role_id = #{roleId} + + + + update sys_role set del_flag = '2' where role_id in + + #{roleId} + + + + + update sys_role + + role_name = #{roleName}, + role_key = #{roleKey}, + role_sort = #{roleSort}, + data_scope = #{dataScope}, + status = #{status}, + remark = #{remark}, + update_by = #{updateBy}, + update_time = sysdate() + + where role_id = #{roleId} + + + + insert into sys_role( + role_id, + role_name, + role_key, + role_sort, + data_scope, + status, + remark, + create_by, + create_time + )values( + #{roleId}, + #{roleName}, + #{roleKey}, + #{roleSort}, + #{dataScope}, + #{status}, + #{remark}, + #{createBy}, + sysdate() + ) + + + \ No newline at end of file diff --git a/alive-system/src/main/resources/mapper/system/SysRoleMenuMapper.xml b/alive-system/src/main/resources/mapper/system/SysRoleMenuMapper.xml new file mode 100644 index 0000000..d213bdd --- /dev/null +++ b/alive-system/src/main/resources/mapper/system/SysRoleMenuMapper.xml @@ -0,0 +1,34 @@ + + + + + + + + + + + delete from sys_role_menu where role_id=#{roleId} + + + + + + delete from sys_role_menu where role_id in + + #{roleId} + + + + + insert into sys_role_menu(role_id, menu_id) values + + (#{item.roleId},#{item.menuId}) + + + + \ No newline at end of file diff --git a/alive-system/src/main/resources/mapper/system/SysUserMapper.xml b/alive-system/src/main/resources/mapper/system/SysUserMapper.xml new file mode 100644 index 0000000..b0345dd --- /dev/null +++ b/alive-system/src/main/resources/mapper/system/SysUserMapper.xml @@ -0,0 +1,230 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select u.user_id, u.dept_id, u.login_name, u.user_name, u.user_type, u.email, u.avatar, u.phonenumber, u.sex, u.password, u.salt, u.status, u.del_flag, u.login_ip, u.login_date, u.create_time, u.remark, + d.dept_id, d.parent_id, d.dept_name, d.order_num, d.leader, d.status as dept_status, + r.role_id, r.role_name, r.role_key, r.role_sort, r.data_scope, r.status as role_status + from sys_user u + left join sys_dept d on u.dept_id = d.dept_id + left join sys_user_role ur on u.user_id = ur.user_id + left join sys_role r on r.role_id = ur.role_id + + + + + + + + + + + + + + + + + + + + + + + + update sys_user set del_flag = '2' where user_id = #{userId} + + + + update sys_user set del_flag = '2' where user_id in + + #{userId} + + + + + update sys_user + + dept_id = #{deptId}, + login_name = #{loginName}, + user_name = #{userName}, + user_type = #{userType}, + email = #{email}, + phonenumber = #{phonenumber}, + sex = #{sex}, + avatar = #{avatar}, + password = #{password}, + salt = #{salt}, + status = #{status}, + login_ip = #{loginIp}, + login_date = #{loginDate}, + pwd_update_date = #{pwdUpdateDate}, + update_by = #{updateBy}, + remark = #{remark}, + update_time = sysdate() + + where user_id = #{userId} + + + + insert into sys_user( + user_id, + dept_id, + login_name, + user_name, + user_type, + email, + avatar, + phonenumber, + sex, + password, + salt, + status, + pwd_update_date, + create_by, + remark, + create_time + )values( + #{userId}, + #{deptId}, + #{loginName}, + #{userName}, + #{userType}, + #{email}, + #{avatar}, + #{phonenumber}, + #{sex}, + #{password}, + #{salt}, + #{status}, + #{pwdUpdateDate}, + #{createBy}, + #{remark}, + sysdate() + ) + + + \ No newline at end of file diff --git a/alive-system/src/main/resources/mapper/system/SysUserPostMapper.xml b/alive-system/src/main/resources/mapper/system/SysUserPostMapper.xml new file mode 100644 index 0000000..2b90bc4 --- /dev/null +++ b/alive-system/src/main/resources/mapper/system/SysUserPostMapper.xml @@ -0,0 +1,34 @@ + + + + + + + + + + + delete from sys_user_post where user_id=#{userId} + + + + + + delete from sys_user_post where user_id in + + #{userId} + + + + + insert into sys_user_post(user_id, post_id) values + + (#{item.userId},#{item.postId}) + + + + \ No newline at end of file diff --git a/alive-system/src/main/resources/mapper/system/SysUserRoleMapper.xml b/alive-system/src/main/resources/mapper/system/SysUserRoleMapper.xml new file mode 100644 index 0000000..7606692 --- /dev/null +++ b/alive-system/src/main/resources/mapper/system/SysUserRoleMapper.xml @@ -0,0 +1,48 @@ + + + + + + + + + + + + + delete from sys_user_role where user_id = #{userId} + + + + + + delete from sys_user_role where user_id in + + #{userId} + + + + + insert into sys_user_role(user_id, role_id) values + + (#{item.userId},#{item.roleId}) + + + + + delete from sys_user_role where user_id=#{userId} and role_id=#{roleId} + + + + delete from sys_user_role where role_id=#{roleId} and user_id in + + #{userId} + + + \ No newline at end of file diff --git a/alive-system/target/alive-system-4.7.2.jar b/alive-system/target/alive-system-4.7.2.jar new file mode 100644 index 0000000..f210784 Binary files /dev/null and b/alive-system/target/alive-system-4.7.2.jar differ diff --git a/alive-system/target/classes/com/ruoyi/system/domain/SysConfig.class b/alive-system/target/classes/com/ruoyi/system/domain/SysConfig.class new file mode 100644 index 0000000..e45cd57 Binary files /dev/null and b/alive-system/target/classes/com/ruoyi/system/domain/SysConfig.class differ diff --git a/alive-system/target/classes/com/ruoyi/system/domain/SysLogininfor.class b/alive-system/target/classes/com/ruoyi/system/domain/SysLogininfor.class new file mode 100644 index 0000000..70afca8 Binary files /dev/null and b/alive-system/target/classes/com/ruoyi/system/domain/SysLogininfor.class differ diff --git a/alive-system/target/classes/com/ruoyi/system/domain/SysNotice.class b/alive-system/target/classes/com/ruoyi/system/domain/SysNotice.class new file mode 100644 index 0000000..435a7b0 Binary files /dev/null and b/alive-system/target/classes/com/ruoyi/system/domain/SysNotice.class differ diff --git a/alive-system/target/classes/com/ruoyi/system/domain/SysOperLog.class b/alive-system/target/classes/com/ruoyi/system/domain/SysOperLog.class new file mode 100644 index 0000000..54935be Binary files /dev/null and b/alive-system/target/classes/com/ruoyi/system/domain/SysOperLog.class differ diff --git a/alive-system/target/classes/com/ruoyi/system/domain/SysPost.class b/alive-system/target/classes/com/ruoyi/system/domain/SysPost.class new file mode 100644 index 0000000..2c32834 Binary files /dev/null and b/alive-system/target/classes/com/ruoyi/system/domain/SysPost.class differ diff --git a/alive-system/target/classes/com/ruoyi/system/domain/SysRoleDept.class b/alive-system/target/classes/com/ruoyi/system/domain/SysRoleDept.class new file mode 100644 index 0000000..d3291fa Binary files /dev/null and b/alive-system/target/classes/com/ruoyi/system/domain/SysRoleDept.class differ diff --git a/alive-system/target/classes/com/ruoyi/system/domain/SysRoleMenu.class b/alive-system/target/classes/com/ruoyi/system/domain/SysRoleMenu.class new file mode 100644 index 0000000..4238995 Binary files /dev/null and b/alive-system/target/classes/com/ruoyi/system/domain/SysRoleMenu.class differ diff --git a/alive-system/target/classes/com/ruoyi/system/domain/SysUserOnline.class b/alive-system/target/classes/com/ruoyi/system/domain/SysUserOnline.class new file mode 100644 index 0000000..72433c9 Binary files /dev/null and b/alive-system/target/classes/com/ruoyi/system/domain/SysUserOnline.class differ diff --git a/alive-system/target/classes/com/ruoyi/system/domain/SysUserPost.class b/alive-system/target/classes/com/ruoyi/system/domain/SysUserPost.class new file mode 100644 index 0000000..670376d Binary files /dev/null and b/alive-system/target/classes/com/ruoyi/system/domain/SysUserPost.class differ diff --git a/alive-system/target/classes/com/ruoyi/system/domain/SysUserRole.class b/alive-system/target/classes/com/ruoyi/system/domain/SysUserRole.class new file mode 100644 index 0000000..38cff6a Binary files /dev/null and b/alive-system/target/classes/com/ruoyi/system/domain/SysUserRole.class differ diff --git a/alive-system/target/classes/com/ruoyi/system/mapper/SysDeptMapper.class b/alive-system/target/classes/com/ruoyi/system/mapper/SysDeptMapper.class new file mode 100644 index 0000000..37ed1cc Binary files /dev/null and b/alive-system/target/classes/com/ruoyi/system/mapper/SysDeptMapper.class differ diff --git a/alive-system/target/classes/com/ruoyi/system/mapper/SysDictDataMapper.class b/alive-system/target/classes/com/ruoyi/system/mapper/SysDictDataMapper.class new file mode 100644 index 0000000..71f4931 Binary files /dev/null and b/alive-system/target/classes/com/ruoyi/system/mapper/SysDictDataMapper.class differ diff --git a/alive-system/target/classes/com/ruoyi/system/mapper/SysDictTypeMapper.class b/alive-system/target/classes/com/ruoyi/system/mapper/SysDictTypeMapper.class new file mode 100644 index 0000000..2c03fe8 Binary files /dev/null and b/alive-system/target/classes/com/ruoyi/system/mapper/SysDictTypeMapper.class differ diff --git a/alive-system/target/classes/com/ruoyi/system/mapper/SysMenuMapper.class b/alive-system/target/classes/com/ruoyi/system/mapper/SysMenuMapper.class new file mode 100644 index 0000000..91f8524 Binary files /dev/null and b/alive-system/target/classes/com/ruoyi/system/mapper/SysMenuMapper.class differ diff --git a/alive-system/target/classes/com/ruoyi/system/mapper/SysPostMapper.class b/alive-system/target/classes/com/ruoyi/system/mapper/SysPostMapper.class new file mode 100644 index 0000000..20307bb Binary files /dev/null and b/alive-system/target/classes/com/ruoyi/system/mapper/SysPostMapper.class differ diff --git a/alive-system/target/classes/com/ruoyi/system/mapper/SysRoleDeptMapper.class b/alive-system/target/classes/com/ruoyi/system/mapper/SysRoleDeptMapper.class new file mode 100644 index 0000000..cb070d5 Binary files /dev/null and b/alive-system/target/classes/com/ruoyi/system/mapper/SysRoleDeptMapper.class differ diff --git a/alive-system/target/classes/com/ruoyi/system/mapper/SysRoleMapper.class b/alive-system/target/classes/com/ruoyi/system/mapper/SysRoleMapper.class new file mode 100644 index 0000000..b87b43b Binary files /dev/null and b/alive-system/target/classes/com/ruoyi/system/mapper/SysRoleMapper.class differ diff --git a/alive-system/target/classes/com/ruoyi/system/mapper/SysRoleMenuMapper.class b/alive-system/target/classes/com/ruoyi/system/mapper/SysRoleMenuMapper.class new file mode 100644 index 0000000..7b05357 Binary files /dev/null and b/alive-system/target/classes/com/ruoyi/system/mapper/SysRoleMenuMapper.class differ diff --git a/alive-system/target/classes/com/ruoyi/system/mapper/SysUserMapper.class b/alive-system/target/classes/com/ruoyi/system/mapper/SysUserMapper.class new file mode 100644 index 0000000..181adba Binary files /dev/null and b/alive-system/target/classes/com/ruoyi/system/mapper/SysUserMapper.class differ diff --git a/alive-system/target/classes/com/ruoyi/system/mapper/SysUserPostMapper.class b/alive-system/target/classes/com/ruoyi/system/mapper/SysUserPostMapper.class new file mode 100644 index 0000000..e7cb345 Binary files /dev/null and b/alive-system/target/classes/com/ruoyi/system/mapper/SysUserPostMapper.class differ diff --git a/alive-system/target/classes/com/ruoyi/system/mapper/SysUserRoleMapper.class b/alive-system/target/classes/com/ruoyi/system/mapper/SysUserRoleMapper.class new file mode 100644 index 0000000..33501bb Binary files /dev/null and b/alive-system/target/classes/com/ruoyi/system/mapper/SysUserRoleMapper.class differ diff --git a/alive-system/target/classes/com/ruoyi/system/service/ISysConfigService.class b/alive-system/target/classes/com/ruoyi/system/service/ISysConfigService.class new file mode 100644 index 0000000..cec9c03 Binary files /dev/null and b/alive-system/target/classes/com/ruoyi/system/service/ISysConfigService.class differ diff --git a/alive-system/target/classes/com/ruoyi/system/service/ISysDeptService.class b/alive-system/target/classes/com/ruoyi/system/service/ISysDeptService.class new file mode 100644 index 0000000..900add0 Binary files /dev/null and b/alive-system/target/classes/com/ruoyi/system/service/ISysDeptService.class differ diff --git a/alive-system/target/classes/com/ruoyi/system/service/ISysDictDataService.class b/alive-system/target/classes/com/ruoyi/system/service/ISysDictDataService.class new file mode 100644 index 0000000..4583eb2 Binary files /dev/null and b/alive-system/target/classes/com/ruoyi/system/service/ISysDictDataService.class differ diff --git a/alive-system/target/classes/com/ruoyi/system/service/ISysDictTypeService.class b/alive-system/target/classes/com/ruoyi/system/service/ISysDictTypeService.class new file mode 100644 index 0000000..26f6e14 Binary files /dev/null and b/alive-system/target/classes/com/ruoyi/system/service/ISysDictTypeService.class differ diff --git a/alive-system/target/classes/com/ruoyi/system/service/ISysLogininforService.class b/alive-system/target/classes/com/ruoyi/system/service/ISysLogininforService.class new file mode 100644 index 0000000..dcceab5 Binary files /dev/null and b/alive-system/target/classes/com/ruoyi/system/service/ISysLogininforService.class differ diff --git a/alive-system/target/classes/com/ruoyi/system/service/ISysMenuService.class b/alive-system/target/classes/com/ruoyi/system/service/ISysMenuService.class new file mode 100644 index 0000000..190f8d0 Binary files /dev/null and b/alive-system/target/classes/com/ruoyi/system/service/ISysMenuService.class differ diff --git a/alive-system/target/classes/com/ruoyi/system/service/ISysNoticeService.class b/alive-system/target/classes/com/ruoyi/system/service/ISysNoticeService.class new file mode 100644 index 0000000..4c2f979 Binary files /dev/null and b/alive-system/target/classes/com/ruoyi/system/service/ISysNoticeService.class differ diff --git a/alive-system/target/classes/com/ruoyi/system/service/ISysOperLogService.class b/alive-system/target/classes/com/ruoyi/system/service/ISysOperLogService.class new file mode 100644 index 0000000..d1f85fb Binary files /dev/null and b/alive-system/target/classes/com/ruoyi/system/service/ISysOperLogService.class differ diff --git a/alive-system/target/classes/com/ruoyi/system/service/ISysPostService.class b/alive-system/target/classes/com/ruoyi/system/service/ISysPostService.class new file mode 100644 index 0000000..a59094f Binary files /dev/null and b/alive-system/target/classes/com/ruoyi/system/service/ISysPostService.class differ diff --git a/alive-system/target/classes/com/ruoyi/system/service/ISysRoleService.class b/alive-system/target/classes/com/ruoyi/system/service/ISysRoleService.class new file mode 100644 index 0000000..f24d4bd Binary files /dev/null and b/alive-system/target/classes/com/ruoyi/system/service/ISysRoleService.class differ diff --git a/alive-system/target/classes/com/ruoyi/system/service/ISysUserOnlineService.class b/alive-system/target/classes/com/ruoyi/system/service/ISysUserOnlineService.class new file mode 100644 index 0000000..dc57b86 Binary files /dev/null and b/alive-system/target/classes/com/ruoyi/system/service/ISysUserOnlineService.class differ diff --git a/alive-system/target/classes/com/ruoyi/system/service/ISysUserService.class b/alive-system/target/classes/com/ruoyi/system/service/ISysUserService.class new file mode 100644 index 0000000..c36141a Binary files /dev/null and b/alive-system/target/classes/com/ruoyi/system/service/ISysUserService.class differ diff --git a/alive-system/target/classes/com/ruoyi/system/service/impl/SysConfigServiceImpl.class b/alive-system/target/classes/com/ruoyi/system/service/impl/SysConfigServiceImpl.class new file mode 100644 index 0000000..8d5d504 Binary files /dev/null and b/alive-system/target/classes/com/ruoyi/system/service/impl/SysConfigServiceImpl.class differ diff --git a/alive-system/target/classes/com/ruoyi/system/service/impl/SysDeptServiceImpl.class b/alive-system/target/classes/com/ruoyi/system/service/impl/SysDeptServiceImpl.class new file mode 100644 index 0000000..4bbe13f Binary files /dev/null and b/alive-system/target/classes/com/ruoyi/system/service/impl/SysDeptServiceImpl.class differ diff --git a/alive-system/target/classes/com/ruoyi/system/service/impl/SysDictDataServiceImpl.class b/alive-system/target/classes/com/ruoyi/system/service/impl/SysDictDataServiceImpl.class new file mode 100644 index 0000000..5cc8e47 Binary files /dev/null and b/alive-system/target/classes/com/ruoyi/system/service/impl/SysDictDataServiceImpl.class differ diff --git a/alive-system/target/classes/com/ruoyi/system/service/impl/SysDictTypeServiceImpl.class b/alive-system/target/classes/com/ruoyi/system/service/impl/SysDictTypeServiceImpl.class new file mode 100644 index 0000000..3f809be Binary files /dev/null and b/alive-system/target/classes/com/ruoyi/system/service/impl/SysDictTypeServiceImpl.class differ diff --git a/alive-system/target/classes/com/ruoyi/system/service/impl/SysLogininforServiceImpl.class b/alive-system/target/classes/com/ruoyi/system/service/impl/SysLogininforServiceImpl.class new file mode 100644 index 0000000..fc8a3ef Binary files /dev/null and b/alive-system/target/classes/com/ruoyi/system/service/impl/SysLogininforServiceImpl.class differ diff --git a/alive-system/target/classes/com/ruoyi/system/service/impl/SysMenuServiceImpl.class b/alive-system/target/classes/com/ruoyi/system/service/impl/SysMenuServiceImpl.class new file mode 100644 index 0000000..31dda58 Binary files /dev/null and b/alive-system/target/classes/com/ruoyi/system/service/impl/SysMenuServiceImpl.class differ diff --git a/alive-system/target/classes/com/ruoyi/system/service/impl/SysNoticeServiceImpl.class b/alive-system/target/classes/com/ruoyi/system/service/impl/SysNoticeServiceImpl.class new file mode 100644 index 0000000..ba0c6af Binary files /dev/null and b/alive-system/target/classes/com/ruoyi/system/service/impl/SysNoticeServiceImpl.class differ diff --git a/alive-system/target/classes/com/ruoyi/system/service/impl/SysOperLogServiceImpl.class b/alive-system/target/classes/com/ruoyi/system/service/impl/SysOperLogServiceImpl.class new file mode 100644 index 0000000..517911b Binary files /dev/null and b/alive-system/target/classes/com/ruoyi/system/service/impl/SysOperLogServiceImpl.class differ diff --git a/alive-system/target/classes/com/ruoyi/system/service/impl/SysPostServiceImpl.class b/alive-system/target/classes/com/ruoyi/system/service/impl/SysPostServiceImpl.class new file mode 100644 index 0000000..3c92d97 Binary files /dev/null and b/alive-system/target/classes/com/ruoyi/system/service/impl/SysPostServiceImpl.class differ diff --git a/alive-system/target/classes/com/ruoyi/system/service/impl/SysRoleServiceImpl.class b/alive-system/target/classes/com/ruoyi/system/service/impl/SysRoleServiceImpl.class new file mode 100644 index 0000000..39e08aa Binary files /dev/null and b/alive-system/target/classes/com/ruoyi/system/service/impl/SysRoleServiceImpl.class differ diff --git a/alive-system/target/classes/com/ruoyi/system/service/impl/SysUserOnlineServiceImpl.class b/alive-system/target/classes/com/ruoyi/system/service/impl/SysUserOnlineServiceImpl.class new file mode 100644 index 0000000..f2dc80b Binary files /dev/null and b/alive-system/target/classes/com/ruoyi/system/service/impl/SysUserOnlineServiceImpl.class differ diff --git a/alive-system/target/classes/com/ruoyi/system/service/impl/SysUserServiceImpl.class b/alive-system/target/classes/com/ruoyi/system/service/impl/SysUserServiceImpl.class new file mode 100644 index 0000000..79dc8fb Binary files /dev/null and b/alive-system/target/classes/com/ruoyi/system/service/impl/SysUserServiceImpl.class differ diff --git a/alive-system/target/classes/mapper/system/SysDeptMapper.xml b/alive-system/target/classes/mapper/system/SysDeptMapper.xml new file mode 100644 index 0000000..2f0df5c --- /dev/null +++ b/alive-system/target/classes/mapper/system/SysDeptMapper.xml @@ -0,0 +1,158 @@ + + + + + + + + + + + + + + + + + + + + + + + + select d.dept_id, d.parent_id, d.ancestors, d.dept_name, d.order_num, d.leader, d.phone, d.email, d.status, d.del_flag, d.create_by, d.create_time + from sys_dept d + + + + + + + + + + + + + + + + + + + + insert into sys_dept( + dept_id, + parent_id, + dept_name, + ancestors, + order_num, + leader, + phone, + email, + status, + create_by, + create_time + )values( + #{deptId}, + #{parentId}, + #{deptName}, + #{ancestors}, + #{orderNum}, + #{leader}, + #{phone}, + #{email}, + #{status}, + #{createBy}, + sysdate() + ) + + + + update sys_dept + + parent_id = #{parentId}, + dept_name = #{deptName}, + ancestors = #{ancestors}, + order_num = #{orderNum}, + leader = #{leader}, + phone = #{phone}, + email = #{email}, + status = #{status}, + update_by = #{updateBy}, + update_time = sysdate() + + where dept_id = #{deptId} + + + + update sys_dept set ancestors = + + when #{item.deptId} then #{item.ancestors} + + where dept_id in + + #{item.deptId} + + + + + update sys_dept set del_flag = '2' where dept_id = #{deptId} + + + + update sys_dept set status = '0' where dept_id in + + #{deptId} + + + + \ No newline at end of file diff --git a/alive-system/target/classes/mapper/system/SysDictDataMapper.xml b/alive-system/target/classes/mapper/system/SysDictDataMapper.xml new file mode 100644 index 0000000..b26e075 --- /dev/null +++ b/alive-system/target/classes/mapper/system/SysDictDataMapper.xml @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + select dict_code, dict_sort, dict_label, dict_value, dict_type, css_class, list_class, is_default, status, create_by, create_time, remark + from sys_dict_data + + + + + + + + + + + + + + delete from sys_dict_data where dict_code = #{dictCode} + + + + delete from sys_dict_data where dict_code in + + #{dictCode} + + + + + update sys_dict_data + + dict_sort = #{dictSort}, + dict_label = #{dictLabel}, + dict_value = #{dictValue}, + dict_type = #{dictType}, + css_class = #{cssClass}, + list_class = #{listClass}, + is_default = #{isDefault}, + status = #{status}, + remark = #{remark}, + update_by = #{updateBy}, + update_time = sysdate() + + where dict_code = #{dictCode} + + + + update sys_dict_data set dict_type = #{newDictType} where dict_type = #{oldDictType} + + + + insert into sys_dict_data( + dict_sort, + dict_label, + dict_value, + dict_type, + css_class, + list_class, + is_default, + status, + remark, + create_by, + create_time + )values( + #{dictSort}, + #{dictLabel}, + #{dictValue}, + #{dictType}, + #{cssClass}, + #{listClass}, + #{isDefault}, + #{status}, + #{remark}, + #{createBy}, + sysdate() + ) + + + \ No newline at end of file diff --git a/alive-system/target/classes/mapper/system/SysDictTypeMapper.xml b/alive-system/target/classes/mapper/system/SysDictTypeMapper.xml new file mode 100644 index 0000000..15de8cc --- /dev/null +++ b/alive-system/target/classes/mapper/system/SysDictTypeMapper.xml @@ -0,0 +1,105 @@ + + + + + + + + + + + + + + + + + select dict_id, dict_name, dict_type, status, create_by, create_time, remark + from sys_dict_type + + + + + + + + + + + + + + delete from sys_dict_type where dict_id = #{dictId} + + + + delete from sys_dict_type where dict_id in + + #{dictId} + + + + + update sys_dict_type + + dict_name = #{dictName}, + dict_type = #{dictType}, + status = #{status}, + remark = #{remark}, + update_by = #{updateBy}, + update_time = sysdate() + + where dict_id = #{dictId} + + + + insert into sys_dict_type( + dict_name, + dict_type, + status, + remark, + create_by, + create_time + )values( + #{dictName}, + #{dictType}, + #{status}, + #{remark}, + #{createBy}, + sysdate() + ) + + + \ No newline at end of file diff --git a/alive-system/target/classes/mapper/system/SysMenuMapper.xml b/alive-system/target/classes/mapper/system/SysMenuMapper.xml new file mode 100644 index 0000000..f9af0dc --- /dev/null +++ b/alive-system/target/classes/mapper/system/SysMenuMapper.xml @@ -0,0 +1,184 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + select menu_id, menu_name, parent_id, order_num, url, target, menu_type, visible, is_refresh, ifnull(perms,'') as perms, icon, create_by, create_time + from sys_menu + + + + + + + + + + + + + + + + + + + + delete from sys_menu where menu_id = #{menuId} or parent_id = #{menuId} + + + + + + + + + + update sys_menu + + menu_name = #{menuName}, + parent_id = #{parentId}, + order_num = #{orderNum}, + url = #{url}, + target = #{target}, + menu_type = #{menuType}, + visible = #{visible}, + is_refresh = #{isRefresh}, + perms = #{perms}, + icon = #{icon}, + remark = #{remark}, + update_by = #{updateBy}, + update_time = sysdate() + + where menu_id = #{menuId} + + + + insert into sys_menu( + menu_id, + parent_id, + menu_name, + order_num, + url, + target, + menu_type, + visible, + is_refresh, + perms, + icon, + remark, + create_by, + create_time + )values( + #{menuId}, + #{parentId}, + #{menuName}, + #{orderNum}, + #{url}, + #{target}, + #{menuType}, + #{visible}, + #{isRefresh}, + #{perms}, + #{icon}, + #{remark}, + #{createBy}, + sysdate() + ) + + + \ No newline at end of file diff --git a/alive-system/target/classes/mapper/system/SysPostMapper.xml b/alive-system/target/classes/mapper/system/SysPostMapper.xml new file mode 100644 index 0000000..86e4751 --- /dev/null +++ b/alive-system/target/classes/mapper/system/SysPostMapper.xml @@ -0,0 +1,110 @@ + + + + + + + + + + + + + + + + + + + select post_id, post_code, post_name, post_sort, status, create_by, create_time, remark + from sys_post + + + + + + + + + + + + + + + + delete from sys_post where post_id in + + #{postId} + + + + + update sys_post + + post_code = #{postCode}, + post_name = #{postName}, + post_sort = #{postSort}, + status = #{status}, + remark = #{remark}, + update_by = #{updateBy}, + update_time = sysdate() + + where post_id = #{postId} + + + + insert into sys_post( + post_id, + post_code, + post_name, + post_sort, + status, + remark, + create_by, + create_time + )values( + #{postId}, + #{postCode}, + #{postName}, + #{postSort}, + #{status}, + #{remark}, + #{createBy}, + sysdate() + ) + + + \ No newline at end of file diff --git a/alive-system/target/classes/mapper/system/SysRoleDeptMapper.xml b/alive-system/target/classes/mapper/system/SysRoleDeptMapper.xml new file mode 100644 index 0000000..7c4139b --- /dev/null +++ b/alive-system/target/classes/mapper/system/SysRoleDeptMapper.xml @@ -0,0 +1,34 @@ + + + + + + + + + + + delete from sys_role_dept where role_id=#{roleId} + + + + + + delete from sys_role_dept where role_id in + + #{roleId} + + + + + insert into sys_role_dept(role_id, dept_id) values + + (#{item.roleId},#{item.deptId}) + + + + \ No newline at end of file diff --git a/alive-system/target/classes/mapper/system/SysRoleMapper.xml b/alive-system/target/classes/mapper/system/SysRoleMapper.xml new file mode 100644 index 0000000..4422bb0 --- /dev/null +++ b/alive-system/target/classes/mapper/system/SysRoleMapper.xml @@ -0,0 +1,134 @@ + + + + + + + + + + + + + + + + + + + + + select distinct r.role_id, r.role_name, r.role_key, r.role_sort, r.data_scope, + r.status, r.del_flag, r.create_time, r.remark + from sys_role r + left join sys_user_role ur on ur.role_id = r.role_id + left join sys_user u on u.user_id = ur.user_id + left join sys_dept d on u.dept_id = d.dept_id + + + + select r.role_id, r.role_name, r.role_key, r.role_sort, r.data_scope, r.status, r.del_flag, r.create_time, r.remark + from sys_role r + + + + + + + + + + + + + + update sys_role set del_flag = '2' where role_id = #{roleId} + + + + update sys_role set del_flag = '2' where role_id in + + #{roleId} + + + + + update sys_role + + role_name = #{roleName}, + role_key = #{roleKey}, + role_sort = #{roleSort}, + data_scope = #{dataScope}, + status = #{status}, + remark = #{remark}, + update_by = #{updateBy}, + update_time = sysdate() + + where role_id = #{roleId} + + + + insert into sys_role( + role_id, + role_name, + role_key, + role_sort, + data_scope, + status, + remark, + create_by, + create_time + )values( + #{roleId}, + #{roleName}, + #{roleKey}, + #{roleSort}, + #{dataScope}, + #{status}, + #{remark}, + #{createBy}, + sysdate() + ) + + + \ No newline at end of file diff --git a/alive-system/target/classes/mapper/system/SysRoleMenuMapper.xml b/alive-system/target/classes/mapper/system/SysRoleMenuMapper.xml new file mode 100644 index 0000000..d213bdd --- /dev/null +++ b/alive-system/target/classes/mapper/system/SysRoleMenuMapper.xml @@ -0,0 +1,34 @@ + + + + + + + + + + + delete from sys_role_menu where role_id=#{roleId} + + + + + + delete from sys_role_menu where role_id in + + #{roleId} + + + + + insert into sys_role_menu(role_id, menu_id) values + + (#{item.roleId},#{item.menuId}) + + + + \ No newline at end of file diff --git a/alive-system/target/classes/mapper/system/SysUserMapper.xml b/alive-system/target/classes/mapper/system/SysUserMapper.xml new file mode 100644 index 0000000..b0345dd --- /dev/null +++ b/alive-system/target/classes/mapper/system/SysUserMapper.xml @@ -0,0 +1,230 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select u.user_id, u.dept_id, u.login_name, u.user_name, u.user_type, u.email, u.avatar, u.phonenumber, u.sex, u.password, u.salt, u.status, u.del_flag, u.login_ip, u.login_date, u.create_time, u.remark, + d.dept_id, d.parent_id, d.dept_name, d.order_num, d.leader, d.status as dept_status, + r.role_id, r.role_name, r.role_key, r.role_sort, r.data_scope, r.status as role_status + from sys_user u + left join sys_dept d on u.dept_id = d.dept_id + left join sys_user_role ur on u.user_id = ur.user_id + left join sys_role r on r.role_id = ur.role_id + + + + + + + + + + + + + + + + + + + + + + + + update sys_user set del_flag = '2' where user_id = #{userId} + + + + update sys_user set del_flag = '2' where user_id in + + #{userId} + + + + + update sys_user + + dept_id = #{deptId}, + login_name = #{loginName}, + user_name = #{userName}, + user_type = #{userType}, + email = #{email}, + phonenumber = #{phonenumber}, + sex = #{sex}, + avatar = #{avatar}, + password = #{password}, + salt = #{salt}, + status = #{status}, + login_ip = #{loginIp}, + login_date = #{loginDate}, + pwd_update_date = #{pwdUpdateDate}, + update_by = #{updateBy}, + remark = #{remark}, + update_time = sysdate() + + where user_id = #{userId} + + + + insert into sys_user( + user_id, + dept_id, + login_name, + user_name, + user_type, + email, + avatar, + phonenumber, + sex, + password, + salt, + status, + pwd_update_date, + create_by, + remark, + create_time + )values( + #{userId}, + #{deptId}, + #{loginName}, + #{userName}, + #{userType}, + #{email}, + #{avatar}, + #{phonenumber}, + #{sex}, + #{password}, + #{salt}, + #{status}, + #{pwdUpdateDate}, + #{createBy}, + #{remark}, + sysdate() + ) + + + \ No newline at end of file diff --git a/alive-system/target/classes/mapper/system/SysUserPostMapper.xml b/alive-system/target/classes/mapper/system/SysUserPostMapper.xml new file mode 100644 index 0000000..2b90bc4 --- /dev/null +++ b/alive-system/target/classes/mapper/system/SysUserPostMapper.xml @@ -0,0 +1,34 @@ + + + + + + + + + + + delete from sys_user_post where user_id=#{userId} + + + + + + delete from sys_user_post where user_id in + + #{userId} + + + + + insert into sys_user_post(user_id, post_id) values + + (#{item.userId},#{item.postId}) + + + + \ No newline at end of file diff --git a/alive-system/target/classes/mapper/system/SysUserRoleMapper.xml b/alive-system/target/classes/mapper/system/SysUserRoleMapper.xml new file mode 100644 index 0000000..7606692 --- /dev/null +++ b/alive-system/target/classes/mapper/system/SysUserRoleMapper.xml @@ -0,0 +1,48 @@ + + + + + + + + + + + + + delete from sys_user_role where user_id = #{userId} + + + + + + delete from sys_user_role where user_id in + + #{userId} + + + + + insert into sys_user_role(user_id, role_id) values + + (#{item.userId},#{item.roleId}) + + + + + delete from sys_user_role where user_id=#{userId} and role_id=#{roleId} + + + + delete from sys_user_role where role_id=#{roleId} and user_id in + + #{userId} + + + \ No newline at end of file diff --git a/alive-system/target/maven-archiver/pom.properties b/alive-system/target/maven-archiver/pom.properties new file mode 100644 index 0000000..80d8dd0 --- /dev/null +++ b/alive-system/target/maven-archiver/pom.properties @@ -0,0 +1,5 @@ +#Generated by Maven +#Mon May 27 15:35:31 GMT+08:00 2024 +version=4.7.2 +groupId=com.alive +artifactId=alive-system diff --git a/alive-system/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst b/alive-system/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst new file mode 100644 index 0000000..97d1be8 --- /dev/null +++ b/alive-system/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst @@ -0,0 +1,45 @@ +com\ruoyi\system\domain\SysUserRole.class +com\ruoyi\system\mapper\SysRoleMapper.class +com\ruoyi\system\service\ISysDeptService.class +com\ruoyi\system\service\ISysDictTypeService.class +com\ruoyi\system\domain\SysOperLog.class +com\ruoyi\system\domain\SysRoleDept.class +com\ruoyi\system\domain\SysUserPost.class +com\ruoyi\system\service\impl\SysDictDataServiceImpl.class +com\ruoyi\system\domain\SysRoleMenu.class +com\ruoyi\system\service\ISysConfigService.class +com\ruoyi\system\service\ISysUserService.class +com\ruoyi\system\domain\SysConfig.class +com\ruoyi\system\service\ISysUserOnlineService.class +com\ruoyi\system\service\ISysPostService.class +com\ruoyi\system\mapper\SysPostMapper.class +com\ruoyi\system\service\impl\SysMenuServiceImpl.class +com\ruoyi\system\service\ISysMenuService.class +com\ruoyi\system\domain\SysPost.class +com\ruoyi\system\service\impl\SysUserServiceImpl.class +com\ruoyi\system\mapper\SysDictTypeMapper.class +com\ruoyi\system\service\ISysLogininforService.class +com\ruoyi\system\domain\SysLogininfor.class +com\ruoyi\system\service\impl\SysConfigServiceImpl.class +com\ruoyi\system\service\impl\SysLogininforServiceImpl.class +com\ruoyi\system\mapper\SysDeptMapper.class +com\ruoyi\system\mapper\SysUserPostMapper.class +com\ruoyi\system\domain\SysUserOnline.class +com\ruoyi\system\mapper\SysUserRoleMapper.class +com\ruoyi\system\service\impl\SysRoleServiceImpl.class +com\ruoyi\system\service\impl\SysDictTypeServiceImpl.class +com\ruoyi\system\service\ISysNoticeService.class +com\ruoyi\system\mapper\SysUserMapper.class +com\ruoyi\system\service\impl\SysOperLogServiceImpl.class +com\ruoyi\system\service\ISysDictDataService.class +com\ruoyi\system\mapper\SysMenuMapper.class +com\ruoyi\system\service\ISysRoleService.class +com\ruoyi\system\service\impl\SysNoticeServiceImpl.class +com\ruoyi\system\mapper\SysDictDataMapper.class +com\ruoyi\system\service\ISysOperLogService.class +com\ruoyi\system\service\impl\SysUserOnlineServiceImpl.class +com\ruoyi\system\service\impl\SysDeptServiceImpl.class +com\ruoyi\system\service\impl\SysPostServiceImpl.class +com\ruoyi\system\mapper\SysRoleMenuMapper.class +com\ruoyi\system\domain\SysNotice.class +com\ruoyi\system\mapper\SysRoleDeptMapper.class diff --git a/alive-system/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst b/alive-system/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst new file mode 100644 index 0000000..ef32735 --- /dev/null +++ b/alive-system/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst @@ -0,0 +1,45 @@ +E:\alive\alive-admin\alive-system\src\main\java\com\ruoyi\system\domain\SysUserPost.java +E:\alive\alive-admin\alive-system\src\main\java\com\ruoyi\system\domain\SysRoleMenu.java +E:\alive\alive-admin\alive-system\src\main\java\com\ruoyi\system\service\ISysUserService.java +E:\alive\alive-admin\alive-system\src\main\java\com\ruoyi\system\mapper\SysRoleMapper.java +E:\alive\alive-admin\alive-system\src\main\java\com\ruoyi\system\service\ISysDictDataService.java +E:\alive\alive-admin\alive-system\src\main\java\com\ruoyi\system\mapper\SysDeptMapper.java +E:\alive\alive-admin\alive-system\src\main\java\com\ruoyi\system\service\impl\SysUserServiceImpl.java +E:\alive\alive-admin\alive-system\src\main\java\com\ruoyi\system\service\impl\SysLogininforServiceImpl.java +E:\alive\alive-admin\alive-system\src\main\java\com\ruoyi\system\service\ISysMenuService.java +E:\alive\alive-admin\alive-system\src\main\java\com\ruoyi\system\service\impl\SysNoticeServiceImpl.java +E:\alive\alive-admin\alive-system\src\main\java\com\ruoyi\system\domain\SysNotice.java +E:\alive\alive-admin\alive-system\src\main\java\com\ruoyi\system\domain\SysPost.java +E:\alive\alive-admin\alive-system\src\main\java\com\ruoyi\system\service\impl\SysConfigServiceImpl.java +E:\alive\alive-admin\alive-system\src\main\java\com\ruoyi\system\service\impl\SysDictTypeServiceImpl.java +E:\alive\alive-admin\alive-system\src\main\java\com\ruoyi\system\mapper\SysRoleDeptMapper.java +E:\alive\alive-admin\alive-system\src\main\java\com\ruoyi\system\service\impl\SysDictDataServiceImpl.java +E:\alive\alive-admin\alive-system\src\main\java\com\ruoyi\system\mapper\SysDictDataMapper.java +E:\alive\alive-admin\alive-system\src\main\java\com\ruoyi\system\domain\SysRoleDept.java +E:\alive\alive-admin\alive-system\src\main\java\com\ruoyi\system\mapper\SysUserRoleMapper.java +E:\alive\alive-admin\alive-system\src\main\java\com\ruoyi\system\service\ISysConfigService.java +E:\alive\alive-admin\alive-system\src\main\java\com\ruoyi\system\service\impl\SysUserOnlineServiceImpl.java +E:\alive\alive-admin\alive-system\src\main\java\com\ruoyi\system\service\ISysOperLogService.java +E:\alive\alive-admin\alive-system\src\main\java\com\ruoyi\system\mapper\SysDictTypeMapper.java +E:\alive\alive-admin\alive-system\src\main\java\com\ruoyi\system\domain\SysUserOnline.java +E:\alive\alive-admin\alive-system\src\main\java\com\ruoyi\system\domain\SysLogininfor.java +E:\alive\alive-admin\alive-system\src\main\java\com\ruoyi\system\mapper\SysUserMapper.java +E:\alive\alive-admin\alive-system\src\main\java\com\ruoyi\system\service\ISysUserOnlineService.java +E:\alive\alive-admin\alive-system\src\main\java\com\ruoyi\system\service\ISysLogininforService.java +E:\alive\alive-admin\alive-system\src\main\java\com\ruoyi\system\service\ISysRoleService.java +E:\alive\alive-admin\alive-system\src\main\java\com\ruoyi\system\service\impl\SysRoleServiceImpl.java +E:\alive\alive-admin\alive-system\src\main\java\com\ruoyi\system\domain\SysOperLog.java +E:\alive\alive-admin\alive-system\src\main\java\com\ruoyi\system\mapper\SysPostMapper.java +E:\alive\alive-admin\alive-system\src\main\java\com\ruoyi\system\service\ISysDeptService.java +E:\alive\alive-admin\alive-system\src\main\java\com\ruoyi\system\mapper\SysRoleMenuMapper.java +E:\alive\alive-admin\alive-system\src\main\java\com\ruoyi\system\service\ISysNoticeService.java +E:\alive\alive-admin\alive-system\src\main\java\com\ruoyi\system\service\ISysPostService.java +E:\alive\alive-admin\alive-system\src\main\java\com\ruoyi\system\service\impl\SysDeptServiceImpl.java +E:\alive\alive-admin\alive-system\src\main\java\com\ruoyi\system\mapper\SysMenuMapper.java +E:\alive\alive-admin\alive-system\src\main\java\com\ruoyi\system\domain\SysConfig.java +E:\alive\alive-admin\alive-system\src\main\java\com\ruoyi\system\service\ISysDictTypeService.java +E:\alive\alive-admin\alive-system\src\main\java\com\ruoyi\system\domain\SysUserRole.java +E:\alive\alive-admin\alive-system\src\main\java\com\ruoyi\system\service\impl\SysPostServiceImpl.java +E:\alive\alive-admin\alive-system\src\main\java\com\ruoyi\system\service\impl\SysOperLogServiceImpl.java +E:\alive\alive-admin\alive-system\src\main\java\com\ruoyi\system\mapper\SysUserPostMapper.java +E:\alive\alive-admin\alive-system\src\main\java\com\ruoyi\system\service\impl\SysMenuServiceImpl.java diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..4d763b5 --- /dev/null +++ b/pom.xml @@ -0,0 +1,288 @@ + + + 4.0.0 + + com.alive + alive + 4.7.2 + + alive-roos-admin + http://www.ruoyi.vip + cup后台管理系统 + + + 4.7.2 + UTF-8 + UTF-8 + 1.8 + 3.1.1 + 1.8.0 + 2.1.0 + 1.2.8 + 1.21 + 2.3.2 + 3.0.0 + 2.2.2 + 1.4.1 + 1.2.79 + 6.1.2 + 5.10.0 + 2.11.0 + 1.4 + 4.1.2 + 2.3 + + + + + + + + + org.springframework.boot + spring-boot-dependencies + 2.5.9 + pom + import + + + + + com.alibaba + druid-spring-boot-starter + ${druid.version} + + + + + com.github.penggle + kaptcha + ${kaptcha.version} + + + + + org.apache.shiro + shiro-core + ${shiro.version} + + + + + org.apache.shiro + shiro-spring + ${shiro.version} + + + + + org.apache.shiro + shiro-ehcache + ${shiro.version} + + + + + com.github.theborakompanioni + thymeleaf-extras-shiro + ${thymeleaf.extras.shiro.version} + + + + + eu.bitwalker + UserAgentUtils + ${bitwalker.version} + + + + + org.mybatis.spring.boot + mybatis-spring-boot-starter + ${mybatis-spring-boot.version} + + + + + com.github.pagehelper + pagehelper-spring-boot-starter + ${pagehelper.boot.version} + + + + + com.github.oshi + oshi-core + ${oshi.version} + + + + net.java.dev.jna + jna + ${jna.version} + + + + net.java.dev.jna + jna-platform + ${jna.version} + + + + + io.springfox + springfox-boot-starter + ${swagger.version} + + + io.swagger + swagger-models + + + + + + + commons-io + commons-io + ${commons.io.version} + + + + + commons-fileupload + commons-fileupload + ${commons.fileupload.version} + + + + + org.apache.poi + poi-ooxml + ${poi.version} + + + + + org.apache.velocity + velocity-engine-core + ${velocity.version} + + + + + com.alibaba + fastjson + ${fastjson.version} + + + + + com.alive + alive-quartz + ${ruoyi.version} + + + + + com.alive + alive-generator + ${ruoyi.version} + + + + org.projectlombok + lombok + 1.16.20 + provided + + + + + com.alive + alive-framework + ${ruoyi.version} + + + + + com.alive + alive-system + ${ruoyi.version} + + + + + com.alive + alive-common + ${ruoyi.version} + + + + + com.alive + alive-server + ${ruoyi.version} + + + + + + + alive-admin + alive-framework + alive-system + alive-quartz + alive-generator + alive-common + alive-server + + pom + + + + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + 3.1 + + ${java.version} + ${java.version} + ${project.build.sourceEncoding} + + + + + + + + public + aliyun nexus + https://maven.aliyun.com/repository/public + + true + + + + + + + public + aliyun nexus + https://maven.aliyun.com/repository/public + + true + + + false + + + + + \ No newline at end of file